Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

feat(goal_ui): RuFlo Research at goal.ruv.io β€” rebrand + cleanup (#1693)

rUve58154a4267d
diff --git a/README.md b/README.md
index 7a0008569b..7d26ac4fe5 100644
--- a/README.md
+++ b/README.md
@@ -174,20 +174,21 @@ claude mcp add ruflo -- npx -y @claude-flow/cli@latest
| πŸ›‘οΈ **Security** | AIDefence, input validation, CVE remediation, path traversal prevention |
| 🌐 **Agent Federation** | Cross-installation agent collaboration with zero-trust security |
| πŸ’¬ **[Web UI Beta](https://flo.ruv.io/)** | Multi-model chat at flo.ruv.io with parallel MCP tool calling and an in-browser WASM tool gallery |
+| 🎯 **[RuFlo Research](https://goal.ruv.io/)** | GOAP A\* planner at goal.ruv.io β€” plain-English goals β†’ executable agent plans, with a live agent dashboard at [/agents](https://goal.ruv.io/agents) |
<p align="center">
<a href="https://flo.ruv.io/">
- <img src="v3/docs/assets/ruVocal.png" alt="RuFlo Web UI executing parallel MCP tool calls at flo.ruv.io β€” ruflo__memory_store and ruflo__memory_search firing in a single model turn with the 'Step 1 β€” 2 tools completed' parallel-execution indicator, thinking process panel visible, Qwen 3.6 Max as the active model. Multi-agent AI chat with Model Context Protocol (MCP) tool calling, persistent vector memory via AgentDB + HNSW, swarm coordination, and 6 frontier models including Claude Sonnet 4.6, Gemini 2.5 Pro, and GPT-4o through OpenRouter." width="100%" />
+ <img src="v3/docs/assets/ruVocal.png" alt="RuFlo Web UI executing parallel MCP tool calls at flo.ruv.io β€” ruflo__memory_store and ruflo__memory_search firing in a single model turn with the 'Step 1 β€” 2 tools completed' parallel-execution indicator, thinking process panel visible, Qwen 3.6 Max as the active model. Multi-agent AI chat with Model Context Protocol (MCP) tool calling, persistent vector memory via AgentDB + HNSW, swarm coordination, and 6 frontier models including Claude Sonnet 4.6, Gemini 2.5 Pro, and OpenAI through OpenRouter." width="100%" />
</a>
</p>
### Web UI (Beta) β€” self-hostable, hosted demo at [flo.ruv.io](https://flo.ruv.io/)
-**RuFlo's web UI is a multi-model AI chat with built-in Model Context Protocol (MCP) tool calling.** Talk to Qwen, Claude, Gemini, or GPT-4o while RuFlo invokes the same MCP tools the CLI uses β€” agent orchestration, persistent memory, swarm coordination, code review, GitHub ops β€” directly from chat. No install, no API key needed to try it.
+**RuFlo's web UI is a multi-model AI chat with built-in Model Context Protocol (MCP) tool calling.** Talk to Qwen, Claude, Gemini, or OpenAI while RuFlo invokes the same MCP tools the CLI uses β€” agent orchestration, persistent memory, swarm coordination, code review, GitHub ops β€” directly from chat. No install, no API key needed to try it.
| | What it is | Why it matters |
|---|------------|----------------|
-| 🧠 | **Any model, local or remote** | 6 curated frontier models out-of-the-box β€” Qwen 3.6 Max (default), Claude Sonnet 4.6, Claude Haiku 4.5, Gemini 2.5 Pro, Gemini 2.5 Flash, GPT-4o β€” via OpenRouter. Add your own: any OpenAI-compatible endpoint (vLLM, Ollama, LM Studio, Together, Groq, self-hosted). |
+| 🧠 | **Any model, local or remote** | 6 curated frontier models out-of-the-box β€” Qwen 3.6 Max (default), Claude Sonnet 4.6, Claude Haiku 4.5, Gemini 2.5 Pro, Gemini 2.5 Flash, OpenAI β€” via OpenRouter. Add your own: any OpenAI-compatible endpoint (vLLM, Ollama, LM Studio, Together, Groq, self-hosted). |
| 🦾 | **ruvLLM self-learning AI** | Native support for [ruvLLM](https://github.com/ruvnet/RuVector/tree/main/examples/ruvLLM) (lives in `ruvnet/RuVector/examples/ruvLLM`) β€” RuFlo's self-improving local model layer. Routes to MicroLoRA adapters, learns from your trajectories via SONA, and stays on your machine. Pair with the cloud models or run fully offline. |
| πŸ› οΈ | **~210 tools, ready to call** | 5 server groups (Core, Intelligence, Agents, Memory, DevTools) plus an 18-tool gallery that runs entirely in your browser β€” works offline. |
| πŸ”Œ | **Bring your own MCP servers** | Click the **MCP (n)** pill in the chat input β†’ *Add Server* and paste any MCP endpoint (HTTP, SSE, or stdio). Your tools join RuFlo's native ones in the same parallel-execution flow. Run a local MCP server on `localhost:3000` and it just works. |
@@ -199,7 +200,28 @@ claude mcp add ruflo -- npx -y @claude-flow/cli@latest
**Try the hosted demo:** [https://flo.ruv.io/](https://flo.ruv.io/) β€” no account, no API key. **Run your own:** the source lives in [`ruflo/src/ruvocal/`](ruflo/src/ruvocal/) with a multi-stage Dockerfile (`INCLUDE_DB=true` builds in MongoDB) and a `cloudbuild.yaml` for Google Cloud Run. See [ADR-033](ruflo/docs/adr/ADR-033-RUVOCAL-WASM-MCP-INTEGRATION.md) for the architecture and [issue #1689](https://github.com/ruvnet/ruflo/issues/1689) for the roadmap.
-> **Keywords**: AI chat UI Β· MCP server Β· Model Context Protocol Β· multi-agent orchestration Β· Claude Β· Gemini Β· Qwen Β· GPT-4o Β· vector memory Β· HNSW Β· agent swarms Β· parallel tool calling Β· LLM tool use Β· OpenRouter Β· AgentDB Β· semantic search Β· ruvocal Β· ruflo.ruv.io
+<p align="center">
+ <a href="https://goal.ruv.io/agents">
+ <img src="v3/docs/assets/goal.png" alt="goal.ruv.io/agents β€” RuFlo Goal-Oriented Action Planning (GOAP) UI for autonomous AI agents. Visual goal decomposition, A* search through state spaces, multi-agent task assignment, and live agent telemetry." width="100%" />
+ </a>
+</p>
+
+### Goal Planner UI β€” autonomous agents at [goal.ruv.io](https://goal.ruv.io/)
+
+**Turn high-level goals into executable agent plans.** `goal.ruv.io` is RuFlo's hosted Goal-Oriented Action Planning (GOAP) front-end β€” describe an outcome in plain English and watch RuFlo decompose it into preconditions, actions, and an A* path through state space, then dispatch the work to live agents at [`/agents`](https://goal.ruv.io/agents).
+
+| | What it is | Why it matters |
+|---|------------|----------------|
+| 🎯 | **Plain-English goals** | Type *"ship the auth refactor with tests and a PR"* β€” RuFlo extracts the success criteria, the constraints, and the implicit preconditions. No JSON, no DSL. |
+| 🧭 | **GOAP A\* planner** | Classic gaming-AI planning ported to software work: state-space search through actions with preconditions/effects to find the shortest viable path. Replans on the fly when state changes. |
+| πŸ€– | **Live agent dashboard** | [goal.ruv.io/agents](https://goal.ruv.io/agents) shows every spawned agent β€” role, current step, memory namespace, token budget, status. Click in to inspect trajectories, kill runaway workers, or reassign. |
+| 🌳 | **Visual plan tree** | Goals render as collapsible action trees with progress, blocked branches, and rollbacks highlighted. See *exactly* why an agent picked a path β€” no opaque chain-of-thought. |
+| ♻️ | **Adaptive replanning** | When an action fails or new info arrives, the planner re-runs A\* from the current state instead of restarting. Failures become learning, not loops. |
+| 🧠 | **Shared memory + SONA** | Plans, trajectories, and outcomes flow into AgentDB. Future plans retrieve past solutions via HNSW β€” the planner gets smarter with every run. |
+| πŸ”— | **Wired to MCP tools** | Every action node maps to a tool call (RuFlo's ~210 MCP tools, your custom servers, or shell). The planner schedules them in parallel where the dependency graph allows. |
+| πŸš€ | **Zero install to try** | Open [goal.ruv.io](https://goal.ruv.io/), describe a goal, watch it run. Source lives in [`v3/goal_ui/`](v3/goal_ui/) β€” Vite + Supabase, self-hostable. |
+
+**Try it:** [https://goal.ruv.io/](https://goal.ruv.io/) for goals Β· [https://goal.ruv.io/agents](https://goal.ruv.io/agents) for live agents. **Run your own:** clone the `goal` branch and `cd v3/goal_ui && npm install && npm run dev`.
### Agent Federation β€” Slack for Agents
diff --git a/v3/goal_ui/.env b/v3/goal_ui/.env
new file mode 100644
index 0000000000..4541e3bb5d
--- /dev/null
+++ b/v3/goal_ui/.env
@@ -0,0 +1,3 @@
+VITE_SUPABASE_PROJECT_ID="eqzmqxtngbulzhimrymr"
+VITE_SUPABASE_PUBLISHABLE_KEY="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImVxem1xeHRuZ2J1bHpoaW1yeW1yIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTk4NjUxNzksImV4cCI6MjA3NTQ0MTE3OX0.PhcjlpXVD3HmYVSz28NqiB2v1S0XehQhFIg__PF925M"
+VITE_SUPABASE_URL="https://eqzmqxtngbulzhimrymr.supabase.co"
diff --git a/v3/goal_ui/.gitignore b/v3/goal_ui/.gitignore
new file mode 100644
index 0000000000..3f9ded87f1
--- /dev/null
+++ b/v3/goal_ui/.gitignore
@@ -0,0 +1,55 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+# dist - commenting out so dist folder is included in git for deployment
+dist-ssr
+*.local
+
+# Widget build artifacts (copied to public for dev)
+public/widget.js
+public/widget.css
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+.DS_Store
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
+
+# Claude Flow generated files
+.claude/settings.local.json
+.mcp.json
+claude-flow.config.json
+.swarm/
+.hive-mind/
+.claude-flow/
+memory/
+coordination/
+memory/claude-flow-data.json
+memory/sessions/*
+!memory/sessions/README.md
+memory/agents/*
+!memory/agents/README.md
+coordination/memory_bank/*
+coordination/subtasks/*
+coordination/orchestration/*
+*.db
+*.db-journal
+*.db-wal
+*.sqlite
+*.sqlite-journal
+*.sqlite-wal
+claude-flow
+# Removed Windows wrapper files per user request
+hive-mind-prompt-*.txt
diff --git a/v3/goal_ui/README.md b/v3/goal_ui/README.md
new file mode 100644
index 0000000000..0259e72675
--- /dev/null
+++ b/v3/goal_ui/README.md
@@ -0,0 +1,86 @@
+# RuFlo Research
+
+> Goal-Oriented Action Planning UI for autonomous AI research workflows. Part of the [RuFlo](https://github.com/ruvnet/ruflo) platform.
+> Live: [goal.ruv.io](https://goal.ruv.io/) Β· Agents dashboard: [goal.ruv.io/agents](https://goal.ruv.io/agents)
+
+Turn plain-English research goals into executable agent plans. RuFlo Research applies classic Goal-Oriented Action Planning (GOAP) β€” A* search through a state space of actions with preconditions and effects β€” to autonomous AI research, then dispatches the work to live agents you can inspect in real time.
+
+## Highlights
+
+| | |
+|---|---|
+| 🎯 **Plain-English goals** | Describe an outcome β€” RuFlo extracts success criteria, constraints, and implicit preconditions |
+| 🧭 **GOAP A\* planner** | Shortest-path search through actions with preconditions/effects; replans on the fly when state changes |
+| πŸ€– **Live agent dashboard** | `/agents` shows every spawned agent β€” role, current step, status, trajectories |
+| 🌳 **Visual plan tree** | Goals render as collapsible action trees with progress, blocked branches, rollbacks |
+| ♻️ **Adaptive replanning** | When an action fails, A* re-runs from the current state instead of restarting |
+| πŸ”Œ **Embeddable widget** | Drop the research UI into any site via `<script src="widget.js">` |
+
+## Quick Start
+
+```bash
+# from /v3/goal_ui
+npm install
+npm run dev # main app on http://localhost:8080
+```
+
+For the embeddable widget:
+
+```bash
+npm run build:widget # produces dist/widget.js + dist/widget.css
+npm run widget:dev # build widget + start dev server
+```
+
+## Project Structure
+
+```
+v3/goal_ui/
+β”œβ”€β”€ src/
+β”‚ β”œβ”€β”€ components/ # React components (GoalInput, AgentStep, ResearchReportModal, …)
+β”‚ β”œβ”€β”€ pages/ # Index, Agents, Demo, NotFound
+β”‚ β”œβ”€β”€ lib/goapPlanner.ts # GOAP A* implementation
+β”‚ β”œβ”€β”€ integrations/supabase/ # Supabase client + types
+β”‚ └── widget.tsx # Embeddable widget entry
+β”œβ”€β”€ supabase/functions/ # Edge functions (research-step, generate-research-goal, …)
+β”œβ”€β”€ public/ # Static assets, widget-embed.html demo
+β”œβ”€β”€ docs/ # DEPLOYMENT.md, WIDGET-INTEGRATION.md, WIDGET_SETUP.md
+└── netlify.toml # Hosting config
+```
+
+## Embedding the Widget
+
+```html
+<div id="ruflo-research-widget-container"></div>
+<script>
+ window.RufloResearchWidgetConfig = {
+ primaryColor: "#8b5cf6",
+ accentColor: "#10b981",
+ };
+</script>
+<script src="https://goal.ruv.io/widget.js"></script>
+<link rel="stylesheet" href="https://goal.ruv.io/widget.css" />
+```
+
+The widget exposes a global `window.RufloResearchWidget` with `init(containerId)` and `version` for programmatic control. See [`docs/WIDGET-INTEGRATION.md`](docs/WIDGET-INTEGRATION.md) for the full integration guide.
+
+## Tech Stack
+
+React 18 Β· TypeScript 5 Β· Vite 5 Β· Tailwind 3 Β· shadcn/ui Β· Radix UI Β· React Query Β· React Router Β· Supabase Edge Functions Β· GOAP A* planner
+
+## Deployment
+
+Hosted on Netlify (`netlify.toml`) at [goal.ruv.io](https://goal.ruv.io/). See [`docs/DEPLOYMENT.md`](docs/DEPLOYMENT.md) for self-hosting instructions and edge-function deploy steps.
+
+## Environment
+
+Copy `example.env` β†’ `.env` and set the Supabase publishable variables (all `VITE_*` prefixed and safe to ship to the browser):
+
+```
+VITE_SUPABASE_URL=...
+VITE_SUPABASE_PROJECT_ID=...
+VITE_SUPABASE_PUBLISHABLE_KEY=...
+```
+
+## License
+
+MIT β€” same as the parent [RuFlo](https://github.com/ruvnet/ruflo) project.
diff --git a/v3/goal_ui/build-widget.sh b/v3/goal_ui/build-widget.sh
new file mode 100644
index 0000000000..96c805a67e
--- /dev/null
+++ b/v3/goal_ui/build-widget.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+echo "Building RuFlo Research Widget..."
+echo ""
+
+# Build the widget
+echo "Step 1/2: Building widget bundle..."
+BUILD_WIDGET=true npm run build
+
+# Check if build was successful
+if [ $? -eq 0 ]; then
+ echo ""
+ echo "βœ… Widget built successfully!"
+ echo ""
+ echo "πŸ“¦ Output files:"
+ echo " - dist/widget.js (main bundle)"
+ echo " - dist/widget.css (styles)"
+ echo ""
+ echo "πŸš€ Usage on external sites:"
+ echo ""
+ echo "<div id=\"ruflo-research-widget-container\"></div>"
+ echo "<script src=\"https://your-domain.com/widget.js\"></script>"
+ echo ""
+else
+ echo ""
+ echo "❌ Widget build failed"
+ exit 1
+fi
diff --git a/v3/goal_ui/components.json b/v3/goal_ui/components.json
new file mode 100644
index 0000000000..62e101166a
--- /dev/null
+++ b/v3/goal_ui/components.json
@@ -0,0 +1,20 @@
+{
+ "$schema": "https://ui.shadcn.com/schema.json",
+ "style": "default",
+ "rsc": false,
+ "tsx": true,
+ "tailwind": {
+ "config": "tailwind.config.ts",
+ "css": "src/index.css",
+ "baseColor": "slate",
+ "cssVariables": true,
+ "prefix": ""
+ },
+ "aliases": {
+ "components": "@/components",
+ "utils": "@/lib/utils",
+ "ui": "@/components/ui",
+ "lib": "@/lib",
+ "hooks": "@/hooks"
+ }
+}
diff --git a/v3/goal_ui/docs/DEPLOYMENT.md b/v3/goal_ui/docs/DEPLOYMENT.md
new file mode 100644
index 0000000000..7ff3ed5094
--- /dev/null
+++ b/v3/goal_ui/docs/DEPLOYMENT.md
@@ -0,0 +1,200 @@
+# Deployment Guide
+
+## βœ… Pre-Deployment Checklist
+
+Before deploying, ensure:
+
+1. **Widget files are built**: Run `npm run build`
+ - This builds widget first, then the main app
+ - Widget files end up in `dist/` folder
+
+2. **Required files in dist/**:
+ - βœ… `widget.js` (595KB)
+ - βœ… `widget.css` (65KB)
+ - βœ… `widget-embed.html`
+ - βœ… `_headers` (CORS configuration)
+ - βœ… `_redirects` (routing rules)
+
+3. **Verify locally**:
+ ```bash
+ npm run build
+ npm run preview
+ # Visit http://localhost:4173/demo
+ ```
+
+## πŸš€ Netlify Deployment
+
+### Build Settings
+
+Ensure your Netlify site has these build settings:
+
+- **Build command**: `npm run build`
+- **Publish directory**: `dist`
+- **Node version**: 18 or higher (set in Environment Variables: `NODE_VERSION=18`)
+
+### Deployment Process
+
+1. **Push to Git**:
+ ```bash
+ git add .
+ git commit -m "Add widget embed system"
+ git push origin main
+ ```
+
+2. **Netlify will automatically**:
+ - Run `npm install`
+ - Run `npm run build`
+ - Deploy `dist/` folder
+ - Apply `_headers` and `_redirects` rules
+
+3. **Verify deployment**:
+ - Visit `https://your-domain.com/widget.js` - should return JavaScript
+ - Visit `https://your-domain.com/widget.css` - should return CSS
+ - Visit `https://your-domain.com/demo` - should load widget demo
+ - Visit `https://your-domain.com/widget-embed.html` - should show embed example
+
+## πŸ” Troubleshooting
+
+### Widget files 404 error
+
+**Symptom**: `widget.js` and `widget.css` return 404
+
+**Solutions**:
+
+1. **Check build logs**:
+ - Look for "BUILD_WIDGET=true vite build" in logs
+ - Ensure both widget and app builds completed
+
+2. **Verify _redirects file**:
+ - Check if `_redirects` file exists in deployed site
+ - Should contain explicit rules for widget files
+
+3. **Clear Netlify cache**:
+ ```bash
+ # In Netlify dashboard:
+ Site settings > Build & deploy > Clear cache and retry deploy
+ ```
+
+4. **Manual verification**:
+ ```bash
+ # Locally verify build output
+ npm run build
+ ls -la dist/ | grep widget
+ # Should show widget.js, widget.css, widget-embed.html
+ ```
+
+### CORS errors
+
+**Symptom**: Widget loads on same domain but fails on external sites
+
+**Solution**: Verify `_headers` file contains:
+```
+/widget.js
+ Access-Control-Allow-Origin: *
+ Content-Type: application/javascript; charset=utf-8
+
+/widget.css
+ Access-Control-Allow-Origin: *
+ Content-Type: text/css; charset=utf-8
+```
+
+### SPA routing issues
+
+**Symptom**: Direct URLs to `/demo` return 404
+
+**Solution**: The `_redirects` file should have the SPA fallback as the LAST rule:
+```
+/* /index.html 200
+```
+
+## πŸ“¦ Manual Build & Deploy
+
+If automatic deployment fails, you can build and deploy manually:
+
+```bash
+# 1. Build locally
+npm run build
+
+# 2. Verify files
+ls -la dist/ | grep -E "(widget|_headers|_redirects)"
+
+# 3. Deploy via Netlify CLI
+npm install -g netlify-cli
+netlify deploy --prod --dir=dist
+```
+
+## πŸ”— Widget URLs After Deployment
+
+Once deployed, your widget will be available at:
+
+- **Widget script**: `https://your-domain.com/widget.js`
+- **Widget styles**: `https://your-domain.com/widget.css`
+- **Demo page**: `https://your-domain.com/demo`
+- **Embed example**: `https://your-domain.com/widget-embed.html`
+
+## πŸ“ Embed Code for Third-Party Sites
+
+Share this code with users who want to embed the widget:
+
+```html
+<!-- RuFlo Research Widget Container -->
+<div id="ruflo-research-widget-container"></div>
+
+<!-- Configuration (optional) -->
+<script>
+ window.RufloResearchWidgetConfig = {
+ primaryColor: "#8b5cf6",
+ accentColor: "#22c55e",
+ backgroundColor: "#1a1a1a"
+ };
+</script>
+
+<!-- Load Widget -->
+<link rel="stylesheet" href="https://your-domain.com/widget.css">
+<script src="https://your-domain.com/widget.js"></script>
+```
+
+## πŸ› οΈ Environment Variables
+
+No environment variables are required for the widget to work. However, if you're using Supabase functions, ensure these are set in Netlify:
+
+- `VITE_SUPABASE_URL`
+- `VITE_SUPABASE_ANON_KEY`
+
+## ✨ Post-Deployment Testing
+
+After deployment, test:
+
+1. **Main app**: Visit homepage, create a research goal
+2. **Demo page**: Visit `/demo`, verify widget loads
+3. **Widget files**: Direct access to `/widget.js` and `/widget.css`
+4. **Embed example**: Visit `/widget-embed.html`
+5. **CORS**: Test widget on external domain (e.g., CodePen, JSFiddle)
+
+## πŸ“Š Monitoring
+
+Monitor widget usage:
+- Check Netlify Analytics for `/widget.js` and `/widget.css` requests
+- Use browser DevTools Network tab to verify CORS headers
+- Monitor error logs for failed widget loads
+
+## πŸ”„ Updating the Widget
+
+When you make changes:
+
+1. Update source code
+2. Run `npm run build` locally to test
+3. Commit and push to Git
+4. Netlify auto-deploys
+5. Widget updates are live immediately (users may need to clear cache)
+
+## πŸ’Ύ Caching Strategy
+
+The `_headers` file sets:
+- Widget files: 1 year cache (`max-age=31536000`)
+- Immutable flag for faster loads
+
+To force users to get new version:
+- Change widget version in code
+- Or rename files (e.g., `widget.v2.js`)
+- Or use cache busting query params
diff --git a/v3/goal_ui/docs/WIDGET-INTEGRATION.md b/v3/goal_ui/docs/WIDGET-INTEGRATION.md
new file mode 100644
index 0000000000..20e2f404a7
--- /dev/null
+++ b/v3/goal_ui/docs/WIDGET-INTEGRATION.md
@@ -0,0 +1,341 @@
+# RuFlo Research Widget Integration Guide
+
+## πŸ“¦ Overview
+
+The RuFlo Research Widget is a standalone, embeddable component that brings Goal-Oriented Action Planning research capabilities to any website. It's fully self-contained with no external dependencies required on the host page.
+
+## πŸš€ Quick Start
+
+### Basic Integration
+
+Add this code to any HTML page:
+
+```html
+<!-- 1. Add widget container -->
+<div id="ruflo-research-widget-container"></div>
+
+<!-- 2. Load widget files -->
+<link rel="stylesheet" href="https://YOUR-DOMAIN/widget.css">
+<script src="https://YOUR-DOMAIN/widget.js"></script>
+```
+
+That's it! The widget will automatically initialize.
+
+### With Configuration
+
+```html
+<!-- Widget container -->
+<div id="ruflo-research-widget-container"></div>
+
+<!-- Configuration (optional) -->
+<script>
+ window.RufloResearchWidgetConfig = {
+ primaryColor: "#8b5cf6",
+ accentColor: "#22c55e",
+ backgroundColor: "#1a1a1a",
+ cardBackgroundColor: "#262626",
+ textColor: "#ffffff",
+ fontFamily: "system-ui",
+ defaultGoal: "Research the latest advancements in quantum computing"
+ };
+</script>
+
+<!-- Load widget -->
+<link rel="stylesheet" href="https://YOUR-DOMAIN/widget.css">
+<script src="https://YOUR-DOMAIN/widget.js"></script>
+```
+
+## βš™οΈ Configuration Options
+
+All configuration options are optional. The widget will use sensible defaults.
+
+```javascript
+window.RufloResearchWidgetConfig = {
+ // Colors (use hex format)
+ primaryColor: "#8b5cf6", // Main brand color
+ accentColor: "#22c55e", // Success/highlight color
+ backgroundColor: "#1a1a1a", // Page background
+ cardBackgroundColor: "#262626", // Card backgrounds
+ cardBorderColor: "#404040", // Card borders
+ textColor: "#ffffff", // Primary text
+ secondaryTextColor: "#a3a3a3", // Secondary text
+ successColor: "#22c55e", // Success indicators
+
+ // Content
+ title: "Goal-Oriented Action Planning",
+ description: "AI-powered research planning...",
+ brandName: "Your Brand",
+ defaultGoal: "Default research goal",
+
+ // Styling
+ fontFamily: "system-ui", // Font family
+ borderRadius: "0.5rem", // Border radius for cards
+ animationSpeed: "normal", // Animation speed: "slow", "normal", "fast"
+ cardSpacing: "1rem", // Space between cards
+
+ // Features
+ showMetrics: true, // Show step metrics
+ showStats: true, // Show statistics
+ compactMode: false, // Compact layout
+ enableAI: true, // Enable AI features
+ aiModel: "google/gemini-2.5-flash" // AI model to use
+};
+```
+
+## 🎨 Custom Container
+
+Use a custom container ID:
+
+```html
+<div id="my-custom-container"></div>
+
+<script>
+ window.addEventListener('load', function() {
+ if (window.RufloResearchWidget) {
+ window.RufloResearchWidget.init('my-custom-container');
+ }
+ });
+</script>
+```
+
+## 🌐 CORS & Security
+
+### CORS Headers
+
+The widget files are configured with proper CORS headers to work on any domain:
+
+```
+Access-Control-Allow-Origin: *
+Access-Control-Allow-Methods: GET, OPTIONS
+```
+
+### Content Security Policy
+
+If your site uses CSP, add these directives:
+
+```html
+<meta http-equiv="Content-Security-Policy"
+ content="script-src 'self' https://YOUR-DOMAIN;
+ style-src 'self' https://YOUR-DOMAIN 'unsafe-inline';">
+```
+
+### Iframe Embedding
+
+To embed via iframe:
+
+```html
+<iframe
+ src="https://YOUR-DOMAIN/widget-embed.html"
+ width="100%"
+ height="800"
+ frameborder="0"
+ style="border: none;">
+</iframe>
+```
+
+## πŸ“± Responsive Design
+
+The widget is fully responsive and mobile-friendly. It will automatically adapt to:
+- Mobile devices (< 640px)
+- Tablets (640px - 1024px)
+- Desktops (> 1024px)
+
+## πŸ”§ Advanced Usage
+
+### Manual Initialization
+
+Disable auto-initialization and manually control when the widget loads:
+
+```javascript
+// The widget auto-initializes by default
+// To prevent this, load the widget script with defer
+<script src="/widget.js" defer></script>
+
+// Then manually initialize when ready
+window.addEventListener('DOMContentLoaded', function() {
+ if (window.RufloResearchWidget) {
+ window.RufloResearchWidget.init('ruflo-research-widget-container');
+ }
+});
+```
+
+### Version Check
+
+Check the widget version:
+
+```javascript
+console.log(window.RufloResearchWidget.version); // "1.0.0"
+```
+
+### Multiple Widgets
+
+Load multiple widgets on the same page:
+
+```html
+<div id="widget-1"></div>
+<div id="widget-2"></div>
+
+<script>
+ window.addEventListener('load', function() {
+ window.RufloResearchWidget.init('widget-1');
+ window.RufloResearchWidget.init('widget-2');
+ });
+</script>
+```
+
+## πŸ› Troubleshooting
+
+### Widget Not Loading
+
+1. Check browser console for errors
+2. Verify widget.js and widget.css URLs are correct
+3. Check CORS headers are properly configured
+4. Ensure container element exists before widget loads
+
+### CORS Errors
+
+If you see CORS errors:
+```
+Access to script at 'https://your-domain/widget.js' from origin 'https://other-domain'
+has been blocked by CORS policy
+```
+
+Solutions:
+1. Ensure `_headers` file is deployed with proper CORS headers
+2. Check your hosting platform's CORS configuration
+3. For Netlify: Ensure `netlify.toml` is configured correctly
+
+### Styling Issues
+
+If widget styling looks broken:
+1. Ensure widget.css is loaded before widget.js
+2. Check for CSS conflicts with your site's styles
+3. Try adding `!important` to widget container styles
+4. Use a unique ID for the widget container
+
+### Performance Issues
+
+For large pages or slow connections:
+1. Load widget files with `defer` or `async`
+2. Place widget at the bottom of the page
+3. Use lazy loading for the widget container
+
+## πŸ“Š Browser Support
+
+- Chrome/Edge: Latest 2 versions
+- Firefox: Latest 2 versions
+- Safari: Latest 2 versions
+- Mobile browsers: iOS Safari 12+, Chrome Android latest
+
+## πŸ”’ Privacy & Data
+
+- Widget runs entirely client-side
+- No data collection by default
+- AI features connect to configured backend only when used
+- No cookies or local storage used without explicit configuration
+
+## πŸ“ Example Implementations
+
+### WordPress
+
+```php
+<?php
+// Add to your theme's functions.php
+function add_goap_widget() {
+ ?>
+ <div id="ruflo-research-widget-container"></div>
+ <script>
+ window.RufloResearchWidgetConfig = {
+ primaryColor: "<?php echo get_theme_mod('primary_color', '#8b5cf6'); ?>",
+ defaultGoal: "<?php echo get_option('goap_default_goal'); ?>"
+ };
+ </script>
+ <link rel="stylesheet" href="https://YOUR-DOMAIN/widget.css">
+ <script src="https://YOUR-DOMAIN/widget.js"></script>
+ <?php
+}
+add_action('wp_footer', 'add_goap_widget');
+?>
+```
+
+### React/Next.js
+
+```javascript
+import { useEffect } from 'react';
+
+export default function RufloResearchWidget() {
+ useEffect(() => {
+ // Load widget script
+ const script = document.createElement('script');
+ script.src = 'https://YOUR-DOMAIN/widget.js';
+ script.async = true;
+ document.body.appendChild(script);
+
+ // Load widget CSS
+ const link = document.createElement('link');
+ link.rel = 'stylesheet';
+ link.href = 'https://YOUR-DOMAIN/widget.css';
+ document.head.appendChild(link);
+
+ return () => {
+ document.body.removeChild(script);
+ document.head.removeChild(link);
+ };
+ }, []);
+
+ return <div id="ruflo-research-widget-container" />;
+}
+```
+
+### Vue.js
+
+```vue
+<template>
+ <div id="ruflo-research-widget-container"></div>
+</template>
+
+<script>
+export default {
+ mounted() {
+ // Set configuration
+ window.RufloResearchWidgetConfig = {
+ primaryColor: this.$root.theme.primaryColor
+ };
+
+ // Load widget
+ const link = document.createElement('link');
+ link.rel = 'stylesheet';
+ link.href = 'https://YOUR-DOMAIN/widget.css';
+ document.head.appendChild(link);
+
+ const script = document.createElement('script');
+ script.src = 'https://YOUR-DOMAIN/widget.js';
+ document.body.appendChild(script);
+ }
+}
+</script>
+```
+
+## πŸ“¦ Build Your Own
+
+To build the widget from source:
+
+```bash
+# Install dependencies
+npm install
+
+# Build widget
+npm run build:widget
+
+# Output will be in dist/widget.js and dist/widget.css
+```
+
+## 🀝 Support
+
+- Documentation: [View README](./README.md)
+- Issues: [GitHub Issues](https://github.com/ruvnet/goap-ui/issues)
+- Demo: [Live Demo](https://lovable.dev/projects/598e2f1d-b876-4347-bb4f-379bdab134b0)
+
+## πŸ“„ License
+
+MIT License - See LICENSE file for details
diff --git a/v3/goal_ui/docs/WIDGET_SETUP.md b/v3/goal_ui/docs/WIDGET_SETUP.md
new file mode 100644
index 0000000000..621eac2874
--- /dev/null
+++ b/v3/goal_ui/docs/WIDGET_SETUP.md
@@ -0,0 +1,192 @@
+# RuFlo Research Widget - Embeddable Research Interface
+
+## Overview
+The GOAP widget is a fully-featured, embeddable research planning interface with 100% fidelity to the main application. It can be embedded on any website using a simple script tag.
+
+## Features
+βœ… Complete GOAP planning workflow
+βœ… AI-powered research with Gemini integration
+βœ… State assessment and configuration display
+βœ… Full research report modal
+βœ… Customizable appearance via configuration
+βœ… Self-contained bundle with all dependencies
+
+## Building the Widget
+
+To generate the embeddable `widget.js` file:
+
+```bash
+# Using the build script
+chmod +x build-widget.sh
+./build-widget.sh
+
+# Or manually
+BUILD_WIDGET=true npm run build
+```
+
+This creates:
+- `dist/widget.js` - Standalone IIFE bundle with all dependencies
+- `dist/widget.css` - Compiled styles
+
+The widget.js is a self-contained bundle that includes:
+- React & React DOM
+- All UI components
+- Supabase client
+- TanStack Query
+- All dependencies inlined
+
+## Embedding on External Sites
+
+### Basic Embed
+
+```html
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>My Site with RuFlo Research Widget</title>
+</head>
+<body>
+ <!-- Widget Container -->
+ <div id="ruflo-research-widget-container"></div>
+
+ <!-- Load Widget Script -->
+ <script src="https://your-domain.com/widget.js"></script>
+</body>
+</html>
+```
+
+### With Custom Configuration
+
+```html
+<div id="ruflo-research-widget-container"></div>
+
+<script>
+ // Configure widget appearance (optional)
+ window.RufloResearchWidgetConfig = {
+ primaryColor: "#8b5cf6",
+ accentColor: "#22c55e",
+ backgroundColor: "#1a1a1a",
+ cardBackgroundColor: "#262626",
+ textColor: "#ffffff",
+ fontFamily: "system-ui",
+ defaultGoal: "Research the latest advancements in quantum computing"
+ };
+</script>
+
+<script src="https://your-domain.com/widget.js"></script>
+```
+
+### Custom Container ID
+
+```html
+<div id="my-custom-container"></div>
+
+<script>
+ window.RufloResearchWidgetConfig = { /* ... */ };
+</script>
+
+<script src="https://your-domain.com/widget.js"></script>
+<script>
+ // Manually initialize with custom container
+ window.RufloResearchWidget.init('my-custom-container');
+</script>
+```
+
+## Configuration Options
+
+| Option | Type | Default | Description |
+|--------|------|---------|-------------|
+| `primaryColor` | string | `#8b5cf6` | Primary brand color |
+| `accentColor` | string | `#22c55e` | Accent/success color |
+| `backgroundColor` | string | `#1a1a1a` | Background color |
+| `cardBackgroundColor` | string | `#262626` | Card background |
+| `textColor` | string | `#ffffff` | Primary text color |
+| `fontFamily` | string | `system-ui` | Font family |
+| `defaultGoal` | string | - | Pre-populated research goal |
+
+## API
+
+The widget exposes a global `RufloResearchWidget` object:
+
+```javascript
+window.RufloResearchWidget = {
+ init: (containerId?: string) => void,
+ version: string
+}
+```
+
+### Methods
+
+- **`init(containerId)`**: Manually initialize the widget in a specific container
+- **`version`**: Current widget version
+
+## Testing Locally
+
+1. Build the widget:
+ ```bash
+ npm run build
+ ```
+
+2. Serve the dist folder:
+ ```bash
+ npx serve dist
+ ```
+
+3. Open the example embed page:
+ ```
+ http://localhost:3000/widget-embed.html
+ ```
+
+## Demo Page
+
+Visit `/demo` in your application to see:
+- Live widget preview
+- Copyable embed code
+- Integration instructions
+- Configuration examples
+
+## Requirements
+
+- Modern browser with ES2015+ support
+- Container element with a unique ID
+- Internet connection for AI features (Gemini API)
+
+## Supabase Integration
+
+The widget includes full Supabase integration for:
+- AI-powered goal generation
+- Research step execution
+- Configuration optimization
+- Report generation
+
+Ensure your Supabase project is configured with the required edge functions:
+- `generate-research-goal`
+- `research-step`
+- `optimize-research-config`
+- `generate-action-items`
+
+## Troubleshooting
+
+### Widget not appearing
+- Check browser console for errors
+- Verify the container ID matches
+- Ensure widget.js is loaded correctly
+
+### Styling conflicts
+- Widget uses scoped CSS variables
+- Customize via `RufloResearchWidgetConfig`
+- Override specific styles if needed
+
+### API errors
+- Verify Supabase configuration
+- Check edge function deployment
+- Review network requests in DevTools
+
+## Support
+
+For issues or questions:
+- Check the demo page at `/demo`
+- Review console logs with `[RuFlo Research]` prefix
+- Inspect network requests for API failures
diff --git a/v3/goal_ui/eslint.config.js b/v3/goal_ui/eslint.config.js
new file mode 100644
index 0000000000..40f72cc45a
--- /dev/null
+++ b/v3/goal_ui/eslint.config.js
@@ -0,0 +1,26 @@
+import js from "@eslint/js";
+import globals from "globals";
+import reactHooks from "eslint-plugin-react-hooks";
+import reactRefresh from "eslint-plugin-react-refresh";
+import tseslint from "typescript-eslint";
+
+export default tseslint.config(
+ { ignores: ["dist"] },
+ {
+ extends: [js.configs.recommended, ...tseslint.configs.recommended],
+ files: ["**/*.{ts,tsx}"],
+ languageOptions: {
+ ecmaVersion: 2020,
+ globals: globals.browser,
+ },
+ plugins: {
+ "react-hooks": reactHooks,
+ "react-refresh": reactRefresh,
+ },
+ rules: {
+ ...reactHooks.configs.recommended.rules,
+ "react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
+ "@typescript-eslint/no-unused-vars": "off",
+ },
+ },
+);
diff --git a/v3/goal_ui/example.env b/v3/goal_ui/example.env
new file mode 100644
index 0000000000..53829e865b
--- /dev/null
+++ b/v3/goal_ui/example.env
@@ -0,0 +1,20 @@
+# Supabase Configuration
+# These are automatically provided by Lovable Cloud
+# For manual setup, get these from your Supabase project settings
+
+VITE_SUPABASE_URL=https://your-project-id.supabase.co
+VITE_SUPABASE_PUBLISHABLE_KEY=your-publishable-anon-key-here
+VITE_SUPABASE_PROJECT_ID=your-project-id
+
+# Supabase Secrets (Server-side only - DO NOT expose in frontend)
+# These should be configured in Supabase Dashboard β†’ Project Settings β†’ Edge Functions β†’ Secrets
+
+# LOVABLE_API_KEY=automatically-provided-by-lovable-cloud
+# SUPABASE_URL=automatically-provided
+# SUPABASE_ANON_KEY=automatically-provided
+# SUPABASE_SERVICE_ROLE_KEY=automatically-provided-keep-secret
+# SUPABASE_DB_URL=automatically-provided
+# SUPABASE_PUBLISHABLE_KEY=automatically-provided
+
+# Note: If using Lovable Cloud, these are auto-configured
+# If self-hosting, you'll need to manually set these in your Supabase project
diff --git a/v3/goal_ui/index.html b/v3/goal_ui/index.html
new file mode 100644
index 0000000000..c4fd1e8b02
--- /dev/null
+++ b/v3/goal_ui/index.html
@@ -0,0 +1,41 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+
+ <!-- SEO Meta Tags -->
+ <title>RuFlo Research β€” Autonomous AI Research with Goal-Oriented Action Planning</title>
+ <meta name="description" content="RuFlo Research turns plain-English goals into executable agent plans. Goal-Oriented Action Planning (GOAP) with A* search, multi-agent coordination, real-time web research, and live agent telemetry β€” part of the RuFlo platform." />
+ <meta name="keywords" content="RuFlo, RuFlo Research, autonomous AI agents, GOAP, goal-oriented action planning, A* search, multi-agent orchestration, AI research assistant, agent dashboard, MCP tools, ruflo.ruv.io" />
+ <meta name="author" content="RuFlo" />
+ <meta name="robots" content="index, follow" />
+ <link rel="canonical" href="https://goal.ruv.io/" />
+
+ <!-- Open Graph / Facebook -->
+ <meta property="og:type" content="website" />
+ <meta property="og:url" content="https://goal.ruv.io/" />
+ <meta property="og:title" content="RuFlo Research β€” Autonomous AI Research with GOAP" />
+ <meta property="og:description" content="Plain-English goals β†’ executable agent plans. GOAP A* planning, multi-agent coordination, live agent dashboard at goal.ruv.io/agents." />
+ <meta property="og:image" content="/og-image.png" />
+ <meta property="og:site_name" content="RuFlo Research" />
+
+ <!-- Twitter -->
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta property="twitter:url" content="https://goal.ruv.io/" />
+ <meta property="twitter:title" content="RuFlo Research β€” Autonomous AI Research with GOAP" />
+ <meta property="twitter:description" content="Plain-English goals β†’ executable agent plans. GOAP A* planning, multi-agent coordination, live agent dashboard." />
+ <meta property="twitter:image" content="/og-image.png" />
+
+ <!-- Additional SEO -->
+ <meta name="theme-color" content="#8b5cf6" />
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
+ </head>
+
+ <body>
+ <div id="root"></div>
+ <script type="module" src="/src/main.tsx"></script>
+ </body>
+</html>
diff --git a/v3/goal_ui/netlify.toml b/v3/goal_ui/netlify.toml
new file mode 100644
index 0000000000..6c0a124113
--- /dev/null
+++ b/v3/goal_ui/netlify.toml
@@ -0,0 +1,49 @@
+[build]
+ command = "npm run build"
+ publish = "dist"
+
+# SPA redirect - must come AFTER specific file rules
+# This catches all routes and sends them to index.html for client-side routing
+[[redirects]]
+ from = "/*"
+ to = "/index.html"
+ status = 200
+
+# CORS headers for widget files
+[[headers]]
+ for = "/widget.js"
+ [headers.values]
+ Access-Control-Allow-Origin = "*"
+ Access-Control-Allow-Methods = "GET, OPTIONS"
+ Access-Control-Allow-Headers = "Content-Type"
+ Cache-Control = "public, max-age=31536000, immutable"
+ Content-Type = "application/javascript; charset=utf-8"
+
+[[headers]]
+ for = "/widget.css"
+ [headers.values]
+ Access-Control-Allow-Origin = "*"
+ Access-Control-Allow-Methods = "GET, OPTIONS"
+ Access-Control-Allow-Headers = "Content-Type"
+ Cache-Control = "public, max-age=31536000, immutable"
+ Content-Type = "text/css; charset=utf-8"
+
+[[headers]]
+ for = "/widget-embed.html"
+ [headers.values]
+ Access-Control-Allow-Origin = "*"
+ X-Frame-Options = "ALLOWALL"
+ Content-Security-Policy = "frame-ancestors *"
+
+# General security headers for the main app
+[[headers]]
+ for = "/*"
+ [headers.values]
+ X-Content-Type-Options = "nosniff"
+ Referrer-Policy = "strict-origin-when-cross-origin"
+
+# Cache static assets
+[[headers]]
+ for = "/assets/*"
+ [headers.values]
+ Cache-Control = "public, max-age=31536000, immutable"
diff --git a/v3/goal_ui/package-lock.json b/v3/goal_ui/package-lock.json
new file mode 100644
index 0000000000..266b167093
--- /dev/null
+++ b/v3/goal_ui/package-lock.json
@@ -0,0 +1,7426 @@
+{
+ "name": "vite_react_shadcn_ts",
+ "version": "0.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "vite_react_shadcn_ts",
+ "version": "0.0.0",
+ "dependencies": {
+ "@hookform/resolvers": "^3.10.0",
+ "@radix-ui/react-accordion": "^1.2.11",
+ "@radix-ui/react-alert-dialog": "^1.1.14",
+ "@radix-ui/react-aspect-ratio": "^1.1.7",
+ "@radix-ui/react-avatar": "^1.1.10",
+ "@radix-ui/react-checkbox": "^1.3.2",
+ "@radix-ui/react-collapsible": "^1.1.11",
+ "@radix-ui/react-context-menu": "^2.2.15",
+ "@radix-ui/react-dialog": "^1.1.14",
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
+ "@radix-ui/react-hover-card": "^1.1.14",
+ "@radix-ui/react-label": "^2.1.7",
+ "@radix-ui/react-menubar": "^1.1.15",
+ "@radix-ui/react-navigation-menu": "^1.2.13",
+ "@radix-ui/react-popover": "^1.1.14",
+ "@radix-ui/react-progress": "^1.1.7",
+ "@radix-ui/react-radio-group": "^1.3.7",
+ "@radix-ui/react-scroll-area": "^1.2.9",
+ "@radix-ui/react-select": "^2.2.5",
+ "@radix-ui/react-separator": "^1.1.7",
+ "@radix-ui/react-slider": "^1.3.5",
+ "@radix-ui/react-slot": "^1.2.3",
+ "@radix-ui/react-switch": "^1.2.5",
+ "@radix-ui/react-tabs": "^1.1.12",
+ "@radix-ui/react-toast": "^1.2.14",
+ "@radix-ui/react-toggle": "^1.1.9",
+ "@radix-ui/react-toggle-group": "^1.1.10",
+ "@radix-ui/react-tooltip": "^1.2.7",
+ "@supabase/supabase-js": "^2.74.0",
+ "@tanstack/react-query": "^5.83.0",
+ "class-variance-authority": "^0.7.1",
+ "clsx": "^2.1.1",
+ "cmdk": "^1.1.1",
+ "date-fns": "^3.6.0",
+ "embla-carousel-react": "^8.6.0",
+ "input-otp": "^1.4.2",
+ "lucide-react": "^0.462.0",
+ "next-themes": "^0.3.0",
+ "react": "^18.3.1",
+ "react-day-picker": "^8.10.1",
+ "react-dom": "^18.3.1",
+ "react-hook-form": "^7.61.1",
+ "react-resizable-panels": "^2.1.9",
+ "react-router-dom": "^6.30.1",
+ "reactflow": "^11.11.4",
+ "recharts": "^2.15.4",
+ "sonner": "^1.7.4",
+ "tailwind-merge": "^2.6.0",
+ "tailwindcss-animate": "^1.0.7",
+ "vaul": "^0.9.9",
+ "zod": "^3.25.76"
+ },
+ "devDependencies": {
+ "@eslint/js": "^9.32.0",
+ "@tailwindcss/typography": "^0.5.16",
+ "@types/node": "^22.16.5",
+ "@types/react": "^18.3.23",
+ "@types/react-dom": "^18.3.7",
+ "@vitejs/plugin-react-swc": "^3.11.0",
+ "autoprefixer": "^10.4.21",
+ "eslint": "^9.32.0",
+ "eslint-plugin-react-hooks": "^5.2.0",
+ "eslint-plugin-react-refresh": "^0.4.20",
+ "globals": "^15.15.0",
+ "lovable-tagger": "^1.1.10",
+ "postcss": "^8.5.6",
+ "tailwindcss": "^3.4.17",
+ "typescript": "^5.8.3",
+ "typescript-eslint": "^8.38.0",
+ "vite": "^5.4.19"
+ }
+ },
+ "node_modules/@alloc/quick-lru": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",
+ "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz",
+ "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",
+ "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.25.9.tgz",
+ "integrity": "sha512-aI3jjAAO1fh7vY/pBGsn1i9LDbRP43+asrRlkPuTXW5yHXtd1NgTEMudbBoDDxrf1daEEfPJqR+JBMakzrR4Dg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.25.9"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/runtime": {
+ "version": "7.28.2",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.2.tgz",
+ "integrity": "sha512-KHp2IflsnGywDjBWDkR9iEqiWSpc8GIi0lgTT3mOElT0PP1tG26P4tmFI2YvAdzgq9RGyoHZQEIEdZy6Ec5xCA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.25.9",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.9.tgz",
+ "integrity": "sha512-OwS2CM5KocvQ/k7dFJa8i5bNGJP0hXWfVCfDkqRFP1IreH1JDC7wG6eCYCi0+McbfT8OR/kNqsI0UU0xP9H6PQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.25.9",
+ "@babel/helper-validator-identifier": "^7.25.9"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",
+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",
+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",
+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",
+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",
+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",
+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",
+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",
+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",
+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",
+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",
+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",
+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",
+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",
+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",
+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",
+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",
+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.0.tgz",
+ "integrity": "sha512-RuG4PSMPFfrkH6UwCAqBzauBWTygTvb1nxWasEJooGSJ/NwRw7b2HOwyRTQIU97Hq37l3npXoZGYMy3b3xYvPw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",
+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.0.tgz",
+ "integrity": "sha512-21sUNbq2r84YE+SJDfaQRvdgznTD8Xc0oc3p3iW/a1EVWeNj/SdUCbm5U0itZPQYRuRTW20fPMWMpcrciH2EJw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",
+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",
+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",
+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",
+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",
+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils": {
+ "version": "4.7.0",
+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz",
+ "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eslint-visitor-keys": "^3.4.3"
+ },
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"
+ }
+ },
+ "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",
+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint-community/regexpp": {
+ "version": "4.12.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz",
+ "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
+ }
+ },
+ "node_modules/@eslint/config-array": {
+ "version": "0.21.0",
+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz",
+ "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^2.1.6",
+ "debug": "^4.3.1",
+ "minimatch": "^3.1.2"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/config-helpers": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.0.tgz",
+ "integrity": "sha512-ViuymvFmcJi04qdZeDc2whTHryouGcDlaxPqarTD0ZE10ISpxGUVZGZDx4w01upyIynL3iu6IXH2bS1NhclQMw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/core": {
+ "version": "0.15.1",
+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.1.tgz",
+ "integrity": "sha512-bkOp+iumZCCbt1K1CmWf0R9pM5yKpDv+ZXtvSyQpudrI9kuFLp+bM2WOPXImuD/ceQuaa8f5pj93Y7zyECIGNA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@types/json-schema": "^7.0.15"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/eslintrc": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz",
+ "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ajv": "^6.12.4",
+ "debug": "^4.3.2",
+ "espree": "^10.0.1",
+ "globals": "^14.0.0",
+ "ignore": "^5.2.0",
+ "import-fresh": "^3.2.1",
+ "js-yaml": "^4.1.0",
+ "minimatch": "^3.1.2",
+ "strip-json-comments": "^3.1.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/@eslint/eslintrc/node_modules/globals": {
+ "version": "14.0.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",
+ "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@eslint/js": {
+ "version": "9.32.0",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.32.0.tgz",
+ "integrity": "sha512-BBpRFZK3eX6uMLKz8WxFOBIFFcGFJ/g8XuwjTHCqHROSIsopI+ddn/d5Cfh36+7+e5edVS8dbSHnBNhrLEX0zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ }
+ },
+ "node_modules/@eslint/object-schema": {
+ "version": "2.1.6",
+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz",
+ "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/plugin-kit": {
+ "version": "0.3.4",
+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.4.tgz",
+ "integrity": "sha512-Ul5l+lHEcw3L5+k8POx6r74mxEYKG5kOb6Xpy2gCRW6zweT6TEhAf8vhxGgjhqrd/VO/Dirhsb+1hNpD1ue9hw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/core": "^0.15.1",
+ "levn": "^0.4.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@floating-ui/core": {
+ "version": "1.7.2",
+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.2.tgz",
+ "integrity": "sha512-wNB5ooIKHQc+Kui96jE/n69rHFWAVoxn5CAzL1Xdd8FG03cgY3MLO+GF9U3W737fYDSgPWA6MReKhBQBop6Pcw==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/utils": "^0.2.10"
+ }
+ },
+ "node_modules/@floating-ui/dom": {
+ "version": "1.7.2",
+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.2.tgz",
+ "integrity": "sha512-7cfaOQuCS27HD7DX+6ib2OrnW+b4ZBwDNnCcT0uTyidcmyWb03FnQqJybDBoCnpdxwBSfA94UAYlRCt7mV+TbA==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/core": "^1.7.2",
+ "@floating-ui/utils": "^0.2.10"
+ }
+ },
+ "node_modules/@floating-ui/react-dom": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.4.tgz",
+ "integrity": "sha512-JbbpPhp38UmXDDAu60RJmbeme37Jbgsm7NrHGgzYYFKmblzRUh6Pa641dII6LsjwF4XlScDrde2UAzDo/b9KPw==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/dom": "^1.7.2"
+ },
+ "peerDependencies": {
+ "react": ">=16.8.0",
+ "react-dom": ">=16.8.0"
+ }
+ },
+ "node_modules/@floating-ui/utils": {
+ "version": "0.2.10",
+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.10.tgz",
+ "integrity": "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==",
+ "license": "MIT"
+ },
+ "node_modules/@hookform/resolvers": {
+ "version": "3.10.0",
+ "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-3.10.0.tgz",
+ "integrity": "sha512-79Dv+3mDF7i+2ajj7SkypSKHhl1cbln1OGavqrsF7p6mbUv11xpqpacPsGDCTRvCSjEEIez2ef1NveSVL3b0Ag==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react-hook-form": "^7.0.0"
+ }
+ },
+ "node_modules/@humanfs/core": {
+ "version": "0.19.1",
+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",
+ "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node": {
+ "version": "0.16.6",
+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz",
+ "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@humanfs/core": "^0.19.1",
+ "@humanwhocodes/retry": "^0.3.0"
+ },
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz",
+ "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/module-importer": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",
+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.22"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@humanwhocodes/retry": {
+ "version": "0.4.3",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",
+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
+ },
+ "node_modules/@isaacs/cliui": {
+ "version": "8.0.2",
+ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
+ "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^5.1.2",
+ "string-width-cjs": "npm:string-width@^4.2.0",
+ "strip-ansi": "^7.0.1",
+ "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",
+ "wrap-ansi": "^8.1.0",
+ "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz",
+ "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/set-array": "^1.2.1",
+ "@jridgewell/sourcemap-codec": "^1.4.10",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/set-array": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz",
+ "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
+ "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.25",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",
+ "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@nodelib/fs.scandir": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "2.0.5",
+ "run-parallel": "^1.1.9"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.stat": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.walk": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.scandir": "2.1.5",
+ "fastq": "^1.6.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@pkgjs/parseargs": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",
+ "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=14"
+ }
+ },
+ "node_modules/@radix-ui/number": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.1.tgz",
+ "integrity": "sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==",
+ "license": "MIT"
+ },
+ "node_modules/@radix-ui/primitive": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.2.tgz",
+ "integrity": "sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA==",
+ "license": "MIT"
+ },
+ "node_modules/@radix-ui/react-accordion": {
+ "version": "1.2.11",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-accordion/-/react-accordion-1.2.11.tgz",
+ "integrity": "sha512-l3W5D54emV2ues7jjeG1xcyN7S3jnK3zE2zHqgn0CmMsy9lNJwmgcrmaxS+7ipw15FAivzKNzH3d5EcGoFKw0A==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-collapsible": "1.1.11",
+ "@radix-ui/react-collection": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-alert-dialog": {
+ "version": "1.1.14",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-alert-dialog/-/react-alert-dialog-1.1.14.tgz",
+ "integrity": "sha512-IOZfZ3nPvN6lXpJTBCunFQPRSvK8MDgSc1FB85xnIpUKOw9en0dJj8JmCAxV7BiZdtYlUpmrQjoTFkVYtdoWzQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-dialog": "1.1.14",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-slot": "1.2.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-arrow": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.1.7.tgz",
+ "integrity": "sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-primitive": "2.1.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-aspect-ratio": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-aspect-ratio/-/react-aspect-ratio-1.1.7.tgz",
+ "integrity": "sha512-Yq6lvO9HQyPwev1onK1daHCHqXVLzPhSVjmsNjCa2Zcxy2f7uJD2itDtxknv6FzAKCwD1qQkeVDmX/cev13n/g==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-primitive": "2.1.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-avatar": {
+ "version": "1.1.10",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.1.10.tgz",
+ "integrity": "sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-is-hydrated": "0.1.0",
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-checkbox": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.3.2.tgz",
+ "integrity": "sha512-yd+dI56KZqawxKZrJ31eENUwqc1QSqg4OZ15rybGjF2ZNwMO+wCyHzAVLRp9qoYJf7kYy0YpZ2b0JCzJ42HZpA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-use-previous": "1.1.1",
+ "@radix-ui/react-use-size": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-collapsible": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.1.11.tgz",
+ "integrity": "sha512-2qrRsVGSCYasSz1RFOorXwl0H7g7J1frQtgpQgYrt+MOidtPAINHn9CPovQXb83r8ahapdx3Tu0fa/pdFFSdPg==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-collection": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.7.tgz",
+ "integrity": "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-slot": "1.2.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-compose-refs": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",
+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-context": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",
+ "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-context-menu": {
+ "version": "2.2.15",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context-menu/-/react-context-menu-2.2.15.tgz",
+ "integrity": "sha512-UsQUMjcYTsBjTSXw0P3GO0werEQvUY2plgRQuKoCTtkNr45q1DiL51j4m7gxhABzZ0BadoXNsIbg7F3KwiUBbw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-menu": "2.1.15",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-controllable-state": "1.2.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-dialog": {
+ "version": "1.1.14",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.14.tgz",
+ "integrity": "sha512-+CpweKjqpzTmwRwcYECQcNYbI8V9VSQt0SNFKeEBLgfucbsLssU6Ppq7wUdNXEGb573bMjFhVjKVll8rmV6zMw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-dismissable-layer": "1.1.10",
+ "@radix-ui/react-focus-guards": "1.1.2",
+ "@radix-ui/react-focus-scope": "1.1.7",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-portal": "1.1.9",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-slot": "1.2.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "aria-hidden": "^1.2.4",
+ "react-remove-scroll": "^2.6.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-direction": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz",
+ "integrity": "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-dismissable-layer": {
+ "version": "1.1.10",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.10.tgz",
+ "integrity": "sha512-IM1zzRV4W3HtVgftdQiiOmA0AdJlCtMLe00FXaHwgt3rAnNsIyDqshvkIW3hj/iu5hu8ERP7KIYki6NkqDxAwQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-escape-keydown": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-dropdown-menu": {
+ "version": "2.1.15",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.1.15.tgz",
+ "integrity": "sha512-mIBnOjgwo9AH3FyKaSWoSu/dYj6VdhJ7frEPiGTeXCdUFHjl9h3mFh2wwhEtINOmYXWhdpf1rY2minFsmaNgVQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-menu": "2.1.15",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-focus-guards": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.2.tgz",
+ "integrity": "sha512-fyjAACV62oPV925xFCrH8DR5xWhg9KYtJT4s3u54jxp+L/hbpTY2kIeEFFbFe+a/HCE94zGQMZLIpVTPVZDhaA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-focus-scope": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.7.tgz",
+ "integrity": "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-hover-card": {
+ "version": "1.1.14",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-hover-card/-/react-hover-card-1.1.14.tgz",
+ "integrity": "sha512-CPYZ24Mhirm+g6D8jArmLzjYu4Eyg3TTUHswR26QgzXBHBe64BO/RHOJKzmF/Dxb4y4f9PKyJdwm/O/AhNkb+Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-dismissable-layer": "1.1.10",
+ "@radix-ui/react-popper": "1.2.7",
+ "@radix-ui/react-portal": "1.1.9",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-id": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz",
+ "integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-label": {
+ "version": "2.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.7.tgz",
+ "integrity": "sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-primitive": "2.1.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-menu": {
+ "version": "2.1.15",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.15.tgz",
+ "integrity": "sha512-tVlmA3Vb9n8SZSd+YSbuFR66l87Wiy4du+YE+0hzKQEANA+7cWKH1WgqcEX4pXqxUFQKrWQGHdvEfw00TjFiew==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-collection": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-dismissable-layer": "1.1.10",
+ "@radix-ui/react-focus-guards": "1.1.2",
+ "@radix-ui/react-focus-scope": "1.1.7",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-popper": "1.2.7",
+ "@radix-ui/react-portal": "1.1.9",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-roving-focus": "1.1.10",
+ "@radix-ui/react-slot": "1.2.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "aria-hidden": "^1.2.4",
+ "react-remove-scroll": "^2.6.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-menubar": {
+ "version": "1.1.15",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-menubar/-/react-menubar-1.1.15.tgz",
+ "integrity": "sha512-Z71C7LGD+YDYo3TV81paUs8f3Zbmkvg6VLRQpKYfzioOE6n7fOhA3ApK/V/2Odolxjoc4ENk8AYCjohCNayd5A==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-collection": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-menu": "2.1.15",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-roving-focus": "1.1.10",
+ "@radix-ui/react-use-controllable-state": "1.2.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-navigation-menu": {
+ "version": "1.2.13",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.2.13.tgz",
+ "integrity": "sha512-WG8wWfDiJlSF5hELjwfjSGOXcBR/ZMhBFCGYe8vERpC39CQYZeq1PQ2kaYHdye3V95d06H89KGMsVCIE4LWo3g==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-collection": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-dismissable-layer": "1.1.10",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-use-layout-effect": "1.1.1",
+ "@radix-ui/react-use-previous": "1.1.1",
+ "@radix-ui/react-visually-hidden": "1.2.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-popover": {
+ "version": "1.1.14",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-popover/-/react-popover-1.1.14.tgz",
+ "integrity": "sha512-ODz16+1iIbGUfFEfKx2HTPKizg2MN39uIOV8MXeHnmdd3i/N9Wt7vU46wbHsqA0xoaQyXVcs0KIlBdOA2Y95bw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-dismissable-layer": "1.1.10",
+ "@radix-ui/react-focus-guards": "1.1.2",
+ "@radix-ui/react-focus-scope": "1.1.7",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-popper": "1.2.7",
+ "@radix-ui/react-portal": "1.1.9",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-slot": "1.2.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "aria-hidden": "^1.2.4",
+ "react-remove-scroll": "^2.6.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-popper": {
+ "version": "1.2.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.2.7.tgz",
+ "integrity": "sha512-IUFAccz1JyKcf/RjB552PlWwxjeCJB8/4KxT7EhBHOJM+mN7LdW+B3kacJXILm32xawcMMjb2i0cIZpo+f9kiQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@floating-ui/react-dom": "^2.0.0",
+ "@radix-ui/react-arrow": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-layout-effect": "1.1.1",
+ "@radix-ui/react-use-rect": "1.1.1",
+ "@radix-ui/react-use-size": "1.1.1",
+ "@radix-ui/rect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-portal": {
+ "version": "1.1.9",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.9.tgz",
+ "integrity": "sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-presence": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.4.tgz",
+ "integrity": "sha512-ueDqRbdc4/bkaQT3GIpLQssRlFgWaL/U2z/S31qRwwLWoxHLgry3SIfCwhxeQNbirEUXFa+lq3RL3oBYXtcmIA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-primitive": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",
+ "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-slot": "1.2.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-progress": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-progress/-/react-progress-1.1.7.tgz",
+ "integrity": "sha512-vPdg/tF6YC/ynuBIJlk1mm7Le0VgW6ub6J2UWnTQ7/D23KXcPI1qy+0vBkgKgd38RCMJavBXpB83HPNFMTb0Fg==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-radio-group": {
+ "version": "1.3.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-radio-group/-/react-radio-group-1.3.7.tgz",
+ "integrity": "sha512-9w5XhD0KPOrm92OTTE0SysH3sYzHsSTHNvZgUBo/VZ80VdYyB5RneDbc0dKpURS24IxkoFRu/hI0i4XyfFwY6g==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-roving-focus": "1.1.10",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-use-previous": "1.1.1",
+ "@radix-ui/react-use-size": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-roving-focus": {
+ "version": "1.1.10",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.10.tgz",
+ "integrity": "sha512-dT9aOXUen9JSsxnMPv/0VqySQf5eDQ6LCk5Sw28kamz8wSOW2bJdlX2Bg5VUIIcV+6XlHpWTIuTPCf/UNIyq8Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-collection": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-controllable-state": "1.2.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-scroll-area": {
+ "version": "1.2.9",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-scroll-area/-/react-scroll-area-1.2.9.tgz",
+ "integrity": "sha512-YSjEfBXnhUELsO2VzjdtYYD4CfQjvao+lhhrX5XsHD7/cyUNzljF1FHEbgTPN7LH2MClfwRMIsYlqTYpKTTe2A==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/number": "1.1.1",
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-select": {
+ "version": "2.2.5",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-select/-/react-select-2.2.5.tgz",
+ "integrity": "sha512-HnMTdXEVuuyzx63ME0ut4+sEMYW6oouHWNGUZc7ddvUWIcfCva/AMoqEW/3wnEllriMWBa0RHspCYnfCWJQYmA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/number": "1.1.1",
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-collection": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-dismissable-layer": "1.1.10",
+ "@radix-ui/react-focus-guards": "1.1.2",
+ "@radix-ui/react-focus-scope": "1.1.7",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-popper": "1.2.7",
+ "@radix-ui/react-portal": "1.1.9",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-slot": "1.2.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-use-layout-effect": "1.1.1",
+ "@radix-ui/react-use-previous": "1.1.1",
+ "@radix-ui/react-visually-hidden": "1.2.3",
+ "aria-hidden": "^1.2.4",
+ "react-remove-scroll": "^2.6.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-separator": {
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.7.tgz",
+ "integrity": "sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-primitive": "2.1.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-slider": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slider/-/react-slider-1.3.5.tgz",
+ "integrity": "sha512-rkfe2pU2NBAYfGaxa3Mqosi7VZEWX5CxKaanRv0vZd4Zhl9fvQrg0VM93dv3xGLGfrHuoTRF3JXH8nb9g+B3fw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/number": "1.1.1",
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-collection": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-use-layout-effect": "1.1.1",
+ "@radix-ui/react-use-previous": "1.1.1",
+ "@radix-ui/react-use-size": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-slot": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",
+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-compose-refs": "1.1.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-switch": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.2.5.tgz",
+ "integrity": "sha512-5ijLkak6ZMylXsaImpZ8u4Rlf5grRmoc0p0QeX9VJtlrM4f5m3nCTX8tWga/zOA8PZYIR/t0p2Mnvd7InrJ6yQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-use-previous": "1.1.1",
+ "@radix-ui/react-use-size": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-tabs": {
+ "version": "1.1.12",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.1.12.tgz",
+ "integrity": "sha512-GTVAlRVrQrSw3cEARM0nAx73ixrWDPNZAruETn3oHCNP6SbZ/hNxdxp+u7VkIEv3/sFoLq1PfcHrl7Pnp0CDpw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-roving-focus": "1.1.10",
+ "@radix-ui/react-use-controllable-state": "1.2.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-toast": {
+ "version": "1.2.14",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-toast/-/react-toast-1.2.14.tgz",
+ "integrity": "sha512-nAP5FBxBJGQ/YfUB+r+O6USFVkWq3gAInkxyEnmvEV5jtSbfDhfa4hwX8CraCnbjMLsE7XSf/K75l9xXY7joWg==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-collection": "1.1.7",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-dismissable-layer": "1.1.10",
+ "@radix-ui/react-portal": "1.1.9",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-callback-ref": "1.1.1",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-use-layout-effect": "1.1.1",
+ "@radix-ui/react-visually-hidden": "1.2.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-toggle": {
+ "version": "1.1.9",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-toggle/-/react-toggle-1.1.9.tgz",
+ "integrity": "sha512-ZoFkBBz9zv9GWer7wIjvdRxmh2wyc2oKWw6C6CseWd6/yq1DK/l5lJ+wnsmFwJZbBYqr02mrf8A2q/CVCuM3ZA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-toggle-group": {
+ "version": "1.1.10",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-toggle-group/-/react-toggle-group-1.1.10.tgz",
+ "integrity": "sha512-kiU694Km3WFLTC75DdqgM/3Jauf3rD9wxeS9XtyWFKsBUeZA337lC+6uUazT7I1DhanZ5gyD5Stf8uf2dbQxOQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-direction": "1.1.1",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-roving-focus": "1.1.10",
+ "@radix-ui/react-toggle": "1.1.9",
+ "@radix-ui/react-use-controllable-state": "1.2.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-tooltip": {
+ "version": "1.2.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.2.7.tgz",
+ "integrity": "sha512-Ap+fNYwKTYJ9pzqW+Xe2HtMRbQ/EeWkj2qykZ6SuEV4iS/o1bZI5ssJbk4D2r8XuDuOBVz/tIx2JObtuqU+5Zw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/primitive": "1.1.2",
+ "@radix-ui/react-compose-refs": "1.1.2",
+ "@radix-ui/react-context": "1.1.2",
+ "@radix-ui/react-dismissable-layer": "1.1.10",
+ "@radix-ui/react-id": "1.1.1",
+ "@radix-ui/react-popper": "1.2.7",
+ "@radix-ui/react-portal": "1.1.9",
+ "@radix-ui/react-presence": "1.1.4",
+ "@radix-ui/react-primitive": "2.1.3",
+ "@radix-ui/react-slot": "1.2.3",
+ "@radix-ui/react-use-controllable-state": "1.2.2",
+ "@radix-ui/react-visually-hidden": "1.2.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-callback-ref": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.1.tgz",
+ "integrity": "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-controllable-state": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",
+ "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-effect-event": "0.0.2",
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-effect-event": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.2.tgz",
+ "integrity": "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-escape-keydown": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.1.tgz",
+ "integrity": "sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-callback-ref": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-is-hydrated": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-is-hydrated/-/react-use-is-hydrated-0.1.0.tgz",
+ "integrity": "sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==",
+ "license": "MIT",
+ "dependencies": {
+ "use-sync-external-store": "^1.5.0"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-layout-effect": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",
+ "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-previous": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.1.tgz",
+ "integrity": "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-rect": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.1.1.tgz",
+ "integrity": "sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/rect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-size": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.1.tgz",
+ "integrity": "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-layout-effect": "1.1.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-visually-hidden": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.3.tgz",
+ "integrity": "sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-primitive": "2.1.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/rect": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.1.1.tgz",
+ "integrity": "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==",
+ "license": "MIT"
+ },
+ "node_modules/@reactflow/background": {
+ "version": "11.3.14",
+ "resolved": "https://registry.npmjs.org/@reactflow/background/-/background-11.3.14.tgz",
+ "integrity": "sha512-Gewd7blEVT5Lh6jqrvOgd4G6Qk17eGKQfsDXgyRSqM+CTwDqRldG2LsWN4sNeno6sbqVIC2fZ+rAUBFA9ZEUDA==",
+ "license": "MIT",
+ "dependencies": {
+ "@reactflow/core": "11.11.4",
+ "classcat": "^5.0.3",
+ "zustand": "^4.4.1"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/@reactflow/controls": {
+ "version": "11.2.14",
+ "resolved": "https://registry.npmjs.org/@reactflow/controls/-/controls-11.2.14.tgz",
+ "integrity": "sha512-MiJp5VldFD7FrqaBNIrQ85dxChrG6ivuZ+dcFhPQUwOK3HfYgX2RHdBua+gx+40p5Vw5It3dVNp/my4Z3jF0dw==",
+ "license": "MIT",
+ "dependencies": {
+ "@reactflow/core": "11.11.4",
+ "classcat": "^5.0.3",
+ "zustand": "^4.4.1"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/@reactflow/core": {
+ "version": "11.11.4",
+ "resolved": "https://registry.npmjs.org/@reactflow/core/-/core-11.11.4.tgz",
+ "integrity": "sha512-H4vODklsjAq3AMq6Np4LE12i1I4Ta9PrDHuBR9GmL8uzTt2l2jh4CiQbEMpvMDcp7xi4be0hgXj+Ysodde/i7Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3": "^7.4.0",
+ "@types/d3-drag": "^3.0.1",
+ "@types/d3-selection": "^3.0.3",
+ "@types/d3-zoom": "^3.0.1",
+ "classcat": "^5.0.3",
+ "d3-drag": "^3.0.0",
+ "d3-selection": "^3.0.0",
+ "d3-zoom": "^3.0.0",
+ "zustand": "^4.4.1"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/@reactflow/minimap": {
+ "version": "11.7.14",
+ "resolved": "https://registry.npmjs.org/@reactflow/minimap/-/minimap-11.7.14.tgz",
+ "integrity": "sha512-mpwLKKrEAofgFJdkhwR5UQ1JYWlcAAL/ZU/bctBkuNTT1yqV+y0buoNVImsRehVYhJwffSWeSHaBR5/GJjlCSQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@reactflow/core": "11.11.4",
+ "@types/d3-selection": "^3.0.3",
+ "@types/d3-zoom": "^3.0.1",
+ "classcat": "^5.0.3",
+ "d3-selection": "^3.0.0",
+ "d3-zoom": "^3.0.0",
+ "zustand": "^4.4.1"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/@reactflow/node-resizer": {
+ "version": "2.2.14",
+ "resolved": "https://registry.npmjs.org/@reactflow/node-resizer/-/node-resizer-2.2.14.tgz",
+ "integrity": "sha512-fwqnks83jUlYr6OHcdFEedumWKChTHRGw/kbCxj0oqBd+ekfs+SIp4ddyNU0pdx96JIm5iNFS0oNrmEiJbbSaA==",
+ "license": "MIT",
+ "dependencies": {
+ "@reactflow/core": "11.11.4",
+ "classcat": "^5.0.4",
+ "d3-drag": "^3.0.0",
+ "d3-selection": "^3.0.0",
+ "zustand": "^4.4.1"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/@reactflow/node-toolbar": {
+ "version": "1.3.14",
+ "resolved": "https://registry.npmjs.org/@reactflow/node-toolbar/-/node-toolbar-1.3.14.tgz",
+ "integrity": "sha512-rbynXQnH/xFNu4P9H+hVqlEUafDCkEoCy0Dg9mG22Sg+rY/0ck6KkrAQrYrTgXusd+cEJOMK0uOOFCK2/5rSGQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@reactflow/core": "11.11.4",
+ "classcat": "^5.0.3",
+ "zustand": "^4.4.1"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/@remix-run/router": {
+ "version": "1.23.0",
+ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.23.0.tgz",
+ "integrity": "sha512-O3rHJzAQKamUz1fvE0Qaw0xSFqsA/yafi2iqeE0pvdFtCO1viYx8QL6f3Ln/aCCTLxs68SLf0KPM9eSeM8yBnA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@rolldown/pluginutils": {
+ "version": "1.0.0-beta.27",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",
+ "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@rollup/rollup-android-arm-eabi": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.24.0.tgz",
+ "integrity": "sha512-Q6HJd7Y6xdB48x8ZNVDOqsbh2uByBhgK8PiQgPhwkIw/HC/YX5Ghq2mQY5sRMZWHb3VsFkWooUVOZHKr7DmDIA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-android-arm64": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.24.0.tgz",
+ "integrity": "sha512-ijLnS1qFId8xhKjT81uBHuuJp2lU4x2yxa4ctFPtG+MqEE6+C5f/+X/bStmxapgmwLwiL3ih122xv8kVARNAZA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-arm64": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.24.0.tgz",
+ "integrity": "sha512-bIv+X9xeSs1XCk6DVvkO+S/z8/2AMt/2lMqdQbMrmVpgFvXlmde9mLcbQpztXm1tajC3raFDqegsH18HQPMYtA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-x64": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.24.0.tgz",
+ "integrity": "sha512-X6/nOwoFN7RT2svEQWUsW/5C/fYMBe4fnLK9DQk4SX4mgVBiTA9h64kjUYPvGQ0F/9xwJ5U5UfTbl6BEjaQdBQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.24.0.tgz",
+ "integrity": "sha512-0KXvIJQMOImLCVCz9uvvdPgfyWo93aHHp8ui3FrtOP57svqrF/roSSR5pjqL2hcMp0ljeGlU4q9o/rQaAQ3AYA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.24.0.tgz",
+ "integrity": "sha512-it2BW6kKFVh8xk/BnHfakEeoLPv8STIISekpoF+nBgWM4d55CZKc7T4Dx1pEbTnYm/xEKMgy1MNtYuoA8RFIWw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.24.0.tgz",
+ "integrity": "sha512-i0xTLXjqap2eRfulFVlSnM5dEbTVque/3Pi4g2y7cxrs7+a9De42z4XxKLYJ7+OhE3IgxvfQM7vQc43bwTgPwA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.24.0.tgz",
+ "integrity": "sha512-9E6MKUJhDuDh604Qco5yP/3qn3y7SLXYuiC0Rpr89aMScS2UAmK1wHP2b7KAa1nSjWJc/f/Lc0Wl1L47qjiyQw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.24.0.tgz",
+ "integrity": "sha512-2XFFPJ2XMEiF5Zi2EBf4h73oR1V/lycirxZxHZNc93SqDN/IWhYYSYj8I9381ikUFXZrz2v7r2tOVk2NBwxrWw==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.24.0.tgz",
+ "integrity": "sha512-M3Dg4hlwuntUCdzU7KjYqbbd+BLq3JMAOhCKdBE3TcMGMZbKkDdJ5ivNdehOssMCIokNHFOsv7DO4rlEOfyKpg==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.24.0.tgz",
+ "integrity": "sha512-mjBaoo4ocxJppTorZVKWFpy1bfFj9FeCMJqzlMQGjpNPY9JwQi7OuS1axzNIk0nMX6jSgy6ZURDZ2w0QW6D56g==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.24.0.tgz",
+ "integrity": "sha512-ZXFk7M72R0YYFN5q13niV0B7G8/5dcQ9JDp8keJSfr3GoZeXEoMHP/HlvqROA3OMbMdfr19IjCeNAnPUG93b6A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.24.0.tgz",
+ "integrity": "sha512-w1i+L7kAXZNdYl+vFvzSZy8Y1arS7vMgIy8wusXJzRrPyof5LAb02KGr1PD2EkRcl73kHulIID0M501lN+vobQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.24.0.tgz",
+ "integrity": "sha512-VXBrnPWgBpVDCVY6XF3LEW0pOU51KbaHhccHw6AS6vBWIC60eqsH19DAeeObl+g8nKAz04QFdl/Cefta0xQtUQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.24.0.tgz",
+ "integrity": "sha512-xrNcGDU0OxVcPTH/8n/ShH4UevZxKIO6HJFK0e15XItZP2UcaiLFd5kiX7hJnqCbSztUF8Qot+JWBC/QXRPYWQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.24.0.tgz",
+ "integrity": "sha512-fbMkAF7fufku0N2dE5TBXcNlg0pt0cJue4xBRE2Qc5Vqikxr4VCgKj/ht6SMdFcOacVA9rqF70APJ8RN/4vMJw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@supabase/auth-js": {
+ "version": "2.74.0",
+ "resolved": "https://registry.npmjs.org/@supabase/auth-js/-/auth-js-2.74.0.tgz",
+ "integrity": "sha512-EJYDxYhBCOS40VJvfQ5zSjo8Ku7JbTICLTcmXt4xHMQZt4IumpRfHg11exXI9uZ6G7fhsQlNgbzDhFN4Ni9NnA==",
+ "license": "MIT",
+ "dependencies": {
+ "@supabase/node-fetch": "2.6.15"
+ }
+ },
+ "node_modules/@supabase/functions-js": {
+ "version": "2.74.0",
+ "resolved": "https://registry.npmjs.org/@supabase/functions-js/-/functions-js-2.74.0.tgz",
+ "integrity": "sha512-VqWYa981t7xtIFVf7LRb9meklHckbH/tqwaML5P3LgvlaZHpoSPjMCNLcquuLYiJLxnh2rio7IxLh+VlvRvSWw==",
+ "license": "MIT",
+ "dependencies": {
+ "@supabase/node-fetch": "2.6.15"
+ }
+ },
+ "node_modules/@supabase/node-fetch": {
+ "version": "2.6.15",
+ "resolved": "https://registry.npmjs.org/@supabase/node-fetch/-/node-fetch-2.6.15.tgz",
+ "integrity": "sha512-1ibVeYUacxWYi9i0cf5efil6adJ9WRyZBLivgjs+AUpewx1F3xPi7gLgaASI2SmIQxPoCEjAsLAzKPgMJVgOUQ==",
+ "license": "MIT",
+ "dependencies": {
+ "whatwg-url": "^5.0.0"
+ },
+ "engines": {
+ "node": "4.x || >=6.0.0"
+ }
+ },
+ "node_modules/@supabase/postgrest-js": {
+ "version": "2.74.0",
+ "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-2.74.0.tgz",
+ "integrity": "sha512-9Ypa2eS0Ib/YQClE+BhDSjx7OKjYEF6LAGjTB8X4HucdboGEwR0LZKctNfw6V0PPIAVjjzZxIlNBXGv0ypIkHw==",
+ "license": "MIT",
+ "dependencies": {
+ "@supabase/node-fetch": "2.6.15"
+ }
+ },
+ "node_modules/@supabase/realtime-js": {
+ "version": "2.74.0",
+ "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.74.0.tgz",
+ "integrity": "sha512-K5VqpA4/7RO1u1nyD5ICFKzWKu58bIDcPxHY0aFA7MyWkFd0pzi/XYXeoSsAifnD9p72gPIpgxVXCQZKJg1ktQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@supabase/node-fetch": "2.6.15",
+ "@types/phoenix": "^1.6.6",
+ "@types/ws": "^8.18.1",
+ "ws": "^8.18.2"
+ }
+ },
+ "node_modules/@supabase/storage-js": {
+ "version": "2.74.0",
+ "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-2.74.0.tgz",
+ "integrity": "sha512-o0cTQdMqHh4ERDLtjUp1/KGPbQoNwKRxUh6f8+KQyjC5DSmiw/r+jgFe/WHh067aW+WU8nA9Ytw9ag7OhzxEkQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@supabase/node-fetch": "2.6.15"
+ }
+ },
+ "node_modules/@supabase/supabase-js": {
+ "version": "2.74.0",
+ "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.74.0.tgz",
+ "integrity": "sha512-IEMM/V6gKdP+N/X31KDIczVzghDpiPWFGLNjS8Rus71KvV6y6ueLrrE/JGCHDrU+9pq5copF3iCa0YQh+9Lq9Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@supabase/auth-js": "2.74.0",
+ "@supabase/functions-js": "2.74.0",
+ "@supabase/node-fetch": "2.6.15",
+ "@supabase/postgrest-js": "2.74.0",
+ "@supabase/realtime-js": "2.74.0",
+ "@supabase/storage-js": "2.74.0"
+ }
+ },
+ "node_modules/@swc/core": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@swc/core/-/core-1.13.2.tgz",
+ "integrity": "sha512-YWqn+0IKXDhqVLKoac4v2tV6hJqB/wOh8/Br8zjqeqBkKa77Qb0Kw2i7LOFzjFNZbZaPH6AlMGlBwNrxaauaAg==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@swc/counter": "^0.1.3",
+ "@swc/types": "^0.1.23"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/swc"
+ },
+ "optionalDependencies": {
+ "@swc/core-darwin-arm64": "1.13.2",
+ "@swc/core-darwin-x64": "1.13.2",
+ "@swc/core-linux-arm-gnueabihf": "1.13.2",
+ "@swc/core-linux-arm64-gnu": "1.13.2",
+ "@swc/core-linux-arm64-musl": "1.13.2",
+ "@swc/core-linux-x64-gnu": "1.13.2",
+ "@swc/core-linux-x64-musl": "1.13.2",
+ "@swc/core-win32-arm64-msvc": "1.13.2",
+ "@swc/core-win32-ia32-msvc": "1.13.2",
+ "@swc/core-win32-x64-msvc": "1.13.2"
+ },
+ "peerDependencies": {
+ "@swc/helpers": ">=0.5.17"
+ },
+ "peerDependenciesMeta": {
+ "@swc/helpers": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@swc/core-darwin-arm64": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.13.2.tgz",
+ "integrity": "sha512-44p7ivuLSGFJ15Vly4ivLJjg3ARo4879LtEBAabcHhSZygpmkP8eyjyWxrH3OxkY1eRZSIJe8yRZPFw4kPXFPw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-darwin-x64": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.13.2.tgz",
+ "integrity": "sha512-Lb9EZi7X2XDAVmuUlBm2UvVAgSCbD3qKqDCxSI4jEOddzVOpNCnyZ/xEampdngUIyDDhhJLYU9duC+Mcsv5Y+A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-arm-gnueabihf": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.13.2.tgz",
+ "integrity": "sha512-9TDe/92ee1x57x+0OqL1huG4BeljVx0nWW4QOOxp8CCK67Rpc/HHl2wciJ0Kl9Dxf2NvpNtkPvqj9+BUmM9WVA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-arm64-gnu": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.13.2.tgz",
+ "integrity": "sha512-KJUSl56DBk7AWMAIEcU83zl5mg3vlQYhLELhjwRFkGFMvghQvdqQ3zFOYa4TexKA7noBZa3C8fb24rI5sw9Exg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-arm64-musl": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.13.2.tgz",
+ "integrity": "sha512-teU27iG1oyWpNh9CzcGQ48ClDRt/RCem7mYO7ehd2FY102UeTws2+OzLESS1TS1tEZipq/5xwx3FzbVgiolCiQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-x64-gnu": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.13.2.tgz",
+ "integrity": "sha512-dRPsyPyqpLD0HMRCRpYALIh4kdOir8pPg4AhNQZLehKowigRd30RcLXGNVZcc31Ua8CiPI4QSgjOIxK+EQe4LQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-linux-x64-musl": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.13.2.tgz",
+ "integrity": "sha512-CCxETW+KkYEQDqz1SYC15YIWYheqFC+PJVOW76Maa/8yu8Biw+HTAcblKf2isrlUtK8RvrQN94v3UXkC2NzCEw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-win32-arm64-msvc": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.13.2.tgz",
+ "integrity": "sha512-Wv/QTA6PjyRLlmKcN6AmSI4jwSMRl0VTLGs57PHTqYRwwfwd7y4s2fIPJVBNbAlXd795dOEP6d/bGSQSyhOX3A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-win32-ia32-msvc": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.13.2.tgz",
+ "integrity": "sha512-PuCdtNynEkUNbUXX/wsyUC+t4mamIU5y00lT5vJcAvco3/r16Iaxl5UCzhXYaWZSNVZMzPp9qN8NlSL8M5pPxw==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/core-win32-x64-msvc": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.13.2.tgz",
+ "integrity": "sha512-qlmMkFZJus8cYuBURx1a3YAG2G7IW44i+FEYV5/32ylKkzGNAr9tDJSA53XNnNXkAB5EXSPsOz7bn5C3JlEtdQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@swc/counter": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz",
+ "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/@swc/types": {
+ "version": "0.1.23",
+ "resolved": "https://registry.npmjs.org/@swc/types/-/types-0.1.23.tgz",
+ "integrity": "sha512-u1iIVZV9Q0jxY+yM2vw/hZGDNudsN85bBpTqzAQ9rzkxW9D+e3aEM4Han+ow518gSewkXgjmEK0BD79ZcNVgPw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@swc/counter": "^0.1.3"
+ }
+ },
+ "node_modules/@tailwindcss/typography": {
+ "version": "0.5.16",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.16.tgz",
+ "integrity": "sha512-0wDLwCVF5V3x3b1SGXPCDcdsbDHMBe+lkFzBRaHeLvNi+nrrnZ1lA18u+OTWO8iSWU2GxUOCvlXtDuqftc1oiA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "lodash.castarray": "^4.4.0",
+ "lodash.isplainobject": "^4.0.6",
+ "lodash.merge": "^4.6.2",
+ "postcss-selector-parser": "6.0.10"
+ },
+ "peerDependencies": {
+ "tailwindcss": ">=3.0.0 || insiders || >=4.0.0-alpha.20 || >=4.0.0-beta.1"
+ }
+ },
+ "node_modules/@tailwindcss/typography/node_modules/postcss-selector-parser": {
+ "version": "6.0.10",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz",
+ "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==",
+ "dev": true,
+ "dependencies": {
+ "cssesc": "^3.0.0",
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/@tanstack/query-core": {
+ "version": "5.83.0",
+ "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.83.0.tgz",
+ "integrity": "sha512-0M8dA+amXUkyz5cVUm/B+zSk3xkQAcuXuz5/Q/LveT4ots2rBpPTZOzd7yJa2Utsf8D2Upl5KyjhHRY+9lB/XA==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/tannerlinsley"
+ }
+ },
+ "node_modules/@tanstack/react-query": {
+ "version": "5.83.0",
+ "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.83.0.tgz",
+ "integrity": "sha512-/XGYhZ3foc5H0VM2jLSD/NyBRIOK4q9kfeml4+0x2DlL6xVuAcVEW+hTlTapAmejObg0i3eNqhkr2dT+eciwoQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@tanstack/query-core": "5.83.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/tannerlinsley"
+ },
+ "peerDependencies": {
+ "react": "^18 || ^19"
+ }
+ },
+ "node_modules/@types/d3": {
+ "version": "7.4.3",
+ "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz",
+ "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-array": "*",
+ "@types/d3-axis": "*",
+ "@types/d3-brush": "*",
+ "@types/d3-chord": "*",
+ "@types/d3-color": "*",
+ "@types/d3-contour": "*",
+ "@types/d3-delaunay": "*",
+ "@types/d3-dispatch": "*",
+ "@types/d3-drag": "*",
+ "@types/d3-dsv": "*",
+ "@types/d3-ease": "*",
+ "@types/d3-fetch": "*",
+ "@types/d3-force": "*",
+ "@types/d3-format": "*",
+ "@types/d3-geo": "*",
+ "@types/d3-hierarchy": "*",
+ "@types/d3-interpolate": "*",
+ "@types/d3-path": "*",
+ "@types/d3-polygon": "*",
+ "@types/d3-quadtree": "*",
+ "@types/d3-random": "*",
+ "@types/d3-scale": "*",
+ "@types/d3-scale-chromatic": "*",
+ "@types/d3-selection": "*",
+ "@types/d3-shape": "*",
+ "@types/d3-time": "*",
+ "@types/d3-time-format": "*",
+ "@types/d3-timer": "*",
+ "@types/d3-transition": "*",
+ "@types/d3-zoom": "*"
+ }
+ },
+ "node_modules/@types/d3-array": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.1.tgz",
+ "integrity": "sha512-Y2Jn2idRrLzUfAKV2LyRImR+y4oa2AntrgID95SHJxuMUrkNXmanDSed71sRNZysveJVt1hLLemQZIady0FpEg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-axis": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz",
+ "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-selection": "*"
+ }
+ },
+ "node_modules/@types/d3-brush": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz",
+ "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-selection": "*"
+ }
+ },
+ "node_modules/@types/d3-chord": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz",
+ "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-color": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz",
+ "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-contour": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz",
+ "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-array": "*",
+ "@types/geojson": "*"
+ }
+ },
+ "node_modules/@types/d3-delaunay": {
+ "version": "6.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz",
+ "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-dispatch": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.7.tgz",
+ "integrity": "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-drag": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz",
+ "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-selection": "*"
+ }
+ },
+ "node_modules/@types/d3-dsv": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz",
+ "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-ease": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz",
+ "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-fetch": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz",
+ "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-dsv": "*"
+ }
+ },
+ "node_modules/@types/d3-force": {
+ "version": "3.0.10",
+ "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz",
+ "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-format": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz",
+ "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-geo": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.0.tgz",
+ "integrity": "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/geojson": "*"
+ }
+ },
+ "node_modules/@types/d3-hierarchy": {
+ "version": "3.1.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz",
+ "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-interpolate": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz",
+ "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-color": "*"
+ }
+ },
+ "node_modules/@types/d3-path": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.0.tgz",
+ "integrity": "sha512-P2dlU/q51fkOc/Gfl3Ul9kicV7l+ra934qBFXCFhrZMOL6du1TM0pm1ThYvENukyOn5h9v+yMJ9Fn5JK4QozrQ==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-polygon": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz",
+ "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-quadtree": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz",
+ "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-random": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.3.tgz",
+ "integrity": "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-scale": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.8.tgz",
+ "integrity": "sha512-gkK1VVTr5iNiYJ7vWDI+yUFFlszhNMtVeneJ6lUTKPjprsvLLI9/tgEGiXJOnlINJA8FyA88gfnQsHbybVZrYQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-time": "*"
+ }
+ },
+ "node_modules/@types/d3-scale-chromatic": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz",
+ "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-selection": {
+ "version": "3.0.11",
+ "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz",
+ "integrity": "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-shape": {
+ "version": "3.1.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.6.tgz",
+ "integrity": "sha512-5KKk5aKGu2I+O6SONMYSNflgiP0WfZIQvVUMan50wHsLG1G94JlxEVnCpQARfTtzytuY0p/9PXXZb3I7giofIA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-path": "*"
+ }
+ },
+ "node_modules/@types/d3-time": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.3.tgz",
+ "integrity": "sha512-2p6olUZ4w3s+07q3Tm2dbiMZy5pCDfYwtLXXHUnVzXgQlZ/OyPtUz6OL382BkOuGlLXqfT+wqv8Fw2v8/0geBw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-time-format": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz",
+ "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-timer": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz",
+ "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==",
+ "license": "MIT"
+ },
+ "node_modules/@types/d3-transition": {
+ "version": "3.0.9",
+ "resolved": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.9.tgz",
+ "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-selection": "*"
+ }
+ },
+ "node_modules/@types/d3-zoom": {
+ "version": "3.0.8",
+ "resolved": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.8.tgz",
+ "integrity": "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/d3-interpolate": "*",
+ "@types/d3-selection": "*"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",
+ "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/geojson": {
+ "version": "7946.0.16",
+ "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz",
+ "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==",
+ "license": "MIT"
+ },
+ "node_modules/@types/json-schema": {
+ "version": "7.0.15",
+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/node": {
+ "version": "22.16.5",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.16.5.tgz",
+ "integrity": "sha512-bJFoMATwIGaxxx8VJPeM8TonI8t579oRvgAuT8zFugJsJZgzqv0Fu8Mhp68iecjzG7cnN3mO2dJQ5uUM2EFrgQ==",
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~6.21.0"
+ }
+ },
+ "node_modules/@types/phoenix": {
+ "version": "1.6.6",
+ "resolved": "https://registry.npmjs.org/@types/phoenix/-/phoenix-1.6.6.tgz",
+ "integrity": "sha512-PIzZZlEppgrpoT2QgbnDU+MMzuR6BbCjllj0bM70lWoejMeNJAxCchxnv7J3XFkI8MpygtRpzXrIlmWUBclP5A==",
+ "license": "MIT"
+ },
+ "node_modules/@types/prop-types": {
+ "version": "15.7.13",
+ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.13.tgz",
+ "integrity": "sha512-hCZTSvwbzWGvhqxp/RqVqwU999pBf2vp7hzIjiYOsl8wqOmUxkQ6ddw1cV3l8811+kdUFus/q4d1Y3E3SyEifA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/react": {
+ "version": "18.3.23",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.23.tgz",
+ "integrity": "sha512-/LDXMQh55EzZQ0uVAZmKKhfENivEvWz6E+EYzh+/MCjMhNsotd+ZHhBGIjFDTi6+fz0OhQQQLbTgdQIxxCsC0w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/prop-types": "*",
+ "csstype": "^3.0.2"
+ }
+ },
+ "node_modules/@types/react-dom": {
+ "version": "18.3.7",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",
+ "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "^18.0.0"
+ }
+ },
+ "node_modules/@types/ws": {
+ "version": "8.18.1",
+ "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz",
+ "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@typescript-eslint/eslint-plugin": {
+ "version": "8.38.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.38.0.tgz",
+ "integrity": "sha512-CPoznzpuAnIOl4nhj4tRr4gIPj5AfKgkiJmGQDaq+fQnRJTYlcBjbX3wbciGmpoPf8DREufuPRe1tNMZnGdanA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/regexpp": "^4.10.0",
+ "@typescript-eslint/scope-manager": "8.38.0",
+ "@typescript-eslint/type-utils": "8.38.0",
+ "@typescript-eslint/utils": "8.38.0",
+ "@typescript-eslint/visitor-keys": "8.38.0",
+ "graphemer": "^1.4.0",
+ "ignore": "^7.0.0",
+ "natural-compare": "^1.4.0",
+ "ts-api-utils": "^2.1.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "@typescript-eslint/parser": "^8.38.0",
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {
+ "version": "7.0.5",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz",
+ "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/@typescript-eslint/parser": {
+ "version": "8.38.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.38.0.tgz",
+ "integrity": "sha512-Zhy8HCvBUEfBECzIl1PKqF4p11+d0aUJS1GeUiuqK9WmOug8YCmC4h4bjyBvMyAMI9sbRczmrYL5lKg/YMbrcQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/scope-manager": "8.38.0",
+ "@typescript-eslint/types": "8.38.0",
+ "@typescript-eslint/typescript-estree": "8.38.0",
+ "@typescript-eslint/visitor-keys": "8.38.0",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/project-service": {
+ "version": "8.38.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.38.0.tgz",
+ "integrity": "sha512-dbK7Jvqcb8c9QfH01YB6pORpqX1mn5gDZc9n63Ak/+jD67oWXn3Gs0M6vddAN+eDXBCS5EmNWzbSxsn9SzFWWg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/tsconfig-utils": "^8.38.0",
+ "@typescript-eslint/types": "^8.38.0",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/scope-manager": {
+ "version": "8.38.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.38.0.tgz",
+ "integrity": "sha512-WJw3AVlFFcdT9Ri1xs/lg8LwDqgekWXWhH3iAF+1ZM+QPd7oxQ6jvtW/JPwzAScxitILUIFs0/AnQ/UWHzbATQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.38.0",
+ "@typescript-eslint/visitor-keys": "8.38.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/tsconfig-utils": {
+ "version": "8.38.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.38.0.tgz",
+ "integrity": "sha512-Lum9RtSE3EroKk/bYns+sPOodqb2Fv50XOl/gMviMKNvanETUuUcC9ObRbzrJ4VSd2JalPqgSAavwrPiPvnAiQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/type-utils": {
+ "version": "8.38.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.38.0.tgz",
+ "integrity": "sha512-c7jAvGEZVf0ao2z+nnz8BUaHZD09Agbh+DY7qvBQqLiz8uJzRgVPj5YvOh8I8uEiH8oIUGIfHzMwUcGVco/SJg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.38.0",
+ "@typescript-eslint/typescript-estree": "8.38.0",
+ "@typescript-eslint/utils": "8.38.0",
+ "debug": "^4.3.4",
+ "ts-api-utils": "^2.1.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/types": {
+ "version": "8.38.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.38.0.tgz",
+ "integrity": "sha512-wzkUfX3plUqij4YwWaJyqhiPE5UCRVlFpKn1oCRn2O1bJ592XxWJj8ROQ3JD5MYXLORW84063z3tZTb/cs4Tyw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree": {
+ "version": "8.38.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.38.0.tgz",
+ "integrity": "sha512-fooELKcAKzxux6fA6pxOflpNS0jc+nOQEEOipXFNjSlBS6fqrJOVY/whSn70SScHrcJ2LDsxWrneFoWYSVfqhQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/project-service": "8.38.0",
+ "@typescript-eslint/tsconfig-utils": "8.38.0",
+ "@typescript-eslint/types": "8.38.0",
+ "@typescript-eslint/visitor-keys": "8.38.0",
+ "debug": "^4.3.4",
+ "fast-glob": "^3.3.2",
+ "is-glob": "^4.0.3",
+ "minimatch": "^9.0.4",
+ "semver": "^7.6.0",
+ "ts-api-utils": "^2.1.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
+ "version": "9.0.5",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
+ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/@typescript-eslint/utils": {
+ "version": "8.38.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.38.0.tgz",
+ "integrity": "sha512-hHcMA86Hgt+ijJlrD8fX0j1j8w4C92zue/8LOPAFioIno+W0+L7KqE8QZKCcPGc/92Vs9x36w/4MPTJhqXdyvg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.7.0",
+ "@typescript-eslint/scope-manager": "8.38.0",
+ "@typescript-eslint/types": "8.38.0",
+ "@typescript-eslint/typescript-estree": "8.38.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/@typescript-eslint/visitor-keys": {
+ "version": "8.38.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.38.0.tgz",
+ "integrity": "sha512-pWrTcoFNWuwHlA9CvlfSsGWs14JxfN1TH25zM5L7o0pRLhsoZkDnTsXfQRJBEWJoV5DL0jf+Z+sxiud+K0mq1g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/types": "8.38.0",
+ "eslint-visitor-keys": "^4.2.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
+ "node_modules/@vitejs/plugin-react-swc": {
+ "version": "3.11.0",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react-swc/-/plugin-react-swc-3.11.0.tgz",
+ "integrity": "sha512-YTJCGFdNMHCMfjODYtxRNVAYmTWQ1Lb8PulP/2/f/oEEtglw8oKxKIZmmRkyXrVrHfsKOaVkAc3NT9/dMutO5w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@rolldown/pluginutils": "1.0.0-beta.27",
+ "@swc/core": "^1.12.11"
+ },
+ "peerDependencies": {
+ "vite": "^4 || ^5 || ^6 || ^7"
+ }
+ },
+ "node_modules/acorn": {
+ "version": "8.15.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
+ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/acorn-jsx": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "6.12.6",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fast-deep-equal": "^3.1.1",
+ "fast-json-stable-stringify": "^2.0.0",
+ "json-schema-traverse": "^0.4.1",
+ "uri-js": "^4.2.2"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/epoberezkin"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz",
+ "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/any-promise": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/anymatch": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/arg": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true,
+ "license": "Python-2.0"
+ },
+ "node_modules/aria-hidden": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.4.tgz",
+ "integrity": "sha512-y+CcFFwelSXpLZk/7fMB2mUbGtX9lKycf1MWJ7CaTIERyitVlyQx6C+sxcROU2BAJ24OiZyK+8wj2i8AlBoS3A==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/autoprefixer": {
+ "version": "10.4.21",
+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.21.tgz",
+ "integrity": "sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/autoprefixer"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "browserslist": "^4.24.4",
+ "caniuse-lite": "^1.0.30001702",
+ "fraction.js": "^4.3.7",
+ "normalize-range": "^0.1.2",
+ "picocolors": "^1.1.1",
+ "postcss-value-parser": "^4.2.0"
+ },
+ "bin": {
+ "autoprefixer": "bin/autoprefixer"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/binary-extensions": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "1.1.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",
+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fill-range": "^7.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.25.1",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.1.tgz",
+ "integrity": "sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "caniuse-lite": "^1.0.30001726",
+ "electron-to-chromium": "^1.5.173",
+ "node-releases": "^2.0.19",
+ "update-browserslist-db": "^1.1.3"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/callsites": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/camelcase-css": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
+ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001727",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001727.tgz",
+ "integrity": "sha512-pB68nIHmbN6L/4C6MH1DokyR3bYqFwjaSs/sWDHGj4CTcFtQUQMuJftVwWkXq7mNWOybD3KhUv3oWHoGxgP14Q==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/chokidar": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ },
+ "engines": {
+ "node": ">= 8.10.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/chokidar/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/class-variance-authority": {
+ "version": "0.7.1",
+ "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz",
+ "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==",
+ "dependencies": {
+ "clsx": "^2.1.1"
+ },
+ "funding": {
+ "url": "https://polar.sh/cva"
+ }
+ },
+ "node_modules/classcat": {
+ "version": "5.0.5",
+ "resolved": "https://registry.npmjs.org/classcat/-/classcat-5.0.5.tgz",
+ "integrity": "sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==",
+ "license": "MIT"
+ },
+ "node_modules/clsx": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/cmdk": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/cmdk/-/cmdk-1.1.1.tgz",
+ "integrity": "sha512-Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-compose-refs": "^1.1.1",
+ "@radix-ui/react-dialog": "^1.1.6",
+ "@radix-ui/react-id": "^1.1.0",
+ "@radix-ui/react-primitive": "^2.0.2"
+ },
+ "peerDependencies": {
+ "react": "^18 || ^19 || ^19.0.0-rc",
+ "react-dom": "^18 || ^19 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/commander": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "dev": true,
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/cssesc": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "cssesc": "bin/cssesc"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
+ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
+ "license": "MIT"
+ },
+ "node_modules/d3-array": {
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz",
+ "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==",
+ "license": "ISC",
+ "dependencies": {
+ "internmap": "1 - 2"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-color": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz",
+ "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-dispatch": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz",
+ "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-drag": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz",
+ "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-dispatch": "1 - 3",
+ "d3-selection": "3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-ease": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz",
+ "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-format": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.0.tgz",
+ "integrity": "sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-interpolate": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz",
+ "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-color": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-path": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz",
+ "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-scale": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz",
+ "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "2.10.0 - 3",
+ "d3-format": "1 - 3",
+ "d3-interpolate": "1.2.0 - 3",
+ "d3-time": "2.1.1 - 3",
+ "d3-time-format": "2 - 4"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-selection": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz",
+ "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-shape": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz",
+ "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-path": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-time": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz",
+ "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-array": "2 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-time-format": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz",
+ "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-time": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-timer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz",
+ "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/d3-transition": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz",
+ "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-color": "1 - 3",
+ "d3-dispatch": "1 - 3",
+ "d3-ease": "1 - 3",
+ "d3-interpolate": "1 - 3",
+ "d3-timer": "1 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "peerDependencies": {
+ "d3-selection": "2 - 3"
+ }
+ },
+ "node_modules/d3-zoom": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz",
+ "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==",
+ "license": "ISC",
+ "dependencies": {
+ "d3-dispatch": "1 - 3",
+ "d3-drag": "2 - 3",
+ "d3-interpolate": "1 - 3",
+ "d3-selection": "2 - 3",
+ "d3-transition": "2 - 3"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/date-fns": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.6.0.tgz",
+ "integrity": "sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/kossnocorp"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.3.7",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/decimal.js-light": {
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz",
+ "integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==",
+ "license": "MIT"
+ },
+ "node_modules/deep-is": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/detect-node-es": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",
+ "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==",
+ "license": "MIT"
+ },
+ "node_modules/didyoumean": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
+ "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/dlv": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/dom-helpers": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz",
+ "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==",
+ "license": "MIT",
+ "dependencies": {
+ "@babel/runtime": "^7.8.7",
+ "csstype": "^3.0.2"
+ }
+ },
+ "node_modules/eastasianwidth": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",
+ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.192",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.192.tgz",
+ "integrity": "sha512-rP8Ez0w7UNw/9j5eSXCe10o1g/8B1P5SM90PCCMVkIRQn2R0LEHWz4Eh9RnxkniuDe1W0cTSOB3MLlkTGDcuCg==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/embla-carousel": {
+ "version": "8.6.0",
+ "resolved": "https://registry.npmjs.org/embla-carousel/-/embla-carousel-8.6.0.tgz",
+ "integrity": "sha512-SjWyZBHJPbqxHOzckOfo8lHisEaJWmwd23XppYFYVh10bU66/Pn5tkVkbkCMZVdbUE5eTCI2nD8OyIP4Z+uwkA==",
+ "license": "MIT"
+ },
+ "node_modules/embla-carousel-react": {
+ "version": "8.6.0",
+ "resolved": "https://registry.npmjs.org/embla-carousel-react/-/embla-carousel-react-8.6.0.tgz",
+ "integrity": "sha512-0/PjqU7geVmo6F734pmPqpyHqiM99olvyecY7zdweCw+6tKEXnrE90pBiBbMMU8s5tICemzpQ3hi5EpxzGW+JA==",
+ "license": "MIT",
+ "dependencies": {
+ "embla-carousel": "8.6.0",
+ "embla-carousel-reactive-utils": "8.6.0"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.1 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/embla-carousel-reactive-utils": {
+ "version": "8.6.0",
+ "resolved": "https://registry.npmjs.org/embla-carousel-reactive-utils/-/embla-carousel-reactive-utils-8.6.0.tgz",
+ "integrity": "sha512-fMVUDUEx0/uIEDM0Mz3dHznDhfX+znCCDCeIophYb1QGVM7YThSWX+wz11zlYwWFOr74b4QLGg0hrGPJeG2s4A==",
+ "license": "MIT",
+ "peerDependencies": {
+ "embla-carousel": "8.6.0"
+ }
+ },
+ "node_modules/emoji-regex": {
+ "version": "9.2.2",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",
+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/esbuild": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",
+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.21.5",
+ "@esbuild/android-arm": "0.21.5",
+ "@esbuild/android-arm64": "0.21.5",
+ "@esbuild/android-x64": "0.21.5",
+ "@esbuild/darwin-arm64": "0.21.5",
+ "@esbuild/darwin-x64": "0.21.5",
+ "@esbuild/freebsd-arm64": "0.21.5",
+ "@esbuild/freebsd-x64": "0.21.5",
+ "@esbuild/linux-arm": "0.21.5",
+ "@esbuild/linux-arm64": "0.21.5",
+ "@esbuild/linux-ia32": "0.21.5",
+ "@esbuild/linux-loong64": "0.21.5",
+ "@esbuild/linux-mips64el": "0.21.5",
+ "@esbuild/linux-ppc64": "0.21.5",
+ "@esbuild/linux-riscv64": "0.21.5",
+ "@esbuild/linux-s390x": "0.21.5",
+ "@esbuild/linux-x64": "0.21.5",
+ "@esbuild/netbsd-x64": "0.21.5",
+ "@esbuild/openbsd-x64": "0.21.5",
+ "@esbuild/sunos-x64": "0.21.5",
+ "@esbuild/win32-arm64": "0.21.5",
+ "@esbuild/win32-ia32": "0.21.5",
+ "@esbuild/win32-x64": "0.21.5"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/eslint": {
+ "version": "9.32.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.32.0.tgz",
+ "integrity": "sha512-LSehfdpgMeWcTZkWZVIJl+tkZ2nuSkyyB9C27MZqFWXuph7DvaowgcTvKqxvpLW1JZIk8PN7hFY3Rj9LQ7m7lg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@eslint-community/eslint-utils": "^4.2.0",
+ "@eslint-community/regexpp": "^4.12.1",
+ "@eslint/config-array": "^0.21.0",
+ "@eslint/config-helpers": "^0.3.0",
+ "@eslint/core": "^0.15.0",
+ "@eslint/eslintrc": "^3.3.1",
+ "@eslint/js": "9.32.0",
+ "@eslint/plugin-kit": "^0.3.4",
+ "@humanfs/node": "^0.16.6",
+ "@humanwhocodes/module-importer": "^1.0.1",
+ "@humanwhocodes/retry": "^0.4.2",
+ "@types/estree": "^1.0.6",
+ "@types/json-schema": "^7.0.15",
+ "ajv": "^6.12.4",
+ "chalk": "^4.0.0",
+ "cross-spawn": "^7.0.6",
+ "debug": "^4.3.2",
+ "escape-string-regexp": "^4.0.0",
+ "eslint-scope": "^8.4.0",
+ "eslint-visitor-keys": "^4.2.1",
+ "espree": "^10.4.0",
+ "esquery": "^1.5.0",
+ "esutils": "^2.0.2",
+ "fast-deep-equal": "^3.1.3",
+ "file-entry-cache": "^8.0.0",
+ "find-up": "^5.0.0",
+ "glob-parent": "^6.0.2",
+ "ignore": "^5.2.0",
+ "imurmurhash": "^0.1.4",
+ "is-glob": "^4.0.0",
+ "json-stable-stringify-without-jsonify": "^1.0.1",
+ "lodash.merge": "^4.6.2",
+ "minimatch": "^3.1.2",
+ "natural-compare": "^1.4.0",
+ "optionator": "^0.9.3"
+ },
+ "bin": {
+ "eslint": "bin/eslint.js"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "jiti": "*"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/eslint-plugin-react-hooks": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz",
+ "integrity": "sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0"
+ }
+ },
+ "node_modules/eslint-plugin-react-refresh": {
+ "version": "0.4.20",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.20.tgz",
+ "integrity": "sha512-XpbHQ2q5gUF8BGOX4dHe+71qoirYMhApEPZ7sfhF/dNnOF1UXnCMGZf79SFTBO7Bz5YEIT4TMieSlJBWhP9WBA==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "eslint": ">=8.40"
+ }
+ },
+ "node_modules/eslint-scope": {
+ "version": "8.4.0",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz",
+ "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "esrecurse": "^4.3.0",
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/eslint-visitor-keys": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",
+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree": {
+ "version": "10.4.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",
+ "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "acorn": "^8.15.0",
+ "acorn-jsx": "^5.3.2",
+ "eslint-visitor-keys": "^4.2.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/esquery": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz",
+ "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "estraverse": "^5.1.0"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
+ "node_modules/esrecurse": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "estraverse": "^5.2.0"
+ },
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estraverse": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",
+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=4.0"
+ }
+ },
+ "node_modules/estree-walker": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.0"
+ }
+ },
+ "node_modules/esutils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/eventemitter3": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
+ "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==",
+ "license": "MIT"
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-equals": {
+ "version": "5.2.2",
+ "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-5.2.2.tgz",
+ "integrity": "sha512-V7/RktU11J3I36Nwq2JnZEM7tNm17eBJz+u25qdxBZeCKiX6BkVSZQjwWIr+IobgnZy+ag73tTZgZi7tr0LrBw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/fast-glob": {
+ "version": "3.3.2",
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz",
+ "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/fast-glob/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/fast-json-stable-stringify": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-levenshtein": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fastq": {
+ "version": "1.17.1",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz",
+ "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/file-entry-cache": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flat-cache": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/find-up": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "locate-path": "^6.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/flat-cache": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.4"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/flatted": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz",
+ "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/foreground-child": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz",
+ "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "cross-spawn": "^7.0.0",
+ "signal-exit": "^4.0.1"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/fraction.js": {
+ "version": "4.3.7",
+ "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",
+ "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "type": "patreon",
+ "url": "https://github.com/sponsors/rawify"
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-nonce": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",
+ "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/glob": {
+ "version": "10.4.5",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz",
+ "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "foreground-child": "^3.1.0",
+ "jackspeak": "^3.1.2",
+ "minimatch": "^9.0.4",
+ "minipass": "^7.1.2",
+ "package-json-from-dist": "^1.0.0",
+ "path-scurry": "^1.11.1"
+ },
+ "bin": {
+ "glob": "dist/esm/bin.mjs"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/glob/node_modules/brace-expansion": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/glob/node_modules/minimatch": {
+ "version": "9.0.5",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
+ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/globals": {
+ "version": "15.15.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz",
+ "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/graphemer": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
+ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/ignore": {
+ "version": "5.3.2",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",
+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/import-fresh": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",
+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.8.19"
+ }
+ },
+ "node_modules/input-otp": {
+ "version": "1.4.2",
+ "resolved": "https://registry.npmjs.org/input-otp/-/input-otp-1.4.2.tgz",
+ "integrity": "sha512-l3jWwYNvrEa6NTCt7BECfCm48GvwuZzkoeG3gBL2w4CHeOXW3eKFmf9UNYkNfYc3mxMrthMnxjIE07MT0zLBQA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/internmap": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz",
+ "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "binary-extensions": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-core-module": {
+ "version": "2.15.1",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz",
+ "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/jackspeak": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",
+ "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "@isaacs/cliui": "^8.0.2"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ },
+ "optionalDependencies": {
+ "@pkgjs/parseargs": "^0.11.0"
+ }
+ },
+ "node_modules/jiti": {
+ "version": "1.21.6",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.6.tgz",
+ "integrity": "sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "bin/jiti.js"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "license": "MIT"
+ },
+ "node_modules/js-yaml": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-stable-stringify-without-jsonify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",
+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/keyv": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
+ "node_modules/levn": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1",
+ "type-check": "~0.4.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/lilconfig": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",
+ "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antonk52"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/locate-path": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-locate": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/lodash": {
+ "version": "4.17.21",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
+ "license": "MIT"
+ },
+ "node_modules/lodash.castarray": {
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/lodash.castarray/-/lodash.castarray-4.4.0.tgz",
+ "integrity": "sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==",
+ "dev": true
+ },
+ "node_modules/lodash.isplainobject": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",
+ "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",
+ "dev": true
+ },
+ "node_modules/lodash.merge": {
+ "version": "4.6.2",
+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "js-tokens": "^3.0.0 || ^4.0.0"
+ },
+ "bin": {
+ "loose-envify": "cli.js"
+ }
+ },
+ "node_modules/lovable-tagger": {
+ "version": "1.1.10",
+ "resolved": "https://registry.npmjs.org/lovable-tagger/-/lovable-tagger-1.1.10.tgz",
+ "integrity": "sha512-LbYaxi6vgrqg7Sq93/cRbIM78EP+X+GUU7spx804yqB2bxfiOej8UvcZHeE4WqMjAFI2dHGhXpy8r6SnvmrzGg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.25.9",
+ "@babel/types": "^7.25.8",
+ "esbuild": "^0.25.0",
+ "estree-walker": "^3.0.3",
+ "magic-string": "^0.30.12",
+ "tailwindcss": "^3.4.17"
+ },
+ "peerDependencies": {
+ "vite": ">=5.0.0 <8.0.0"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/aix-ppc64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.0.tgz",
+ "integrity": "sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/android-arm": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.0.tgz",
+ "integrity": "sha512-PTyWCYYiU0+1eJKmw21lWtC+d08JDZPQ5g+kFyxP0V+es6VPPSUhM6zk8iImp2jbV6GwjX4pap0JFbUQN65X1g==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/android-arm64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.0.tgz",
+ "integrity": "sha512-grvv8WncGjDSyUBjN9yHXNt+cq0snxXbDxy5pJtzMKGmmpPxeAmAhWxXI+01lU5rwZomDgD3kJwulEnhTRUd6g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/android-x64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.0.tgz",
+ "integrity": "sha512-m/ix7SfKG5buCnxasr52+LI78SQ+wgdENi9CqyCXwjVR2X4Jkz+BpC3le3AoBPYTC9NHklwngVXvbJ9/Akhrfg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/darwin-arm64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.0.tgz",
+ "integrity": "sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/darwin-x64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.0.tgz",
+ "integrity": "sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.0.tgz",
+ "integrity": "sha512-VN4ocxy6dxefN1MepBx/iD1dH5K8qNtNe227I0mnTRjry8tj5MRk4zprLEdG8WPyAPb93/e4pSgi1SoHdgOa4w==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/freebsd-x64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.0.tgz",
+ "integrity": "sha512-mrSgt7lCh07FY+hDD1TxiTyIHyttn6vnjesnPoVDNmDfOmggTLXRv8Id5fNZey1gl/V2dyVK1VXXqVsQIiAk+A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/linux-arm": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.0.tgz",
+ "integrity": "sha512-vkB3IYj2IDo3g9xX7HqhPYxVkNQe8qTK55fraQyTzTX/fxaDtXiEnavv9geOsonh2Fd2RMB+i5cbhu2zMNWJwg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/linux-arm64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.0.tgz",
+ "integrity": "sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/linux-ia32": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.0.tgz",
+ "integrity": "sha512-43ET5bHbphBegyeqLb7I1eYn2P/JYGNmzzdidq/w0T8E2SsYL1U6un2NFROFRg1JZLTzdCoRomg8Rvf9M6W6Gg==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/linux-loong64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.0.tgz",
+ "integrity": "sha512-fC95c/xyNFueMhClxJmeRIj2yrSMdDfmqJnyOY4ZqsALkDrrKJfIg5NTMSzVBr5YW1jf+l7/cndBfP3MSDpoHw==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/linux-mips64el": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.0.tgz",
+ "integrity": "sha512-nkAMFju7KDW73T1DdH7glcyIptm95a7Le8irTQNO/qtkoyypZAnjchQgooFUDQhNAy4iu08N79W4T4pMBwhPwQ==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/linux-ppc64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.0.tgz",
+ "integrity": "sha512-NhyOejdhRGS8Iwv+KKR2zTq2PpysF9XqY+Zk77vQHqNbo/PwZCzB5/h7VGuREZm1fixhs4Q/qWRSi5zmAiO4Fw==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/linux-riscv64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.0.tgz",
+ "integrity": "sha512-5S/rbP5OY+GHLC5qXp1y/Mx//e92L1YDqkiBbO9TQOvuFXM+iDqUNG5XopAnXoRH3FjIUDkeGcY1cgNvnXp/kA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/linux-s390x": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.0.tgz",
+ "integrity": "sha512-XM2BFsEBz0Fw37V0zU4CXfcfuACMrppsMFKdYY2WuTS3yi8O1nFOhil/xhKTmE1nPmVyvQJjJivgDT+xh8pXJA==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/linux-x64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.0.tgz",
+ "integrity": "sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/netbsd-x64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.0.tgz",
+ "integrity": "sha512-jl+qisSB5jk01N5f7sPCsBENCOlPiS/xptD5yxOx2oqQfyourJwIKLRA2yqWdifj3owQZCL2sn6o08dBzZGQzA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/openbsd-x64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.0.tgz",
+ "integrity": "sha512-2gwwriSMPcCFRlPlKx3zLQhfN/2WjJ2NSlg5TKLQOJdV0mSxIcYNTMhk3H3ulL/cak+Xj0lY1Ym9ysDV1igceg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/sunos-x64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.0.tgz",
+ "integrity": "sha512-bxI7ThgLzPrPz484/S9jLlvUAHYMzy6I0XiU1ZMeAEOBcS0VePBFxh1JjTQt3Xiat5b6Oh4x7UC7IwKQKIJRIg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/win32-arm64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.0.tgz",
+ "integrity": "sha512-ZUAc2YK6JW89xTbXvftxdnYy3m4iHIkDtK3CLce8wg8M2L+YZhIvO1DKpxrd0Yr59AeNNkTiic9YLf6FTtXWMw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/win32-ia32": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.0.tgz",
+ "integrity": "sha512-eSNxISBu8XweVEWG31/JzjkIGbGIJN/TrRoiSVZwZ6pkC6VX4Im/WV2cz559/TXLcYbcrDN8JtKgd9DJVIo8GA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/@esbuild/win32-x64": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.0.tgz",
+ "integrity": "sha512-ZENoHJBxA20C2zFzh6AI4fT6RraMzjYw4xKWemRTRmRVtN9c5DcH9r/f2ihEkMjOW5eGgrwCslG/+Y/3bL+DHQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/lovable-tagger/node_modules/esbuild": {
+ "version": "0.25.0",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.0.tgz",
+ "integrity": "sha512-BXq5mqc8ltbaN34cDqWuYKyNhX8D/Z0J1xdtdQ8UcIIIyJyz+ZMKUt58tF3SrZ85jcfN/PZYhjR5uDQAYNVbuw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.25.0",
+ "@esbuild/android-arm": "0.25.0",
+ "@esbuild/android-arm64": "0.25.0",
+ "@esbuild/android-x64": "0.25.0",
+ "@esbuild/darwin-arm64": "0.25.0",
+ "@esbuild/darwin-x64": "0.25.0",
+ "@esbuild/freebsd-arm64": "0.25.0",
+ "@esbuild/freebsd-x64": "0.25.0",
+ "@esbuild/linux-arm": "0.25.0",
+ "@esbuild/linux-arm64": "0.25.0",
+ "@esbuild/linux-ia32": "0.25.0",
+ "@esbuild/linux-loong64": "0.25.0",
+ "@esbuild/linux-mips64el": "0.25.0",
+ "@esbuild/linux-ppc64": "0.25.0",
+ "@esbuild/linux-riscv64": "0.25.0",
+ "@esbuild/linux-s390x": "0.25.0",
+ "@esbuild/linux-x64": "0.25.0",
+ "@esbuild/netbsd-arm64": "0.25.0",
+ "@esbuild/netbsd-x64": "0.25.0",
+ "@esbuild/openbsd-arm64": "0.25.0",
+ "@esbuild/openbsd-x64": "0.25.0",
+ "@esbuild/sunos-x64": "0.25.0",
+ "@esbuild/win32-arm64": "0.25.0",
+ "@esbuild/win32-ia32": "0.25.0",
+ "@esbuild/win32-x64": "0.25.0"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "10.4.3",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",
+ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/lucide-react": {
+ "version": "0.462.0",
+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.462.0.tgz",
+ "integrity": "sha512-NTL7EbAao9IFtuSivSZgrAh4fZd09Lr+6MTkqIxuHaH2nnYiYIzXPo06cOxHg9wKLdj6LL8TByG4qpePqwgx/g==",
+ "peerDependencies": {
+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/magic-string": {
+ "version": "0.30.12",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.12.tgz",
+ "integrity": "sha512-Ea8I3sQMVXr8JhN4z+H/d8zwo+tYDgHE9+5G4Wnrwhs0gaK9fXTKx0Tw5Xwsd/bCPTTZNRAdpyzvoeORe9LYpw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0"
+ }
+ },
+ "node_modules/merge2": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "braces": "^3.0.3",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^1.1.7"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/minipass": {
+ "version": "7.1.2",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
+ "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/mz": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",
+ "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "any-promise": "^1.0.0",
+ "object-assign": "^4.0.1",
+ "thenify-all": "^1.0.0"
+ }
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.11",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/natural-compare": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/next-themes": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.3.0.tgz",
+ "integrity": "sha512-/QHIrsYpd6Kfk7xakK4svpDI5mmXP0gfvCoJdGpZQ2TOrQZmsW0QxjaiLn8wbIKjtm4BTSqLoix4lxYYOnLJ/w==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8 || ^17 || ^18",
+ "react-dom": "^16.8 || ^17 || ^18"
+ }
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.19",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz",
+ "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/normalize-range": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz",
+ "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-hash": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",
+ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/optionator": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",
+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "deep-is": "^0.1.3",
+ "fast-levenshtein": "^2.0.6",
+ "levn": "^0.4.1",
+ "prelude-ls": "^1.2.1",
+ "type-check": "^0.4.0",
+ "word-wrap": "^1.2.5"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "yocto-queue": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/p-locate": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",
+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "p-limit": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/package-json-from-dist": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
+ "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",
+ "dev": true,
+ "license": "BlueOak-1.0.0"
+ },
+ "node_modules/parent-module": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "callsites": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/path-scurry": {
+ "version": "1.11.1",
+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",
+ "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "lru-cache": "^10.2.0",
+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/pify": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+ "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/pirates": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz",
+ "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.6",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",
+ "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.11",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/postcss-import": {
+ "version": "15.1.0",
+ "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",
+ "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "postcss-value-parser": "^4.0.0",
+ "read-cache": "^1.0.0",
+ "resolve": "^1.1.7"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.0.0"
+ }
+ },
+ "node_modules/postcss-js": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz",
+ "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "camelcase-css": "^2.0.1"
+ },
+ "engines": {
+ "node": "^12 || ^14 || >= 16"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ "peerDependencies": {
+ "postcss": "^8.4.21"
+ }
+ },
+ "node_modules/postcss-load-config": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz",
+ "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "lilconfig": "^3.0.0",
+ "yaml": "^2.3.4"
+ },
+ "engines": {
+ "node": ">= 14"
+ },
+ "peerDependencies": {
+ "postcss": ">=8.0.9",
+ "ts-node": ">=9.0.0"
+ },
+ "peerDependenciesMeta": {
+ "postcss": {
+ "optional": true
+ },
+ "ts-node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/postcss-nested": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",
+ "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "postcss-selector-parser": "^6.1.1"
+ },
+ "engines": {
+ "node": ">=12.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.2.14"
+ }
+ },
+ "node_modules/postcss-selector-parser": {
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",
+ "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cssesc": "^3.0.0",
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/postcss-value-parser": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/prelude-ls": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
+ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/prop-types": {
+ "version": "15.8.1",
+ "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
+ "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.4.0",
+ "object-assign": "^4.1.1",
+ "react-is": "^16.13.1"
+ }
+ },
+ "node_modules/prop-types/node_modules/react-is": {
+ "version": "16.13.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
+ "license": "MIT"
+ },
+ "node_modules/punycode": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/queue-microtask": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/react": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
+ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-day-picker": {
+ "version": "8.10.1",
+ "resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-8.10.1.tgz",
+ "integrity": "sha512-TMx7fNbhLk15eqcMt+7Z7S2KF7mfTId/XJDjKE8f+IUcFn0l08/kI4FiYTL/0yuOLmEcbR4Fwe3GJf/NiiMnPA==",
+ "license": "MIT",
+ "funding": {
+ "type": "individual",
+ "url": "https://github.com/sponsors/gpbl"
+ },
+ "peerDependencies": {
+ "date-fns": "^2.28.0 || ^3.0.0",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
+ "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.1.0",
+ "scheduler": "^0.23.2"
+ },
+ "peerDependencies": {
+ "react": "^18.3.1"
+ }
+ },
+ "node_modules/react-hook-form": {
+ "version": "7.61.1",
+ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.61.1.tgz",
+ "integrity": "sha512-2vbXUFDYgqEgM2RcXcAT2PwDW/80QARi+PKmHy5q2KhuKvOlG8iIYgf7eIlIANR5trW9fJbP4r5aub3a4egsew==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/react-hook-form"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17 || ^18 || ^19"
+ }
+ },
+ "node_modules/react-is": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",
+ "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",
+ "license": "MIT"
+ },
+ "node_modules/react-remove-scroll": {
+ "version": "2.7.1",
+ "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.1.tgz",
+ "integrity": "sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA==",
+ "license": "MIT",
+ "dependencies": {
+ "react-remove-scroll-bar": "^2.3.7",
+ "react-style-singleton": "^2.2.3",
+ "tslib": "^2.1.0",
+ "use-callback-ref": "^1.3.3",
+ "use-sidecar": "^1.1.3"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-remove-scroll-bar": {
+ "version": "2.3.8",
+ "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz",
+ "integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==",
+ "license": "MIT",
+ "dependencies": {
+ "react-style-singleton": "^2.2.2",
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-resizable-panels": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/react-resizable-panels/-/react-resizable-panels-2.1.9.tgz",
+ "integrity": "sha512-z77+X08YDIrgAes4jl8xhnUu1LNIRp4+E7cv4xHmLOxxUPO/ML7PSrE813b90vj7xvQ1lcf7g2uA9GeMZonjhQ==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",
+ "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/react-router": {
+ "version": "6.30.1",
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.30.1.tgz",
+ "integrity": "sha512-X1m21aEmxGXqENEPG3T6u0Th7g0aS4ZmoNynhbs+Cn+q+QGTLt+d5IQ2bHAXKzKcxGJjxACpVbnYQSCRcfxHlQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@remix-run/router": "1.23.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8"
+ }
+ },
+ "node_modules/react-router-dom": {
+ "version": "6.30.1",
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.30.1.tgz",
+ "integrity": "sha512-llKsgOkZdbPU1Eg3zK8lCn+sjD9wMRZZPuzmdWWX5SUs8OFkN5HnFVC0u5KMeMaC9aoancFI/KoLuKPqN+hxHw==",
+ "license": "MIT",
+ "dependencies": {
+ "@remix-run/router": "1.23.0",
+ "react-router": "6.30.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=16.8",
+ "react-dom": ">=16.8"
+ }
+ },
+ "node_modules/react-smooth": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/react-smooth/-/react-smooth-4.0.4.tgz",
+ "integrity": "sha512-gnGKTpYwqL0Iii09gHobNolvX4Kiq4PKx6eWBCYYix+8cdw+cGo3do906l1NBPKkSWx1DghC1dlWG9L2uGd61Q==",
+ "license": "MIT",
+ "dependencies": {
+ "fast-equals": "^5.0.1",
+ "prop-types": "^15.8.1",
+ "react-transition-group": "^4.4.5"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/react-style-singleton": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz",
+ "integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==",
+ "license": "MIT",
+ "dependencies": {
+ "get-nonce": "^1.0.0",
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-transition-group": {
+ "version": "4.4.5",
+ "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz",
+ "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@babel/runtime": "^7.5.5",
+ "dom-helpers": "^5.0.1",
+ "loose-envify": "^1.4.0",
+ "prop-types": "^15.6.2"
+ },
+ "peerDependencies": {
+ "react": ">=16.6.0",
+ "react-dom": ">=16.6.0"
+ }
+ },
+ "node_modules/reactflow": {
+ "version": "11.11.4",
+ "resolved": "https://registry.npmjs.org/reactflow/-/reactflow-11.11.4.tgz",
+ "integrity": "sha512-70FOtJkUWH3BAOsN+LU9lCrKoKbtOPnz2uq0CV2PLdNSwxTXOhCbsZr50GmZ+Rtw3jx8Uv7/vBFtCGixLfd4Og==",
+ "license": "MIT",
+ "dependencies": {
+ "@reactflow/background": "11.3.14",
+ "@reactflow/controls": "11.2.14",
+ "@reactflow/core": "11.11.4",
+ "@reactflow/minimap": "11.7.14",
+ "@reactflow/node-resizer": "2.2.14",
+ "@reactflow/node-toolbar": "1.3.14"
+ },
+ "peerDependencies": {
+ "react": ">=17",
+ "react-dom": ">=17"
+ }
+ },
+ "node_modules/read-cache": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
+ "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pify": "^2.3.0"
+ }
+ },
+ "node_modules/readdirp": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "picomatch": "^2.2.1"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ }
+ },
+ "node_modules/recharts": {
+ "version": "2.15.4",
+ "resolved": "https://registry.npmjs.org/recharts/-/recharts-2.15.4.tgz",
+ "integrity": "sha512-UT/q6fwS3c1dHbXv2uFgYJ9BMFHu3fwnd7AYZaEQhXuYQ4hgsxLvsUXzGdKeZrW5xopzDCvuA2N41WJ88I7zIw==",
+ "license": "MIT",
+ "dependencies": {
+ "clsx": "^2.0.0",
+ "eventemitter3": "^4.0.1",
+ "lodash": "^4.17.21",
+ "react-is": "^18.3.1",
+ "react-smooth": "^4.0.4",
+ "recharts-scale": "^0.4.4",
+ "tiny-invariant": "^1.3.1",
+ "victory-vendor": "^36.6.8"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "peerDependencies": {
+ "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
+ "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/recharts-scale": {
+ "version": "0.4.5",
+ "resolved": "https://registry.npmjs.org/recharts-scale/-/recharts-scale-0.4.5.tgz",
+ "integrity": "sha512-kivNFO+0OcUNu7jQquLXAxz1FIwZj8nrj+YkOKc5694NbjCvcT6aSZiIzNzd2Kul4o4rTto8QVR9lMNtxD4G1w==",
+ "license": "MIT",
+ "dependencies": {
+ "decimal.js-light": "^2.4.1"
+ }
+ },
+ "node_modules/resolve": {
+ "version": "1.22.8",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz",
+ "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-core-module": "^2.13.0",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/reusify": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
+ "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "iojs": ">=1.0.0",
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rollup": {
+ "version": "4.24.0",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.24.0.tgz",
+ "integrity": "sha512-DOmrlGSXNk1DM0ljiQA+i+o0rSLhtii1je5wgk60j49d1jHT5YYttBv1iWOnYSTG+fZZESUOSNiAl89SIet+Cg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "1.0.6"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-android-arm-eabi": "4.24.0",
+ "@rollup/rollup-android-arm64": "4.24.0",
+ "@rollup/rollup-darwin-arm64": "4.24.0",
+ "@rollup/rollup-darwin-x64": "4.24.0",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.24.0",
+ "@rollup/rollup-linux-arm-musleabihf": "4.24.0",
+ "@rollup/rollup-linux-arm64-gnu": "4.24.0",
+ "@rollup/rollup-linux-arm64-musl": "4.24.0",
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.24.0",
+ "@rollup/rollup-linux-riscv64-gnu": "4.24.0",
+ "@rollup/rollup-linux-s390x-gnu": "4.24.0",
+ "@rollup/rollup-linux-x64-gnu": "4.24.0",
+ "@rollup/rollup-linux-x64-musl": "4.24.0",
+ "@rollup/rollup-win32-arm64-msvc": "4.24.0",
+ "@rollup/rollup-win32-ia32-msvc": "4.24.0",
+ "@rollup/rollup-win32-x64-msvc": "4.24.0",
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/run-parallel": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "queue-microtask": "^1.2.2"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.23.2",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
+ "license": "MIT",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ }
+ },
+ "node_modules/semver": {
+ "version": "7.7.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
+ "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/signal-exit": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/sonner": {
+ "version": "1.7.4",
+ "resolved": "https://registry.npmjs.org/sonner/-/sonner-1.7.4.tgz",
+ "integrity": "sha512-DIS8z4PfJRbIyfVFDVnK9rO3eYDtse4Omcm6bt0oEr5/jtLgysmjuBl1frJ9E/EQZrFmKx2A8m/s5s9CRXIzhw==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc",
+ "react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",
+ "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eastasianwidth": "^0.2.0",
+ "emoji-regex": "^9.2.2",
+ "strip-ansi": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/string-width-cjs": {
+ "name": "string-width",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/string-width-cjs/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/string-width-cjs/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/string-width-cjs/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",
+ "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/strip-ansi-cjs": {
+ "name": "strip-ansi",
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi-cjs/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
+ "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/sucrase": {
+ "version": "3.35.0",
+ "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz",
+ "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.2",
+ "commander": "^4.0.0",
+ "glob": "^10.3.10",
+ "lines-and-columns": "^1.1.6",
+ "mz": "^2.7.0",
+ "pirates": "^4.0.1",
+ "ts-interface-checker": "^0.1.9"
+ },
+ "bin": {
+ "sucrase": "bin/sucrase",
+ "sucrase-node": "bin/sucrase-node"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/tailwind-merge": {
+ "version": "2.6.0",
+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-2.6.0.tgz",
+ "integrity": "sha512-P+Vu1qXfzediirmHOC3xKGAYeZtPcV9g76X+xg2FD4tYgR71ewMA35Y3sCz3zhiN/dwefRpJX0yBcgwi1fXNQA==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/dcastil"
+ }
+ },
+ "node_modules/tailwindcss": {
+ "version": "3.4.17",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.17.tgz",
+ "integrity": "sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@alloc/quick-lru": "^5.2.0",
+ "arg": "^5.0.2",
+ "chokidar": "^3.6.0",
+ "didyoumean": "^1.2.2",
+ "dlv": "^1.1.3",
+ "fast-glob": "^3.3.2",
+ "glob-parent": "^6.0.2",
+ "is-glob": "^4.0.3",
+ "jiti": "^1.21.6",
+ "lilconfig": "^3.1.3",
+ "micromatch": "^4.0.8",
+ "normalize-path": "^3.0.0",
+ "object-hash": "^3.0.0",
+ "picocolors": "^1.1.1",
+ "postcss": "^8.4.47",
+ "postcss-import": "^15.1.0",
+ "postcss-js": "^4.0.1",
+ "postcss-load-config": "^4.0.2",
+ "postcss-nested": "^6.2.0",
+ "postcss-selector-parser": "^6.1.2",
+ "resolve": "^1.22.8",
+ "sucrase": "^3.35.0"
+ },
+ "bin": {
+ "tailwind": "lib/cli.js",
+ "tailwindcss": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/tailwindcss-animate": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/tailwindcss-animate/-/tailwindcss-animate-1.0.7.tgz",
+ "integrity": "sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "tailwindcss": ">=3.0.0 || insiders"
+ }
+ },
+ "node_modules/thenify": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",
+ "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "any-promise": "^1.0.0"
+ }
+ },
+ "node_modules/thenify-all": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",
+ "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "thenify": ">= 3.1.0 < 4"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/tiny-invariant": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",
+ "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==",
+ "license": "MIT"
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/tr46": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
+ "license": "MIT"
+ },
+ "node_modules/ts-api-utils": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",
+ "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.12"
+ },
+ "peerDependencies": {
+ "typescript": ">=4.8.4"
+ }
+ },
+ "node_modules/ts-interface-checker": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",
+ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/tslib": {
+ "version": "2.8.0",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.0.tgz",
+ "integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==",
+ "license": "0BSD"
+ },
+ "node_modules/type-check": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "prelude-ls": "^1.2.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "5.8.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
+ "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/typescript-eslint": {
+ "version": "8.38.0",
+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.38.0.tgz",
+ "integrity": "sha512-FsZlrYK6bPDGoLeZRuvx2v6qrM03I0U0SnfCLPs/XCCPCFD80xU9Pg09H/K+XFa68uJuZo7l/Xhs+eDRg2l3hg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@typescript-eslint/eslint-plugin": "8.38.0",
+ "@typescript-eslint/parser": "8.38.0",
+ "@typescript-eslint/typescript-estree": "8.38.0",
+ "@typescript-eslint/utils": "8.38.0"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^8.57.0 || ^9.0.0",
+ "typescript": ">=4.8.4 <5.9.0"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "6.21.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
+ "license": "MIT"
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz",
+ "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/uri-js": {
+ "version": "4.4.1",
+ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
+ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "punycode": "^2.1.0"
+ }
+ },
+ "node_modules/use-callback-ref": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz",
+ "integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==",
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/use-sidecar": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz",
+ "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==",
+ "license": "MIT",
+ "dependencies": {
+ "detect-node-es": "^1.1.0",
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/use-sync-external-store": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.5.0.tgz",
+ "integrity": "sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
+ }
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/vaul": {
+ "version": "0.9.9",
+ "resolved": "https://registry.npmjs.org/vaul/-/vaul-0.9.9.tgz",
+ "integrity": "sha512-7afKg48srluhZwIkaU+lgGtFCUsYBSGOl8vcc8N/M3YQlZFlynHD15AE+pwrYdc826o7nrIND4lL9Y6b9WWZZQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-dialog": "^1.1.1"
+ },
+ "peerDependencies": {
+ "react": "^16.8 || ^17.0 || ^18.0",
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
+ }
+ },
+ "node_modules/victory-vendor": {
+ "version": "36.9.2",
+ "resolved": "https://registry.npmjs.org/victory-vendor/-/victory-vendor-36.9.2.tgz",
+ "integrity": "sha512-PnpQQMuxlwYdocC8fIJqVXvkeViHYzotI+NJrCuav0ZYFoq912ZHBk3mCeuj+5/VpodOjPe1z0Fk2ihgzlXqjQ==",
+ "license": "MIT AND ISC",
+ "dependencies": {
+ "@types/d3-array": "^3.0.3",
+ "@types/d3-ease": "^3.0.0",
+ "@types/d3-interpolate": "^3.0.1",
+ "@types/d3-scale": "^4.0.2",
+ "@types/d3-shape": "^3.1.0",
+ "@types/d3-time": "^3.0.0",
+ "@types/d3-timer": "^3.0.0",
+ "d3-array": "^3.1.6",
+ "d3-ease": "^3.0.1",
+ "d3-interpolate": "^3.0.1",
+ "d3-scale": "^4.0.2",
+ "d3-shape": "^3.1.0",
+ "d3-time": "^3.0.0",
+ "d3-timer": "^3.0.1"
+ }
+ },
+ "node_modules/vite": {
+ "version": "5.4.19",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.19.tgz",
+ "integrity": "sha512-qO3aKv3HoQC8QKiNSTuUM1l9o/XX3+c+VTgLHbJWHZGeTPVAg2XwazI9UWzoxjIJCGCV2zU60uqMzjeLZuULqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "^0.21.3",
+ "postcss": "^8.4.43",
+ "rollup": "^4.20.0"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^18.0.0 || >=20.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^18.0.0 || >=20.0.0",
+ "less": "*",
+ "lightningcss": "^1.21.0",
+ "sass": "*",
+ "sass-embedded": "*",
+ "stylus": "*",
+ "sugarss": "*",
+ "terser": "^5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "lightningcss": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/webidl-conversions": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/whatwg-url": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
+ "license": "MIT",
+ "dependencies": {
+ "tr46": "~0.0.3",
+ "webidl-conversions": "^3.0.0"
+ }
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/word-wrap": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",
+ "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",
+ "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^6.1.0",
+ "string-width": "^5.0.1",
+ "strip-ansi": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi-cjs": {
+ "name": "wrap-ansi",
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/ansi-styles": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",
+ "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/ws": {
+ "version": "8.18.3",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz",
+ "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": ">=5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/yaml": {
+ "version": "2.6.0",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.0.tgz",
+ "integrity": "sha512-a6ae//JvKDEra2kdi1qzCyrJW/WZCgFi8ydDV+eXExl95t+5R+ijnqHJbz9tmMh8FUjx3iv2fCQ4dclAQlO2UQ==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "yaml": "bin.mjs"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/zod": {
+ "version": "3.25.76",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ },
+ "node_modules/zustand": {
+ "version": "4.5.7",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.7.tgz",
+ "integrity": "sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==",
+ "license": "MIT",
+ "dependencies": {
+ "use-sync-external-store": "^1.2.2"
+ },
+ "engines": {
+ "node": ">=12.7.0"
+ },
+ "peerDependencies": {
+ "@types/react": ">=16.8",
+ "immer": ">=9.0.6",
+ "react": ">=16.8"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "immer": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ }
+ }
+ }
+ }
+}
diff --git a/v3/goal_ui/package.json b/v3/goal_ui/package.json
new file mode 100644
index 0000000000..86cfa29bc0
--- /dev/null
+++ b/v3/goal_ui/package.json
@@ -0,0 +1,91 @@
+{
+ "name": "@ruflo/research",
+ "description": "RuFlo Research β€” Goal-Oriented Action Planning UI for autonomous AI research workflows",
+ "private": true,
+ "version": "0.1.0",
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "npm run build:widget-only && npm run copy:widget && vite build && npm run copy:widget-to-dist",
+ "build:app": "vite build",
+ "build:dev": "vite build --mode development",
+ "build:widget-only": "BUILD_WIDGET=true vite build",
+ "build:widget": "npm run build:widget-only && npm run copy:widget",
+ "copy:widget": "cp dist/widget.js public/ && cp dist/widget.css public/",
+ "copy:widget-to-dist": "cp public/widget.js dist/ && cp public/widget.css dist/",
+ "widget:dev": "npm run build:widget && npm run dev",
+ "lint": "eslint .",
+ "preview": "vite preview"
+ },
+ "dependencies": {
+ "@hookform/resolvers": "^3.10.0",
+ "@radix-ui/react-accordion": "^1.2.11",
+ "@radix-ui/react-alert-dialog": "^1.1.14",
+ "@radix-ui/react-aspect-ratio": "^1.1.7",
+ "@radix-ui/react-avatar": "^1.1.10",
+ "@radix-ui/react-checkbox": "^1.3.2",
+ "@radix-ui/react-collapsible": "^1.1.11",
+ "@radix-ui/react-context-menu": "^2.2.15",
+ "@radix-ui/react-dialog": "^1.1.14",
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
+ "@radix-ui/react-hover-card": "^1.1.14",
+ "@radix-ui/react-label": "^2.1.7",
+ "@radix-ui/react-menubar": "^1.1.15",
+ "@radix-ui/react-navigation-menu": "^1.2.13",
+ "@radix-ui/react-popover": "^1.1.14",
+ "@radix-ui/react-progress": "^1.1.7",
+ "@radix-ui/react-radio-group": "^1.3.7",
+ "@radix-ui/react-scroll-area": "^1.2.9",
+ "@radix-ui/react-select": "^2.2.5",
+ "@radix-ui/react-separator": "^1.1.7",
+ "@radix-ui/react-slider": "^1.3.5",
+ "@radix-ui/react-slot": "^1.2.3",
+ "@radix-ui/react-switch": "^1.2.5",
+ "@radix-ui/react-tabs": "^1.1.12",
+ "@radix-ui/react-toast": "^1.2.14",
+ "@radix-ui/react-toggle": "^1.1.9",
+ "@radix-ui/react-toggle-group": "^1.1.10",
+ "@radix-ui/react-tooltip": "^1.2.7",
+ "@supabase/supabase-js": "^2.74.0",
+ "@tanstack/react-query": "^5.83.0",
+ "class-variance-authority": "^0.7.1",
+ "clsx": "^2.1.1",
+ "cmdk": "^1.1.1",
+ "date-fns": "^3.6.0",
+ "embla-carousel-react": "^8.6.0",
+ "input-otp": "^1.4.2",
+ "lucide-react": "^0.462.0",
+ "next-themes": "^0.3.0",
+ "react": "^18.3.1",
+ "react-day-picker": "^8.10.1",
+ "react-dom": "^18.3.1",
+ "react-hook-form": "^7.61.1",
+ "react-resizable-panels": "^2.1.9",
+ "react-router-dom": "^6.30.1",
+ "reactflow": "^11.11.4",
+ "recharts": "^2.15.4",
+ "sonner": "^1.7.4",
+ "tailwind-merge": "^2.6.0",
+ "tailwindcss-animate": "^1.0.7",
+ "vaul": "^0.9.9",
+ "zod": "^3.25.76"
+ },
+ "devDependencies": {
+ "@eslint/js": "^9.32.0",
+ "@tailwindcss/typography": "^0.5.16",
+ "@types/node": "^22.16.5",
+ "@types/react": "^18.3.23",
+ "@types/react-dom": "^18.3.7",
+ "@vitejs/plugin-react-swc": "^3.11.0",
+ "autoprefixer": "^10.4.21",
+ "eslint": "^9.32.0",
+ "eslint-plugin-react-hooks": "^5.2.0",
+ "eslint-plugin-react-refresh": "^0.4.20",
+ "globals": "^15.15.0",
+ "postcss": "^8.5.6",
+ "tailwindcss": "^3.4.17",
+ "typescript": "^5.8.3",
+ "typescript-eslint": "^8.38.0",
+ "vite": "^5.4.19"
+ }
+}
diff --git a/v3/goal_ui/postcss.config.js b/v3/goal_ui/postcss.config.js
new file mode 100644
index 0000000000..2aa7205d4b
--- /dev/null
+++ b/v3/goal_ui/postcss.config.js
@@ -0,0 +1,6 @@
+export default {
+ plugins: {
+ tailwindcss: {},
+ autoprefixer: {},
+ },
+};
diff --git a/v3/goal_ui/public/_headers b/v3/goal_ui/public/_headers
new file mode 100644
index 0000000000..bfaa08407d
--- /dev/null
+++ b/v3/goal_ui/public/_headers
@@ -0,0 +1,26 @@
+# CORS headers for widget files to allow embedding in third-party sites
+/widget.js
+ Access-Control-Allow-Origin: *
+ Access-Control-Allow-Methods: GET, OPTIONS
+ Access-Control-Allow-Headers: Content-Type
+ Cache-Control: public, max-age=31536000
+ Content-Type: application/javascript
+
+/widget.css
+ Access-Control-Allow-Origin: *
+ Access-Control-Allow-Methods: GET, OPTIONS
+ Access-Control-Allow-Headers: Content-Type
+ Cache-Control: public, max-age=31536000
+ Content-Type: text/css
+
+# Allow widget-embed.html to be iframed
+/widget-embed.html
+ Access-Control-Allow-Origin: *
+ X-Frame-Options: ALLOWALL
+ Content-Security-Policy: frame-ancestors *
+
+# API endpoints - if using Supabase functions
+/api/*
+ Access-Control-Allow-Origin: *
+ Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
+ Access-Control-Allow-Headers: Content-Type, Authorization
diff --git a/v3/goal_ui/public/_redirects b/v3/goal_ui/public/_redirects
new file mode 100644
index 0000000000..069bc224b6
--- /dev/null
+++ b/v3/goal_ui/public/_redirects
@@ -0,0 +1,8 @@
+# Widget files should be served directly (not redirected to SPA)
+/widget.js /widget.js 200
+/widget.css /widget.css 200
+/widget-embed.html /widget-embed.html 200
+/_headers /_headers 200
+
+# SPA fallback - all other routes go to index.html for client-side routing
+/* /index.html 200
diff --git a/v3/goal_ui/public/favicon.svg b/v3/goal_ui/public/favicon.svg
new file mode 100644
index 0000000000..b1e09fcda2
--- /dev/null
+++ b/v3/goal_ui/public/favicon.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
+ <path d="M16 2L30 10v12L16 30 2 22V10z" stroke="#7c3aed" stroke-width="2" fill="#ffffff"/>
+ <circle cx="16" cy="16" r="5" fill="#00d4ff"/>
+</svg>
diff --git a/v3/goal_ui/public/og-image.png b/v3/goal_ui/public/og-image.png
new file mode 100644
index 0000000000..21f5965d25
Binary files /dev/null and b/v3/goal_ui/public/og-image.png differ
diff --git a/v3/goal_ui/public/robots.txt b/v3/goal_ui/public/robots.txt
new file mode 100644
index 0000000000..6018e701fc
--- /dev/null
+++ b/v3/goal_ui/public/robots.txt
@@ -0,0 +1,14 @@
+User-agent: Googlebot
+Allow: /
+
+User-agent: Bingbot
+Allow: /
+
+User-agent: Twitterbot
+Allow: /
+
+User-agent: facebookexternalhit
+Allow: /
+
+User-agent: *
+Allow: /
diff --git a/v3/goal_ui/public/widget-embed.html b/v3/goal_ui/public/widget-embed.html
new file mode 100644
index 0000000000..f0c95b5caa
--- /dev/null
+++ b/v3/goal_ui/public/widget-embed.html
@@ -0,0 +1,146 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>RuFlo Research Widget Embed Example</title>
+ <meta name="description" content="Example of embedding RuFlo Research Widget on third-party sites">
+ <style>
+ body {
+ margin: 0;
+ padding: 20px;
+ font-family: system-ui, -apple-system, sans-serif;
+ background: #0a0a0a;
+ color: #fff;
+ }
+ .header {
+ text-align: center;
+ margin-bottom: 2rem;
+ }
+ h1 {
+ margin: 0 0 0.5rem;
+ font-size: 2rem;
+ }
+ p {
+ color: #a3a3a3;
+ margin: 0 0 0.5rem;
+ }
+ .instructions {
+ max-width: 800px;
+ margin: 0 auto 2rem;
+ padding: 1rem;
+ background: #1a1a1a;
+ border: 1px solid #333;
+ border-radius: 8px;
+ }
+ .instructions h2 {
+ margin: 0 0 1rem;
+ font-size: 1.25rem;
+ }
+ .instructions code {
+ background: #262626;
+ padding: 0.2rem 0.4rem;
+ border-radius: 4px;
+ font-size: 0.9rem;
+ }
+ .instructions pre {
+ background: #262626;
+ padding: 1rem;
+ border-radius: 4px;
+ overflow-x: auto;
+ font-size: 0.85rem;
+ }
+ #ruflo-research-widget-container {
+ max-width: 1200px;
+ margin: 0 auto;
+ min-height: 400px;
+ }
+ .alert {
+ padding: 1rem;
+ margin: 1rem auto;
+ max-width: 800px;
+ background: #1a3a1a;
+ border: 1px solid #22c55e;
+ border-radius: 8px;
+ color: #22c55e;
+ }
+ </style>
+</head>
+<body>
+ <div class="header">
+ <h1>🎯 RuFlo Research Widget</h1>
+ <p>Goal-Oriented Action Planning for AI Research</p>
+ <p style="font-size: 0.9rem;">Embedded Widget Example</p>
+ </div>
+
+ <div class="instructions">
+ <h2>πŸ“¦ How to Embed This Widget</h2>
+ <p>Copy and paste this code into your website:</p>
+ <pre><code>&lt;!-- RuFlo Research Widget Container --&gt;
+&lt;div id="ruflo-research-widget-container"&gt;&lt;/div&gt;
+
+&lt;!-- Optional: Configuration --&gt;
+&lt;script&gt;
+ window.RufloResearchWidgetConfig = {
+ primaryColor: "#8b5cf6",
+ accentColor: "#22c55e",
+ backgroundColor: "#1a1a1a",
+ defaultGoal: "Your default research goal"
+ };
+&lt;/script&gt;
+
+&lt;!-- Load Widget (replace YOUR-DOMAIN with your actual domain) --&gt;
+&lt;link rel="stylesheet" href="https://YOUR-DOMAIN/widget.css"&gt;
+&lt;script src="https://YOUR-DOMAIN/widget.js"&gt;&lt;/script&gt;</code></pre>
+ </div>
+
+ <div class="alert">
+ ✨ Widget is loading below. If you don't see it, check the browser console for errors.
+ </div>
+
+ <!-- Widget Container -->
+ <div id="ruflo-research-widget-container"></div>
+
+ <!-- Widget Configuration (Optional) -->
+ <script>
+ // Configuration for the RuFlo Research Widget
+ // All properties are optional - widget will use defaults if not specified
+ window.RufloResearchWidgetConfig = {
+ primaryColor: "#8b5cf6", // Purple - main brand color
+ accentColor: "#22c55e", // Green - success/accent color
+ backgroundColor: "#1a1a1a", // Dark background
+ cardBackgroundColor: "#262626", // Card backgrounds
+ textColor: "#ffffff", // Primary text color
+ fontFamily: "system-ui", // Font family
+ defaultGoal: "Research the latest advancements in quantum computing"
+ };
+
+ // Log when widget is ready
+ window.addEventListener('load', function() {
+ if (window.RufloResearchWidget) {
+ console.log('βœ… RuFlo Research Widget loaded successfully!');
+ console.log('Widget version:', window.RufloResearchWidget.version);
+ } else {
+ console.error('❌ RuFlo Research Widget failed to load');
+ }
+ });
+
+ // Error handling for widget script loading
+ window.addEventListener('error', function(e) {
+ if (e.filename && e.filename.includes('widget.js')) {
+ console.error('Failed to load widget.js:', e.message);
+ document.getElementById('ruflo-research-widget-container').innerHTML =
+ '<div style="padding: 2rem; text-align: center; color: #ef4444;">' +
+ '⚠️ Failed to load RuFlo Research Widget. Please check console for details.' +
+ '</div>';
+ }
+ }, true);
+ </script>
+
+ <!-- Load Widget CSS -->
+ <link rel="stylesheet" href="/widget.css" onerror="console.error('Failed to load widget.css')">
+
+ <!-- Load Widget Script -->
+ <script src="/widget.js" crossorigin="anonymous"></script>
+</body>
+</html>
diff --git a/v3/goal_ui/src/App.css b/v3/goal_ui/src/App.css
new file mode 100644
index 0000000000..b9d355df2a
--- /dev/null
+++ b/v3/goal_ui/src/App.css
@@ -0,0 +1,42 @@
+#root {
+ max-width: 1280px;
+ margin: 0 auto;
+ padding: 2rem;
+ text-align: center;
+}
+
+.logo {
+ height: 6em;
+ padding: 1.5em;
+ will-change: filter;
+ transition: filter 300ms;
+}
+.logo:hover {
+ filter: drop-shadow(0 0 2em #646cffaa);
+}
+.logo.react:hover {
+ filter: drop-shadow(0 0 2em #61dafbaa);
+}
+
+@keyframes logo-spin {
+ from {
+ transform: rotate(0deg);
+ }
+ to {
+ transform: rotate(360deg);
+ }
+}
+
+@media (prefers-reduced-motion: no-preference) {
+ a:nth-of-type(2) .logo {
+ animation: logo-spin infinite 20s linear;
+ }
+}
+
+.card {
+ padding: 2em;
+}
+
+.read-the-docs {
+ color: #888;
+}
diff --git a/v3/goal_ui/src/App.tsx b/v3/goal_ui/src/App.tsx
new file mode 100644
index 0000000000..ef82fca1f8
--- /dev/null
+++ b/v3/goal_ui/src/App.tsx
@@ -0,0 +1,31 @@
+import { Toaster } from "@/components/ui/toaster";
+import { Toaster as Sonner } from "@/components/ui/sonner";
+import { TooltipProvider } from "@/components/ui/tooltip";
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { BrowserRouter, Routes, Route } from "react-router-dom";
+import Index from "./pages/Index";
+import Demo from "./pages/Demo";
+import Agents from "./pages/Agents";
+import NotFound from "./pages/NotFound";
+
+const queryClient = new QueryClient();
+
+const App = () => (
+ <QueryClientProvider client={queryClient}>
+ <TooltipProvider>
+ <Toaster />
+ <Sonner />
+ <BrowserRouter>
+ <Routes>
+ <Route path="/" element={<Index />} />
+ <Route path="/demo" element={<Demo />} />
+ <Route path="/agents" element={<Agents />} />
+ {/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
+ <Route path="*" element={<NotFound />} />
+ </Routes>
+ </BrowserRouter>
+ </TooltipProvider>
+ </QueryClientProvider>
+);
+
+export default App;
diff --git a/v3/goal_ui/src/components/AgentStep.tsx b/v3/goal_ui/src/components/AgentStep.tsx
new file mode 100644
index 0000000000..514f9b19be
--- /dev/null
+++ b/v3/goal_ui/src/components/AgentStep.tsx
@@ -0,0 +1,343 @@
+import { LucideIcon, ChevronRight, Loader2, ChevronDown } from "lucide-react";
+import { cn } from "@/lib/utils";
+import { useState, useEffect } from "react";
+
+export type StepStatus = "pending" | "active" | "completed" | "error";
+
+interface DataItem {
+ text: string;
+ icon?: LucideIcon;
+ details?: {
+ objective?: string;
+ sources?: string[];
+ citations?: string[];
+ agents?: string[];
+ preconditions?: string[];
+ effects?: string[];
+ source?: string;
+ confidence?: number;
+ timestamp?: string;
+ };
+}
+
+interface AgentStepProps {
+ title: string;
+ description: string;
+ icon: LucideIcon;
+ status: StepStatus;
+ delay?: number;
+ data?: DataItem[];
+ metrics?: { label: string; value: string }[];
+ primaryColor?: string;
+ accentColor?: string;
+ cardBackgroundColor?: string;
+ cardBorderColor?: string;
+ textColor?: string;
+ secondaryTextColor?: string;
+ successColor?: string;
+ borderRadius?: string;
+ animationSpeed?: string;
+ compactMode?: boolean;
+}
+
+export const AgentStep = ({
+ title,
+ description,
+ icon: Icon,
+ status,
+ delay = 0,
+ data = [],
+ metrics = [],
+ primaryColor = "#6b7280",
+ accentColor = "#22c55e",
+ cardBackgroundColor = "#262626",
+ cardBorderColor = "#404040",
+ textColor = "#ffffff",
+ secondaryTextColor = "#a3a3a3",
+ successColor = "#22c55e",
+ borderRadius = "0.5rem",
+ animationSpeed = "normal",
+ compactMode = false,
+}: AgentStepProps) => {
+ const [loadingItems, setLoadingItems] = useState<Set<number>>(new Set());
+ const [completedItems, setCompletedItems] = useState<Set<number>>(new Set());
+ const [expandedItems, setExpandedItems] = useState<Set<number>>(new Set());
+
+ useEffect(() => {
+ if (status === "active" && data.length > 0) {
+ // Reset states when step becomes active
+ setLoadingItems(new Set());
+ setCompletedItems(new Set());
+
+ // Simulate loading each item
+ data.forEach((_, idx) => {
+ setTimeout(() => {
+ setLoadingItems(prev => new Set([...prev, idx]));
+
+ // Complete item after 800ms
+ setTimeout(() => {
+ setLoadingItems(prev => {
+ const next = new Set(prev);
+ next.delete(idx);
+ return next;
+ });
+ setCompletedItems(prev => new Set([...prev, idx]));
+ }, 800);
+ }, idx * 150);
+ });
+ } else if (status === "completed") {
+ // All items completed
+ setCompletedItems(new Set(data.map((_, idx) => idx)));
+ setLoadingItems(new Set());
+ }
+ }, [status, data.length]);
+
+ const animationDuration = animationSpeed === "fast" ? "250ms" : animationSpeed === "slow" ? "750ms" : "500ms";
+ const padding = compactMode ? "0.75rem" : "1.25rem";
+
+ return (
+ <div
+ className={cn(
+ "relative group animate-slide-up opacity-0",
+ "border bg-card",
+ "transition-all",
+ status === "pending" && "border-border",
+ )}
+ style={{
+ animationDelay: `${delay}ms`,
+ animationFillMode: "forwards",
+ borderColor: status === "active" ? `${primaryColor}80` : status === "completed" ? `${successColor}4d` : cardBorderColor,
+ backgroundColor: status === "completed" ? `${successColor}0d` : cardBackgroundColor,
+ boxShadow: status === "active" ? `0 4px 12px ${primaryColor}33` : undefined,
+ borderRadius,
+ padding,
+ transitionDuration: animationDuration,
+ }}
+ >
+ {/* Status indicator */}
+ <div className="absolute -left-2 sm:-left-3 top-1/2 -translate-y-1/2">
+ <div
+ className="w-4 h-4 sm:w-5 sm:h-5 rounded-full border-3 border-background transition-all duration-500"
+ style={{
+ backgroundColor: status === "pending" ? cardBorderColor : status === "active" ? primaryColor : status === "completed" ? successColor : cardBorderColor,
+ animation: status === "active" ? "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite" : undefined,
+ }}
+ />
+ </div>
+
+ <div className="flex items-start gap-2 sm:gap-4">
+ {/* Icon */}
+ <div
+ className="p-1.5 sm:p-2.5 rounded-md transition-all duration-500 flex-shrink-0"
+ style={{
+ backgroundColor: status === "pending" ? `${cardBorderColor}40` : status === "active" ? `${primaryColor}1a` : status === "completed" ? `${successColor}33` : `${cardBorderColor}40`,
+ color: status === "pending" ? secondaryTextColor : status === "active" ? primaryColor : status === "completed" ? successColor : secondaryTextColor,
+ }}
+ >
+ {status === "active" ? (
+ <Loader2 className="w-4 h-4 sm:w-5 sm:h-5 animate-spin" style={{ color: primaryColor }} />
+ ) : (
+ <Icon className="w-4 h-4 sm:w-5 sm:h-5" />
+ )}
+ </div>
+
+ {/* Content */}
+ <div className="flex-1 min-w-0">
+ <h3
+ className="font-medium mb-1"
+ style={{ fontSize: compactMode ? "0.875rem" : "1rem", color: textColor }}
+ >
+ {title}
+ </h3>
+ <p
+ className="text-sm"
+ style={{ color: secondaryTextColor, fontSize: compactMode ? "0.75rem" : "0.875rem" }}
+ >
+ {description}
+ </p>
+
+ {/* Progress indicator for active state */}
+ {status === "active" && (
+ <div className="mt-2.5 h-0.5 bg-muted rounded-full overflow-hidden">
+ <div
+ className="h-full transition-all duration-1000 ease-out"
+ style={{
+ width: `${(completedItems.size / data.length) * 100}%`,
+ backgroundColor: `${primaryColor}99`,
+ }}
+ />
+ </div>
+ )}
+
+ {/* Data display for active/completed states */}
+ {(status === "active" || status === "completed") && data.length > 0 && (
+ <div className="mt-3 space-y-1.5">
+ {data.map((item, idx) => {
+ const ItemIcon = item.icon || ChevronRight;
+ const isLoading = loadingItems.has(idx);
+ const isCompleted = completedItems.has(idx);
+ const isExpanded = expandedItems.has(idx);
+ const hasDetails = !!item.details;
+
+ return (
+ <div key={idx} className="space-y-1">
+ <div
+ onClick={() => {
+ if (hasDetails && isCompleted) {
+ setExpandedItems(prev => {
+ const next = new Set(prev);
+ if (next.has(idx)) next.delete(idx);
+ else next.add(idx);
+ return next;
+ });
+ }
+ }}
+ className={cn(
+ "text-xs flex items-center gap-1.5 transition-all duration-500",
+ "opacity-0 -translate-x-4",
+ "animate-fade-in",
+ hasDetails && isCompleted && "cursor-pointer hover:bg-muted/20 rounded px-1 -mx-1 py-0.5"
+ )}
+ style={{
+ animationDelay: `${idx * 150}ms`,
+ animationFillMode: "forwards",
+ transform: isCompleted ? 'translateX(0) scale(1.05)' : isLoading ? 'translateX(0) scale(1.02)' : 'translateX(0)',
+ color: isCompleted ? successColor : isLoading ? primaryColor : secondaryTextColor,
+ }}
+ >
+ {isLoading ? (
+ <Loader2 className="w-3 h-3 flex-shrink-0 animate-spin" style={{ color: primaryColor }} />
+ ) : (
+ <ItemIcon
+ className="w-3 h-3 flex-shrink-0 transition-all duration-300"
+ style={{
+ animation: isCompleted ? "bounce 0.5s ease-in-out 2" : undefined,
+ color: isCompleted ? successColor : undefined,
+ }}
+ />
+ )}
+ <span
+ className={cn(
+ "transition-all duration-300 flex-1",
+ isLoading && "animate-pulse"
+ )}
+ style={{ fontWeight: isCompleted ? 500 : undefined }}
+ >
+ {item.text}
+ </span>
+ {isCompleted && (
+ <>
+ <span className="text-[10px]" style={{ color: successColor }}>βœ“</span>
+ {hasDetails && (
+ <ChevronDown className={cn(
+ "w-3 h-3 transition-transform duration-200",
+ isExpanded && "rotate-180"
+ )} style={{ color: successColor }} />
+ )}
+ </>
+ )}
+ </div>
+
+ {/* Expanded Details */}
+ {hasDetails && isCompleted && (
+ <div
+ className={cn(
+ "ml-5 pl-3 border-l space-y-2 text-[11px] overflow-hidden transition-all duration-300 ease-in-out origin-top",
+ isExpanded ? "max-h-96 opacity-100 scale-y-100 mt-1.5" : "max-h-0 opacity-0 scale-y-0"
+ )}
+ style={{ borderColor: `${successColor}4d` }}
+ >
+ {item.details.objective && (
+ <div className="animate-fade-in" style={{ animationDelay: "50ms" }}>
+ <span className="text-muted-foreground font-medium">Objective:</span>
+ <p className="text-foreground/80 mt-0.5">{item.details.objective}</p>
+ </div>
+ )}
+ {item.details.preconditions && item.details.preconditions.length > 0 && (
+ <div className="animate-fade-in" style={{ animationDelay: "100ms" }}>
+ <span className="text-muted-foreground font-medium">Preconditions:</span>
+ <ul className="text-foreground/80 mt-0.5 space-y-0.5">
+ {item.details.preconditions.map((p, i) => (
+ <li key={i}>β€’ {p}</li>
+ ))}
+ </ul>
+ </div>
+ )}
+ {item.details.effects && item.details.effects.length > 0 && (
+ <div className="animate-fade-in" style={{ animationDelay: "150ms" }}>
+ <span className="text-muted-foreground font-medium">Effects:</span>
+ <ul className="text-foreground/80 mt-0.5 space-y-0.5">
+ {item.details.effects.map((e, i) => (
+ <li key={i}>β€’ {e}</li>
+ ))}
+ </ul>
+ </div>
+ )}
+ {item.details.agents && item.details.agents.length > 0 && (
+ <div className="animate-fade-in" style={{ animationDelay: "200ms" }}>
+ <span className="text-muted-foreground font-medium">Agents:</span>
+ <div className="flex flex-wrap gap-1 mt-0.5">
+ {item.details.agents.map((a, i) => (
+ <span key={i} className="bg-muted/50 px-1.5 py-0.5 rounded text-foreground/80">{a}</span>
+ ))}
+ </div>
+ </div>
+ )}
+ {item.details.sources && item.details.sources.length > 0 && (
+ <div className="animate-fade-in" style={{ animationDelay: "250ms" }}>
+ <span className="text-muted-foreground font-medium">Sources:</span>
+ <ul className="text-foreground/80 mt-0.5 space-y-0.5">
+ {item.details.sources.map((s, i) => (
+ <li key={i}>β€’ {s}</li>
+ ))}
+ </ul>
+ </div>
+ )}
+ {item.details.citations && item.details.citations.length > 0 && (
+ <div className="animate-fade-in" style={{ animationDelay: "300ms" }}>
+ <span className="text-muted-foreground font-medium">Citations:</span>
+ <ul className="text-foreground/80 mt-0.5 space-y-0.5">
+ {item.details.citations.map((c, i) => (
+ <li key={i} className="italic">"{c}"</li>
+ ))}
+ </ul>
+ </div>
+ )}
+ </div>
+ )}
+ </div>
+ );
+ })}
+ </div>
+ )}
+
+ {/* Metrics for completed state */}
+ {status === "completed" && metrics.length > 0 && (
+ <div className="mt-3 flex gap-4 animate-fade-in">
+ {metrics.map((metric, idx) => (
+ <div key={idx} className="flex items-center gap-1.5 text-xs">
+ <span className="text-muted-foreground">{metric.label}:</span>
+ <span className="text-foreground font-medium">{metric.value}</span>
+ </div>
+ ))}
+ </div>
+ )}
+ </div>
+
+ {/* Status badge */}
+ <div
+ className="text-[10px] sm:text-xs font-medium px-1.5 sm:px-2 py-0.5 rounded transition-all duration-500 flex-shrink-0"
+ style={{
+ backgroundColor: status === "pending" ? `${cardBorderColor}40` : status === "active" ? `${primaryColor}1a` : status === "completed" ? `${successColor}33` : `${cardBorderColor}40`,
+ color: status === "pending" ? secondaryTextColor : status === "active" ? primaryColor : status === "completed" ? successColor : secondaryTextColor,
+ }}
+ >
+ {status === "pending" && "Pending"}
+ {status === "active" && "Researching..."}
+ {status === "completed" && "Complete"}
+ {status === "error" && "Error"}
+ </div>
+ </div>
+ </div>
+ );
+};
diff --git a/v3/goal_ui/src/components/DevelopmentStep.tsx b/v3/goal_ui/src/components/DevelopmentStep.tsx
new file mode 100644
index 0000000000..e16d0a5e6c
--- /dev/null
+++ b/v3/goal_ui/src/components/DevelopmentStep.tsx
@@ -0,0 +1,294 @@
+import { LucideIcon, ChevronRight, Loader2, ChevronDown } from "lucide-react";
+import { cn } from "@/lib/utils";
+import { useState, useEffect } from "react";
+
+export type StepStatus = "pending" | "active" | "completed" | "error";
+
+interface DataItem {
+ text: string;
+ icon?: LucideIcon;
+ details?: {
+ objective?: string;
+ files?: string[];
+ agents?: string[];
+ preconditions?: string[];
+ effects?: string[];
+ metrics?: { label: string; value: string }[];
+ };
+}
+
+interface DevelopmentStepProps {
+ title: string;
+ description: string;
+ icon: LucideIcon;
+ status: StepStatus;
+ delay?: number;
+ data?: DataItem[];
+ metrics?: { label: string; value: string }[];
+}
+
+export const DevelopmentStep = ({
+ title,
+ description,
+ icon: Icon,
+ status,
+ delay = 0,
+ data = [],
+ metrics = [],
+}: DevelopmentStepProps) => {
+ const [loadingItems, setLoadingItems] = useState<Set<number>>(new Set());
+ const [completedItems, setCompletedItems] = useState<Set<number>>(new Set());
+ const [expandedItems, setExpandedItems] = useState<Set<number>>(new Set());
+
+ useEffect(() => {
+ if (status === "active" && data.length > 0) {
+ setLoadingItems(new Set());
+ setCompletedItems(new Set());
+
+ data.forEach((_, idx) => {
+ setTimeout(() => {
+ setLoadingItems(prev => new Set([...prev, idx]));
+
+ setTimeout(() => {
+ setLoadingItems(prev => {
+ const next = new Set(prev);
+ next.delete(idx);
+ return next;
+ });
+ setCompletedItems(prev => new Set([...prev, idx]));
+ }, 1200);
+ }, idx * 200);
+ });
+ } else if (status === "completed") {
+ setCompletedItems(new Set(data.map((_, idx) => idx)));
+ setLoadingItems(new Set());
+ }
+ }, [status, data.length]);
+
+ return (
+ <div
+ className={cn(
+ "relative group animate-slide-up opacity-0 border-l-4 rounded-r-lg overflow-hidden",
+ "transition-all duration-500",
+ status === "pending" && "border-l-border bg-card/50",
+ status === "active" && "border-l-primary bg-primary/5 shadow-lg shadow-primary/20",
+ status === "completed" && "border-l-green-500 bg-green-500/5"
+ )}
+ style={{
+ animationDelay: `${delay}ms`,
+ animationFillMode: "forwards",
+ }}
+ >
+ <div className="p-5">
+ <div className="flex items-start gap-4 mb-4">
+ {/* Icon with different styling */}
+ <div
+ className={cn(
+ "p-3 rounded-xl transition-all duration-500 flex-shrink-0 shadow-md",
+ status === "pending" && "bg-muted/50 text-muted-foreground",
+ status === "active" && "bg-primary/20 text-primary ring-2 ring-primary/30",
+ status === "completed" && "bg-green-500/20 text-green-500"
+ )}
+ >
+ {status === "active" ? (
+ <Loader2 className="w-6 h-6 animate-spin" />
+ ) : (
+ <Icon className="w-6 h-6" />
+ )}
+ </div>
+
+ <div className="flex-1 min-w-0">
+ <div className="flex items-center justify-between gap-2 mb-1">
+ <h3 className="font-semibold text-lg text-foreground">
+ {title}
+ </h3>
+ <div
+ className={cn(
+ "text-xs font-medium px-3 py-1 rounded-full whitespace-nowrap",
+ status === "pending" && "bg-muted text-muted-foreground",
+ status === "active" && "bg-primary/20 text-primary animate-pulse",
+ status === "completed" && "bg-green-500/20 text-green-500"
+ )}
+ >
+ {status === "pending" && "Queued"}
+ {status === "active" && "Building..."}
+ {status === "completed" && "Done"}
+ {status === "error" && "Failed"}
+ </div>
+ </div>
+ <p className="text-sm text-muted-foreground">
+ {description}
+ </p>
+ </div>
+ </div>
+
+ {/* Progress bar for active state */}
+ {status === "active" && (
+ <div className="mb-4 h-1 bg-primary/20 rounded-full overflow-hidden">
+ <div
+ className="h-full bg-primary transition-all duration-1000 ease-out rounded-full"
+ style={{
+ width: `${(completedItems.size / data.length) * 100}%`,
+ }}
+ />
+ </div>
+ )}
+
+ {/* Task items with different styling */}
+ {(status === "active" || status === "completed") && data.length > 0 && (
+ <div className="space-y-2 pl-2">
+ {data.map((item, idx) => {
+ const ItemIcon = item.icon || ChevronRight;
+ const isLoading = loadingItems.has(idx);
+ const isCompleted = completedItems.has(idx);
+ const isExpanded = expandedItems.has(idx);
+ const hasDetails = !!item.details;
+
+ return (
+ <div key={idx} className="space-y-2">
+ <div
+ onClick={() => {
+ if (hasDetails && isCompleted) {
+ setExpandedItems(prev => {
+ const next = new Set(prev);
+ if (next.has(idx)) next.delete(idx);
+ else next.add(idx);
+ return next;
+ });
+ }
+ }}
+ className={cn(
+ "flex items-center gap-2 p-2 rounded-lg transition-all duration-500",
+ "opacity-0 animate-fade-in border",
+ isCompleted && "bg-green-500/5 border-green-500/20",
+ isLoading && "bg-primary/5 border-primary/20",
+ !isLoading && !isCompleted && "bg-muted/30 border-transparent",
+ hasDetails && isCompleted && "cursor-pointer hover:bg-green-500/10"
+ )}
+ style={{
+ animationDelay: `${idx * 200}ms`,
+ animationFillMode: "forwards",
+ }}
+ >
+ {isLoading ? (
+ <Loader2 className="w-4 h-4 flex-shrink-0 animate-spin text-primary" />
+ ) : (
+ <ItemIcon
+ className={cn(
+ "w-4 h-4 flex-shrink-0 transition-all duration-300",
+ isCompleted && "text-green-500"
+ )}
+ />
+ )}
+ <span
+ className={cn(
+ "text-sm flex-1 transition-all duration-300",
+ isCompleted && "text-foreground font-medium",
+ isLoading && "text-primary animate-pulse",
+ !isLoading && !isCompleted && "text-muted-foreground"
+ )}
+ >
+ {item.text}
+ </span>
+ {isCompleted && (
+ <>
+ <div className="w-5 h-5 rounded-full bg-green-500 flex items-center justify-center flex-shrink-0">
+ <span className="text-white text-xs">βœ“</span>
+ </div>
+ {hasDetails && (
+ <ChevronDown className={cn(
+ "w-4 h-4 transition-transform duration-200 text-green-500",
+ isExpanded && "rotate-180"
+ )} />
+ )}
+ </>
+ )}
+ </div>
+
+ {/* Expanded Details with different styling */}
+ {hasDetails && isCompleted && (
+ <div
+ className={cn(
+ "ml-8 p-3 rounded-lg bg-muted/30 border border-green-500/20 space-y-2.5 text-xs overflow-hidden transition-all duration-300 ease-in-out origin-top",
+ isExpanded ? "max-h-96 opacity-100 scale-y-100" : "max-h-0 opacity-0 scale-y-0 p-0 border-0"
+ )}
+ >
+ {item.details.objective && (
+ <div className="animate-fade-in" style={{ animationDelay: "50ms" }}>
+ <span className="text-primary font-semibold">Objective:</span>
+ <p className="text-foreground/90 mt-1">{item.details.objective}</p>
+ </div>
+ )}
+ {item.details.files && item.details.files.length > 0 && (
+ <div className="animate-fade-in" style={{ animationDelay: "100ms" }}>
+ <span className="text-primary font-semibold">Files Modified:</span>
+ <div className="mt-1 space-y-1">
+ {item.details.files.map((f, i) => (
+ <div key={i} className="font-mono text-[11px] text-foreground/80 bg-background/50 px-2 py-1 rounded">
+ {f}
+ </div>
+ ))}
+ </div>
+ </div>
+ )}
+ {item.details.effects && item.details.effects.length > 0 && (
+ <div className="animate-fade-in" style={{ animationDelay: "150ms" }}>
+ <span className="text-primary font-semibold">Completed:</span>
+ <ul className="text-foreground/80 mt-1 space-y-1">
+ {item.details.effects.map((e, i) => (
+ <li key={i} className="flex items-start gap-2">
+ <span className="text-green-500 mt-0.5">βœ“</span>
+ <span>{e}</span>
+ </li>
+ ))}
+ </ul>
+ </div>
+ )}
+ {item.details.agents && item.details.agents.length > 0 && (
+ <div className="animate-fade-in" style={{ animationDelay: "200ms" }}>
+ <span className="text-primary font-semibold">Agents:</span>
+ <div className="flex flex-wrap gap-1.5 mt-1">
+ {item.details.agents.map((a, i) => (
+ <span key={i} className="bg-primary/10 text-primary px-2 py-1 rounded-md font-medium">
+ {a}
+ </span>
+ ))}
+ </div>
+ </div>
+ )}
+ {item.details.metrics && item.details.metrics.length > 0 && (
+ <div className="animate-fade-in" style={{ animationDelay: "250ms" }}>
+ <span className="text-primary font-semibold">Metrics:</span>
+ <div className="flex flex-wrap gap-3 mt-1">
+ {item.details.metrics.map((m, i) => (
+ <div key={i} className="flex items-center gap-1.5">
+ <span className="text-muted-foreground">{m.label}:</span>
+ <span className="text-foreground font-semibold">{m.value}</span>
+ </div>
+ ))}
+ </div>
+ </div>
+ )}
+ </div>
+ )}
+ </div>
+ );
+ })}
+ </div>
+ )}
+
+ {/* Summary metrics for completed state */}
+ {status === "completed" && metrics.length > 0 && (
+ <div className="mt-4 pt-4 border-t border-green-500/20 flex gap-6 animate-fade-in">
+ {metrics.map((metric, idx) => (
+ <div key={idx} className="flex items-center gap-2">
+ <span className="text-xs text-muted-foreground">{metric.label}:</span>
+ <span className="text-sm text-foreground font-semibold">{metric.value}</span>
+ </div>
+ ))}
+ </div>
+ )}
+ </div>
+ </div>
+ );
+};
\ No newline at end of file
diff --git a/v3/goal_ui/src/components/GOAPConfigDisplay.tsx b/v3/goal_ui/src/components/GOAPConfigDisplay.tsx
new file mode 100644
index 0000000000..f5844233f1
--- /dev/null
+++ b/v3/goal_ui/src/components/GOAPConfigDisplay.tsx
@@ -0,0 +1,97 @@
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { Badge } from "@/components/ui/badge";
+import { Settings, Zap, Shield, RefreshCw } from "lucide-react";
+
+interface GOAPConfigDisplayProps {
+ executionMode: "focused" | "closed" | "open";
+ enableReplanning: boolean;
+ replanningTriggers: string[];
+ costOptimization: boolean;
+ parallelExecution: boolean;
+ maxActionCost: number;
+ primaryColor: string;
+}
+
+export const GOAPConfigDisplay = ({
+ executionMode,
+ enableReplanning,
+ replanningTriggers,
+ costOptimization,
+ parallelExecution,
+ maxActionCost,
+ primaryColor,
+}: GOAPConfigDisplayProps) => {
+ const modeDescriptions = {
+ focused: "Direct action execution with precondition checking",
+ closed: "Single-domain planning with type safety",
+ open: "Creative problem solving across all domains",
+ };
+
+ return (
+ <Card className="border" style={{ borderColor: `${primaryColor}40` }}>
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2 text-base">
+ <Settings className="w-4 h-4" style={{ color: primaryColor }} />
+ GOAP Configuration
+ </CardTitle>
+ <CardDescription className="text-xs">
+ Active planning and execution settings
+ </CardDescription>
+ </CardHeader>
+ <CardContent className="space-y-3">
+ <div className="space-y-2">
+ <div className="flex items-center justify-between">
+ <span className="text-xs font-medium">Execution Mode</span>
+ <Badge variant="outline" className="text-xs capitalize">
+ {executionMode}
+ </Badge>
+ </div>
+ <p className="text-xs text-muted-foreground">{modeDescriptions[executionMode]}</p>
+ </div>
+
+ <div className="grid grid-cols-2 gap-2 pt-2 border-t">
+ <div className="flex items-center gap-2">
+ {costOptimization ? (
+ <Zap className="w-3 h-3 text-yellow-500" />
+ ) : (
+ <Zap className="w-3 h-3 text-muted-foreground" />
+ )}
+ <span className="text-xs">Cost Optimization</span>
+ </div>
+ <div className="flex items-center gap-2">
+ {parallelExecution ? (
+ <RefreshCw className="w-3 h-3 text-blue-500" />
+ ) : (
+ <RefreshCw className="w-3 h-3 text-muted-foreground" />
+ )}
+ <span className="text-xs">Parallel Execution</span>
+ </div>
+ <div className="flex items-center gap-2">
+ {enableReplanning ? (
+ <Shield className="w-3 h-3 text-green-500" />
+ ) : (
+ <Shield className="w-3 h-3 text-muted-foreground" />
+ )}
+ <span className="text-xs">Replanning Enabled</span>
+ </div>
+ <div className="flex items-center gap-2">
+ <span className="text-xs font-mono">Max Cost: {maxActionCost}</span>
+ </div>
+ </div>
+
+ {enableReplanning && replanningTriggers.length > 0 && (
+ <div className="space-y-2 pt-2 border-t">
+ <span className="text-xs font-medium">Active Triggers ({replanningTriggers.length})</span>
+ <div className="flex flex-wrap gap-1">
+ {replanningTriggers.map((trigger) => (
+ <Badge key={trigger} variant="secondary" className="text-xs">
+ {trigger}
+ </Badge>
+ ))}
+ </div>
+ </div>
+ )}
+ </CardContent>
+ </Card>
+ );
+};
\ No newline at end of file
diff --git a/v3/goal_ui/src/components/GoalInput.tsx b/v3/goal_ui/src/components/GoalInput.tsx
new file mode 100644
index 0000000000..c9ea23e989
--- /dev/null
+++ b/v3/goal_ui/src/components/GoalInput.tsx
@@ -0,0 +1,185 @@
+import { useState } from "react";
+import { Button } from "@/components/ui/button";
+import { Textarea } from "@/components/ui/textarea";
+import { Target, Sparkles, Settings, TrendingUp, Building2, Heart, GraduationCap, Code, Cpu, Brain, Megaphone } from "lucide-react";
+import { cn } from "@/lib/utils";
+import { supabase } from "@/integrations/supabase/client";
+import { useToast } from "@/hooks/use-toast";
+
+interface GoalInputProps {
+ onSubmit: (goal: string) => void;
+ isPlanning: boolean;
+ onAdvancedSettings?: () => void;
+ onConfigUpdate?: (config: any) => void;
+}
+
+export const GoalInput = ({ onSubmit, isPlanning, onAdvancedSettings, onConfigUpdate }: GoalInputProps) => {
+ const [goal, setGoal] = useState("");
+ const [isGenerating, setIsGenerating] = useState(false);
+ const { toast } = useToast();
+
+ const handleSubmit = (e: React.FormEvent) => {
+ e.preventDefault();
+ if (goal.trim()) {
+ onSubmit(goal.trim());
+ }
+ };
+
+ const categoryToPresetMap: Record<string, string> = {
+ 'finance': 'market-trends',
+ 'business': 'startup-validation',
+ 'marketing': 'competitive-analysis',
+ 'medical': 'medical-clinical',
+ 'education': 'academic-deep',
+ 'coding': 'technical-feasibility',
+ 'technical': 'technical-feasibility',
+ 'ai-ml': 'technical-feasibility',
+ };
+
+ const categories = [
+ { id: 'finance', label: 'Finance', icon: TrendingUp, color: '#10b981' },
+ { id: 'business', label: 'Business', icon: Building2, color: '#3b82f6' },
+ { id: 'marketing', label: 'Marketing', icon: Megaphone, color: '#f97316' },
+ { id: 'medical', label: 'Medical', icon: Heart, color: '#ef4444' },
+ { id: 'education', label: 'Education', icon: GraduationCap, color: '#f59e0b' },
+ { id: 'coding', label: 'Coding', icon: Code, color: '#8b5cf6' },
+ { id: 'technical', label: 'Technical', icon: Cpu, color: '#06b6d4' },
+ { id: 'ai-ml', label: 'AI & ML', icon: Brain, color: '#ec4899' },
+ ];
+
+ const generateGoals = async (category: string) => {
+ setIsGenerating(true);
+ try {
+ // Generate goal and optimize config in parallel
+ const [goalResult, configResult] = await Promise.all([
+ supabase.functions.invoke('generate-research-goal', {
+ body: { category }
+ }),
+ supabase.functions.invoke('optimize-research-config', {
+ body: {
+ preset: categoryToPresetMap[category] || 'academic-deep',
+ currentGoal: ''
+ }
+ })
+ ]);
+
+ if (goalResult.error) throw goalResult.error;
+
+ if (goalResult.data?.goals && goalResult.data.goals.length > 0) {
+ // Set the first generated goal
+ setGoal(goalResult.data.goals[0]);
+
+ // Update config if available and callback provided
+ if (configResult.data?.config && onConfigUpdate) {
+ onConfigUpdate(configResult.data.config);
+ }
+
+ toast({
+ title: "Goal & Settings Optimized",
+ description: `Generated research goal and optimized settings for ${category}`,
+ });
+ }
+ } catch (error) {
+ console.error('Error generating goals:', error);
+ toast({
+ title: "Generation Failed",
+ description: "Could not generate research goals. Please try again.",
+ variant: "destructive",
+ });
+ } finally {
+ setIsGenerating(false);
+ }
+ };
+
+ return (
+ <div className="bg-card border border-border rounded-lg p-4 sm:p-6">
+ <div className="flex items-center justify-between mb-3 sm:mb-4">
+ <div className="flex items-center gap-2">
+ <Target className="w-4 h-4 sm:w-5 sm:h-5 text-foreground" />
+ <h2 className="text-base sm:text-lg font-semibold text-foreground">Define Research Objective</h2>
+ </div>
+ {onAdvancedSettings && (
+ <Button
+ type="button"
+ variant="ghost"
+ size="sm"
+ onClick={onAdvancedSettings}
+ disabled={isPlanning}
+ className="gap-2"
+ >
+ <Settings className="w-4 h-4" />
+ <span className="hidden sm:inline text-xs">Advanced</span>
+ </Button>
+ )}
+ </div>
+
+ <form onSubmit={handleSubmit} className="space-y-4">
+ <div>
+ <Textarea
+ value={goal}
+ onChange={(e) => setGoal(e.target.value)}
+ placeholder="Enter your research goal or objective..."
+ className="min-h-[80px] sm:min-h-[100px] resize-none bg-background border-border text-foreground text-sm"
+ disabled={isPlanning}
+ />
+ <p className="text-[10px] sm:text-xs text-muted-foreground mt-1.5 sm:mt-2">
+ The GOAP system will analyze your objective and plan the optimal research workflow
+ </p>
+ </div>
+
+ <div className="space-y-2">
+ <div className="flex items-center gap-2 mb-2">
+ <Sparkles className="w-3 h-3 text-primary" />
+ <span className="text-xs font-medium text-foreground">AI-Generate by Category:</span>
+ </div>
+ <div className="grid grid-cols-2 sm:grid-cols-4 gap-2">
+ {categories.map((cat) => (
+ <button
+ key={cat.id}
+ type="button"
+ onClick={() => generateGoals(cat.id)}
+ disabled={isPlanning || isGenerating}
+ className={cn(
+ "flex items-center gap-1.5 px-2 py-1.5 rounded-md transition-all text-xs",
+ "border border-border hover:border-primary/50",
+ "bg-card hover:bg-muted",
+ (isPlanning || isGenerating) && "opacity-50 cursor-not-allowed"
+ )}
+ style={{
+ borderColor: isGenerating ? cat.color : undefined,
+ }}
+ >
+ <cat.icon className="w-3 h-3" style={{ color: cat.color }} />
+ <span className="text-foreground">{cat.label}</span>
+ </button>
+ ))}
+ </div>
+ {isGenerating && (
+ <p className="text-xs text-primary flex items-center gap-1.5 mt-2">
+ <Sparkles className="w-3 h-3 animate-spin" />
+ Generating research goals...
+ </p>
+ )}
+ </div>
+
+ <Button
+ type="submit"
+ disabled={!goal.trim() || isPlanning}
+ className="w-full text-sm"
+ >
+ {isPlanning ? (
+ <>
+ <Sparkles className="w-3 h-3 sm:w-4 sm:h-4 mr-2 animate-spin" />
+ <span className="text-xs sm:text-sm">Planning Research Workflow...</span>
+ </>
+ ) : (
+ <>
+ <Target className="w-3 h-3 sm:w-4 sm:h-4 mr-2" />
+ <span className="text-xs sm:text-sm">Generate Research Plan</span>
+ </>
+ )}
+ </Button>
+ </form>
+ </div>
+ );
+};
diff --git a/v3/goal_ui/src/components/ResearchReportModal.tsx b/v3/goal_ui/src/components/ResearchReportModal.tsx
new file mode 100644
index 0000000000..750e8194ad
--- /dev/null
+++ b/v3/goal_ui/src/components/ResearchReportModal.tsx
@@ -0,0 +1,978 @@
+import { useState, useEffect } from "react";
+import {
+ Dialog,
+ DialogContent,
+ DialogDescription,
+ DialogHeader,
+ DialogTitle,
+} from "@/components/ui/dialog";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import { Button } from "@/components/ui/button";
+import { ScrollArea } from "@/components/ui/scroll-area";
+import { Badge } from "@/components/ui/badge";
+import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";
+import {
+ FileText,
+ Lightbulb,
+ BookOpen,
+ TrendingUp,
+ Download,
+ RefreshCw,
+ Share2,
+ ChevronRight,
+ CheckCircle2,
+ Target,
+ Brain,
+ Search,
+ FileSearch,
+ GitBranch,
+ Sparkles,
+ ChevronDown,
+ Clock,
+ Users,
+ DollarSign,
+ BarChart3,
+ AlertTriangle,
+ ExternalLink,
+ FileDown,
+ CheckSquare,
+} from "lucide-react";
+import { Step } from "@/lib/goapPlanner";
+import { supabase } from "@/integrations/supabase/client";
+
+interface ResearchReportModalProps {
+ open: boolean;
+ onOpenChange: (open: boolean) => void;
+ userGoal: string;
+ steps: Step[];
+ onRevise: () => void;
+ primaryColor?: string;
+ accentColor?: string;
+ successColor?: string;
+}
+
+interface ActionItem {
+ id: string;
+ title: string;
+ description: string;
+ timeline: string;
+ timelineDetails: string;
+ priority: "High" | "Medium" | "Low";
+ resources: {
+ budget?: string;
+ team?: string;
+ tools?: string[];
+ };
+ metrics: string[];
+ risks: {
+ risk: string;
+ mitigation: string;
+ }[];
+ references: {
+ title: string;
+ url: string;
+ }[];
+ researchContext: string;
+}
+
+export const ResearchReportModal = ({
+ open,
+ onOpenChange,
+ userGoal,
+ steps,
+ onRevise,
+ primaryColor = "#6b7280",
+ accentColor = "#22c55e",
+ successColor = "#22c55e",
+}: ResearchReportModalProps) => {
+ const [activeTab, setActiveTab] = useState("summary");
+ const [expandedActions, setExpandedActions] = useState<Set<string>>(new Set());
+ const [aiActionItems, setAiActionItems] = useState<ActionItem[]>([]);
+ const [aiSummary, setAiSummary] = useState<string>("");
+ const [isGeneratingActions, setIsGeneratingActions] = useState(false);
+
+ // Generate AI-powered action items and summary on mount
+ useEffect(() => {
+ if (open && steps.length > 0 && aiActionItems.length === 0) {
+ generateAIContent();
+ }
+ }, [open, steps]);
+
+ const generateAIContent = async () => {
+ setIsGeneratingActions(true);
+
+ try {
+ // Build research context from all steps
+ const researchContext = steps.map(step => ({
+ stepTitle: step.title,
+ findings: step.data.map(item => {
+ const details = item.details as any;
+ return {
+ title: item.text,
+ content: details?.objective || details?.content || item.text,
+ source: details?.source
+ };
+ })
+ }));
+
+ // Call AI to generate contextual action items
+ const { data, error } = await supabase.functions.invoke('generate-action-items', {
+ body: {
+ goal: userGoal,
+ researchContext: researchContext,
+ totalSteps: steps.length,
+ totalDataPoints: steps.reduce((sum, step) => sum + step.data.length, 0)
+ }
+ });
+
+ if (!error && data) {
+ if (data.actionItems) {
+ setAiActionItems(data.actionItems);
+ }
+ if (data.summary) {
+ setAiSummary(data.summary);
+ }
+ }
+ } catch (err) {
+ console.error('Error generating AI content:', err);
+ } finally {
+ setIsGeneratingActions(false);
+ }
+ };
+
+ // Extract all research items with their sources as citations
+ const allCitations = steps.flatMap(step =>
+ step.data.map(item => {
+ const details = item.details as any;
+ return {
+ title: item.text,
+ source: details?.source || 'Research Analysis',
+ content: details?.objective || details?.content || item.text
+ };
+ })
+ ).filter(item => item.source && item.source !== 'Research Analysis');
+
+ const allSources = new Set(allCitations.map(item => item.source).filter(Boolean));
+ const totalDataPoints = steps.reduce((sum, step) => sum + step.data.length, 0);
+
+ // Fallback action items if AI generation fails
+ const generateActionItems = (): ActionItem[] => {
+ const domain = userGoal.toLowerCase();
+ const isQuantum = domain.includes('quantum');
+ const isAI = domain.includes('ai') || domain.includes('artificial intelligence');
+ const isBlockchain = domain.includes('blockchain');
+ const isSustainability = domain.includes('sustainability') || domain.includes('green') || domain.includes('climate');
+
+ // Extract key insights from research data
+ const keyInsights = steps.flatMap(step =>
+ step.data.map(item => item.text)
+ ).slice(0, 5);
+
+ const actionItems: ActionItem[] = [];
+
+ // Action 1: Pilot/Proof of Concept
+ actionItems.push({
+ id: "1",
+ title: `Launch Pilot Program Based on ${steps[0]?.title || 'Initial Research'}`,
+ description: `Initiate a controlled pilot to validate key findings from the research. ${keyInsights[0] ? `Focus on "${keyInsights[0]}"` : ''} to establish baseline metrics and identify implementation challenges early.`,
+ timeline: "Week 1-4",
+ timelineDetails: "Week 1: Team setup and requirements. Week 2-3: Pilot execution. Week 4: Analysis and reporting.",
+ priority: "High",
+ resources: {
+ budget: "$15,000 - $30,000 (pilot phase)",
+ team: "3-5 people: 1 project lead, 2 technical specialists, 1 analyst, 1 stakeholder liaison",
+ tools: isQuantum ? ["Quantum simulator", "QPU access", "Analysis toolkit"] :
+ isAI ? ["ML framework", "GPU compute", "Data pipeline"] :
+ isBlockchain ? ["Test network", "Smart contract tools", "Analytics platform"] :
+ ["Project management software", "Analytics tools", "Collaboration platform"]
+ },
+ metrics: [
+ "Pilot success rate (target: >75%)",
+ "Time to first result (target: <2 weeks)",
+ "Cost per transaction/operation",
+ "User satisfaction score (target: >4/5)",
+ "Technical feasibility score"
+ ],
+ risks: [
+ {
+ risk: "Insufficient stakeholder buy-in during pilot phase",
+ mitigation: "Conduct pre-pilot workshops and establish clear communication channels with weekly updates"
+ },
+ {
+ risk: "Technical challenges exceeding initial scope",
+ mitigation: "Build 30% buffer time into pilot timeline and have backup technical experts on standby"
+ },
+ {
+ risk: "Resource constraints or budget overruns",
+ mitigation: "Implement phased approach with clear go/no-go decision points after each phase"
+ }
+ ],
+ references: [
+ { title: "Pilot Program Best Practices", url: "https://www.pmi.org/learning/library/pilot-project-best-practices-6498" },
+ { title: "Measuring Pilot Success", url: "https://hbr.org/2018/11/how-to-design-a-pilot-study" }
+ ],
+ researchContext: `Based on ${steps.length} research steps analyzing "${userGoal}", this pilot directly addresses findings from the initial goal analysis phase.`
+ });
+
+ // Action 2: Scale Implementation
+ actionItems.push({
+ id: "2",
+ title: `Scale to Production: Full Implementation Rollout`,
+ description: `Based on successful pilot validation, scale the solution to production environment. ${keyInsights[1] ? `Leverage insight: "${keyInsights[1]}"` : ''} to optimize the deployment strategy and minimize disruption.`,
+ timeline: "Month 2-4",
+ timelineDetails: "Month 2: Infrastructure setup. Month 3: Staged rollout (10% β†’ 50% β†’ 100%). Month 4: Optimization and stabilization.",
+ priority: "High",
+ resources: {
+ budget: "$100,000 - $250,000 (full implementation)",
+ team: "8-12 people: 1 program manager, 3-4 engineers, 2 QA specialists, 1 DevOps, 1 security lead, 2 business analysts",
+ tools: isQuantum ? ["Production QPU", "Error correction", "Monitoring suite", "Integration middleware"] :
+ isAI ? ["Production ML infrastructure", "Model registry", "Feature store", "Monitoring tools"] :
+ isBlockchain ? ["Mainnet deployment", "Security audit tools", "Node infrastructure", "Wallet integration"] :
+ ["CI/CD pipeline", "Production infrastructure", "Monitoring stack", "Security tools"]
+ },
+ metrics: [
+ "System uptime (target: 99.5%+)",
+ "Deployment velocity (features/month)",
+ "Error rate (target: <0.1%)",
+ "Cost efficiency vs. baseline (target: 20% improvement)",
+ "User adoption rate (target: 70% within 3 months)",
+ "ROI timeline (target: break-even within 12 months)"
+ ],
+ risks: [
+ {
+ risk: "Production issues impacting existing operations",
+ mitigation: "Implement blue-green deployment with instant rollback capability and 24/7 monitoring"
+ },
+ {
+ risk: "Scaling costs exceeding projections",
+ mitigation: "Implement cost tracking dashboards with automated alerts at 80% budget thresholds"
+ },
+ {
+ risk: "User resistance to new system",
+ mitigation: "Develop comprehensive training program and provide dedicated support team during transition"
+ },
+ {
+ risk: "Integration challenges with legacy systems",
+ mitigation: "Build abstraction layer and maintain parallel systems during transition period"
+ }
+ ],
+ references: [
+ { title: "Scaling Best Practices", url: "https://aws.amazon.com/architecture/well-architected/" },
+ { title: "Production Readiness Checklist", url: "https://www.atlassian.com/incident-management/devops/production-ready" }
+ ],
+ researchContext: `This phase builds on the ${totalDataPoints} data points collected during research, particularly insights from the verification and synthesis stages.`
+ });
+
+ // Action 3: Optimization & Enhancement
+ actionItems.push({
+ id: "3",
+ title: `Continuous Improvement: Optimize Based on Real-World Data`,
+ description: `Establish feedback loops and optimization cycles to continuously improve performance. ${keyInsights[2] ? `Apply research finding: "${keyInsights[2]}"` : ''} to drive iterative enhancements and competitive advantages.`,
+ timeline: "Month 4-6 (ongoing)",
+ timelineDetails: "Month 4: Baseline performance analysis. Month 5: Implement optimization v1. Month 6: A/B testing and refinement. Then quarterly improvement cycles.",
+ priority: "Medium",
+ resources: {
+ budget: "$25,000 - $50,000 per quarter (optimization budget)",
+ team: "4-6 people: 1 optimization lead, 2 data scientists, 1 engineer, 1 UX researcher, 1 product analyst",
+ tools: ["A/B testing platform", "Analytics suite", "Performance monitoring", "User feedback tools", "Data visualization platform"]
+ },
+ metrics: [
+ "Performance improvement rate (target: 10% per quarter)",
+ "User engagement increase (target: 15% growth)",
+ "Cost reduction achieved (target: 5% per quarter)",
+ "Feature adoption velocity",
+ "Customer satisfaction (NPS target: >50)",
+ "Mean time to resolution (MTTR) for issues"
+ ],
+ risks: [
+ {
+ risk: "Optimization causing unintended regressions",
+ mitigation: "Implement comprehensive test coverage (>80%) and gradual rollout of optimizations"
+ },
+ {
+ risk: "Diminishing returns on optimization efforts",
+ mitigation: "Establish clear ROI thresholds and prioritize optimizations based on impact analysis"
+ },
+ {
+ risk: "Team burnout from continuous changes",
+ mitigation: "Balance optimization sprints with stabilization periods and rotate team responsibilities"
+ }
+ ],
+ references: [
+ { title: "Continuous Improvement Framework", url: "https://www.lean.org/lexicon-terms/continuous-improvement/" },
+ { title: "Data-Driven Optimization", url: "https://hbr.org/2012/09/big-data-the-management-revolution" }
+ ],
+ researchContext: `Drawing from the knowledge synthesis and insight generation phases of the research, this ensures long-term value realization.`
+ });
+
+ // Action 4: Knowledge Sharing & Scaling
+ actionItems.push({
+ id: "4",
+ title: `Document & Share Learnings Across Organization`,
+ description: `Create comprehensive documentation and training materials to scale adoption and build organizational capability. Capture lessons learned and best practices for future initiatives in this domain.`,
+ timeline: "Month 5-7",
+ timelineDetails: "Month 5: Documentation creation. Month 6: Training program development and pilot. Month 7: Organization-wide rollout and feedback collection.",
+ priority: "Medium",
+ resources: {
+ budget: "$20,000 - $40,000 (documentation and training)",
+ team: "3-5 people: 1 technical writer, 1 training specialist, 1 subject matter expert, 1 instructional designer, 1 community manager",
+ tools: ["Documentation platform", "Learning management system (LMS)", "Video recording tools", "Knowledge base software", "Community forum"]
+ },
+ metrics: [
+ "Documentation completeness (target: 100% coverage)",
+ "Training completion rate (target: >85% of target audience)",
+ "Knowledge base engagement (views, searches, contributions)",
+ "Support ticket reduction (target: 30% decrease)",
+ "Cross-team adoption rate",
+ "Time to onboard new team members (target: <1 week)"
+ ],
+ risks: [
+ {
+ risk: "Documentation becoming outdated quickly",
+ mitigation: "Assign documentation owners and implement quarterly review cycles with version control"
+ },
+ {
+ risk: "Low engagement with training materials",
+ mitigation: "Gamify learning experience and tie completion to performance reviews or certifications"
+ },
+ {
+ risk: "Knowledge silos persisting despite documentation",
+ mitigation: "Establish communities of practice and regular knowledge-sharing sessions"
+ }
+ ],
+ references: [
+ { title: "Documentation Best Practices", url: "https://documentation.divio.com/" },
+ { title: "Effective Knowledge Management", url: "https://www.mckinsey.com/capabilities/people-and-organizational-performance/our-insights/building-organizational-capabilities-knowledge-management" }
+ ],
+ researchContext: `This ensures the research findings from all ${steps.length} steps are institutionalized and can benefit future projects.`
+ });
+
+ return actionItems;
+ };
+
+ const actionItems = aiActionItems.length > 0 ? aiActionItems : generateActionItems();
+
+ const toggleAction = (id: string) => {
+ setExpandedActions(prev => {
+ const next = new Set(prev);
+ if (next.has(id)) {
+ next.delete(id);
+ } else {
+ next.add(id);
+ }
+ return next;
+ });
+ };
+
+ const exportActionItems = () => {
+ let checklist = `# Action Items Checklist: ${userGoal}\n\n`;
+ checklist += `Generated: ${new Date().toLocaleString()}\n`;
+ checklist += `Research Steps: ${steps.length} | Data Points: ${totalDataPoints}\n\n`;
+ checklist += `---\n\n`;
+
+ actionItems.forEach((item, idx) => {
+ checklist += `## ${idx + 1}. ${item.title}\n\n`;
+ checklist += `**Timeline:** ${item.timeline}\n`;
+ checklist += `**Priority:** ${item.priority}\n\n`;
+ checklist += `**Description:** ${item.description}\n\n`;
+
+ checklist += `**Timeline Breakdown:**\n${item.timelineDetails}\n\n`;
+
+ if (item.resources.budget) {
+ checklist += `**Budget:** ${item.resources.budget}\n`;
+ }
+ if (item.resources.team) {
+ checklist += `**Team:** ${item.resources.team}\n`;
+ }
+ if (item.resources.tools && item.resources.tools.length > 0) {
+ checklist += `**Required Tools:**\n`;
+ item.resources.tools.forEach(tool => checklist += ` - ${tool}\n`);
+ checklist += `\n`;
+ }
+
+ checklist += `**Success Metrics:**\n`;
+ item.metrics.forEach(metric => checklist += ` - [ ] ${metric}\n`);
+ checklist += `\n`;
+
+ checklist += `**Risks & Mitigation:**\n`;
+ item.risks.forEach(risk => {
+ checklist += ` - **Risk:** ${risk.risk}\n`;
+ checklist += ` **Mitigation:** ${risk.mitigation}\n`;
+ });
+ checklist += `\n`;
+
+ if (item.references.length > 0) {
+ checklist += `**References:**\n`;
+ item.references.forEach(ref => {
+ checklist += ` - [${ref.title}](${ref.url})\n`;
+ });
+ checklist += `\n`;
+ }
+
+ checklist += `**Research Context:** ${item.researchContext}\n\n`;
+ checklist += `---\n\n`;
+ });
+
+ const blob = new Blob([checklist], { type: 'text/markdown' });
+ const url = URL.createObjectURL(blob);
+ const a = document.createElement('a');
+ a.href = url;
+ a.download = `action-items-checklist-${Date.now()}.md`;
+ document.body.appendChild(a);
+ a.click();
+ document.body.removeChild(a);
+ URL.revokeObjectURL(url);
+ };
+
+ const handleDownload = () => {
+ const report = generateReportText();
+ const blob = new Blob([report], { type: 'text/markdown' });
+ const url = URL.createObjectURL(blob);
+ const a = document.createElement('a');
+ a.href = url;
+ a.download = `research-report-${Date.now()}.md`;
+ document.body.appendChild(a);
+ a.click();
+ document.body.removeChild(a);
+ URL.revokeObjectURL(url);
+ };
+
+ const generateReportText = () => {
+ let report = `# Research Report: ${userGoal}\n\n`;
+ report += `Generated: ${new Date().toLocaleString()}\n`;
+ report += `Total Steps: ${steps.length}\n`;
+ report += `Data Points: ${totalDataPoints}\n\n`;
+ report += `---\n\n`;
+
+ report += `## Executive Summary\n\n`;
+ report += `This research analyzed "${userGoal}" through a ${steps.length}-step Goal-Oriented Action Planning (GOAP) workflow.\n\n`;
+
+ steps.forEach((step, idx) => {
+ report += `## ${idx + 1}. ${step.title}\n\n`;
+ report += `${step.description}\n\n`;
+ step.data.forEach(item => {
+ const details = item.details as any;
+ report += `- **${item.text}**: ${details?.objective || item.text}\n`;
+ });
+ report += `\n`;
+ });
+
+ if (allCitations.length > 0) {
+ report += `## Citations\n\n`;
+ allCitations.forEach((citation, idx) => {
+ report += `${idx + 1}. ${citation}\n`;
+ });
+ }
+
+ return report;
+ };
+
+ return (
+ <Dialog open={open} onOpenChange={onOpenChange}>
+ <DialogContent className="max-w-5xl h-[85vh] p-0 flex flex-col">
+ <DialogHeader className="px-6 pt-6 pb-4 border-b shrink-0">
+ <div className="flex items-start justify-between">
+ <div className="flex-1">
+ <DialogTitle className="text-2xl font-bold mb-2">
+ Research Report
+ </DialogTitle>
+ <DialogDescription className="text-base">
+ {userGoal}
+ </DialogDescription>
+ </div>
+ <div className="flex gap-2">
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={handleDownload}
+ className="gap-2"
+ >
+ <Download className="w-4 h-4" />
+ Export
+ </Button>
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={onRevise}
+ className="gap-2"
+ >
+ <RefreshCw className="w-4 h-4" />
+ Revise
+ </Button>
+ <Button
+ variant="outline"
+ size="sm"
+ className="gap-2"
+ >
+ <Share2 className="w-4 h-4" />
+ Share
+ </Button>
+ </div>
+ </div>
+ </DialogHeader>
+
+ <Tabs value={activeTab} onValueChange={(value) => {
+ setActiveTab(value);
+ // Auto-scroll to top when tab changes
+ const scrollArea = document.querySelector('[data-radix-scroll-area-viewport]');
+ if (scrollArea) {
+ scrollArea.scrollTop = 0;
+ }
+ }} className="flex-1 flex flex-col min-h-0">
+ <TabsList className="mx-6 mt-4 shrink-0">
+ <TabsTrigger value="summary" className="gap-2">
+ <FileText className="w-4 h-4" />
+ Summary
+ </TabsTrigger>
+ <TabsTrigger value="findings" className="gap-2">
+ <Lightbulb className="w-4 h-4" />
+ Key Findings
+ </TabsTrigger>
+ <TabsTrigger value="methodology" className="gap-2">
+ <Target className="w-4 h-4" />
+ Methodology
+ </TabsTrigger>
+ <TabsTrigger value="citations" className="gap-2">
+ <BookOpen className="w-4 h-4" />
+ Citations ({allCitations.length})
+ </TabsTrigger>
+ <TabsTrigger value="insights" className="gap-2">
+ <TrendingUp className="w-4 h-4" />
+ Next Steps
+ </TabsTrigger>
+ </TabsList>
+
+ <div className="flex-1 overflow-y-auto px-6 min-h-0">
+ {/* Summary Tab */}
+ <TabsContent value="summary" className="mt-4 space-y-6 pb-6">
+ <div className="rounded-lg border p-6" style={{ borderColor: `${accentColor}4d`, backgroundColor: `${accentColor}0d` }}>
+ <div className="flex items-center gap-3 mb-4">
+ <div className="p-2 rounded-lg" style={{ backgroundColor: `${accentColor}33` }}>
+ <Sparkles className="w-5 h-5" style={{ color: accentColor }} />
+ </div>
+ <h3 className="text-lg font-semibold">Executive Summary</h3>
+ </div>
+ <p className="text-sm leading-relaxed text-muted-foreground whitespace-pre-wrap">
+ {aiSummary || `This comprehensive research successfully analyzed "${userGoal}" through a ${steps.length}-step Goal-Oriented Action Planning (GOAP) workflow. The system coordinated multiple specialized agents to gather information, analyze documents, synthesize knowledge, and generate actionable insights with high confidence scores across all validation checks.`}
+ </p>
+ {isGeneratingActions && (
+ <div className="mt-3 text-xs text-muted-foreground flex items-center gap-2">
+ <div className="w-4 h-4 border-2 border-t-transparent rounded-full animate-spin" style={{ borderColor: accentColor, borderTopColor: 'transparent' }}></div>
+ Generating contextual summary...
+ </div>
+ )}
+ </div>
+
+ <div className="grid grid-cols-4 gap-4">
+ <div className="rounded-lg border p-4">
+ <div className="text-2xl font-bold mb-1">{steps.length}</div>
+ <div className="text-xs text-muted-foreground">Research Steps</div>
+ </div>
+ <div className="rounded-lg border p-4">
+ <div className="text-2xl font-bold mb-1">{totalDataPoints}</div>
+ <div className="text-xs text-muted-foreground">Data Points</div>
+ </div>
+ <div className="rounded-lg border p-4">
+ <div className="text-2xl font-bold mb-1" style={{ color: accentColor }}>94%</div>
+ <div className="text-xs text-muted-foreground">Confidence</div>
+ </div>
+ <div className="rounded-lg border p-4">
+ <div className="text-2xl font-bold mb-1">{allSources.size}</div>
+ <div className="text-xs text-muted-foreground">Sources</div>
+ </div>
+ </div>
+
+ <div className="space-y-3">
+ <h4 className="font-semibold flex items-center gap-2">
+ <CheckCircle2 className="w-4 h-4" style={{ color: successColor }} />
+ Completed Steps
+ </h4>
+ {steps.map((step, idx) => (
+ <div key={idx} className="flex items-start gap-3 rounded-lg border p-4 hover:bg-muted/50 transition-colors">
+ <div className="p-2 rounded" style={{ backgroundColor: `${primaryColor}1a` }}>
+ {step.icon && <step.icon className="w-4 h-4" style={{ color: primaryColor }} />}
+ </div>
+ <div className="flex-1">
+ <h5 className="font-medium text-sm mb-1">{step.title}</h5>
+ <p className="text-xs text-muted-foreground">{step.description}</p>
+ </div>
+ <Badge variant="outline" className="text-xs" style={{ borderColor: successColor, color: successColor }}>
+ {step.data.length} items
+ </Badge>
+ </div>
+ ))}
+ </div>
+ </TabsContent>
+
+ {/* Key Findings Tab */}
+ <TabsContent value="findings" className="mt-4 space-y-4 pb-6">
+ <div className="rounded-lg border p-4 bg-muted/30">
+ <h3 className="font-semibold mb-2 flex items-center gap-2">
+ <Lightbulb className="w-4 h-4" style={{ color: accentColor }} />
+ Key Research Findings
+ </h3>
+ <p className="text-sm text-muted-foreground">
+ Critical insights and discoveries from the research process
+ </p>
+ </div>
+
+ {steps.map((step, stepIdx) => (
+ <div key={stepIdx} className="space-y-3">
+ <h4 className="font-semibold text-sm flex items-center gap-2 sticky top-0 bg-background py-2">
+ <step.icon className="w-4 h-4" style={{ color: primaryColor }} />
+ {step.title}
+ </h4>
+ {step.data.map((item, itemIdx) => {
+ const details = item.details as any;
+ return (
+ <div key={itemIdx} className="rounded-lg border p-4 space-y-2">
+ <div className="flex items-start justify-between gap-3">
+ <h5 className="font-medium text-sm flex-1">{item.text}</h5>
+ {details?.confidence && (
+ <Badge variant="secondary" className="text-xs">
+ {Math.round(details.confidence * 100)}% confidence
+ </Badge>
+ )}
+ </div>
+ <p className="text-sm text-muted-foreground leading-relaxed">
+ {details?.objective || item.text}
+ </p>
+ {details?.source && (
+ <div className="flex items-center gap-2 text-xs text-muted-foreground">
+ <BookOpen className="w-3 h-3" />
+ Source: {details.source}
+ </div>
+ )}
+ </div>
+ );
+ })}
+ </div>
+ ))}
+ </TabsContent>
+
+ {/* Methodology Tab */}
+ <TabsContent value="methodology" className="mt-4 space-y-4 pb-6">
+ <div className="rounded-lg border p-4 bg-muted/30">
+ <h3 className="font-semibold mb-2 flex items-center gap-2">
+ <Target className="w-4 h-4" style={{ color: primaryColor }} />
+ Research Methodology
+ </h3>
+ <p className="text-sm text-muted-foreground">
+ GOAP-based systematic approach with sequential step execution
+ </p>
+ </div>
+
+ <div className="space-y-3">
+ {steps.map((step, idx) => (
+ <div key={idx} className="flex gap-4">
+ <div className="flex flex-col items-center">
+ <div
+ className="w-8 h-8 rounded-full flex items-center justify-center text-sm font-semibold"
+ style={{ backgroundColor: `${successColor}33`, color: successColor }}
+ >
+ {idx + 1}
+ </div>
+ {idx < steps.length - 1 && (
+ <div className="w-0.5 flex-1 my-2" style={{ backgroundColor: `${successColor}33` }} />
+ )}
+ </div>
+ <div className="flex-1 pb-6">
+ <div className="rounded-lg border p-4 space-y-3">
+ <div className="flex items-center gap-2">
+ {step.icon && <step.icon className="w-4 h-4" style={{ color: primaryColor }} />}
+ <h4 className="font-semibold text-sm">{step.title}</h4>
+ <CheckCircle2 className="w-4 h-4 ml-auto" style={{ color: successColor }} />
+ </div>
+ <p className="text-sm text-muted-foreground">{step.description}</p>
+ <div className="flex flex-wrap gap-2">
+ {step.data.slice(0, 3).map((item, i) => (
+ <Badge key={i} variant="secondary" className="text-xs">
+ {item.text}
+ </Badge>
+ ))}
+ {step.data.length > 3 && (
+ <Badge variant="outline" className="text-xs">
+ +{step.data.length - 3} more
+ </Badge>
+ )}
+ </div>
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+ </TabsContent>
+
+ {/* Citations Tab */}
+ <TabsContent value="citations" className="mt-4 space-y-4 pb-6">
+ <div className="rounded-lg border p-4 bg-muted/30">
+ <h3 className="font-semibold mb-2 flex items-center gap-2">
+ <BookOpen className="w-4 h-4" style={{ color: primaryColor }} />
+ References & Citations
+ </h3>
+ <p className="text-sm text-muted-foreground">
+ Academic references and sources used in this research
+ </p>
+ </div>
+
+ {allCitations.length > 0 ? (
+ <div className="space-y-3">
+ {allCitations.map((citation, idx) => (
+ <div key={idx} className="rounded-lg border p-4 space-y-2">
+ <div className="flex items-start gap-3">
+ <div className="text-sm font-semibold text-muted-foreground min-w-[32px]">[{idx + 1}]</div>
+ <div className="flex-1 space-y-1">
+ <p className="text-sm font-medium leading-relaxed">{citation.title}</p>
+ <div className="flex items-center gap-2 text-xs text-muted-foreground">
+ <BookOpen className="w-3 h-3" />
+ <span className="font-medium">{citation.source}</span>
+ </div>
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+ ) : (
+ <div className="text-center py-8 text-muted-foreground">
+ No citations were generated for this research
+ </div>
+ )}
+ </TabsContent>
+
+ {/* Next Steps Tab */}
+ <TabsContent value="insights" className="mt-4 space-y-4 pb-6">
+ <div className="rounded-lg border p-4 bg-muted/30">
+ <div className="flex items-start justify-between gap-3 mb-2">
+ <div className="flex items-center gap-2">
+ <TrendingUp className="w-4 h-4" style={{ color: accentColor }} />
+ <h3 className="font-semibold">Actionable Next Steps</h3>
+ </div>
+ <Button
+ onClick={exportActionItems}
+ size="sm"
+ variant="outline"
+ className="gap-2 text-xs"
+ >
+ <FileDown className="w-3 h-3" />
+ Export Checklist
+ </Button>
+ </div>
+ <p className="text-xs text-muted-foreground">
+ {isGeneratingActions
+ ? "Generating contextual action items based on your research..."
+ : "Contextualized recommendations with timelines, resources, metrics, and risk mitigation based on your research findings"}
+ </p>
+ {isGeneratingActions && (
+ <div className="mt-2 flex items-center gap-2 text-xs text-muted-foreground">
+ <div className="w-4 h-4 border-2 border-t-transparent rounded-full animate-spin" style={{ borderColor: accentColor, borderTopColor: 'transparent' }}></div>
+ AI is analyzing your research to generate relevant next steps...
+ </div>
+ )}
+ </div>
+
+ <div className="space-y-3">
+ {actionItems.map((action) => (
+ <Collapsible
+ key={action.id}
+ open={expandedActions.has(action.id)}
+ onOpenChange={() => toggleAction(action.id)}
+ >
+ <div className="rounded-lg border">
+ <CollapsibleTrigger className="w-full p-4 hover:bg-muted/50 transition-colors">
+ <div className="flex items-start justify-between gap-3">
+ <div className="flex items-start gap-3 flex-1 text-left">
+ <ChevronDown
+ className={`w-4 h-4 mt-0.5 transition-transform flex-shrink-0 ${
+ expandedActions.has(action.id) ? 'rotate-180' : ''
+ }`}
+ style={{ color: accentColor }}
+ />
+ <div className="space-y-1 flex-1 min-w-0">
+ <div className="flex items-center gap-2 flex-wrap">
+ <h5 className="font-medium text-sm">{action.title}</h5>
+ <Badge
+ variant={action.priority === "High" ? "default" : action.priority === "Medium" ? "secondary" : "outline"}
+ className="text-[10px] px-1.5 py-0"
+ >
+ {action.priority}
+ </Badge>
+ </div>
+ <div className="flex items-center gap-4 text-xs text-muted-foreground">
+ <div className="flex items-center gap-1">
+ <Clock className="w-3 h-3" />
+ <span>{action.timeline}</span>
+ </div>
+ {action.resources.budget && (
+ <div className="flex items-center gap-1">
+ <DollarSign className="w-3 h-3" />
+ <span className="hidden sm:inline">{action.resources.budget}</span>
+ </div>
+ )}
+ </div>
+ <p className="text-xs text-muted-foreground line-clamp-2">
+ {action.description}
+ </p>
+ </div>
+ </div>
+ </div>
+ </CollapsibleTrigger>
+
+ <CollapsibleContent>
+ <div className="px-4 pb-4 space-y-4 border-t pt-4">
+ {/* Research Context */}
+ <div className="rounded-lg p-3 text-xs" style={{ backgroundColor: `${primaryColor}0d` }}>
+ <div className="flex items-center gap-1.5 mb-1">
+ <Brain className="w-3 h-3" style={{ color: primaryColor }} />
+ <span className="font-medium">Research Context</span>
+ </div>
+ <p className="text-muted-foreground">{action.researchContext}</p>
+ </div>
+
+ {/* Timeline Details */}
+ <div>
+ <div className="flex items-center gap-1.5 mb-2">
+ <Clock className="w-3 h-3" style={{ color: accentColor }} />
+ <h6 className="text-xs font-semibold">Timeline Breakdown</h6>
+ </div>
+ <p className="text-xs text-muted-foreground">{action.timelineDetails}</p>
+ </div>
+
+ {/* Resources */}
+ <div>
+ <h6 className="text-xs font-semibold mb-2">Resource Requirements</h6>
+ <div className="space-y-2">
+ {action.resources.budget && (
+ <div className="flex items-start gap-2 text-xs">
+ <DollarSign className="w-3 h-3 mt-0.5 flex-shrink-0" style={{ color: accentColor }} />
+ <div>
+ <span className="font-medium">Budget:</span>
+ <span className="text-muted-foreground ml-1">{action.resources.budget}</span>
+ </div>
+ </div>
+ )}
+ {action.resources.team && (
+ <div className="flex items-start gap-2 text-xs">
+ <Users className="w-3 h-3 mt-0.5 flex-shrink-0" style={{ color: accentColor }} />
+ <div>
+ <span className="font-medium">Team:</span>
+ <span className="text-muted-foreground ml-1">{action.resources.team}</span>
+ </div>
+ </div>
+ )}
+ {action.resources.tools && action.resources.tools.length > 0 && (
+ <div className="flex items-start gap-2 text-xs">
+ <Target className="w-3 h-3 mt-0.5 flex-shrink-0" style={{ color: accentColor }} />
+ <div className="flex-1">
+ <span className="font-medium">Required Tools:</span>
+ <div className="flex flex-wrap gap-1 mt-1">
+ {action.resources.tools.map((tool, idx) => (
+ <span key={idx} className="bg-muted px-2 py-0.5 rounded text-[10px]">
+ {tool}
+ </span>
+ ))}
+ </div>
+ </div>
+ </div>
+ )}
+ </div>
+ </div>
+
+ {/* Success Metrics */}
+ <div>
+ <div className="flex items-center gap-1.5 mb-2">
+ <BarChart3 className="w-3 h-3" style={{ color: accentColor }} />
+ <h6 className="text-xs font-semibold">Success Metrics & KPIs</h6>
+ </div>
+ <ul className="space-y-1">
+ {action.metrics.map((metric, idx) => (
+ <li key={idx} className="flex items-start gap-2 text-xs">
+ <CheckSquare className="w-3 h-3 mt-0.5 flex-shrink-0 text-muted-foreground" />
+ <span className="text-muted-foreground">{metric}</span>
+ </li>
+ ))}
+ </ul>
+ </div>
+
+ {/* Risks & Mitigation */}
+ <div>
+ <div className="flex items-center gap-1.5 mb-2">
+ <AlertTriangle className="w-3 h-3 text-orange-500" />
+ <h6 className="text-xs font-semibold">Risks & Mitigation Strategies</h6>
+ </div>
+ <div className="space-y-2">
+ {action.risks.map((risk, idx) => (
+ <div key={idx} className="rounded-lg bg-muted/50 p-2 text-xs">
+ <div className="flex items-start gap-1.5 mb-1">
+ <span className="font-medium text-orange-600">⚠</span>
+ <span className="font-medium">{risk.risk}</span>
+ </div>
+ <div className="flex items-start gap-1.5 ml-4">
+ <span className="text-green-600">β†’</span>
+ <span className="text-muted-foreground">{risk.mitigation}</span>
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+
+ {/* References */}
+ {action.references.length > 0 && (
+ <div>
+ <div className="flex items-center gap-1.5 mb-2">
+ <ExternalLink className="w-3 h-3" style={{ color: accentColor }} />
+ <h6 className="text-xs font-semibold">Implementation Resources</h6>
+ </div>
+ <div className="space-y-1">
+ {action.references.map((ref, idx) => (
+ <a
+ key={idx}
+ href={ref.url}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="flex items-center gap-1.5 text-xs hover:underline group"
+ style={{ color: primaryColor }}
+ >
+ <ExternalLink className="w-3 h-3 opacity-50 group-hover:opacity-100" />
+ <span>{ref.title}</span>
+ </a>
+ ))}
+ </div>
+ </div>
+ )}
+ </div>
+ </CollapsibleContent>
+ </div>
+ </Collapsible>
+ ))}
+ </div>
+
+ <div className="rounded-lg border p-4 mt-6" style={{ borderColor: `${successColor}4d`, backgroundColor: `${successColor}0d` }}>
+ <div className="flex items-center gap-2 mb-2">
+ <CheckCircle2 className="w-4 h-4" style={{ color: successColor }} />
+ <h4 className="font-semibold text-sm">Implementation Ready</h4>
+ </div>
+ <p className="text-xs text-muted-foreground mb-3">
+ All research verification checks passed. These action items are directly derived from your {steps.length} research steps and {totalDataPoints} data points collected. Ready for stakeholder review and implementation planning.
+ </p>
+ <div className="flex flex-wrap gap-2 text-xs">
+ <Badge variant="outline" className="gap-1">
+ <CheckCircle2 className="w-3 h-3" />
+ {actionItems.length} Action Items
+ </Badge>
+ <Badge variant="outline" className="gap-1">
+ <Clock className="w-3 h-3" />
+ {actionItems[0]?.timeline} to Start
+ </Badge>
+ <Badge variant="outline" className="gap-1">
+ <Target className="w-3 h-3" />
+ {actionItems.reduce((sum, item) => sum + item.metrics.length, 0)} Success Metrics
+ </Badge>
+ </div>
+ </div>
+ </TabsContent>
+ </div>
+ </Tabs>
+ </DialogContent>
+ </Dialog>
+ );
+};
diff --git a/v3/goal_ui/src/components/ResearchReviewCard.tsx b/v3/goal_ui/src/components/ResearchReviewCard.tsx
new file mode 100644
index 0000000000..a826696c98
--- /dev/null
+++ b/v3/goal_ui/src/components/ResearchReviewCard.tsx
@@ -0,0 +1,154 @@
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
+import { Textarea } from "@/components/ui/textarea";
+import { Badge } from "@/components/ui/badge";
+import { CheckCircle2, Edit3, Target, GitBranch, Code, TestTube, FileText } from "lucide-react";
+import { useState } from "react";
+
+interface ResearchReviewCardProps {
+ onApprove: () => void;
+ onRevise: (feedback: string) => void;
+ goal: string;
+}
+
+export const ResearchReviewCard = ({ onApprove, onRevise, goal }: ResearchReviewCardProps) => {
+ const [feedback, setFeedback] = useState("");
+ const [showFeedback, setShowFeedback] = useState(false);
+
+ const handleRevise = () => {
+ if (showFeedback) {
+ onRevise(feedback);
+ setFeedback("");
+ setShowFeedback(false);
+ } else {
+ setShowFeedback(true);
+ }
+ };
+
+ return (
+ <Card className="border-2 border-primary/30 bg-gradient-to-br from-background to-primary/5">
+ <CardHeader>
+ <div className="flex items-center justify-between">
+ <div className="space-y-2">
+ <CardTitle className="flex items-center gap-2 text-2xl">
+ <CheckCircle2 className="w-6 h-6 text-primary" />
+ Research Complete - Ready for Review
+ </CardTitle>
+ <CardDescription className="text-base">
+ Review the research findings and execution plan before launching development
+ </CardDescription>
+ </div>
+ </div>
+ </CardHeader>
+ <CardContent className="space-y-6">
+ {/* Goal Summary */}
+ <div className="space-y-2">
+ <div className="flex items-center gap-2 text-sm font-medium text-muted-foreground">
+ <Target className="w-4 h-4" />
+ Project Goal
+ </div>
+ <p className="text-foreground pl-6">{goal}</p>
+ </div>
+
+ {/* Research Summary */}
+ <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
+ <div className="space-y-2 p-4 rounded-lg bg-card border">
+ <div className="flex items-center gap-2">
+ <Target className="w-5 h-5 text-primary" />
+ <span className="font-medium">Goal Assessment</span>
+ </div>
+ <Badge variant="secondary" className="w-fit">Completed</Badge>
+ <p className="text-sm text-muted-foreground">Requirements analyzed, agents identified</p>
+ </div>
+
+ <div className="space-y-2 p-4 rounded-lg bg-card border">
+ <div className="flex items-center gap-2">
+ <GitBranch className="w-5 h-5 text-purple-500" />
+ <span className="font-medium">Architecture</span>
+ </div>
+ <Badge variant="secondary" className="w-fit">Completed</Badge>
+ <p className="text-sm text-muted-foreground">System design, API contracts planned</p>
+ </div>
+
+ <div className="space-y-2 p-4 rounded-lg bg-card border">
+ <div className="flex items-center gap-2">
+ <Code className="w-5 h-5 text-blue-500" />
+ <span className="font-medium">Implementation</span>
+ </div>
+ <Badge variant="secondary" className="w-fit">Ready</Badge>
+ <p className="text-sm text-muted-foreground">42 files, 1,247 LOC planned</p>
+ </div>
+
+ <div className="space-y-2 p-4 rounded-lg bg-card border">
+ <div className="flex items-center gap-2">
+ <TestTube className="w-5 h-5 text-green-500" />
+ <span className="font-medium">Testing</span>
+ </div>
+ <Badge variant="secondary" className="w-fit">Ready</Badge>
+ <p className="text-sm text-muted-foreground">124 tests, 87% coverage target</p>
+ </div>
+ </div>
+
+ {/* Execution Plan Summary */}
+ <div className="space-y-3 p-4 rounded-lg bg-muted/30 border border-muted">
+ <h4 className="font-semibold flex items-center gap-2">
+ <FileText className="w-4 h-4 text-primary" />
+ Execution Plan Summary
+ </h4>
+ <div className="grid grid-cols-2 md:grid-cols-4 gap-4 text-sm">
+ <div>
+ <span className="text-muted-foreground">Total Phases:</span>
+ <p className="font-medium">5 phases</p>
+ </div>
+ <div>
+ <span className="text-muted-foreground">Estimated Duration:</span>
+ <p className="font-medium">~40 seconds</p>
+ </div>
+ <div>
+ <span className="text-muted-foreground">Agents Required:</span>
+ <p className="font-medium">6 agents</p>
+ </div>
+ <div>
+ <span className="text-muted-foreground">Complexity:</span>
+ <p className="font-medium">Medium</p>
+ </div>
+ </div>
+ </div>
+
+ {/* Revision Feedback */}
+ {showFeedback && (
+ <div className="space-y-2 animate-fade-in">
+ <label className="text-sm font-medium">Revision Feedback (Optional)</label>
+ <Textarea
+ placeholder="Describe what should be changed in the research or plan..."
+ value={feedback}
+ onChange={(e) => setFeedback(e.target.value)}
+ className="min-h-[100px]"
+ />
+ </div>
+ )}
+
+ {/* Action Buttons */}
+ <div className="flex gap-3 pt-2">
+ <Button
+ onClick={onApprove}
+ size="lg"
+ className="flex-1 gap-2 bg-gradient-to-r from-primary to-purple-600 hover:from-primary/90 hover:to-purple-600/90"
+ >
+ <CheckCircle2 className="w-5 h-5" />
+ Approve & Launch Development
+ </Button>
+ <Button
+ onClick={handleRevise}
+ variant="outline"
+ size="lg"
+ className="gap-2"
+ >
+ <Edit3 className="w-5 h-5" />
+ {showFeedback ? "Submit Revision Request" : "Request Revision"}
+ </Button>
+ </div>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/v3/goal_ui/src/components/ReviseResearchForm.tsx b/v3/goal_ui/src/components/ReviseResearchForm.tsx
new file mode 100644
index 0000000000..f4875546db
--- /dev/null
+++ b/v3/goal_ui/src/components/ReviseResearchForm.tsx
@@ -0,0 +1,1115 @@
+import { useState } from "react";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
+import { Textarea } from "@/components/ui/textarea";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
+import { Switch } from "@/components/ui/switch";
+import { Slider } from "@/components/ui/slider";
+import {
+ Settings,
+ FileText,
+ Sliders,
+ Database,
+ Sparkles,
+ Target,
+ Clock,
+ Filter,
+ RotateCcw,
+ Workflow,
+ Zap,
+ TrendingUp,
+ Building2,
+ FlaskConical,
+ LineChart,
+ Shield,
+ Rocket
+} from "lucide-react";
+import { supabase } from "@/integrations/supabase/client";
+import { useToast } from "@/hooks/use-toast";
+
+interface ReviseResearchFormProps {
+ currentGoal: string;
+ onSubmit: (config: ResearchConfig) => void;
+ onCancel: () => void;
+ initialConfig?: ResearchConfig;
+ primaryColor?: string;
+ accentColor?: string;
+ backgroundColor?: string;
+}
+
+export interface ResearchConfig {
+ goal: string;
+ // GOAP State Definition
+ stateDefinition: {
+ currentState: Record<string, boolean | string | number>;
+ goalState: Record<string, boolean | string | number>;
+ stateGaps: string[];
+ };
+ // Research Guidance
+ researchGuidance: {
+ focusAreas: string[];
+ excludeTopics: string[];
+ depth: "surface" | "moderate" | "deep";
+ perspective: string;
+ timeframe: string;
+ };
+ // AI Prompts
+ prompts: {
+ systemPrompt: string;
+ searchQueryTemplate: string;
+ analysisPrompt: string;
+ synthesisPrompt: string;
+ };
+ // GOAP Planning Parameters
+ goapConfig: {
+ executionMode: "focused" | "closed" | "open";
+ enableReplanning: boolean;
+ replanningTriggers: string[];
+ costOptimization: boolean;
+ parallelExecution: boolean;
+ };
+ // Action Configuration
+ actionConfig: {
+ maxActionCost: number;
+ enableFallbacks: boolean;
+ validatePreconditions: boolean;
+ trackEffects: boolean;
+ };
+ // Execution Parameters
+ parameters: {
+ maxSources: number;
+ minConfidence: number;
+ maxSteps: number;
+ parallelAgents: number;
+ timeout: number;
+ };
+ // Source Filters
+ filters: {
+ dateRange: string;
+ sourceTypes: string[];
+ languages: string[];
+ excludeDomains: string[];
+ };
+}
+
+export const ReviseResearchForm = ({ currentGoal, onSubmit, onCancel, initialConfig, primaryColor = "#8b5cf6", accentColor = "#22c55e", backgroundColor = "#1a1a1a" }: ReviseResearchFormProps) => {
+ const { toast } = useToast();
+ const [config, setConfig] = useState<ResearchConfig>(
+ initialConfig || {
+ goal: currentGoal,
+ stateDefinition: {
+ currentState: { goalDefined: true, informationGathered: false },
+ goalState: { verified: true, insightsGenerated: true },
+ stateGaps: ["Information needs to be gathered", "Analysis required", "Insights need generation"],
+ },
+ researchGuidance: {
+ focusAreas: [],
+ excludeTopics: [],
+ depth: "moderate",
+ perspective: "technical",
+ timeframe: "recent",
+ },
+ prompts: {
+ systemPrompt: `You are an expert research assistant specializing in GOAP (Goal-Oriented Action Planning) research workflows.
+Your role is to provide precise, evidence-based information for each research step.
+Format your responses as structured data points that can be used in subsequent research steps.
+Always include sources, confidence levels, and timestamps when available.`,
+ searchQueryTemplate: "Latest {topic} advancements {year} research site:arxiv.org OR site:scholar.google.com OR site:ieee.org",
+ analysisPrompt: `Analyze the following content and extract:
+1. Key findings and methodologies
+2. Actionable insights and recommendations
+3. Technical details and specifications
+4. Sources and citations
+5. Confidence level (0-100%) based on source quality`,
+ synthesisPrompt: `Synthesize the research findings into:
+1. Coherent summary of key discoveries
+2. Connections between different sources
+3. Practical recommendations
+4. Identified gaps or conflicts in the data
+5. Overall confidence assessment`,
+ },
+ goapConfig: {
+ executionMode: "closed",
+ enableReplanning: true,
+ replanningTriggers: ["Action failure", "Low confidence results", "Missing preconditions"],
+ costOptimization: true,
+ parallelExecution: true,
+ },
+ actionConfig: {
+ maxActionCost: 5,
+ enableFallbacks: true,
+ validatePreconditions: true,
+ trackEffects: true,
+ },
+ parameters: {
+ maxSources: 15,
+ minConfidence: 85,
+ maxSteps: 7,
+ parallelAgents: 3,
+ timeout: 120,
+ },
+ filters: {
+ dateRange: "past-year",
+ sourceTypes: ["academic", "technical", "industry"],
+ languages: ["en"],
+ excludeDomains: [],
+ },
+ }
+ );
+
+ const [isOptimizing, setIsOptimizing] = useState(false);
+ const [focusAreaInput, setFocusAreaInput] = useState("");
+ const [excludeTopicInput, setExcludeTopicInput] = useState("");
+ const [excludeDomainInput, setExcludeDomainInput] = useState("");
+
+ const presets = [
+ { id: 'academic-deep', label: 'Academic Research', icon: FlaskConical, color: '#3b82f6', desc: 'Deep, rigorous academic analysis' },
+ { id: 'industry-quick', label: 'Industry Quick Scan', icon: Zap, color: '#f59e0b', desc: 'Fast business insights' },
+ { id: 'competitive-analysis', label: 'Competitive Intel', icon: TrendingUp, color: '#ef4444', desc: 'Market & competitor analysis' },
+ { id: 'technical-feasibility', label: 'Technical Study', icon: Settings, color: '#8b5cf6', desc: 'Engineering feasibility' },
+ { id: 'market-trends', label: 'Market Trends', icon: LineChart, color: '#10b981', desc: 'Trend analysis & forecasting' },
+ { id: 'medical-clinical', label: 'Medical/Clinical', icon: Shield, color: '#ec4899', desc: 'Evidence-based medical research' },
+ { id: 'startup-validation', label: 'Startup Validation', icon: Rocket, color: '#06b6d4', desc: 'Business idea validation' },
+ { id: 'policy-regulatory', label: 'Policy & Regulatory', icon: Building2, color: '#84cc16', desc: 'Compliance & legal research' },
+ ];
+
+ const optimizeConfig = async (preset: string) => {
+ setIsOptimizing(true);
+ try {
+ const { data, error } = await supabase.functions.invoke('optimize-research-config', {
+ body: { preset, currentGoal: config.goal }
+ });
+
+ if (error) throw error;
+
+ if (data?.config) {
+ setConfig({
+ ...config,
+ researchGuidance: {
+ ...config.researchGuidance,
+ ...data.config.researchGuidance
+ },
+ prompts: {
+ ...config.prompts,
+ ...data.config.prompts
+ },
+ parameters: {
+ ...config.parameters,
+ ...data.config.parameters
+ },
+ filters: {
+ ...config.filters,
+ ...data.config.filters
+ },
+ goapConfig: {
+ ...config.goapConfig,
+ ...data.config.goapConfig
+ }
+ });
+
+ toast({
+ title: "Configuration Optimized",
+ description: `Settings optimized for ${preset.replace(/-/g, ' ')}`,
+ });
+ }
+ } catch (error) {
+ console.error('Error optimizing config:', error);
+ toast({
+ title: "Optimization Failed",
+ description: "Could not optimize settings. Please try again.",
+ variant: "destructive",
+ });
+ } finally {
+ setIsOptimizing(false);
+ }
+ };
+
+ const addFocusArea = () => {
+ if (focusAreaInput.trim()) {
+ setConfig({
+ ...config,
+ researchGuidance: {
+ ...config.researchGuidance,
+ focusAreas: [...config.researchGuidance.focusAreas, focusAreaInput.trim()],
+ },
+ });
+ setFocusAreaInput("");
+ }
+ };
+
+ const removeFocusArea = (index: number) => {
+ setConfig({
+ ...config,
+ researchGuidance: {
+ ...config.researchGuidance,
+ focusAreas: config.researchGuidance.focusAreas.filter((_, i) => i !== index),
+ },
+ });
+ };
+
+ const addExcludeTopic = () => {
+ if (excludeTopicInput.trim()) {
+ setConfig({
+ ...config,
+ researchGuidance: {
+ ...config.researchGuidance,
+ excludeTopics: [...config.researchGuidance.excludeTopics, excludeTopicInput.trim()],
+ },
+ });
+ setExcludeTopicInput("");
+ }
+ };
+
+ const removeExcludeTopic = (index: number) => {
+ setConfig({
+ ...config,
+ researchGuidance: {
+ ...config.researchGuidance,
+ excludeTopics: config.researchGuidance.excludeTopics.filter((_, i) => i !== index),
+ },
+ });
+ };
+
+ const addExcludeDomain = () => {
+ if (excludeDomainInput.trim()) {
+ setConfig({
+ ...config,
+ filters: {
+ ...config.filters,
+ excludeDomains: [...config.filters.excludeDomains, excludeDomainInput.trim()],
+ },
+ });
+ setExcludeDomainInput("");
+ }
+ };
+
+ const removeExcludeDomain = (index: number) => {
+ setConfig({
+ ...config,
+ filters: {
+ ...config.filters,
+ excludeDomains: config.filters.excludeDomains.filter((_, i) => i !== index),
+ },
+ });
+ };
+
+ const handleSubmit = () => {
+ onSubmit(config);
+ };
+
+ return (
+ <div className="space-y-4">
+ {/* AI Optimization Presets */}
+ <div
+ className="p-4 rounded-lg border space-y-3"
+ style={{
+ backgroundColor: `${primaryColor}0d`,
+ borderColor: `${primaryColor}33`
+ }}
+ >
+ <div className="flex items-center gap-2">
+ <Sparkles className="w-4 h-4" style={{ color: primaryColor }} />
+ <span className="text-sm font-medium" style={{ color: primaryColor }}>
+ AI-Optimize Settings by Research Type:
+ </span>
+ </div>
+ <div className="grid grid-cols-2 sm:grid-cols-4 gap-2">
+ {presets.map((preset) => (
+ <button
+ key={preset.id}
+ type="button"
+ onClick={() => optimizeConfig(preset.id)}
+ disabled={isOptimizing}
+ className="flex flex-col items-start gap-1 px-3 py-2 rounded-md transition-all text-xs border hover:shadow-sm"
+ style={{
+ borderColor: isOptimizing ? preset.color : '#404040',
+ backgroundColor: '#262626',
+ }}
+ title={preset.desc}
+ >
+ <div className="flex items-center gap-1.5 w-full">
+ <preset.icon className="w-3.5 h-3.5 flex-shrink-0" style={{ color: preset.color }} />
+ <span className="font-medium text-foreground text-left leading-tight">{preset.label}</span>
+ </div>
+ <span className="text-[10px] text-muted-foreground leading-tight">{preset.desc}</span>
+ </button>
+ ))}
+ </div>
+ {isOptimizing && (
+ <p className="text-xs flex items-center gap-1.5" style={{ color: primaryColor }}>
+ <Sparkles className="w-3 h-3 animate-spin" />
+ Optimizing research configuration...
+ </p>
+ )}
+ </div>
+
+ {/* Description Header */}
+ <div
+ className="p-4 rounded-lg border"
+ style={{
+ backgroundColor: `${primaryColor}0d`,
+ borderColor: `${primaryColor}33`
+ }}
+ >
+ <p className="text-sm text-muted-foreground">
+ Fine-tune how the AI conducts research by configuring GOAP planning parameters, AI prompts, execution settings, and source filters.
+ </p>
+ </div>
+
+ <Tabs defaultValue="guidance" className="w-full">
+ <TabsList className="grid w-full grid-cols-3 lg:grid-cols-6 gap-1 h-auto p-1 bg-muted/50">
+ <TabsTrigger value="guidance" className="text-xs py-2.5 gap-1 data-[state=active]:bg-background">
+ <Target className="w-3.5 h-3.5" />
+ <span className="hidden sm:inline">Guidance</span>
+ <span className="sm:hidden">Guide</span>
+ </TabsTrigger>
+ <TabsTrigger value="goap" className="text-xs py-2.5 gap-1 data-[state=active]:bg-background">
+ <Workflow className="w-3.5 h-3.5" />
+ <span>GOAP</span>
+ </TabsTrigger>
+ <TabsTrigger value="prompts" className="text-xs py-2.5 gap-1 data-[state=active]:bg-background">
+ <Sparkles className="w-3.5 h-3.5" />
+ <span className="hidden sm:inline">Prompts</span>
+ <span className="sm:hidden">AI</span>
+ </TabsTrigger>
+ <TabsTrigger value="parameters" className="text-xs py-2.5 gap-1 data-[state=active]:bg-background">
+ <Sliders className="w-3.5 h-3.5" />
+ <span className="hidden sm:inline">Parameters</span>
+ <span className="sm:hidden">Params</span>
+ </TabsTrigger>
+ <TabsTrigger value="actions" className="text-xs py-2.5 gap-1 data-[state=active]:bg-background">
+ <Settings className="w-3.5 h-3.5" />
+ <span className="hidden sm:inline">Actions</span>
+ <span className="sm:hidden">Acts</span>
+ </TabsTrigger>
+ <TabsTrigger value="filters" className="text-xs py-2.5 gap-1 data-[state=active]:bg-background">
+ <Filter className="w-3.5 h-3.5" />
+ <span className="hidden sm:inline">Filters</span>
+ <span className="sm:hidden">Filt</span>
+ </TabsTrigger>
+ </TabsList>
+
+ <TabsContent value="guidance" className="space-y-3 mt-4">
+ <Card className="border-muted">
+ <CardHeader className="pb-3">
+ <CardTitle className="flex items-center gap-2 text-base">
+ <Target className="w-4 h-4" style={{ color: primaryColor }} />
+ Research Guidance
+ </CardTitle>
+ <CardDescription className="text-xs">
+ Define the scope and direction of your research
+ </CardDescription>
+ </CardHeader>
+ <CardContent className="space-y-3 pt-0">
+ <div className="space-y-1.5">
+ <Label htmlFor="goal" className="text-xs font-medium">Research Goal</Label>
+ <Textarea
+ id="goal"
+ value={config.goal}
+ onChange={(e) => setConfig({ ...config, goal: e.target.value })}
+ placeholder="Enter your research objective..."
+ className="min-h-[70px] text-sm resize-none"
+ />
+ </div>
+
+ <div className="space-y-1.5">
+ <Label className="text-xs font-medium">Focus Areas <span className="text-muted-foreground font-normal">(specific topics to emphasize)</span></Label>
+ <div className="flex gap-2">
+ <Input
+ value={focusAreaInput}
+ onChange={(e) => setFocusAreaInput(e.target.value)}
+ placeholder="e.g., quantum algorithms, error correction"
+ onKeyPress={(e) => e.key === "Enter" && addFocusArea()}
+ className="text-sm h-9"
+ />
+ <Button onClick={addFocusArea} size="sm" className="h-9 px-3 text-xs">Add</Button>
+ </div>
+ {config.researchGuidance.focusAreas.length > 0 && (
+ <div className="flex flex-wrap gap-1.5 mt-2">
+ {config.researchGuidance.focusAreas.map((area, index) => (
+ <span
+ key={index}
+ className="px-2.5 py-1 rounded-md text-xs flex items-center gap-1.5 transition-colors"
+ style={{
+ backgroundColor: `${primaryColor}1a`,
+ color: primaryColor
+ }}
+ >
+ {area}
+ <button
+ onClick={() => removeFocusArea(index)}
+ className="hover:opacity-70 transition-opacity"
+ >
+ Γ—
+ </button>
+ </span>
+ ))}
+ </div>
+ )}
+ </div>
+
+ <div className="space-y-1.5">
+ <Label className="text-xs font-medium">Exclude Topics</Label>
+ <div className="flex gap-2">
+ <Input
+ value={excludeTopicInput}
+ onChange={(e) => setExcludeTopicInput(e.target.value)}
+ placeholder="e.g., theoretical only, consumer products"
+ onKeyPress={(e) => e.key === "Enter" && addExcludeTopic()}
+ className="text-sm h-9"
+ />
+ <Button onClick={addExcludeTopic} size="sm" variant="outline" className="h-9 px-3 text-xs">Add</Button>
+ </div>
+ {config.researchGuidance.excludeTopics.length > 0 && (
+ <div className="flex flex-wrap gap-1.5 mt-2">
+ {config.researchGuidance.excludeTopics.map((topic, index) => (
+ <span
+ key={index}
+ className="bg-destructive/10 text-destructive px-2.5 py-1 rounded-md text-xs flex items-center gap-1.5"
+ >
+ {topic}
+ <button
+ onClick={() => removeExcludeTopic(index)}
+ className="hover:opacity-70"
+ >
+ Γ—
+ </button>
+ </span>
+ ))}
+ </div>
+ )}
+ </div>
+
+ <div className="grid grid-cols-1 sm:grid-cols-2 gap-3">
+ <div className="space-y-1.5">
+ <Label className="text-xs font-medium">Research Depth</Label>
+ <Select
+ value={config.researchGuidance.depth}
+ onValueChange={(value: "surface" | "moderate" | "deep") =>
+ setConfig({
+ ...config,
+ researchGuidance: { ...config.researchGuidance, depth: value },
+ })
+ }
+ >
+ <SelectTrigger className="h-9 text-sm">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="surface">Surface (Quick overview)</SelectItem>
+ <SelectItem value="moderate">Moderate (Standard depth)</SelectItem>
+ <SelectItem value="deep">Deep (Comprehensive analysis)</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className="space-y-1.5">
+ <Label className="text-xs font-medium">Perspective</Label>
+ <Select
+ value={config.researchGuidance.perspective}
+ onValueChange={(value) =>
+ setConfig({
+ ...config,
+ researchGuidance: { ...config.researchGuidance, perspective: value },
+ })
+ }
+ >
+ <SelectTrigger className="h-9 text-sm">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="technical">Technical/Scientific</SelectItem>
+ <SelectItem value="business">Business/Commercial</SelectItem>
+ <SelectItem value="academic">Academic/Research</SelectItem>
+ <SelectItem value="practical">Practical/Applied</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+ </div>
+
+ <div className="space-y-1.5">
+ <Label className="text-xs font-medium">Timeframe Focus</Label>
+ <Select
+ value={config.researchGuidance.timeframe}
+ onValueChange={(value) =>
+ setConfig({
+ ...config,
+ researchGuidance: { ...config.researchGuidance, timeframe: value },
+ })
+ }
+ >
+ <SelectTrigger className="h-9 text-sm">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="recent">Recent (Last 6 months)</SelectItem>
+ <SelectItem value="current-year">Current Year</SelectItem>
+ <SelectItem value="past-year">Past Year</SelectItem>
+ <SelectItem value="past-2-years">Past 2 Years</SelectItem>
+ <SelectItem value="all-time">All Time</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+ </CardContent>
+ </Card>
+ </TabsContent>
+
+ <TabsContent value="goap" className="space-y-4">
+ <Card>
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <Workflow className="w-5 h-5" />
+ GOAP Configuration
+ </CardTitle>
+ <CardDescription>
+ Configure Goal-Oriented Action Planning parameters
+ </CardDescription>
+ </CardHeader>
+ <CardContent className="space-y-4">
+ <div className="space-y-2">
+ <Label>Execution Mode</Label>
+ <Select
+ value={config.goapConfig.executionMode}
+ onValueChange={(value: "focused" | "closed" | "open") =>
+ setConfig({
+ ...config,
+ goapConfig: { ...config.goapConfig, executionMode: value },
+ })
+ }
+ >
+ <SelectTrigger>
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="focused">Focused (Direct execution)</SelectItem>
+ <SelectItem value="closed">Closed (Single-domain planning)</SelectItem>
+ <SelectItem value="open">Open (Creative problem solving)</SelectItem>
+ </SelectContent>
+ </Select>
+ <p className="text-xs text-muted-foreground">
+ {config.goapConfig.executionMode === "focused" && "Execute specific actions with precondition checking"}
+ {config.goapConfig.executionMode === "closed" && "Plan within defined action set with type safety"}
+ {config.goapConfig.executionMode === "open" && "Explore all actions and discover novel combinations"}
+ </p>
+ </div>
+
+ <div className="flex items-center justify-between">
+ <div className="space-y-0.5">
+ <Label>Enable Replanning</Label>
+ <p className="text-xs text-muted-foreground">Adjust plan when actions fail</p>
+ </div>
+ <Switch
+ checked={config.goapConfig.enableReplanning}
+ onCheckedChange={(checked) =>
+ setConfig({
+ ...config,
+ goapConfig: { ...config.goapConfig, enableReplanning: checked },
+ })
+ }
+ style={{
+ ['--primary' as any]: primaryColor,
+ }}
+ />
+ </div>
+
+ <div className="flex items-center justify-between">
+ <div className="space-y-0.5">
+ <Label>Cost Optimization</Label>
+ <p className="text-xs text-muted-foreground">Find most efficient action paths</p>
+ </div>
+ <Switch
+ checked={config.goapConfig.costOptimization}
+ onCheckedChange={(checked) =>
+ setConfig({
+ ...config,
+ goapConfig: { ...config.goapConfig, costOptimization: checked },
+ })
+ }
+ style={{
+ ['--primary' as any]: primaryColor,
+ }}
+ />
+ </div>
+
+ <div className="flex items-center justify-between">
+ <div className="space-y-0.5">
+ <Label>Parallel Execution</Label>
+ <p className="text-xs text-muted-foreground">Run independent actions simultaneously</p>
+ </div>
+ <Switch
+ checked={config.goapConfig.parallelExecution}
+ onCheckedChange={(checked) =>
+ setConfig({
+ ...config,
+ goapConfig: { ...config.goapConfig, parallelExecution: checked },
+ })
+ }
+ style={{
+ ['--primary' as any]: primaryColor,
+ }}
+ />
+ </div>
+
+ <div className="space-y-2">
+ <Label>Replanning Triggers</Label>
+ <div className="space-y-2">
+ {["Action failure", "Low confidence results", "Missing preconditions", "Timeout exceeded", "State mismatch"].map((trigger) => (
+ <div key={trigger} className="flex items-center space-x-2">
+ <Switch
+ id={trigger}
+ checked={config.goapConfig.replanningTriggers.includes(trigger)}
+ onCheckedChange={(checked) => {
+ const newTriggers = checked
+ ? [...config.goapConfig.replanningTriggers, trigger]
+ : config.goapConfig.replanningTriggers.filter((t) => t !== trigger);
+ setConfig({
+ ...config,
+ goapConfig: { ...config.goapConfig, replanningTriggers: newTriggers },
+ });
+ }}
+ style={{
+ ['--primary' as any]: primaryColor,
+ }}
+ />
+ <Label htmlFor={trigger} className="cursor-pointer text-sm">
+ {trigger}
+ </Label>
+ </div>
+ ))}
+ </div>
+ </div>
+ </CardContent>
+ </Card>
+ </TabsContent>
+
+ <TabsContent value="prompts" className="space-y-4">
+ <Card>
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <Sparkles className="w-5 h-5" />
+ AI Prompts Configuration
+ </CardTitle>
+ <CardDescription>
+ Customize the AI prompts used during research
+ </CardDescription>
+ </CardHeader>
+ <CardContent className="space-y-4">
+ <div className="space-y-2">
+ <Label htmlFor="systemPrompt">System Prompt</Label>
+ <Textarea
+ id="systemPrompt"
+ value={config.prompts.systemPrompt}
+ onChange={(e) =>
+ setConfig({
+ ...config,
+ prompts: { ...config.prompts, systemPrompt: e.target.value },
+ })
+ }
+ placeholder="Define the AI's role and behavior..."
+ className="min-h-[100px] font-mono text-sm"
+ />
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="searchQuery">Search Query Template</Label>
+ <Textarea
+ id="searchQuery"
+ value={config.prompts.searchQueryTemplate}
+ onChange={(e) =>
+ setConfig({
+ ...config,
+ prompts: { ...config.prompts, searchQueryTemplate: e.target.value },
+ })
+ }
+ placeholder="Use {topic} and {year} placeholders..."
+ className="min-h-[80px] font-mono text-sm"
+ />
+ <p className="text-xs text-muted-foreground">
+ Available variables: {"{topic}"}, {"{year}"}, {"{keywords}"}
+ </p>
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="analysisPrompt">Document Analysis Prompt</Label>
+ <Textarea
+ id="analysisPrompt"
+ value={config.prompts.analysisPrompt}
+ onChange={(e) =>
+ setConfig({
+ ...config,
+ prompts: { ...config.prompts, analysisPrompt: e.target.value },
+ })
+ }
+ placeholder="Instructions for analyzing documents..."
+ className="min-h-[80px] font-mono text-sm"
+ />
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="synthesisPrompt">Synthesis Prompt</Label>
+ <Textarea
+ id="synthesisPrompt"
+ value={config.prompts.synthesisPrompt}
+ onChange={(e) =>
+ setConfig({
+ ...config,
+ prompts: { ...config.prompts, synthesisPrompt: e.target.value },
+ })
+ }
+ placeholder="Instructions for synthesizing findings..."
+ className="min-h-[80px] font-mono text-sm"
+ />
+ </div>
+ </CardContent>
+ </Card>
+ </TabsContent>
+
+ <TabsContent value="parameters" className="space-y-4">
+ <Card>
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <Sliders className="w-5 h-5" />
+ Research Parameters
+ </CardTitle>
+ <CardDescription>
+ Fine-tune the research execution settings
+ </CardDescription>
+ </CardHeader>
+ <CardContent className="space-y-6">
+ <div className="space-y-2">
+ <div className="flex justify-between">
+ <Label>Maximum Sources</Label>
+ <span className="text-sm text-muted-foreground">{config.parameters.maxSources}</span>
+ </div>
+ <Slider
+ value={[config.parameters.maxSources]}
+ onValueChange={(value) =>
+ setConfig({
+ ...config,
+ parameters: { ...config.parameters, maxSources: value[0] },
+ })
+ }
+ min={5}
+ max={50}
+ step={5}
+ />
+ </div>
+
+ <div className="space-y-2">
+ <div className="flex justify-between">
+ <Label>Minimum Confidence (%)</Label>
+ <span className="text-sm text-muted-foreground">{config.parameters.minConfidence}%</span>
+ </div>
+ <Slider
+ value={[config.parameters.minConfidence]}
+ onValueChange={(value) =>
+ setConfig({
+ ...config,
+ parameters: { ...config.parameters, minConfidence: value[0] },
+ })
+ }
+ min={50}
+ max={99}
+ step={5}
+ />
+ </div>
+
+ <div className="space-y-2">
+ <div className="flex justify-between">
+ <Label>Maximum Research Steps</Label>
+ <span className="text-sm text-muted-foreground">{config.parameters.maxSteps}</span>
+ </div>
+ <Slider
+ value={[config.parameters.maxSteps]}
+ onValueChange={(value) =>
+ setConfig({
+ ...config,
+ parameters: { ...config.parameters, maxSteps: value[0] },
+ })
+ }
+ min={3}
+ max={15}
+ step={1}
+ />
+ </div>
+
+ <div className="space-y-2">
+ <div className="flex justify-between">
+ <Label>Parallel Agents</Label>
+ <span className="text-sm text-muted-foreground">{config.parameters.parallelAgents}</span>
+ </div>
+ <Slider
+ value={[config.parameters.parallelAgents]}
+ onValueChange={(value) =>
+ setConfig({
+ ...config,
+ parameters: { ...config.parameters, parallelAgents: value[0] },
+ })
+ }
+ min={1}
+ max={10}
+ step={1}
+ />
+ </div>
+
+ <div className="space-y-2">
+ <div className="flex justify-between">
+ <Label>Timeout (seconds)</Label>
+ <span className="text-sm text-muted-foreground">{config.parameters.timeout}s</span>
+ </div>
+ <Slider
+ value={[config.parameters.timeout]}
+ onValueChange={(value) =>
+ setConfig({
+ ...config,
+ parameters: { ...config.parameters, timeout: value[0] },
+ })
+ }
+ min={30}
+ max={300}
+ step={30}
+ />
+ </div>
+ </CardContent>
+ </Card>
+ </TabsContent>
+
+ <TabsContent value="actions" className="space-y-4">
+ <Card>
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <Settings className="w-5 h-5" />
+ Action Configuration
+ </CardTitle>
+ <CardDescription>
+ Configure how actions are validated and executed
+ </CardDescription>
+ </CardHeader>
+ <CardContent className="space-y-4">
+ <div className="space-y-2">
+ <div className="flex justify-between">
+ <Label>Maximum Action Cost</Label>
+ <span className="text-sm text-muted-foreground">{config.actionConfig.maxActionCost}</span>
+ </div>
+ <Slider
+ value={[config.actionConfig.maxActionCost]}
+ onValueChange={(value) =>
+ setConfig({
+ ...config,
+ actionConfig: { ...config.actionConfig, maxActionCost: value[0] },
+ })
+ }
+ min={1}
+ max={10}
+ step={1}
+ />
+ <p className="text-xs text-muted-foreground">
+ Limit complexity of individual actions in the plan
+ </p>
+ </div>
+
+ <div className="flex items-center justify-between">
+ <div className="space-y-0.5">
+ <Label>Enable Fallbacks</Label>
+ <p className="text-xs text-muted-foreground">Use alternative actions when primary fails</p>
+ </div>
+ <Switch
+ checked={config.actionConfig.enableFallbacks}
+ onCheckedChange={(checked) =>
+ setConfig({
+ ...config,
+ actionConfig: { ...config.actionConfig, enableFallbacks: checked },
+ })
+ }
+ style={{
+ ['--primary' as any]: primaryColor,
+ }}
+ />
+ </div>
+
+ <div className="flex items-center justify-between">
+ <div className="space-y-0.5">
+ <Label>Validate Preconditions</Label>
+ <p className="text-xs text-muted-foreground">Check all requirements before executing actions</p>
+ </div>
+ <Switch
+ checked={config.actionConfig.validatePreconditions}
+ onCheckedChange={(checked) =>
+ setConfig({
+ ...config,
+ actionConfig: { ...config.actionConfig, validatePreconditions: checked },
+ })
+ }
+ style={{
+ ['--primary' as any]: primaryColor,
+ }}
+ />
+ </div>
+
+ <div className="flex items-center justify-between">
+ <div className="space-y-0.5">
+ <Label>Track Effects</Label>
+ <p className="text-xs text-muted-foreground">Monitor state changes from each action</p>
+ </div>
+ <Switch
+ checked={config.actionConfig.trackEffects}
+ onCheckedChange={(checked) =>
+ setConfig({
+ ...config,
+ actionConfig: { ...config.actionConfig, trackEffects: checked },
+ })
+ }
+ style={{
+ ['--primary' as any]: primaryColor,
+ }}
+ />
+ </div>
+ </CardContent>
+ </Card>
+ </TabsContent>
+
+ <TabsContent value="filters" className="space-y-4">
+ <Card>
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <Filter className="w-5 h-5" />
+ Source Filters
+ </CardTitle>
+ <CardDescription>
+ Control which sources are included in research
+ </CardDescription>
+ </CardHeader>
+ <CardContent className="space-y-4">
+ <div className="space-y-2">
+ <Label>Date Range</Label>
+ <Select
+ value={config.filters.dateRange}
+ onValueChange={(value) =>
+ setConfig({
+ ...config,
+ filters: { ...config.filters, dateRange: value },
+ })
+ }
+ >
+ <SelectTrigger>
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="past-week">Past Week</SelectItem>
+ <SelectItem value="past-month">Past Month</SelectItem>
+ <SelectItem value="past-3-months">Past 3 Months</SelectItem>
+ <SelectItem value="past-6-months">Past 6 Months</SelectItem>
+ <SelectItem value="past-year">Past Year</SelectItem>
+ <SelectItem value="past-2-years">Past 2 Years</SelectItem>
+ <SelectItem value="all">All Time</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className="space-y-2">
+ <Label>Source Types</Label>
+ <div className="space-y-2">
+ {["academic", "technical", "industry", "news", "blogs", "documentation"].map((type) => (
+ <div key={type} className="flex items-center space-x-2">
+ <Switch
+ id={type}
+ checked={config.filters.sourceTypes.includes(type)}
+ onCheckedChange={(checked) => {
+ const newTypes = checked
+ ? [...config.filters.sourceTypes, type]
+ : config.filters.sourceTypes.filter((t) => t !== type);
+ setConfig({
+ ...config,
+ filters: { ...config.filters, sourceTypes: newTypes },
+ });
+ }}
+ />
+ <Label htmlFor={type} className="capitalize cursor-pointer">
+ {type}
+ </Label>
+ </div>
+ ))}
+ </div>
+ </div>
+
+ <div className="space-y-2">
+ <Label>Exclude Domains</Label>
+ <div className="flex gap-2">
+ <Input
+ value={excludeDomainInput}
+ onChange={(e) => setExcludeDomainInput(e.target.value)}
+ placeholder="e.g., example.com"
+ onKeyPress={(e) => e.key === "Enter" && addExcludeDomain()}
+ />
+ <Button onClick={addExcludeDomain} size="sm">Add</Button>
+ </div>
+ <div className="flex flex-wrap gap-2 mt-2">
+ {config.filters.excludeDomains.map((domain, index) => (
+ <span
+ key={index}
+ className="bg-muted px-3 py-1 rounded-full text-sm flex items-center gap-2"
+ >
+ {domain}
+ <button
+ onClick={() => removeExcludeDomain(index)}
+ className="hover:text-destructive"
+ >
+ Γ—
+ </button>
+ </span>
+ ))}
+ </div>
+ </div>
+
+ <div className="space-y-2">
+ <Label>Languages</Label>
+ <div className="space-y-2">
+ {[
+ { code: "en", label: "English" },
+ { code: "es", label: "Spanish" },
+ { code: "fr", label: "French" },
+ { code: "de", label: "German" },
+ { code: "zh", label: "Chinese" },
+ { code: "ja", label: "Japanese" },
+ ].map(({ code, label }) => (
+ <div key={code} className="flex items-center space-x-2">
+ <Switch
+ id={code}
+ checked={config.filters.languages.includes(code)}
+ onCheckedChange={(checked) => {
+ const newLangs = checked
+ ? [...config.filters.languages, code]
+ : config.filters.languages.filter((l) => l !== code);
+ setConfig({
+ ...config,
+ filters: { ...config.filters, languages: newLangs },
+ });
+ }}
+ />
+ <Label htmlFor={code} className="cursor-pointer">
+ {label}
+ </Label>
+ </div>
+ ))}
+ </div>
+ </div>
+ </CardContent>
+ </Card>
+ </TabsContent>
+ </Tabs>
+
+ <div className="flex justify-end gap-3 pt-4 border-t">
+ <Button variant="outline" onClick={onCancel}>
+ Cancel
+ </Button>
+ <Button onClick={handleSubmit} className="gap-2">
+ <RotateCcw className="w-4 h-4" />
+ Start Revised Research
+ </Button>
+ </div>
+ </div>
+ );
+};
\ No newline at end of file
diff --git a/v3/goal_ui/src/components/StateAssessmentCard.tsx b/v3/goal_ui/src/components/StateAssessmentCard.tsx
new file mode 100644
index 0000000000..8f77f1656d
--- /dev/null
+++ b/v3/goal_ui/src/components/StateAssessmentCard.tsx
@@ -0,0 +1,309 @@
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { Badge } from "@/components/ui/badge";
+import { Progress } from "@/components/ui/progress";
+import { CheckCircle2, Circle, Target, TrendingUp, ArrowRight, Zap } from "lucide-react";
+import { useEffect, useState } from "react";
+
+interface StateAssessmentCardProps {
+ currentState: Record<string, boolean | string | number>;
+ goalState: Record<string, boolean | string | number>;
+ stateGaps: string[];
+ primaryColor: string;
+ accentColor: string;
+}
+
+export const StateAssessmentCard = ({
+ currentState,
+ goalState,
+ stateGaps,
+ primaryColor,
+ accentColor,
+}: StateAssessmentCardProps) => {
+ const [visibleStates, setVisibleStates] = useState<string[]>([]);
+ const [animatingState, setAnimatingState] = useState<string | null>(null);
+
+ const currentStateEntries = Object.entries(currentState);
+ const goalStateEntries = Object.entries(goalState);
+
+ // Calculate progress percentage
+ const completedCount = currentStateEntries.filter(([_, value]) => value === true).length;
+ const totalCount = goalStateEntries.length;
+ const progressPercentage = Math.round((completedCount / totalCount) * 100);
+
+ // Animate state entries appearing one by one
+ useEffect(() => {
+ const allKeys = currentStateEntries.map(([key]) => key);
+ setVisibleStates([]);
+
+ allKeys.forEach((key, index) => {
+ setTimeout(() => {
+ setVisibleStates(prev => [...prev, key]);
+ setAnimatingState(key);
+ setTimeout(() => setAnimatingState(null), 600);
+ }, index * 150);
+ });
+ }, [JSON.stringify(currentState)]);
+
+ // Check if state has changed (for highlighting)
+ const hasStateChanged = (key: string) => {
+ return currentState[key] === true && animatingState === key;
+ };
+
+ return (
+ <Card className="border-2 overflow-hidden relative" style={{ borderColor: `${primaryColor}40` }}>
+ {/* Animated background gradient */}
+ <div
+ className="absolute inset-0 opacity-5 pointer-events-none"
+ style={{
+ background: `linear-gradient(135deg, ${primaryColor} 0%, ${accentColor} 100%)`,
+ }}
+ />
+
+ <CardHeader className="relative">
+ <div className="flex items-center justify-between">
+ <div className="space-y-1">
+ <CardTitle className="flex items-center gap-2">
+ <Target className="w-5 h-5 animate-pulse" style={{ color: primaryColor }} />
+ GOAP State Assessment
+ </CardTitle>
+ <CardDescription>
+ Real-time state progression tracking
+ </CardDescription>
+ </div>
+ <div className="text-right">
+ <div className="text-2xl font-bold" style={{ color: primaryColor }}>
+ {progressPercentage}%
+ </div>
+ <div className="text-xs text-muted-foreground">
+ {completedCount}/{totalCount} complete
+ </div>
+ </div>
+ </div>
+
+ {/* Overall Progress Bar */}
+ <div className="mt-4">
+ <Progress
+ value={progressPercentage}
+ className="h-2"
+ style={{
+ backgroundColor: `${primaryColor}20`,
+ }}
+ />
+ </div>
+ </CardHeader>
+
+ <CardContent className="space-y-4 relative">
+ {/* State Comparison Grid */}
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-6">
+ {/* Current State */}
+ <div className="space-y-3">
+ <div className="flex items-center gap-2 pb-2 border-b">
+ <Circle className="w-4 h-4" style={{ color: primaryColor }} />
+ <h4 className="text-sm font-semibold">System State</h4>
+ <Badge variant="outline" className="ml-auto text-xs">
+ Current
+ </Badge>
+ </div>
+ <div className="space-y-1">
+ {currentStateEntries.map(([key, value], index) => {
+ const isVisible = visibleStates.includes(key);
+ const isAnimating = hasStateChanged(key);
+ const isTrue = value === true;
+
+ return (
+ <div
+ key={key}
+ className={`
+ flex items-center gap-3 p-2 rounded-lg border transition-all duration-500
+ ${!isVisible ? 'opacity-0 translate-x-4' : 'opacity-100 translate-x-0'}
+ ${isAnimating ? 'ring-2 scale-105' : 'scale-100'}
+ ${isTrue ? 'bg-green-500/10 border-green-500/30' : 'bg-muted/50 border-border'}
+ `}
+ style={{
+ animationDelay: `${index * 100}ms`,
+ ...(isAnimating && { ringColor: primaryColor }),
+ }}
+ >
+ <div className={`
+ flex items-center justify-center w-6 h-6 rounded-full transition-all duration-500
+ ${isTrue ? 'bg-green-500' : 'bg-muted'}
+ `}>
+ {isTrue ? (
+ <CheckCircle2 className="w-4 h-4 text-white" />
+ ) : (
+ <Circle className="w-4 h-4 text-muted-foreground" />
+ )}
+ </div>
+
+ <div className="flex-1">
+ <span className="font-mono text-xs font-medium">
+ {key.replace(/_/g, ' ')}
+ </span>
+ </div>
+
+ <Badge
+ variant={isTrue ? "default" : "secondary"}
+ className={`text-xs transition-all duration-300 ${isAnimating ? 'animate-pulse' : ''}`}
+ >
+ {String(value)}
+ </Badge>
+ </div>
+ );
+ })}
+ </div>
+ </div>
+
+ {/* Goal State */}
+ <div className="space-y-3">
+ <div className="flex items-center gap-2 pb-2 border-b">
+ <CheckCircle2 className="w-4 h-4" style={{ color: accentColor }} />
+ <h4 className="text-sm font-semibold" style={{ color: accentColor }}>
+ Goal State
+ </h4>
+ <Badge variant="outline" className="ml-auto text-xs" style={{ borderColor: accentColor, color: accentColor }}>
+ Target
+ </Badge>
+ </div>
+ <div className="space-y-1">
+ {goalStateEntries.map(([key, value], index) => {
+ const isVisible = visibleStates.includes(key);
+ const isAchieved = currentState[key] === value;
+
+ return (
+ <div
+ key={key}
+ className={`
+ flex items-center gap-3 p-2 rounded-lg transition-all duration-500 border
+ ${!isVisible ? 'opacity-0 -translate-x-4' : 'opacity-100 translate-x-0'}
+ ${isAchieved ? 'bg-green-500/10 border-green-500/30' : ''}
+ `}
+ style={{
+ backgroundColor: isAchieved ? undefined : `${accentColor}10`,
+ borderColor: isAchieved ? undefined : `${accentColor}30`,
+ animationDelay: `${index * 100}ms`,
+ }}
+ >
+ <div
+ className={`
+ flex items-center justify-center w-6 h-6 rounded-full transition-all duration-500
+ ${isAchieved ? 'bg-green-500' : ''}
+ `}
+ style={{
+ backgroundColor: isAchieved ? undefined : accentColor,
+ }}
+ >
+ <CheckCircle2 className="w-4 h-4 text-white" />
+ </div>
+
+ <div className="flex-1">
+ <span className="font-mono text-xs font-medium">
+ {key.replace(/_/g, ' ')}
+ </span>
+ </div>
+
+ <Badge
+ className="text-xs"
+ style={{
+ backgroundColor: isAchieved ? undefined : accentColor,
+ color: 'white'
+ }}
+ >
+ {String(value)}
+ </Badge>
+ </div>
+ );
+ })}
+ </div>
+ </div>
+ </div>
+
+ {/* State Transitions */}
+ <div className="pt-2 border-t">
+ <div className="flex items-center gap-2 mb-2">
+ <ArrowRight className="w-4 h-4" style={{ color: primaryColor }} />
+ <h4 className="text-sm font-semibold">State Transitions</h4>
+ </div>
+ <div className="grid grid-cols-1 md:grid-cols-3 gap-2">
+ {currentStateEntries.slice(0, 3).map(([key, currentValue], index) => {
+ const goalValue = goalState[key];
+ const isTransitioning = currentValue !== goalValue;
+ const isVisible = visibleStates.includes(key);
+
+ return (
+ <div
+ key={key}
+ className={`
+ p-2 rounded-lg border bg-card transition-all duration-500
+ ${!isVisible ? 'opacity-0 translate-y-4' : 'opacity-100 translate-y-0'}
+ `}
+ style={{ animationDelay: `${(index + currentStateEntries.length) * 100}ms` }}
+ >
+ <div className="flex items-center justify-between mb-2">
+ <span className="text-xs font-mono font-medium">
+ {key.replace(/_/g, ' ')}
+ </span>
+ {isTransitioning && (
+ <Zap className="w-3 h-3 text-yellow-500 animate-pulse" />
+ )}
+ </div>
+ <div className="flex items-center gap-2">
+ <Badge variant="secondary" className="text-xs">
+ {String(currentValue)}
+ </Badge>
+ <ArrowRight className="w-3 h-3 text-muted-foreground" />
+ <Badge
+ className="text-xs"
+ style={{ backgroundColor: accentColor, color: 'white' }}
+ >
+ {String(goalValue)}
+ </Badge>
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ </div>
+
+ {/* State Gaps - Animated List */}
+ {stateGaps.length > 0 && (
+ <div className="space-y-3 pt-4 border-t">
+ <div className="flex items-center gap-2">
+ <TrendingUp className="w-4 h-4" style={{ color: primaryColor }} />
+ <h4 className="text-sm font-semibold">Action Plan</h4>
+ <Badge variant="outline" className="ml-auto text-xs">
+ {stateGaps.length} steps remaining
+ </Badge>
+ </div>
+ <div className="space-y-2">
+ {stateGaps.map((gap, idx) => (
+ <div
+ key={idx}
+ className="flex items-start gap-3 p-3 rounded-lg border bg-card hover:bg-accent/50 transition-all duration-300 animate-fade-in group"
+ style={{
+ animationDelay: `${(idx + currentStateEntries.length * 2) * 100}ms`,
+ animationFillMode: 'forwards',
+ opacity: 0,
+ }}
+ >
+ <div
+ className="flex items-center justify-center w-6 h-6 rounded-full font-bold text-xs transition-all duration-300 group-hover:scale-110"
+ style={{
+ backgroundColor: `${primaryColor}20`,
+ color: primaryColor,
+ }}
+ >
+ {idx + 1}
+ </div>
+ <div className="flex-1">
+ <p className="text-sm leading-relaxed">{gap}</p>
+ </div>
+ <ArrowRight className="w-4 h-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
+ </div>
+ ))}
+ </div>
+ </div>
+ )}
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/v3/goal_ui/src/components/WidgetCustomizer.tsx b/v3/goal_ui/src/components/WidgetCustomizer.tsx
new file mode 100644
index 0000000000..472588e4c6
--- /dev/null
+++ b/v3/goal_ui/src/components/WidgetCustomizer.tsx
@@ -0,0 +1,454 @@
+import { useState } from "react";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
+import { Textarea } from "@/components/ui/textarea";
+import { Switch } from "@/components/ui/switch";
+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import { Settings, Palette, Type, Copy, Check, Sliders } from "lucide-react";
+import { cn } from "@/lib/utils";
+
+interface WidgetConfig {
+ primaryColor: string;
+ accentColor: string;
+ backgroundColor: string;
+ cardBackgroundColor: string;
+ cardBorderColor: string;
+ textColor: string;
+ secondaryTextColor: string;
+ successColor: string;
+ title: string;
+ description: string;
+ brandName: string;
+ defaultGoal: string;
+ fontFamily: string;
+ borderRadius: string;
+ animationSpeed: string;
+ cardSpacing: string;
+ showMetrics: boolean;
+ showStats: boolean;
+ compactMode: boolean;
+ enableAI: boolean;
+ aiModel: string;
+}
+
+interface WidgetCustomizerProps {
+ config: WidgetConfig;
+ onConfigChange: (config: WidgetConfig) => void;
+ onGenerate: () => void;
+}
+
+export const WidgetCustomizer = ({ config, onConfigChange, onGenerate }: WidgetCustomizerProps) => {
+ const [copied, setCopied] = useState(false);
+ const [showEmbedCode, setShowEmbedCode] = useState(false);
+
+ const updateConfig = (key: keyof WidgetConfig, value: string | boolean) => {
+ onConfigChange({ ...config, [key]: value });
+ };
+
+ const generateEmbedCode = () => {
+ const embedCode = `<!-- RuFlo Research Widget -->
+<div id="ruflo-research-widget-container"></div>
+<script>
+ window.RufloResearchWidgetConfig = ${JSON.stringify(config, null, 2)};
+</script>
+<script src="${window.location.origin}/widget.js"></script>
+<style>
+ #ruflo-research-widget-container {
+ max-width: 100%;
+ margin: 2rem auto;
+ }
+</style>`;
+ return embedCode;
+ };
+
+ const copyEmbedCode = () => {
+ navigator.clipboard.writeText(generateEmbedCode());
+ setCopied(true);
+ setTimeout(() => setCopied(false), 2000);
+ };
+
+ const ColorInput = ({ id, label, value, onChange }: { id: string; label: string; value: string; onChange: (value: string) => void }) => (
+ <div>
+ <Label htmlFor={id} className="text-xs text-muted-foreground">
+ {label}
+ </Label>
+ <div className="flex gap-2 mt-1">
+ <Input
+ id={id}
+ type="color"
+ value={value}
+ onChange={(e) => onChange(e.target.value)}
+ className="w-16 h-10 p-1 cursor-pointer"
+ />
+ <Input
+ type="text"
+ value={value}
+ onChange={(e) => onChange(e.target.value)}
+ className="flex-1 text-xs"
+ />
+ </div>
+ </div>
+ );
+
+ return (
+ <div className="space-y-6">
+ <div className="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3">
+ <p className="text-xs sm:text-sm text-muted-foreground">
+ Customize the appearance and content of your embeddable research widget
+ </p>
+ <Button
+ onClick={() => {
+ setShowEmbedCode(!showEmbedCode);
+ if (!showEmbedCode) {
+ onGenerate();
+ }
+ }}
+ size="sm"
+ variant={showEmbedCode ? "outline" : "default"}
+ className="w-full sm:w-auto text-xs sm:text-sm whitespace-nowrap"
+ >
+ {showEmbedCode ? "Hide Code" : "Generate Embed Code"}
+ </Button>
+ </div>
+
+ <Tabs defaultValue="colors" className="w-full">
+ <TabsList className="grid w-full grid-cols-2 sm:grid-cols-4 gap-1">
+ <TabsTrigger value="colors" className="text-xs sm:text-sm">Colors</TabsTrigger>
+ <TabsTrigger value="content" className="text-xs sm:text-sm">Content</TabsTrigger>
+ <TabsTrigger value="layout" className="text-xs sm:text-sm">Layout</TabsTrigger>
+ <TabsTrigger value="ai" className="text-xs sm:text-sm">AI Settings</TabsTrigger>
+ </TabsList>
+
+ <TabsContent value="colors" className="space-y-4 mt-4">
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
+ <div className="space-y-3">
+ <h3 className="text-xs sm:text-sm font-medium text-foreground">Primary Colors</h3>
+ <ColorInput
+ id="primaryColor"
+ label="Primary Color"
+ value={config.primaryColor}
+ onChange={(value) => updateConfig("primaryColor", value)}
+ />
+ <ColorInput
+ id="accentColor"
+ label="Accent Color"
+ value={config.accentColor}
+ onChange={(value) => updateConfig("accentColor", value)}
+ />
+ <ColorInput
+ id="successColor"
+ label="Success Color"
+ value={config.successColor}
+ onChange={(value) => updateConfig("successColor", value)}
+ />
+ </div>
+
+ <div className="space-y-3">
+ <h3 className="text-xs sm:text-sm font-medium text-foreground">Background & Card Colors</h3>
+ <ColorInput
+ id="backgroundColor"
+ label="Background Color"
+ value={config.backgroundColor}
+ onChange={(value) => updateConfig("backgroundColor", value)}
+ />
+ <ColorInput
+ id="cardBackgroundColor"
+ label="Card Background"
+ value={config.cardBackgroundColor}
+ onChange={(value) => updateConfig("cardBackgroundColor", value)}
+ />
+ <ColorInput
+ id="cardBorderColor"
+ label="Card Border"
+ value={config.cardBorderColor}
+ onChange={(value) => updateConfig("cardBorderColor", value)}
+ />
+ </div>
+
+ <div className="space-y-3 md:col-span-2">
+ <h3 className="text-xs sm:text-sm font-medium text-foreground">Text Colors</h3>
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
+ <ColorInput
+ id="textColor"
+ label="Primary Text"
+ value={config.textColor}
+ onChange={(value) => updateConfig("textColor", value)}
+ />
+ <ColorInput
+ id="secondaryTextColor"
+ label="Secondary Text"
+ value={config.secondaryTextColor}
+ onChange={(value) => updateConfig("secondaryTextColor", value)}
+ />
+ </div>
+ </div>
+ </div>
+ </TabsContent>
+
+ <TabsContent value="content" className="space-y-4 mt-4">
+ <div className="space-y-3">
+ <div>
+ <Label htmlFor="title" className="text-xs text-muted-foreground">
+ Widget Title
+ </Label>
+ <Input
+ id="title"
+ value={config.title}
+ onChange={(e) => updateConfig("title", e.target.value)}
+ className="mt-1"
+ placeholder="Goal-Oriented Action Planning"
+ />
+ </div>
+
+ <div>
+ <Label htmlFor="description" className="text-xs text-muted-foreground">
+ Description
+ </Label>
+ <Textarea
+ id="description"
+ value={config.description}
+ onChange={(e) => updateConfig("description", e.target.value)}
+ className="mt-1 min-h-[80px]"
+ placeholder="AI-powered research planning..."
+ />
+ </div>
+
+ <div>
+ <Label htmlFor="brandName" className="text-xs text-muted-foreground">
+ Brand Name (optional)
+ </Label>
+ <Input
+ id="brandName"
+ value={config.brandName}
+ onChange={(e) => updateConfig("brandName", e.target.value)}
+ className="mt-1"
+ placeholder="Your Company"
+ />
+ </div>
+
+ <div>
+ <Label htmlFor="defaultGoal" className="text-xs text-muted-foreground">
+ Default Research Goal
+ </Label>
+ <Input
+ id="defaultGoal"
+ value={config.defaultGoal}
+ onChange={(e) => updateConfig("defaultGoal", e.target.value)}
+ className="mt-1"
+ placeholder="Research latest AI advancements"
+ />
+ </div>
+ </div>
+ </TabsContent>
+
+ <TabsContent value="layout" className="space-y-4 mt-4">
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
+ <div className="space-y-3">
+ <h3 className="text-xs sm:text-sm font-medium text-foreground">Typography & Spacing</h3>
+ <div>
+ <Label htmlFor="fontFamily" className="text-xs text-muted-foreground">
+ Font Family
+ </Label>
+ <Select value={config.fontFamily} onValueChange={(value) => updateConfig("fontFamily", value)}>
+ <SelectTrigger className="mt-1">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="system-ui">System UI</SelectItem>
+ <SelectItem value="Inter, sans-serif">Inter</SelectItem>
+ <SelectItem value="Roboto, sans-serif">Roboto</SelectItem>
+ <SelectItem value="'Open Sans', sans-serif">Open Sans</SelectItem>
+ <SelectItem value="'Poppins', sans-serif">Poppins</SelectItem>
+ <SelectItem value="monospace">Monospace</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div>
+ <Label htmlFor="borderRadius" className="text-xs text-muted-foreground">
+ Border Radius
+ </Label>
+ <Select value={config.borderRadius} onValueChange={(value) => updateConfig("borderRadius", value)}>
+ <SelectTrigger className="mt-1">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="0">None (0px)</SelectItem>
+ <SelectItem value="0.25rem">Small (4px)</SelectItem>
+ <SelectItem value="0.5rem">Medium (8px)</SelectItem>
+ <SelectItem value="0.75rem">Large (12px)</SelectItem>
+ <SelectItem value="1rem">XL (16px)</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div>
+ <Label htmlFor="cardSpacing" className="text-xs text-muted-foreground">
+ Card Spacing
+ </Label>
+ <Select value={config.cardSpacing} onValueChange={(value) => updateConfig("cardSpacing", value)}>
+ <SelectTrigger className="mt-1">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="0.5rem">Tight</SelectItem>
+ <SelectItem value="1rem">Normal</SelectItem>
+ <SelectItem value="1.5rem">Relaxed</SelectItem>
+ <SelectItem value="2rem">Loose</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div>
+ <Label htmlFor="animationSpeed" className="text-xs text-muted-foreground">
+ Animation Speed
+ </Label>
+ <Select value={config.animationSpeed} onValueChange={(value) => updateConfig("animationSpeed", value)}>
+ <SelectTrigger className="mt-1">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="fast">Fast</SelectItem>
+ <SelectItem value="normal">Normal</SelectItem>
+ <SelectItem value="slow">Slow</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+ </div>
+
+ <div className="space-y-3">
+ <h3 className="text-xs sm:text-sm font-medium text-foreground">Display Options</h3>
+ <div className="space-y-3 pt-2">
+ <div className="flex items-center justify-between">
+ <Label htmlFor="showMetrics" className="text-xs text-muted-foreground">
+ Show Metrics
+ </Label>
+ <Switch
+ id="showMetrics"
+ checked={config.showMetrics}
+ onCheckedChange={(checked) => updateConfig("showMetrics", checked)}
+ />
+ </div>
+
+ <div className="flex items-center justify-between">
+ <Label htmlFor="showStats" className="text-xs text-muted-foreground">
+ Show Stats
+ </Label>
+ <Switch
+ id="showStats"
+ checked={config.showStats}
+ onCheckedChange={(checked) => updateConfig("showStats", checked)}
+ />
+ </div>
+
+ <div className="flex items-center justify-between">
+ <Label htmlFor="compactMode" className="text-xs text-muted-foreground">
+ Compact Mode
+ </Label>
+ <Switch
+ id="compactMode"
+ checked={config.compactMode}
+ onCheckedChange={(checked) => updateConfig("compactMode", checked)}
+ />
+ </div>
+ </div>
+ </div>
+ </div>
+ </TabsContent>
+
+ <TabsContent value="ai" className="space-y-4 mt-4">
+ <div className="space-y-4">
+ <div className="space-y-3">
+ <h3 className="text-xs sm:text-sm font-medium text-foreground">AI Research Settings</h3>
+ <p className="text-xs text-muted-foreground">
+ Configure AI-powered research data generation using Google Gemini models
+ </p>
+
+ <div className="flex items-center justify-between pt-2">
+ <div className="space-y-0.5">
+ <Label htmlFor="enableAI" className="text-xs text-muted-foreground">
+ Enable AI Research
+ </Label>
+ <p className="text-[10px] text-muted-foreground/70">
+ Use AI to generate real research data instead of mock data
+ </p>
+ </div>
+ <Switch
+ id="enableAI"
+ checked={config.enableAI}
+ onCheckedChange={(checked) => updateConfig("enableAI", checked)}
+ />
+ </div>
+
+ {config.enableAI && (
+ <div className="space-y-2 pt-2">
+ <Label htmlFor="aiModel" className="text-xs text-muted-foreground">
+ AI Model
+ </Label>
+ <Select value={config.aiModel} onValueChange={(value) => updateConfig("aiModel", value)}>
+ <SelectTrigger className="mt-1">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="google/gemini-2.5-flash">
+ Gemini 2.5 Flash (Balanced)
+ </SelectItem>
+ <SelectItem value="google/gemini-2.5-pro">
+ Gemini 2.5 Pro (Most Powerful)
+ </SelectItem>
+ <SelectItem value="google/gemini-2.5-flash-lite">
+ Gemini 2.5 Flash Lite (Fastest)
+ </SelectItem>
+ </SelectContent>
+ </Select>
+ <p className="text-[10px] text-muted-foreground/70">
+ {config.aiModel === "google/gemini-2.5-pro" && "Best for complex reasoning and accuracy"}
+ {config.aiModel === "google/gemini-2.5-flash" && "Balanced performance and speed"}
+ {config.aiModel === "google/gemini-2.5-flash-lite" && "Optimized for speed and cost"}
+ </p>
+ </div>
+ )}
+ </div>
+ </div>
+ </TabsContent>
+ </Tabs>
+
+ {/* Embed Code Section */}
+ {showEmbedCode && (
+ <div className="space-y-3 animate-fade-in border-t border-border pt-6">
+ <div className="flex items-center justify-between">
+ <Label className="text-sm font-medium text-foreground">Embed Code</Label>
+ <Button
+ onClick={copyEmbedCode}
+ size="sm"
+ variant="outline"
+ className="gap-2"
+ >
+ {copied ? (
+ <>
+ <Check className="w-3 h-3" />
+ Copied!
+ </>
+ ) : (
+ <>
+ <Copy className="w-3 h-3" />
+ Copy Code
+ </>
+ )}
+ </Button>
+ </div>
+ <div className="relative">
+ <pre className="bg-muted/50 border border-border rounded p-4 text-xs overflow-x-auto">
+ <code className="text-foreground">{generateEmbedCode()}</code>
+ </pre>
+ </div>
+ <p className="text-xs text-muted-foreground">
+ Copy this code and paste it into your website where you want the widget to appear.
+ </p>
+ </div>
+ )}
+ </div>
+ );
+};
diff --git a/v3/goal_ui/src/components/agents/AdvancedSettingsModal.tsx b/v3/goal_ui/src/components/agents/AdvancedSettingsModal.tsx
new file mode 100644
index 0000000000..c9569332c4
--- /dev/null
+++ b/v3/goal_ui/src/components/agents/AdvancedSettingsModal.tsx
@@ -0,0 +1,658 @@
+import { useState } from "react";
+import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog";
+import { Button } from "@/components/ui/button";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import { Label } from "@/components/ui/label";
+import { Input } from "@/components/ui/input";
+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
+import { Switch } from "@/components/ui/switch";
+import { Slider } from "@/components/ui/slider";
+import { Badge } from "@/components/ui/badge";
+import { Settings2, Save, RotateCcw } from "lucide-react";
+import { useToast } from "@/hooks/use-toast";
+
+interface AdvancedSettings {
+ // Swarm Configuration
+ swarm: {
+ topology: 'mesh' | 'hierarchical' | 'ring' | 'star';
+ maxAgents: number;
+ strategy: 'balanced' | 'specialized' | 'adaptive';
+ autoScaling: {
+ enabled: boolean;
+ minAgents: number;
+ maxAgents: number;
+ scaleUpThreshold: number;
+ scaleDownThreshold: number;
+ };
+ };
+
+ // GOAP Configuration
+ goap: {
+ algorithm: 'a-star' | 'greedy' | 'dijkstra' | 'bfs' | 'dfs';
+ heuristic: 'manhattan' | 'euclidean' | 'hamming' | 'custom';
+ costMethod: 'uniform' | 'time' | 'resources' | 'tokens' | 'hybrid';
+ optimization: {
+ enabled: boolean;
+ detectParallel: boolean;
+ removeRedundant: boolean;
+ };
+ };
+
+ // Execution Configuration
+ execution: {
+ strategy: 'sequential' | 'parallel' | 'hybrid' | 'adaptive';
+ maxParallelTasks: number;
+ timeout: number;
+ enableQualityGates: boolean;
+ };
+
+ // Model Router Configuration
+ modelRouter: {
+ primaryProvider: 'anthropic' | 'openrouter' | 'gemini' | 'local';
+ strategy: 'cost' | 'speed' | 'quality' | 'privacy' | 'balanced';
+ maxCostPerRequest: number;
+ enableFallback: boolean;
+ };
+}
+
+const defaultSettings: AdvancedSettings = {
+ swarm: {
+ topology: 'hierarchical',
+ maxAgents: 10,
+ strategy: 'adaptive',
+ autoScaling: {
+ enabled: true,
+ minAgents: 2,
+ maxAgents: 20,
+ scaleUpThreshold: 80,
+ scaleDownThreshold: 20,
+ },
+ },
+ goap: {
+ algorithm: 'a-star',
+ heuristic: 'manhattan',
+ costMethod: 'hybrid',
+ optimization: {
+ enabled: true,
+ detectParallel: true,
+ removeRedundant: true,
+ },
+ },
+ execution: {
+ strategy: 'adaptive',
+ maxParallelTasks: 5,
+ timeout: 300000,
+ enableQualityGates: true,
+ },
+ modelRouter: {
+ primaryProvider: 'anthropic',
+ strategy: 'balanced',
+ maxCostPerRequest: 1.0,
+ enableFallback: true,
+ },
+};
+
+const presets = {
+ development: {
+ name: 'Development',
+ description: 'Fast iteration, verbose logging',
+ badge: 'default' as const,
+ },
+ production: {
+ name: 'Production',
+ description: 'Optimized performance, strict validation',
+ badge: 'default' as const,
+ },
+ budget: {
+ name: 'Budget',
+ description: 'Cost-optimized, slower execution',
+ badge: 'secondary' as const,
+ },
+ quality: {
+ name: 'Quality',
+ description: 'Maximum quality, higher cost',
+ badge: 'destructive' as const,
+ },
+};
+
+export function AdvancedSettingsModal() {
+ const [settings, setSettings] = useState<AdvancedSettings>(() => {
+ const saved = localStorage.getItem('agenticflow-settings');
+ return saved ? JSON.parse(saved) : defaultSettings;
+ });
+ const [open, setOpen] = useState(false);
+ const { toast } = useToast();
+
+ const handleSave = () => {
+ localStorage.setItem('agenticflow-settings', JSON.stringify(settings));
+ toast({
+ title: "Settings Saved",
+ description: "Your advanced configuration has been saved.",
+ });
+ setOpen(false);
+ };
+
+ const handleReset = () => {
+ setSettings(defaultSettings);
+ toast({
+ title: "Settings Reset",
+ description: "Configuration has been reset to defaults.",
+ });
+ };
+
+ const applyPreset = (presetName: keyof typeof presets) => {
+ const presetConfigs: Record<keyof typeof presets, Partial<AdvancedSettings>> = {
+ development: {
+ swarm: { ...settings.swarm, maxAgents: 5, strategy: 'balanced' },
+ execution: { ...settings.execution, strategy: 'sequential', enableQualityGates: false },
+ modelRouter: { ...settings.modelRouter, strategy: 'speed' },
+ },
+ production: {
+ swarm: { ...settings.swarm, maxAgents: 15, strategy: 'adaptive' },
+ execution: { ...settings.execution, strategy: 'adaptive', enableQualityGates: true },
+ modelRouter: { ...settings.modelRouter, strategy: 'balanced' },
+ },
+ budget: {
+ swarm: { ...settings.swarm, maxAgents: 3, strategy: 'specialized' },
+ execution: { ...settings.execution, strategy: 'sequential', maxParallelTasks: 2 },
+ modelRouter: { ...settings.modelRouter, primaryProvider: 'openrouter', strategy: 'cost' },
+ },
+ quality: {
+ swarm: { ...settings.swarm, maxAgents: 20, strategy: 'adaptive' },
+ execution: { ...settings.execution, strategy: 'parallel', enableQualityGates: true },
+ modelRouter: { ...settings.modelRouter, primaryProvider: 'anthropic', strategy: 'quality' },
+ },
+ };
+
+ setSettings({ ...settings, ...presetConfigs[presetName] });
+ toast({
+ title: `${presets[presetName].name} Preset Applied`,
+ description: presets[presetName].description,
+ });
+ };
+
+ return (
+ <Dialog open={open} onOpenChange={setOpen}>
+ <DialogTrigger asChild>
+ <Button variant="ghost" size="sm" className="gap-2">
+ <Settings2 className="w-4 h-4" />
+ Advanced Settings
+ </Button>
+ </DialogTrigger>
+ <DialogContent className="max-w-4xl max-h-[90vh] overflow-y-auto">
+ <DialogHeader>
+ <DialogTitle className="flex items-center gap-2">
+ <Settings2 className="w-5 h-5 text-purple-500" />
+ Advanced Agent Configuration
+ </DialogTitle>
+ <DialogDescription>
+ Configure swarm topology, GOAP planning, execution strategy, and model routing
+ </DialogDescription>
+ </DialogHeader>
+
+ {/* Presets */}
+ <div className="space-y-2">
+ <Label>Quick Presets</Label>
+ <div className="grid grid-cols-2 md:grid-cols-4 gap-2">
+ {Object.entries(presets).map(([key, preset]) => (
+ <Button
+ key={key}
+ variant="outline"
+ size="sm"
+ onClick={() => applyPreset(key as keyof typeof presets)}
+ className="flex flex-col h-auto py-3 items-start"
+ >
+ <div className="flex items-center gap-2 mb-1">
+ <span className="font-semibold">{preset.name}</span>
+ <Badge variant={preset.badge} className="text-xs">
+ {key}
+ </Badge>
+ </div>
+ <span className="text-xs text-muted-foreground text-left">
+ {preset.description}
+ </span>
+ </Button>
+ ))}
+ </div>
+ </div>
+
+ <Tabs defaultValue="swarm" className="w-full">
+ <TabsList className="grid w-full grid-cols-4">
+ <TabsTrigger value="swarm">Swarm</TabsTrigger>
+ <TabsTrigger value="goap">GOAP</TabsTrigger>
+ <TabsTrigger value="execution">Execution</TabsTrigger>
+ <TabsTrigger value="model">Model</TabsTrigger>
+ </TabsList>
+
+ {/* Swarm Configuration */}
+ <TabsContent value="swarm" className="space-y-4 mt-4">
+ <div className="space-y-2">
+ <Label htmlFor="topology">Topology</Label>
+ <Select
+ value={settings.swarm.topology}
+ onValueChange={(value: AdvancedSettings['swarm']['topology']) =>
+ setSettings({ ...settings, swarm: { ...settings.swarm, topology: value } })
+ }
+ >
+ <SelectTrigger id="topology">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="mesh">Mesh - Fully connected, peer-to-peer</SelectItem>
+ <SelectItem value="hierarchical">Hierarchical - Tree structure with coordinators</SelectItem>
+ <SelectItem value="ring">Ring - Circular communication</SelectItem>
+ <SelectItem value="star">Star - Centralized coordinator</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="maxAgents">Maximum Agents: {settings.swarm.maxAgents}</Label>
+ <Slider
+ id="maxAgents"
+ min={1}
+ max={50}
+ step={1}
+ value={[settings.swarm.maxAgents]}
+ onValueChange={([value]) =>
+ setSettings({ ...settings, swarm: { ...settings.swarm, maxAgents: value } })
+ }
+ />
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="strategy">Distribution Strategy</Label>
+ <Select
+ value={settings.swarm.strategy}
+ onValueChange={(value: AdvancedSettings['swarm']['strategy']) =>
+ setSettings({ ...settings, swarm: { ...settings.swarm, strategy: value } })
+ }
+ >
+ <SelectTrigger id="strategy">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="balanced">Balanced - Evenly distribute tasks</SelectItem>
+ <SelectItem value="specialized">Specialized - Assign based on capabilities</SelectItem>
+ <SelectItem value="adaptive">Adaptive - Dynamic based on load</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className="space-y-4 border rounded-lg p-4 bg-muted/30">
+ <div className="flex items-center justify-between">
+ <Label htmlFor="autoScaling">Auto-Scaling</Label>
+ <Switch
+ id="autoScaling"
+ checked={settings.swarm.autoScaling.enabled}
+ onCheckedChange={(enabled) =>
+ setSettings({
+ ...settings,
+ swarm: {
+ ...settings.swarm,
+ autoScaling: { ...settings.swarm.autoScaling, enabled },
+ },
+ })
+ }
+ />
+ </div>
+
+ {settings.swarm.autoScaling.enabled && (
+ <>
+ <div className="grid grid-cols-2 gap-4">
+ <div className="space-y-2">
+ <Label>Min Agents</Label>
+ <Input
+ type="number"
+ min={1}
+ value={settings.swarm.autoScaling.minAgents}
+ onChange={(e) =>
+ setSettings({
+ ...settings,
+ swarm: {
+ ...settings.swarm,
+ autoScaling: {
+ ...settings.swarm.autoScaling,
+ minAgents: parseInt(e.target.value),
+ },
+ },
+ })
+ }
+ />
+ </div>
+ <div className="space-y-2">
+ <Label>Max Agents</Label>
+ <Input
+ type="number"
+ min={1}
+ value={settings.swarm.autoScaling.maxAgents}
+ onChange={(e) =>
+ setSettings({
+ ...settings,
+ swarm: {
+ ...settings.swarm,
+ autoScaling: {
+ ...settings.swarm.autoScaling,
+ maxAgents: parseInt(e.target.value),
+ },
+ },
+ })
+ }
+ />
+ </div>
+ </div>
+
+ <div className="space-y-2">
+ <Label>Scale Up Threshold (%): {settings.swarm.autoScaling.scaleUpThreshold}</Label>
+ <Slider
+ min={0}
+ max={100}
+ step={5}
+ value={[settings.swarm.autoScaling.scaleUpThreshold]}
+ onValueChange={([value]) =>
+ setSettings({
+ ...settings,
+ swarm: {
+ ...settings.swarm,
+ autoScaling: { ...settings.swarm.autoScaling, scaleUpThreshold: value },
+ },
+ })
+ }
+ />
+ </div>
+
+ <div className="space-y-2">
+ <Label>Scale Down Threshold (%): {settings.swarm.autoScaling.scaleDownThreshold}</Label>
+ <Slider
+ min={0}
+ max={100}
+ step={5}
+ value={[settings.swarm.autoScaling.scaleDownThreshold]}
+ onValueChange={([value]) =>
+ setSettings({
+ ...settings,
+ swarm: {
+ ...settings.swarm,
+ autoScaling: { ...settings.swarm.autoScaling, scaleDownThreshold: value },
+ },
+ })
+ }
+ />
+ </div>
+ </>
+ )}
+ </div>
+ </TabsContent>
+
+ {/* GOAP Configuration */}
+ <TabsContent value="goap" className="space-y-4 mt-4">
+ <div className="space-y-2">
+ <Label htmlFor="algorithm">Planning Algorithm</Label>
+ <Select
+ value={settings.goap.algorithm}
+ onValueChange={(value: AdvancedSettings['goap']['algorithm']) =>
+ setSettings({ ...settings, goap: { ...settings.goap, algorithm: value } })
+ }
+ >
+ <SelectTrigger id="algorithm">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="a-star">A* - Optimal pathfinding</SelectItem>
+ <SelectItem value="greedy">Greedy - Fast, not optimal</SelectItem>
+ <SelectItem value="dijkstra">Dijkstra - Guaranteed optimal</SelectItem>
+ <SelectItem value="bfs">BFS - Breadth-first search</SelectItem>
+ <SelectItem value="dfs">DFS - Depth-first search</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="heuristic">Heuristic Function</Label>
+ <Select
+ value={settings.goap.heuristic}
+ onValueChange={(value: AdvancedSettings['goap']['heuristic']) =>
+ setSettings({ ...settings, goap: { ...settings.goap, heuristic: value } })
+ }
+ >
+ <SelectTrigger id="heuristic">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="manhattan">Manhattan Distance</SelectItem>
+ <SelectItem value="euclidean">Euclidean Distance</SelectItem>
+ <SelectItem value="hamming">Hamming Distance</SelectItem>
+ <SelectItem value="custom">Custom Heuristic</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="costMethod">Cost Calculation Method</Label>
+ <Select
+ value={settings.goap.costMethod}
+ onValueChange={(value: AdvancedSettings['goap']['costMethod']) =>
+ setSettings({ ...settings, goap: { ...settings.goap, costMethod: value } })
+ }
+ >
+ <SelectTrigger id="costMethod">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="uniform">Uniform - All actions same cost</SelectItem>
+ <SelectItem value="time">Time - Based on execution time</SelectItem>
+ <SelectItem value="resources">Resources - Based on resource usage</SelectItem>
+ <SelectItem value="tokens">Tokens - Based on token consumption</SelectItem>
+ <SelectItem value="hybrid">Hybrid - Combination of factors</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className="space-y-4 border rounded-lg p-4 bg-muted/30">
+ <Label>Optimization Options</Label>
+
+ <div className="flex items-center justify-between">
+ <div className="space-y-0.5">
+ <Label>Enable Optimization</Label>
+ <p className="text-xs text-muted-foreground">Optimize generated plans</p>
+ </div>
+ <Switch
+ checked={settings.goap.optimization.enabled}
+ onCheckedChange={(enabled) =>
+ setSettings({
+ ...settings,
+ goap: { ...settings.goap, optimization: { ...settings.goap.optimization, enabled } },
+ })
+ }
+ />
+ </div>
+
+ <div className="flex items-center justify-between">
+ <div className="space-y-0.5">
+ <Label>Detect Parallel Actions</Label>
+ <p className="text-xs text-muted-foreground">Find actions that can run concurrently</p>
+ </div>
+ <Switch
+ checked={settings.goap.optimization.detectParallel}
+ onCheckedChange={(detectParallel) =>
+ setSettings({
+ ...settings,
+ goap: { ...settings.goap, optimization: { ...settings.goap.optimization, detectParallel } },
+ })
+ }
+ />
+ </div>
+
+ <div className="flex items-center justify-between">
+ <div className="space-y-0.5">
+ <Label>Remove Redundant Actions</Label>
+ <p className="text-xs text-muted-foreground">Eliminate unnecessary steps</p>
+ </div>
+ <Switch
+ checked={settings.goap.optimization.removeRedundant}
+ onCheckedChange={(removeRedundant) =>
+ setSettings({
+ ...settings,
+ goap: { ...settings.goap, optimization: { ...settings.goap.optimization, removeRedundant } },
+ })
+ }
+ />
+ </div>
+ </div>
+ </TabsContent>
+
+ {/* Execution Configuration */}
+ <TabsContent value="execution" className="space-y-4 mt-4">
+ <div className="space-y-2">
+ <Label htmlFor="execStrategy">Execution Strategy</Label>
+ <Select
+ value={settings.execution.strategy}
+ onValueChange={(value: AdvancedSettings['execution']['strategy']) =>
+ setSettings({ ...settings, execution: { ...settings.execution, strategy: value } })
+ }
+ >
+ <SelectTrigger id="execStrategy">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="sequential">Sequential - One task at a time</SelectItem>
+ <SelectItem value="parallel">Parallel - Maximum concurrency</SelectItem>
+ <SelectItem value="hybrid">Hybrid - Mixed approach</SelectItem>
+ <SelectItem value="adaptive">Adaptive - Dynamic based on load</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="maxParallelTasks">Max Parallel Tasks: {settings.execution.maxParallelTasks}</Label>
+ <Slider
+ id="maxParallelTasks"
+ min={1}
+ max={20}
+ step={1}
+ value={[settings.execution.maxParallelTasks]}
+ onValueChange={([value]) =>
+ setSettings({ ...settings, execution: { ...settings.execution, maxParallelTasks: value } })
+ }
+ />
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="timeout">Timeout (seconds): {settings.execution.timeout / 1000}</Label>
+ <Slider
+ id="timeout"
+ min={30000}
+ max={900000}
+ step={30000}
+ value={[settings.execution.timeout]}
+ onValueChange={([value]) =>
+ setSettings({ ...settings, execution: { ...settings.execution, timeout: value } })
+ }
+ />
+ </div>
+
+ <div className="flex items-center justify-between border rounded-lg p-4 bg-muted/30">
+ <div className="space-y-0.5">
+ <Label>Enable Quality Gates</Label>
+ <p className="text-xs text-muted-foreground">
+ Run compile checks, test coverage, code quality, and security scans
+ </p>
+ </div>
+ <Switch
+ checked={settings.execution.enableQualityGates}
+ onCheckedChange={(enableQualityGates) =>
+ setSettings({ ...settings, execution: { ...settings.execution, enableQualityGates } })
+ }
+ />
+ </div>
+ </TabsContent>
+
+ {/* Model Router Configuration */}
+ <TabsContent value="model" className="space-y-4 mt-4">
+ <div className="space-y-2">
+ <Label htmlFor="provider">Primary Provider</Label>
+ <Select
+ value={settings.modelRouter.primaryProvider}
+ onValueChange={(value: AdvancedSettings['modelRouter']['primaryProvider']) =>
+ setSettings({ ...settings, modelRouter: { ...settings.modelRouter, primaryProvider: value } })
+ }
+ >
+ <SelectTrigger id="provider">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="anthropic">Anthropic - Highest quality</SelectItem>
+ <SelectItem value="openrouter">OpenRouter - 99% cost savings</SelectItem>
+ <SelectItem value="gemini">Gemini - Optimized for speed</SelectItem>
+ <SelectItem value="local">Local - Privacy-focused (ONNX)</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="routingStrategy">Routing Strategy</Label>
+ <Select
+ value={settings.modelRouter.strategy}
+ onValueChange={(value: AdvancedSettings['modelRouter']['strategy']) =>
+ setSettings({ ...settings, modelRouter: { ...settings.modelRouter, strategy: value } })
+ }
+ >
+ <SelectTrigger id="routingStrategy">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="cost">Cost - Prefer cheapest models</SelectItem>
+ <SelectItem value="speed">Speed - Prefer fastest models</SelectItem>
+ <SelectItem value="quality">Quality - Prefer highest quality</SelectItem>
+ <SelectItem value="privacy">Privacy - Use local models only</SelectItem>
+ <SelectItem value="balanced">Balanced - Optimize all factors</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
+
+ <div className="space-y-2">
+ <Label htmlFor="maxCost">Max Cost Per Request ($): {settings.modelRouter.maxCostPerRequest.toFixed(2)}</Label>
+ <Slider
+ id="maxCost"
+ min={0.01}
+ max={5.0}
+ step={0.01}
+ value={[settings.modelRouter.maxCostPerRequest]}
+ onValueChange={([value]) =>
+ setSettings({ ...settings, modelRouter: { ...settings.modelRouter, maxCostPerRequest: value } })
+ }
+ />
+ </div>
+
+ <div className="flex items-center justify-between border rounded-lg p-4 bg-muted/30">
+ <div className="space-y-0.5">
+ <Label>Enable Fallback</Label>
+ <p className="text-xs text-muted-foreground">
+ Automatically fallback to alternative providers on failure
+ </p>
+ </div>
+ <Switch
+ checked={settings.modelRouter.enableFallback}
+ onCheckedChange={(enableFallback) =>
+ setSettings({ ...settings, modelRouter: { ...settings.modelRouter, enableFallback } })
+ }
+ />
+ </div>
+ </TabsContent>
+ </Tabs>
+
+ {/* Action Buttons */}
+ <div className="flex items-center justify-between pt-4 border-t">
+ <Button variant="outline" onClick={handleReset} className="gap-2">
+ <RotateCcw className="w-4 h-4" />
+ Reset to Defaults
+ </Button>
+ <Button onClick={handleSave} className="gap-2">
+ <Save className="w-4 h-4" />
+ Save Configuration
+ </Button>
+ </div>
+ </DialogContent>
+ </Dialog>
+ );
+}
diff --git a/v3/goal_ui/src/components/agents/AgentActivityPanel.tsx b/v3/goal_ui/src/components/agents/AgentActivityPanel.tsx
new file mode 100644
index 0000000000..fcea1cc848
--- /dev/null
+++ b/v3/goal_ui/src/components/agents/AgentActivityPanel.tsx
@@ -0,0 +1,203 @@
+import { useState } from 'react';
+import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
+import { Badge } from '@/components/ui/badge';
+import { Progress } from '@/components/ui/progress';
+import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
+import { Bot, Cpu, HardDrive, Zap, Clock } from 'lucide-react';
+
+interface Agent {
+ id: string;
+ name: string;
+ type: string;
+ status: string;
+ currentTask?: string;
+}
+
+interface AgentMetrics {
+ tasksCompleted: number;
+ tasksActive: number;
+ tasksFailed: number;
+ avgCompletionTime: number;
+ totalTokens: number;
+ uptime: number;
+}
+
+interface AgentActivityPanelProps {
+ agents: Agent[];
+ metrics: Map<string, AgentMetrics>;
+}
+
+export function AgentActivityPanel({ agents, metrics }: AgentActivityPanelProps) {
+ const [selectedAgent, setSelectedAgent] = useState<Agent | null>(
+ agents[0] || null
+ );
+
+ return (
+ <Card className="border-2 border-primary/20">
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <Bot className="w-5 h-5 text-blue-500" />
+ Agent Activity Monitor
+ </CardTitle>
+ </CardHeader>
+ <CardContent>
+ <Tabs value={selectedAgent?.id} onValueChange={(id) => {
+ const agent = agents.find(a => a.id === id);
+ if (agent) setSelectedAgent(agent);
+ }}>
+ <TabsList className="w-full grid grid-cols-3 lg:grid-cols-5 mb-4">
+ {agents.map(agent => (
+ <TabsTrigger key={agent.id} value={agent.id} className="gap-1 text-xs">
+ <Bot className="w-3 h-3" />
+ <span className="hidden sm:inline">{agent.name}</span>
+ <Badge
+ variant={
+ agent.status === 'working'
+ ? 'default'
+ : agent.status === 'idle'
+ ? 'secondary'
+ : 'destructive'
+ }
+ className="ml-1 h-2 w-2 p-0 rounded-full"
+ >
+ <span className="sr-only">{agent.status}</span>
+ </Badge>
+ </TabsTrigger>
+ ))}
+ </TabsList>
+
+ {agents.map(agent => {
+ const agentMetrics = metrics.get(agent.id);
+
+ return (
+ <TabsContent key={agent.id} value={agent.id} className="space-y-4">
+ {/* Agent Info */}
+ <div className="grid grid-cols-2 gap-4">
+ <div className="space-y-2">
+ <div className="text-sm font-medium text-muted-foreground">Agent Type</div>
+ <Badge variant="outline" className="text-sm">{agent.type}</Badge>
+ </div>
+ <div className="space-y-2">
+ <div className="text-sm font-medium text-muted-foreground">Status</div>
+ <Badge
+ variant={
+ agent.status === 'working'
+ ? 'default'
+ : agent.status === 'idle'
+ ? 'secondary'
+ : 'destructive'
+ }
+ className="text-sm"
+ >
+ {agent.status}
+ </Badge>
+ </div>
+ </div>
+
+ {/* Current Task */}
+ {agent.currentTask && (
+ <div className="p-3 bg-gradient-to-r from-purple-500/10 to-blue-500/10 border border-purple-500/20 rounded-lg">
+ <div className="text-sm font-medium mb-1 flex items-center gap-2">
+ <Zap className="w-4 h-4 text-yellow-500 animate-pulse" />
+ Current Task
+ </div>
+ <div className="text-sm text-muted-foreground">
+ {agent.currentTask}
+ </div>
+ </div>
+ )}
+
+ {/* Metrics */}
+ {agentMetrics && (
+ <div className="space-y-4">
+ <div className="grid grid-cols-2 gap-4">
+ <div className="p-3 bg-green-500/10 border border-green-500/20 rounded-lg">
+ <div className="text-xs font-medium mb-1 text-muted-foreground">Tasks Completed</div>
+ <div className="text-2xl font-bold text-green-500">
+ {agentMetrics.tasksCompleted}
+ </div>
+ </div>
+ <div className="p-3 bg-blue-500/10 border border-blue-500/20 rounded-lg">
+ <div className="text-xs font-medium mb-1 text-muted-foreground">Tasks Active</div>
+ <div className="text-2xl font-bold text-blue-500">
+ {agentMetrics.tasksActive}
+ </div>
+ </div>
+ <div className="p-3 bg-red-500/10 border border-red-500/20 rounded-lg">
+ <div className="text-xs font-medium mb-1 text-muted-foreground">Tasks Failed</div>
+ <div className="text-2xl font-bold text-red-500">
+ {agentMetrics.tasksFailed}
+ </div>
+ </div>
+ <div className="p-3 bg-purple-500/10 border border-purple-500/20 rounded-lg">
+ <div className="text-xs font-medium mb-1 text-muted-foreground">Avg Time</div>
+ <div className="text-2xl font-bold text-purple-500">
+ {formatDuration(agentMetrics.avgCompletionTime)}
+ </div>
+ </div>
+ </div>
+
+ {/* Resource Usage */}
+ <div className="space-y-3 p-4 bg-muted/30 rounded-lg border">
+ <h5 className="text-sm font-semibold mb-2">Resource Usage</h5>
+
+ <div>
+ <div className="flex items-center justify-between text-sm mb-1">
+ <span className="flex items-center gap-1">
+ <Cpu className="w-4 h-4 text-blue-500" /> CPU Usage
+ </span>
+ <span className="font-mono">65%</span>
+ </div>
+ <Progress value={65} className="h-2" />
+ </div>
+
+ <div>
+ <div className="flex items-center justify-between text-sm mb-1">
+ <span className="flex items-center gap-1">
+ <HardDrive className="w-4 h-4 text-green-500" /> Memory Usage
+ </span>
+ <span className="font-mono">420 MB</span>
+ </div>
+ <Progress value={82} className="h-2" />
+ </div>
+
+ <div>
+ <div className="flex items-center justify-between text-sm mb-1">
+ <span className="flex items-center gap-1">
+ <Zap className="w-4 h-4 text-yellow-500" /> Token Usage
+ </span>
+ <span className="font-mono">{agentMetrics.totalTokens.toLocaleString()}</span>
+ </div>
+ </div>
+
+ <div className="pt-2 border-t">
+ <div className="flex items-center justify-between text-xs text-muted-foreground">
+ <span className="flex items-center gap-1">
+ <Clock className="w-3 h-3" /> Uptime
+ </span>
+ <span className="font-mono">{formatDuration(agentMetrics.uptime)}</span>
+ </div>
+ </div>
+ </div>
+ </div>
+ )}
+ </TabsContent>
+ );
+ })}
+ </Tabs>
+ </CardContent>
+ </Card>
+ );
+}
+
+function formatDuration(ms: number): string {
+ if (ms < 1000) return `${ms}ms`;
+ const seconds = Math.floor(ms / 1000);
+ if (seconds < 60) return `${seconds}s`;
+ const minutes = Math.floor(seconds / 60);
+ const remainingSeconds = seconds % 60;
+ if (minutes < 60) return `${minutes}m ${remainingSeconds}s`;
+ const hours = Math.floor(minutes / 60);
+ const remainingMinutes = minutes % 60;
+ return `${hours}h ${remainingMinutes}m`;
+}
\ No newline at end of file
diff --git a/v3/goal_ui/src/components/agents/AgentStatusCard.tsx b/v3/goal_ui/src/components/agents/AgentStatusCard.tsx
new file mode 100644
index 0000000000..381fd31fdd
--- /dev/null
+++ b/v3/goal_ui/src/components/agents/AgentStatusCard.tsx
@@ -0,0 +1,52 @@
+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+import { Badge } from "@/components/ui/badge";
+import { LucideIcon } from "lucide-react";
+
+interface Agent {
+ id: string;
+ name: string;
+ icon: LucideIcon;
+ status: "idle" | "working" | "blocked";
+ currentTask?: string;
+}
+
+interface AgentStatusCardProps {
+ agent: Agent;
+}
+
+const statusConfig = {
+ idle: { color: "bg-muted text-muted-foreground", label: "Idle", pulse: false },
+ working: { color: "bg-green-500/20 text-green-500 border-green-500/50", label: "Working", pulse: true },
+ blocked: { color: "bg-red-500/20 text-red-500 border-red-500/50", label: "Blocked", pulse: false },
+};
+
+export const AgentStatusCard = ({ agent }: AgentStatusCardProps) => {
+ const Icon = agent.icon;
+ const config = statusConfig[agent.status];
+
+ return (
+ <Card className="border-2 hover:border-primary/50 transition-all">
+ <CardHeader className="pb-3">
+ <CardTitle className="flex items-center justify-between text-base">
+ <div className="flex items-center gap-2">
+ <Icon className="w-5 h-5 text-primary" />
+ {agent.name}
+ </div>
+ <Badge
+ variant="outline"
+ className={`${config.color} ${config.pulse ? 'animate-pulse' : ''}`}
+ >
+ {config.label}
+ </Badge>
+ </CardTitle>
+ </CardHeader>
+ <CardContent>
+ {agent.currentTask ? (
+ <p className="text-xs text-muted-foreground">{agent.currentTask}</p>
+ ) : (
+ <p className="text-xs text-muted-foreground italic">Waiting for tasks...</p>
+ )}
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/v3/goal_ui/src/components/agents/CodePreview.tsx b/v3/goal_ui/src/components/agents/CodePreview.tsx
new file mode 100644
index 0000000000..739559be8a
--- /dev/null
+++ b/v3/goal_ui/src/components/agents/CodePreview.tsx
@@ -0,0 +1,108 @@
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { ScrollArea } from "@/components/ui/scroll-area";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import { Badge } from "@/components/ui/badge";
+import { Eye, Code, FileText } from "lucide-react";
+
+export const CodePreview = () => {
+ const files = [
+ {
+ name: "auth.ts",
+ language: "typescript",
+ code: `import { Request, Response } from 'express';
+import jwt from 'jsonwebtoken';
+
+export const authenticate = async (req: Request, res: Response) => {
+ const token = req.headers.authorization?.split(' ')[1];
+
+ if (!token) {
+ return res.status(401).json({ error: 'No token provided' });
+ }
+
+ try {
+ const decoded = jwt.verify(token, process.env.JWT_SECRET);
+ req.user = decoded;
+ return res.status(200).json({ success: true });
+ } catch (error) {
+ return res.status(401).json({ error: 'Invalid token' });
+ }
+};`,
+ agent: "Implementation",
+ status: "modified",
+ },
+ {
+ name: "auth.test.ts",
+ language: "typescript",
+ code: `import { authenticate } from './auth';
+import { Request, Response } from 'express';
+
+describe('Authentication', () => {
+ it('should reject requests without token', async () => {
+ const req = { headers: {} } as Request;
+ const res = {
+ status: jest.fn().mockReturnThis(),
+ json: jest.fn()
+ } as unknown as Response;
+
+ await authenticate(req, res);
+
+ expect(res.status).toHaveBeenCalledWith(401);
+ expect(res.json).toHaveBeenCalledWith({
+ error: 'No token provided'
+ });
+ });
+});`,
+ agent: "Testing",
+ status: "new",
+ },
+ ];
+
+ return (
+ <div className="space-y-6">
+ <Card className="border-2 border-primary/20">
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <Eye className="w-5 h-5 text-primary" />
+ Live Code Preview
+ </CardTitle>
+ <CardDescription>Real-time view of generated code</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <Tabs defaultValue={files[0].name}>
+ <TabsList className="grid w-full grid-cols-2">
+ {files.map((file) => (
+ <TabsTrigger key={file.name} value={file.name} className="gap-2">
+ <Code className="w-3 h-3" />
+ {file.name}
+ <Badge
+ variant={file.status === "new" ? "default" : "secondary"}
+ className="text-xs ml-2"
+ >
+ {file.status}
+ </Badge>
+ </TabsTrigger>
+ ))}
+ </TabsList>
+
+ {files.map((file) => (
+ <TabsContent key={file.name} value={file.name} className="mt-4">
+ <div className="space-y-3">
+ <div className="flex items-center justify-between">
+ <Badge variant="outline">{file.language}</Badge>
+ <Badge variant="outline">Agent: {file.agent}</Badge>
+ </div>
+
+ <ScrollArea className="h-[500px] w-full">
+ <pre className="p-4 rounded-lg bg-muted/50 text-sm font-mono">
+ <code>{file.code}</code>
+ </pre>
+ </ScrollArea>
+ </div>
+ </TabsContent>
+ ))}
+ </Tabs>
+ </CardContent>
+ </Card>
+ </div>
+ );
+};
diff --git a/v3/goal_ui/src/components/agents/CommunicationLog.tsx b/v3/goal_ui/src/components/agents/CommunicationLog.tsx
new file mode 100644
index 0000000000..88e8e52e7a
--- /dev/null
+++ b/v3/goal_ui/src/components/agents/CommunicationLog.tsx
@@ -0,0 +1,87 @@
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { ScrollArea } from "@/components/ui/scroll-area";
+import { Badge } from "@/components/ui/badge";
+import { MessageSquare, ArrowRight } from "lucide-react";
+
+export const CommunicationLog = () => {
+ const messages = [
+ {
+ id: 1,
+ from: "Architecture",
+ to: "Implementation",
+ message: "Database schema design completed. Ready for implementation.",
+ timestamp: "2m ago",
+ type: "info",
+ },
+ {
+ id: 2,
+ from: "Implementation",
+ to: "Testing",
+ message: "Auth module implemented. Please write unit tests.",
+ timestamp: "1m ago",
+ type: "request",
+ },
+ {
+ id: 3,
+ from: "Testing",
+ to: "Code Review",
+ message: "Test coverage at 85%. Ready for review.",
+ timestamp: "30s ago",
+ type: "success",
+ },
+ {
+ id: 4,
+ from: "Code Review",
+ to: "Implementation",
+ message: "Security concern found in auth middleware. Please fix.",
+ timestamp: "10s ago",
+ type: "warning",
+ },
+ ];
+
+ const typeColors = {
+ info: "bg-blue-500/20 text-blue-500",
+ request: "bg-purple-500/20 text-purple-500",
+ success: "bg-green-500/20 text-green-500",
+ warning: "bg-yellow-500/20 text-yellow-500",
+ };
+
+ return (
+ <Card className="border-2 border-primary/20">
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <MessageSquare className="w-5 h-5 text-primary" />
+ Inter-Agent Communication
+ </CardTitle>
+ <CardDescription>Real-time message exchange between agents</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <ScrollArea className="h-[300px] pr-4">
+ <div className="space-y-3">
+ {messages.map((msg) => (
+ <div
+ key={msg.id}
+ className="p-3 rounded-lg border bg-card/50 hover:bg-card transition-colors"
+ >
+ <div className="flex items-center gap-2 mb-2">
+ <Badge variant="outline" className="text-xs">
+ {msg.from}
+ </Badge>
+ <ArrowRight className="w-3 h-3 text-muted-foreground" />
+ <Badge variant="outline" className="text-xs">
+ {msg.to}
+ </Badge>
+ <Badge className={`ml-auto text-xs ${typeColors[msg.type as keyof typeof typeColors]}`}>
+ {msg.type}
+ </Badge>
+ </div>
+ <p className="text-sm">{msg.message}</p>
+ <p className="text-xs text-muted-foreground mt-2">{msg.timestamp}</p>
+ </div>
+ ))}
+ </div>
+ </ScrollArea>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/v3/goal_ui/src/components/agents/DependencyGraph.tsx b/v3/goal_ui/src/components/agents/DependencyGraph.tsx
new file mode 100644
index 0000000000..06a0c7ea4f
--- /dev/null
+++ b/v3/goal_ui/src/components/agents/DependencyGraph.tsx
@@ -0,0 +1,47 @@
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { GitBranch, ArrowRight } from "lucide-react";
+
+export const DependencyGraph = () => {
+ const dependencies = [
+ { from: "Architecture", to: "Implementation", status: "complete" },
+ { from: "Implementation", to: "Testing", status: "active" },
+ { from: "Testing", to: "Code Review", status: "pending" },
+ { from: "Code Review", to: "Documentation", status: "pending" },
+ { from: "Documentation", to: "DevOps", status: "pending" },
+ ];
+
+ return (
+ <Card className="border-2 border-purple-500/20">
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <GitBranch className="w-5 h-5 text-purple-500" />
+ Task Dependencies
+ </CardTitle>
+ <CardDescription>Workflow execution order</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <div className="space-y-3">
+ {dependencies.map((dep, idx) => (
+ <div
+ key={idx}
+ className="flex items-center gap-3 p-3 rounded-lg border bg-card/50"
+ >
+ <div className="flex-1 text-sm font-medium">{dep.from}</div>
+ <ArrowRight className="w-4 h-4 text-muted-foreground" />
+ <div className="flex-1 text-sm font-medium">{dep.to}</div>
+ <div
+ className={`w-2 h-2 rounded-full ${
+ dep.status === "complete"
+ ? "bg-green-500"
+ : dep.status === "active"
+ ? "bg-blue-500 animate-pulse"
+ : "bg-muted"
+ }`}
+ />
+ </div>
+ ))}
+ </div>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/v3/goal_ui/src/components/agents/ExecutionDashboard.tsx b/v3/goal_ui/src/components/agents/ExecutionDashboard.tsx
new file mode 100644
index 0000000000..1847d87c23
--- /dev/null
+++ b/v3/goal_ui/src/components/agents/ExecutionDashboard.tsx
@@ -0,0 +1,403 @@
+import { useState } from "react";
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import { Badge } from "@/components/ui/badge";
+import { Button } from "@/components/ui/button";
+import { Progress } from "@/components/ui/progress";
+import { ScrollArea } from "@/components/ui/scroll-area";
+import { Input } from "@/components/ui/input";
+import {
+ Network,
+ Clock,
+ Coins,
+ Play,
+ SkipForward,
+ RotateCw,
+ CheckCircle2,
+ Circle,
+ Download,
+ Search,
+ Cpu,
+ HardDrive,
+ Zap,
+ Activity
+} from "lucide-react";
+
+interface ExecutionDashboardProps {
+ isRunning: boolean;
+ currentPhase: number;
+ onResume: () => void;
+ onSkip: () => void;
+ onRetry: () => void;
+}
+
+export const ExecutionDashboard = ({
+ isRunning,
+ currentPhase,
+ onResume,
+ onSkip,
+ onRetry
+}: ExecutionDashboardProps) => {
+ const [executionView, setExecutionView] = useState<"graph" | "timeline">("graph");
+ const [searchQuery, setSearchQuery] = useState("");
+
+ const actions = [
+ { id: '1', name: 'Goal Assessment', cost: 2, status: 'completed' },
+ { id: '2', name: 'Architecture Planning', cost: 3, status: currentPhase >= 2 ? 'completed' : currentPhase === 1 ? 'active' : 'pending' },
+ { id: '3', name: 'Implementation', cost: 5, status: currentPhase >= 3 ? 'completed' : currentPhase === 2 ? 'active' : 'pending' },
+ { id: '4', name: 'Testing & Review', cost: 4, status: currentPhase >= 4 ? 'completed' : currentPhase === 3 ? 'active' : 'pending' },
+ { id: '5', name: 'Documentation & Deployment', cost: 3, status: currentPhase >= 5 ? 'completed' : currentPhase === 4 ? 'active' : 'pending' }
+ ];
+
+ const agents = [
+ { name: "Architecture", status: currentPhase === 1 ? "working" : "idle", tasksCompleted: 3 },
+ { name: "Implementation", status: currentPhase === 2 ? "working" : "idle", tasksCompleted: 7 },
+ { name: "Testing", status: currentPhase === 3 ? "working" : "idle", tasksCompleted: 5 },
+ { name: "Code Review", status: currentPhase === 3 ? "working" : "idle", tasksCompleted: 4 },
+ { name: "Documentation", status: currentPhase === 4 ? "working" : "idle", tasksCompleted: 2 },
+ { name: "DevOps", status: currentPhase === 4 ? "working" : "idle", tasksCompleted: 6 }
+ ];
+
+ const events = [
+ { type: 'PLAN_GENERATED', time: '2:49:19 PM', data: { actions: 5 } },
+ { type: 'AGENT_STARTED', time: '2:49:20 PM', data: { agent: 'Architecture' } },
+ { type: 'STEP_COMPLETED', time: '2:49:22 PM', data: { step: 'Analysis' } }
+ ];
+
+ const currentAction = actions[Math.min(currentPhase, actions.length - 1)];
+ const completedActions = actions.filter(a => a.status === 'completed').length;
+ const totalCost = actions.reduce((sum, a) => sum + a.cost, 0);
+
+ return (
+ <Card className="border-2 border-primary/30 shadow-lg">
+ <CardHeader className="border-b bg-gradient-to-r from-primary/5 to-blue-500/5">
+ <div className="flex items-center justify-between">
+ <div>
+ <CardTitle className="flex items-center gap-2 text-lg">
+ <Activity className="w-5 h-5 text-primary" />
+ Execution Dashboard
+ </CardTitle>
+ <CardDescription className="mt-1">
+ Real-time monitoring and control
+ </CardDescription>
+ </div>
+ {isRunning && (
+ <Badge className="animate-pulse bg-primary">
+ <span className="inline-block w-2 h-2 bg-white rounded-full mr-2 animate-pulse"></span>
+ Executing
+ </Badge>
+ )}
+ </div>
+ </CardHeader>
+ <CardContent className="p-0">
+ <Tabs defaultValue="execution" className="w-full">
+ <TabsList className="w-full grid grid-cols-4 rounded-none border-b">
+ <TabsTrigger value="execution">Execution Plan</TabsTrigger>
+ <TabsTrigger value="current">Current Step</TabsTrigger>
+ <TabsTrigger value="agents">Agent Activity</TabsTrigger>
+ <TabsTrigger value="events">Event Log</TabsTrigger>
+ </TabsList>
+
+ {/* Execution Plan Tab */}
+ <TabsContent value="execution" className="p-6 space-y-4">
+ <div className="flex items-center justify-between">
+ <div className="flex gap-4">
+ <div className="flex items-center gap-2 text-sm">
+ <Network className="w-4 h-4 text-primary" />
+ <span className="font-semibold">{actions.length} Actions</span>
+ </div>
+ <div className="flex items-center gap-2 text-sm">
+ <Coins className="w-4 h-4 text-amber-500" />
+ <span className="font-semibold">Cost: {totalCost}</span>
+ </div>
+ <div className="flex items-center gap-2 text-sm">
+ <Clock className="w-4 h-4 text-blue-500" />
+ <span className="font-semibold">Est. 8m</span>
+ </div>
+ </div>
+ <div className="flex gap-2">
+ <Button
+ variant={executionView === "graph" ? "default" : "outline"}
+ size="sm"
+ onClick={() => setExecutionView("graph")}
+ >
+ Graph View
+ </Button>
+ <Button
+ variant={executionView === "timeline" ? "default" : "outline"}
+ size="sm"
+ onClick={() => setExecutionView("timeline")}
+ >
+ Timeline View
+ </Button>
+ </div>
+ </div>
+
+ <ScrollArea className="h-[300px]">
+ <div className="space-y-2">
+ {actions.map((action, idx) => (
+ <div
+ key={action.id}
+ className="flex items-center gap-3 p-3 rounded-lg border bg-card hover:bg-accent/50 transition-colors"
+ >
+ <div className="flex items-center gap-2">
+ {action.status === 'completed' ? (
+ <CheckCircle2 className="w-5 h-5 text-green-500" />
+ ) : action.status === 'active' ? (
+ <div className="w-5 h-5 rounded-full border-2 border-primary border-t-transparent animate-spin" />
+ ) : (
+ <Circle className="w-5 h-5 text-muted-foreground" />
+ )}
+ <span className="font-medium">{action.name}</span>
+ </div>
+ <div className="ml-auto flex items-center gap-3">
+ <Badge variant="outline" className="text-xs">
+ Cost: {action.cost}
+ </Badge>
+ {action.status === 'active' && (
+ <Badge className="text-xs animate-pulse">In Progress</Badge>
+ )}
+ </div>
+ </div>
+ ))}
+ </div>
+ </ScrollArea>
+
+ <div className="space-y-2 pt-2 border-t">
+ <div className="flex justify-between text-sm">
+ <span className="text-muted-foreground">Overall Progress</span>
+ <span className="font-semibold">{completedActions} / {actions.length} steps</span>
+ </div>
+ <Progress value={(completedActions / actions.length) * 100} className="h-2" />
+ </div>
+ </TabsContent>
+
+ {/* Current Step Tab */}
+ <TabsContent value="current" className="p-6 space-y-4">
+ <div className="flex items-start justify-between">
+ <div className="space-y-1">
+ <h3 className="text-lg font-semibold">{currentAction?.name}</h3>
+ <p className="text-sm text-muted-foreground">
+ Finalizing documentation and deploying to production
+ </p>
+ <div className="flex items-center gap-2 mt-2">
+ <Coins className="w-4 h-4 text-amber-500" />
+ <span className="text-sm font-medium">Cost: {currentAction?.cost}</span>
+ </div>
+ </div>
+ <div className="flex gap-2">
+ <Button size="sm" variant="outline" onClick={onResume} disabled={isRunning}>
+ <Play className="w-4 h-4 mr-1" />
+ Resume
+ </Button>
+ <Button size="sm" variant="outline" onClick={onSkip}>
+ <SkipForward className="w-4 h-4 mr-1" />
+ Skip
+ </Button>
+ <Button size="sm" variant="outline" onClick={onRetry}>
+ <RotateCw className="w-4 h-4 mr-1" />
+ Retry
+ </Button>
+ </div>
+ </div>
+
+ <div className="grid grid-cols-2 gap-4">
+ <Card>
+ <CardHeader className="pb-3">
+ <CardTitle className="text-sm">Assigned Agent</CardTitle>
+ </CardHeader>
+ <CardContent className="space-y-2">
+ <div className="flex items-center justify-between">
+ <span className="text-sm font-medium">Documentation</span>
+ <Badge variant="secondary" className="text-xs">Specialist</Badge>
+ </div>
+ <div className="flex items-center justify-between">
+ <span className="text-xs text-muted-foreground">Status</span>
+ <Badge variant="outline" className="text-xs">
+ {isRunning ? "working" : "idle"}
+ </Badge>
+ </div>
+ </CardContent>
+ </Card>
+
+ <Card>
+ <CardHeader className="pb-3">
+ <CardTitle className="text-sm">Progress</CardTitle>
+ </CardHeader>
+ <CardContent className="space-y-2">
+ <Progress value={isRunning ? 65 : 0} className="h-2" />
+ <p className="text-xs text-muted-foreground">
+ {isRunning ? "65%" : "0%"}
+ </p>
+ </CardContent>
+ </Card>
+ </div>
+
+ <div className="grid grid-cols-2 gap-4">
+ <div className="space-y-2">
+ <h4 className="text-sm font-semibold">Preconditions</h4>
+ <div className="space-y-1">
+ <div className="flex items-center gap-2 text-sm">
+ <CheckCircle2 className="w-4 h-4 text-green-500" />
+ <span>initialized: true</span>
+ </div>
+ <div className="flex items-center gap-2 text-sm">
+ <CheckCircle2 className="w-4 h-4 text-green-500" />
+ <span>requirements_clear: true</span>
+ </div>
+ </div>
+ </div>
+
+ <div className="space-y-2">
+ <h4 className="text-sm font-semibold">Effects</h4>
+ <div className="space-y-1">
+ <div className="flex items-center gap-2 text-sm">
+ <CheckCircle2 className="w-4 h-4 text-green-500" />
+ <span>architecture_defined: true</span>
+ </div>
+ <div className="flex items-center gap-2 text-sm">
+ <CheckCircle2 className="w-4 h-4 text-green-500" />
+ <span>api_designed: true</span>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div className="space-y-2">
+ <h4 className="text-sm font-semibold">Execution Log</h4>
+ <ScrollArea className="h-[120px] rounded border bg-muted/50 p-3">
+ <div className="space-y-1 font-mono text-xs">
+ <div>[2:49:25 PM] Starting architecture planning...</div>
+ <div>[2:49:25 PM] Analyzing requirements...</div>
+ <div>[2:49:25 PM] Generating system design...</div>
+ </div>
+ </ScrollArea>
+ </div>
+ </TabsContent>
+
+ {/* Agent Activity Tab */}
+ <TabsContent value="agents" className="p-6 space-y-4">
+ <div className="grid grid-cols-3 gap-4">
+ {agents.map((agent) => (
+ <Card key={agent.name} className="border-2">
+ <CardHeader className="pb-3">
+ <div className="flex items-center justify-between">
+ <CardTitle className="text-sm">{agent.name}</CardTitle>
+ <Badge
+ variant={agent.status === "working" ? "default" : "secondary"}
+ className="text-xs"
+ >
+ {agent.status}
+ </Badge>
+ </div>
+ </CardHeader>
+ <CardContent className="space-y-2">
+ <div className="flex justify-between text-xs">
+ <span className="text-muted-foreground">Agent Type</span>
+ <span className="font-medium">Specialist</span>
+ </div>
+ <div className="flex justify-between text-xs">
+ <span className="text-muted-foreground">Status</span>
+ <span className="font-medium">{agent.status}</span>
+ </div>
+ <div className="flex justify-between text-xs">
+ <span className="text-muted-foreground">Tasks Completed</span>
+ <span className="font-medium">{agent.tasksCompleted}</span>
+ </div>
+ </CardContent>
+ </Card>
+ ))}
+ </div>
+
+ <Card className="border-2">
+ <CardHeader className="pb-3">
+ <CardTitle className="text-sm">Resource Usage</CardTitle>
+ </CardHeader>
+ <CardContent className="space-y-3">
+ <div className="space-y-2">
+ <div className="flex items-center justify-between text-sm">
+ <div className="flex items-center gap-2">
+ <Cpu className="w-4 h-4 text-blue-500" />
+ <span>CPU Usage</span>
+ </div>
+ <span className="font-semibold">65%</span>
+ </div>
+ <Progress value={65} className="h-2" />
+ </div>
+ <div className="space-y-2">
+ <div className="flex items-center justify-between text-sm">
+ <div className="flex items-center gap-2">
+ <HardDrive className="w-4 h-4 text-green-500" />
+ <span>Memory Usage</span>
+ </div>
+ <span className="font-semibold">420 MB</span>
+ </div>
+ <Progress value={42} className="h-2" />
+ </div>
+ <div className="space-y-2">
+ <div className="flex items-center justify-between text-sm">
+ <div className="flex items-center gap-2">
+ <Zap className="w-4 h-4 text-amber-500" />
+ <span>Token Usage</span>
+ </div>
+ <span className="font-semibold">15,000</span>
+ </div>
+ <Progress value={30} className="h-2" />
+ </div>
+ <div className="flex items-center justify-between text-sm pt-2 border-t">
+ <span className="text-muted-foreground">Uptime</span>
+ <span className="font-semibold">1h 0m</span>
+ </div>
+ </CardContent>
+ </Card>
+ </TabsContent>
+
+ {/* Event Log Tab */}
+ <TabsContent value="events" className="p-6 space-y-4">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-2">
+ <Badge variant="outline">{events.length}</Badge>
+ <span className="text-sm font-medium">Events</span>
+ </div>
+ <div className="flex gap-2">
+ <div className="relative">
+ <Search className="absolute left-2 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground" />
+ <Input
+ placeholder="Search events..."
+ value={searchQuery}
+ onChange={(e) => setSearchQuery(e.target.value)}
+ className="pl-8 w-64"
+ />
+ </div>
+ <Button variant="outline" size="sm">
+ <Download className="w-4 h-4 mr-1" />
+ Export
+ </Button>
+ </div>
+ </div>
+
+ <ScrollArea className="h-[400px]">
+ <div className="space-y-2">
+ {events.map((event, idx) => (
+ <Card key={idx} className="border">
+ <CardHeader className="pb-3">
+ <div className="flex items-center justify-between">
+ <CardTitle className="text-sm font-mono">{event.type}</CardTitle>
+ <span className="text-xs text-muted-foreground">{event.time}</span>
+ </div>
+ </CardHeader>
+ <CardContent>
+ <pre className="text-xs bg-muted p-2 rounded overflow-x-auto">
+ {JSON.stringify(event.data, null, 2)}
+ </pre>
+ </CardContent>
+ </Card>
+ ))}
+ </div>
+ </ScrollArea>
+ </TabsContent>
+ </Tabs>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/v3/goal_ui/src/components/agents/ExecutionMonitor.tsx b/v3/goal_ui/src/components/agents/ExecutionMonitor.tsx
new file mode 100644
index 0000000000..4301b1e67a
--- /dev/null
+++ b/v3/goal_ui/src/components/agents/ExecutionMonitor.tsx
@@ -0,0 +1,90 @@
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { Badge } from "@/components/ui/badge";
+import { Progress } from "@/components/ui/progress";
+import { Zap, Clock, Coins, Activity } from "lucide-react";
+
+interface ExecutionMonitorProps {
+ isRunning: boolean;
+}
+
+export const ExecutionMonitor = ({ isRunning }: ExecutionMonitorProps) => {
+ const metrics = {
+ parallelTasks: 3,
+ apiTokensUsed: 12450,
+ apiTokensLimit: 50000,
+ elapsedTime: "2m 34s",
+ estimatedCompletion: "8m 15s",
+ throughput: "4.2 tasks/min",
+ };
+
+ return (
+ <div className="space-y-6">
+ <Card className="border-2 border-primary/20">
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <Zap className="w-5 h-5 text-primary" />
+ Parallel Execution Monitor
+ </CardTitle>
+ <div className="flex items-center gap-2 text-sm text-muted-foreground">
+ Status: {isRunning ? (
+ <Badge variant="default" className="animate-pulse">Active</Badge>
+ ) : (
+ <Badge variant="secondary">Idle</Badge>
+ )}
+ </div>
+ </CardHeader>
+ <CardContent className="space-y-6">
+ {/* Metrics Grid */}
+ <div className="grid grid-cols-1 md:grid-cols-3 gap-4">
+ <div className="space-y-2 p-4 rounded-lg border bg-card/50">
+ <div className="flex items-center gap-2 text-sm text-muted-foreground">
+ <Activity className="w-4 h-4" />
+ Parallel Tasks
+ </div>
+ <div className="text-2xl font-bold">{metrics.parallelTasks}</div>
+ </div>
+
+ <div className="space-y-2 p-4 rounded-lg border bg-card/50">
+ <div className="flex items-center gap-2 text-sm text-muted-foreground">
+ <Clock className="w-4 h-4" />
+ Elapsed Time
+ </div>
+ <div className="text-2xl font-bold">{metrics.elapsedTime}</div>
+ </div>
+
+ <div className="space-y-2 p-4 rounded-lg border bg-card/50">
+ <div className="flex items-center gap-2 text-sm text-muted-foreground">
+ <Zap className="w-4 h-4" />
+ Throughput
+ </div>
+ <div className="text-2xl font-bold">{metrics.throughput}</div>
+ </div>
+ </div>
+
+ {/* API Token Usage */}
+ <div className="space-y-3">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-2">
+ <Coins className="w-4 h-4 text-primary" />
+ <span className="font-semibold">API Token Usage</span>
+ </div>
+ <span className="text-sm text-muted-foreground">
+ {metrics.apiTokensUsed.toLocaleString()} / {metrics.apiTokensLimit.toLocaleString()}
+ </span>
+ </div>
+ <Progress
+ value={(metrics.apiTokensUsed / metrics.apiTokensLimit) * 100}
+ className="h-2"
+ />
+ </div>
+
+ {/* Estimated Completion */}
+ <div className="flex items-center justify-between p-4 rounded-lg border bg-primary/5">
+ <span className="text-sm font-medium">Estimated Completion</span>
+ <span className="text-sm font-mono text-primary">{metrics.estimatedCompletion}</span>
+ </div>
+ </CardContent>
+ </Card>
+ </div>
+ );
+};
diff --git a/v3/goal_ui/src/components/agents/PlanVisualization.tsx b/v3/goal_ui/src/components/agents/PlanVisualization.tsx
new file mode 100644
index 0000000000..95eb8d3ef5
--- /dev/null
+++ b/v3/goal_ui/src/components/agents/PlanVisualization.tsx
@@ -0,0 +1,201 @@
+import { useMemo, useState } from 'react';
+import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
+import { Badge } from '@/components/ui/badge';
+import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
+import ReactFlow, {
+ Node,
+ Edge,
+ Background,
+ Controls,
+ MiniMap,
+ MarkerType
+} from 'reactflow';
+import 'reactflow/dist/style.css';
+import { GitBranch, Clock } from 'lucide-react';
+
+interface Action {
+ id: string;
+ name: string;
+ cost: number;
+ description?: string;
+}
+
+interface PlanVisualizationProps {
+ actions: Action[];
+ currentActionId?: string;
+ completedActionIds: string[];
+ onActionClick?: (action: Action) => void;
+}
+
+export function PlanVisualization({
+ actions,
+ currentActionId,
+ completedActionIds,
+ onActionClick
+}: PlanVisualizationProps) {
+ const [viewMode, setViewMode] = useState<'graph' | 'timeline'>('graph');
+
+ const { nodes, edges } = useMemo(() => {
+ return convertPlanToGraph(actions, currentActionId, completedActionIds);
+ }, [actions, currentActionId, completedActionIds]);
+
+ const totalCost = actions.reduce((sum, a) => sum + a.cost, 0);
+
+ return (
+ <Card className="col-span-full border-2 border-primary/20">
+ <CardHeader>
+ <div className="flex items-center justify-between">
+ <CardTitle className="flex items-center gap-2">
+ <GitBranch className="w-5 h-5 text-purple-500" />
+ Execution Plan
+ </CardTitle>
+ <div className="flex items-center gap-2">
+ <Badge variant="outline">
+ {actions.length} Actions
+ </Badge>
+ <Badge variant="outline">
+ Cost: {totalCost}
+ </Badge>
+ <Badge variant="outline" className="gap-1">
+ <Clock className="w-3 h-3" />
+ Est. {Math.ceil(totalCost * 0.5)}m
+ </Badge>
+ </div>
+ </div>
+ </CardHeader>
+ <CardContent>
+ <Tabs value={viewMode} onValueChange={(v) => setViewMode(v as any)}>
+ <TabsList className="mb-4">
+ <TabsTrigger value="graph">Graph View</TabsTrigger>
+ <TabsTrigger value="timeline">Timeline View</TabsTrigger>
+ </TabsList>
+
+ <TabsContent value="graph" className="h-[500px] border rounded-lg">
+ <ReactFlow
+ nodes={nodes}
+ edges={edges}
+ onNodeClick={(event, node) => {
+ const action = actions.find(a => a.id === node.id);
+ if (action && onActionClick) {
+ onActionClick(action);
+ }
+ }}
+ fitView
+ className="bg-muted/30 rounded-lg"
+ >
+ <Background />
+ <Controls />
+ <MiniMap />
+ </ReactFlow>
+ </TabsContent>
+
+ <TabsContent value="timeline" className="space-y-2">
+ {actions.map((action, index) => {
+ const isCompleted = completedActionIds.includes(action.id);
+ const isCurrent = action.id === currentActionId;
+
+ return (
+ <div
+ key={action.id}
+ className={`
+ p-4 rounded-lg border transition-all cursor-pointer
+ ${isCurrent ? 'bg-purple-500/10 border-purple-500/50' : 'bg-card hover:bg-muted/50'}
+ ${isCompleted ? 'opacity-60' : ''}
+ `}
+ onClick={() => onActionClick?.(action)}
+ >
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-3">
+ <div className={`
+ w-6 h-6 rounded-full flex items-center justify-center text-xs font-bold
+ ${isCompleted ? 'bg-green-500 text-white' : isCurrent ? 'bg-purple-500 text-white animate-pulse' : 'bg-muted text-muted-foreground'}
+ `}>
+ {isCompleted ? 'βœ“' : index + 1}
+ </div>
+ <div>
+ <div className="font-semibold">{action.name}</div>
+ {action.description && (
+ <div className="text-sm text-muted-foreground">{action.description}</div>
+ )}
+ </div>
+ </div>
+ <Badge variant="outline">Cost: {action.cost}</Badge>
+ </div>
+ </div>
+ );
+ })}
+ </TabsContent>
+ </Tabs>
+ </CardContent>
+ </Card>
+ );
+}
+
+function convertPlanToGraph(
+ actions: Action[],
+ currentActionId?: string,
+ completedActionIds: string[] = []
+): { nodes: Node[]; edges: Edge[] } {
+ const nodes: Node[] = actions.map((action, index) => {
+ const isCompleted = completedActionIds.includes(action.id);
+ const isCurrent = action.id === currentActionId;
+
+ return {
+ id: action.id,
+ position: calculateNodePosition(index, actions.length),
+ data: {
+ label: (
+ <div className="text-center">
+ <div className="font-semibold text-sm">{action.name}</div>
+ <div className="text-xs text-muted-foreground">Cost: {action.cost}</div>
+ </div>
+ )
+ },
+ style: {
+ background: isCompleted
+ ? 'linear-gradient(135deg, #10b981 0%, #059669 100%)'
+ : isCurrent
+ ? 'linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%)'
+ : 'linear-gradient(135deg, #64748b 0%, #475569 100%)',
+ color: 'white',
+ border: isCurrent ? '2px solid #a855f7' : '1px solid transparent',
+ borderRadius: '8px',
+ padding: '12px',
+ width: 180,
+ boxShadow: isCurrent ? '0 0 20px rgba(168, 85, 247, 0.5)' : undefined
+ }
+ };
+ });
+
+ const edges: Edge[] = [];
+ for (let i = 0; i < actions.length - 1; i++) {
+ const isCompleted = completedActionIds.includes(actions[i].id);
+ edges.push({
+ id: `${actions[i].id}-${actions[i + 1].id}`,
+ source: actions[i].id,
+ target: actions[i + 1].id,
+ animated: actions[i + 1].id === currentActionId,
+ style: {
+ stroke: isCompleted ? '#10b981' : '#64748b',
+ strokeWidth: 2
+ },
+ markerEnd: {
+ type: MarkerType.ArrowClosed,
+ color: isCompleted ? '#10b981' : '#64748b'
+ }
+ });
+ }
+
+ return { nodes, edges };
+}
+
+function calculateNodePosition(index: number, total: number): { x: number; y: number } {
+ const nodesPerRow = Math.ceil(Math.sqrt(total));
+ const row = Math.floor(index / nodesPerRow);
+ const col = index % nodesPerRow;
+
+ return {
+ x: col * 250,
+ y: row * 150
+ };
+}
\ No newline at end of file
diff --git a/v3/goal_ui/src/components/agents/QualityGates.tsx b/v3/goal_ui/src/components/agents/QualityGates.tsx
new file mode 100644
index 0000000000..7c24de3e29
--- /dev/null
+++ b/v3/goal_ui/src/components/agents/QualityGates.tsx
@@ -0,0 +1,92 @@
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { Badge } from "@/components/ui/badge";
+import { Progress } from "@/components/ui/progress";
+import { Shield, CheckCircle2, XCircle, AlertTriangle } from "lucide-react";
+
+interface QualityMetrics {
+ compileCheck: boolean;
+ testCoverage: number;
+ securityScore: number;
+}
+
+interface QualityGatesProps {
+ metrics: QualityMetrics;
+}
+
+export const QualityGates = ({ metrics }: QualityGatesProps) => {
+ const gates = [
+ {
+ name: "Compile Check",
+ status: metrics.compileCheck ? "passed" : "failed",
+ icon: metrics.compileCheck ? CheckCircle2 : XCircle,
+ color: metrics.compileCheck ? "text-green-500" : "text-red-500",
+ },
+ {
+ name: "Test Coverage",
+ status: metrics.testCoverage >= 80 ? "passed" : metrics.testCoverage >= 60 ? "warning" : "failed",
+ value: metrics.testCoverage,
+ threshold: 80,
+ },
+ {
+ name: "Security Scan",
+ status: metrics.securityScore >= 90 ? "passed" : metrics.securityScore >= 70 ? "warning" : "failed",
+ value: metrics.securityScore,
+ threshold: 90,
+ },
+ ];
+
+ return (
+ <div className="space-y-6">
+ <Card className="border-2 border-green-500/20">
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <Shield className="w-5 h-5 text-green-500" />
+ Quality Gates
+ </CardTitle>
+ <CardDescription>Automated quality assurance checkpoints</CardDescription>
+ </CardHeader>
+ <CardContent className="space-y-6">
+ {gates.map((gate, idx) => (
+ <div key={idx} className="space-y-3 p-4 rounded-lg border bg-card/50">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-2">
+ {gate.icon ? (
+ <gate.icon className={`w-5 h-5 ${gate.color}`} />
+ ) : gate.status === "passed" ? (
+ <CheckCircle2 className="w-5 h-5 text-green-500" />
+ ) : gate.status === "warning" ? (
+ <AlertTriangle className="w-5 h-5 text-yellow-500" />
+ ) : (
+ <XCircle className="w-5 h-5 text-red-500" />
+ )}
+ <span className="font-semibold">{gate.name}</span>
+ </div>
+ <Badge
+ variant={
+ gate.status === "passed"
+ ? "default"
+ : gate.status === "warning"
+ ? "secondary"
+ : "destructive"
+ }
+ >
+ {gate.status}
+ </Badge>
+ </div>
+
+ {gate.value !== undefined && (
+ <>
+ <Progress value={gate.value} className="h-2" />
+ <div className="flex items-center justify-between text-sm text-muted-foreground">
+ <span>Current: {gate.value}%</span>
+ <span>Threshold: {gate.threshold}%</span>
+ </div>
+ </>
+ )}
+ </div>
+ ))}
+ </CardContent>
+ </Card>
+ </div>
+ );
+};
diff --git a/v3/goal_ui/src/components/agents/RealTimeEventLog.tsx b/v3/goal_ui/src/components/agents/RealTimeEventLog.tsx
new file mode 100644
index 0000000000..4edaf45a64
--- /dev/null
+++ b/v3/goal_ui/src/components/agents/RealTimeEventLog.tsx
@@ -0,0 +1,139 @@
+import { useState, useMemo } from 'react';
+import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
+import { ScrollArea } from '@/components/ui/scroll-area';
+import { Input } from '@/components/ui/input';
+import { Badge } from '@/components/ui/badge';
+import { Button } from '@/components/ui/button';
+import { Search, Download, Filter, MessageSquare } from 'lucide-react';
+
+interface AgenticFlowEvent {
+ type: string;
+ timestamp: number;
+ data: any;
+}
+
+interface RealTimeEventLogProps {
+ events: AgenticFlowEvent[];
+ maxEvents?: number;
+}
+
+export function RealTimeEventLog({ events, maxEvents = 100 }: RealTimeEventLogProps) {
+ const [searchTerm, setSearchTerm] = useState('');
+ const [selectedTypes, setSelectedTypes] = useState<Set<string>>(new Set());
+
+ const filteredEvents = useMemo(() => {
+ return events
+ .filter(event => {
+ if (searchTerm && !JSON.stringify(event).toLowerCase().includes(searchTerm.toLowerCase())) {
+ return false;
+ }
+ if (selectedTypes.size > 0 && !selectedTypes.has(event.type)) {
+ return false;
+ }
+ return true;
+ })
+ .slice(-maxEvents);
+ }, [events, searchTerm, selectedTypes, maxEvents]);
+
+ const eventTypes = useMemo(() => {
+ return Array.from(new Set(events.map(e => e.type)));
+ }, [events]);
+
+ const handleExport = () => {
+ const data = JSON.stringify(filteredEvents, null, 2);
+ const blob = new Blob([data], { type: 'application/json' });
+ const url = URL.createObjectURL(blob);
+ const a = document.createElement('a');
+ a.href = url;
+ a.download = `events-${Date.now()}.json`;
+ a.click();
+ };
+
+ return (
+ <Card className="border-2 border-primary/20">
+ <CardHeader>
+ <div className="flex items-center justify-between">
+ <CardTitle className="flex items-center gap-2">
+ <MessageSquare className="w-5 h-5 text-green-500" />
+ Event Log
+ <Badge variant="outline">{filteredEvents.length}</Badge>
+ </CardTitle>
+ <Button size="sm" variant="outline" onClick={handleExport}>
+ <Download className="w-4 h-4 mr-1" /> Export
+ </Button>
+ </div>
+ </CardHeader>
+ <CardContent className="space-y-4">
+ {/* Search and Filter */}
+ <div className="flex gap-2">
+ <div className="relative flex-1">
+ <Search className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground" />
+ <Input
+ placeholder="Search events..."
+ value={searchTerm}
+ onChange={(e) => setSearchTerm(e.target.value)}
+ className="pl-9"
+ />
+ </div>
+ <Button variant="outline" size="icon">
+ <Filter className="w-4 h-4" />
+ </Button>
+ </div>
+
+ {/* Event Type Filters */}
+ {eventTypes.length > 0 && (
+ <div className="flex flex-wrap gap-2">
+ {eventTypes.map(type => (
+ <Badge
+ key={type}
+ variant={selectedTypes.has(type) ? 'default' : 'outline'}
+ className="cursor-pointer transition-all hover:scale-105"
+ onClick={() => {
+ const newTypes = new Set(selectedTypes);
+ if (newTypes.has(type)) {
+ newTypes.delete(type);
+ } else {
+ newTypes.add(type);
+ }
+ setSelectedTypes(newTypes);
+ }}
+ >
+ {type}
+ </Badge>
+ ))}
+ </div>
+ )}
+
+ {/* Event List */}
+ <ScrollArea className="h-[400px] border rounded-lg">
+ <div className="space-y-2 p-3 font-mono text-xs">
+ {filteredEvents.length > 0 ? (
+ filteredEvents.map((event, index) => (
+ <div
+ key={index}
+ className="p-3 rounded-lg border bg-muted/30 hover:bg-muted/50 transition-colors animate-fade-in"
+ >
+ <div className="flex items-start justify-between gap-2 mb-1">
+ <Badge variant="outline" className="text-xs">
+ {event.type}
+ </Badge>
+ <span className="text-muted-foreground">
+ {new Date(event.timestamp).toLocaleTimeString()}
+ </span>
+ </div>
+ <pre className="text-xs overflow-x-auto whitespace-pre-wrap">
+ {JSON.stringify(event.data, null, 2)}
+ </pre>
+ </div>
+ ))
+ ) : (
+ <div className="text-center text-muted-foreground py-8">
+ {events.length === 0 ? 'No events yet...' : 'No events match your filters'}
+ </div>
+ )}
+ </div>
+ </ScrollArea>
+ </CardContent>
+ </Card>
+ );
+}
\ No newline at end of file
diff --git a/v3/goal_ui/src/components/agents/StepExecutionPanel.tsx b/v3/goal_ui/src/components/agents/StepExecutionPanel.tsx
new file mode 100644
index 0000000000..18dcf63468
--- /dev/null
+++ b/v3/goal_ui/src/components/agents/StepExecutionPanel.tsx
@@ -0,0 +1,192 @@
+import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
+import { Progress } from '@/components/ui/progress';
+import { Badge } from '@/components/ui/badge';
+import { Button } from '@/components/ui/button';
+import { ScrollArea } from '@/components/ui/scroll-area';
+import { Play, Pause, SkipForward, RotateCcw, Zap, Bot, CheckCircle2, ArrowRight } from 'lucide-react';
+
+interface StepExecutionPanelProps {
+ currentAction: {
+ name: string;
+ description?: string;
+ cost: number;
+ preconditions?: Record<string, boolean | string>;
+ effects?: Record<string, boolean | string>;
+ };
+ assignedAgent: {
+ name: string;
+ type: string;
+ status: string;
+ };
+ progress: number;
+ logs: string[];
+ onPause?: () => void;
+ onResume?: () => void;
+ onSkip?: () => void;
+ onRetry?: () => void;
+ isPaused: boolean;
+}
+
+export function StepExecutionPanel({
+ currentAction,
+ assignedAgent,
+ progress,
+ logs,
+ onPause,
+ onResume,
+ onSkip,
+ onRetry,
+ isPaused
+}: StepExecutionPanelProps) {
+ return (
+ <Card className="border-2 border-primary/20">
+ <CardHeader>
+ <div className="flex items-center justify-between">
+ <CardTitle className="flex items-center gap-2">
+ <Zap className="w-5 h-5 text-yellow-500 animate-pulse" />
+ Current Step
+ </CardTitle>
+ <div className="flex gap-2">
+ {isPaused ? (
+ <Button size="sm" variant="outline" onClick={onResume}>
+ <Play className="w-4 h-4 mr-1" /> Resume
+ </Button>
+ ) : (
+ <Button size="sm" variant="outline" onClick={onPause}>
+ <Pause className="w-4 h-4 mr-1" /> Pause
+ </Button>
+ )}
+ <Button size="sm" variant="outline" onClick={onSkip}>
+ <SkipForward className="w-4 h-4 mr-1" /> Skip
+ </Button>
+ <Button size="sm" variant="outline" onClick={onRetry}>
+ <RotateCcw className="w-4 h-4 mr-1" /> Retry
+ </Button>
+ </div>
+ </div>
+ </CardHeader>
+ <CardContent className="space-y-4">
+ {/* Action Info */}
+ <div>
+ <div className="flex items-center justify-between mb-2">
+ <h4 className="font-semibold text-lg">{currentAction.name}</h4>
+ <Badge variant="outline">Cost: {currentAction.cost}</Badge>
+ </div>
+ {currentAction.description && (
+ <p className="text-sm text-muted-foreground">
+ {currentAction.description}
+ </p>
+ )}
+ </div>
+
+ {/* Assigned Agent */}
+ <div className="flex items-center gap-3 p-3 bg-gradient-to-r from-purple-500/10 to-blue-500/10 rounded-lg border border-purple-500/20">
+ <Bot className="w-5 h-5 text-purple-500" />
+ <div className="flex-1">
+ <div className="text-sm font-medium">{assignedAgent.name}</div>
+ <div className="text-xs text-muted-foreground">
+ {assignedAgent.type}
+ </div>
+ </div>
+ <Badge
+ variant={
+ assignedAgent.status === 'working'
+ ? 'default'
+ : assignedAgent.status === 'blocked'
+ ? 'destructive'
+ : 'secondary'
+ }
+ >
+ {assignedAgent.status}
+ </Badge>
+ </div>
+
+ {/* Progress */}
+ <div className="space-y-2">
+ <div className="flex items-center justify-between text-sm">
+ <span className="font-medium">Progress</span>
+ <span className="font-bold text-lg" style={{ color: '#a855f7' }}>{progress}%</span>
+ </div>
+ <Progress value={progress} className="h-3" />
+ <div className="text-xs text-muted-foreground">
+ {getProgressLabel(progress)}
+ </div>
+ </div>
+
+ {/* Preconditions & Effects */}
+ {(currentAction.preconditions || currentAction.effects) && (
+ <div className="grid grid-cols-2 gap-4">
+ {currentAction.preconditions && (
+ <div>
+ <h5 className="text-sm font-semibold mb-2 flex items-center gap-1">
+ <CheckCircle2 className="w-4 h-4 text-green-500" />
+ Preconditions
+ </h5>
+ <div className="space-y-1">
+ {Object.entries(currentAction.preconditions).map(([key, value]) => (
+ <div
+ key={key}
+ className="text-xs flex items-center gap-2 p-2 bg-green-500/10 border border-green-500/20 rounded"
+ >
+ <CheckCircle2 className="w-3 h-3 text-green-500" />
+ <span className="font-mono">{key}: {String(value)}</span>
+ </div>
+ ))}
+ </div>
+ </div>
+ )}
+ {currentAction.effects && (
+ <div>
+ <h5 className="text-sm font-semibold mb-2 flex items-center gap-1">
+ <ArrowRight className="w-4 h-4 text-blue-500" />
+ Effects
+ </h5>
+ <div className="space-y-1">
+ {Object.entries(currentAction.effects).map(([key, value]) => (
+ <div
+ key={key}
+ className="text-xs flex items-center gap-2 p-2 bg-blue-500/10 border border-blue-500/20 rounded"
+ >
+ <ArrowRight className="w-3 h-3 text-blue-500" />
+ <span className="font-mono">{key}: {String(value)}</span>
+ </div>
+ ))}
+ </div>
+ </div>
+ )}
+ </div>
+ )}
+
+ {/* Real-time Logs */}
+ <div>
+ <h5 className="text-sm font-semibold mb-2">Execution Log</h5>
+ <ScrollArea className="h-[150px] rounded-md border bg-muted/30 p-3">
+ <div className="space-y-1 font-mono text-xs">
+ {logs.map((log, index) => (
+ <div key={index} className="text-muted-foreground animate-fade-in">
+ <span className="text-purple-500">
+ [{new Date().toLocaleTimeString()}]
+ </span>{' '}
+ {log}
+ </div>
+ ))}
+ {logs.length === 0 && (
+ <div className="text-center text-muted-foreground py-4">
+ No logs yet...
+ </div>
+ )}
+ </div>
+ </ScrollArea>
+ </div>
+ </CardContent>
+ </Card>
+ );
+}
+
+function getProgressLabel(progress: number): string {
+ if (progress < 25) return 'Initializing...';
+ if (progress < 50) return 'Processing...';
+ if (progress < 75) return 'Executing...';
+ if (progress < 100) return 'Finalizing...';
+ return 'Complete!';
+}
\ No newline at end of file
diff --git a/v3/goal_ui/src/components/agents/TaskBoard.tsx b/v3/goal_ui/src/components/agents/TaskBoard.tsx
new file mode 100644
index 0000000000..3aa5c317ee
--- /dev/null
+++ b/v3/goal_ui/src/components/agents/TaskBoard.tsx
@@ -0,0 +1,89 @@
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { Badge } from "@/components/ui/badge";
+import { ScrollArea } from "@/components/ui/scroll-area";
+import { GripVertical, Clock, CheckCircle2, AlertCircle } from "lucide-react";
+
+interface TaskBoardProps {
+ swarmMode: string;
+}
+
+const tasks = [
+ { id: 1, title: "Design database schema", agent: "Architecture", status: "todo", priority: "high" },
+ { id: 2, title: "Implement user authentication", agent: "Implementation", status: "in-progress", priority: "high" },
+ { id: 3, title: "Write unit tests for auth", agent: "Testing", status: "todo", priority: "medium" },
+ { id: 4, title: "Review authentication code", agent: "Code Review", status: "blocked", priority: "high" },
+ { id: 5, title: "Document API endpoints", agent: "Documentation", status: "todo", priority: "low" },
+ { id: 6, title: "Setup CI/CD pipeline", agent: "DevOps", status: "in-progress", priority: "medium" },
+];
+
+const columns = [
+ { id: "todo", title: "To Do", icon: Clock },
+ { id: "in-progress", title: "In Progress", icon: AlertCircle },
+ { id: "blocked", title: "Blocked", icon: AlertCircle },
+ { id: "done", title: "Done", icon: CheckCircle2 },
+];
+
+export const TaskBoard = ({ swarmMode }: TaskBoardProps) => {
+ return (
+ <div className="space-y-4">
+ <Card className="border-primary/20">
+ <CardHeader>
+ <CardTitle>Task Assignment Board</CardTitle>
+ <CardDescription>Drag and drop tasks to assign agents</CardDescription>
+ <div className="flex items-center gap-2 mt-2 text-sm text-muted-foreground">
+ <span>Mode:</span>
+ <Badge variant="outline">{swarmMode}</Badge>
+ </div>
+ </CardHeader>
+ <CardContent>
+ <div className="grid grid-cols-1 md:grid-cols-4 gap-4">
+ {columns.map((column) => {
+ const Icon = column.icon;
+ const columnTasks = tasks.filter(t => t.status === column.id);
+
+ return (
+ <div key={column.id} className="space-y-3">
+ <div className="flex items-center gap-2 font-semibold">
+ <Icon className="w-4 h-4" />
+ {column.title}
+ <Badge variant="secondary" className="ml-auto">
+ {columnTasks.length}
+ </Badge>
+ </div>
+
+ <ScrollArea className="h-[500px] pr-4">
+ <div className="space-y-2">
+ {columnTasks.map((task) => (
+ <Card key={task.id} className="border cursor-move hover:border-primary/50 transition-all">
+ <CardContent className="p-3">
+ <div className="flex items-start gap-2">
+ <GripVertical className="w-4 h-4 text-muted-foreground mt-1" />
+ <div className="flex-1 space-y-2">
+ <p className="text-sm font-medium">{task.title}</p>
+ <div className="flex items-center gap-2">
+ <Badge variant="outline" className="text-xs">
+ {task.agent}
+ </Badge>
+ <Badge
+ variant={task.priority === 'high' ? 'destructive' : task.priority === 'medium' ? 'default' : 'secondary'}
+ className="text-xs"
+ >
+ {task.priority}
+ </Badge>
+ </div>
+ </div>
+ </div>
+ </CardContent>
+ </Card>
+ ))}
+ </div>
+ </ScrollArea>
+ </div>
+ );
+ })}
+ </div>
+ </CardContent>
+ </Card>
+ </div>
+ );
+};
diff --git a/v3/goal_ui/src/components/ui/accordion.tsx b/v3/goal_ui/src/components/ui/accordion.tsx
new file mode 100644
index 0000000000..1e7878cede
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/accordion.tsx
@@ -0,0 +1,52 @@
+import * as React from "react";
+import * as AccordionPrimitive from "@radix-ui/react-accordion";
+import { ChevronDown } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const Accordion = AccordionPrimitive.Root;
+
+const AccordionItem = React.forwardRef<
+ React.ElementRef<typeof AccordionPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>
+>(({ className, ...props }, ref) => (
+ <AccordionPrimitive.Item ref={ref} className={cn("border-b", className)} {...props} />
+));
+AccordionItem.displayName = "AccordionItem";
+
+const AccordionTrigger = React.forwardRef<
+ React.ElementRef<typeof AccordionPrimitive.Trigger>,
+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>
+>(({ className, children, ...props }, ref) => (
+ <AccordionPrimitive.Header className="flex">
+ <AccordionPrimitive.Trigger
+ ref={ref}
+ className={cn(
+ "flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
+ className,
+ )}
+ {...props}
+ >
+ {children}
+ <ChevronDown className="h-4 w-4 shrink-0 transition-transform duration-200" />
+ </AccordionPrimitive.Trigger>
+ </AccordionPrimitive.Header>
+));
+AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
+
+const AccordionContent = React.forwardRef<
+ React.ElementRef<typeof AccordionPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>
+>(({ className, children, ...props }, ref) => (
+ <AccordionPrimitive.Content
+ ref={ref}
+ className="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
+ {...props}
+ >
+ <div className={cn("pb-4 pt-0", className)}>{children}</div>
+ </AccordionPrimitive.Content>
+));
+
+AccordionContent.displayName = AccordionPrimitive.Content.displayName;
+
+export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
diff --git a/v3/goal_ui/src/components/ui/alert-dialog.tsx b/v3/goal_ui/src/components/ui/alert-dialog.tsx
new file mode 100644
index 0000000000..6dfbfb49fe
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/alert-dialog.tsx
@@ -0,0 +1,104 @@
+import * as React from "react";
+import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
+
+import { cn } from "@/lib/utils";
+import { buttonVariants } from "@/components/ui/button";
+
+const AlertDialog = AlertDialogPrimitive.Root;
+
+const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
+
+const AlertDialogPortal = AlertDialogPrimitive.Portal;
+
+const AlertDialogOverlay = React.forwardRef<
+ React.ElementRef<typeof AlertDialogPrimitive.Overlay>,
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>
+>(({ className, ...props }, ref) => (
+ <AlertDialogPrimitive.Overlay
+ className={cn(
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
+ className,
+ )}
+ {...props}
+ ref={ref}
+ />
+));
+AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
+
+const AlertDialogContent = React.forwardRef<
+ React.ElementRef<typeof AlertDialogPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>
+>(({ className, ...props }, ref) => (
+ <AlertDialogPortal>
+ <AlertDialogOverlay />
+ <AlertDialogPrimitive.Content
+ ref={ref}
+ className={cn(
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
+ className,
+ )}
+ {...props}
+ />
+ </AlertDialogPortal>
+));
+AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
+
+const AlertDialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
+ <div className={cn("flex flex-col space-y-2 text-center sm:text-left", className)} {...props} />
+);
+AlertDialogHeader.displayName = "AlertDialogHeader";
+
+const AlertDialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
+ <div className={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)} {...props} />
+);
+AlertDialogFooter.displayName = "AlertDialogFooter";
+
+const AlertDialogTitle = React.forwardRef<
+ React.ElementRef<typeof AlertDialogPrimitive.Title>,
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>
+>(({ className, ...props }, ref) => (
+ <AlertDialogPrimitive.Title ref={ref} className={cn("text-lg font-semibold", className)} {...props} />
+));
+AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
+
+const AlertDialogDescription = React.forwardRef<
+ React.ElementRef<typeof AlertDialogPrimitive.Description>,
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>
+>(({ className, ...props }, ref) => (
+ <AlertDialogPrimitive.Description ref={ref} className={cn("text-sm text-muted-foreground", className)} {...props} />
+));
+AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
+
+const AlertDialogAction = React.forwardRef<
+ React.ElementRef<typeof AlertDialogPrimitive.Action>,
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>
+>(({ className, ...props }, ref) => (
+ <AlertDialogPrimitive.Action ref={ref} className={cn(buttonVariants(), className)} {...props} />
+));
+AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
+
+const AlertDialogCancel = React.forwardRef<
+ React.ElementRef<typeof AlertDialogPrimitive.Cancel>,
+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>
+>(({ className, ...props }, ref) => (
+ <AlertDialogPrimitive.Cancel
+ ref={ref}
+ className={cn(buttonVariants({ variant: "outline" }), "mt-2 sm:mt-0", className)}
+ {...props}
+ />
+));
+AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
+
+export {
+ AlertDialog,
+ AlertDialogPortal,
+ AlertDialogOverlay,
+ AlertDialogTrigger,
+ AlertDialogContent,
+ AlertDialogHeader,
+ AlertDialogFooter,
+ AlertDialogTitle,
+ AlertDialogDescription,
+ AlertDialogAction,
+ AlertDialogCancel,
+};
diff --git a/v3/goal_ui/src/components/ui/alert.tsx b/v3/goal_ui/src/components/ui/alert.tsx
new file mode 100644
index 0000000000..2efc3c8ba4
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/alert.tsx
@@ -0,0 +1,43 @@
+import * as React from "react";
+import { cva, type VariantProps } from "class-variance-authority";
+
+import { cn } from "@/lib/utils";
+
+const alertVariants = cva(
+ "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
+ {
+ variants: {
+ variant: {
+ default: "bg-background text-foreground",
+ destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ },
+ },
+);
+
+const Alert = React.forwardRef<
+ HTMLDivElement,
+ React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>
+>(({ className, variant, ...props }, ref) => (
+ <div ref={ref} role="alert" className={cn(alertVariants({ variant }), className)} {...props} />
+));
+Alert.displayName = "Alert";
+
+const AlertTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(
+ ({ className, ...props }, ref) => (
+ <h5 ref={ref} className={cn("mb-1 font-medium leading-none tracking-tight", className)} {...props} />
+ ),
+);
+AlertTitle.displayName = "AlertTitle";
+
+const AlertDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(
+ ({ className, ...props }, ref) => (
+ <div ref={ref} className={cn("text-sm [&_p]:leading-relaxed", className)} {...props} />
+ ),
+);
+AlertDescription.displayName = "AlertDescription";
+
+export { Alert, AlertTitle, AlertDescription };
diff --git a/v3/goal_ui/src/components/ui/aspect-ratio.tsx b/v3/goal_ui/src/components/ui/aspect-ratio.tsx
new file mode 100644
index 0000000000..c9e6f4bf9e
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/aspect-ratio.tsx
@@ -0,0 +1,5 @@
+import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
+
+const AspectRatio = AspectRatioPrimitive.Root;
+
+export { AspectRatio };
diff --git a/v3/goal_ui/src/components/ui/avatar.tsx b/v3/goal_ui/src/components/ui/avatar.tsx
new file mode 100644
index 0000000000..68d21bbf6d
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/avatar.tsx
@@ -0,0 +1,38 @@
+import * as React from "react";
+import * as AvatarPrimitive from "@radix-ui/react-avatar";
+
+import { cn } from "@/lib/utils";
+
+const Avatar = React.forwardRef<
+ React.ElementRef<typeof AvatarPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>
+>(({ className, ...props }, ref) => (
+ <AvatarPrimitive.Root
+ ref={ref}
+ className={cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", className)}
+ {...props}
+ />
+));
+Avatar.displayName = AvatarPrimitive.Root.displayName;
+
+const AvatarImage = React.forwardRef<
+ React.ElementRef<typeof AvatarPrimitive.Image>,
+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
+>(({ className, ...props }, ref) => (
+ <AvatarPrimitive.Image ref={ref} className={cn("aspect-square h-full w-full", className)} {...props} />
+));
+AvatarImage.displayName = AvatarPrimitive.Image.displayName;
+
+const AvatarFallback = React.forwardRef<
+ React.ElementRef<typeof AvatarPrimitive.Fallback>,
+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>
+>(({ className, ...props }, ref) => (
+ <AvatarPrimitive.Fallback
+ ref={ref}
+ className={cn("flex h-full w-full items-center justify-center rounded-full bg-muted", className)}
+ {...props}
+ />
+));
+AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
+
+export { Avatar, AvatarImage, AvatarFallback };
diff --git a/v3/goal_ui/src/components/ui/badge.tsx b/v3/goal_ui/src/components/ui/badge.tsx
new file mode 100644
index 0000000000..0853c441df
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/badge.tsx
@@ -0,0 +1,29 @@
+import * as React from "react";
+import { cva, type VariantProps } from "class-variance-authority";
+
+import { cn } from "@/lib/utils";
+
+const badgeVariants = cva(
+ "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
+ {
+ variants: {
+ variant: {
+ default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
+ destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
+ outline: "text-foreground",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ },
+ },
+);
+
+export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}
+
+function Badge({ className, variant, ...props }: BadgeProps) {
+ return <div className={cn(badgeVariants({ variant }), className)} {...props} />;
+}
+
+export { Badge, badgeVariants };
diff --git a/v3/goal_ui/src/components/ui/breadcrumb.tsx b/v3/goal_ui/src/components/ui/breadcrumb.tsx
new file mode 100644
index 0000000000..ca91ff5326
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/breadcrumb.tsx
@@ -0,0 +1,90 @@
+import * as React from "react";
+import { Slot } from "@radix-ui/react-slot";
+import { ChevronRight, MoreHorizontal } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const Breadcrumb = React.forwardRef<
+ HTMLElement,
+ React.ComponentPropsWithoutRef<"nav"> & {
+ separator?: React.ReactNode;
+ }
+>(({ ...props }, ref) => <nav ref={ref} aria-label="breadcrumb" {...props} />);
+Breadcrumb.displayName = "Breadcrumb";
+
+const BreadcrumbList = React.forwardRef<HTMLOListElement, React.ComponentPropsWithoutRef<"ol">>(
+ ({ className, ...props }, ref) => (
+ <ol
+ ref={ref}
+ className={cn(
+ "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",
+ className,
+ )}
+ {...props}
+ />
+ ),
+);
+BreadcrumbList.displayName = "BreadcrumbList";
+
+const BreadcrumbItem = React.forwardRef<HTMLLIElement, React.ComponentPropsWithoutRef<"li">>(
+ ({ className, ...props }, ref) => (
+ <li ref={ref} className={cn("inline-flex items-center gap-1.5", className)} {...props} />
+ ),
+);
+BreadcrumbItem.displayName = "BreadcrumbItem";
+
+const BreadcrumbLink = React.forwardRef<
+ HTMLAnchorElement,
+ React.ComponentPropsWithoutRef<"a"> & {
+ asChild?: boolean;
+ }
+>(({ asChild, className, ...props }, ref) => {
+ const Comp = asChild ? Slot : "a";
+
+ return <Comp ref={ref} className={cn("transition-colors hover:text-foreground", className)} {...props} />;
+});
+BreadcrumbLink.displayName = "BreadcrumbLink";
+
+const BreadcrumbPage = React.forwardRef<HTMLSpanElement, React.ComponentPropsWithoutRef<"span">>(
+ ({ className, ...props }, ref) => (
+ <span
+ ref={ref}
+ role="link"
+ aria-disabled="true"
+ aria-current="page"
+ className={cn("font-normal text-foreground", className)}
+ {...props}
+ />
+ ),
+);
+BreadcrumbPage.displayName = "BreadcrumbPage";
+
+const BreadcrumbSeparator = ({ children, className, ...props }: React.ComponentProps<"li">) => (
+ <li role="presentation" aria-hidden="true" className={cn("[&>svg]:size-3.5", className)} {...props}>
+ {children ?? <ChevronRight />}
+ </li>
+);
+BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
+
+const BreadcrumbEllipsis = ({ className, ...props }: React.ComponentProps<"span">) => (
+ <span
+ role="presentation"
+ aria-hidden="true"
+ className={cn("flex h-9 w-9 items-center justify-center", className)}
+ {...props}
+ >
+ <MoreHorizontal className="h-4 w-4" />
+ <span className="sr-only">More</span>
+ </span>
+);
+BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
+
+export {
+ Breadcrumb,
+ BreadcrumbList,
+ BreadcrumbItem,
+ BreadcrumbLink,
+ BreadcrumbPage,
+ BreadcrumbSeparator,
+ BreadcrumbEllipsis,
+};
diff --git a/v3/goal_ui/src/components/ui/button.tsx b/v3/goal_ui/src/components/ui/button.tsx
new file mode 100644
index 0000000000..cdedd4f43d
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/button.tsx
@@ -0,0 +1,47 @@
+import * as React from "react";
+import { Slot } from "@radix-ui/react-slot";
+import { cva, type VariantProps } from "class-variance-authority";
+
+import { cn } from "@/lib/utils";
+
+const buttonVariants = cva(
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
+ {
+ variants: {
+ variant: {
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
+ ghost: "hover:bg-accent hover:text-accent-foreground",
+ link: "text-primary underline-offset-4 hover:underline",
+ },
+ size: {
+ default: "h-10 px-4 py-2",
+ sm: "h-9 rounded-md px-3",
+ lg: "h-11 rounded-md px-8",
+ icon: "h-10 w-10",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ size: "default",
+ },
+ },
+);
+
+export interface ButtonProps
+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,
+ VariantProps<typeof buttonVariants> {
+ asChild?: boolean;
+}
+
+const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
+ const Comp = asChild ? Slot : "button";
+ return <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props} />;
+ },
+);
+Button.displayName = "Button";
+
+export { Button, buttonVariants };
diff --git a/v3/goal_ui/src/components/ui/calendar.tsx b/v3/goal_ui/src/components/ui/calendar.tsx
new file mode 100644
index 0000000000..900a69e45b
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/calendar.tsx
@@ -0,0 +1,54 @@
+import * as React from "react";
+import { ChevronLeft, ChevronRight } from "lucide-react";
+import { DayPicker } from "react-day-picker";
+
+import { cn } from "@/lib/utils";
+import { buttonVariants } from "@/components/ui/button";
+
+export type CalendarProps = React.ComponentProps<typeof DayPicker>;
+
+function Calendar({ className, classNames, showOutsideDays = true, ...props }: CalendarProps) {
+ return (
+ <DayPicker
+ showOutsideDays={showOutsideDays}
+ className={cn("p-3", className)}
+ classNames={{
+ months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
+ month: "space-y-4",
+ caption: "flex justify-center pt-1 relative items-center",
+ caption_label: "text-sm font-medium",
+ nav: "space-x-1 flex items-center",
+ nav_button: cn(
+ buttonVariants({ variant: "outline" }),
+ "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100",
+ ),
+ nav_button_previous: "absolute left-1",
+ nav_button_next: "absolute right-1",
+ table: "w-full border-collapse space-y-1",
+ head_row: "flex",
+ head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
+ row: "flex w-full mt-2",
+ cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
+ day: cn(buttonVariants({ variant: "ghost" }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
+ day_range_end: "day-range-end",
+ day_selected:
+ "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
+ day_today: "bg-accent text-accent-foreground",
+ day_outside:
+ "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
+ day_disabled: "text-muted-foreground opacity-50",
+ day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
+ day_hidden: "invisible",
+ ...classNames,
+ }}
+ components={{
+ IconLeft: ({ ..._props }) => <ChevronLeft className="h-4 w-4" />,
+ IconRight: ({ ..._props }) => <ChevronRight className="h-4 w-4" />,
+ }}
+ {...props}
+ />
+ );
+}
+Calendar.displayName = "Calendar";
+
+export { Calendar };
diff --git a/v3/goal_ui/src/components/ui/card.tsx b/v3/goal_ui/src/components/ui/card.tsx
new file mode 100644
index 0000000000..e28274800f
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/card.tsx
@@ -0,0 +1,43 @@
+import * as React from "react";
+
+import { cn } from "@/lib/utils";
+
+const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (
+ <div ref={ref} className={cn("rounded-lg border bg-card text-card-foreground shadow-sm", className)} {...props} />
+));
+Card.displayName = "Card";
+
+const CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => (
+ <div ref={ref} className={cn("flex flex-col space-y-1.5 p-6", className)} {...props} />
+ ),
+);
+CardHeader.displayName = "CardHeader";
+
+const CardTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(
+ ({ className, ...props }, ref) => (
+ <h3 ref={ref} className={cn("text-2xl font-semibold leading-none tracking-tight", className)} {...props} />
+ ),
+);
+CardTitle.displayName = "CardTitle";
+
+const CardDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(
+ ({ className, ...props }, ref) => (
+ <p ref={ref} className={cn("text-sm text-muted-foreground", className)} {...props} />
+ ),
+);
+CardDescription.displayName = "CardDescription";
+
+const CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => <div ref={ref} className={cn("p-6 pt-0", className)} {...props} />,
+);
+CardContent.displayName = "CardContent";
+
+const CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => (
+ <div ref={ref} className={cn("flex items-center p-6 pt-0", className)} {...props} />
+ ),
+);
+CardFooter.displayName = "CardFooter";
+
+export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
diff --git a/v3/goal_ui/src/components/ui/carousel.tsx b/v3/goal_ui/src/components/ui/carousel.tsx
new file mode 100644
index 0000000000..3aa0f31fbe
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/carousel.tsx
@@ -0,0 +1,224 @@
+import * as React from "react";
+import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";
+import { ArrowLeft, ArrowRight } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+import { Button } from "@/components/ui/button";
+
+type CarouselApi = UseEmblaCarouselType[1];
+type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
+type CarouselOptions = UseCarouselParameters[0];
+type CarouselPlugin = UseCarouselParameters[1];
+
+type CarouselProps = {
+ opts?: CarouselOptions;
+ plugins?: CarouselPlugin;
+ orientation?: "horizontal" | "vertical";
+ setApi?: (api: CarouselApi) => void;
+};
+
+type CarouselContextProps = {
+ carouselRef: ReturnType<typeof useEmblaCarousel>[0];
+ api: ReturnType<typeof useEmblaCarousel>[1];
+ scrollPrev: () => void;
+ scrollNext: () => void;
+ canScrollPrev: boolean;
+ canScrollNext: boolean;
+} & CarouselProps;
+
+const CarouselContext = React.createContext<CarouselContextProps | null>(null);
+
+function useCarousel() {
+ const context = React.useContext(CarouselContext);
+
+ if (!context) {
+ throw new Error("useCarousel must be used within a <Carousel />");
+ }
+
+ return context;
+}
+
+const Carousel = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement> & CarouselProps>(
+ ({ orientation = "horizontal", opts, setApi, plugins, className, children, ...props }, ref) => {
+ const [carouselRef, api] = useEmblaCarousel(
+ {
+ ...opts,
+ axis: orientation === "horizontal" ? "x" : "y",
+ },
+ plugins,
+ );
+ const [canScrollPrev, setCanScrollPrev] = React.useState(false);
+ const [canScrollNext, setCanScrollNext] = React.useState(false);
+
+ const onSelect = React.useCallback((api: CarouselApi) => {
+ if (!api) {
+ return;
+ }
+
+ setCanScrollPrev(api.canScrollPrev());
+ setCanScrollNext(api.canScrollNext());
+ }, []);
+
+ const scrollPrev = React.useCallback(() => {
+ api?.scrollPrev();
+ }, [api]);
+
+ const scrollNext = React.useCallback(() => {
+ api?.scrollNext();
+ }, [api]);
+
+ const handleKeyDown = React.useCallback(
+ (event: React.KeyboardEvent<HTMLDivElement>) => {
+ if (event.key === "ArrowLeft") {
+ event.preventDefault();
+ scrollPrev();
+ } else if (event.key === "ArrowRight") {
+ event.preventDefault();
+ scrollNext();
+ }
+ },
+ [scrollPrev, scrollNext],
+ );
+
+ React.useEffect(() => {
+ if (!api || !setApi) {
+ return;
+ }
+
+ setApi(api);
+ }, [api, setApi]);
+
+ React.useEffect(() => {
+ if (!api) {
+ return;
+ }
+
+ onSelect(api);
+ api.on("reInit", onSelect);
+ api.on("select", onSelect);
+
+ return () => {
+ api?.off("select", onSelect);
+ };
+ }, [api, onSelect]);
+
+ return (
+ <CarouselContext.Provider
+ value={{
+ carouselRef,
+ api: api,
+ opts,
+ orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
+ scrollPrev,
+ scrollNext,
+ canScrollPrev,
+ canScrollNext,
+ }}
+ >
+ <div
+ ref={ref}
+ onKeyDownCapture={handleKeyDown}
+ className={cn("relative", className)}
+ role="region"
+ aria-roledescription="carousel"
+ {...props}
+ >
+ {children}
+ </div>
+ </CarouselContext.Provider>
+ );
+ },
+);
+Carousel.displayName = "Carousel";
+
+const CarouselContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => {
+ const { carouselRef, orientation } = useCarousel();
+
+ return (
+ <div ref={carouselRef} className="overflow-hidden">
+ <div
+ ref={ref}
+ className={cn("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className)}
+ {...props}
+ />
+ </div>
+ );
+ },
+);
+CarouselContent.displayName = "CarouselContent";
+
+const CarouselItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => {
+ const { orientation } = useCarousel();
+
+ return (
+ <div
+ ref={ref}
+ role="group"
+ aria-roledescription="slide"
+ className={cn("min-w-0 shrink-0 grow-0 basis-full", orientation === "horizontal" ? "pl-4" : "pt-4", className)}
+ {...props}
+ />
+ );
+ },
+);
+CarouselItem.displayName = "CarouselItem";
+
+const CarouselPrevious = React.forwardRef<HTMLButtonElement, React.ComponentProps<typeof Button>>(
+ ({ className, variant = "outline", size = "icon", ...props }, ref) => {
+ const { orientation, scrollPrev, canScrollPrev } = useCarousel();
+
+ return (
+ <Button
+ ref={ref}
+ variant={variant}
+ size={size}
+ className={cn(
+ "absolute h-8 w-8 rounded-full",
+ orientation === "horizontal"
+ ? "-left-12 top-1/2 -translate-y-1/2"
+ : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
+ className,
+ )}
+ disabled={!canScrollPrev}
+ onClick={scrollPrev}
+ {...props}
+ >
+ <ArrowLeft className="h-4 w-4" />
+ <span className="sr-only">Previous slide</span>
+ </Button>
+ );
+ },
+);
+CarouselPrevious.displayName = "CarouselPrevious";
+
+const CarouselNext = React.forwardRef<HTMLButtonElement, React.ComponentProps<typeof Button>>(
+ ({ className, variant = "outline", size = "icon", ...props }, ref) => {
+ const { orientation, scrollNext, canScrollNext } = useCarousel();
+
+ return (
+ <Button
+ ref={ref}
+ variant={variant}
+ size={size}
+ className={cn(
+ "absolute h-8 w-8 rounded-full",
+ orientation === "horizontal"
+ ? "-right-12 top-1/2 -translate-y-1/2"
+ : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
+ className,
+ )}
+ disabled={!canScrollNext}
+ onClick={scrollNext}
+ {...props}
+ >
+ <ArrowRight className="h-4 w-4" />
+ <span className="sr-only">Next slide</span>
+ </Button>
+ );
+ },
+);
+CarouselNext.displayName = "CarouselNext";
+
+export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext };
diff --git a/v3/goal_ui/src/components/ui/chart.tsx b/v3/goal_ui/src/components/ui/chart.tsx
new file mode 100644
index 0000000000..08d40d90d4
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/chart.tsx
@@ -0,0 +1,303 @@
+import * as React from "react";
+import * as RechartsPrimitive from "recharts";
+
+import { cn } from "@/lib/utils";
+
+// Format: { THEME_NAME: CSS_SELECTOR }
+const THEMES = { light: "", dark: ".dark" } as const;
+
+export type ChartConfig = {
+ [k in string]: {
+ label?: React.ReactNode;
+ icon?: React.ComponentType;
+ } & ({ color?: string; theme?: never } | { color?: never; theme: Record<keyof typeof THEMES, string> });
+};
+
+type ChartContextProps = {
+ config: ChartConfig;
+};
+
+const ChartContext = React.createContext<ChartContextProps | null>(null);
+
+function useChart() {
+ const context = React.useContext(ChartContext);
+
+ if (!context) {
+ throw new Error("useChart must be used within a <ChartContainer />");
+ }
+
+ return context;
+}
+
+const ChartContainer = React.forwardRef<
+ HTMLDivElement,
+ React.ComponentProps<"div"> & {
+ config: ChartConfig;
+ children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
+ }
+>(({ id, className, children, config, ...props }, ref) => {
+ const uniqueId = React.useId();
+ const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
+
+ return (
+ <ChartContext.Provider value={{ config }}>
+ <div
+ data-chart={chartId}
+ ref={ref}
+ className={cn(
+ "flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",
+ className,
+ )}
+ {...props}
+ >
+ <ChartStyle id={chartId} config={config} />
+ <RechartsPrimitive.ResponsiveContainer>{children}</RechartsPrimitive.ResponsiveContainer>
+ </div>
+ </ChartContext.Provider>
+ );
+});
+ChartContainer.displayName = "Chart";
+
+const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {
+ const colorConfig = Object.entries(config).filter(([_, config]) => config.theme || config.color);
+
+ if (!colorConfig.length) {
+ return null;
+ }
+
+ return (
+ <style
+ dangerouslySetInnerHTML={{
+ __html: Object.entries(THEMES)
+ .map(
+ ([theme, prefix]) => `
+${prefix} [data-chart=${id}] {
+${colorConfig
+ .map(([key, itemConfig]) => {
+ const color = itemConfig.theme?.[theme as keyof typeof itemConfig.theme] || itemConfig.color;
+ return color ? ` --color-${key}: ${color};` : null;
+ })
+ .join("\n")}
+}
+`,
+ )
+ .join("\n"),
+ }}
+ />
+ );
+};
+
+const ChartTooltip = RechartsPrimitive.Tooltip;
+
+const ChartTooltipContent = React.forwardRef<
+ HTMLDivElement,
+ React.ComponentProps<typeof RechartsPrimitive.Tooltip> &
+ React.ComponentProps<"div"> & {
+ hideLabel?: boolean;
+ hideIndicator?: boolean;
+ indicator?: "line" | "dot" | "dashed";
+ nameKey?: string;
+ labelKey?: string;
+ }
+>(
+ (
+ {
+ active,
+ payload,
+ className,
+ indicator = "dot",
+ hideLabel = false,
+ hideIndicator = false,
+ label,
+ labelFormatter,
+ labelClassName,
+ formatter,
+ color,
+ nameKey,
+ labelKey,
+ },
+ ref,
+ ) => {
+ const { config } = useChart();
+
+ const tooltipLabel = React.useMemo(() => {
+ if (hideLabel || !payload?.length) {
+ return null;
+ }
+
+ const [item] = payload;
+ const key = `${labelKey || item.dataKey || item.name || "value"}`;
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
+ const value =
+ !labelKey && typeof label === "string"
+ ? config[label as keyof typeof config]?.label || label
+ : itemConfig?.label;
+
+ if (labelFormatter) {
+ return <div className={cn("font-medium", labelClassName)}>{labelFormatter(value, payload)}</div>;
+ }
+
+ if (!value) {
+ return null;
+ }
+
+ return <div className={cn("font-medium", labelClassName)}>{value}</div>;
+ }, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
+
+ if (!active || !payload?.length) {
+ return null;
+ }
+
+ const nestLabel = payload.length === 1 && indicator !== "dot";
+
+ return (
+ <div
+ ref={ref}
+ className={cn(
+ "grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",
+ className,
+ )}
+ >
+ {!nestLabel ? tooltipLabel : null}
+ <div className="grid gap-1.5">
+ {payload.map((item, index) => {
+ const key = `${nameKey || item.name || item.dataKey || "value"}`;
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
+ const indicatorColor = color || item.payload.fill || item.color;
+
+ return (
+ <div
+ key={item.dataKey}
+ className={cn(
+ "flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
+ indicator === "dot" && "items-center",
+ )}
+ >
+ {formatter && item?.value !== undefined && item.name ? (
+ formatter(item.value, item.name, item, index, item.payload)
+ ) : (
+ <>
+ {itemConfig?.icon ? (
+ <itemConfig.icon />
+ ) : (
+ !hideIndicator && (
+ <div
+ className={cn("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]", {
+ "h-2.5 w-2.5": indicator === "dot",
+ "w-1": indicator === "line",
+ "w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
+ "my-0.5": nestLabel && indicator === "dashed",
+ })}
+ style={
+ {
+ "--color-bg": indicatorColor,
+ "--color-border": indicatorColor,
+ } as React.CSSProperties
+ }
+ />
+ )
+ )}
+ <div
+ className={cn(
+ "flex flex-1 justify-between leading-none",
+ nestLabel ? "items-end" : "items-center",
+ )}
+ >
+ <div className="grid gap-1.5">
+ {nestLabel ? tooltipLabel : null}
+ <span className="text-muted-foreground">{itemConfig?.label || item.name}</span>
+ </div>
+ {item.value && (
+ <span className="font-mono font-medium tabular-nums text-foreground">
+ {item.value.toLocaleString()}
+ </span>
+ )}
+ </div>
+ </>
+ )}
+ </div>
+ );
+ })}
+ </div>
+ </div>
+ );
+ },
+);
+ChartTooltipContent.displayName = "ChartTooltip";
+
+const ChartLegend = RechartsPrimitive.Legend;
+
+const ChartLegendContent = React.forwardRef<
+ HTMLDivElement,
+ React.ComponentProps<"div"> &
+ Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
+ hideIcon?: boolean;
+ nameKey?: string;
+ }
+>(({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
+ const { config } = useChart();
+
+ if (!payload?.length) {
+ return null;
+ }
+
+ return (
+ <div
+ ref={ref}
+ className={cn("flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className)}
+ >
+ {payload.map((item) => {
+ const key = `${nameKey || item.dataKey || "value"}`;
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
+
+ return (
+ <div
+ key={item.value}
+ className={cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground")}
+ >
+ {itemConfig?.icon && !hideIcon ? (
+ <itemConfig.icon />
+ ) : (
+ <div
+ className="h-2 w-2 shrink-0 rounded-[2px]"
+ style={{
+ backgroundColor: item.color,
+ }}
+ />
+ )}
+ {itemConfig?.label}
+ </div>
+ );
+ })}
+ </div>
+ );
+});
+ChartLegendContent.displayName = "ChartLegend";
+
+// Helper to extract item config from a payload.
+function getPayloadConfigFromPayload(config: ChartConfig, payload: unknown, key: string) {
+ if (typeof payload !== "object" || payload === null) {
+ return undefined;
+ }
+
+ const payloadPayload =
+ "payload" in payload && typeof payload.payload === "object" && payload.payload !== null
+ ? payload.payload
+ : undefined;
+
+ let configLabelKey: string = key;
+
+ if (key in payload && typeof payload[key as keyof typeof payload] === "string") {
+ configLabelKey = payload[key as keyof typeof payload] as string;
+ } else if (
+ payloadPayload &&
+ key in payloadPayload &&
+ typeof payloadPayload[key as keyof typeof payloadPayload] === "string"
+ ) {
+ configLabelKey = payloadPayload[key as keyof typeof payloadPayload] as string;
+ }
+
+ return configLabelKey in config ? config[configLabelKey] : config[key as keyof typeof config];
+}
+
+export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle };
diff --git a/v3/goal_ui/src/components/ui/checkbox.tsx b/v3/goal_ui/src/components/ui/checkbox.tsx
new file mode 100644
index 0000000000..759a41ce20
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/checkbox.tsx
@@ -0,0 +1,26 @@
+import * as React from "react";
+import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
+import { Check } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const Checkbox = React.forwardRef<
+ React.ElementRef<typeof CheckboxPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>
+>(({ className, ...props }, ref) => (
+ <CheckboxPrimitive.Root
+ ref={ref}
+ className={cn(
+ "peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
+ className,
+ )}
+ {...props}
+ >
+ <CheckboxPrimitive.Indicator className={cn("flex items-center justify-center text-current")}>
+ <Check className="h-4 w-4" />
+ </CheckboxPrimitive.Indicator>
+ </CheckboxPrimitive.Root>
+));
+Checkbox.displayName = CheckboxPrimitive.Root.displayName;
+
+export { Checkbox };
diff --git a/v3/goal_ui/src/components/ui/collapsible.tsx b/v3/goal_ui/src/components/ui/collapsible.tsx
new file mode 100644
index 0000000000..5c28cbcc3b
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/collapsible.tsx
@@ -0,0 +1,9 @@
+import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
+
+const Collapsible = CollapsiblePrimitive.Root;
+
+const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
+
+const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
+
+export { Collapsible, CollapsibleTrigger, CollapsibleContent };
diff --git a/v3/goal_ui/src/components/ui/command.tsx b/v3/goal_ui/src/components/ui/command.tsx
new file mode 100644
index 0000000000..68d537865f
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/command.tsx
@@ -0,0 +1,132 @@
+import * as React from "react";
+import { type DialogProps } from "@radix-ui/react-dialog";
+import { Command as CommandPrimitive } from "cmdk";
+import { Search } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+import { Dialog, DialogContent } from "@/components/ui/dialog";
+
+const Command = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive>
+>(({ className, ...props }, ref) => (
+ <CommandPrimitive
+ ref={ref}
+ className={cn(
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
+ className,
+ )}
+ {...props}
+ />
+));
+Command.displayName = CommandPrimitive.displayName;
+
+interface CommandDialogProps extends DialogProps {}
+
+const CommandDialog = ({ children, ...props }: CommandDialogProps) => {
+ return (
+ <Dialog {...props}>
+ <DialogContent className="overflow-hidden p-0 shadow-lg">
+ <Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
+ {children}
+ </Command>
+ </DialogContent>
+ </Dialog>
+ );
+};
+
+const CommandInput = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive.Input>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
+>(({ className, ...props }, ref) => (
+ <div className="flex items-center border-b px-3" cmdk-input-wrapper="">
+ <Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
+ <CommandPrimitive.Input
+ ref={ref}
+ className={cn(
+ "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
+ className,
+ )}
+ {...props}
+ />
+ </div>
+));
+
+CommandInput.displayName = CommandPrimitive.Input.displayName;
+
+const CommandList = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive.List>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>
+>(({ className, ...props }, ref) => (
+ <CommandPrimitive.List
+ ref={ref}
+ className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}
+ {...props}
+ />
+));
+
+CommandList.displayName = CommandPrimitive.List.displayName;
+
+const CommandEmpty = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive.Empty>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>
+>((props, ref) => <CommandPrimitive.Empty ref={ref} className="py-6 text-center text-sm" {...props} />);
+
+CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
+
+const CommandGroup = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive.Group>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>
+>(({ className, ...props }, ref) => (
+ <CommandPrimitive.Group
+ ref={ref}
+ className={cn(
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
+ className,
+ )}
+ {...props}
+ />
+));
+
+CommandGroup.displayName = CommandPrimitive.Group.displayName;
+
+const CommandSeparator = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive.Separator>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>
+>(({ className, ...props }, ref) => (
+ <CommandPrimitive.Separator ref={ref} className={cn("-mx-1 h-px bg-border", className)} {...props} />
+));
+CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
+
+const CommandItem = React.forwardRef<
+ React.ElementRef<typeof CommandPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>
+>(({ className, ...props }, ref) => (
+ <CommandPrimitive.Item
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",
+ className,
+ )}
+ {...props}
+ />
+));
+
+CommandItem.displayName = CommandPrimitive.Item.displayName;
+
+const CommandShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {
+ return <span className={cn("ml-auto text-xs tracking-widest text-muted-foreground", className)} {...props} />;
+};
+CommandShortcut.displayName = "CommandShortcut";
+
+export {
+ Command,
+ CommandDialog,
+ CommandInput,
+ CommandList,
+ CommandEmpty,
+ CommandGroup,
+ CommandItem,
+ CommandShortcut,
+ CommandSeparator,
+};
diff --git a/v3/goal_ui/src/components/ui/context-menu.tsx b/v3/goal_ui/src/components/ui/context-menu.tsx
new file mode 100644
index 0000000000..b5d9db065a
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/context-menu.tsx
@@ -0,0 +1,178 @@
+import * as React from "react";
+import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
+import { Check, ChevronRight, Circle } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const ContextMenu = ContextMenuPrimitive.Root;
+
+const ContextMenuTrigger = ContextMenuPrimitive.Trigger;
+
+const ContextMenuGroup = ContextMenuPrimitive.Group;
+
+const ContextMenuPortal = ContextMenuPrimitive.Portal;
+
+const ContextMenuSub = ContextMenuPrimitive.Sub;
+
+const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
+
+const ContextMenuSubTrigger = React.forwardRef<
+ React.ElementRef<typeof ContextMenuPrimitive.SubTrigger>,
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & {
+ inset?: boolean;
+ }
+>(({ className, inset, children, ...props }, ref) => (
+ <ContextMenuPrimitive.SubTrigger
+ ref={ref}
+ className={cn(
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
+ inset && "pl-8",
+ className,
+ )}
+ {...props}
+ >
+ {children}
+ <ChevronRight className="ml-auto h-4 w-4" />
+ </ContextMenuPrimitive.SubTrigger>
+));
+ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
+
+const ContextMenuSubContent = React.forwardRef<
+ React.ElementRef<typeof ContextMenuPrimitive.SubContent>,
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>
+>(({ className, ...props }, ref) => (
+ <ContextMenuPrimitive.SubContent
+ ref={ref}
+ className={cn(
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className,
+ )}
+ {...props}
+ />
+));
+ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
+
+const ContextMenuContent = React.forwardRef<
+ React.ElementRef<typeof ContextMenuPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>
+>(({ className, ...props }, ref) => (
+ <ContextMenuPrimitive.Portal>
+ <ContextMenuPrimitive.Content
+ ref={ref}
+ className={cn(
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className,
+ )}
+ {...props}
+ />
+ </ContextMenuPrimitive.Portal>
+));
+ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
+
+const ContextMenuItem = React.forwardRef<
+ React.ElementRef<typeof ContextMenuPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> & {
+ inset?: boolean;
+ }
+>(({ className, inset, ...props }, ref) => (
+ <ContextMenuPrimitive.Item
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
+ inset && "pl-8",
+ className,
+ )}
+ {...props}
+ />
+));
+ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
+
+const ContextMenuCheckboxItem = React.forwardRef<
+ React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>
+>(({ className, children, checked, ...props }, ref) => (
+ <ContextMenuPrimitive.CheckboxItem
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
+ className,
+ )}
+ checked={checked}
+ {...props}
+ >
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
+ <ContextMenuPrimitive.ItemIndicator>
+ <Check className="h-4 w-4" />
+ </ContextMenuPrimitive.ItemIndicator>
+ </span>
+ {children}
+ </ContextMenuPrimitive.CheckboxItem>
+));
+ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
+
+const ContextMenuRadioItem = React.forwardRef<
+ React.ElementRef<typeof ContextMenuPrimitive.RadioItem>,
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>
+>(({ className, children, ...props }, ref) => (
+ <ContextMenuPrimitive.RadioItem
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
+ className,
+ )}
+ {...props}
+ >
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
+ <ContextMenuPrimitive.ItemIndicator>
+ <Circle className="h-2 w-2 fill-current" />
+ </ContextMenuPrimitive.ItemIndicator>
+ </span>
+ {children}
+ </ContextMenuPrimitive.RadioItem>
+));
+ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
+
+const ContextMenuLabel = React.forwardRef<
+ React.ElementRef<typeof ContextMenuPrimitive.Label>,
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & {
+ inset?: boolean;
+ }
+>(({ className, inset, ...props }, ref) => (
+ <ContextMenuPrimitive.Label
+ ref={ref}
+ className={cn("px-2 py-1.5 text-sm font-semibold text-foreground", inset && "pl-8", className)}
+ {...props}
+ />
+));
+ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
+
+const ContextMenuSeparator = React.forwardRef<
+ React.ElementRef<typeof ContextMenuPrimitive.Separator>,
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>
+>(({ className, ...props }, ref) => (
+ <ContextMenuPrimitive.Separator ref={ref} className={cn("-mx-1 my-1 h-px bg-border", className)} {...props} />
+));
+ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
+
+const ContextMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {
+ return <span className={cn("ml-auto text-xs tracking-widest text-muted-foreground", className)} {...props} />;
+};
+ContextMenuShortcut.displayName = "ContextMenuShortcut";
+
+export {
+ ContextMenu,
+ ContextMenuTrigger,
+ ContextMenuContent,
+ ContextMenuItem,
+ ContextMenuCheckboxItem,
+ ContextMenuRadioItem,
+ ContextMenuLabel,
+ ContextMenuSeparator,
+ ContextMenuShortcut,
+ ContextMenuGroup,
+ ContextMenuPortal,
+ ContextMenuSub,
+ ContextMenuSubContent,
+ ContextMenuSubTrigger,
+ ContextMenuRadioGroup,
+};
diff --git a/v3/goal_ui/src/components/ui/dialog.tsx b/v3/goal_ui/src/components/ui/dialog.tsx
new file mode 100644
index 0000000000..8249e2f0a0
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/dialog.tsx
@@ -0,0 +1,95 @@
+import * as React from "react";
+import * as DialogPrimitive from "@radix-ui/react-dialog";
+import { X } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const Dialog = DialogPrimitive.Root;
+
+const DialogTrigger = DialogPrimitive.Trigger;
+
+const DialogPortal = DialogPrimitive.Portal;
+
+const DialogClose = DialogPrimitive.Close;
+
+const DialogOverlay = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Overlay>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Overlay
+ ref={ref}
+ className={cn(
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
+ className,
+ )}
+ {...props}
+ />
+));
+DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
+
+const DialogContent = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>
+>(({ className, children, ...props }, ref) => (
+ <DialogPortal>
+ <DialogOverlay />
+ <DialogPrimitive.Content
+ ref={ref}
+ className={cn(
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
+ className,
+ )}
+ {...props}
+ >
+ {children}
+ <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none">
+ <X className="h-4 w-4" />
+ <span className="sr-only">Close</span>
+ </DialogPrimitive.Close>
+ </DialogPrimitive.Content>
+ </DialogPortal>
+));
+DialogContent.displayName = DialogPrimitive.Content.displayName;
+
+const DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
+ <div className={cn("flex flex-col space-y-1.5 text-center sm:text-left", className)} {...props} />
+);
+DialogHeader.displayName = "DialogHeader";
+
+const DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
+ <div className={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)} {...props} />
+);
+DialogFooter.displayName = "DialogFooter";
+
+const DialogTitle = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Title>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Title
+ ref={ref}
+ className={cn("text-lg font-semibold leading-none tracking-tight", className)}
+ {...props}
+ />
+));
+DialogTitle.displayName = DialogPrimitive.Title.displayName;
+
+const DialogDescription = React.forwardRef<
+ React.ElementRef<typeof DialogPrimitive.Description>,
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
+>(({ className, ...props }, ref) => (
+ <DialogPrimitive.Description ref={ref} className={cn("text-sm text-muted-foreground", className)} {...props} />
+));
+DialogDescription.displayName = DialogPrimitive.Description.displayName;
+
+export {
+ Dialog,
+ DialogPortal,
+ DialogOverlay,
+ DialogClose,
+ DialogTrigger,
+ DialogContent,
+ DialogHeader,
+ DialogFooter,
+ DialogTitle,
+ DialogDescription,
+};
diff --git a/v3/goal_ui/src/components/ui/drawer.tsx b/v3/goal_ui/src/components/ui/drawer.tsx
new file mode 100644
index 0000000000..a2a435de93
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/drawer.tsx
@@ -0,0 +1,87 @@
+import * as React from "react";
+import { Drawer as DrawerPrimitive } from "vaul";
+
+import { cn } from "@/lib/utils";
+
+const Drawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (
+ <DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />
+);
+Drawer.displayName = "Drawer";
+
+const DrawerTrigger = DrawerPrimitive.Trigger;
+
+const DrawerPortal = DrawerPrimitive.Portal;
+
+const DrawerClose = DrawerPrimitive.Close;
+
+const DrawerOverlay = React.forwardRef<
+ React.ElementRef<typeof DrawerPrimitive.Overlay>,
+ React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>
+>(({ className, ...props }, ref) => (
+ <DrawerPrimitive.Overlay ref={ref} className={cn("fixed inset-0 z-50 bg-black/80", className)} {...props} />
+));
+DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
+
+const DrawerContent = React.forwardRef<
+ React.ElementRef<typeof DrawerPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>
+>(({ className, children, ...props }, ref) => (
+ <DrawerPortal>
+ <DrawerOverlay />
+ <DrawerPrimitive.Content
+ ref={ref}
+ className={cn(
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
+ className,
+ )}
+ {...props}
+ >
+ <div className="mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" />
+ {children}
+ </DrawerPrimitive.Content>
+ </DrawerPortal>
+));
+DrawerContent.displayName = "DrawerContent";
+
+const DrawerHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
+ <div className={cn("grid gap-1.5 p-4 text-center sm:text-left", className)} {...props} />
+);
+DrawerHeader.displayName = "DrawerHeader";
+
+const DrawerFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
+ <div className={cn("mt-auto flex flex-col gap-2 p-4", className)} {...props} />
+);
+DrawerFooter.displayName = "DrawerFooter";
+
+const DrawerTitle = React.forwardRef<
+ React.ElementRef<typeof DrawerPrimitive.Title>,
+ React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>
+>(({ className, ...props }, ref) => (
+ <DrawerPrimitive.Title
+ ref={ref}
+ className={cn("text-lg font-semibold leading-none tracking-tight", className)}
+ {...props}
+ />
+));
+DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
+
+const DrawerDescription = React.forwardRef<
+ React.ElementRef<typeof DrawerPrimitive.Description>,
+ React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>
+>(({ className, ...props }, ref) => (
+ <DrawerPrimitive.Description ref={ref} className={cn("text-sm text-muted-foreground", className)} {...props} />
+));
+DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
+
+export {
+ Drawer,
+ DrawerPortal,
+ DrawerOverlay,
+ DrawerTrigger,
+ DrawerClose,
+ DrawerContent,
+ DrawerHeader,
+ DrawerFooter,
+ DrawerTitle,
+ DrawerDescription,
+};
diff --git a/v3/goal_ui/src/components/ui/dropdown-menu.tsx b/v3/goal_ui/src/components/ui/dropdown-menu.tsx
new file mode 100644
index 0000000000..ddabcfdd60
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/dropdown-menu.tsx
@@ -0,0 +1,179 @@
+import * as React from "react";
+import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
+import { Check, ChevronRight, Circle } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const DropdownMenu = DropdownMenuPrimitive.Root;
+
+const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
+
+const DropdownMenuGroup = DropdownMenuPrimitive.Group;
+
+const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
+
+const DropdownMenuSub = DropdownMenuPrimitive.Sub;
+
+const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
+
+const DropdownMenuSubTrigger = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
+ inset?: boolean;
+ }
+>(({ className, inset, children, ...props }, ref) => (
+ <DropdownMenuPrimitive.SubTrigger
+ ref={ref}
+ className={cn(
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",
+ inset && "pl-8",
+ className,
+ )}
+ {...props}
+ >
+ {children}
+ <ChevronRight className="ml-auto h-4 w-4" />
+ </DropdownMenuPrimitive.SubTrigger>
+));
+DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
+
+const DropdownMenuSubContent = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>
+>(({ className, ...props }, ref) => (
+ <DropdownMenuPrimitive.SubContent
+ ref={ref}
+ className={cn(
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className,
+ )}
+ {...props}
+ />
+));
+DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
+
+const DropdownMenuContent = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>
+>(({ className, sideOffset = 4, ...props }, ref) => (
+ <DropdownMenuPrimitive.Portal>
+ <DropdownMenuPrimitive.Content
+ ref={ref}
+ sideOffset={sideOffset}
+ className={cn(
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className,
+ )}
+ {...props}
+ />
+ </DropdownMenuPrimitive.Portal>
+));
+DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
+
+const DropdownMenuItem = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
+ inset?: boolean;
+ }
+>(({ className, inset, ...props }, ref) => (
+ <DropdownMenuPrimitive.Item
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
+ inset && "pl-8",
+ className,
+ )}
+ {...props}
+ />
+));
+DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
+
+const DropdownMenuCheckboxItem = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>
+>(({ className, children, checked, ...props }, ref) => (
+ <DropdownMenuPrimitive.CheckboxItem
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
+ className,
+ )}
+ checked={checked}
+ {...props}
+ >
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
+ <DropdownMenuPrimitive.ItemIndicator>
+ <Check className="h-4 w-4" />
+ </DropdownMenuPrimitive.ItemIndicator>
+ </span>
+ {children}
+ </DropdownMenuPrimitive.CheckboxItem>
+));
+DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
+
+const DropdownMenuRadioItem = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>
+>(({ className, children, ...props }, ref) => (
+ <DropdownMenuPrimitive.RadioItem
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
+ className,
+ )}
+ {...props}
+ >
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
+ <DropdownMenuPrimitive.ItemIndicator>
+ <Circle className="h-2 w-2 fill-current" />
+ </DropdownMenuPrimitive.ItemIndicator>
+ </span>
+ {children}
+ </DropdownMenuPrimitive.RadioItem>
+));
+DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
+
+const DropdownMenuLabel = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.Label>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
+ inset?: boolean;
+ }
+>(({ className, inset, ...props }, ref) => (
+ <DropdownMenuPrimitive.Label
+ ref={ref}
+ className={cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className)}
+ {...props}
+ />
+));
+DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
+
+const DropdownMenuSeparator = React.forwardRef<
+ React.ElementRef<typeof DropdownMenuPrimitive.Separator>,
+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>
+>(({ className, ...props }, ref) => (
+ <DropdownMenuPrimitive.Separator ref={ref} className={cn("-mx-1 my-1 h-px bg-muted", className)} {...props} />
+));
+DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
+
+const DropdownMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {
+ return <span className={cn("ml-auto text-xs tracking-widest opacity-60", className)} {...props} />;
+};
+DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
+
+export {
+ DropdownMenu,
+ DropdownMenuTrigger,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuCheckboxItem,
+ DropdownMenuRadioItem,
+ DropdownMenuLabel,
+ DropdownMenuSeparator,
+ DropdownMenuShortcut,
+ DropdownMenuGroup,
+ DropdownMenuPortal,
+ DropdownMenuSub,
+ DropdownMenuSubContent,
+ DropdownMenuSubTrigger,
+ DropdownMenuRadioGroup,
+};
diff --git a/v3/goal_ui/src/components/ui/form.tsx b/v3/goal_ui/src/components/ui/form.tsx
new file mode 100644
index 0000000000..439029fcff
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/form.tsx
@@ -0,0 +1,129 @@
+import * as React from "react";
+import * as LabelPrimitive from "@radix-ui/react-label";
+import { Slot } from "@radix-ui/react-slot";
+import { Controller, ControllerProps, FieldPath, FieldValues, FormProvider, useFormContext } from "react-hook-form";
+
+import { cn } from "@/lib/utils";
+import { Label } from "@/components/ui/label";
+
+const Form = FormProvider;
+
+type FormFieldContextValue<
+ TFieldValues extends FieldValues = FieldValues,
+ TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
+> = {
+ name: TName;
+};
+
+const FormFieldContext = React.createContext<FormFieldContextValue>({} as FormFieldContextValue);
+
+const FormField = <
+ TFieldValues extends FieldValues = FieldValues,
+ TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
+>({
+ ...props
+}: ControllerProps<TFieldValues, TName>) => {
+ return (
+ <FormFieldContext.Provider value={{ name: props.name }}>
+ <Controller {...props} />
+ </FormFieldContext.Provider>
+ );
+};
+
+const useFormField = () => {
+ const fieldContext = React.useContext(FormFieldContext);
+ const itemContext = React.useContext(FormItemContext);
+ const { getFieldState, formState } = useFormContext();
+
+ const fieldState = getFieldState(fieldContext.name, formState);
+
+ if (!fieldContext) {
+ throw new Error("useFormField should be used within <FormField>");
+ }
+
+ const { id } = itemContext;
+
+ return {
+ id,
+ name: fieldContext.name,
+ formItemId: `${id}-form-item`,
+ formDescriptionId: `${id}-form-item-description`,
+ formMessageId: `${id}-form-item-message`,
+ ...fieldState,
+ };
+};
+
+type FormItemContextValue = {
+ id: string;
+};
+
+const FormItemContext = React.createContext<FormItemContextValue>({} as FormItemContextValue);
+
+const FormItem = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
+ ({ className, ...props }, ref) => {
+ const id = React.useId();
+
+ return (
+ <FormItemContext.Provider value={{ id }}>
+ <div ref={ref} className={cn("space-y-2", className)} {...props} />
+ </FormItemContext.Provider>
+ );
+ },
+);
+FormItem.displayName = "FormItem";
+
+const FormLabel = React.forwardRef<
+ React.ElementRef<typeof LabelPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>
+>(({ className, ...props }, ref) => {
+ const { error, formItemId } = useFormField();
+
+ return <Label ref={ref} className={cn(error && "text-destructive", className)} htmlFor={formItemId} {...props} />;
+});
+FormLabel.displayName = "FormLabel";
+
+const FormControl = React.forwardRef<React.ElementRef<typeof Slot>, React.ComponentPropsWithoutRef<typeof Slot>>(
+ ({ ...props }, ref) => {
+ const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
+
+ return (
+ <Slot
+ ref={ref}
+ id={formItemId}
+ aria-describedby={!error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`}
+ aria-invalid={!!error}
+ {...props}
+ />
+ );
+ },
+);
+FormControl.displayName = "FormControl";
+
+const FormDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(
+ ({ className, ...props }, ref) => {
+ const { formDescriptionId } = useFormField();
+
+ return <p ref={ref} id={formDescriptionId} className={cn("text-sm text-muted-foreground", className)} {...props} />;
+ },
+);
+FormDescription.displayName = "FormDescription";
+
+const FormMessage = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(
+ ({ className, children, ...props }, ref) => {
+ const { error, formMessageId } = useFormField();
+ const body = error ? String(error?.message) : children;
+
+ if (!body) {
+ return null;
+ }
+
+ return (
+ <p ref={ref} id={formMessageId} className={cn("text-sm font-medium text-destructive", className)} {...props}>
+ {body}
+ </p>
+ );
+ },
+);
+FormMessage.displayName = "FormMessage";
+
+export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField };
diff --git a/v3/goal_ui/src/components/ui/hover-card.tsx b/v3/goal_ui/src/components/ui/hover-card.tsx
new file mode 100644
index 0000000000..6ee6892d36
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/hover-card.tsx
@@ -0,0 +1,27 @@
+import * as React from "react";
+import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
+
+import { cn } from "@/lib/utils";
+
+const HoverCard = HoverCardPrimitive.Root;
+
+const HoverCardTrigger = HoverCardPrimitive.Trigger;
+
+const HoverCardContent = React.forwardRef<
+ React.ElementRef<typeof HoverCardPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>
+>(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
+ <HoverCardPrimitive.Content
+ ref={ref}
+ align={align}
+ sideOffset={sideOffset}
+ className={cn(
+ "z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className,
+ )}
+ {...props}
+ />
+));
+HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
+
+export { HoverCard, HoverCardTrigger, HoverCardContent };
diff --git a/v3/goal_ui/src/components/ui/input-otp.tsx b/v3/goal_ui/src/components/ui/input-otp.tsx
new file mode 100644
index 0000000000..0e3fa02c74
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/input-otp.tsx
@@ -0,0 +1,61 @@
+import * as React from "react";
+import { OTPInput, OTPInputContext } from "input-otp";
+import { Dot } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const InputOTP = React.forwardRef<React.ElementRef<typeof OTPInput>, React.ComponentPropsWithoutRef<typeof OTPInput>>(
+ ({ className, containerClassName, ...props }, ref) => (
+ <OTPInput
+ ref={ref}
+ containerClassName={cn("flex items-center gap-2 has-[:disabled]:opacity-50", containerClassName)}
+ className={cn("disabled:cursor-not-allowed", className)}
+ {...props}
+ />
+ ),
+);
+InputOTP.displayName = "InputOTP";
+
+const InputOTPGroup = React.forwardRef<React.ElementRef<"div">, React.ComponentPropsWithoutRef<"div">>(
+ ({ className, ...props }, ref) => <div ref={ref} className={cn("flex items-center", className)} {...props} />,
+);
+InputOTPGroup.displayName = "InputOTPGroup";
+
+const InputOTPSlot = React.forwardRef<
+ React.ElementRef<"div">,
+ React.ComponentPropsWithoutRef<"div"> & { index: number }
+>(({ index, className, ...props }, ref) => {
+ const inputOTPContext = React.useContext(OTPInputContext);
+ const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
+
+ return (
+ <div
+ ref={ref}
+ className={cn(
+ "relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
+ isActive && "z-10 ring-2 ring-ring ring-offset-background",
+ className,
+ )}
+ {...props}
+ >
+ {char}
+ {hasFakeCaret && (
+ <div className="pointer-events-none absolute inset-0 flex items-center justify-center">
+ <div className="animate-caret-blink h-4 w-px bg-foreground duration-1000" />
+ </div>
+ )}
+ </div>
+ );
+});
+InputOTPSlot.displayName = "InputOTPSlot";
+
+const InputOTPSeparator = React.forwardRef<React.ElementRef<"div">, React.ComponentPropsWithoutRef<"div">>(
+ ({ ...props }, ref) => (
+ <div ref={ref} role="separator" {...props}>
+ <Dot />
+ </div>
+ ),
+);
+InputOTPSeparator.displayName = "InputOTPSeparator";
+
+export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
diff --git a/v3/goal_ui/src/components/ui/input.tsx b/v3/goal_ui/src/components/ui/input.tsx
new file mode 100644
index 0000000000..09700f605e
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/input.tsx
@@ -0,0 +1,22 @@
+import * as React from "react";
+
+import { cn } from "@/lib/utils";
+
+const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
+ ({ className, type, ...props }, ref) => {
+ return (
+ <input
+ type={type}
+ className={cn(
+ "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
+ className,
+ )}
+ ref={ref}
+ {...props}
+ />
+ );
+ },
+);
+Input.displayName = "Input";
+
+export { Input };
diff --git a/v3/goal_ui/src/components/ui/label.tsx b/v3/goal_ui/src/components/ui/label.tsx
new file mode 100644
index 0000000000..80e30eec8d
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/label.tsx
@@ -0,0 +1,17 @@
+import * as React from "react";
+import * as LabelPrimitive from "@radix-ui/react-label";
+import { cva, type VariantProps } from "class-variance-authority";
+
+import { cn } from "@/lib/utils";
+
+const labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
+
+const Label = React.forwardRef<
+ React.ElementRef<typeof LabelPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>
+>(({ className, ...props }, ref) => (
+ <LabelPrimitive.Root ref={ref} className={cn(labelVariants(), className)} {...props} />
+));
+Label.displayName = LabelPrimitive.Root.displayName;
+
+export { Label };
diff --git a/v3/goal_ui/src/components/ui/menubar.tsx b/v3/goal_ui/src/components/ui/menubar.tsx
new file mode 100644
index 0000000000..15687e4c92
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/menubar.tsx
@@ -0,0 +1,207 @@
+import * as React from "react";
+import * as MenubarPrimitive from "@radix-ui/react-menubar";
+import { Check, ChevronRight, Circle } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const MenubarMenu = MenubarPrimitive.Menu;
+
+const MenubarGroup = MenubarPrimitive.Group;
+
+const MenubarPortal = MenubarPrimitive.Portal;
+
+const MenubarSub = MenubarPrimitive.Sub;
+
+const MenubarRadioGroup = MenubarPrimitive.RadioGroup;
+
+const Menubar = React.forwardRef<
+ React.ElementRef<typeof MenubarPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Root>
+>(({ className, ...props }, ref) => (
+ <MenubarPrimitive.Root
+ ref={ref}
+ className={cn("flex h-10 items-center space-x-1 rounded-md border bg-background p-1", className)}
+ {...props}
+ />
+));
+Menubar.displayName = MenubarPrimitive.Root.displayName;
+
+const MenubarTrigger = React.forwardRef<
+ React.ElementRef<typeof MenubarPrimitive.Trigger>,
+ React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Trigger>
+>(({ className, ...props }, ref) => (
+ <MenubarPrimitive.Trigger
+ ref={ref}
+ className={cn(
+ "flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
+ className,
+ )}
+ {...props}
+ />
+));
+MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
+
+const MenubarSubTrigger = React.forwardRef<
+ React.ElementRef<typeof MenubarPrimitive.SubTrigger>,
+ React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubTrigger> & {
+ inset?: boolean;
+ }
+>(({ className, inset, children, ...props }, ref) => (
+ <MenubarPrimitive.SubTrigger
+ ref={ref}
+ className={cn(
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
+ inset && "pl-8",
+ className,
+ )}
+ {...props}
+ >
+ {children}
+ <ChevronRight className="ml-auto h-4 w-4" />
+ </MenubarPrimitive.SubTrigger>
+));
+MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
+
+const MenubarSubContent = React.forwardRef<
+ React.ElementRef<typeof MenubarPrimitive.SubContent>,
+ React.ComponentPropsWithoutRef<typeof MenubarPrimitive.SubContent>
+>(({ className, ...props }, ref) => (
+ <MenubarPrimitive.SubContent
+ ref={ref}
+ className={cn(
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className,
+ )}
+ {...props}
+ />
+));
+MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
+
+const MenubarContent = React.forwardRef<
+ React.ElementRef<typeof MenubarPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Content>
+>(({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => (
+ <MenubarPrimitive.Portal>
+ <MenubarPrimitive.Content
+ ref={ref}
+ align={align}
+ alignOffset={alignOffset}
+ sideOffset={sideOffset}
+ className={cn(
+ "z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className,
+ )}
+ {...props}
+ />
+ </MenubarPrimitive.Portal>
+));
+MenubarContent.displayName = MenubarPrimitive.Content.displayName;
+
+const MenubarItem = React.forwardRef<
+ React.ElementRef<typeof MenubarPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> & {
+ inset?: boolean;
+ }
+>(({ className, inset, ...props }, ref) => (
+ <MenubarPrimitive.Item
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
+ inset && "pl-8",
+ className,
+ )}
+ {...props}
+ />
+));
+MenubarItem.displayName = MenubarPrimitive.Item.displayName;
+
+const MenubarCheckboxItem = React.forwardRef<
+ React.ElementRef<typeof MenubarPrimitive.CheckboxItem>,
+ React.ComponentPropsWithoutRef<typeof MenubarPrimitive.CheckboxItem>
+>(({ className, children, checked, ...props }, ref) => (
+ <MenubarPrimitive.CheckboxItem
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
+ className,
+ )}
+ checked={checked}
+ {...props}
+ >
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
+ <MenubarPrimitive.ItemIndicator>
+ <Check className="h-4 w-4" />
+ </MenubarPrimitive.ItemIndicator>
+ </span>
+ {children}
+ </MenubarPrimitive.CheckboxItem>
+));
+MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
+
+const MenubarRadioItem = React.forwardRef<
+ React.ElementRef<typeof MenubarPrimitive.RadioItem>,
+ React.ComponentPropsWithoutRef<typeof MenubarPrimitive.RadioItem>
+>(({ className, children, ...props }, ref) => (
+ <MenubarPrimitive.RadioItem
+ ref={ref}
+ className={cn(
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
+ className,
+ )}
+ {...props}
+ >
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
+ <MenubarPrimitive.ItemIndicator>
+ <Circle className="h-2 w-2 fill-current" />
+ </MenubarPrimitive.ItemIndicator>
+ </span>
+ {children}
+ </MenubarPrimitive.RadioItem>
+));
+MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
+
+const MenubarLabel = React.forwardRef<
+ React.ElementRef<typeof MenubarPrimitive.Label>,
+ React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Label> & {
+ inset?: boolean;
+ }
+>(({ className, inset, ...props }, ref) => (
+ <MenubarPrimitive.Label
+ ref={ref}
+ className={cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className)}
+ {...props}
+ />
+));
+MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
+
+const MenubarSeparator = React.forwardRef<
+ React.ElementRef<typeof MenubarPrimitive.Separator>,
+ React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Separator>
+>(({ className, ...props }, ref) => (
+ <MenubarPrimitive.Separator ref={ref} className={cn("-mx-1 my-1 h-px bg-muted", className)} {...props} />
+));
+MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
+
+const MenubarShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {
+ return <span className={cn("ml-auto text-xs tracking-widest text-muted-foreground", className)} {...props} />;
+};
+MenubarShortcut.displayname = "MenubarShortcut";
+
+export {
+ Menubar,
+ MenubarMenu,
+ MenubarTrigger,
+ MenubarContent,
+ MenubarItem,
+ MenubarSeparator,
+ MenubarLabel,
+ MenubarCheckboxItem,
+ MenubarRadioGroup,
+ MenubarRadioItem,
+ MenubarPortal,
+ MenubarSubContent,
+ MenubarSubTrigger,
+ MenubarGroup,
+ MenubarSub,
+ MenubarShortcut,
+};
diff --git a/v3/goal_ui/src/components/ui/navigation-menu.tsx b/v3/goal_ui/src/components/ui/navigation-menu.tsx
new file mode 100644
index 0000000000..c9fcd7adf7
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/navigation-menu.tsx
@@ -0,0 +1,120 @@
+import * as React from "react";
+import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
+import { cva } from "class-variance-authority";
+import { ChevronDown } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const NavigationMenu = React.forwardRef<
+ React.ElementRef<typeof NavigationMenuPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>
+>(({ className, children, ...props }, ref) => (
+ <NavigationMenuPrimitive.Root
+ ref={ref}
+ className={cn("relative z-10 flex max-w-max flex-1 items-center justify-center", className)}
+ {...props}
+ >
+ {children}
+ <NavigationMenuViewport />
+ </NavigationMenuPrimitive.Root>
+));
+NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
+
+const NavigationMenuList = React.forwardRef<
+ React.ElementRef<typeof NavigationMenuPrimitive.List>,
+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>
+>(({ className, ...props }, ref) => (
+ <NavigationMenuPrimitive.List
+ ref={ref}
+ className={cn("group flex flex-1 list-none items-center justify-center space-x-1", className)}
+ {...props}
+ />
+));
+NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
+
+const NavigationMenuItem = NavigationMenuPrimitive.Item;
+
+const navigationMenuTriggerStyle = cva(
+ "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50",
+);
+
+const NavigationMenuTrigger = React.forwardRef<
+ React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,
+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>
+>(({ className, children, ...props }, ref) => (
+ <NavigationMenuPrimitive.Trigger
+ ref={ref}
+ className={cn(navigationMenuTriggerStyle(), "group", className)}
+ {...props}
+ >
+ {children}{" "}
+ <ChevronDown
+ className="relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180"
+ aria-hidden="true"
+ />
+ </NavigationMenuPrimitive.Trigger>
+));
+NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
+
+const NavigationMenuContent = React.forwardRef<
+ React.ElementRef<typeof NavigationMenuPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>
+>(({ className, ...props }, ref) => (
+ <NavigationMenuPrimitive.Content
+ ref={ref}
+ className={cn(
+ "left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",
+ className,
+ )}
+ {...props}
+ />
+));
+NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
+
+const NavigationMenuLink = NavigationMenuPrimitive.Link;
+
+const NavigationMenuViewport = React.forwardRef<
+ React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,
+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>
+>(({ className, ...props }, ref) => (
+ <div className={cn("absolute left-0 top-full flex justify-center")}>
+ <NavigationMenuPrimitive.Viewport
+ className={cn(
+ "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
+ className,
+ )}
+ ref={ref}
+ {...props}
+ />
+ </div>
+));
+NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
+
+const NavigationMenuIndicator = React.forwardRef<
+ React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,
+ React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>
+>(({ className, ...props }, ref) => (
+ <NavigationMenuPrimitive.Indicator
+ ref={ref}
+ className={cn(
+ "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
+ className,
+ )}
+ {...props}
+ >
+ <div className="relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" />
+ </NavigationMenuPrimitive.Indicator>
+));
+NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
+
+export {
+ navigationMenuTriggerStyle,
+ NavigationMenu,
+ NavigationMenuList,
+ NavigationMenuItem,
+ NavigationMenuContent,
+ NavigationMenuTrigger,
+ NavigationMenuLink,
+ NavigationMenuIndicator,
+ NavigationMenuViewport,
+};
diff --git a/v3/goal_ui/src/components/ui/pagination.tsx b/v3/goal_ui/src/components/ui/pagination.tsx
new file mode 100644
index 0000000000..31ae1be10e
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/pagination.tsx
@@ -0,0 +1,81 @@
+import * as React from "react";
+import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+import { ButtonProps, buttonVariants } from "@/components/ui/button";
+
+const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => (
+ <nav
+ role="navigation"
+ aria-label="pagination"
+ className={cn("mx-auto flex w-full justify-center", className)}
+ {...props}
+ />
+);
+Pagination.displayName = "Pagination";
+
+const PaginationContent = React.forwardRef<HTMLUListElement, React.ComponentProps<"ul">>(
+ ({ className, ...props }, ref) => (
+ <ul ref={ref} className={cn("flex flex-row items-center gap-1", className)} {...props} />
+ ),
+);
+PaginationContent.displayName = "PaginationContent";
+
+const PaginationItem = React.forwardRef<HTMLLIElement, React.ComponentProps<"li">>(({ className, ...props }, ref) => (
+ <li ref={ref} className={cn("", className)} {...props} />
+));
+PaginationItem.displayName = "PaginationItem";
+
+type PaginationLinkProps = {
+ isActive?: boolean;
+} & Pick<ButtonProps, "size"> &
+ React.ComponentProps<"a">;
+
+const PaginationLink = ({ className, isActive, size = "icon", ...props }: PaginationLinkProps) => (
+ <a
+ aria-current={isActive ? "page" : undefined}
+ className={cn(
+ buttonVariants({
+ variant: isActive ? "outline" : "ghost",
+ size,
+ }),
+ className,
+ )}
+ {...props}
+ />
+);
+PaginationLink.displayName = "PaginationLink";
+
+const PaginationPrevious = ({ className, ...props }: React.ComponentProps<typeof PaginationLink>) => (
+ <PaginationLink aria-label="Go to previous page" size="default" className={cn("gap-1 pl-2.5", className)} {...props}>
+ <ChevronLeft className="h-4 w-4" />
+ <span>Previous</span>
+ </PaginationLink>
+);
+PaginationPrevious.displayName = "PaginationPrevious";
+
+const PaginationNext = ({ className, ...props }: React.ComponentProps<typeof PaginationLink>) => (
+ <PaginationLink aria-label="Go to next page" size="default" className={cn("gap-1 pr-2.5", className)} {...props}>
+ <span>Next</span>
+ <ChevronRight className="h-4 w-4" />
+ </PaginationLink>
+);
+PaginationNext.displayName = "PaginationNext";
+
+const PaginationEllipsis = ({ className, ...props }: React.ComponentProps<"span">) => (
+ <span aria-hidden className={cn("flex h-9 w-9 items-center justify-center", className)} {...props}>
+ <MoreHorizontal className="h-4 w-4" />
+ <span className="sr-only">More pages</span>
+ </span>
+);
+PaginationEllipsis.displayName = "PaginationEllipsis";
+
+export {
+ Pagination,
+ PaginationContent,
+ PaginationEllipsis,
+ PaginationItem,
+ PaginationLink,
+ PaginationNext,
+ PaginationPrevious,
+};
diff --git a/v3/goal_ui/src/components/ui/popover.tsx b/v3/goal_ui/src/components/ui/popover.tsx
new file mode 100644
index 0000000000..59dd5252e9
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/popover.tsx
@@ -0,0 +1,29 @@
+import * as React from "react";
+import * as PopoverPrimitive from "@radix-ui/react-popover";
+
+import { cn } from "@/lib/utils";
+
+const Popover = PopoverPrimitive.Root;
+
+const PopoverTrigger = PopoverPrimitive.Trigger;
+
+const PopoverContent = React.forwardRef<
+ React.ElementRef<typeof PopoverPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>
+>(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
+ <PopoverPrimitive.Portal>
+ <PopoverPrimitive.Content
+ ref={ref}
+ align={align}
+ sideOffset={sideOffset}
+ className={cn(
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className,
+ )}
+ {...props}
+ />
+ </PopoverPrimitive.Portal>
+));
+PopoverContent.displayName = PopoverPrimitive.Content.displayName;
+
+export { Popover, PopoverTrigger, PopoverContent };
diff --git a/v3/goal_ui/src/components/ui/progress.tsx b/v3/goal_ui/src/components/ui/progress.tsx
new file mode 100644
index 0000000000..f9f131e9b5
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/progress.tsx
@@ -0,0 +1,23 @@
+import * as React from "react";
+import * as ProgressPrimitive from "@radix-ui/react-progress";
+
+import { cn } from "@/lib/utils";
+
+const Progress = React.forwardRef<
+ React.ElementRef<typeof ProgressPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>
+>(({ className, value, ...props }, ref) => (
+ <ProgressPrimitive.Root
+ ref={ref}
+ className={cn("relative h-4 w-full overflow-hidden rounded-full bg-secondary", className)}
+ {...props}
+ >
+ <ProgressPrimitive.Indicator
+ className="h-full w-full flex-1 bg-primary transition-all"
+ style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
+ />
+ </ProgressPrimitive.Root>
+));
+Progress.displayName = ProgressPrimitive.Root.displayName;
+
+export { Progress };
diff --git a/v3/goal_ui/src/components/ui/radio-group.tsx b/v3/goal_ui/src/components/ui/radio-group.tsx
new file mode 100644
index 0000000000..5d32e58a4e
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/radio-group.tsx
@@ -0,0 +1,36 @@
+import * as React from "react";
+import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
+import { Circle } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const RadioGroup = React.forwardRef<
+ React.ElementRef<typeof RadioGroupPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>
+>(({ className, ...props }, ref) => {
+ return <RadioGroupPrimitive.Root className={cn("grid gap-2", className)} {...props} ref={ref} />;
+});
+RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
+
+const RadioGroupItem = React.forwardRef<
+ React.ElementRef<typeof RadioGroupPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>
+>(({ className, ...props }, ref) => {
+ return (
+ <RadioGroupPrimitive.Item
+ ref={ref}
+ className={cn(
+ "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
+ className,
+ )}
+ {...props}
+ >
+ <RadioGroupPrimitive.Indicator className="flex items-center justify-center">
+ <Circle className="h-2.5 w-2.5 fill-current text-current" />
+ </RadioGroupPrimitive.Indicator>
+ </RadioGroupPrimitive.Item>
+ );
+});
+RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
+
+export { RadioGroup, RadioGroupItem };
diff --git a/v3/goal_ui/src/components/ui/resizable.tsx b/v3/goal_ui/src/components/ui/resizable.tsx
new file mode 100644
index 0000000000..4a1bd8c87e
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/resizable.tsx
@@ -0,0 +1,37 @@
+import { GripVertical } from "lucide-react";
+import * as ResizablePrimitive from "react-resizable-panels";
+
+import { cn } from "@/lib/utils";
+
+const ResizablePanelGroup = ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => (
+ <ResizablePrimitive.PanelGroup
+ className={cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className)}
+ {...props}
+ />
+);
+
+const ResizablePanel = ResizablePrimitive.Panel;
+
+const ResizableHandle = ({
+ withHandle,
+ className,
+ ...props
+}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
+ withHandle?: boolean;
+}) => (
+ <ResizablePrimitive.PanelResizeHandle
+ className={cn(
+ "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 [&[data-panel-group-direction=vertical]>div]:rotate-90",
+ className,
+ )}
+ {...props}
+ >
+ {withHandle && (
+ <div className="z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border">
+ <GripVertical className="h-2.5 w-2.5" />
+ </div>
+ )}
+ </ResizablePrimitive.PanelResizeHandle>
+);
+
+export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
diff --git a/v3/goal_ui/src/components/ui/scroll-area.tsx b/v3/goal_ui/src/components/ui/scroll-area.tsx
new file mode 100644
index 0000000000..8d29b27e58
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/scroll-area.tsx
@@ -0,0 +1,38 @@
+import * as React from "react";
+import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
+
+import { cn } from "@/lib/utils";
+
+const ScrollArea = React.forwardRef<
+ React.ElementRef<typeof ScrollAreaPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
+>(({ className, children, ...props }, ref) => (
+ <ScrollAreaPrimitive.Root ref={ref} className={cn("relative overflow-hidden", className)} {...props}>
+ <ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">{children}</ScrollAreaPrimitive.Viewport>
+ <ScrollBar />
+ <ScrollAreaPrimitive.Corner />
+ </ScrollAreaPrimitive.Root>
+));
+ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
+
+const ScrollBar = React.forwardRef<
+ React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
+ React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>
+>(({ className, orientation = "vertical", ...props }, ref) => (
+ <ScrollAreaPrimitive.ScrollAreaScrollbar
+ ref={ref}
+ orientation={orientation}
+ className={cn(
+ "flex touch-none select-none transition-colors",
+ orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
+ orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
+ className,
+ )}
+ {...props}
+ >
+ <ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />
+ </ScrollAreaPrimitive.ScrollAreaScrollbar>
+));
+ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
+
+export { ScrollArea, ScrollBar };
diff --git a/v3/goal_ui/src/components/ui/select.tsx b/v3/goal_ui/src/components/ui/select.tsx
new file mode 100644
index 0000000000..6f2525465b
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/select.tsx
@@ -0,0 +1,143 @@
+import * as React from "react";
+import * as SelectPrimitive from "@radix-ui/react-select";
+import { Check, ChevronDown, ChevronUp } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const Select = SelectPrimitive.Root;
+
+const SelectGroup = SelectPrimitive.Group;
+
+const SelectValue = SelectPrimitive.Value;
+
+const SelectTrigger = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Trigger>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
+>(({ className, children, ...props }, ref) => (
+ <SelectPrimitive.Trigger
+ ref={ref}
+ className={cn(
+ "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
+ className,
+ )}
+ {...props}
+ >
+ {children}
+ <SelectPrimitive.Icon asChild>
+ <ChevronDown className="h-4 w-4 opacity-50" />
+ </SelectPrimitive.Icon>
+ </SelectPrimitive.Trigger>
+));
+SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
+
+const SelectScrollUpButton = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.ScrollUpButton
+ ref={ref}
+ className={cn("flex cursor-default items-center justify-center py-1", className)}
+ {...props}
+ >
+ <ChevronUp className="h-4 w-4" />
+ </SelectPrimitive.ScrollUpButton>
+));
+SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
+
+const SelectScrollDownButton = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.ScrollDownButton
+ ref={ref}
+ className={cn("flex cursor-default items-center justify-center py-1", className)}
+ {...props}
+ >
+ <ChevronDown className="h-4 w-4" />
+ </SelectPrimitive.ScrollDownButton>
+));
+SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
+
+const SelectContent = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
+>(({ className, children, position = "popper", ...props }, ref) => (
+ <SelectPrimitive.Portal>
+ <SelectPrimitive.Content
+ ref={ref}
+ className={cn(
+ "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ position === "popper" &&
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
+ className,
+ )}
+ position={position}
+ {...props}
+ >
+ <SelectScrollUpButton />
+ <SelectPrimitive.Viewport
+ className={cn(
+ "p-1",
+ position === "popper" &&
+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]",
+ )}
+ >
+ {children}
+ </SelectPrimitive.Viewport>
+ <SelectScrollDownButton />
+ </SelectPrimitive.Content>
+ </SelectPrimitive.Portal>
+));
+SelectContent.displayName = SelectPrimitive.Content.displayName;
+
+const SelectLabel = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Label>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.Label ref={ref} className={cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className)} {...props} />
+));
+SelectLabel.displayName = SelectPrimitive.Label.displayName;
+
+const SelectItem = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
+>(({ className, children, ...props }, ref) => (
+ <SelectPrimitive.Item
+ ref={ref}
+ className={cn(
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
+ className,
+ )}
+ {...props}
+ >
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
+ <SelectPrimitive.ItemIndicator>
+ <Check className="h-4 w-4" />
+ </SelectPrimitive.ItemIndicator>
+ </span>
+
+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
+ </SelectPrimitive.Item>
+));
+SelectItem.displayName = SelectPrimitive.Item.displayName;
+
+const SelectSeparator = React.forwardRef<
+ React.ElementRef<typeof SelectPrimitive.Separator>,
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
+>(({ className, ...props }, ref) => (
+ <SelectPrimitive.Separator ref={ref} className={cn("-mx-1 my-1 h-px bg-muted", className)} {...props} />
+));
+SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
+
+export {
+ Select,
+ SelectGroup,
+ SelectValue,
+ SelectTrigger,
+ SelectContent,
+ SelectLabel,
+ SelectItem,
+ SelectSeparator,
+ SelectScrollUpButton,
+ SelectScrollDownButton,
+};
diff --git a/v3/goal_ui/src/components/ui/separator.tsx b/v3/goal_ui/src/components/ui/separator.tsx
new file mode 100644
index 0000000000..e20c3f4c40
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/separator.tsx
@@ -0,0 +1,20 @@
+import * as React from "react";
+import * as SeparatorPrimitive from "@radix-ui/react-separator";
+
+import { cn } from "@/lib/utils";
+
+const Separator = React.forwardRef<
+ React.ElementRef<typeof SeparatorPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
+>(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => (
+ <SeparatorPrimitive.Root
+ ref={ref}
+ decorative={decorative}
+ orientation={orientation}
+ className={cn("shrink-0 bg-border", orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", className)}
+ {...props}
+ />
+));
+Separator.displayName = SeparatorPrimitive.Root.displayName;
+
+export { Separator };
diff --git a/v3/goal_ui/src/components/ui/sheet.tsx b/v3/goal_ui/src/components/ui/sheet.tsx
new file mode 100644
index 0000000000..c414714b3e
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/sheet.tsx
@@ -0,0 +1,107 @@
+import * as SheetPrimitive from "@radix-ui/react-dialog";
+import { cva, type VariantProps } from "class-variance-authority";
+import { X } from "lucide-react";
+import * as React from "react";
+
+import { cn } from "@/lib/utils";
+
+const Sheet = SheetPrimitive.Root;
+
+const SheetTrigger = SheetPrimitive.Trigger;
+
+const SheetClose = SheetPrimitive.Close;
+
+const SheetPortal = SheetPrimitive.Portal;
+
+const SheetOverlay = React.forwardRef<
+ React.ElementRef<typeof SheetPrimitive.Overlay>,
+ React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>
+>(({ className, ...props }, ref) => (
+ <SheetPrimitive.Overlay
+ className={cn(
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
+ className,
+ )}
+ {...props}
+ ref={ref}
+ />
+));
+SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
+
+const sheetVariants = cva(
+ "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
+ {
+ variants: {
+ side: {
+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
+ bottom:
+ "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
+ right:
+ "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
+ },
+ },
+ defaultVariants: {
+ side: "right",
+ },
+ },
+);
+
+interface SheetContentProps
+ extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
+ VariantProps<typeof sheetVariants> {}
+
+const SheetContent = React.forwardRef<React.ElementRef<typeof SheetPrimitive.Content>, SheetContentProps>(
+ ({ side = "right", className, children, ...props }, ref) => (
+ <SheetPortal>
+ <SheetOverlay />
+ <SheetPrimitive.Content ref={ref} className={cn(sheetVariants({ side }), className)} {...props}>
+ {children}
+ <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none">
+ <X className="h-4 w-4" />
+ <span className="sr-only">Close</span>
+ </SheetPrimitive.Close>
+ </SheetPrimitive.Content>
+ </SheetPortal>
+ ),
+);
+SheetContent.displayName = SheetPrimitive.Content.displayName;
+
+const SheetHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
+ <div className={cn("flex flex-col space-y-2 text-center sm:text-left", className)} {...props} />
+);
+SheetHeader.displayName = "SheetHeader";
+
+const SheetFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
+ <div className={cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className)} {...props} />
+);
+SheetFooter.displayName = "SheetFooter";
+
+const SheetTitle = React.forwardRef<
+ React.ElementRef<typeof SheetPrimitive.Title>,
+ React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>
+>(({ className, ...props }, ref) => (
+ <SheetPrimitive.Title ref={ref} className={cn("text-lg font-semibold text-foreground", className)} {...props} />
+));
+SheetTitle.displayName = SheetPrimitive.Title.displayName;
+
+const SheetDescription = React.forwardRef<
+ React.ElementRef<typeof SheetPrimitive.Description>,
+ React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>
+>(({ className, ...props }, ref) => (
+ <SheetPrimitive.Description ref={ref} className={cn("text-sm text-muted-foreground", className)} {...props} />
+));
+SheetDescription.displayName = SheetPrimitive.Description.displayName;
+
+export {
+ Sheet,
+ SheetClose,
+ SheetContent,
+ SheetDescription,
+ SheetFooter,
+ SheetHeader,
+ SheetOverlay,
+ SheetPortal,
+ SheetTitle,
+ SheetTrigger,
+};
diff --git a/v3/goal_ui/src/components/ui/sidebar.tsx b/v3/goal_ui/src/components/ui/sidebar.tsx
new file mode 100644
index 0000000000..beb1a591fc
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/sidebar.tsx
@@ -0,0 +1,637 @@
+import * as React from "react";
+import { Slot } from "@radix-ui/react-slot";
+import { VariantProps, cva } from "class-variance-authority";
+import { PanelLeft } from "lucide-react";
+
+import { useIsMobile } from "@/hooks/use-mobile";
+import { cn } from "@/lib/utils";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { Separator } from "@/components/ui/separator";
+import { Sheet, SheetContent } from "@/components/ui/sheet";
+import { Skeleton } from "@/components/ui/skeleton";
+import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
+
+const SIDEBAR_COOKIE_NAME = "sidebar:state";
+const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
+const SIDEBAR_WIDTH = "16rem";
+const SIDEBAR_WIDTH_MOBILE = "18rem";
+const SIDEBAR_WIDTH_ICON = "3rem";
+const SIDEBAR_KEYBOARD_SHORTCUT = "b";
+
+type SidebarContext = {
+ state: "expanded" | "collapsed";
+ open: boolean;
+ setOpen: (open: boolean) => void;
+ openMobile: boolean;
+ setOpenMobile: (open: boolean) => void;
+ isMobile: boolean;
+ toggleSidebar: () => void;
+};
+
+const SidebarContext = React.createContext<SidebarContext | null>(null);
+
+function useSidebar() {
+ const context = React.useContext(SidebarContext);
+ if (!context) {
+ throw new Error("useSidebar must be used within a SidebarProvider.");
+ }
+
+ return context;
+}
+
+const SidebarProvider = React.forwardRef<
+ HTMLDivElement,
+ React.ComponentProps<"div"> & {
+ defaultOpen?: boolean;
+ open?: boolean;
+ onOpenChange?: (open: boolean) => void;
+ }
+>(({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }, ref) => {
+ const isMobile = useIsMobile();
+ const [openMobile, setOpenMobile] = React.useState(false);
+
+ // This is the internal state of the sidebar.
+ // We use openProp and setOpenProp for control from outside the component.
+ const [_open, _setOpen] = React.useState(defaultOpen);
+ const open = openProp ?? _open;
+ const setOpen = React.useCallback(
+ (value: boolean | ((value: boolean) => boolean)) => {
+ const openState = typeof value === "function" ? value(open) : value;
+ if (setOpenProp) {
+ setOpenProp(openState);
+ } else {
+ _setOpen(openState);
+ }
+
+ // This sets the cookie to keep the sidebar state.
+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
+ },
+ [setOpenProp, open],
+ );
+
+ // Helper to toggle the sidebar.
+ const toggleSidebar = React.useCallback(() => {
+ return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);
+ }, [isMobile, setOpen, setOpenMobile]);
+
+ // Adds a keyboard shortcut to toggle the sidebar.
+ React.useEffect(() => {
+ const handleKeyDown = (event: KeyboardEvent) => {
+ if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
+ event.preventDefault();
+ toggleSidebar();
+ }
+ };
+
+ window.addEventListener("keydown", handleKeyDown);
+ return () => window.removeEventListener("keydown", handleKeyDown);
+ }, [toggleSidebar]);
+
+ // We add a state so that we can do data-state="expanded" or "collapsed".
+ // This makes it easier to style the sidebar with Tailwind classes.
+ const state = open ? "expanded" : "collapsed";
+
+ const contextValue = React.useMemo<SidebarContext>(
+ () => ({
+ state,
+ open,
+ setOpen,
+ isMobile,
+ openMobile,
+ setOpenMobile,
+ toggleSidebar,
+ }),
+ [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar],
+ );
+
+ return (
+ <SidebarContext.Provider value={contextValue}>
+ <TooltipProvider delayDuration={0}>
+ <div
+ style={
+ {
+ "--sidebar-width": SIDEBAR_WIDTH,
+ "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
+ ...style,
+ } as React.CSSProperties
+ }
+ className={cn("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar", className)}
+ ref={ref}
+ {...props}
+ >
+ {children}
+ </div>
+ </TooltipProvider>
+ </SidebarContext.Provider>
+ );
+});
+SidebarProvider.displayName = "SidebarProvider";
+
+const Sidebar = React.forwardRef<
+ HTMLDivElement,
+ React.ComponentProps<"div"> & {
+ side?: "left" | "right";
+ variant?: "sidebar" | "floating" | "inset";
+ collapsible?: "offcanvas" | "icon" | "none";
+ }
+>(({ side = "left", variant = "sidebar", collapsible = "offcanvas", className, children, ...props }, ref) => {
+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
+
+ if (collapsible === "none") {
+ return (
+ <div
+ className={cn("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground", className)}
+ ref={ref}
+ {...props}
+ >
+ {children}
+ </div>
+ );
+ }
+
+ if (isMobile) {
+ return (
+ <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>
+ <SheetContent
+ data-sidebar="sidebar"
+ data-mobile="true"
+ className="w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"
+ style={
+ {
+ "--sidebar-width": SIDEBAR_WIDTH_MOBILE,
+ } as React.CSSProperties
+ }
+ side={side}
+ >
+ <div className="flex h-full w-full flex-col">{children}</div>
+ </SheetContent>
+ </Sheet>
+ );
+ }
+
+ return (
+ <div
+ ref={ref}
+ className="group peer hidden text-sidebar-foreground md:block"
+ data-state={state}
+ data-collapsible={state === "collapsed" ? collapsible : ""}
+ data-variant={variant}
+ data-side={side}
+ >
+ {/* This is what handles the sidebar gap on desktop */}
+ <div
+ className={cn(
+ "relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear",
+ "group-data-[collapsible=offcanvas]:w-0",
+ "group-data-[side=right]:rotate-180",
+ variant === "floating" || variant === "inset"
+ ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]"
+ : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]",
+ )}
+ />
+ <div
+ className={cn(
+ "fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",
+ side === "left"
+ ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
+ : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
+ // Adjust the padding for floating and inset variants.
+ variant === "floating" || variant === "inset"
+ ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]"
+ : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
+ className,
+ )}
+ {...props}
+ >
+ <div
+ data-sidebar="sidebar"
+ className="flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow"
+ >
+ {children}
+ </div>
+ </div>
+ </div>
+ );
+});
+Sidebar.displayName = "Sidebar";
+
+const SidebarTrigger = React.forwardRef<React.ElementRef<typeof Button>, React.ComponentProps<typeof Button>>(
+ ({ className, onClick, ...props }, ref) => {
+ const { toggleSidebar } = useSidebar();
+
+ return (
+ <Button
+ ref={ref}
+ data-sidebar="trigger"
+ variant="ghost"
+ size="icon"
+ className={cn("h-7 w-7", className)}
+ onClick={(event) => {
+ onClick?.(event);
+ toggleSidebar();
+ }}
+ {...props}
+ >
+ <PanelLeft />
+ <span className="sr-only">Toggle Sidebar</span>
+ </Button>
+ );
+ },
+);
+SidebarTrigger.displayName = "SidebarTrigger";
+
+const SidebarRail = React.forwardRef<HTMLButtonElement, React.ComponentProps<"button">>(
+ ({ className, ...props }, ref) => {
+ const { toggleSidebar } = useSidebar();
+
+ return (
+ <button
+ ref={ref}
+ data-sidebar="rail"
+ aria-label="Toggle Sidebar"
+ tabIndex={-1}
+ onClick={toggleSidebar}
+ title="Toggle Sidebar"
+ className={cn(
+ "absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 hover:after:bg-sidebar-border sm:flex",
+ "[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
+ "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",
+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
+ className,
+ )}
+ {...props}
+ />
+ );
+ },
+);
+SidebarRail.displayName = "SidebarRail";
+
+const SidebarInset = React.forwardRef<HTMLDivElement, React.ComponentProps<"main">>(({ className, ...props }, ref) => {
+ return (
+ <main
+ ref={ref}
+ className={cn(
+ "relative flex min-h-svh flex-1 flex-col bg-background",
+ "peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",
+ className,
+ )}
+ {...props}
+ />
+ );
+});
+SidebarInset.displayName = "SidebarInset";
+
+const SidebarInput = React.forwardRef<React.ElementRef<typeof Input>, React.ComponentProps<typeof Input>>(
+ ({ className, ...props }, ref) => {
+ return (
+ <Input
+ ref={ref}
+ data-sidebar="input"
+ className={cn(
+ "h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",
+ className,
+ )}
+ {...props}
+ />
+ );
+ },
+);
+SidebarInput.displayName = "SidebarInput";
+
+const SidebarHeader = React.forwardRef<HTMLDivElement, React.ComponentProps<"div">>(({ className, ...props }, ref) => {
+ return <div ref={ref} data-sidebar="header" className={cn("flex flex-col gap-2 p-2", className)} {...props} />;
+});
+SidebarHeader.displayName = "SidebarHeader";
+
+const SidebarFooter = React.forwardRef<HTMLDivElement, React.ComponentProps<"div">>(({ className, ...props }, ref) => {
+ return <div ref={ref} data-sidebar="footer" className={cn("flex flex-col gap-2 p-2", className)} {...props} />;
+});
+SidebarFooter.displayName = "SidebarFooter";
+
+const SidebarSeparator = React.forwardRef<React.ElementRef<typeof Separator>, React.ComponentProps<typeof Separator>>(
+ ({ className, ...props }, ref) => {
+ return (
+ <Separator
+ ref={ref}
+ data-sidebar="separator"
+ className={cn("mx-2 w-auto bg-sidebar-border", className)}
+ {...props}
+ />
+ );
+ },
+);
+SidebarSeparator.displayName = "SidebarSeparator";
+
+const SidebarContent = React.forwardRef<HTMLDivElement, React.ComponentProps<"div">>(({ className, ...props }, ref) => {
+ return (
+ <div
+ ref={ref}
+ data-sidebar="content"
+ className={cn(
+ "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
+ className,
+ )}
+ {...props}
+ />
+ );
+});
+SidebarContent.displayName = "SidebarContent";
+
+const SidebarGroup = React.forwardRef<HTMLDivElement, React.ComponentProps<"div">>(({ className, ...props }, ref) => {
+ return (
+ <div
+ ref={ref}
+ data-sidebar="group"
+ className={cn("relative flex w-full min-w-0 flex-col p-2", className)}
+ {...props}
+ />
+ );
+});
+SidebarGroup.displayName = "SidebarGroup";
+
+const SidebarGroupLabel = React.forwardRef<HTMLDivElement, React.ComponentProps<"div"> & { asChild?: boolean }>(
+ ({ className, asChild = false, ...props }, ref) => {
+ const Comp = asChild ? Slot : "div";
+
+ return (
+ <Comp
+ ref={ref}
+ data-sidebar="group-label"
+ className={cn(
+ "flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
+ className,
+ )}
+ {...props}
+ />
+ );
+ },
+);
+SidebarGroupLabel.displayName = "SidebarGroupLabel";
+
+const SidebarGroupAction = React.forwardRef<HTMLButtonElement, React.ComponentProps<"button"> & { asChild?: boolean }>(
+ ({ className, asChild = false, ...props }, ref) => {
+ const Comp = asChild ? Slot : "button";
+
+ return (
+ <Comp
+ ref={ref}
+ data-sidebar="group-action"
+ className={cn(
+ "absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
+ // Increases the hit area of the button on mobile.
+ "after:absolute after:-inset-2 after:md:hidden",
+ "group-data-[collapsible=icon]:hidden",
+ className,
+ )}
+ {...props}
+ />
+ );
+ },
+);
+SidebarGroupAction.displayName = "SidebarGroupAction";
+
+const SidebarGroupContent = React.forwardRef<HTMLDivElement, React.ComponentProps<"div">>(
+ ({ className, ...props }, ref) => (
+ <div ref={ref} data-sidebar="group-content" className={cn("w-full text-sm", className)} {...props} />
+ ),
+);
+SidebarGroupContent.displayName = "SidebarGroupContent";
+
+const SidebarMenu = React.forwardRef<HTMLUListElement, React.ComponentProps<"ul">>(({ className, ...props }, ref) => (
+ <ul ref={ref} data-sidebar="menu" className={cn("flex w-full min-w-0 flex-col gap-1", className)} {...props} />
+));
+SidebarMenu.displayName = "SidebarMenu";
+
+const SidebarMenuItem = React.forwardRef<HTMLLIElement, React.ComponentProps<"li">>(({ className, ...props }, ref) => (
+ <li ref={ref} data-sidebar="menu-item" className={cn("group/menu-item relative", className)} {...props} />
+));
+SidebarMenuItem.displayName = "SidebarMenuItem";
+
+const sidebarMenuButtonVariants = cva(
+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
+ {
+ variants: {
+ variant: {
+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
+ outline:
+ "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",
+ },
+ size: {
+ default: "h-8 text-sm",
+ sm: "h-7 text-xs",
+ lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ size: "default",
+ },
+ },
+);
+
+const SidebarMenuButton = React.forwardRef<
+ HTMLButtonElement,
+ React.ComponentProps<"button"> & {
+ asChild?: boolean;
+ isActive?: boolean;
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
+ } & VariantProps<typeof sidebarMenuButtonVariants>
+>(({ asChild = false, isActive = false, variant = "default", size = "default", tooltip, className, ...props }, ref) => {
+ const Comp = asChild ? Slot : "button";
+ const { isMobile, state } = useSidebar();
+
+ const button = (
+ <Comp
+ ref={ref}
+ data-sidebar="menu-button"
+ data-size={size}
+ data-active={isActive}
+ className={cn(sidebarMenuButtonVariants({ variant, size }), className)}
+ {...props}
+ />
+ );
+
+ if (!tooltip) {
+ return button;
+ }
+
+ if (typeof tooltip === "string") {
+ tooltip = {
+ children: tooltip,
+ };
+ }
+
+ return (
+ <Tooltip>
+ <TooltipTrigger asChild>{button}</TooltipTrigger>
+ <TooltipContent side="right" align="center" hidden={state !== "collapsed" || isMobile} {...tooltip} />
+ </Tooltip>
+ );
+});
+SidebarMenuButton.displayName = "SidebarMenuButton";
+
+const SidebarMenuAction = React.forwardRef<
+ HTMLButtonElement,
+ React.ComponentProps<"button"> & {
+ asChild?: boolean;
+ showOnHover?: boolean;
+ }
+>(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
+ const Comp = asChild ? Slot : "button";
+
+ return (
+ <Comp
+ ref={ref}
+ data-sidebar="menu-action"
+ className={cn(
+ "absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
+ // Increases the hit area of the button on mobile.
+ "after:absolute after:-inset-2 after:md:hidden",
+ "peer-data-[size=sm]/menu-button:top-1",
+ "peer-data-[size=default]/menu-button:top-1.5",
+ "peer-data-[size=lg]/menu-button:top-2.5",
+ "group-data-[collapsible=icon]:hidden",
+ showOnHover &&
+ "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",
+ className,
+ )}
+ {...props}
+ />
+ );
+});
+SidebarMenuAction.displayName = "SidebarMenuAction";
+
+const SidebarMenuBadge = React.forwardRef<HTMLDivElement, React.ComponentProps<"div">>(
+ ({ className, ...props }, ref) => (
+ <div
+ ref={ref}
+ data-sidebar="menu-badge"
+ className={cn(
+ "pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground",
+ "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
+ "peer-data-[size=sm]/menu-button:top-1",
+ "peer-data-[size=default]/menu-button:top-1.5",
+ "peer-data-[size=lg]/menu-button:top-2.5",
+ "group-data-[collapsible=icon]:hidden",
+ className,
+ )}
+ {...props}
+ />
+ ),
+);
+SidebarMenuBadge.displayName = "SidebarMenuBadge";
+
+const SidebarMenuSkeleton = React.forwardRef<
+ HTMLDivElement,
+ React.ComponentProps<"div"> & {
+ showIcon?: boolean;
+ }
+>(({ className, showIcon = false, ...props }, ref) => {
+ // Random width between 50 to 90%.
+ const width = React.useMemo(() => {
+ return `${Math.floor(Math.random() * 40) + 50}%`;
+ }, []);
+
+ return (
+ <div
+ ref={ref}
+ data-sidebar="menu-skeleton"
+ className={cn("flex h-8 items-center gap-2 rounded-md px-2", className)}
+ {...props}
+ >
+ {showIcon && <Skeleton className="size-4 rounded-md" data-sidebar="menu-skeleton-icon" />}
+ <Skeleton
+ className="h-4 max-w-[--skeleton-width] flex-1"
+ data-sidebar="menu-skeleton-text"
+ style={
+ {
+ "--skeleton-width": width,
+ } as React.CSSProperties
+ }
+ />
+ </div>
+ );
+});
+SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
+
+const SidebarMenuSub = React.forwardRef<HTMLUListElement, React.ComponentProps<"ul">>(
+ ({ className, ...props }, ref) => (
+ <ul
+ ref={ref}
+ data-sidebar="menu-sub"
+ className={cn(
+ "mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5",
+ "group-data-[collapsible=icon]:hidden",
+ className,
+ )}
+ {...props}
+ />
+ ),
+);
+SidebarMenuSub.displayName = "SidebarMenuSub";
+
+const SidebarMenuSubItem = React.forwardRef<HTMLLIElement, React.ComponentProps<"li">>(({ ...props }, ref) => (
+ <li ref={ref} {...props} />
+));
+SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
+
+const SidebarMenuSubButton = React.forwardRef<
+ HTMLAnchorElement,
+ React.ComponentProps<"a"> & {
+ asChild?: boolean;
+ size?: "sm" | "md";
+ isActive?: boolean;
+ }
+>(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
+ const Comp = asChild ? Slot : "a";
+
+ return (
+ <Comp
+ ref={ref}
+ data-sidebar="menu-sub-button"
+ data-size={size}
+ data-active={isActive}
+ className={cn(
+ "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
+ "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
+ size === "sm" && "text-xs",
+ size === "md" && "text-sm",
+ "group-data-[collapsible=icon]:hidden",
+ className,
+ )}
+ {...props}
+ />
+ );
+});
+SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
+
+export {
+ Sidebar,
+ SidebarContent,
+ SidebarFooter,
+ SidebarGroup,
+ SidebarGroupAction,
+ SidebarGroupContent,
+ SidebarGroupLabel,
+ SidebarHeader,
+ SidebarInput,
+ SidebarInset,
+ SidebarMenu,
+ SidebarMenuAction,
+ SidebarMenuBadge,
+ SidebarMenuButton,
+ SidebarMenuItem,
+ SidebarMenuSkeleton,
+ SidebarMenuSub,
+ SidebarMenuSubButton,
+ SidebarMenuSubItem,
+ SidebarProvider,
+ SidebarRail,
+ SidebarSeparator,
+ SidebarTrigger,
+ useSidebar,
+};
diff --git a/v3/goal_ui/src/components/ui/skeleton.tsx b/v3/goal_ui/src/components/ui/skeleton.tsx
new file mode 100644
index 0000000000..6690a131f2
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/skeleton.tsx
@@ -0,0 +1,7 @@
+import { cn } from "@/lib/utils";
+
+function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
+ return <div className={cn("animate-pulse rounded-md bg-muted", className)} {...props} />;
+}
+
+export { Skeleton };
diff --git a/v3/goal_ui/src/components/ui/slider.tsx b/v3/goal_ui/src/components/ui/slider.tsx
new file mode 100644
index 0000000000..360d681b37
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/slider.tsx
@@ -0,0 +1,23 @@
+import * as React from "react";
+import * as SliderPrimitive from "@radix-ui/react-slider";
+
+import { cn } from "@/lib/utils";
+
+const Slider = React.forwardRef<
+ React.ElementRef<typeof SliderPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>
+>(({ className, ...props }, ref) => (
+ <SliderPrimitive.Root
+ ref={ref}
+ className={cn("relative flex w-full touch-none select-none items-center", className)}
+ {...props}
+ >
+ <SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-secondary">
+ <SliderPrimitive.Range className="absolute h-full bg-primary" />
+ </SliderPrimitive.Track>
+ <SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" />
+ </SliderPrimitive.Root>
+));
+Slider.displayName = SliderPrimitive.Root.displayName;
+
+export { Slider };
diff --git a/v3/goal_ui/src/components/ui/sonner.tsx b/v3/goal_ui/src/components/ui/sonner.tsx
new file mode 100644
index 0000000000..b7f198b592
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/sonner.tsx
@@ -0,0 +1,27 @@
+import { useTheme } from "next-themes";
+import { Toaster as Sonner, toast } from "sonner";
+
+type ToasterProps = React.ComponentProps<typeof Sonner>;
+
+const Toaster = ({ ...props }: ToasterProps) => {
+ const { theme = "system" } = useTheme();
+
+ return (
+ <Sonner
+ theme={theme as ToasterProps["theme"]}
+ className="toaster group"
+ toastOptions={{
+ classNames: {
+ toast:
+ "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
+ description: "group-[.toast]:text-muted-foreground",
+ actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
+ cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",
+ },
+ }}
+ {...props}
+ />
+ );
+};
+
+export { Toaster, toast };
diff --git a/v3/goal_ui/src/components/ui/switch.tsx b/v3/goal_ui/src/components/ui/switch.tsx
new file mode 100644
index 0000000000..a76b76120b
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/switch.tsx
@@ -0,0 +1,27 @@
+import * as React from "react";
+import * as SwitchPrimitives from "@radix-ui/react-switch";
+
+import { cn } from "@/lib/utils";
+
+const Switch = React.forwardRef<
+ React.ElementRef<typeof SwitchPrimitives.Root>,
+ React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>
+>(({ className, ...props }, ref) => (
+ <SwitchPrimitives.Root
+ className={cn(
+ "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",
+ className,
+ )}
+ {...props}
+ ref={ref}
+ >
+ <SwitchPrimitives.Thumb
+ className={cn(
+ "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",
+ )}
+ />
+ </SwitchPrimitives.Root>
+));
+Switch.displayName = SwitchPrimitives.Root.displayName;
+
+export { Switch };
diff --git a/v3/goal_ui/src/components/ui/table.tsx b/v3/goal_ui/src/components/ui/table.tsx
new file mode 100644
index 0000000000..991cdbf3ba
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/table.tsx
@@ -0,0 +1,72 @@
+import * as React from "react";
+
+import { cn } from "@/lib/utils";
+
+const Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(
+ ({ className, ...props }, ref) => (
+ <div className="relative w-full overflow-auto">
+ <table ref={ref} className={cn("w-full caption-bottom text-sm", className)} {...props} />
+ </div>
+ ),
+);
+Table.displayName = "Table";
+
+const TableHeader = React.forwardRef<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>(
+ ({ className, ...props }, ref) => <thead ref={ref} className={cn("[&_tr]:border-b", className)} {...props} />,
+);
+TableHeader.displayName = "TableHeader";
+
+const TableBody = React.forwardRef<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>(
+ ({ className, ...props }, ref) => (
+ <tbody ref={ref} className={cn("[&_tr:last-child]:border-0", className)} {...props} />
+ ),
+);
+TableBody.displayName = "TableBody";
+
+const TableFooter = React.forwardRef<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>(
+ ({ className, ...props }, ref) => (
+ <tfoot ref={ref} className={cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className)} {...props} />
+ ),
+);
+TableFooter.displayName = "TableFooter";
+
+const TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>(
+ ({ className, ...props }, ref) => (
+ <tr
+ ref={ref}
+ className={cn("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50", className)}
+ {...props}
+ />
+ ),
+);
+TableRow.displayName = "TableRow";
+
+const TableHead = React.forwardRef<HTMLTableCellElement, React.ThHTMLAttributes<HTMLTableCellElement>>(
+ ({ className, ...props }, ref) => (
+ <th
+ ref={ref}
+ className={cn(
+ "h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
+ className,
+ )}
+ {...props}
+ />
+ ),
+);
+TableHead.displayName = "TableHead";
+
+const TableCell = React.forwardRef<HTMLTableCellElement, React.TdHTMLAttributes<HTMLTableCellElement>>(
+ ({ className, ...props }, ref) => (
+ <td ref={ref} className={cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className)} {...props} />
+ ),
+);
+TableCell.displayName = "TableCell";
+
+const TableCaption = React.forwardRef<HTMLTableCaptionElement, React.HTMLAttributes<HTMLTableCaptionElement>>(
+ ({ className, ...props }, ref) => (
+ <caption ref={ref} className={cn("mt-4 text-sm text-muted-foreground", className)} {...props} />
+ ),
+);
+TableCaption.displayName = "TableCaption";
+
+export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
diff --git a/v3/goal_ui/src/components/ui/tabs.tsx b/v3/goal_ui/src/components/ui/tabs.tsx
new file mode 100644
index 0000000000..ba20fbb1b8
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/tabs.tsx
@@ -0,0 +1,53 @@
+import * as React from "react";
+import * as TabsPrimitive from "@radix-ui/react-tabs";
+
+import { cn } from "@/lib/utils";
+
+const Tabs = TabsPrimitive.Root;
+
+const TabsList = React.forwardRef<
+ React.ElementRef<typeof TabsPrimitive.List>,
+ React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>
+>(({ className, ...props }, ref) => (
+ <TabsPrimitive.List
+ ref={ref}
+ className={cn(
+ "inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
+ className,
+ )}
+ {...props}
+ />
+));
+TabsList.displayName = TabsPrimitive.List.displayName;
+
+const TabsTrigger = React.forwardRef<
+ React.ElementRef<typeof TabsPrimitive.Trigger>,
+ React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>
+>(({ className, ...props }, ref) => (
+ <TabsPrimitive.Trigger
+ ref={ref}
+ className={cn(
+ "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
+ className,
+ )}
+ {...props}
+ />
+));
+TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
+
+const TabsContent = React.forwardRef<
+ React.ElementRef<typeof TabsPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>
+>(({ className, ...props }, ref) => (
+ <TabsPrimitive.Content
+ ref={ref}
+ className={cn(
+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
+ className,
+ )}
+ {...props}
+ />
+));
+TabsContent.displayName = TabsPrimitive.Content.displayName;
+
+export { Tabs, TabsList, TabsTrigger, TabsContent };
diff --git a/v3/goal_ui/src/components/ui/textarea.tsx b/v3/goal_ui/src/components/ui/textarea.tsx
new file mode 100644
index 0000000000..4a5643e87f
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/textarea.tsx
@@ -0,0 +1,21 @@
+import * as React from "react";
+
+import { cn } from "@/lib/utils";
+
+export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
+
+const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(({ className, ...props }, ref) => {
+ return (
+ <textarea
+ className={cn(
+ "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
+ className,
+ )}
+ ref={ref}
+ {...props}
+ />
+ );
+});
+Textarea.displayName = "Textarea";
+
+export { Textarea };
diff --git a/v3/goal_ui/src/components/ui/toast.tsx b/v3/goal_ui/src/components/ui/toast.tsx
new file mode 100644
index 0000000000..0699548f55
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/toast.tsx
@@ -0,0 +1,111 @@
+import * as React from "react";
+import * as ToastPrimitives from "@radix-ui/react-toast";
+import { cva, type VariantProps } from "class-variance-authority";
+import { X } from "lucide-react";
+
+import { cn } from "@/lib/utils";
+
+const ToastProvider = ToastPrimitives.Provider;
+
+const ToastViewport = React.forwardRef<
+ React.ElementRef<typeof ToastPrimitives.Viewport>,
+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>
+>(({ className, ...props }, ref) => (
+ <ToastPrimitives.Viewport
+ ref={ref}
+ className={cn(
+ "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
+ className,
+ )}
+ {...props}
+ />
+));
+ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
+
+const toastVariants = cva(
+ "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
+ {
+ variants: {
+ variant: {
+ default: "border bg-background text-foreground",
+ destructive: "destructive group border-destructive bg-destructive text-destructive-foreground",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ },
+ },
+);
+
+const Toast = React.forwardRef<
+ React.ElementRef<typeof ToastPrimitives.Root>,
+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> & VariantProps<typeof toastVariants>
+>(({ className, variant, ...props }, ref) => {
+ return <ToastPrimitives.Root ref={ref} className={cn(toastVariants({ variant }), className)} {...props} />;
+});
+Toast.displayName = ToastPrimitives.Root.displayName;
+
+const ToastAction = React.forwardRef<
+ React.ElementRef<typeof ToastPrimitives.Action>,
+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>
+>(({ className, ...props }, ref) => (
+ <ToastPrimitives.Action
+ ref={ref}
+ className={cn(
+ "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",
+ className,
+ )}
+ {...props}
+ />
+));
+ToastAction.displayName = ToastPrimitives.Action.displayName;
+
+const ToastClose = React.forwardRef<
+ React.ElementRef<typeof ToastPrimitives.Close>,
+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>
+>(({ className, ...props }, ref) => (
+ <ToastPrimitives.Close
+ ref={ref}
+ className={cn(
+ "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
+ className,
+ )}
+ toast-close=""
+ {...props}
+ >
+ <X className="h-4 w-4" />
+ </ToastPrimitives.Close>
+));
+ToastClose.displayName = ToastPrimitives.Close.displayName;
+
+const ToastTitle = React.forwardRef<
+ React.ElementRef<typeof ToastPrimitives.Title>,
+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>
+>(({ className, ...props }, ref) => (
+ <ToastPrimitives.Title ref={ref} className={cn("text-sm font-semibold", className)} {...props} />
+));
+ToastTitle.displayName = ToastPrimitives.Title.displayName;
+
+const ToastDescription = React.forwardRef<
+ React.ElementRef<typeof ToastPrimitives.Description>,
+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>
+>(({ className, ...props }, ref) => (
+ <ToastPrimitives.Description ref={ref} className={cn("text-sm opacity-90", className)} {...props} />
+));
+ToastDescription.displayName = ToastPrimitives.Description.displayName;
+
+type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
+
+type ToastActionElement = React.ReactElement<typeof ToastAction>;
+
+export {
+ type ToastProps,
+ type ToastActionElement,
+ ToastProvider,
+ ToastViewport,
+ Toast,
+ ToastTitle,
+ ToastDescription,
+ ToastClose,
+ ToastAction,
+};
diff --git a/v3/goal_ui/src/components/ui/toaster.tsx b/v3/goal_ui/src/components/ui/toaster.tsx
new file mode 100644
index 0000000000..2cba1c825a
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/toaster.tsx
@@ -0,0 +1,24 @@
+import { useToast } from "@/hooks/use-toast";
+import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from "@/components/ui/toast";
+
+export function Toaster() {
+ const { toasts } = useToast();
+
+ return (
+ <ToastProvider>
+ {toasts.map(function ({ id, title, description, action, ...props }) {
+ return (
+ <Toast key={id} {...props}>
+ <div className="grid gap-1">
+ {title && <ToastTitle>{title}</ToastTitle>}
+ {description && <ToastDescription>{description}</ToastDescription>}
+ </div>
+ {action}
+ <ToastClose />
+ </Toast>
+ );
+ })}
+ <ToastViewport />
+ </ToastProvider>
+ );
+}
diff --git a/v3/goal_ui/src/components/ui/toggle-group.tsx b/v3/goal_ui/src/components/ui/toggle-group.tsx
new file mode 100644
index 0000000000..8deae16fe1
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/toggle-group.tsx
@@ -0,0 +1,49 @@
+import * as React from "react";
+import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
+import { type VariantProps } from "class-variance-authority";
+
+import { cn } from "@/lib/utils";
+import { toggleVariants } from "@/components/ui/toggle";
+
+const ToggleGroupContext = React.createContext<VariantProps<typeof toggleVariants>>({
+ size: "default",
+ variant: "default",
+});
+
+const ToggleGroup = React.forwardRef<
+ React.ElementRef<typeof ToggleGroupPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>
+>(({ className, variant, size, children, ...props }, ref) => (
+ <ToggleGroupPrimitive.Root ref={ref} className={cn("flex items-center justify-center gap-1", className)} {...props}>
+ <ToggleGroupContext.Provider value={{ variant, size }}>{children}</ToggleGroupContext.Provider>
+ </ToggleGroupPrimitive.Root>
+));
+
+ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
+
+const ToggleGroupItem = React.forwardRef<
+ React.ElementRef<typeof ToggleGroupPrimitive.Item>,
+ React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>
+>(({ className, children, variant, size, ...props }, ref) => {
+ const context = React.useContext(ToggleGroupContext);
+
+ return (
+ <ToggleGroupPrimitive.Item
+ ref={ref}
+ className={cn(
+ toggleVariants({
+ variant: context.variant || variant,
+ size: context.size || size,
+ }),
+ className,
+ )}
+ {...props}
+ >
+ {children}
+ </ToggleGroupPrimitive.Item>
+ );
+});
+
+ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
+
+export { ToggleGroup, ToggleGroupItem };
diff --git a/v3/goal_ui/src/components/ui/toggle.tsx b/v3/goal_ui/src/components/ui/toggle.tsx
new file mode 100644
index 0000000000..de5dfc5ad8
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/toggle.tsx
@@ -0,0 +1,37 @@
+import * as React from "react";
+import * as TogglePrimitive from "@radix-ui/react-toggle";
+import { cva, type VariantProps } from "class-variance-authority";
+
+import { cn } from "@/lib/utils";
+
+const toggleVariants = cva(
+ "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
+ {
+ variants: {
+ variant: {
+ default: "bg-transparent",
+ outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",
+ },
+ size: {
+ default: "h-10 px-3",
+ sm: "h-9 px-2.5",
+ lg: "h-11 px-5",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ size: "default",
+ },
+ },
+);
+
+const Toggle = React.forwardRef<
+ React.ElementRef<typeof TogglePrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>
+>(({ className, variant, size, ...props }, ref) => (
+ <TogglePrimitive.Root ref={ref} className={cn(toggleVariants({ variant, size, className }))} {...props} />
+));
+
+Toggle.displayName = TogglePrimitive.Root.displayName;
+
+export { Toggle, toggleVariants };
diff --git a/v3/goal_ui/src/components/ui/tooltip.tsx b/v3/goal_ui/src/components/ui/tooltip.tsx
new file mode 100644
index 0000000000..2dece61d05
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/tooltip.tsx
@@ -0,0 +1,28 @@
+import * as React from "react";
+import * as TooltipPrimitive from "@radix-ui/react-tooltip";
+
+import { cn } from "@/lib/utils";
+
+const TooltipProvider = TooltipPrimitive.Provider;
+
+const Tooltip = TooltipPrimitive.Root;
+
+const TooltipTrigger = TooltipPrimitive.Trigger;
+
+const TooltipContent = React.forwardRef<
+ React.ElementRef<typeof TooltipPrimitive.Content>,
+ React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
+>(({ className, sideOffset = 4, ...props }, ref) => (
+ <TooltipPrimitive.Content
+ ref={ref}
+ sideOffset={sideOffset}
+ className={cn(
+ "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
+ className,
+ )}
+ {...props}
+ />
+));
+TooltipContent.displayName = TooltipPrimitive.Content.displayName;
+
+export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
diff --git a/v3/goal_ui/src/components/ui/use-toast.ts b/v3/goal_ui/src/components/ui/use-toast.ts
new file mode 100644
index 0000000000..b0aef21be2
--- /dev/null
+++ b/v3/goal_ui/src/components/ui/use-toast.ts
@@ -0,0 +1,3 @@
+import { useToast, toast } from "@/hooks/use-toast";
+
+export { useToast, toast };
diff --git a/v3/goal_ui/src/hooks/use-mobile.tsx b/v3/goal_ui/src/hooks/use-mobile.tsx
new file mode 100644
index 0000000000..502fd32393
--- /dev/null
+++ b/v3/goal_ui/src/hooks/use-mobile.tsx
@@ -0,0 +1,19 @@
+import * as React from "react";
+
+const MOBILE_BREAKPOINT = 768;
+
+export function useIsMobile() {
+ const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined);
+
+ React.useEffect(() => {
+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
+ const onChange = () => {
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
+ };
+ mql.addEventListener("change", onChange);
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
+ return () => mql.removeEventListener("change", onChange);
+ }, []);
+
+ return !!isMobile;
+}
diff --git a/v3/goal_ui/src/hooks/use-toast.ts b/v3/goal_ui/src/hooks/use-toast.ts
new file mode 100644
index 0000000000..ca1316d678
--- /dev/null
+++ b/v3/goal_ui/src/hooks/use-toast.ts
@@ -0,0 +1,186 @@
+import * as React from "react";
+
+import type { ToastActionElement, ToastProps } from "@/components/ui/toast";
+
+const TOAST_LIMIT = 1;
+const TOAST_REMOVE_DELAY = 1000000;
+
+type ToasterToast = ToastProps & {
+ id: string;
+ title?: React.ReactNode;
+ description?: React.ReactNode;
+ action?: ToastActionElement;
+};
+
+const actionTypes = {
+ ADD_TOAST: "ADD_TOAST",
+ UPDATE_TOAST: "UPDATE_TOAST",
+ DISMISS_TOAST: "DISMISS_TOAST",
+ REMOVE_TOAST: "REMOVE_TOAST",
+} as const;
+
+let count = 0;
+
+function genId() {
+ count = (count + 1) % Number.MAX_SAFE_INTEGER;
+ return count.toString();
+}
+
+type ActionType = typeof actionTypes;
+
+type Action =
+ | {
+ type: ActionType["ADD_TOAST"];
+ toast: ToasterToast;
+ }
+ | {
+ type: ActionType["UPDATE_TOAST"];
+ toast: Partial<ToasterToast>;
+ }
+ | {
+ type: ActionType["DISMISS_TOAST"];
+ toastId?: ToasterToast["id"];
+ }
+ | {
+ type: ActionType["REMOVE_TOAST"];
+ toastId?: ToasterToast["id"];
+ };
+
+interface State {
+ toasts: ToasterToast[];
+}
+
+const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>();
+
+const addToRemoveQueue = (toastId: string) => {
+ if (toastTimeouts.has(toastId)) {
+ return;
+ }
+
+ const timeout = setTimeout(() => {
+ toastTimeouts.delete(toastId);
+ dispatch({
+ type: "REMOVE_TOAST",
+ toastId: toastId,
+ });
+ }, TOAST_REMOVE_DELAY);
+
+ toastTimeouts.set(toastId, timeout);
+};
+
+export const reducer = (state: State, action: Action): State => {
+ switch (action.type) {
+ case "ADD_TOAST":
+ return {
+ ...state,
+ toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),
+ };
+
+ case "UPDATE_TOAST":
+ return {
+ ...state,
+ toasts: state.toasts.map((t) => (t.id === action.toast.id ? { ...t, ...action.toast } : t)),
+ };
+
+ case "DISMISS_TOAST": {
+ const { toastId } = action;
+
+ // ! Side effects ! - This could be extracted into a dismissToast() action,
+ // but I'll keep it here for simplicity
+ if (toastId) {
+ addToRemoveQueue(toastId);
+ } else {
+ state.toasts.forEach((toast) => {
+ addToRemoveQueue(toast.id);
+ });
+ }
+
+ return {
+ ...state,
+ toasts: state.toasts.map((t) =>
+ t.id === toastId || toastId === undefined
+ ? {
+ ...t,
+ open: false,
+ }
+ : t,
+ ),
+ };
+ }
+ case "REMOVE_TOAST":
+ if (action.toastId === undefined) {
+ return {
+ ...state,
+ toasts: [],
+ };
+ }
+ return {
+ ...state,
+ toasts: state.toasts.filter((t) => t.id !== action.toastId),
+ };
+ }
+};
+
+const listeners: Array<(state: State) => void> = [];
+
+let memoryState: State = { toasts: [] };
+
+function dispatch(action: Action) {
+ memoryState = reducer(memoryState, action);
+ listeners.forEach((listener) => {
+ listener(memoryState);
+ });
+}
+
+type Toast = Omit<ToasterToast, "id">;
+
+function toast({ ...props }: Toast) {
+ const id = genId();
+
+ const update = (props: ToasterToast) =>
+ dispatch({
+ type: "UPDATE_TOAST",
+ toast: { ...props, id },
+ });
+ const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id });
+
+ dispatch({
+ type: "ADD_TOAST",
+ toast: {
+ ...props,
+ id,
+ open: true,
+ onOpenChange: (open) => {
+ if (!open) dismiss();
+ },
+ },
+ });
+
+ return {
+ id: id,
+ dismiss,
+ update,
+ };
+}
+
+function useToast() {
+ const [state, setState] = React.useState<State>(memoryState);
+
+ React.useEffect(() => {
+ listeners.push(setState);
+ return () => {
+ const index = listeners.indexOf(setState);
+ if (index > -1) {
+ listeners.splice(index, 1);
+ }
+ };
+ }, [state]);
+
+ return {
+ ...state,
+ toast,
+ dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }),
+ };
+}
+
+export { useToast, toast };
diff --git a/v3/goal_ui/src/index.css b/v3/goal_ui/src/index.css
new file mode 100644
index 0000000000..29ab530990
--- /dev/null
+++ b/v3/goal_ui/src/index.css
@@ -0,0 +1,84 @@
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
+
+/* Definition of the design system. All colors, gradients, fonts, etc should be defined here.
+All colors MUST be HSL.
+*/
+
+@layer base {
+ :root {
+ --background: 0 0% 10%;
+ --foreground: 0 0% 95%;
+
+ --card: 0 0% 14%;
+ --card-foreground: 0 0% 95%;
+
+ --popover: 0 0% 14%;
+ --popover-foreground: 0 0% 95%;
+
+ --primary: 0 0% 50%;
+ --primary-foreground: 0 0% 98%;
+ --primary-glow: 0 0% 60%;
+
+ --secondary: 0 0% 18%;
+ --secondary-foreground: 0 0% 95%;
+
+ --muted: 0 0% 18%;
+ --muted-foreground: 0 0% 60%;
+
+ --accent: 0 0% 70%;
+ --accent-foreground: 0 0% 10%;
+ --accent-glow: 0 0% 75%;
+
+ --destructive: 0 0% 50%;
+ --destructive-foreground: 0 0% 98%;
+
+ --border: 0 0% 22%;
+ --input: 0 0% 22%;
+ --ring: 0 0% 50%;
+
+ --radius: 0.5rem;
+
+ --sidebar-background: 0 0% 12%;
+ --sidebar-foreground: 0 0% 60%;
+ --sidebar-primary: 0 0% 50%;
+ --sidebar-primary-foreground: 0 0% 98%;
+ --sidebar-accent: 0 0% 18%;
+ --sidebar-accent-foreground: 0 0% 95%;
+ --sidebar-border: 0 0% 22%;
+ --sidebar-ring: 0 0% 50%;
+
+ /* Success colors for completed states */
+ --success: 142 76% 36%;
+ --success-foreground: 142 76% 95%;
+
+ /* Custom design tokens */
+ --gradient-primary: linear-gradient(135deg, hsl(0 0% 20%), hsl(0 0% 15%));
+ --gradient-accent: linear-gradient(135deg, hsl(0 0% 25%), hsl(0 0% 20%));
+ --gradient-card: linear-gradient(180deg, hsl(0 0% 16%), hsl(0 0% 14%));
+
+ --shadow-glow: 0 0 30px hsl(0 0% 0% / 0.4);
+ --shadow-accent-glow: 0 0 20px hsl(0 0% 0% / 0.3);
+ --shadow-card: 0 4px 20px hsl(0 0% 0% / 0.5);
+
+ --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
+ }
+
+ /* Widget embed overrides */
+ .widget-embed {
+ --background: var(--widget-bg, 0 0% 10%);
+ --primary: var(--widget-primary, 0 0% 50%);
+ --accent: var(--widget-accent, 142 76% 36%);
+ }
+}
+
+@layer base {
+ * {
+ @apply border-border;
+ }
+
+ body {
+ @apply bg-background text-foreground;
+ }
+}
diff --git a/v3/goal_ui/src/integrations/supabase/client.ts b/v3/goal_ui/src/integrations/supabase/client.ts
new file mode 100644
index 0000000000..1619b4712a
--- /dev/null
+++ b/v3/goal_ui/src/integrations/supabase/client.ts
@@ -0,0 +1,17 @@
+// This file is automatically generated. Do not edit it directly.
+import { createClient } from '@supabase/supabase-js';
+import type { Database } from './types';
+
+const SUPABASE_URL = import.meta.env.VITE_SUPABASE_URL;
+const SUPABASE_PUBLISHABLE_KEY = import.meta.env.VITE_SUPABASE_PUBLISHABLE_KEY;
+
+// Import the supabase client like this:
+// import { supabase } from "@/integrations/supabase/client";
+
+export const supabase = createClient<Database>(SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY, {
+ auth: {
+ storage: localStorage,
+ persistSession: true,
+ autoRefreshToken: true,
+ }
+});
\ No newline at end of file
diff --git a/v3/goal_ui/src/integrations/supabase/types.ts b/v3/goal_ui/src/integrations/supabase/types.ts
new file mode 100644
index 0000000000..5997274756
--- /dev/null
+++ b/v3/goal_ui/src/integrations/supabase/types.ts
@@ -0,0 +1,155 @@
+export type Json =
+ | string
+ | number
+ | boolean
+ | null
+ | { [key: string]: Json | undefined }
+ | Json[]
+
+export type Database = {
+ // Allows to automatically instantiate createClient with right options
+ // instead of createClient<Database, { PostgrestVersion: 'XX' }>(URL, KEY)
+ __InternalSupabase: {
+ PostgrestVersion: "13.0.5"
+ }
+ public: {
+ Tables: {
+ [_ in never]: never
+ }
+ Views: {
+ [_ in never]: never
+ }
+ Functions: {
+ [_ in never]: never
+ }
+ Enums: {
+ [_ in never]: never
+ }
+ CompositeTypes: {
+ [_ in never]: never
+ }
+ }
+}
+
+type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
+
+type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
+
+export type Tables<
+ DefaultSchemaTableNameOrOptions extends
+ | keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
+ | { schema: keyof DatabaseWithoutInternals },
+ TableName extends DefaultSchemaTableNameOrOptions extends {
+ schema: keyof DatabaseWithoutInternals
+ }
+ ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
+ DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
+ : never = never,
+> = DefaultSchemaTableNameOrOptions extends {
+ schema: keyof DatabaseWithoutInternals
+}
+ ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
+ DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
+ Row: infer R
+ }
+ ? R
+ : never
+ : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] &
+ DefaultSchema["Views"])
+ ? (DefaultSchema["Tables"] &
+ DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
+ Row: infer R
+ }
+ ? R
+ : never
+ : never
+
+export type TablesInsert<
+ DefaultSchemaTableNameOrOptions extends
+ | keyof DefaultSchema["Tables"]
+ | { schema: keyof DatabaseWithoutInternals },
+ TableName extends DefaultSchemaTableNameOrOptions extends {
+ schema: keyof DatabaseWithoutInternals
+ }
+ ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
+ : never = never,
+> = DefaultSchemaTableNameOrOptions extends {
+ schema: keyof DatabaseWithoutInternals
+}
+ ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
+ Insert: infer I
+ }
+ ? I
+ : never
+ : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
+ ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
+ Insert: infer I
+ }
+ ? I
+ : never
+ : never
+
+export type TablesUpdate<
+ DefaultSchemaTableNameOrOptions extends
+ | keyof DefaultSchema["Tables"]
+ | { schema: keyof DatabaseWithoutInternals },
+ TableName extends DefaultSchemaTableNameOrOptions extends {
+ schema: keyof DatabaseWithoutInternals
+ }
+ ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
+ : never = never,
+> = DefaultSchemaTableNameOrOptions extends {
+ schema: keyof DatabaseWithoutInternals
+}
+ ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
+ Update: infer U
+ }
+ ? U
+ : never
+ : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
+ ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
+ Update: infer U
+ }
+ ? U
+ : never
+ : never
+
+export type Enums<
+ DefaultSchemaEnumNameOrOptions extends
+ | keyof DefaultSchema["Enums"]
+ | { schema: keyof DatabaseWithoutInternals },
+ EnumName extends DefaultSchemaEnumNameOrOptions extends {
+ schema: keyof DatabaseWithoutInternals
+ }
+ ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
+ : never = never,
+> = DefaultSchemaEnumNameOrOptions extends {
+ schema: keyof DatabaseWithoutInternals
+}
+ ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
+ : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
+ ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
+ : never
+
+export type CompositeTypes<
+ PublicCompositeTypeNameOrOptions extends
+ | keyof DefaultSchema["CompositeTypes"]
+ | { schema: keyof DatabaseWithoutInternals },
+ CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
+ schema: keyof DatabaseWithoutInternals
+ }
+ ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
+ : never = never,
+> = PublicCompositeTypeNameOrOptions extends {
+ schema: keyof DatabaseWithoutInternals
+}
+ ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
+ : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
+ ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
+ : never
+
+export const Constants = {
+ public: {
+ Enums: {},
+ },
+} as const
diff --git a/v3/goal_ui/src/lib/goapPlanner.ts b/v3/goal_ui/src/lib/goapPlanner.ts
new file mode 100644
index 0000000000..46a16ceb8d
--- /dev/null
+++ b/v3/goal_ui/src/lib/goapPlanner.ts
@@ -0,0 +1,180 @@
+import { LucideIcon } from "lucide-react";
+
+export interface DataItem {
+ text: string;
+ icon?: LucideIcon;
+ details?: {
+ objective?: string;
+ sources?: string[];
+ citations?: string[];
+ agents?: string[];
+ preconditions?: string[];
+ effects?: string[];
+ };
+}
+
+export interface Step {
+ id: string;
+ title: string;
+ description: string;
+ icon: LucideIcon;
+ status: "pending" | "active" | "completed" | "error";
+ data?: DataItem[];
+ metrics?: { label: string; value: string }[];
+}
+
+interface WorldState {
+ goalDefined: boolean;
+ goalParsed: boolean;
+ stateAssessed: boolean;
+ informationGathered: boolean;
+ documentsAnalyzed: boolean;
+ knowledgeSynthesized: boolean;
+ insightsGenerated: boolean;
+ verified: boolean;
+}
+
+interface Action {
+ name: string;
+ cost: number;
+ preconditions: Partial<WorldState>;
+ effects: Partial<WorldState>;
+ stepGenerator: (goal: string) => Step;
+}
+
+/**
+ * GOAP (Goal-Oriented Action Planning) Planner
+ * Uses A* algorithm to find optimal action sequence
+ */
+export class GOAPPlanner {
+ private actions: Action[];
+
+ constructor(actions: Action[]) {
+ this.actions = actions;
+ }
+
+ /**
+ * Calculate heuristic distance to goal (number of unmet conditions)
+ */
+ private heuristic(state: WorldState, goal: WorldState): number {
+ let distance = 0;
+ for (const key in goal) {
+ if (goal[key as keyof WorldState] && !state[key as keyof WorldState]) {
+ distance++;
+ }
+ }
+ return distance;
+ }
+
+ /**
+ * Check if all preconditions are met
+ */
+ private preconditionsMet(state: WorldState, preconditions: Partial<WorldState>): boolean {
+ for (const key in preconditions) {
+ if (preconditions[key as keyof WorldState] && !state[key as keyof WorldState]) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ /**
+ * Apply action effects to state
+ */
+ private applyEffects(state: WorldState, effects: Partial<WorldState>): WorldState {
+ return { ...state, ...effects };
+ }
+
+ /**
+ * Find optimal plan using A* search
+ */
+ public plan(currentState: WorldState, goalState: WorldState, userGoal: string): Step[] {
+ interface Node {
+ state: WorldState;
+ actions: Action[];
+ cost: number;
+ heuristic: number;
+ }
+
+ const openList: Node[] = [];
+ const closedList: Set<string> = new Set();
+
+ // Start node
+ openList.push({
+ state: currentState,
+ actions: [],
+ cost: 0,
+ heuristic: this.heuristic(currentState, goalState),
+ });
+
+ while (openList.length > 0) {
+ // Sort by total cost (cost + heuristic)
+ openList.sort((a, b) => (a.cost + a.heuristic) - (b.cost + b.heuristic));
+
+ const current = openList.shift()!;
+ const stateKey = JSON.stringify(current.state);
+
+ // Check if goal reached
+ if (this.heuristic(current.state, goalState) === 0) {
+ // Convert actions to steps
+ return current.actions.map(action => action.stepGenerator(userGoal));
+ }
+
+ if (closedList.has(stateKey)) continue;
+ closedList.add(stateKey);
+
+ // Try all applicable actions
+ for (const action of this.actions) {
+ if (this.preconditionsMet(current.state, action.preconditions)) {
+ const newState = this.applyEffects(current.state, action.effects);
+ const newStateKey = JSON.stringify(newState);
+
+ if (!closedList.has(newStateKey)) {
+ openList.push({
+ state: newState,
+ actions: [...current.actions, action],
+ cost: current.cost + action.cost,
+ heuristic: this.heuristic(newState, goalState),
+ });
+ }
+ }
+ }
+ }
+
+ // No plan found - return empty array
+ return [];
+ }
+}
+
+/**
+ * Parse user goal to extract key information
+ */
+export function parseGoal(goal: string): {
+ domain: string;
+ action: string;
+ keywords: string[];
+} {
+ const lowerGoal = goal.toLowerCase();
+
+ // Extract domain
+ let domain = "general";
+ if (lowerGoal.includes("quantum") || lowerGoal.includes("computing")) domain = "technology";
+ if (lowerGoal.includes("market") || lowerGoal.includes("business")) domain = "business";
+ if (lowerGoal.includes("architecture") || lowerGoal.includes("software")) domain = "software engineering";
+ if (lowerGoal.includes("energy") || lowerGoal.includes("renewable")) domain = "energy";
+
+ // Extract action
+ let action = "research";
+ if (lowerGoal.includes("analyze")) action = "analyze";
+ if (lowerGoal.includes("investigate")) action = "investigate";
+ if (lowerGoal.includes("compare")) action = "compare";
+ if (lowerGoal.includes("evaluate")) action = "evaluate";
+
+ // Extract keywords (simple approach - words > 4 chars)
+ const keywords = goal
+ .split(/\s+/)
+ .filter(word => word.length > 4)
+ .slice(0, 5);
+
+ return { domain, action, keywords };
+}
diff --git a/v3/goal_ui/src/lib/utils.ts b/v3/goal_ui/src/lib/utils.ts
new file mode 100644
index 0000000000..a5ef193506
--- /dev/null
+++ b/v3/goal_ui/src/lib/utils.ts
@@ -0,0 +1,6 @@
+import { clsx, type ClassValue } from "clsx";
+import { twMerge } from "tailwind-merge";
+
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs));
+}
diff --git a/v3/goal_ui/src/main.tsx b/v3/goal_ui/src/main.tsx
new file mode 100644
index 0000000000..68176a72f3
--- /dev/null
+++ b/v3/goal_ui/src/main.tsx
@@ -0,0 +1,5 @@
+import { createRoot } from "react-dom/client";
+import App from "./App.tsx";
+import "./index.css";
+
+createRoot(document.getElementById("root")!).render(<App />);
diff --git a/v3/goal_ui/src/pages/Agents.tsx b/v3/goal_ui/src/pages/Agents.tsx
new file mode 100644
index 0000000000..eab5415f80
--- /dev/null
+++ b/v3/goal_ui/src/pages/Agents.tsx
@@ -0,0 +1,1347 @@
+import { useEffect, useRef, useState } from "react";
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import { Badge } from "@/components/ui/badge";
+import { Progress } from "@/components/ui/progress";
+import { ScrollArea } from "@/components/ui/scroll-area";
+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
+import {
+ Bot,
+ Code,
+ TestTube,
+ FileCheck,
+ FileText,
+ Server,
+ Target,
+ GitBranch,
+ Zap,
+ Shield,
+ MessageSquare,
+ Eye,
+ Play,
+ Pause,
+ SkipForward,
+ RotateCw,
+ Network,
+ CheckCircle2
+} from "lucide-react";
+import { AgentStatusCard } from "@/components/agents/AgentStatusCard";
+import { TaskBoard } from "@/components/agents/TaskBoard";
+import { DependencyGraph } from "@/components/agents/DependencyGraph";
+import { ExecutionMonitor } from "@/components/agents/ExecutionMonitor";
+import { QualityGates } from "@/components/agents/QualityGates";
+import { CommunicationLog } from "@/components/agents/CommunicationLog";
+import { CodePreview } from "@/components/agents/CodePreview";
+import { AgentStep, StepStatus } from "@/components/AgentStep";
+import { DevelopmentStep } from "@/components/DevelopmentStep";
+import { StateAssessmentCard } from "@/components/StateAssessmentCard";
+import { AdvancedSettingsModal } from "@/components/agents/AdvancedSettingsModal";
+import { PlanVisualization } from "@/components/agents/PlanVisualization";
+import { StepExecutionPanel } from "@/components/agents/StepExecutionPanel";
+import { AgentActivityPanel } from "@/components/agents/AgentActivityPanel";
+import { RealTimeEventLog } from "@/components/agents/RealTimeEventLog";
+import { ExecutionDashboard } from "@/components/agents/ExecutionDashboard";
+import { ResearchReviewCard } from "@/components/ResearchReviewCard";
+
+type AgentStatus = "idle" | "working" | "blocked";
+type SwarmMode = "distributed" | "pipeline" | "collaborative";
+
+interface Agent {
+ id: string;
+ name: string;
+ icon: any;
+ status: AgentStatus;
+ currentTask?: string;
+}
+
+export default function Agents() {
+ const [goal, setGoal] = useState("");
+ const [swarmMode, setSwarmMode] = useState<SwarmMode>("distributed");
+ const [isRunning, setIsRunning] = useState(false);
+ const [currentPhase, setCurrentPhase] = useState(0);
+ const [isPlanGenerated, setIsPlanGenerated] = useState(false);
+ const [workflowStage, setWorkflowStage] = useState<"research" | "review" | "development">("research");
+ const [devPhase, setDevPhase] = useState(0);
+
+ const [agents, setAgents] = useState<Agent[]>([
+ { id: "arch", name: "Architecture", icon: GitBranch, status: "idle" },
+ { id: "impl", name: "Implementation", icon: Code, status: "idle" },
+ { id: "test", name: "Testing", icon: TestTube, status: "idle" },
+ { id: "review", name: "Code Review", icon: FileCheck, status: "idle" },
+ { id: "docs", name: "Documentation", icon: FileText, status: "idle" },
+ { id: "devops", name: "DevOps", icon: Server, status: "idle" },
+ ]);
+
+ const [projectState, setProjectState] = useState({
+ codebaseAnalyzed: 0,
+ testsWritten: 0,
+ codeReviewed: 0,
+ deployed: 0,
+ documented: 0,
+ });
+
+ const [qualityMetrics, setQualityMetrics] = useState({
+ compileCheck: true,
+ testCoverage: 85,
+ securityScore: 92,
+ });
+
+ const handleGeneratePlan = () => {
+ if (!goal.trim()) return;
+
+ setIsPlanGenerated(true);
+ setCurrentPhase(0);
+ setIsRunning(true);
+ setWorkflowStage("research");
+
+ // Sequential phase progression with delays
+ setTimeout(() => setCurrentPhase(1), 1000);
+ setTimeout(() => setCurrentPhase(2), 8000);
+ setTimeout(() => setCurrentPhase(3), 16000);
+ setTimeout(() => setCurrentPhase(4), 24000);
+ setTimeout(() => setCurrentPhase(5), 32000);
+ setTimeout(() => {
+ setIsRunning(false);
+ setCurrentPhase(5);
+ setWorkflowStage("review"); // Move to review after research completes
+ }, 40000);
+ };
+
+ const handleApproveResearch = () => {
+ console.log("Approving research, transitioning to development phase");
+ setWorkflowStage("development");
+ setDevPhase(0);
+ setIsRunning(true);
+
+ // Start development swarm execution
+ setTimeout(() => {
+ console.log("Dev phase 1");
+ setDevPhase(1);
+ }, 1000);
+ setTimeout(() => {
+ console.log("Dev phase 2");
+ setDevPhase(2);
+ }, 8000);
+ setTimeout(() => {
+ console.log("Dev phase 3");
+ setDevPhase(3);
+ }, 16000);
+ setTimeout(() => {
+ console.log("Dev phase 4");
+ setDevPhase(4);
+ }, 24000);
+ setTimeout(() => {
+ console.log("Dev phase 5");
+ setDevPhase(5);
+ }, 32000);
+ setTimeout(() => {
+ console.log("Development complete");
+ setIsRunning(false);
+ setDevPhase(5);
+ }, 40000);
+ };
+
+ const handleReviseResearch = (feedback: string) => {
+ console.log("Revising research with feedback:", feedback);
+ // Reset and restart research
+ setWorkflowStage("research");
+ handleGeneratePlan();
+ };
+
+ const handleStartSwarm = () => {
+ if (!isPlanGenerated) {
+ handleGeneratePlan();
+ return;
+ }
+
+ const newRunning = !isRunning;
+ setIsRunning(newRunning);
+
+ if (newRunning) {
+ setCurrentPhase(0);
+
+ // Sequential phase progression with delays
+ setTimeout(() => setCurrentPhase(1), 1000);
+ setTimeout(() => setCurrentPhase(2), 8000);
+ setTimeout(() => setCurrentPhase(3), 16000);
+ setTimeout(() => setCurrentPhase(4), 24000);
+ setTimeout(() => setCurrentPhase(5), 32000);
+ setTimeout(() => {
+ setIsRunning(false);
+ setCurrentPhase(5);
+ }, 40000);
+ } else {
+ setCurrentPhase(0);
+ }
+ };
+
+ const getPhaseStatus = (phaseIndex: number): StepStatus => {
+ if (currentPhase === 0 && !isRunning) return "pending";
+ if (phaseIndex < currentPhase) return "completed";
+ if (phaseIndex === currentPhase && isRunning) return "active";
+ if (phaseIndex === currentPhase && !isRunning) return "completed";
+ return "pending";
+ };
+
+ const shouldShowPhase = (phaseIndex: number): boolean => {
+ if (!isRunning && currentPhase === 0) return false;
+ return phaseIndex <= currentPhase;
+ };
+
+ // Auto-scroll to newly revealed cards
+ const assessmentRef = useRef<HTMLDivElement | null>(null);
+ const phaseRefs = useRef<Array<HTMLDivElement | null>>([]);
+
+ useEffect(() => {
+ // Scroll to the currently active phase card
+ if (phaseRefs.current[currentPhase]) {
+ setTimeout(() => {
+ phaseRefs.current[currentPhase]?.scrollIntoView({ behavior: 'smooth', block: 'start' });
+ }, 250);
+ }
+ }, [currentPhase]);
+
+ useEffect(() => {
+ // When planning starts, scroll to the assessment card first
+ if (isPlanGenerated && assessmentRef.current) {
+ setTimeout(() => {
+ assessmentRef.current?.scrollIntoView({ behavior: 'smooth', block: 'start' });
+ }, 200);
+ }
+ }, [isPlanGenerated]);
+
+ // Debug workflow stage changes
+ useEffect(() => {
+ console.log("Workflow stage changed to:", workflowStage);
+ console.log("Dev phase:", devPhase);
+ }, [workflowStage, devPhase]);
+
+ // Mock state for Goal Assessment - dynamically update based on current phase
+ const currentState = {
+ project_defined: goal.length > 0,
+ requirements_clear: currentPhase >= 1,
+ agents_ready: currentPhase >= 1,
+ architecture_planned: currentPhase >= 2,
+ code_implemented: currentPhase >= 3,
+ };
+
+ const goalState = {
+ project_defined: true,
+ requirements_clear: true,
+ agents_ready: true,
+ architecture_planned: true,
+ code_implemented: true,
+ tests_written: true,
+ code_reviewed: true,
+ deployed: true,
+ };
+
+ const stateGaps = currentPhase === 0 ? [
+ "Requirements need to be analyzed",
+ "Architecture needs to be designed",
+ "Implementation plan required",
+ "Test strategy must be defined",
+ "Deployment strategy needed",
+ ] : currentPhase === 1 ? [
+ "Architecture needs to be designed",
+ "Implementation plan required",
+ "Test strategy must be defined",
+ "Deployment strategy needed",
+ ] : currentPhase === 2 ? [
+ "Implementation plan required",
+ "Test strategy must be defined",
+ "Deployment strategy needed",
+ ] : currentPhase === 3 ? [
+ "Test strategy must be defined",
+ "Deployment strategy needed",
+ ] : currentPhase === 4 ? [
+ "Deployment strategy needed",
+ ] : [];
+
+ // Research phases - planning and analysis
+ const researchPhases = [
+ {
+ title: "Goal Assessment",
+ description: "Analyzing project requirements and current state",
+ icon: Target,
+ data: [
+ {
+ text: "Parse coding objective",
+ icon: FileText,
+ details: {
+ objective: "Break down the goal into actionable components",
+ agents: ["Research Agent"],
+ effects: ["Requirements extracted", "Scope defined"],
+ }
+ },
+ {
+ text: "Identify required technologies",
+ icon: Bot,
+ details: {
+ objective: "Determine which tools and frameworks are needed",
+ agents: ["Research Agent"],
+ effects: ["Tech stack identified", "Dependencies listed"],
+ }
+ },
+ {
+ text: "Assess complexity & feasibility",
+ icon: GitBranch,
+ details: {
+ objective: "Evaluate technical challenges and effort estimation",
+ agents: ["Research Agent"],
+ effects: ["Complexity score calculated", "Risk assessment complete"],
+ }
+ },
+ ],
+ metrics: [
+ { label: "Complexity", value: "Medium" },
+ { label: "Estimated Time", value: "2-4 weeks" },
+ ],
+ },
+ {
+ title: "Architecture Planning",
+ description: "Designing system structure and component interactions",
+ icon: GitBranch,
+ data: [
+ {
+ text: "Research architecture patterns",
+ icon: Server,
+ details: {
+ objective: "Evaluate different architectural approaches",
+ agents: ["Research Agent"],
+ sources: ["Clean Architecture", "Microservices patterns", "Domain-Driven Design"],
+ effects: ["Pattern selected", "Architecture outline created"],
+ }
+ },
+ {
+ text: "Design API contracts",
+ icon: Code,
+ details: {
+ objective: "Specify endpoints, data models, and interfaces",
+ agents: ["Research Agent"],
+ effects: ["API spec drafted", "Request/response schemas defined"],
+ }
+ },
+ {
+ text: "Plan database schema",
+ icon: Server,
+ details: {
+ objective: "Design data models and relationships",
+ agents: ["Research Agent"],
+ effects: ["ERD created", "Migration strategy planned"],
+ }
+ },
+ ],
+ metrics: [
+ { label: "Components", value: "12" },
+ { label: "API Endpoints", value: "8" },
+ ],
+ },
+ {
+ title: "Implementation Strategy",
+ description: "Planning development approach and milestones",
+ icon: Code,
+ data: [
+ {
+ text: "Define development phases",
+ icon: FileText,
+ details: {
+ objective: "Break down implementation into manageable phases",
+ agents: ["Research Agent"],
+ effects: ["Milestone roadmap created", "Dependencies mapped"],
+ }
+ },
+ {
+ text: "Identify agent responsibilities",
+ icon: Bot,
+ details: {
+ objective: "Assign tasks to specialized development agents",
+ agents: ["Research Agent"],
+ effects: ["Agent roster finalized", "Task distribution planned"],
+ }
+ },
+ {
+ text: "Research best practices",
+ icon: Shield,
+ details: {
+ objective: "Gather coding standards and security guidelines",
+ agents: ["Research Agent"],
+ sources: ["OWASP Top 10", "Industry standards", "Framework documentation"],
+ effects: ["Guidelines documented", "Code patterns selected"],
+ }
+ },
+ ],
+ metrics: [
+ { label: "Milestones", value: "5" },
+ { label: "Agents", value: "6" },
+ ],
+ },
+ {
+ title: "Testing Strategy",
+ description: "Planning quality assurance approach",
+ icon: TestTube,
+ data: [
+ {
+ text: "Define test coverage goals",
+ icon: TestTube,
+ details: {
+ objective: "Set targets for unit, integration, and E2E tests",
+ agents: ["Research Agent"],
+ effects: ["Coverage targets set", "Test types identified"],
+ }
+ },
+ {
+ text: "Research testing frameworks",
+ icon: Shield,
+ details: {
+ objective: "Evaluate testing tools and approaches",
+ agents: ["Research Agent"],
+ sources: ["Jest", "Vitest", "Testing Library", "Cypress"],
+ effects: ["Testing stack selected", "Setup plan created"],
+ }
+ },
+ ],
+ metrics: [
+ { label: "Target Coverage", value: "85%" },
+ { label: "Test Types", value: "3" },
+ ],
+ },
+ {
+ title: "Deployment Planning",
+ description: "Preparing production deployment strategy",
+ icon: FileText,
+ data: [
+ {
+ text: "Research deployment options",
+ icon: Server,
+ details: {
+ objective: "Evaluate hosting platforms and CI/CD tools",
+ agents: ["Research Agent"],
+ sources: ["Vercel", "Netlify", "AWS", "GitHub Actions"],
+ effects: ["Platform selected", "Deployment plan drafted"],
+ }
+ },
+ {
+ text: "Plan monitoring & observability",
+ icon: Zap,
+ details: {
+ objective: "Define logging, metrics, and alerting strategy",
+ agents: ["Research Agent"],
+ effects: ["Monitoring plan created", "Tools selected"],
+ }
+ },
+ ],
+ metrics: [
+ { label: "Services", value: "4" },
+ { label: "Environments", value: "3" },
+ ],
+ },
+ ];
+
+ // Development phases - actual implementation
+ const developmentPhases = [
+ {
+ title: "Project Setup",
+ description: "Initializing codebase and dependencies",
+ icon: FileText,
+ data: [
+ {
+ text: "Setup project structure",
+ icon: FileText,
+ details: {
+ objective: "Initialize repository with proper folder structure",
+ agents: ["DevOps Agent"],
+ files: ["package.json", "tsconfig.json", "vite.config.ts"],
+ effects: ["Repo created", "Dependencies installed", "Build configured"],
+ }
+ },
+ {
+ text: "Configure development environment",
+ icon: Server,
+ details: {
+ objective: "Setup linting, formatting, and dev tools",
+ agents: ["DevOps Agent"],
+ files: [".eslintrc", ".prettierrc", ".env.example"],
+ effects: ["ESLint configured", "Prettier configured", "Git hooks added"],
+ }
+ },
+ ],
+ metrics: [
+ { label: "Files Created", value: "12" },
+ { label: "Dependencies", value: "24" },
+ ],
+ },
+ {
+ title: "Core Implementation",
+ description: "Building main application features",
+ icon: Code,
+ data: [
+ {
+ text: "Implement authentication module",
+ icon: Shield,
+ details: {
+ objective: "Build JWT-based auth with login/signup",
+ agents: ["Implementation Agent"],
+ files: ["auth.service.ts", "auth.controller.ts", "auth.middleware.ts"],
+ effects: ["Auth endpoints created", "Token validation implemented", "Protected routes configured"],
+ metrics: [
+ { label: "Endpoints", value: "4" },
+ { label: "LOC", value: "287" },
+ ]
+ }
+ },
+ {
+ text: "Build REST API endpoints",
+ icon: Server,
+ details: {
+ objective: "Create CRUD operations for core resources",
+ agents: ["Implementation Agent"],
+ files: ["users.controller.ts", "posts.controller.ts", "api.routes.ts"],
+ effects: ["8 endpoints implemented", "Request validation added", "Error handling configured"],
+ metrics: [
+ { label: "Endpoints", value: "8" },
+ { label: "LOC", value: "456" },
+ ]
+ }
+ },
+ {
+ text: "Integrate database layer",
+ icon: Server,
+ details: {
+ objective: "Connect to PostgreSQL and implement data access",
+ agents: ["Implementation Agent"],
+ files: ["database.config.ts", "user.model.ts", "post.model.ts"],
+ effects: ["ORM configured", "Queries optimized", "Migrations created"],
+ metrics: [
+ { label: "Models", value: "5" },
+ { label: "LOC", value: "504" },
+ ]
+ }
+ },
+ ],
+ metrics: [
+ { label: "Files", value: "42" },
+ { label: "Total LOC", value: "1,247" },
+ ],
+ },
+ {
+ title: "Testing & Quality",
+ description: "Validating code quality and functionality",
+ icon: TestTube,
+ data: [
+ {
+ text: "Write unit tests",
+ icon: TestTube,
+ details: {
+ objective: "Create comprehensive test coverage",
+ agents: ["Testing Agent"],
+ files: ["auth.test.ts", "api.test.ts", "database.test.ts"],
+ effects: ["87% coverage achieved", "Edge cases covered", "Mock data created"],
+ metrics: [
+ { label: "Test Files", value: "12" },
+ { label: "Tests", value: "124" },
+ ]
+ }
+ },
+ {
+ text: "Run security analysis",
+ icon: Shield,
+ details: {
+ objective: "Scan for vulnerabilities and security issues",
+ agents: ["Code Review Agent"],
+ effects: ["0 critical issues", "2 minor warnings", "Security report generated"],
+ }
+ },
+ {
+ text: "Code review",
+ icon: FileCheck,
+ details: {
+ objective: "Review code quality and best practices",
+ agents: ["Code Review Agent"],
+ effects: ["Code approved", "Minor refactoring suggested", "Documentation updated"],
+ }
+ },
+ ],
+ metrics: [
+ { label: "Tests", value: "124" },
+ { label: "Coverage", value: "87%" },
+ ],
+ },
+ {
+ title: "Documentation",
+ description: "Creating comprehensive project documentation",
+ icon: FileText,
+ data: [
+ {
+ text: "Generate API documentation",
+ icon: FileText,
+ details: {
+ objective: "Create comprehensive API docs with examples",
+ agents: ["Documentation Agent"],
+ files: ["openapi.yaml", "README.md", "API.md"],
+ effects: ["OpenAPI spec generated", "Usage examples added", "Endpoint docs complete"],
+ }
+ },
+ {
+ text: "Write developer guides",
+ icon: Code,
+ details: {
+ objective: "Document setup, development, and deployment processes",
+ agents: ["Documentation Agent"],
+ files: ["CONTRIBUTING.md", "DEPLOYMENT.md", "ARCHITECTURE.md"],
+ effects: ["Setup guide written", "Architecture documented", "Contribution guidelines added"],
+ }
+ },
+ ],
+ metrics: [
+ { label: "Documents", value: "8" },
+ { label: "Pages", value: "24" },
+ ],
+ },
+ {
+ title: "Deployment",
+ description: "Deploying to production environment",
+ icon: Zap,
+ data: [
+ {
+ text: "Setup CI/CD pipeline",
+ icon: Zap,
+ details: {
+ objective: "Configure automated testing and deployment",
+ agents: ["DevOps Agent"],
+ files: [".github/workflows/ci.yml", ".github/workflows/deploy.yml"],
+ effects: ["GitHub Actions configured", "Auto-deploy enabled", "Environment secrets set"],
+ }
+ },
+ {
+ text: "Deploy to production",
+ icon: Server,
+ details: {
+ objective: "Launch application to live environment",
+ agents: ["DevOps Agent"],
+ effects: ["App deployed", "Monitoring active", "Health checks passing"],
+ metrics: [
+ { label: "Uptime", value: "99.9%" },
+ { label: "Response Time", value: "< 200ms" },
+ ]
+ }
+ },
+ ],
+ metrics: [
+ { label: "Environments", value: "3" },
+ { label: "Status", value: "Live" },
+ ],
+ },
+ ];
+
+ return (
+ <div className="min-h-screen bg-gradient-to-br from-background via-background to-primary/5">
+ <div className="container mx-auto p-6 space-y-6">
+ {/* Header */}
+ <div className="flex items-center justify-between">
+ <div>
+ <h1 className="text-4xl font-bold bg-gradient-to-r from-primary via-purple-500 to-blue-500 bg-clip-text text-transparent">
+ Coding Agent Swarm
+ </h1>
+ <p className="text-muted-foreground mt-2">
+ Intelligent multi-agent system for collaborative software development
+ </p>
+ </div>
+ </div>
+
+ {/* Goal Input */}
+ <Card className="border-2 border-primary/20">
+ <CardHeader>
+ <div className="flex items-center justify-between">
+ <div className="space-y-1.5">
+ <CardTitle className="flex items-center gap-2">
+ <Target className="w-5 h-5 text-primary" />
+ Coding Objective
+ </CardTitle>
+ <CardDescription>Define what you want the agent swarm to build</CardDescription>
+ </div>
+ <AdvancedSettingsModal />
+ </div>
+ </CardHeader>
+ <CardContent>
+ <div className="flex gap-3">
+ <Input
+ placeholder="e.g., Build REST API with JWT authentication and PostgreSQL"
+ value={goal}
+ onChange={(e) => setGoal(e.target.value)}
+ className="flex-1"
+ />
+ <Button
+ variant="outline"
+ className="gap-2"
+ onClick={handleGeneratePlan}
+ disabled={!goal.trim() || isRunning}
+ >
+ <Bot className="w-4 h-4" />
+ {isPlanGenerated && !isRunning ? "Regenerate Plan" : "Generate Plan"}
+ </Button>
+ </div>
+ </CardContent>
+ </Card>
+
+ {/* Research Phase */}
+ {isPlanGenerated && workflowStage === "research" && (
+ <div className="space-y-6">
+ <div ref={assessmentRef} className="animate-fade-in">
+ <StateAssessmentCard
+ currentState={currentState}
+ goalState={goalState}
+ stateGaps={stateGaps}
+ primaryColor="#a855f7"
+ accentColor="#3b82f6"
+ />
+ </div>
+
+ <div>
+ <div className="flex items-center justify-between mb-4">
+ <h3 className="text-lg font-semibold flex items-center gap-2 animate-fade-in">
+ <Bot className="w-5 h-5 text-purple-500" />
+ Research Phase Progress
+ </h3>
+ {isRunning && (
+ <Badge variant="outline" className="animate-pulse bg-purple-500/10 text-purple-400 border-purple-500/50">
+ <span className="inline-block w-2 h-2 bg-purple-500 rounded-full mr-2 animate-pulse"></span>
+ Researching...
+ </Badge>
+ )}
+ </div>
+ <div className="space-y-4 relative">
+ <div className="absolute left-2 top-6 bottom-6 w-0.5 bg-gradient-to-b from-purple-500/50 via-blue-500/50 to-green-500/50"
+ style={{
+ height: `${shouldShowPhase(researchPhases.length - 1) ? '100%' : `${(currentPhase / researchPhases.length) * 100}%`}`,
+ transition: 'height 0.5s ease-out'
+ }}
+ />
+
+ {researchPhases.map((phase, index) =>
+ shouldShowPhase(index) ? (
+ <div
+ key={index}
+ ref={(el) => (phaseRefs.current[index] = el)}
+ className="animate-fade-in opacity-0"
+ style={{
+ animationDelay: `${(index * 200) + 300}ms`,
+ animationFillMode: "forwards"
+ }}
+ >
+ <AgentStep
+ title={phase.title}
+ description={phase.description}
+ icon={phase.icon}
+ status={getPhaseStatus(index)}
+ data={phase.data}
+ metrics={phase.metrics}
+ primaryColor="#a855f7"
+ accentColor="#3b82f6"
+ cardBackgroundColor="#1a1a1a"
+ cardBorderColor="#404040"
+ textColor="#ffffff"
+ secondaryTextColor="#a3a3a3"
+ successColor="#22c55e"
+ animationSpeed="normal"
+ compactMode={false}
+ />
+ </div>
+ ) : null
+ )}
+ </div>
+ </div>
+ </div>
+ )}
+
+ {/* Review Phase */}
+ {workflowStage === "review" && (
+ <div className="animate-fade-in space-y-6">
+ <div className="flex items-center justify-between">
+ <h3 className="text-lg font-semibold">Research Review</h3>
+ {devPhase > 0 && (
+ <Button
+ variant="outline"
+ onClick={() => setWorkflowStage("development")}
+ className="flex items-center gap-2"
+ >
+ <Code className="w-4 h-4" />
+ Back to Development
+ </Button>
+ )}
+ </div>
+
+ {/* Tabs visible during review */}
+ <Tabs defaultValue="dashboard" className="space-y-4">
+ <TabsList className="grid w-full grid-cols-5">
+ <TabsTrigger value="dashboard">Dashboard</TabsTrigger>
+ <TabsTrigger value="tasks">Tasks</TabsTrigger>
+ <TabsTrigger value="execution">Execution</TabsTrigger>
+ <TabsTrigger value="quality">Quality</TabsTrigger>
+ <TabsTrigger value="logs">Logs</TabsTrigger>
+ </TabsList>
+
+ <TabsContent value="dashboard" className="space-y-6">
+ <div>
+ <div className="flex items-center justify-between mb-4">
+ <h3 className="text-lg font-semibold flex items-center gap-2">
+ <Target className="w-5 h-5 text-primary" />
+ Research Summary
+ </h3>
+ <Badge variant="outline" className="bg-green-500/10 text-green-400 border-green-500/50">
+ <CheckCircle2 className="w-3 h-3 mr-1" />
+ Complete
+ </Badge>
+ </div>
+
+ <div className="space-y-4 relative">
+ <div className="absolute left-2 top-6 bottom-6 w-0.5 bg-gradient-to-b from-purple-500/50 via-blue-500/50 to-green-500/50" />
+
+ {researchPhases.map((phase, index) => (
+ <div key={index} className="animate-fade-in">
+ <AgentStep
+ title={phase.title}
+ description={phase.description}
+ icon={phase.icon}
+ status="completed"
+ data={phase.data}
+ metrics={phase.metrics}
+ />
+ </div>
+ ))}
+ </div>
+ </div>
+ </TabsContent>
+
+ <TabsContent value="tasks">
+ <div className="space-y-6">
+ <Card>
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <GitBranch className="w-5 h-5 text-primary" />
+ Research Task Flow
+ </CardTitle>
+ <CardDescription>
+ Sequential research phases and their dependencies
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <DependencyGraph />
+ </CardContent>
+ </Card>
+
+ <Card>
+ <CardHeader>
+ <CardTitle>Research Task Breakdown</CardTitle>
+ </CardHeader>
+ <CardContent>
+ <div className="space-y-4">
+ {researchPhases.map((phase, index) => (
+ <div key={index} className="flex items-start gap-4 p-4 bg-muted/50 rounded-lg">
+ <div className="flex-shrink-0 w-8 h-8 rounded-full bg-green-500/20 flex items-center justify-center">
+ <CheckCircle2 className="w-4 h-4 text-green-500" />
+ </div>
+ <div className="flex-1">
+ <h4 className="font-semibold mb-1">{phase.title}</h4>
+ <p className="text-sm text-muted-foreground mb-2">{phase.description}</p>
+ <div className="flex gap-2">
+ {phase.metrics?.map((metric, i) => (
+ <Badge key={i} variant="outline" className="text-xs">
+ {metric.label}: {metric.value}
+ </Badge>
+ ))}
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+ </CardContent>
+ </Card>
+ </div>
+ </TabsContent>
+
+ <TabsContent value="execution">
+ <Tabs defaultValue="plan" className="space-y-4">
+ <TabsList className="w-full grid grid-cols-3">
+ <TabsTrigger value="plan">Research Plan</TabsTrigger>
+ <TabsTrigger value="activity">Agent Activity</TabsTrigger>
+ <TabsTrigger value="events">Event Timeline</TabsTrigger>
+ </TabsList>
+
+ <TabsContent value="plan" className="space-y-4">
+ <Card>
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <Network className="w-5 h-5 text-primary" />
+ Research Execution Plan
+ </CardTitle>
+ <CardDescription>
+ {researchPhases.length} Phases β€’ All Completed β€’ Goal: {goal}
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <PlanVisualization
+ actions={researchPhases.map((phase, idx) => ({
+ id: String(idx + 1),
+ name: phase.title,
+ cost: 2 + idx,
+ description: phase.description
+ }))}
+ currentActionId={undefined}
+ completedActionIds={researchPhases.map((_, idx) => String(idx + 1))}
+ />
+ </CardContent>
+ </Card>
+ </TabsContent>
+
+ <TabsContent value="activity">
+ <AgentActivityPanel
+ agents={[
+ { id: 'research', name: 'Research Agent', status: 'idle', type: 'Specialist' }
+ ]}
+ metrics={new Map([
+ ['research', {
+ tasksCompleted: researchPhases.length,
+ tasksActive: 0,
+ tasksFailed: 0,
+ avgCompletionTime: 5000,
+ totalTokens: 45000,
+ uptime: 40000
+ }]
+ ])}
+ />
+ </TabsContent>
+
+ <TabsContent value="events">
+ <RealTimeEventLog
+ events={researchPhases.map((phase, idx) => ({
+ type: 'STEP_COMPLETED',
+ timestamp: Date.now() - (researchPhases.length - idx) * 8000,
+ data: { step: phase.title, phase: idx + 1 }
+ }))}
+ />
+ </TabsContent>
+ </Tabs>
+ </TabsContent>
+
+ <TabsContent value="quality">
+ <div className="space-y-6">
+ <QualityGates metrics={{
+ compileCheck: true,
+ testCoverage: 100,
+ securityScore: 95
+ }} />
+
+ <Card>
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <Shield className="w-5 h-5 text-primary" />
+ Research Quality Metrics
+ </CardTitle>
+ </CardHeader>
+ <CardContent>
+ <div className="space-y-4">
+ <div className="flex items-center justify-between p-4 bg-green-500/10 rounded-lg border border-green-500/20">
+ <div>
+ <h4 className="font-semibold">Completeness</h4>
+ <p className="text-sm text-muted-foreground">All phases completed successfully</p>
+ </div>
+ <Badge variant="outline" className="bg-green-500/20 text-green-400 border-green-500/50">
+ 100%
+ </Badge>
+ </div>
+
+ <div className="flex items-center justify-between p-4 bg-blue-500/10 rounded-lg border border-blue-500/20">
+ <div>
+ <h4 className="font-semibold">Coverage</h4>
+ <p className="text-sm text-muted-foreground">Architecture, implementation, testing & deployment</p>
+ </div>
+ <Badge variant="outline" className="bg-blue-500/20 text-blue-400 border-blue-500/50">
+ Complete
+ </Badge>
+ </div>
+
+ <div className="flex items-center justify-between p-4 bg-purple-500/10 rounded-lg border border-purple-500/20">
+ <div>
+ <h4 className="font-semibold">Readiness</h4>
+ <p className="text-sm text-muted-foreground">Ready to proceed to development</p>
+ </div>
+ <Badge variant="outline" className="bg-purple-500/20 text-purple-400 border-purple-500/50">
+ Ready
+ </Badge>
+ </div>
+ </div>
+ </CardContent>
+ </Card>
+ </div>
+ </TabsContent>
+
+ <TabsContent value="logs">
+ <Card>
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <MessageSquare className="w-5 h-5 text-primary" />
+ Research Execution Logs
+ </CardTitle>
+ <CardDescription>
+ Detailed logs from all research phases
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <ScrollArea className="h-[500px]">
+ <div className="space-y-2 font-mono text-xs">
+ {researchPhases.flatMap((phase, phaseIdx) => [
+ <div key={`phase-${phaseIdx}-start`} className="text-blue-400">
+ [{new Date(Date.now() - (researchPhases.length - phaseIdx) * 8000).toLocaleTimeString()}] β–Ά Starting Phase {phaseIdx + 1}: {phase.title}
+ </div>,
+ ...phase.data.map((item, itemIdx) => (
+ <div key={`phase-${phaseIdx}-item-${itemIdx}`} className="ml-4 text-muted-foreground">
+ [{new Date(Date.now() - (researchPhases.length - phaseIdx) * 8000 + itemIdx * 1000).toLocaleTimeString()}] β€’ {item.text}
+ </div>
+ )),
+ ...phase.metrics.map((metric, metricIdx) => (
+ <div key={`phase-${phaseIdx}-metric-${metricIdx}`} className="ml-4 text-green-400">
+ [{new Date(Date.now() - (researchPhases.length - phaseIdx) * 8000 + phase.data.length * 1000).toLocaleTimeString()}] βœ“ {metric.label}: {metric.value}
+ </div>
+ )),
+ <div key={`phase-${phaseIdx}-complete`} className="text-green-500 font-semibold">
+ [{new Date(Date.now() - (researchPhases.length - phaseIdx - 1) * 8000).toLocaleTimeString()}] βœ“ Phase {phaseIdx + 1} Complete
+ </div>,
+ <div key={`phase-${phaseIdx}-spacer`} className="h-2" />
+ ])}
+ <div className="text-green-500 font-bold mt-4">
+ [{new Date().toLocaleTimeString()}] βœ“ All Research Phases Complete - Ready for Review
+ </div>
+ </div>
+ </ScrollArea>
+ </CardContent>
+ </Card>
+ </TabsContent>
+ </Tabs>
+
+ <ResearchReviewCard
+ goal={goal}
+ onApprove={handleApproveResearch}
+ onRevise={handleReviseResearch}
+ />
+ </div>
+ )}
+
+ {/* Development Phase */}
+ {workflowStage === "development" && (
+ <div className="space-y-4 animate-fade-in">
+ <div className="flex items-center justify-between">
+ <h3 className="text-lg font-semibold">Development Phase</h3>
+ <Button
+ variant="outline"
+ onClick={() => setWorkflowStage("review")}
+ className="flex items-center gap-2"
+ >
+ <Eye className="w-4 h-4" />
+ View Research Results
+ </Button>
+ </div>
+
+ <Tabs defaultValue="dashboard" className="space-y-4">
+ <TabsList className="grid w-full grid-cols-5">
+ <TabsTrigger value="dashboard">Dashboard</TabsTrigger>
+ <TabsTrigger value="tasks">Tasks</TabsTrigger>
+ <TabsTrigger value="execution">Execution</TabsTrigger>
+ <TabsTrigger value="quality">Quality</TabsTrigger>
+ <TabsTrigger value="logs">Logs</TabsTrigger>
+ </TabsList>
+
+ <TabsContent value="dashboard" className="space-y-6">
+ <div>
+ <div className="flex items-center justify-between mb-4">
+ <h3 className="text-lg font-semibold flex items-center gap-2 animate-fade-in">
+ <Code className="w-5 h-5 text-blue-500" />
+ Development Swarm Progress
+ </h3>
+ {isRunning && (
+ <Badge variant="outline" className="animate-pulse bg-blue-500/10 text-blue-400 border-blue-500/50">
+ <span className="inline-block w-2 h-2 bg-blue-500 rounded-full mr-2 animate-pulse"></span>
+ Building...
+ </Badge>
+ )}
+ </div>
+ <div className="space-y-4 relative">
+ <div className="absolute left-2 top-6 bottom-6 w-0.5 bg-gradient-to-b from-blue-500/50 via-green-500/50 to-emerald-500/50"
+ style={{
+ height: `${devPhase === developmentPhases.length ? '100%' : `${(devPhase / developmentPhases.length) * 100}%`}`,
+ transition: 'height 0.5s ease-out'
+ }}
+ />
+
+ {developmentPhases.map((phase, index) =>
+ index <= devPhase ? (
+ <div
+ key={index}
+ className="animate-fade-in opacity-0"
+ style={{
+ animationDelay: `${(index * 200) + 300}ms`,
+ animationFillMode: "forwards"
+ }}
+ >
+ <DevelopmentStep
+ title={phase.title}
+ description={phase.description}
+ icon={phase.icon}
+ status={index < devPhase ? "completed" : index === devPhase && isRunning ? "active" : index === devPhase ? "completed" : "pending"}
+ data={phase.data}
+ metrics={phase.metrics}
+ />
+ </div>
+ ) : null
+ )}
+ </div>
+ </div>
+ </TabsContent>
+
+ <TabsContent value="tasks">
+ <div className="space-y-6">
+ <TaskBoard swarmMode={swarmMode} />
+
+ {/* Task Dependencies */}
+ <Card>
+ <CardHeader>
+ <CardTitle className="flex items-center gap-2">
+ <GitBranch className="w-5 h-5 text-primary" />
+ Task Dependencies
+ </CardTitle>
+ </CardHeader>
+ <CardContent>
+ <DependencyGraph />
+ </CardContent>
+ </Card>
+ </div>
+ </TabsContent>
+
+ <TabsContent value="execution">
+ <Tabs defaultValue="plan" className="space-y-4">
+ <TabsList className="w-full grid grid-cols-4">
+ <TabsTrigger value="plan">Execution Plan</TabsTrigger>
+ <TabsTrigger value="current">Current Step</TabsTrigger>
+ <TabsTrigger value="activity">Agent Activity</TabsTrigger>
+ <TabsTrigger value="events">Event Log</TabsTrigger>
+ </TabsList>
+
+ {/* Execution Plan */}
+ <TabsContent value="plan" className="space-y-4">
+ <Card>
+ <CardHeader>
+ <div className="flex items-center justify-between">
+ <div>
+ <CardTitle className="flex items-center gap-2">
+ <Network className="w-5 h-5 text-primary" />
+ Execution Plan
+ </CardTitle>
+ <CardDescription className="mt-1">
+ 5 Actions β€’ Cost: 15 β€’ Est. 8m
+ </CardDescription>
+ </div>
+ <div className="flex gap-2">
+ <Button variant="outline" size="sm">Graph View</Button>
+ <Button variant="outline" size="sm">Timeline View</Button>
+ </div>
+ </div>
+ </CardHeader>
+ <CardContent>
+ <PlanVisualization
+ actions={[
+ { id: '1', name: 'Setup Architecture', cost: 3, description: 'Define system design' },
+ { id: '2', name: 'Design API', cost: 2, description: 'Specify endpoints' },
+ { id: '3', name: 'Implement Backend', cost: 5, description: 'Build REST API' },
+ { id: '4', name: 'Write Tests', cost: 4, description: 'Create test suite' },
+ { id: '5', name: 'Deploy', cost: 1, description: 'Launch to production' }
+ ]}
+ currentActionId={currentPhase > 0 ? String(Math.min(currentPhase, 5)) : undefined}
+ completedActionIds={Array.from({ length: Math.max(0, currentPhase - 1) }, (_, i) => String(i + 1))}
+ />
+ </CardContent>
+ </Card>
+ </TabsContent>
+
+ {/* Current Step */}
+ <TabsContent value="current" className="space-y-4">
+ <div className="grid grid-cols-1 lg:grid-cols-3 gap-6">
+ <div className="lg:col-span-2">
+ <Card>
+ <CardHeader>
+ <div className="flex items-center justify-between">
+ <div>
+ <CardTitle>Current Step</CardTitle>
+ <CardDescription>
+ {researchPhases[Math.min(currentPhase - 1, researchPhases.length - 1)]?.title || 'Planning'}
+ </CardDescription>
+ </div>
+ <div className="flex gap-2">
+ <Button size="sm" variant="outline" onClick={handleStartSwarm} disabled={isRunning}>
+ <Play className="w-4 h-4 mr-1" />
+ Resume
+ </Button>
+ <Button size="sm" variant="outline" onClick={() => setCurrentPhase(Math.min(currentPhase + 1, researchPhases.length))}>
+ <SkipForward className="w-4 h-4 mr-1" />
+ Skip
+ </Button>
+ <Button size="sm" variant="outline" onClick={() => {
+ setCurrentPhase(Math.max(0, currentPhase - 1));
+ setIsRunning(true);
+ }}>
+ <RotateCw className="w-4 h-4 mr-1" />
+ Retry
+ </Button>
+ </div>
+ </div>
+ </CardHeader>
+ <CardContent>
+ <div className="space-y-4">
+ <div>
+ <h3 className="font-semibold mb-2">
+ {researchPhases[Math.min(currentPhase - 1, researchPhases.length - 1)]?.title}
+ </h3>
+ <p className="text-sm text-muted-foreground mb-2">
+ Cost: {researchPhases[Math.min(currentPhase - 1, researchPhases.length - 1)]?.data?.[0]?.details?.objective}
+ </p>
+ <p className="text-sm">
+ {researchPhases[Math.min(currentPhase - 1, researchPhases.length - 1)]?.description}
+ </p>
+ </div>
+
+ <div className="grid grid-cols-2 gap-4">
+ <div className="space-y-2">
+ <h4 className="text-sm font-semibold">Preconditions</h4>
+ <div className="space-y-1">
+ <div className="flex items-center gap-2 text-sm">
+ <CheckCircle2 className="w-4 h-4 text-green-500" />
+ <span>initialized: true</span>
+ </div>
+ <div className="flex items-center gap-2 text-sm">
+ <CheckCircle2 className="w-4 h-4 text-green-500" />
+ <span>requirements_clear: true</span>
+ </div>
+ </div>
+ </div>
+
+ <div className="space-y-2">
+ <h4 className="text-sm font-semibold">Effects</h4>
+ <div className="space-y-1">
+ <div className="flex items-center gap-2 text-sm">
+ <CheckCircle2 className="w-4 h-4 text-green-500" />
+ <span>architecture_defined: true</span>
+ </div>
+ <div className="flex items-center gap-2 text-sm">
+ <CheckCircle2 className="w-4 h-4 text-green-500" />
+ <span>api_designed: true</span>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div className="space-y-2">
+ <h4 className="text-sm font-semibold">Execution Log</h4>
+ <ScrollArea className="h-[120px] rounded border bg-muted/50 p-3">
+ <div className="space-y-1 font-mono text-xs">
+ <div>[2:49:25 PM] Starting architecture planning...</div>
+ <div>[2:49:25 PM] Analyzing requirements...</div>
+ <div>[2:49:25 PM] Generating system design...</div>
+ </div>
+ </ScrollArea>
+ </div>
+ </div>
+ </CardContent>
+ </Card>
+ </div>
+
+ <StepExecutionPanel
+ currentAction={{
+ name: researchPhases[Math.min(currentPhase - 1, researchPhases.length - 1)]?.title || 'Planning',
+ description: researchPhases[Math.min(currentPhase - 1, researchPhases.length - 1)]?.description,
+ cost: 3,
+ preconditions: { initialized: true, requirements_clear: true },
+ effects: { architecture_defined: true, api_designed: true }
+ }}
+ assignedAgent={{
+ name: agents[Math.min(currentPhase - 1, agents.length - 1)]?.name || 'Architecture Agent',
+ type: 'Specialist',
+ status: isRunning ? 'working' : 'idle'
+ }}
+ progress={isRunning ? 65 : 0}
+ logs={[
+ 'Starting architecture planning...',
+ 'Analyzing requirements...',
+ 'Generating system design...'
+ ]}
+ isPaused={!isRunning}
+ onPause={() => setIsRunning(false)}
+ onResume={() => setIsRunning(true)}
+ />
+ </div>
+ </TabsContent>
+
+ {/* Agent Activity */}
+ <TabsContent value="activity">
+ <AgentActivityPanel
+ agents={agents.map(a => ({ ...a, type: 'Specialist' }))}
+ metrics={new Map(agents.map(a => [
+ a.id,
+ {
+ tasksCompleted: Math.floor(Math.random() * 10),
+ tasksActive: a.status === 'working' ? 1 : 0,
+ tasksFailed: 0,
+ avgCompletionTime: 2500,
+ totalTokens: 15000,
+ uptime: 3600000
+ }
+ ]))}
+ />
+ </TabsContent>
+
+ {/* Event Log */}
+ <TabsContent value="events">
+ <RealTimeEventLog
+ events={[
+ { type: 'PLAN_GENERATED', timestamp: Date.now() - 5000, data: { actions: 5 } },
+ { type: 'AGENT_STARTED', timestamp: Date.now() - 4000, data: { agent: 'Architecture' } },
+ { type: 'STEP_COMPLETED', timestamp: Date.now() - 2000, data: { step: 'Analysis' } }
+ ]}
+ />
+ </TabsContent>
+ </Tabs>
+ </TabsContent>
+
+ <TabsContent value="quality">
+ <QualityGates metrics={qualityMetrics} />
+ </TabsContent>
+
+ <TabsContent value="logs">
+ <CommunicationLog />
+ </TabsContent>
+ </Tabs>
+ </div>
+ )}
+
+ {/* Placeholder when plan not generated */}
+ {!isPlanGenerated && (
+ <Card className="border-2 border-dashed border-primary/20">
+ <CardContent className="py-12 text-center">
+ <Bot className="w-16 h-16 mx-auto mb-4 text-muted-foreground opacity-50" />
+ <h3 className="text-xl font-semibold mb-2 text-muted-foreground">
+ Ready to Plan
+ </h3>
+ <p className="text-sm text-muted-foreground mb-4">
+ Enter a coding objective above and click "Generate Plan" to see the agent swarm in action
+ </p>
+ <div className="text-xs text-muted-foreground space-y-1">
+ <p>Example: "Build REST API with JWT authentication and PostgreSQL"</p>
+ <p>Example: "Create a React dashboard with charts and real-time data"</p>
+ </div>
+ </CardContent>
+ </Card>
+ )}
+ </div>
+ </div>
+ );
+}
diff --git a/v3/goal_ui/src/pages/Demo.tsx b/v3/goal_ui/src/pages/Demo.tsx
new file mode 100644
index 0000000000..fbb7016f5c
--- /dev/null
+++ b/v3/goal_ui/src/pages/Demo.tsx
@@ -0,0 +1,268 @@
+import { useEffect, useState } from "react";
+import { Link } from "react-router-dom";
+import { ArrowLeft, Copy, Check } from "lucide-react";
+import { Button } from "@/components/ui/button";
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
+import { useToast } from "@/hooks/use-toast";
+
+const Demo = () => {
+ const { toast } = useToast();
+ const [copied, setCopied] = useState(false);
+ const [widgetLoaded, setWidgetLoaded] = useState(false);
+
+ const embedCode = `<!-- RuFlo Research Widget -->
+<div id="ruflo-research-widget-container"></div>
+
+<!-- Optional: Configure widget appearance -->
+<script>
+ window.RufloResearchWidgetConfig = {
+ primaryColor: "#8b5cf6",
+ accentColor: "#22c55e",
+ backgroundColor: "#1a1a1a",
+ cardBackgroundColor: "#262626",
+ textColor: "#ffffff",
+ fontFamily: "system-ui",
+ defaultGoal: "Research the latest advancements in quantum computing"
+ };
+</script>
+
+<!-- Load widget styles -->
+<link rel="stylesheet" href="${window.location.origin}/widget.css">
+
+<!-- Load the widget -->
+<script src="${window.location.origin}/widget.js"></script>`;
+
+ useEffect(() => {
+ // Configure widget before loading
+ (window as any).RufloResearchWidgetConfig = {
+ primaryColor: "#8b5cf6",
+ accentColor: "#22c55e",
+ backgroundColor: "#1a1a1a",
+ cardBackgroundColor: "#262626",
+ textColor: "#ffffff",
+ fontFamily: "system-ui",
+ defaultGoal: "Research the latest advancements in quantum computing"
+ };
+
+ // Check if widget.js and widget.css exist
+ const checkWidget = async () => {
+ let link: HTMLLinkElement | null = null;
+ let script: HTMLScriptElement | null = null;
+
+ try {
+ const [jsCheck, cssCheck] = await Promise.all([
+ fetch("/widget.js", { method: "HEAD" }),
+ fetch("/widget.css", { method: "HEAD" })
+ ]);
+
+ if (!jsCheck.ok || !cssCheck.ok) {
+ toast({
+ title: "Widget Not Built",
+ description: "Run: npm run build:widget",
+ variant: "destructive",
+ });
+ return;
+ }
+
+ // Load CSS first
+ link = document.createElement("link");
+ link.rel = "stylesheet";
+ link.href = "/widget.css";
+ link.onerror = () => {
+ console.error("[Demo] Failed to load widget.css");
+ toast({
+ title: "Widget CSS Load Failed",
+ description: "Could not load widget styles",
+ variant: "destructive",
+ });
+ };
+ document.head.appendChild(link);
+
+ // Wait a bit for CSS to load
+ await new Promise(resolve => setTimeout(resolve, 100));
+
+ // Then load JS
+ script = document.createElement("script");
+ script.src = "/widget.js";
+ script.crossOrigin = "anonymous";
+ script.onload = () => {
+ setWidgetLoaded(true);
+ console.log("[Demo] Widget loaded successfully");
+
+ // Check if widget initialized
+ if ((window as any).RufloResearchWidget) {
+ console.log("[Demo] Widget version:", (window as any).RufloResearchWidget.version);
+ toast({
+ title: "Widget Ready",
+ description: "RuFlo Research Widget loaded successfully",
+ });
+ }
+ };
+ script.onerror = () => {
+ console.error("[Demo] Failed to load widget.js");
+ toast({
+ title: "Widget Load Failed",
+ description: "Check console for errors. Run: npm run build:widget",
+ variant: "destructive",
+ });
+ };
+
+ document.body.appendChild(script);
+ } catch (error) {
+ console.error("[Demo] Widget check failed:", error);
+ toast({
+ title: "Widget Check Failed",
+ description: "Could not verify widget files exist",
+ variant: "destructive",
+ });
+ }
+
+ // Cleanup function
+ return () => {
+ if (script && script.parentNode) {
+ script.parentNode.removeChild(script);
+ }
+ if (link && link.parentNode) {
+ link.parentNode.removeChild(link);
+ }
+ // Clear widget config
+ delete (window as any).RufloResearchWidgetConfig;
+ delete (window as any).RufloResearchWidget;
+ };
+ };
+
+ const cleanup = checkWidget();
+
+ return () => {
+ cleanup.then(cleanupFn => {
+ if (cleanupFn) cleanupFn();
+ });
+ };
+ }, [toast]);
+
+ const copyEmbedCode = () => {
+ navigator.clipboard.writeText(embedCode);
+ setCopied(true);
+ toast({
+ title: "Copied!",
+ description: "Embed code copied to clipboard",
+ });
+ setTimeout(() => setCopied(false), 2000);
+ };
+
+ return (
+ <div className="min-h-screen bg-background">
+ <header className="border-b border-border bg-card/50 backdrop-blur-sm sticky top-0 z-10">
+ <div className="container mx-auto px-4 py-4 flex items-center justify-between">
+ <Link to="/">
+ <Button variant="ghost" size="sm">
+ <ArrowLeft className="mr-2 h-4 w-4" />
+ Back to App
+ </Button>
+ </Link>
+ <div className="text-sm text-muted-foreground">
+ {widgetLoaded ? "βœ… Widget Active" : "⏳ Loading Widget..."}
+ </div>
+ </div>
+ </header>
+
+ <main className="container mx-auto px-4 py-8 max-w-6xl">
+ <div className="mb-8">
+ <h1 className="text-4xl font-bold mb-2">Embeddable Widget Demo</h1>
+ <p className="text-muted-foreground">
+ This page demonstrates how the GOAP widget works when embedded on external websites
+ </p>
+ </div>
+
+ <Card className="mb-8">
+ <CardHeader>
+ <CardTitle>Embed Code</CardTitle>
+ <CardDescription>
+ Copy this code to embed the widget on your website. The widget is fully self-contained
+ with CORS enabled for third-party embedding.
+ </CardDescription>
+ </CardHeader>
+ <CardContent className="space-y-4">
+ <div className="relative">
+ <pre className="bg-muted p-4 rounded-md overflow-x-auto text-sm">
+ <code>{embedCode}</code>
+ </pre>
+ <Button
+ size="sm"
+ variant="outline"
+ className="absolute top-2 right-2"
+ onClick={copyEmbedCode}
+ >
+ {copied ? (
+ <>
+ <Check className="mr-2 h-3 w-3" />
+ Copied
+ </>
+ ) : (
+ <>
+ <Copy className="mr-2 h-3 w-3" />
+ Copy
+ </>
+ )}
+ </Button>
+ </div>
+
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4 pt-4 border-t border-border">
+ <div>
+ <h4 className="text-sm font-semibold mb-2">Widget Features</h4>
+ <ul className="text-xs text-muted-foreground space-y-1">
+ <li>βœ… Fully standalone (no dependencies)</li>
+ <li>βœ… CORS-enabled for cross-domain use</li>
+ <li>βœ… Customizable colors and styling</li>
+ <li>βœ… Mobile-responsive design</li>
+ <li>βœ… AI-powered research workflows</li>
+ </ul>
+ </div>
+ <div>
+ <h4 className="text-sm font-semibold mb-2">Configuration Options</h4>
+ <ul className="text-xs text-muted-foreground space-y-1">
+ <li>β€’ <code>primaryColor</code> - Main theme color</li>
+ <li>β€’ <code>accentColor</code> - Accent/success color</li>
+ <li>β€’ <code>backgroundColor</code> - Page background</li>
+ <li>β€’ <code>defaultGoal</code> - Pre-filled goal text</li>
+ <li>β€’ <a href="/WIDGET-INTEGRATION.md" target="_blank" className="text-primary hover:underline">View full docs β†’</a></li>
+ </ul>
+ </div>
+ </div>
+ </CardContent>
+ </Card>
+
+ <div className="border-t border-border pt-8">
+ <h2 className="text-2xl font-semibold mb-4">Live Widget Preview</h2>
+ <p className="text-sm text-muted-foreground mb-6">
+ This is the actual widget as it would appear on an external site. The widget below is loaded
+ using the exact same code shown above.
+ </p>
+
+ {!widgetLoaded && (
+ <div className="mb-4 p-4 rounded-lg bg-muted border border-border">
+ <div className="flex items-center gap-2">
+ <div className="animate-spin rounded-full h-4 w-4 border-b-2 border-primary"></div>
+ <p className="text-sm">Loading widget...</p>
+ </div>
+ <p className="text-xs text-muted-foreground mt-2">
+ If the widget doesn't load, run: <code className="bg-background px-2 py-0.5 rounded">npm run build:widget</code>
+ </p>
+ </div>
+ )}
+
+ {/* Widget Container */}
+ <div
+ id="ruflo-research-widget-container"
+ className="min-h-[600px] rounded-lg border border-border overflow-hidden"
+ style={{
+ background: widgetLoaded ? 'transparent' : 'repeating-linear-gradient(45deg, rgba(255,255,255,.05), rgba(255,255,255,.05) 10px, transparent 10px, transparent 20px)'
+ }}
+ />
+ </div>
+ </main>
+ </div>
+ );
+};
+
+export default Demo;
diff --git a/v3/goal_ui/src/pages/Index.tsx b/v3/goal_ui/src/pages/Index.tsx
new file mode 100644
index 0000000000..7f6d2f96b9
--- /dev/null
+++ b/v3/goal_ui/src/pages/Index.tsx
@@ -0,0 +1,1644 @@
+import { useState, useEffect, useRef } from "react";
+import { Link as RouterLink } from "react-router-dom";
+import {
+ Brain,
+ Search,
+ FileSearch,
+ GitBranch,
+ Lightbulb,
+ CheckCircle2,
+ Target,
+ FileText,
+ Link,
+ Workflow,
+ Database,
+ TrendingUp,
+ Filter,
+ Zap,
+ Shield,
+ Sparkles,
+ Clock,
+ Network,
+ Settings,
+ ChevronRight,
+ RotateCcw,
+ ExternalLink,
+ Code,
+} from "lucide-react";
+import { AgentStep, StepStatus } from "@/components/AgentStep";
+import { Button } from "@/components/ui/button";
+import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@/components/ui/dialog";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import { GoalInput } from "@/components/GoalInput";
+import { WidgetCustomizer } from "@/components/WidgetCustomizer";
+import { ResearchReportModal } from "@/components/ResearchReportModal";
+import { ReviseResearchForm, type ResearchConfig } from "@/components/ReviseResearchForm";
+import { StateAssessmentCard } from "@/components/StateAssessmentCard";
+import { GOAPConfigDisplay } from "@/components/GOAPConfigDisplay";
+import { GOAPPlanner, parseGoal, type Step, type DataItem } from "@/lib/goapPlanner";
+import { useToast } from "@/hooks/use-toast";
+import { supabase } from "@/integrations/supabase/client";
+
+interface WidgetConfig {
+ primaryColor: string;
+ accentColor: string;
+ backgroundColor: string;
+ cardBackgroundColor: string;
+ cardBorderColor: string;
+ textColor: string;
+ secondaryTextColor: string;
+ successColor: string;
+ title: string;
+ description: string;
+ brandName: string;
+ defaultGoal: string;
+ fontFamily: string;
+ borderRadius: string;
+ animationSpeed: string;
+ cardSpacing: string;
+ showMetrics: boolean;
+ showStats: boolean;
+ compactMode: boolean;
+ enableAI: boolean;
+ aiModel: string;
+}
+
+const defaultResearchConfig: ResearchConfig = {
+ goal: "",
+ stateDefinition: {
+ currentState: { goalDefined: true, informationGathered: false },
+ goalState: { verified: true, insightsGenerated: true },
+ stateGaps: ["Information needs to be gathered", "Analysis required", "Insights need generation"],
+ },
+ researchGuidance: {
+ focusAreas: [],
+ excludeTopics: [],
+ depth: "moderate",
+ perspective: "technical",
+ timeframe: "recent",
+ },
+ prompts: {
+ systemPrompt: `You are an expert research assistant specializing in GOAP (Goal-Oriented Action Planning) research workflows.
+Your role is to provide precise, evidence-based information for each research step.
+Format your responses as structured data points that can be used in subsequent research steps.
+Always include sources, confidence levels, and timestamps when available.`,
+ searchQueryTemplate: "Latest {topic} advancements {year} research site:arxiv.org OR site:scholar.google.com OR site:ieee.org",
+ analysisPrompt: `Analyze the following content and extract:
+1. Key findings and methodologies
+2. Actionable insights and recommendations
+3. Technical details and specifications
+4. Sources and citations
+5. Confidence level (0-100%) based on source quality`,
+ synthesisPrompt: `Synthesize the research findings into:
+1. Coherent summary of key discoveries
+2. Connections between different sources
+3. Practical recommendations
+4. Identified gaps or conflicts in the data
+5. Overall confidence assessment`,
+ },
+ goapConfig: {
+ executionMode: "closed",
+ enableReplanning: true,
+ replanningTriggers: ["Action failure", "Low confidence results", "Missing preconditions"],
+ costOptimization: true,
+ parallelExecution: true,
+ },
+ actionConfig: {
+ maxActionCost: 5,
+ enableFallbacks: true,
+ validatePreconditions: true,
+ trackEffects: true,
+ },
+ parameters: {
+ maxSources: 15,
+ minConfidence: 85,
+ maxSteps: 7,
+ parallelAgents: 3,
+ timeout: 120,
+ },
+ filters: {
+ dateRange: "past-year",
+ sourceTypes: ["academic", "technical", "industry"],
+ languages: ["en"],
+ excludeDomains: [],
+ },
+};
+
+const Index = () => {
+ const { toast } = useToast();
+ const [widgetConfig, setWidgetConfig] = useState<WidgetConfig>({
+ primaryColor: "#8b5cf6",
+ accentColor: "#22c55e",
+ backgroundColor: "#1a1a1a",
+ cardBackgroundColor: "#262626",
+ cardBorderColor: "#404040",
+ textColor: "#ffffff",
+ secondaryTextColor: "#a3a3a3",
+ successColor: "#22c55e",
+ title: "Goal-Oriented Action Planning",
+ description: "AI-powered research planning using A* pathfinding and dynamic agent coordination",
+ brandName: "",
+ defaultGoal: "Research the latest advancements in quantum computing",
+ fontFamily: "system-ui",
+ borderRadius: "0.5rem",
+ animationSpeed: "normal",
+ cardSpacing: "1rem",
+ showMetrics: true,
+ showStats: true,
+ compactMode: false,
+ enableAI: true,
+ aiModel: "google/gemini-2.5-flash",
+ });
+ const [showCustomizer, setShowCustomizer] = useState(false);
+ const [userGoal, setUserGoal] = useState<string>("");
+ const [isPlanning, setIsPlanning] = useState(false);
+ const [planGenerated, setPlanGenerated] = useState(false);
+ const [steps, setSteps] = useState<Step[]>([]);
+ const [isRunning, setIsRunning] = useState(false);
+ const [visibleSteps, setVisibleSteps] = useState<number>(1);
+ const [showFinalAnalysis, setShowFinalAnalysis] = useState(false);
+ const [showReportModal, setShowReportModal] = useState(false);
+ const [showReviseForm, setShowReviseForm] = useState(false);
+ const [finalRecommendations, setFinalRecommendations] = useState<any[]>([]);
+ const [showAdvancedSettings, setShowAdvancedSettings] = useState(false);
+ const [researchConfig, setResearchConfig] = useState<ResearchConfig>(defaultResearchConfig);
+ const [currentGOAPState, setCurrentGOAPState] = useState<Record<string, boolean | string | number>>(defaultResearchConfig.stateDefinition.currentState);
+ const [showGOAPCards, setShowGOAPCards] = useState(false);
+ const activeStepRef = useRef<HTMLDivElement>(null);
+ const goapCardsRef = useRef<HTMLDivElement>(null);
+ const objectiveRef = useRef<HTMLDivElement>(null);
+ const finalAnalysisRef = useRef<HTMLDivElement>(null);
+
+ // GOAP Action definitions
+ const createGOAPActions = (goal: string) => {
+ const { domain, action, keywords } = parseGoal(goal);
+ const keywordStr = keywords.join(", ");
+
+ return [
+ {
+ name: "analyzeGoal",
+ cost: 1,
+ preconditions: { goalDefined: true },
+ effects: { goalParsed: true },
+ stepGenerator: (userGoal: string) => ({
+ id: "1",
+ title: "Goal Analysis",
+ description: `Analyzing "${userGoal.slice(0, 60)}..." and breaking it down into actionable sub-goals.`,
+ icon: Target,
+ status: "pending" as StepStatus,
+ data: [
+ {
+ text: "Parse objective",
+ icon: FileText,
+ details: {
+ objective: "Extract and structure the high-level goal from natural language input",
+ preconditions: ["User input received", "NLP module initialized"],
+ effects: ["Structured goal object created", "Sub-goals identified"],
+ agents: ["Parser Agent", "NLP Agent"],
+ }
+ },
+ {
+ text: "Identify dependencies",
+ icon: Link,
+ details: {
+ objective: "Map relationships between actions and their requirements",
+ preconditions: ["Goal parsed", "Action library loaded"],
+ effects: ["Dependency graph generated", "Critical path identified"],
+ agents: ["Dependency Analyzer", "Graph Builder"],
+ sources: ["Action Registry", "State Definitions"]
+ }
+ },
+ {
+ text: "Map state transitions",
+ icon: Workflow,
+ details: {
+ objective: "Define how each action transforms the world state",
+ preconditions: ["Dependencies mapped", "State space defined"],
+ effects: ["Transition matrix created", "State reachability confirmed"],
+ agents: ["State Mapper", "Validator Agent"],
+ citations: ["GOAP: Goal-Oriented Action Planning - Orkin, J. (2006)"]
+ }
+ },
+ ],
+ metrics: [{ label: "Sub-goals", value: "3" }, { label: "Actions", value: "7" }],
+ }),
+ },
+ {
+ name: "assessState",
+ cost: 1,
+ preconditions: { goalParsed: true },
+ effects: { stateAssessed: true },
+ stepGenerator: () => ({
+ id: "2",
+ title: "State Assessment",
+ description: `Evaluating current knowledge about ${domain} and identifying information gaps.`,
+ icon: Brain,
+ status: "pending" as StepStatus,
+ data: [
+ {
+ text: "Assessing current state...",
+ icon: Database,
+ details: {
+ objective: `Assess current knowledge and capability state for ${goal}`,
+ effects: ["Baseline established", "Gaps identified"],
+ agents: ["State Assessor"],
+ }
+ },
+ {
+ text: "Defining success criteria...",
+ icon: CheckCircle2,
+ details: {
+ objective: `Define success criteria and validation requirements for ${domain}`,
+ preconditions: ["Goals defined"],
+ effects: ["Validation criteria set", "Acceptance tests defined"],
+ }
+ },
+ {
+ text: "Analyzing gaps...",
+ icon: TrendingUp,
+ details: {
+ objective: `Quantify differences between current and target state for ${action} in ${domain}`,
+ effects: ["Priority list generated", "Resource needs identified"],
+ agents: ["Gap Analyzer", "Priority Ranker"],
+ }
+ },
+ ],
+ metrics: [],
+ }),
+ },
+ {
+ name: "gatherInformation",
+ cost: 2,
+ preconditions: { stateAssessed: true },
+ effects: { informationGathered: true },
+ stepGenerator: () => ({
+ id: "3",
+ title: "Web Search",
+ description: `Conducting intelligent searches for: ${keywordStr}`,
+ icon: Search,
+ status: "pending" as StepStatus,
+ data: [
+ {
+ text: `Searching for ${action} ${keywords[0] || "methods"}...`,
+ icon: Search,
+ details: {
+ objective: `Execute targeted web searches for ${goal}`,
+ sources: ["arXiv.org", "Google Scholar", "ACM Digital Library"],
+ agents: ["Search Agent", "Query Optimizer"],
+ }
+ },
+ {
+ text: "Gathering sources...",
+ icon: Database,
+ details: {
+ objective: `Aggregate and catalog information sources for ${domain}`,
+ effects: ["Source database populated", "Relevance scores assigned"],
+ }
+ },
+ {
+ text: "Calculating relevance...",
+ icon: TrendingUp,
+ details: {
+ objective: `Calculate information quality and applicability metrics for ${keywordStr}`,
+ agents: ["Relevance Scorer", "ML Classifier"],
+ citations: ["Information Retrieval Metrics - Manning et al."]
+ }
+ },
+ ],
+ metrics: [],
+ }),
+ },
+ {
+ name: "analyzeDocuments",
+ cost: 2,
+ preconditions: { informationGathered: true },
+ effects: { documentsAnalyzed: true },
+ stepGenerator: () => ({
+ id: "4",
+ title: "Document Analysis",
+ description: `Processing documents related to ${domain} to extract key insights.`,
+ icon: FileSearch,
+ status: "pending" as StepStatus,
+ data: [
+ {
+ text: "Parsing documents...",
+ icon: FileText,
+ details: {
+ objective: `Extract structured data from ${domain} documents for ${goal}`,
+ preconditions: ["Documents retrieved", "Parser modules loaded"],
+ effects: ["Content extracted", "Metadata catalogued"],
+ agents: ["Document Parser", "Text Extractor"],
+ sources: ["PDF Parser", "HTML Scraper", "API Responses"]
+ }
+ },
+ {
+ text: "Extracting insights...",
+ icon: Lightbulb,
+ details: {
+ objective: `Identify key findings about ${keywordStr}`,
+ preconditions: ["Documents parsed", "NLP models ready"],
+ effects: ["Insights database populated", "Key points highlighted"],
+ agents: ["Insight Extractor", "NLP Analyzer", "Pattern Recognizer"],
+ citations: ["Named Entity Recognition - Nadeau & Sekine"]
+ }
+ },
+ {
+ text: "Validating claims...",
+ icon: Shield,
+ details: {
+ objective: `Verify factual accuracy for ${action} in ${domain}`,
+ preconditions: ["Insights extracted", "Validation rules defined"],
+ effects: ["Accuracy scores assigned", "Unreliable sources flagged"],
+ agents: ["Fact Checker", "Source Validator", "Cross-Referencer"],
+ sources: ["Fact-checking APIs", "Citation Databases"]
+ }
+ },
+ ],
+ metrics: [],
+ }),
+ },
+ {
+ name: "synthesizeKnowledge",
+ cost: 2,
+ preconditions: { documentsAnalyzed: true },
+ effects: { knowledgeSynthesized: true },
+ stepGenerator: () => ({
+ id: "5",
+ title: "Knowledge Synthesis",
+ description: `Synthesizing information from multiple ${domain} sources.`,
+ icon: GitBranch,
+ status: "pending" as StepStatus,
+ data: [
+ {
+ text: "Cross-referencing sources...",
+ icon: Link,
+ details: {
+ objective: `Correlate ${domain} information across multiple sources for ${goal}`,
+ preconditions: ["Multiple sources validated", "Correlation rules set"],
+ effects: ["Source connections mapped", "Confidence levels adjusted"],
+ agents: ["Cross-Referencer", "Correlation Analyzer"],
+ sources: ["Academic papers", "Industry reports", "Technical documentation"]
+ }
+ },
+ {
+ text: "Merging concepts...",
+ icon: GitBranch,
+ details: {
+ objective: `Combine ${keywordStr} concepts into unified knowledge structures`,
+ preconditions: ["Concepts identified", "Relationships defined"],
+ effects: ["Knowledge graph updated", "Concept taxonomy refined"],
+ agents: ["Concept Merger", "Ontology Builder", "Semantic Analyzer"],
+ citations: ["Knowledge Graphs - Hogan et al. (2021)"]
+ }
+ },
+ {
+ text: "Resolving conflicts...",
+ icon: CheckCircle2,
+ details: {
+ objective: `Handle contradictory information about ${action} in ${domain}`,
+ preconditions: ["Conflicts detected", "Resolution strategies loaded"],
+ effects: ["Consensus reached", "Conflict resolution logged"],
+ agents: ["Conflict Resolver", "Evidence Weigher", "Decision Maker"],
+ sources: ["Source credibility scores", "Temporal data", "Expert systems"]
+ }
+ },
+ ],
+ metrics: [{ label: "Sources", value: "18" }, { label: "Concepts", value: "12" }],
+ }),
+ },
+ {
+ name: "generateInsights",
+ cost: 2,
+ preconditions: { knowledgeSynthesized: true },
+ effects: { insightsGenerated: true },
+ stepGenerator: () => ({
+ id: "6",
+ title: "Insight Generation",
+ description: `Generating actionable insights for ${domain} based on research findings.`,
+ icon: Lightbulb,
+ status: "pending" as StepStatus,
+ data: [
+ {
+ text: "Generating insights...",
+ icon: Zap,
+ details: {
+ objective: `Create novel conclusions from synthesized ${domain} knowledge for ${goal}`,
+ preconditions: ["Knowledge synthesized", "Analysis complete"],
+ effects: ["Actionable insights created", "Recommendations formulated"],
+ agents: ["Insight Generator", "Recommendation Engine", "Inference Agent"],
+ citations: ["Automated Reasoning - Robinson (1965)", "AI Planning - Ghallab et al."]
+ }
+ },
+ {
+ text: "Prioritizing by impact...",
+ icon: TrendingUp,
+ details: {
+ objective: `Rank insights about ${keywordStr} by potential value and applicability`,
+ preconditions: ["Insights generated", "Impact metrics defined"],
+ effects: ["Priority scores assigned", "Implementation order set"],
+ agents: ["Priority Ranker", "Impact Analyzer", "ROI Calculator"],
+ sources: ["Business metrics", "Historical outcomes", "Expert heuristics"]
+ }
+ },
+ {
+ text: "Validating feasibility...",
+ icon: CheckCircle2,
+ details: {
+ objective: `Assess practicality of ${action} recommendations for ${domain}`,
+ preconditions: ["Insights prioritized", "Constraint database available"],
+ effects: ["Feasibility scores computed", "Resource needs estimated"],
+ agents: ["Feasibility Validator", "Resource Planner", "Constraint Checker"],
+ sources: ["Available resources", "Technical constraints", "Timeline requirements"]
+ }
+ },
+ ],
+ metrics: [],
+ }),
+ },
+ {
+ name: "verify",
+ cost: 1,
+ preconditions: { insightsGenerated: true },
+ effects: { verified: true },
+ stepGenerator: () => ({
+ id: "7",
+ title: "Verification",
+ description: "Cross-checking findings and ensuring accuracy before final presentation.",
+ icon: CheckCircle2,
+ status: "pending" as StepStatus,
+ data: [
+ {
+ text: "Verifying insights...",
+ icon: Shield,
+ details: {
+ objective: `Perform final quality assurance on ${domain} insights for ${goal}`,
+ preconditions: ["Insights validated", "Verification criteria set"],
+ effects: ["Quality confirmed", "Errors corrected"],
+ agents: ["Quality Assurance Agent", "Verification Bot", "Audit Agent"],
+ sources: ["Quality standards", "Best practices", "Validation protocols"]
+ }
+ },
+ {
+ text: "Checking sources...",
+ icon: Filter,
+ details: {
+ objective: `Re-validate all ${keywordStr} information sources for final output`,
+ preconditions: ["Sources catalogued", "Verification complete"],
+ effects: ["Source reliability confirmed", "Citations verified"],
+ agents: ["Source Checker", "Citation Validator", "Provenance Tracker"],
+ citations: ["Information Provenance - Buneman et al. (2001)"]
+ }
+ },
+ {
+ text: "Calculating confidence...",
+ icon: TrendingUp,
+ details: {
+ objective: `Calculate overall confidence in ${action} research findings`,
+ preconditions: ["All checks complete", "Confidence model loaded"],
+ effects: ["Final confidence score computed", "Report ready"],
+ agents: ["Confidence Calculator", "Statistical Analyzer", "Meta-Evaluator"],
+ sources: ["Validation results", "Source quality scores", "Cross-reference matches"]
+ }
+ },
+ ],
+ metrics: [],
+ }),
+ },
+ ];
+ };
+
+ // Handle goal submission and planning
+ const handleGoalSubmit = async (goal: string) => {
+ setUserGoal(goal);
+ setIsPlanning(true);
+ setShowFinalAnalysis(false);
+ setShowGOAPCards(false);
+
+ // Simulate planning phase
+ await new Promise(resolve => setTimeout(resolve, 1500));
+
+ // Reset GOAP state to initial
+ setCurrentGOAPState(researchConfig.stateDefinition.currentState);
+
+ // Create GOAP planner
+ const actions = createGOAPActions(goal);
+ const planner = new GOAPPlanner(actions);
+
+ // Calculate adaptive metrics based on goal complexity and GOAP config
+ const goalComplexity = goal.split(' ').length;
+ const adaptiveSubGoals = Math.min(
+ Math.max(2, Math.ceil(goalComplexity / 10)), // 2-5 sub-goals based on word count
+ researchConfig.parameters.maxSteps
+ );
+
+ const adaptiveActions = researchConfig.goapConfig.executionMode === "open"
+ ? researchConfig.parameters.maxSteps + 3 // More actions in open mode
+ : researchConfig.goapConfig.executionMode === "focused"
+ ? Math.min(5, researchConfig.parameters.maxSteps) // Fewer actions in focused mode
+ : researchConfig.parameters.maxSteps; // Normal for closed mode
+
+ // Define current and goal states
+ const currentState = {
+ goalDefined: true,
+ goalParsed: false,
+ stateAssessed: false,
+ informationGathered: false,
+ documentsAnalyzed: false,
+ knowledgeSynthesized: false,
+ insightsGenerated: false,
+ verified: false,
+ };
+
+ const goalState = {
+ goalDefined: true,
+ goalParsed: true,
+ stateAssessed: true,
+ informationGathered: true,
+ documentsAnalyzed: true,
+ knowledgeSynthesized: true,
+ insightsGenerated: true,
+ verified: true,
+ };
+
+ // Generate plan
+ const plan = planner.plan(currentState, goalState, goal);
+
+ if (plan.length === 0) {
+ toast({
+ title: "Planning Failed",
+ description: "Could not generate a valid plan for this objective.",
+ variant: "destructive",
+ });
+ setIsPlanning(false);
+ return;
+ }
+
+ // Update Goal Analysis step with adaptive metrics
+ if (plan[0]) {
+ plan[0].metrics = [
+ { label: "Sub-goals", value: String(adaptiveSubGoals) },
+ { label: "Actions", value: String(adaptiveActions) }
+ ];
+ }
+
+ toast({
+ title: "Plan Generated",
+ description: `Created ${plan.length}-step research workflow using GOAP algorithm.`,
+ });
+
+ setSteps(plan);
+ setIsPlanning(false);
+ setPlanGenerated(true);
+ setVisibleSteps(1);
+
+ // Auto-start execution with the generated plan
+ setTimeout(() => {
+ executeResearch(plan, goal);
+ }, 500);
+ };
+
+ // Execute research plan
+ const executeResearch = async (stepsToExecute?: Step[], researchGoal?: string) => {
+ const initialSteps = stepsToExecute || steps;
+ console.log('executeResearch started, steps:', initialSteps.length);
+ console.log('GOAP Config:', {
+ executionMode: researchConfig.goapConfig.executionMode,
+ enableReplanning: researchConfig.goapConfig.enableReplanning,
+ costOptimization: researchConfig.goapConfig.costOptimization,
+ parallelExecution: researchConfig.goapConfig.parallelExecution,
+ });
+
+ setIsRunning(true);
+ setShowFinalAnalysis(false);
+
+ // Animate GOAP cards in
+ setTimeout(() => setShowGOAPCards(true), 300);
+
+ // Wait for GOAP cards animation to complete (4 seconds total)
+ // State Assessment: 2s, Config: 1.5s delay + 2.5s = 4s total
+ await new Promise(resolve => setTimeout(resolve, 4500));
+
+ // Keep a working copy that we update with AI data
+ let workingSteps = [...initialSteps];
+
+ // Process each step sequentially
+ for (let i = 0; i < workingSteps.length; i++) {
+ console.log(`\n=== Processing step ${i}: ${workingSteps[i].title} ===`);
+
+ // Update GOAP state based on step progression
+ const stateUpdates: Record<string, boolean> = {
+ goalParsed: i >= 0,
+ stateAssessed: i >= 1,
+ informationGathered: i >= 2,
+ documentsAnalyzed: i >= 3,
+ knowledgeSynthesized: i >= 4,
+ insightsGenerated: i >= 5,
+ verified: i >= 6,
+ };
+
+ setCurrentGOAPState(prev => ({ ...prev, ...stateUpdates }));
+ console.log('GOAP State Updated:', stateUpdates);
+
+ // Show and activate current step
+ setVisibleSteps(i + 1);
+ setSteps((prev) => {
+ const newSteps = [...prev];
+ newSteps[i].status = "active";
+ return newSteps;
+ });
+
+ // Wait a moment for UI to update
+ await new Promise(resolve => setTimeout(resolve, 500));
+
+ // Call edge function to get real research data from Gemini
+ if (widgetConfig.enableAI) {
+ try {
+ const currentStep = workingSteps[i];
+
+ // Build context from all previous completed steps (with their AI data)
+ const previousStepsData = workingSteps.slice(0, i).map(step => ({
+ stepTitle: step.title,
+ data: step.data.map(item => {
+ const details = item.details as any;
+ return {
+ id: '',
+ title: item.text,
+ content: details?.objective || item.text,
+ source: details?.source || (Array.isArray(details?.sources) ? details.sources[0] : undefined),
+ confidence: details?.confidence,
+ timestamp: details?.timestamp || new Date().toISOString(),
+ };
+ })
+ }));
+
+ console.log(`πŸ“€ Calling Gemini API for step ${i}`);
+ console.log(` Context: ${previousStepsData.length} previous steps with ${previousStepsData.reduce((sum, s) => sum + s.data.length, 0)} total data items`);
+
+ const { data, error } = await supabase.functions.invoke('research-step', {
+ body: {
+ goal: researchGoal || userGoal,
+ stepTitle: currentStep.title,
+ stepDescription: currentStep.description,
+ stepType: currentStep.id,
+ aiModel: widgetConfig.aiModel,
+ config: {
+ researchGuidance: researchConfig.researchGuidance,
+ prompts: researchConfig.prompts,
+ parameters: researchConfig.parameters,
+ filters: researchConfig.filters,
+ },
+ previousStepsData: previousStepsData,
+ },
+ });
+
+ if (error) {
+ console.error('❌ Error fetching research data:', error);
+
+ // Check if replanning is enabled
+ if (researchConfig.goapConfig.enableReplanning) {
+ console.log('πŸ”„ Replanning enabled - checking triggers');
+ const shouldReplan = researchConfig.goapConfig.replanningTriggers.includes("Action failure");
+
+ if (shouldReplan) {
+ console.log('πŸ”„ Replanning triggered due to action failure');
+ toast({
+ title: "Replanning Triggered",
+ description: "Action failed - GOAP system is adapting the plan...",
+ });
+ }
+ }
+
+ toast({
+ title: "AI Research Error",
+ description: error.message || "Failed to generate research data",
+ variant: "destructive",
+ });
+ } else if (data && Array.isArray(data)) {
+ console.log(`βœ… Gemini returned ${data.length} items for step ${i}`);
+
+ // Transform AI data into step data format
+ const aiData = data.map((item: any) => ({
+ text: item.title,
+ icon: Sparkles,
+ details: {
+ objective: item.content,
+ source: item.source,
+ confidence: item.confidence,
+ timestamp: item.timestamp,
+ }
+ }));
+
+ // Update working copy with AI data (THIS is what gets passed to next step)
+ workingSteps[i].data = aiData;
+ console.log(`πŸ’Ύ Updated working copy of step ${i} - will be used as context for step ${i + 1}`);
+
+ // Also update UI state
+ setSteps((prev) => {
+ const newSteps = [...prev];
+ if (newSteps[i]) {
+ newSteps[i].data = aiData;
+ }
+ return newSteps;
+ });
+ }
+ } catch (err) {
+ console.error('Exception calling research-step:', err);
+ toast({
+ title: "AI Research Error",
+ description: "Failed to connect to research service",
+ variant: "destructive",
+ });
+ }
+ }
+
+ // Wait for research to complete (simulate processing time)
+ await new Promise(resolve => setTimeout(resolve, 2000));
+
+ // Complete current step
+ workingSteps[i].status = "completed";
+ setSteps((prev) => {
+ const newSteps = [...prev];
+ newSteps[i].status = "completed";
+ console.log(`βœ“ Completed step ${i}: ${newSteps[i].title}`);
+ return newSteps;
+ });
+
+ // Wait before moving to next step
+ await new Promise(resolve => setTimeout(resolve, 500));
+
+ console.log(`=== Step ${i} complete. Moving to next step ===\n`);
+ }
+
+ // All steps complete
+ setIsRunning(false);
+
+ // Generate final research report with all context
+ if (widgetConfig.enableAI) {
+ try {
+ // Build comprehensive context from all completed steps
+ const allResearchContext = workingSteps.map(step => ({
+ stepTitle: step.title,
+ data: step.data.map(item => {
+ const details = item.details as any;
+ return {
+ id: '',
+ title: item.text,
+ content: details?.objective || item.text,
+ source: details?.source || (Array.isArray(details?.sources) ? details.sources[0] : undefined),
+ confidence: details?.confidence,
+ timestamp: details?.timestamp || new Date().toISOString(),
+ };
+ })
+ }));
+
+ const { data, error } = await supabase.functions.invoke('research-step', {
+ body: {
+ goal: researchGoal || userGoal,
+ stepTitle: "Final Recommendations",
+ stepDescription: `Based on all research findings, provide specific, actionable recommendations that directly answer: "${researchGoal || userGoal}". Include concrete suggestions with supporting data from the research.`,
+ stepType: "final-report",
+ aiModel: widgetConfig.aiModel,
+ previousStepsData: allResearchContext,
+ },
+ });
+
+ if (!error && data && Array.isArray(data)) {
+ console.log('Final report recommendations generated:', data.length, 'items');
+ setFinalRecommendations(data);
+ }
+ } catch (err) {
+ console.error('Error generating final report:', err);
+ }
+ }
+
+ setTimeout(() => {
+ setShowFinalAnalysis(true);
+ }, 1000);
+ };
+
+ const resetAll = () => {
+ setUserGoal("");
+ setPlanGenerated(false);
+ setSteps([]);
+ setIsRunning(false);
+ setShowFinalAnalysis(false);
+ setShowReportModal(false);
+ setShowReviseForm(false);
+ setShowAdvancedSettings(false);
+ setShowGOAPCards(false);
+ setFinalRecommendations([]);
+ setResearchConfig(defaultResearchConfig);
+ setCurrentGOAPState(defaultResearchConfig.stateDefinition.currentState);
+ setVisibleSteps(1);
+ };
+
+ const handleReviseSubmit = (config: ResearchConfig) => {
+ console.log("Revised research config:", config);
+ setResearchConfig(config);
+ setShowReviseForm(false);
+ setUserGoal(config.goal);
+ handleGoalSubmit(config.goal);
+ toast({
+ title: "Research Revised",
+ description: "Starting new research with updated parameters...",
+ });
+ };
+
+ const handleAdvancedSettingsSubmit = (config: ResearchConfig) => {
+ console.log("Advanced research config:", config);
+ setResearchConfig(config);
+ setShowAdvancedSettings(false);
+
+ // If there's a goal in the config, update it
+ if (config.goal && config.goal !== userGoal) {
+ setUserGoal(config.goal);
+ }
+
+ toast({
+ title: "Advanced Settings Applied",
+ description: "Research parameters have been configured. Submit your research goal to begin.",
+ });
+ };
+
+ const handleGenerateWidget = () => {
+ toast({
+ title: "Widget Code Generated",
+ description: "Copy the embed code and paste it into your website.",
+ });
+ };
+
+ // Auto-scroll effects
+ useEffect(() => {
+ if (activeStepRef.current && isRunning) {
+ activeStepRef.current.scrollIntoView({
+ behavior: 'smooth',
+ block: 'center',
+ });
+ }
+ }, [visibleSteps, isRunning]);
+
+ useEffect(() => {
+ if (goapCardsRef.current && showGOAPCards) {
+ setTimeout(() => {
+ goapCardsRef.current?.scrollIntoView({
+ behavior: 'smooth',
+ block: 'start',
+ });
+ }, 200);
+
+ // After GOAP Configuration completes (1.5s delay + 2.5s animation = 4s), scroll to objective
+ setTimeout(() => {
+ objectiveRef.current?.scrollIntoView({
+ behavior: 'smooth',
+ block: 'center',
+ });
+ }, 4200);
+ }
+ }, [showGOAPCards]);
+
+ useEffect(() => {
+ if (finalAnalysisRef.current && showFinalAnalysis) {
+ setTimeout(() => {
+ finalAnalysisRef.current?.scrollIntoView({
+ behavior: 'smooth',
+ block: 'center',
+ });
+ }, 300);
+ }
+ }, [showFinalAnalysis]);
+
+ return (
+ <div
+ className="min-h-screen transition-colors duration-300"
+ style={{
+ backgroundColor: widgetConfig.backgroundColor,
+ fontFamily: widgetConfig.fontFamily,
+ }}
+ >
+ {/* Hero Section */}
+ <div className="border-b" style={{ borderColor: `${widgetConfig.primaryColor}40` }}>
+ <div className="max-w-4xl mx-auto px-4 sm:px-6 py-8 sm:py-12">
+ <div className="text-center animate-fade-in">
+ <div
+ className="inline-flex items-center gap-2 px-2 sm:px-3 py-1 sm:py-1.5 rounded border text-xs sm:text-sm mb-3 sm:mb-4"
+ style={{
+ backgroundColor: `${widgetConfig.primaryColor}20`,
+ borderColor: `${widgetConfig.primaryColor}40`,
+ color: widgetConfig.primaryColor
+ }}
+ >
+ <Network className="w-3 h-3 sm:w-4 sm:h-4" />
+ <span className="text-xs sm:text-sm">{widgetConfig.brandName || "GOAP Multi-Agent System"}</span>
+ </div>
+ <h1 className="text-2xl sm:text-3xl lg:text-4xl font-semibold mb-2 sm:mb-3 px-2" style={{ color: "#f5f5f5" }}>
+ {widgetConfig.title}
+ </h1>
+ <p className="text-xs sm:text-sm max-w-xl mx-auto px-4 mb-3" style={{ color: "#a3a3a3" }}>
+ {widgetConfig.description}
+ </p>
+ <div className="flex justify-center gap-2 flex-wrap">
+ {planGenerated && (
+ <Button
+ onClick={resetAll}
+ variant="outline"
+ size="sm"
+ className="gap-2 text-xs sm:text-sm"
+ >
+ <RotateCcw className="w-3 h-3 sm:w-4 sm:h-4" />
+ New Research
+ </Button>
+ )}
+ <RouterLink to="/demo">
+ <Button
+ variant="outline"
+ size="sm"
+ className="gap-2 text-xs sm:text-sm"
+ >
+ <ExternalLink className="w-3 h-3 sm:w-4 sm:h-4" />
+ <span className="hidden sm:inline">Widget Demo</span>
+ <span className="sm:hidden">Demo</span>
+ </Button>
+ </RouterLink>
+ <RouterLink to="/agents">
+ <Button
+ variant="outline"
+ size="sm"
+ className="gap-2 text-xs sm:text-sm"
+ >
+ <Code className="w-3 h-3 sm:w-4 sm:h-4" />
+ <span className="hidden sm:inline">Agent Swarm</span>
+ <span className="sm:hidden">Agents</span>
+ </Button>
+ </RouterLink>
+ <Button
+ onClick={() => setShowCustomizer(!showCustomizer)}
+ variant="outline"
+ size="sm"
+ className="gap-2 text-xs sm:text-sm"
+ >
+ <Settings className="w-3 h-3 sm:w-4 sm:h-4" />
+ <span className="hidden sm:inline">{showCustomizer ? "Close" : "Create Widget"}</span>
+ <span className="sm:hidden">{showCustomizer ? "Close" : "Widget"}</span>
+ </Button>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {/* Main Content */}
+ <div className="max-w-4xl mx-auto px-4 sm:px-6 py-8 sm:py-12">
+ {/* Widget Customization Modal */}
+ <Dialog open={showCustomizer} onOpenChange={setShowCustomizer}>
+ <DialogContent className="max-w-[95vw] sm:max-w-4xl max-h-[90vh] overflow-y-auto p-4 sm:p-6">
+ <DialogHeader>
+ <DialogTitle>Widget Customization</DialogTitle>
+ </DialogHeader>
+ <WidgetCustomizer
+ config={widgetConfig}
+ onConfigChange={setWidgetConfig}
+ onGenerate={handleGenerateWidget}
+ />
+ </DialogContent>
+ </Dialog>
+
+ {/* Goal Input */}
+ {!planGenerated && (
+ <div
+ style={{
+ '--card-bg': widgetConfig.backgroundColor,
+ '--border-color': `${widgetConfig.primaryColor}40`
+ } as React.CSSProperties}
+ >
+ <GoalInput
+ onSubmit={handleGoalSubmit}
+ isPlanning={isPlanning}
+ onAdvancedSettings={() => setShowAdvancedSettings(true)}
+ onConfigUpdate={(optimizedConfig) => {
+ setResearchConfig(prev => ({
+ ...prev,
+ researchGuidance: {
+ ...prev.researchGuidance,
+ ...optimizedConfig.researchGuidance
+ },
+ prompts: {
+ ...prev.prompts,
+ ...optimizedConfig.prompts
+ },
+ parameters: {
+ ...prev.parameters,
+ ...optimizedConfig.parameters
+ },
+ filters: {
+ ...prev.filters,
+ ...optimizedConfig.filters
+ },
+ goapConfig: {
+ ...prev.goapConfig,
+ ...optimizedConfig.goapConfig
+ }
+ }));
+ }}
+ />
+ </div>
+ )}
+
+ {/* Planning Status */}
+ {isPlanning && (
+ <div
+ className="mt-8 border rounded-lg p-6 animate-pulse"
+ style={{
+ backgroundColor: `${widgetConfig.backgroundColor}dd`,
+ borderColor: `${widgetConfig.primaryColor}40`
+ }}
+ >
+ <div className="flex items-center gap-3">
+ <Sparkles className="w-5 h-5 animate-spin" style={{ color: widgetConfig.primaryColor }} />
+ <div>
+ <h3 className="font-medium" style={{ color: "#f5f5f5" }}>Planning Research Workflow</h3>
+ <p className="text-sm" style={{ color: "#a3a3a3" }}>
+ Analyzing objective, identifying preconditions, calculating optimal action sequence...
+ </p>
+ </div>
+ </div>
+ </div>
+ )}
+
+ {/* Research Execution */}
+ {planGenerated && steps.length > 0 && (
+ <>
+ {/* GOAP Configuration and State Assessment - Animated */}
+ {showGOAPCards && (
+ <div ref={goapCardsRef} className="grid grid-cols-1 lg:grid-cols-2 gap-4 mb-6">
+ <div
+ className="opacity-0"
+ style={{
+ animation: 'fade-in 2s ease-out forwards',
+ animationDelay: '0ms'
+ }}
+ >
+ <StateAssessmentCard
+ currentState={currentGOAPState}
+ goalState={researchConfig.stateDefinition.goalState}
+ stateGaps={researchConfig.stateDefinition.stateGaps}
+ primaryColor={widgetConfig.primaryColor}
+ accentColor={widgetConfig.accentColor}
+ />
+ </div>
+ <div
+ className="opacity-0"
+ style={{
+ animation: 'fade-in 2.5s ease-out forwards',
+ animationDelay: '1500ms'
+ }}
+ >
+ <GOAPConfigDisplay
+ executionMode={researchConfig.goapConfig.executionMode}
+ enableReplanning={researchConfig.goapConfig.enableReplanning}
+ replanningTriggers={researchConfig.goapConfig.replanningTriggers}
+ costOptimization={researchConfig.goapConfig.costOptimization}
+ parallelExecution={researchConfig.goapConfig.parallelExecution}
+ maxActionCost={researchConfig.actionConfig.maxActionCost}
+ primaryColor={widgetConfig.primaryColor}
+ />
+ </div>
+ </div>
+ )}
+
+ {/* Control Button */}
+ <div ref={objectiveRef} className="flex flex-col sm:flex-row justify-between items-start sm:items-center gap-3 sm:gap-0 mb-6 sm:mb-8">
+ <Button
+ onClick={resetAll}
+ variant="outline"
+ size="sm"
+ disabled={isRunning}
+ className="gap-2"
+ >
+ <RotateCcw className="w-4 h-4" />
+ New Research
+ </Button>
+ <div className="text-xs sm:text-sm flex-1 min-w-0 text-center px-4" style={{ color: "#a3a3a3" }}>
+ <span className="font-medium" style={{ color: "#f5f5f5" }}>Objective:</span> <span className="break-words">{userGoal}</span>
+ </div>
+ <div className="w-[120px]" />
+ </div>
+
+ {/* Timeline */}
+ <div className="relative">
+ {/* Vertical line */}
+ <div
+ className="absolute left-0 sm:left-0 top-0 bottom-0 w-px ml-1.5 sm:ml-2.5"
+ style={{ backgroundColor: `${widgetConfig.primaryColor}40` }}
+ />
+
+ {/* Steps */}
+ <div
+ className="pl-6 sm:pl-10"
+ style={{
+ display: 'flex',
+ flexDirection: 'column',
+ gap: widgetConfig.cardSpacing
+ }}
+ >
+ {steps.slice(0, visibleSteps).map((step, index) => (
+ <div
+ key={step.id}
+ ref={index === visibleSteps - 1 ? activeStepRef : null}
+ >
+ <AgentStep
+ title={step.title}
+ description={step.description}
+ icon={step.icon}
+ status={step.status}
+ delay={0}
+ data={step.data}
+ metrics={widgetConfig.showMetrics ? step.metrics : undefined}
+ primaryColor={widgetConfig.primaryColor}
+ accentColor={widgetConfig.accentColor}
+ cardBackgroundColor={widgetConfig.cardBackgroundColor}
+ cardBorderColor={widgetConfig.cardBorderColor}
+ textColor={widgetConfig.textColor}
+ secondaryTextColor={widgetConfig.secondaryTextColor}
+ successColor={widgetConfig.successColor}
+ borderRadius={widgetConfig.borderRadius}
+ animationSpeed={widgetConfig.animationSpeed}
+ compactMode={widgetConfig.compactMode}
+ />
+ </div>
+ ))}
+ </div>
+ </div>
+
+ {/* Stats */}
+ {widgetConfig.showStats && (
+ <div className="mt-8 sm:mt-10 grid grid-cols-1 sm:grid-cols-3 gap-3 sm:gap-4">
+ <div
+ className="border p-4 text-center"
+ style={{
+ backgroundColor: `${widgetConfig.backgroundColor}dd`,
+ borderColor: `${widgetConfig.primaryColor}40`,
+ borderRadius: widgetConfig.borderRadius,
+ }}
+ >
+ <div className="text-2xl font-semibold mb-1" style={{ color: widgetConfig.primaryColor }}>
+ {steps.filter((s) => s.status === "completed").length}
+ </div>
+ <div className="text-xs" style={{ color: "#a3a3a3" }}>Completed</div>
+ </div>
+ <div
+ className="border p-4 text-center"
+ style={{
+ backgroundColor: `${widgetConfig.backgroundColor}dd`,
+ borderColor: `${widgetConfig.primaryColor}40`,
+ borderRadius: widgetConfig.borderRadius,
+ }}
+ >
+ <div className="text-2xl font-semibold mb-1" style={{ color: widgetConfig.primaryColor }}>
+ {steps.filter((s) => s.status === "active").length}
+ </div>
+ <div className="text-xs" style={{ color: "#a3a3a3" }}>Active</div>
+ </div>
+ <div
+ className="border p-4 text-center"
+ style={{
+ backgroundColor: `${widgetConfig.backgroundColor}dd`,
+ borderColor: `${widgetConfig.primaryColor}40`,
+ borderRadius: widgetConfig.borderRadius,
+ }}
+ >
+ <div className="text-2xl font-semibold mb-1" style={{ color: "#737373" }}>
+ {steps.filter((s) => s.status === "pending").length}
+ </div>
+ <div className="text-xs" style={{ color: "#a3a3a3" }}>Pending</div>
+ </div>
+ </div>
+ )}
+
+ {/* Final Research Report */}
+ {showFinalAnalysis && (
+ <div
+ ref={finalAnalysisRef}
+ className="mt-8 space-y-6 animate-scale-in"
+ >
+ {/* Header */}
+ <div
+ className="rounded-lg p-6"
+ style={{
+ background: `linear-gradient(to bottom right, ${widgetConfig.accentColor}1a, ${widgetConfig.accentColor}0d)`,
+ borderWidth: '1px',
+ borderStyle: 'solid',
+ borderColor: `${widgetConfig.accentColor}4d`
+ }}
+ >
+ <div className="flex items-start gap-4">
+ <div
+ className="p-3 rounded-lg"
+ style={{ backgroundColor: `${widgetConfig.accentColor}33` }}
+ >
+ <FileText className="w-6 h-6" style={{ color: widgetConfig.accentColor }} />
+ </div>
+
+ <div className="flex-1">
+ <h3 className="text-xl font-semibold mb-2 flex items-center gap-2" style={{ color: widgetConfig.accentColor }}>
+ Final Research Report
+ <CheckCircle2 className="w-5 h-5" />
+ </h3>
+ <p className="text-sm mb-4" style={{ color: "#a3a3a3" }}>
+ Comprehensive analysis generated by multi-agent GOAP research system
+ </p>
+
+ <div className="grid grid-cols-2 md:grid-cols-4 gap-2 sm:gap-3">
+ <div className="rounded p-3" style={{ backgroundColor: `${widgetConfig.backgroundColor}80` }}>
+ <div className="text-xs mb-1" style={{ color: "#a3a3a3" }}>Total Steps</div>
+ <div className="text-xl font-semibold" style={{ color: "#f5f5f5" }}>{steps.length}</div>
+ </div>
+ <div className="rounded p-3" style={{ backgroundColor: `${widgetConfig.backgroundColor}80` }}>
+ <div className="text-xs mb-1" style={{ color: "#a3a3a3" }}>Data Points</div>
+ <div className="text-xl font-semibold" style={{ color: "#f5f5f5" }}>
+ {steps.reduce((acc, step) => acc + (step.data?.length || 0), 0)}
+ </div>
+ </div>
+ <div className="rounded p-3" style={{ backgroundColor: `${widgetConfig.backgroundColor}80` }}>
+ <div className="text-xs mb-1" style={{ color: "#a3a3a3" }}>Confidence</div>
+ <div className="text-xl font-semibold" style={{ color: widgetConfig.accentColor }}>94%</div>
+ </div>
+ <div className="rounded p-3" style={{ backgroundColor: `${widgetConfig.backgroundColor}80` }}>
+ <div className="text-xs mb-1 flex items-center gap-1" style={{ color: "#a3a3a3" }}>
+ <Clock className="w-3 h-3" />
+ Duration
+ </div>
+ <div className="text-xl font-semibold" style={{ color: "#f5f5f5" }}>
+ {Math.round(steps.length * 3.5)}s
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {/* Executive Summary */}
+ <div
+ className="rounded-lg p-6"
+ style={{
+ backgroundColor: widgetConfig.cardBackgroundColor,
+ borderWidth: '1px',
+ borderStyle: 'solid',
+ borderColor: widgetConfig.cardBorderColor
+ }}
+ >
+ <h4 className="text-lg font-semibold mb-3 flex items-center gap-2" style={{ color: widgetConfig.textColor }}>
+ <Target className="w-5 h-5" style={{ color: widgetConfig.primaryColor }} />
+ Executive Summary
+ </h4>
+ <p className="text-sm leading-relaxed" style={{ color: widgetConfig.secondaryTextColor }}>
+ This research successfully analyzed <span style={{ color: widgetConfig.accentColor, fontWeight: 600 }}>"{userGoal}"</span> through
+ a {steps.length}-step Goal-Oriented Action Planning (GOAP) workflow. The system coordinated multiple specialized agents
+ to gather information, analyze documents, synthesize knowledge, and generate actionable insights with
+ high confidence scores across all validation checks.
+ </p>
+ </div>
+
+ {/* Tabbed Report Sections */}
+ <Tabs defaultValue="direct-answer" className="w-full">
+ <TabsList
+ className="w-full grid grid-cols-2 md:grid-cols-4 gap-1 md:gap-2 h-auto p-1"
+ style={{
+ backgroundColor: widgetConfig.cardBackgroundColor,
+ borderWidth: '1px',
+ borderStyle: 'solid',
+ borderColor: widgetConfig.cardBorderColor
+ }}
+ >
+ <TabsTrigger
+ value="direct-answer"
+ className="text-xs md:text-sm py-2 md:py-2.5"
+ style={{
+ color: widgetConfig.secondaryTextColor,
+ }}
+ >
+ <Sparkles className="w-4 h-4 mr-1 md:mr-2" />
+ <span className="hidden sm:inline">Direct Answer</span>
+ <span className="sm:hidden">Answer</span>
+ </TabsTrigger>
+ <TabsTrigger
+ value="key-findings"
+ className="text-xs md:text-sm py-2 md:py-2.5"
+ style={{
+ color: widgetConfig.secondaryTextColor,
+ }}
+ >
+ <Lightbulb className="w-4 h-4 mr-1 md:mr-2" />
+ <span className="hidden sm:inline">Key Findings</span>
+ <span className="sm:hidden">Findings</span>
+ </TabsTrigger>
+ <TabsTrigger
+ value="methodology"
+ className="text-xs md:text-sm py-2 md:py-2.5"
+ style={{
+ color: widgetConfig.secondaryTextColor,
+ }}
+ >
+ <Workflow className="w-4 h-4 mr-1 md:mr-2" />
+ <span className="hidden sm:inline">Methodology</span>
+ <span className="sm:hidden">Method</span>
+ </TabsTrigger>
+ <TabsTrigger
+ value="next-steps"
+ className="text-xs md:text-sm py-2 md:py-2.5"
+ style={{
+ color: widgetConfig.secondaryTextColor,
+ }}
+ >
+ <TrendingUp className="w-4 h-4 mr-1 md:mr-2" />
+ <span className="hidden sm:inline">Next Steps</span>
+ <span className="sm:hidden">Steps</span>
+ </TabsTrigger>
+ </TabsList>
+
+ {/* Direct Answer Tab */}
+ <TabsContent value="direct-answer" className="mt-4">
+ {finalRecommendations.length > 0 ? (
+ <div
+ className="rounded-lg p-6"
+ style={{
+ backgroundColor: widgetConfig.cardBackgroundColor,
+ borderWidth: '1px',
+ borderStyle: 'solid',
+ borderColor: widgetConfig.cardBorderColor
+ }}
+ >
+ <div className="space-y-4">
+ {finalRecommendations.slice(0, 4).map((rec: any, idx: number) => (
+ <div key={idx} className="rounded p-4" style={{ backgroundColor: `${widgetConfig.accentColor}0d` }}>
+ <div className="font-medium mb-1" style={{ color: widgetConfig.textColor }}>{rec.title}</div>
+ <p className="text-sm" style={{ color: widgetConfig.secondaryTextColor }}>{rec.content}</p>
+ {rec.source && (
+ <div className="mt-2 text-xs" style={{ color: widgetConfig.accentColor }}>Source: {rec.source}</div>
+ )}
+ </div>
+ ))}
+ </div>
+ </div>
+ ) : (
+ <div
+ className="rounded-lg p-6 text-center"
+ style={{
+ backgroundColor: widgetConfig.cardBackgroundColor,
+ borderWidth: '1px',
+ borderStyle: 'solid',
+ borderColor: widgetConfig.cardBorderColor
+ }}
+ >
+ <p className="text-sm" style={{ color: widgetConfig.secondaryTextColor }}>
+ No direct answers available yet. Complete the research to see results.
+ </p>
+ </div>
+ )}
+ </TabsContent>
+
+ {/* Key Findings Tab */}
+ <TabsContent value="key-findings" className="mt-4">
+ <div
+ className="rounded-lg p-6"
+ style={{
+ backgroundColor: widgetConfig.cardBackgroundColor,
+ borderWidth: '1px',
+ borderStyle: 'solid',
+ borderColor: widgetConfig.cardBorderColor
+ }}
+ >
+ <div className="space-y-3">
+ {steps.slice(0, 3).map((step, idx) => (
+ <div
+ key={idx}
+ className="rounded p-4"
+ style={{ backgroundColor: `${widgetConfig.primaryColor}0d` }}
+ >
+ <div className="flex items-start gap-3">
+ <div
+ className="p-1.5 rounded"
+ style={{ backgroundColor: `${widgetConfig.primaryColor}1a` }}
+ >
+ {step.icon && <step.icon className="w-4 h-4" style={{ color: widgetConfig.primaryColor }} />}
+ </div>
+ <div className="flex-1">
+ <h5 className="font-medium text-sm mb-1" style={{ color: widgetConfig.textColor }}>
+ {step.title}
+ </h5>
+ <p className="text-xs" style={{ color: widgetConfig.secondaryTextColor }}>
+ {step.description}
+ </p>
+ {step.data && step.data.length > 0 && (
+ <div className="mt-2 flex flex-wrap gap-1.5">
+ {step.data.slice(0, 3).map((item, i) => (
+ <span
+ key={i}
+ className="text-xs px-2 py-1 rounded"
+ style={{
+ backgroundColor: `${widgetConfig.accentColor}1a`,
+ color: widgetConfig.accentColor
+ }}
+ >
+ {item.text}
+ </span>
+ ))}
+ </div>
+ )}
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ </TabsContent>
+
+ {/* Methodology Tab */}
+ <TabsContent value="methodology" className="mt-4">
+ <div
+ className="rounded-lg p-6"
+ style={{
+ backgroundColor: widgetConfig.cardBackgroundColor,
+ borderWidth: '1px',
+ borderStyle: 'solid',
+ borderColor: widgetConfig.cardBorderColor
+ }}
+ >
+ <div className="space-y-2">
+ {steps.map((step, idx) => (
+ <div
+ key={idx}
+ className="flex items-center gap-3 text-sm"
+ >
+ <div
+ className="w-6 h-6 rounded-full flex items-center justify-center text-xs font-semibold"
+ style={{
+ backgroundColor: `${widgetConfig.successColor}33`,
+ color: widgetConfig.successColor
+ }}
+ >
+ {idx + 1}
+ </div>
+ <span style={{ color: widgetConfig.secondaryTextColor }}>
+ {step.title}
+ </span>
+ <div className="flex-1 h-px" style={{ backgroundColor: widgetConfig.cardBorderColor }} />
+ <CheckCircle2 className="w-4 h-4" style={{ color: widgetConfig.successColor }} />
+ </div>
+ ))}
+ </div>
+ </div>
+ </TabsContent>
+
+ {/* Next Steps Tab */}
+ <TabsContent value="next-steps" className="mt-4">
+ <div
+ className="rounded-lg p-6"
+ style={{
+ backgroundColor: widgetConfig.cardBackgroundColor,
+ borderWidth: '1px',
+ borderStyle: 'solid',
+ borderColor: widgetConfig.cardBorderColor
+ }}
+ >
+ <ul className="space-y-2">
+ {[
+ "Review all gathered data points and cross-reference findings",
+ "Validate insights with domain experts and stakeholders",
+ "Develop implementation plan based on prioritized recommendations",
+ "Monitor outcomes and iterate on initial strategies"
+ ].map((rec, idx) => (
+ <li
+ key={idx}
+ className="flex items-start gap-2 text-sm"
+ style={{ color: widgetConfig.secondaryTextColor }}
+ >
+ <ChevronRight className="w-4 h-4 mt-0.5 flex-shrink-0" style={{ color: widgetConfig.accentColor }} />
+ {rec}
+ </li>
+ ))}
+ </ul>
+ </div>
+ </TabsContent>
+ </Tabs>
+
+ {/* Footer */}
+ <div
+ className="rounded-lg p-4 flex items-center justify-between"
+ style={{
+ backgroundColor: `${widgetConfig.successColor}0d`,
+ borderWidth: '1px',
+ borderStyle: 'solid',
+ borderColor: `${widgetConfig.successColor}4d`
+ }}
+ >
+ <div className="flex items-center gap-2 text-sm">
+ <CheckCircle2 className="w-4 h-4" style={{ color: widgetConfig.successColor }} />
+ <span style={{ color: widgetConfig.successColor, fontWeight: 500 }}>
+ All verification checks passed
+ </span>
+ </div>
+ <Button
+ onClick={resetAll}
+ variant="outline"
+ size="sm"
+ className="gap-2"
+ >
+ <RotateCcw className="w-4 h-4" />
+ New Research
+ </Button>
+ <Button
+ onClick={() => setShowReportModal(true)}
+ size="sm"
+ className="gap-2"
+ style={{
+ backgroundColor: widgetConfig.accentColor,
+ color: '#fff'
+ }}
+ >
+ <FileText className="w-4 h-4" />
+ View Full Report
+ </Button>
+ </div>
+ </div>
+ )}
+ </>
+ )}
+ </div>
+
+ {/* Research Report Modal */}
+ <ResearchReportModal
+ open={showReportModal}
+ onOpenChange={setShowReportModal}
+ userGoal={userGoal}
+ steps={steps}
+ onRevise={() => {
+ setShowReportModal(false);
+ setShowReviseForm(true);
+ }}
+ primaryColor={widgetConfig.primaryColor}
+ accentColor={widgetConfig.accentColor}
+ successColor={widgetConfig.successColor}
+ />
+
+ {/* Revise Research Form Modal */}
+ <Dialog open={showReviseForm} onOpenChange={setShowReviseForm}>
+ <DialogContent className="max-w-[95vw] sm:max-w-5xl max-h-[90vh] overflow-y-auto">
+ <DialogHeader>
+ <DialogTitle className="flex items-center gap-2">
+ <RotateCcw className="w-5 h-5" />
+ Revise Research Configuration
+ </DialogTitle>
+ </DialogHeader>
+ <ReviseResearchForm
+ currentGoal={userGoal}
+ onSubmit={handleReviseSubmit}
+ onCancel={() => setShowReviseForm(false)}
+ primaryColor={widgetConfig.primaryColor}
+ accentColor={widgetConfig.accentColor}
+ backgroundColor={widgetConfig.backgroundColor}
+ />
+ </DialogContent>
+ </Dialog>
+
+ {/* Advanced Settings Modal */}
+ <Dialog open={showAdvancedSettings} onOpenChange={setShowAdvancedSettings}>
+ <DialogContent className="max-w-[95vw] sm:max-w-5xl max-h-[90vh] overflow-y-auto">
+ <DialogHeader>
+ <DialogTitle className="flex items-center gap-2">
+ <Settings className="w-5 h-5" />
+ Advanced Research Settings
+ </DialogTitle>
+ </DialogHeader>
+ <ReviseResearchForm
+ currentGoal={userGoal || researchConfig.goal}
+ onSubmit={handleAdvancedSettingsSubmit}
+ onCancel={() => setShowAdvancedSettings(false)}
+ initialConfig={researchConfig}
+ primaryColor={widgetConfig.primaryColor}
+ accentColor={widgetConfig.accentColor}
+ backgroundColor={widgetConfig.backgroundColor}
+ />
+ </DialogContent>
+ </Dialog>
+
+ {/* Footer */}
+ <footer className="border-t mt-16 py-6" style={{ borderColor: `${widgetConfig.primaryColor}20` }}>
+ <div className="max-w-4xl mx-auto px-4 sm:px-6 text-center">
+ <p className="text-sm" style={{ color: widgetConfig.secondaryTextColor }}>
+ Created with <span style={{ color: widgetConfig.accentColor }}>❀️</span> by{" "}
+ <a
+ href="https://ruv.io"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="font-medium hover:underline transition-colors"
+ style={{ color: widgetConfig.primaryColor }}
+ >
+ rUv.io
+ </a>
+ </p>
+ </div>
+ </footer>
+ </div>
+ );
+};
+
+export default Index;
diff --git a/v3/goal_ui/src/pages/NotFound.tsx b/v3/goal_ui/src/pages/NotFound.tsx
new file mode 100644
index 0000000000..f9cf7c5a6a
--- /dev/null
+++ b/v3/goal_ui/src/pages/NotFound.tsx
@@ -0,0 +1,24 @@
+import { useLocation } from "react-router-dom";
+import { useEffect } from "react";
+
+const NotFound = () => {
+ const location = useLocation();
+
+ useEffect(() => {
+ console.error("404 Error: User attempted to access non-existent route:", location.pathname);
+ }, [location.pathname]);
+
+ return (
+ <div className="flex min-h-screen items-center justify-center bg-gray-100">
+ <div className="text-center">
+ <h1 className="mb-4 text-4xl font-bold">404</h1>
+ <p className="mb-4 text-xl text-gray-600">Oops! Page not found</p>
+ <a href="/" className="text-blue-500 underline hover:text-blue-700">
+ Return to Home
+ </a>
+ </div>
+ </div>
+ );
+};
+
+export default NotFound;
diff --git a/v3/goal_ui/src/vite-env.d.ts b/v3/goal_ui/src/vite-env.d.ts
new file mode 100644
index 0000000000..11f02fe2a0
--- /dev/null
+++ b/v3/goal_ui/src/vite-env.d.ts
@@ -0,0 +1 @@
+/// <reference types="vite/client" />
diff --git a/v3/goal_ui/src/widget.tsx b/v3/goal_ui/src/widget.tsx
new file mode 100644
index 0000000000..d8ccf29255
--- /dev/null
+++ b/v3/goal_ui/src/widget.tsx
@@ -0,0 +1,115 @@
+import React from "react";
+import { createRoot } from "react-dom/client";
+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
+import { BrowserRouter } from "react-router-dom";
+import Index from "./pages/Index";
+import { Toaster } from "./components/ui/toaster";
+import "./index.css";
+
+const queryClient = new QueryClient({
+ defaultOptions: {
+ queries: {
+ staleTime: 5 * 60 * 1000,
+ retry: 1,
+ },
+ },
+});
+
+interface WidgetConfig {
+ primaryColor?: string;
+ accentColor?: string;
+ backgroundColor?: string;
+ cardBackgroundColor?: string;
+ textColor?: string;
+ fontFamily?: string;
+ defaultGoal?: string;
+}
+
+declare global {
+ interface Window {
+ RufloResearchWidgetConfig?: WidgetConfig;
+ RufloResearchWidget?: {
+ init: (containerId?: string) => void;
+ version: string;
+ };
+ }
+}
+
+// Widget initialization function
+function initRufloResearchWidget(containerId: string = "ruflo-research-widget-container"): void {
+ console.log("[RuFlo Research] Starting initialization...");
+
+ const container = document.getElementById(containerId);
+ if (!container) {
+ console.error(`[RuFlo Research] Container with id "${containerId}" not found`);
+ return;
+ }
+
+ console.log("[RuFlo Research] Container found:", containerId);
+
+ // Apply widget config if provided
+ const config = window.RufloResearchWidgetConfig;
+ if (config) {
+ console.log("[RuFlo Research] Applying configuration:", config);
+ if (config.primaryColor) container.style.setProperty("--primary", config.primaryColor);
+ if (config.accentColor) container.style.setProperty("--accent", config.accentColor);
+ if (config.backgroundColor) container.style.setProperty("--background", config.backgroundColor);
+ if (config.cardBackgroundColor) container.style.setProperty("--card", config.cardBackgroundColor);
+ if (config.textColor) container.style.setProperty("--foreground", config.textColor);
+ if (config.fontFamily) container.style.fontFamily = config.fontFamily;
+ }
+
+ try {
+ const root = createRoot(container);
+ root.render(
+ React.createElement(
+ React.StrictMode,
+ null,
+ React.createElement(
+ BrowserRouter,
+ null,
+ React.createElement(
+ QueryClientProvider,
+ { client: queryClient },
+ React.createElement(Index, null),
+ React.createElement(Toaster, null)
+ )
+ )
+ )
+ );
+
+ console.log("[RuFlo Research] βœ… Successfully initialized and rendered");
+ } catch (error) {
+ console.error("[RuFlo Research] ❌ Initialization error:", error);
+ }
+}
+
+// Auto-initialize on DOM ready
+function autoInit(): void {
+ if (document.readyState === "loading") {
+ document.addEventListener("DOMContentLoaded", () => {
+ console.log("[RuFlo Research] DOM ready, auto-initializing...");
+ initRufloResearchWidget();
+ });
+ } else {
+ console.log("[RuFlo Research] DOM already loaded, initializing...");
+ // Use setTimeout to ensure script has fully loaded
+ setTimeout(() => initRufloResearchWidget(), 0);
+ }
+}
+
+// Initialize only in browser environment
+if (typeof window !== "undefined") {
+ // Expose global API
+ window.RufloResearchWidget = {
+ init: initRufloResearchWidget,
+ version: "1.0.0",
+ };
+
+ console.log("[RuFlo Research] API exposed on window.RufloResearchWidget");
+
+ // Auto-initialize
+ autoInit();
+}
+
+export default initRufloResearchWidget;
diff --git a/v3/goal_ui/supabase/config.toml b/v3/goal_ui/supabase/config.toml
new file mode 100644
index 0000000000..ba223a0880
--- /dev/null
+++ b/v3/goal_ui/supabase/config.toml
@@ -0,0 +1,7 @@
+project_id = "eqzmqxtngbulzhimrymr"
+
+[functions.research-step]
+verify_jwt = false
+
+[functions.research-api]
+verify_jwt = true
\ No newline at end of file
diff --git a/v3/goal_ui/supabase/functions/generate-action-items/index.ts b/v3/goal_ui/supabase/functions/generate-action-items/index.ts
new file mode 100644
index 0000000000..5c10362c06
--- /dev/null
+++ b/v3/goal_ui/supabase/functions/generate-action-items/index.ts
@@ -0,0 +1,237 @@
+import "https://deno.land/x/[email protected]/mod.ts";
+import { serve } from "https://deno.land/[email protected]/http/server.ts";
+
+const corsHeaders = {
+ 'Access-Control-Allow-Origin': '*',
+ 'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey, content-type',
+};
+
+interface ActionItemsRequest {
+ goal: string;
+ researchContext: Array<{
+ stepTitle: string;
+ findings: Array<{
+ title: string;
+ content: string;
+ source?: string;
+ }>;
+ }>;
+ totalSteps: number;
+ totalDataPoints: number;
+}
+
+serve(async (req) => {
+ if (req.method === 'OPTIONS') {
+ return new Response(null, { headers: corsHeaders });
+ }
+
+ try {
+ const { goal, researchContext, totalSteps, totalDataPoints }: ActionItemsRequest = await req.json();
+
+ console.log('Generating action items for goal:', goal);
+
+ const LOVABLE_API_KEY = Deno.env.get('LOVABLE_API_KEY');
+ if (!LOVABLE_API_KEY) {
+ throw new Error('LOVABLE_API_KEY is not configured');
+ }
+
+ // Build research summary from all steps
+ let researchSummary = '';
+ researchContext.forEach(step => {
+ researchSummary += `\n${step.stepTitle}:\n`;
+ step.findings.forEach(finding => {
+ researchSummary += `β€’ ${finding.title}: ${finding.content}\n`;
+ if (finding.source) researchSummary += ` Source: ${finding.source}\n`;
+ });
+ });
+
+ const systemPrompt = `You are an expert strategic planner and implementation consultant. Generate contextual, actionable recommendations based on research findings.
+
+CRITICAL INSTRUCTIONS:
+- Generate action items that are DIRECTLY RELEVANT to the research goal
+- Base recommendations on ACTUAL research findings provided
+- Do NOT use generic "pilot program" or "scale to production" templates unless they make sense for this specific goal
+- Tailor action items to the domain and context of the research
+- Include specific, actionable steps with realistic timelines and resources
+
+For example:
+- If researching "best family car" β†’ recommend specific car models, comparison steps, test drives
+- If researching "law school alternatives" β†’ recommend specific programs, application steps, bar exam prep
+- If researching "quantum computing" β†’ recommend learning paths, tools, research papers
+- If researching business strategies β†’ recommend market analysis, competitor research, implementation plans`;
+
+ const userPrompt = `
+RESEARCH GOAL: ${goal}
+
+RESEARCH FINDINGS (${totalSteps} steps, ${totalDataPoints} data points):
+${researchSummary}
+
+Generate 3-4 CONTEXTUAL action items that directly help achieve or implement the research goal based on these findings.
+
+REQUIREMENTS:
+1. Each action item must be SPECIFIC to "${goal}" - not generic project management steps
+2. Reference actual research findings in the description
+3. Provide realistic timelines appropriate for the goal (not always "Week 1-4")
+4. Include relevant resources and metrics for this specific domain
+5. Identify domain-specific risks and mitigation strategies
+
+Also generate a comprehensive 2-3 paragraph executive summary that:
+- Directly addresses what was learned about "${goal}"
+- Highlights the most important findings with specifics
+- Provides clear conclusions and recommendations based on the research
+
+Format:
+{
+ "actionItems": [
+ {
+ "id": "1",
+ "title": "Specific action relevant to ${goal}",
+ "description": "Detailed description referencing actual research findings...",
+ "timeline": "Appropriate timeline (e.g., '1-2 weeks', '3 months', 'Immediately')",
+ "timelineDetails": "Breakdown of timeline phases",
+ "priority": "High" | "Medium" | "Low",
+ "resources": {
+ "budget": "Realistic budget if applicable, or 'Minimal cost' or 'Research only'",
+ "team": "Required people/roles",
+ "tools": ["Domain-specific tools/resources"]
+ },
+ "metrics": ["Specific success metrics for this action"],
+ "risks": [
+ {
+ "risk": "Domain-specific risk",
+ "mitigation": "Realistic mitigation strategy"
+ }
+ ],
+ "references": [
+ { "title": "Relevant resource", "url": "URL if applicable" }
+ ],
+ "researchContext": "How this connects to research findings"
+ }
+ ],
+ "summary": "Comprehensive 2-3 paragraph executive summary addressing the research goal with specific findings and recommendations..."
+}`;
+
+ const response = await fetch('https://ai.gateway.lovable.dev/v1/chat/completions', {
+ method: 'POST',
+ headers: {
+ 'Authorization': `Bearer ${LOVABLE_API_KEY}`,
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify({
+ model: 'google/gemini-2.5-flash',
+ messages: [
+ { role: 'system', content: systemPrompt },
+ { role: 'user', content: userPrompt }
+ ],
+ tools: [
+ {
+ type: "function",
+ function: {
+ name: "generate_action_plan",
+ description: "Generate contextual action items and executive summary based on research findings",
+ parameters: {
+ type: "object",
+ properties: {
+ actionItems: {
+ type: "array",
+ items: {
+ type: "object",
+ properties: {
+ id: { type: "string" },
+ title: { type: "string" },
+ description: { type: "string" },
+ timeline: { type: "string" },
+ timelineDetails: { type: "string" },
+ priority: { type: "string", enum: ["High", "Medium", "Low"] },
+ resources: {
+ type: "object",
+ properties: {
+ budget: { type: "string" },
+ team: { type: "string" },
+ tools: { type: "array", items: { type: "string" } }
+ }
+ },
+ metrics: { type: "array", items: { type: "string" } },
+ risks: {
+ type: "array",
+ items: {
+ type: "object",
+ properties: {
+ risk: { type: "string" },
+ mitigation: { type: "string" }
+ }
+ }
+ },
+ references: {
+ type: "array",
+ items: {
+ type: "object",
+ properties: {
+ title: { type: "string" },
+ url: { type: "string" }
+ }
+ }
+ },
+ researchContext: { type: "string" }
+ },
+ required: ["id", "title", "description", "timeline", "priority", "resources", "metrics"]
+ }
+ },
+ summary: {
+ type: "string",
+ description: "Comprehensive executive summary (2-3 paragraphs)"
+ }
+ },
+ required: ["actionItems", "summary"]
+ }
+ }
+ }
+ ],
+ tool_choice: { type: "function", function: { name: "generate_action_plan" } }
+ }),
+ });
+
+ if (!response.ok) {
+ if (response.status === 429) {
+ return new Response(JSON.stringify({ error: "Rate limits exceeded" }), {
+ status: 429,
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ });
+ }
+ if (response.status === 402) {
+ return new Response(JSON.stringify({ error: "AI usage limit reached" }), {
+ status: 402,
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ });
+ }
+ throw new Error(`AI gateway error: ${response.status}`);
+ }
+
+ const data = await response.json();
+ const toolCall = data.choices?.[0]?.message?.tool_calls?.[0];
+
+ if (!toolCall) {
+ throw new Error('No tool call in AI response');
+ }
+
+ const result = JSON.parse(toolCall.function.arguments);
+
+ console.log('Generated action items:', result.actionItems?.length || 0);
+
+ return new Response(JSON.stringify(result), {
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ });
+
+ } catch (error) {
+ console.error('Error in generate-action-items function:', error);
+ return new Response(
+ JSON.stringify({
+ error: error instanceof Error ? error.message : 'Unknown error occurred'
+ }),
+ {
+ status: 500,
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ }
+ );
+ }
+});
diff --git a/v3/goal_ui/supabase/functions/generate-research-goal/index.ts b/v3/goal_ui/supabase/functions/generate-research-goal/index.ts
new file mode 100644
index 0000000000..c6ee2e152a
--- /dev/null
+++ b/v3/goal_ui/supabase/functions/generate-research-goal/index.ts
@@ -0,0 +1,182 @@
+import "https://deno.land/x/[email protected]/mod.ts";
+import { serve } from "https://deno.land/[email protected]/http/server.ts";
+
+const corsHeaders = {
+ 'Access-Control-Allow-Origin': '*',
+ 'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey, content-type',
+};
+
+interface GenerateGoalRequest {
+ category: string;
+ customContext?: string;
+}
+
+serve(async (req) => {
+ if (req.method === 'OPTIONS') {
+ return new Response(null, { headers: corsHeaders });
+ }
+
+ try {
+ const { category, customContext }: GenerateGoalRequest = await req.json();
+
+ console.log('Generate research goal request:', { category, customContext });
+
+ const LOVABLE_API_KEY = Deno.env.get('LOVABLE_API_KEY');
+ if (!LOVABLE_API_KEY) {
+ throw new Error('LOVABLE_API_KEY is not configured');
+ }
+
+ const systemPrompt = `You are an expert research consultant and futurist who helps formulate cutting-edge, innovative research objectives that push boundaries.
+
+Generate 3 HIGHLY DIVERSE and NOVEL research goals for the given category. Each goal should be:
+- Innovative and forward-thinking (explore emerging trends, novel applications, or unconventional angles)
+- Specific and actionable (clear research direction, not vague exploration)
+- Current and relevant to 2024-2025 cutting-edge developments
+- Professionally articulated with compelling detail
+- DIFFERENT from each other (vary the approach, scale, application, or methodology)
+- Boundary-pushing (challenge conventional thinking, explore unexplored intersections)
+
+CRITICAL: Generate VARIETY across the 3 goals by varying:
+- Scale (micro vs macro, individual vs enterprise vs societal)
+- Application domain (different industries, use cases, or contexts)
+- Approach (technical implementation, business impact, ethical considerations, future predictions)
+- Time horizon (near-term practical vs long-term transformative)
+
+Examples of EXCELLENT diverse research goals for AI & ML:
+1. "Investigate the emergence of spontaneous goal-formation in multi-agent reinforcement learning systems deployed in competitive market simulations, focusing on measuring agency, cooperation patterns, and alignment drift over 10,000+ iteration cycles"
+2. "Analyze the ethical and regulatory frameworks needed for autonomous AI agents conducting financial trading with self-evolving risk strategies, examining liability models and human oversight mechanisms"
+3. "Research hybrid neurosymbolic architectures that combine LLMs with symbolic reasoning engines to solve multi-step mathematical proofs, benchmarking against GPT-5 and human mathematicians"
+
+Examples of POOR goals (too generic, not novel):
+- "Study machine learning applications in healthcare"
+- "Research neural network optimization techniques"
+- "Investigate AI ethics and bias"
+
+Push the boundaries. Be specific. Be innovative.`;
+
+ const categoryPrompts: Record<string, string> = {
+ 'finance': 'Generate 3 cutting-edge, diverse research goals for finance. Vary across: (1) emerging technologies (crypto, DeFi, AI trading), (2) novel market mechanisms or regulations, (3) behavioral/psychological aspects or systemic risks. Include specific metrics, timeframes, or novel applications. Examples: algorithmic stablecoin mechanisms, neurofinance trading patterns, tokenized real estate liquidity.',
+
+ 'business': 'Generate 3 innovative, diverse research goals for business. Vary across: (1) emerging business models or platforms, (2) organizational transformation or culture, (3) data-driven decision making or automation. Be specific about industry, scale, and measurable outcomes. Examples: DAO governance for enterprises, AI-augmented strategic planning, remote-first organizational psychology.',
+
+ 'marketing': 'Generate 3 boundary-pushing, diverse research goals for marketing. Vary across: (1) emerging channels or technologies (AI, AR/VR, Web3), (2) behavioral science or psychology, (3) measurement or attribution innovation. Include specific platforms, demographics, or novel approaches. Examples: neuromarketing with eye-tracking AI, decentralized creator economies, predictive CLV using graph neural networks.',
+
+ 'medical': 'Generate 3 cutting-edge, diverse research goals for medical/healthcare. Vary across: (1) emerging diagnostic or treatment technologies, (2) healthcare delivery or access innovations, (3) personalized/precision medicine or AI applications. Be specific about conditions, populations, or technologies. Examples: AI-discovered antibiotics using protein folding, CRISPR germline editing ethics, digital therapeutics efficacy for mental health.',
+
+ 'education': 'Generate 3 innovative, diverse research goals for education. Vary across: (1) emerging pedagogical technologies (AI tutors, VR, adaptive learning), (2) learning science or cognitive research, (3) educational equity or accessibility. Include specific age groups, subjects, or measurable learning outcomes. Examples: AI-generated personalized curricula, VR historical immersion effectiveness, neuroplasticity-optimized learning schedules.',
+
+ 'technical': 'Generate 3 cutting-edge, diverse research goals for technical/engineering. Vary across: (1) emerging architectures or paradigms, (2) performance or efficiency breakthroughs, (3) security or reliability innovations. Be specific about technologies, metrics, or novel approaches. Examples: quantum-resistant cryptography migration paths, edge AI model compression techniques, chaos engineering for distributed systems.',
+
+ 'coding': 'Generate 3 innovative, diverse research goals for coding/software development. Vary across: (1) emerging languages, frameworks, or paradigms, (2) AI-assisted development or automation, (3) code quality, testing, or collaboration tools. Include specific technologies or measurable productivity gains. Examples: LLM-powered automated test generation, effect systems for safer concurrency, AI code review for security vulnerabilities.',
+
+ 'ai-ml': 'Generate 3 CUTTING-EDGE, diverse research goals for AI, Machine Learning, and Autonomous Agents. MUST vary across: (1) agentic AI systems (multi-agent coordination, autonomous decision-making, goal-seeking behavior, emergent agency), (2) novel architectures or training paradigms (neurosymbolic, multimodal fusion, self-improving systems), (3) real-world applications or societal implications (alignment, safety, ethics, transformative capabilities). Be SPECIFIC about agent behaviors, architectural innovations, or measurable capabilities. Push boundaries with novel intersections. Examples: "Measure spontaneous tool-use emergence in LLM agents given only raw API documentation", "Benchmark multi-agent negotiation protocols in adversarial trading environments with evolving objectives", "Investigate constitutional AI approaches for value alignment in self-modifying agent systems", "Analyze swarm intelligence patterns in distributed AI agents solving NP-hard optimization problems".',
+
+ 'custom': `Generate 3 innovative, boundary-pushing research goals based on: ${customContext || 'general cutting-edge research topics'}. Make them specific, actionable, and explore novel angles or unconventional applications.`
+ };
+
+ const userPrompt = categoryPrompts[category.toLowerCase()] || categoryPrompts['custom'];
+
+ const response = await fetch('https://ai.gateway.lovable.dev/v1/chat/completions', {
+ method: 'POST',
+ headers: {
+ 'Authorization': `Bearer ${LOVABLE_API_KEY}`,
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify({
+ model: 'google/gemini-2.5-flash',
+ messages: [
+ { role: 'system', content: systemPrompt },
+ { role: 'user', content: userPrompt }
+ ],
+ tools: [
+ {
+ type: "function",
+ function: {
+ name: "generate_goals",
+ description: "Generate 3 specific research goals for the given category",
+ parameters: {
+ type: "object",
+ properties: {
+ goals: {
+ type: "array",
+ items: {
+ type: "object",
+ properties: {
+ title: {
+ type: "string",
+ description: "A concise, specific research goal (1-2 sentences max)"
+ },
+ category: {
+ type: "string",
+ description: "The category this goal belongs to"
+ }
+ },
+ required: ["title", "category"],
+ additionalProperties: false
+ },
+ minItems: 3,
+ maxItems: 3
+ }
+ },
+ required: ["goals"],
+ additionalProperties: false
+ }
+ }
+ }
+ ],
+ tool_choice: { type: "function", function: { name: "generate_goals" } }
+ }),
+ });
+
+ if (!response.ok) {
+ if (response.status === 429) {
+ console.error('Rate limit exceeded');
+ return new Response(JSON.stringify({ error: "Rate limits exceeded. Please try again later." }), {
+ status: 429,
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ });
+ }
+ if (response.status === 402) {
+ console.error('Payment required');
+ return new Response(JSON.stringify({ error: "AI usage limit reached. Please add credits to continue." }), {
+ status: 402,
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ });
+ }
+ const errorText = await response.text();
+ console.error('AI gateway error:', response.status, errorText);
+ throw new Error(`AI gateway error: ${response.status}`);
+ }
+
+ const data = await response.json();
+ console.log('AI response received');
+
+ // Extract structured data from tool call
+ const toolCall = data.choices?.[0]?.message?.tool_calls?.[0];
+ if (!toolCall) {
+ throw new Error('No tool call in AI response');
+ }
+
+ const result = JSON.parse(toolCall.function.arguments);
+ const goals = result.goals.map((g: any) => g.title);
+
+ console.log('Generated goals:', goals);
+
+ return new Response(JSON.stringify({ goals }), {
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ });
+
+ } catch (error) {
+ console.error('Error in generate-research-goal function:', error);
+ return new Response(
+ JSON.stringify({
+ error: error instanceof Error ? error.message : 'Unknown error occurred',
+ details: 'Failed to generate research goals'
+ }),
+ {
+ status: 500,
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ }
+ );
+ }
+});
diff --git a/v3/goal_ui/supabase/functions/optimize-research-config/index.ts b/v3/goal_ui/supabase/functions/optimize-research-config/index.ts
new file mode 100644
index 0000000000..daeb6c0c77
--- /dev/null
+++ b/v3/goal_ui/supabase/functions/optimize-research-config/index.ts
@@ -0,0 +1,313 @@
+import "https://deno.land/x/[email protected]/mod.ts";
+import { serve } from "https://deno.land/[email protected]/http/server.ts";
+
+const corsHeaders = {
+ 'Access-Control-Allow-Origin': '*',
+ 'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey, content-type',
+};
+
+interface OptimizeConfigRequest {
+ preset: string;
+ currentGoal?: string;
+}
+
+serve(async (req) => {
+ if (req.method === 'OPTIONS') {
+ return new Response(null, { headers: corsHeaders });
+ }
+
+ try {
+ const { preset, currentGoal }: OptimizeConfigRequest = await req.json();
+
+ console.log('Optimize config request:', { preset, currentGoal });
+
+ const LOVABLE_API_KEY = Deno.env.get('LOVABLE_API_KEY');
+ if (!LOVABLE_API_KEY) {
+ throw new Error('LOVABLE_API_KEY is not configured');
+ }
+
+ const systemPrompt = `You are an expert research workflow architect specializing in GOAP (Goal-Oriented Action Planning) configuration optimization.
+
+Generate optimized research configuration settings based on the given preset/objective. Your configuration should maximize research effectiveness for the specific use case.
+
+Consider:
+- Research depth appropriate for the objective
+- Source types and quality thresholds matching the domain
+- Execution parameters balancing speed and thoroughness
+- Perspective and focus areas relevant to the preset
+- GOAP settings for optimal planning and replanning
+
+Be specific and practical - these settings will directly control AI research behavior.`;
+
+ const presetPrompts: Record<string, string> = {
+ 'academic-deep': `Optimize for: Academic/Scientific Deep Research
+ - Maximum depth and rigor
+ - Academic and peer-reviewed sources prioritized
+ - High confidence thresholds (90%+)
+ - Comprehensive analysis with extensive cross-referencing
+ - Focus: Methodology, citations, reproducibility
+ - Timeframe: Include seminal works, not just recent
+ Goal: ${currentGoal || 'Scientific research with publication-grade rigor'}`,
+
+ 'industry-quick': `Optimize for: Industry Quick Scan
+ - Speed and actionable insights prioritized
+ - Industry reports, market data, business sources
+ - Moderate confidence acceptable (75%+)
+ - Surface to moderate depth
+ - Focus: Practical applications, ROI, trends
+ - Timeframe: Recent only (past 6-12 months)
+ Goal: ${currentGoal || 'Fast industry insights for business decisions'}`,
+
+ 'competitive-analysis': `Optimize for: Competitive Intelligence & Analysis
+ - Comprehensive competitor research
+ - Industry reports, news, company filings, social media
+ - Focus: Market positioning, strategies, strengths/weaknesses
+ - Moderate to deep depth
+ - Business and strategic perspective
+ - Parallel execution for multiple competitors
+ Goal: ${currentGoal || 'Competitive landscape analysis'}`,
+
+ 'technical-feasibility': `Optimize for: Technical Feasibility Study
+ - Technical and engineering focus
+ - Academic papers, technical documentation, GitHub
+ - Deep analysis of implementation details
+ - Focus: Architecture, performance, limitations, trade-offs
+ - High confidence for technical claims (85%+)
+ - Technical perspective with practical considerations
+ Goal: ${currentGoal || 'Technical implementation feasibility assessment'}`,
+
+ 'market-trends': `Optimize for: Market Trends & Predictions
+ - Trend analysis and future predictions
+ - Industry reports, market research, financial data
+ - Focus: Growth patterns, emerging opportunities, disruptions
+ - Moderate depth with broad coverage
+ - Business and analytical perspective
+ - Recent timeframe with historical context
+ Goal: ${currentGoal || 'Market trend analysis and forecasting'}`,
+
+ 'medical-clinical': `Optimize for: Medical/Clinical Research
+ - Medical journals, clinical trials, PubMed prioritized
+ - Very high confidence required (90%+)
+ - Deep analysis with safety/efficacy focus
+ - Focus: Clinical evidence, patient outcomes, safety profiles
+ - Academic and clinical perspective
+ - Exclude non-peer-reviewed sources
+ Goal: ${currentGoal || 'Clinical research with evidence-based analysis'}`,
+
+ 'startup-validation': `Optimize for: Startup/Business Idea Validation
+ - Market size, competition, customer needs
+ - Industry reports, surveys, competitor analysis
+ - Practical and business perspective
+ - Focus: Market gaps, validation metrics, go-to-market
+ - Moderate depth, broad coverage
+ - Cost-effective with parallel research
+ Goal: ${currentGoal || 'Startup idea validation and market assessment'}`,
+
+ 'policy-regulatory': `Optimize for: Policy & Regulatory Research
+ - Government sources, legal documents, policy papers
+ - High accuracy and recency critical
+ - Focus: Compliance, legal frameworks, regulatory trends
+ - Deep analysis with risk assessment
+ - Academic and legal perspective
+ - Exclude opinion pieces, prioritize official sources
+ Goal: ${currentGoal || 'Policy and regulatory compliance research'}`
+ };
+
+ const userPrompt = presetPrompts[preset.toLowerCase()] || `Optimize research settings for: ${preset}. Goal: ${currentGoal || 'general research'}`;
+
+ const response = await fetch('https://ai.gateway.lovable.dev/v1/chat/completions', {
+ method: 'POST',
+ headers: {
+ 'Authorization': `Bearer ${LOVABLE_API_KEY}`,
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify({
+ model: 'google/gemini-2.5-flash',
+ messages: [
+ { role: 'system', content: systemPrompt },
+ { role: 'user', content: userPrompt }
+ ],
+ tools: [
+ {
+ type: "function",
+ function: {
+ name: "generate_optimized_config",
+ description: "Generate optimized research configuration for the given preset",
+ parameters: {
+ type: "object",
+ properties: {
+ researchGuidance: {
+ type: "object",
+ properties: {
+ focusAreas: {
+ type: "array",
+ items: { type: "string" },
+ description: "Specific topics to emphasize (2-4 items)"
+ },
+ excludeTopics: {
+ type: "array",
+ items: { type: "string" },
+ description: "Topics to avoid (0-3 items)"
+ },
+ depth: {
+ type: "string",
+ enum: ["surface", "moderate", "deep"],
+ description: "Research depth level"
+ },
+ perspective: {
+ type: "string",
+ description: "Research perspective (technical/business/academic/practical)"
+ },
+ timeframe: {
+ type: "string",
+ description: "Time focus (recent/current-year/past-year/past-2-years/all-time)"
+ }
+ },
+ required: ["depth", "perspective", "timeframe"]
+ },
+ prompts: {
+ type: "object",
+ properties: {
+ systemPrompt: {
+ type: "string",
+ description: "Custom system prompt for AI (2-3 paragraphs)"
+ }
+ }
+ },
+ parameters: {
+ type: "object",
+ properties: {
+ maxSources: {
+ type: "number",
+ minimum: 5,
+ maximum: 25,
+ description: "Number of sources per step"
+ },
+ minConfidence: {
+ type: "number",
+ minimum: 70,
+ maximum: 95,
+ description: "Minimum confidence threshold (%)"
+ },
+ maxSteps: {
+ type: "number",
+ minimum: 5,
+ maximum: 10,
+ description: "Maximum research steps"
+ },
+ parallelAgents: {
+ type: "number",
+ minimum: 1,
+ maximum: 5,
+ description: "Number of parallel agents"
+ },
+ timeout: {
+ type: "number",
+ minimum: 60,
+ maximum: 300,
+ description: "Timeout in seconds"
+ }
+ },
+ required: ["maxSources", "minConfidence", "maxSteps"]
+ },
+ filters: {
+ type: "object",
+ properties: {
+ dateRange: {
+ type: "string",
+ description: "Date range filter (recent/current-year/past-year/past-2-years/all-time)"
+ },
+ sourceTypes: {
+ type: "array",
+ items: { type: "string" },
+ description: "Preferred source types (academic/technical/industry/news)"
+ },
+ excludeDomains: {
+ type: "array",
+ items: { type: "string" },
+ description: "Domains to exclude (0-3 items)"
+ }
+ },
+ required: ["dateRange", "sourceTypes"]
+ },
+ goapConfig: {
+ type: "object",
+ properties: {
+ executionMode: {
+ type: "string",
+ enum: ["focused", "closed", "open"],
+ description: "GOAP execution mode"
+ },
+ enableReplanning: {
+ type: "boolean",
+ description: "Enable adaptive replanning"
+ },
+ costOptimization: {
+ type: "boolean",
+ description: "Optimize for cost efficiency"
+ },
+ parallelExecution: {
+ type: "boolean",
+ description: "Enable parallel agent execution"
+ }
+ },
+ required: ["executionMode", "enableReplanning"]
+ }
+ },
+ required: ["researchGuidance", "parameters", "filters", "goapConfig"],
+ additionalProperties: false
+ }
+ }
+ }
+ ],
+ tool_choice: { type: "function", function: { name: "generate_optimized_config" } }
+ }),
+ });
+
+ if (!response.ok) {
+ if (response.status === 429) {
+ return new Response(JSON.stringify({ error: "Rate limits exceeded. Please try again later." }), {
+ status: 429,
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ });
+ }
+ if (response.status === 402) {
+ return new Response(JSON.stringify({ error: "AI usage limit reached. Please add credits to continue." }), {
+ status: 402,
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ });
+ }
+ const errorText = await response.text();
+ console.error('AI gateway error:', response.status, errorText);
+ throw new Error(`AI gateway error: ${response.status}`);
+ }
+
+ const data = await response.json();
+ console.log('AI response received');
+
+ const toolCall = data.choices?.[0]?.message?.tool_calls?.[0];
+ if (!toolCall) {
+ throw new Error('No tool call in AI response');
+ }
+
+ const config = JSON.parse(toolCall.function.arguments);
+ console.log('Generated optimized config:', config);
+
+ return new Response(JSON.stringify({ config }), {
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ });
+
+ } catch (error) {
+ console.error('Error in optimize-research-config function:', error);
+ return new Response(
+ JSON.stringify({
+ error: error instanceof Error ? error.message : 'Unknown error occurred',
+ details: 'Failed to optimize research configuration'
+ }),
+ {
+ status: 500,
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ }
+ );
+ }
+});
diff --git a/v3/goal_ui/supabase/functions/research-api/index.ts b/v3/goal_ui/supabase/functions/research-api/index.ts
new file mode 100644
index 0000000000..9a5662393e
--- /dev/null
+++ b/v3/goal_ui/supabase/functions/research-api/index.ts
@@ -0,0 +1,340 @@
+import { serve } from "https://deno.land/[email protected]/http/server.ts";
+import "https://deno.land/x/[email protected]/mod.ts";
+
+const corsHeaders = {
+ 'Access-Control-Allow-Origin': '*',
+ 'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey, content-type',
+};
+
+interface ResearchRequest {
+ goal: string;
+ config?: {
+ parameters?: {
+ maxSources?: number;
+ minConfidence?: number;
+ maxSteps?: number;
+ timeout?: number;
+ parallelAgents?: number;
+ };
+ filters?: {
+ sourceTypes?: string[];
+ excludeDomains?: string[];
+ dateRange?: string;
+ };
+ researchGuidance?: {
+ timeframe?: string;
+ depth?: string;
+ perspective?: string;
+ focusAreas?: string[];
+ };
+ goapConfig?: {
+ enableReplanning?: boolean;
+ executionMode?: string;
+ costOptimization?: boolean;
+ parallelExecution?: boolean;
+ };
+ prompts?: {
+ systemPrompt?: string;
+ };
+ };
+ aiModel?: string;
+ stream?: boolean;
+}
+
+interface ResearchStep {
+ stepNumber: number;
+ stepTitle: string;
+ stepDescription: string;
+ stepType: string;
+}
+
+serve(async (req) => {
+ if (req.method === 'OPTIONS') {
+ return new Response(null, { headers: corsHeaders });
+ }
+
+ try {
+ const LOVABLE_API_KEY = Deno.env.get('LOVABLE_API_KEY');
+ if (!LOVABLE_API_KEY) {
+ throw new Error('LOVABLE_API_KEY is not configured');
+ }
+
+ const { goal, config = {}, aiModel = 'google/gemini-2.5-flash', stream: enableStreaming = true }: ResearchRequest = await req.json();
+
+ if (!goal) {
+ return new Response(
+ JSON.stringify({ error: 'Goal is required' }),
+ { status: 400, headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
+ );
+ }
+
+ console.log('Research API request:', { goal, aiModel, stream: enableStreaming, config });
+
+ // Generate research steps based on the goal
+ const steps: ResearchStep[] = [
+ { stepNumber: 1, stepTitle: 'Initial Research', stepDescription: 'Gathering preliminary information', stepType: '1' },
+ { stepNumber: 2, stepTitle: 'Deep Analysis', stepDescription: 'Analyzing collected data in depth', stepType: '2' },
+ { stepNumber: 3, stepTitle: 'Source Validation', stepDescription: 'Verifying sources and cross-referencing', stepType: '3' },
+ { stepNumber: 4, stepTitle: 'Pattern Recognition', stepDescription: 'Identifying key patterns and trends', stepType: '4' },
+ { stepNumber: 5, stepTitle: 'Synthesis', stepDescription: 'Synthesizing findings into coherent insights', stepType: '5' },
+ { stepNumber: 6, stepTitle: 'Insight Generation', stepDescription: 'Generating actionable insights', stepType: '6' },
+ { stepNumber: 7, stepTitle: 'Verification', stepDescription: 'Cross-checking findings and ensuring accuracy', stepType: '7' },
+ { stepNumber: 8, stepTitle: 'Final Recommendations', stepDescription: 'Providing final recommendations based on research', stepType: 'final-report' },
+ ];
+
+ const maxSteps = config.parameters?.maxSteps || 8;
+ const researchSteps = steps.slice(0, Math.min(maxSteps, steps.length));
+
+ if (!enableStreaming) {
+ // Non-streaming response
+ const allFindings = [];
+
+ for (const step of researchSteps) {
+ const stepResult = await executeResearchStep(step, goal, config, aiModel, LOVABLE_API_KEY);
+ allFindings.push(stepResult);
+ }
+
+ return new Response(
+ JSON.stringify({
+ goal,
+ config,
+ totalSteps: researchSteps.length,
+ findings: allFindings,
+ completed: true
+ }),
+ { headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
+ );
+ }
+
+ // Streaming response using SSE
+ const encoder = new TextEncoder();
+ const responseStream = new ReadableStream({
+ async start(controller) {
+ try {
+ // Send initial event
+ controller.enqueue(encoder.encode(`data: ${JSON.stringify({
+ type: 'init',
+ goal,
+ totalSteps: researchSteps.length,
+ config
+ })}\n\n`));
+
+ // Execute research steps
+ for (let i = 0; i < researchSteps.length; i++) {
+ const step = researchSteps[i];
+
+ // Send step start event
+ controller.enqueue(encoder.encode(`data: ${JSON.stringify({
+ type: 'step_start',
+ stepNumber: step.stepNumber,
+ stepTitle: step.stepTitle,
+ stepDescription: step.stepDescription,
+ progress: ((i / researchSteps.length) * 100).toFixed(1)
+ })}\n\n`));
+
+ // Execute step
+ const stepResult = await executeResearchStep(step, goal, config, aiModel, LOVABLE_API_KEY);
+
+ // Send step complete event
+ controller.enqueue(encoder.encode(`data: ${JSON.stringify({
+ type: 'step_complete',
+ stepNumber: step.stepNumber,
+ data: stepResult,
+ progress: (((i + 1) / researchSteps.length) * 100).toFixed(1)
+ })}\n\n`));
+ }
+
+ // Send completion event
+ controller.enqueue(encoder.encode(`data: ${JSON.stringify({
+ type: 'complete',
+ message: 'Research completed successfully'
+ })}\n\n`));
+
+ controller.close();
+ } catch (error) {
+ console.error('Streaming error:', error);
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
+ controller.enqueue(encoder.encode(`data: ${JSON.stringify({
+ type: 'error',
+ error: errorMessage
+ })}\n\n`));
+ controller.close();
+ }
+ }
+ });
+
+ return new Response(responseStream, {
+ headers: {
+ ...corsHeaders,
+ 'Content-Type': 'text/event-stream',
+ 'Cache-Control': 'no-cache',
+ 'Connection': 'keep-alive'
+ }
+ });
+
+ } catch (error) {
+ console.error('Research API error:', error);
+ const errorMessage = error instanceof Error ? error.message : 'Unknown error';
+ return new Response(
+ JSON.stringify({ error: errorMessage }),
+ { status: 500, headers: { ...corsHeaders, 'Content-Type': 'application/json' } }
+ );
+ }
+});
+
+async function executeResearchStep(
+ step: ResearchStep,
+ goal: string,
+ config: any,
+ aiModel: string,
+ apiKey: string
+) {
+ const systemPrompt = config.prompts?.systemPrompt || buildSystemPrompt(config);
+ const userPrompt = buildUserPrompt(step, goal, config);
+
+ console.log(`Executing step ${step.stepNumber}: ${step.stepTitle}`);
+
+ const response = await fetch('https://ai.gateway.lovable.dev/v1/chat/completions', {
+ method: 'POST',
+ headers: {
+ 'Authorization': `Bearer ${apiKey}`,
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify({
+ model: aiModel,
+ messages: [
+ { role: 'system', content: systemPrompt },
+ { role: 'user', content: userPrompt }
+ ],
+ temperature: 0.7,
+ max_tokens: 4000,
+ tools: step.stepType === 'final-report' ? [
+ {
+ type: 'function',
+ function: {
+ name: 'generate_research_report',
+ description: 'Generate structured research findings with citations',
+ parameters: {
+ type: 'object',
+ properties: {
+ findings: {
+ type: 'array',
+ items: {
+ type: 'object',
+ properties: {
+ title: { type: 'string' },
+ content: { type: 'string' },
+ source: { type: 'string' },
+ confidence: { type: 'number' }
+ },
+ required: ['title', 'content', 'source', 'confidence']
+ }
+ }
+ },
+ required: ['findings']
+ }
+ }
+ }
+ ] : undefined,
+ tool_choice: step.stepType === 'final-report' ? { type: 'function', function: { name: 'generate_research_report' } } : undefined
+ })
+ });
+
+ if (!response.ok) {
+ const errorText = await response.text();
+ console.error(`AI API error (${response.status}):`, errorText);
+ throw new Error(`AI API request failed: ${response.status}`);
+ }
+
+ const data = await response.json();
+ console.log(`Step ${step.stepNumber} completed`);
+
+ // Extract findings from tool call if present
+ if (data.choices?.[0]?.message?.tool_calls?.[0]) {
+ const toolCall = data.choices[0].message.tool_calls[0];
+ const args = JSON.parse(toolCall.function.arguments);
+ return {
+ stepNumber: step.stepNumber,
+ stepTitle: step.stepTitle,
+ findings: args.findings,
+ timestamp: new Date().toISOString()
+ };
+ }
+
+ // Return plain text response
+ return {
+ stepNumber: step.stepNumber,
+ stepTitle: step.stepTitle,
+ content: data.choices?.[0]?.message?.content || '',
+ timestamp: new Date().toISOString()
+ };
+}
+
+function buildSystemPrompt(config: any): string {
+ const depth = config.researchGuidance?.depth || 'moderate';
+ const perspective = config.researchGuidance?.perspective || 'balanced';
+ const timeframe = config.researchGuidance?.timeframe || 'recent';
+
+ let prompt = `You are an advanced AI research assistant specializing in comprehensive, systematic research.`;
+
+ if (depth === 'deep') {
+ prompt += ` Conduct deep, rigorous investigations with extensive analysis and cross-referencing.`;
+ } else if (depth === 'surface') {
+ prompt += ` Provide high-level overviews and key highlights.`;
+ } else {
+ prompt += ` Balance depth and breadth in your analysis.`;
+ }
+
+ if (perspective === 'academic') {
+ prompt += ` Adopt an academic perspective, prioritizing peer-reviewed sources and scholarly rigor.`;
+ } else if (perspective === 'business') {
+ prompt += ` Focus on practical business implications and actionable insights.`;
+ } else if (perspective === 'technical') {
+ prompt += ` Emphasize technical details, methodologies, and implementation considerations.`;
+ }
+
+ if (timeframe === 'recent') {
+ prompt += ` Prioritize the most recent information and developments.`;
+ } else if (timeframe === 'historical') {
+ prompt += ` Include historical context and long-term trends.`;
+ }
+
+ const focusAreas = config.researchGuidance?.focusAreas;
+ if (focusAreas && focusAreas.length > 0) {
+ prompt += ` Pay special attention to: ${focusAreas.join(', ')}.`;
+ }
+
+ prompt += ` Always cite sources and provide confidence levels for your findings.`;
+
+ return prompt;
+}
+
+function buildUserPrompt(step: ResearchStep, goal: string, config: any): string {
+ let prompt = `Research Goal: ${goal}\n\n`;
+ prompt += `Current Step: ${step.stepTitle}\n`;
+ prompt += `Step Description: ${step.stepDescription}\n\n`;
+
+ if (step.stepType === 'final-report') {
+ prompt += `Provide final recommendations and actionable insights based on all research conducted. `;
+ prompt += `Include specific, concrete suggestions with supporting data.`;
+ } else {
+ prompt += `Conduct research for this step and provide detailed findings.`;
+ }
+
+ const sourceTypes = config.filters?.sourceTypes;
+ if (sourceTypes && sourceTypes.length > 0) {
+ prompt += `\n\nPreferred source types: ${sourceTypes.join(', ')}`;
+ }
+
+ const excludeDomains = config.filters?.excludeDomains;
+ if (excludeDomains && excludeDomains.length > 0) {
+ prompt += `\n\nExclude sources from: ${excludeDomains.join(', ')}`;
+ }
+
+ const minConfidence = config.parameters?.minConfidence;
+ if (minConfidence) {
+ prompt += `\n\nMinimum confidence threshold: ${minConfidence}%`;
+ }
+
+ return prompt;
+}
diff --git a/v3/goal_ui/supabase/functions/research-step/index.ts b/v3/goal_ui/supabase/functions/research-step/index.ts
new file mode 100644
index 0000000000..c521c599d9
--- /dev/null
+++ b/v3/goal_ui/supabase/functions/research-step/index.ts
@@ -0,0 +1,398 @@
+import "https://deno.land/x/[email protected]/mod.ts";
+import { serve } from "https://deno.land/[email protected]/http/server.ts";
+
+const corsHeaders = {
+ 'Access-Control-Allow-Origin': '*',
+ 'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey, content-type',
+};
+
+interface ResearchConfig {
+ researchGuidance?: {
+ focusAreas: string[];
+ excludeTopics: string[];
+ depth: "surface" | "moderate" | "deep";
+ perspective: string;
+ timeframe: string;
+ };
+ prompts?: {
+ systemPrompt: string;
+ searchQueryTemplate: string;
+ analysisPrompt: string;
+ synthesisPrompt: string;
+ };
+ parameters?: {
+ maxSources: number;
+ minConfidence: number;
+ maxSteps: number;
+ parallelAgents: number;
+ timeout: number;
+ };
+ filters?: {
+ dateRange: string;
+ sourceTypes: string[];
+ languages: string[];
+ excludeDomains: string[];
+ };
+}
+
+interface ResearchRequest {
+ goal: string;
+ stepTitle: string;
+ stepDescription: string;
+ stepType: string;
+ aiModel?: string;
+ config?: ResearchConfig;
+ previousStepsData?: Array<{
+ stepTitle: string;
+ data: ResearchDataItem[];
+ }>;
+}
+
+interface ResearchDataItem {
+ id: string;
+ title: string;
+ content: string;
+ source?: string;
+ confidence?: number;
+ timestamp: string;
+}
+
+serve(async (req) => {
+ if (req.method === 'OPTIONS') {
+ return new Response(null, { headers: corsHeaders });
+ }
+
+ try {
+ const { goal, stepTitle, stepDescription, stepType, aiModel, config, previousStepsData }: ResearchRequest = await req.json();
+
+ console.log('Research request:', {
+ goal,
+ stepTitle,
+ stepDescription,
+ stepType,
+ aiModel,
+ previousStepsCount: previousStepsData?.length || 0,
+ configProvided: !!config,
+ depth: config?.researchGuidance?.depth,
+ perspective: config?.researchGuidance?.perspective,
+ focusAreas: config?.researchGuidance?.focusAreas?.length || 0
+ });
+
+ const LOVABLE_API_KEY = Deno.env.get('LOVABLE_API_KEY');
+ if (!LOVABLE_API_KEY) {
+ throw new Error('LOVABLE_API_KEY is not configured');
+ }
+
+ // Use custom system prompt if provided, otherwise use default
+ const defaultSystemPrompt = `You are a senior research analyst with expertise in conducting comprehensive research and generating substantive findings.
+
+CRITICAL INSTRUCTIONS:
+- You MUST provide ACTUAL research findings, not task descriptions
+- Include specific data points, statistics, percentages, and numbers
+- Reference real-world developments, breakthroughs, or trends
+- Provide concrete examples, case studies, or citations
+- Generate findings as if you just completed real research
+
+BAD EXAMPLE (task description): "Analyze quantum computing developments"
+GOOD EXAMPLE (actual finding): "Google's Willow quantum chip achieved breakthrough in quantum error correction using surface codes with 99.9% fidelity (Nature Physics, Dec 2024), reducing error rates by 50% compared to previous generation."
+
+BAD EXAMPLE: "Identify market opportunities"
+GOOD EXAMPLE: "Quantum computing market projected to reach $125B by 2030 (McKinsey, 2024), with pharmaceutical simulation representing 38% of near-term revenue. Key opportunity: NISQ algorithms for drug discovery showing 10x speedup over classical methods."
+
+Your findings must be SPECIFIC, DETAILED, and SUBSTANTIVE.`;
+
+ // Apply research depth modifier
+ const depthModifier = config?.researchGuidance?.depth === 'deep'
+ ? '\n\nDEPTH: Provide comprehensive, in-depth analysis with extensive details, multiple examples, and thorough exploration of nuances (7-10 sentences per finding).'
+ : config?.researchGuidance?.depth === 'surface'
+ ? '\n\nDEPTH: Provide concise, high-level overview with key points only (2-3 sentences per finding).'
+ : '\n\nDEPTH: Provide balanced analysis with solid detail and examples (4-5 sentences per finding).';
+
+ // Apply perspective modifier
+ const perspectiveModifier = config?.researchGuidance?.perspective
+ ? `\n\nPERSPECTIVE: Approach this research from a ${config.researchGuidance.perspective} perspective, focusing on relevant aspects for that viewpoint.`
+ : '';
+
+ // Apply focus areas guidance
+ const focusAreasModifier = config?.researchGuidance?.focusAreas && config.researchGuidance.focusAreas.length > 0
+ ? `\n\nFOCUS AREAS: Emphasize these specific topics: ${config.researchGuidance.focusAreas.join(', ')}`
+ : '';
+
+ // Apply exclude topics guidance
+ const excludeTopicsModifier = config?.researchGuidance?.excludeTopics && config.researchGuidance.excludeTopics.length > 0
+ ? `\n\nEXCLUDE: Do NOT include information about: ${config.researchGuidance.excludeTopics.join(', ')}`
+ : '';
+
+ const systemPrompt = (config?.prompts?.systemPrompt || defaultSystemPrompt)
+ + depthModifier
+ + perspectiveModifier
+ + focusAreasModifier
+ + excludeTopicsModifier;
+
+ // Build context from previous steps
+ let previousContext = '';
+ if (previousStepsData && previousStepsData.length > 0) {
+ previousContext = '\n\nPREVIOUS RESEARCH FINDINGS (build upon these):\n';
+ previousStepsData.forEach((step, idx) => {
+ previousContext += `\n${step.stepTitle}:\n`;
+ step.data.forEach((item) => {
+ previousContext += `β€’ ${item.title}: ${item.content}\n`;
+ });
+ });
+ previousContext += '\n**Your findings must reference and extend these previous discoveries.**\n';
+ }
+
+ // Special handling for final report - provide answer-focused synthesis
+ const isFinalReport = stepType === "final-report";
+
+ const userPrompt = isFinalReport ? `
+RESEARCH GOAL: ${goal}
+${previousContext}
+
+Based on ALL the research findings above, generate 3-5 SPECIFIC, ACTIONABLE RECOMMENDATIONS that directly answer the research goal.
+
+CRITICAL: Your response must ANSWER THE QUESTION, not just summarize research steps.
+
+For example, if the goal is "best family car in 2025 ontario canada":
+- BAD: "Analysis of search queries shows SUV dominance"
+- GOOD: "Honda CR-V Hybrid 2025 - Best Overall Family SUV for Ontario. Offers AWD for winter driving, 40 MPG fuel efficiency, and excellent safety ratings (IIHS Top Safety Pick+). Price: $38,000 CAD. Resale value after 5 years: 65% (highest in class)."
+
+Each recommendation MUST include:
+
+1. **title**: Specific recommendation or answer (not a task or analysis description)
+ - If recommending a product: Include model name/year
+ - If recommending an action: State the specific action
+ - If answering a question: Provide the direct answer
+ - Examples: "2025 Toyota Sienna Hybrid - Best Family Minivan", "Implement Zero-Trust Architecture with Cloudflare Access", "Yes, quantum computing is commercially viable for drug discovery"
+
+2. **content**: DETAILED justification with specifics (minimum 5-6 sentences):
+ - WHY this recommendation answers the goal
+ - SPECIFIC data from research findings (reference previous steps)
+ - Key benefits with quantified metrics
+ - Practical considerations or trade-offs
+ - Supporting evidence from research
+ - Examples:
+ * "The 2025 Toyota Sienna Hybrid dominates the minivan segment in Ontario based on multiple criteria from our research. It features AWD (critical for Ontario winters per our State Assessment findings), achieving 36 MPG combined fuel economy which translates to approximately $1,200 annual fuel savings vs non-hybrid competitors. Safety analysis revealed it earned IIHS Top Safety Pick+ with standard Toyota Safety Sense 3.0. Our Document Analysis phase identified its superior reliability rating (4.5/5 Consumer Reports) and strongest resale value in class at 58% after 5 years. Starting MSRP of $42,500 CAD positions it competitively while our Web Search findings show average dealer discounts of $2,000 in Ontario markets."
+
+3. **source**: Real source from research OR credible industry source
+ - Reference findings from previous research steps when applicable
+ - Examples: "Web Search findings + Consumer Reports 2024", "Document Analysis + edmunds.com", "Knowledge Synthesis + Motor Trend 2025 Buyer's Guide"
+
+4. **confidence**: 0.80-0.95 based on research depth
+
+REMEMBER: The user wants ANSWERS, not research summaries. Be specific, actionable, and directly address their goal.
+
+Format:
+{
+ "title": "Specific Recommendation/Answer [directly addressing ${goal}]",
+ "content": "Detailed justification with data from research findings, benefits, metrics, and practical advice...",
+ "source": "Source from research OR industry authority (Year)",
+ "confidence": 0.88
+}` : `
+RESEARCH GOAL: ${goal}
+CURRENT ANALYSIS STEP: ${stepTitle}
+STEP OBJECTIVE: ${stepDescription}
+${previousContext}
+
+Generate ${config?.parameters?.maxSources ? `up to ${config.parameters.maxSources}` : '3-5'} ACTUAL research findings with substantive content. Each finding MUST include:
+
+1. **title**: Specific discovery or insight (what was found, not what to find)
+ - Include key metrics, names, or breakthrough details in the title
+ - Examples: "IBM's 433-Qubit Osprey Processor Achieves Quantum Advantage", "87% of Fortune 500 Investing in AI Infrastructure"
+
+2. **content**: DETAILED research findings (${config?.researchGuidance?.depth === 'deep' ? '7-10 sentences' : config?.researchGuidance?.depth === 'surface' ? '2-3 sentences' : '4-5 sentences'} minimum):
+ - Start with the core finding and supporting data
+ - Include specific numbers, percentages, or metrics
+ - Mention real companies, technologies, or research when relevant
+ - Explain implications and significance
+ - Reference previous step findings to show progression
+ - Examples:
+ * "IBM's latest 433-qubit Osprey processor demonstrated quantum advantage in solving optimization problems 120x faster than classical supercomputers (IBM Research, Nov 2024). The system achieved 99.7% two-qubit gate fidelity using dynamic error suppression. This breakthrough enables practical applications in logistics optimization, with DHL reporting 15% cost reduction in route planning trials. The technology utilizes heavy-hexagonal qubit topology for improved connectivity."
+ * "Analysis of 156 quantum computing research papers (2023-2024) reveals strong consensus on topological qubits as the most promising path to fault-tolerant quantum computing. Current limitations include decoherence times averaging 85 microseconds and error rates of 0.1% for two-qubit gates. Leading institutions (Google, IBM, IonQ) are converging on surface code implementations, with projections suggesting 1000+ logical qubit systems by 2027."
+
+3. **source**: REQUIRED - Credible source with year (MUST be provided for every finding)
+ - Examples: "Nature Physics (2024)", "McKinsey Quantum Report 2024", "IEEE Quantum Computing Survey (Dec 2024)"
+ - Use Google Search grounding to find real sources
+ - ${config?.filters?.sourceTypes && config.filters.sourceTypes.length > 0
+ ? `Prioritize these source types: ${config.filters.sourceTypes.join(', ')}`
+ : 'If no specific source available, use: "Industry Analysis (2024)" or "Market Research (2024)"'}
+ - ${config?.filters?.excludeDomains && config.filters.excludeDomains.length > 0
+ ? `DO NOT use sources from these domains: ${config.filters.excludeDomains.join(', ')}`
+ : ''}
+
+4. **confidence**: REQUIRED - Realistic score ${config?.parameters?.minConfidence ? `${config.parameters.minConfidence / 100}-0.95` : '0.7-0.95'} based on finding specificity
+
+CRITICAL REQUIREMENTS:
+- DO NOT generate generic task descriptions like "Analyze X" or "Identify Y"
+- Generate ACTUAL findings as if research was just completed, with real data and insights
+- EVERY finding MUST have a source citation - this is non-negotiable
+- Use Google Search results to find real, current information specific to the query
+- ONLY include information that is directly relevant to: "${goal || stepTitle}"
+- DO NOT include unrelated topics (e.g., quantum computing when researching marketing trends)
+- Verify each finding relates to the actual research goal before including it
+${config?.filters?.dateRange ? `\n- Focus on information from: ${config.filters.dateRange}` : ''}
+
+IMPORTANT: Every finding MUST:
+1. Be directly relevant to the research goal: "${goal || stepTitle}"
+2. Include a source citation from Google Search results
+3. Contain current, verifiable information
+4. ${config?.parameters?.minConfidence ? `Meet minimum confidence threshold of ${config.parameters.minConfidence}%` : 'Have realistic confidence score'}
+
+Format (all fields required):
+{
+ "title": "Specific Finding with Key Metric [directly related to ${goal || stepTitle}]",
+ "content": "Detailed research findings with data, examples, implications...",
+ "source": "Source Name (Year)", // REQUIRED - NEVER omit this
+ "confidence": ${config?.parameters?.minConfidence ? (config.parameters.minConfidence / 100) : 0.85} // REQUIRED - Must be between ${config?.parameters?.minConfidence ? `${config.parameters.minConfidence / 100}` : '0.7'} and 0.95
+}`;
+
+ const response = await fetch('https://ai.gateway.lovable.dev/v1/chat/completions', {
+ method: 'POST',
+ headers: {
+ 'Authorization': `Bearer ${LOVABLE_API_KEY}`,
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify({
+ model: aiModel || 'google/gemini-2.5-flash',
+ messages: [
+ { role: 'system', content: systemPrompt },
+ { role: 'user', content: userPrompt }
+ ],
+ tools: [
+ {
+ type: "google_search_retrieval",
+ google_search_retrieval: {
+ dynamic_retrieval_config: {
+ mode: "MODE_DYNAMIC",
+ dynamic_threshold: 0.3
+ }
+ }
+ },
+ {
+ type: "function",
+ function: {
+ name: "generate_research_data",
+ description: "Generate research data items for the given step based on current web search results",
+ parameters: {
+ type: "object",
+ properties: {
+ items: {
+ type: "array",
+ items: {
+ type: "object",
+ properties: {
+ title: {
+ type: "string",
+ description: "Specific finding with key metrics or breakthrough details"
+ },
+ content: {
+ type: "string",
+ description: "Detailed research findings with data, examples, and implications (4-5 sentences minimum)"
+ },
+ source: {
+ type: "string",
+ description: "REQUIRED: Credible source with year (e.g., 'Nature Physics (2024)', 'McKinsey Report 2024')"
+ },
+ confidence: {
+ type: "number",
+ minimum: config?.parameters?.minConfidence ? (config.parameters.minConfidence / 100) : 0.7,
+ maximum: 0.95,
+ description: "Confidence score based on finding specificity"
+ }
+ },
+ required: ["title", "content", "source", "confidence"],
+ additionalProperties: false
+ }
+ }
+ },
+ required: ["items"],
+ additionalProperties: false
+ }
+ }
+ }
+ ],
+ tool_choice: { type: "function", function: { name: "generate_research_data" } }
+ }),
+ });
+
+ if (!response.ok) {
+ if (response.status === 429) {
+ console.error('Rate limit exceeded');
+ return new Response(JSON.stringify({ error: "Rate limits exceeded. Please try again later." }), {
+ status: 429,
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ });
+ }
+ if (response.status === 402) {
+ console.error('Payment required');
+ return new Response(JSON.stringify({ error: "AI usage limit reached. Please add credits to continue." }), {
+ status: 402,
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ });
+ }
+ const errorText = await response.text();
+ console.error('AI gateway error:', response.status, errorText);
+ throw new Error(`AI gateway error: ${response.status}`);
+ }
+
+ const data = await response.json();
+ console.log('AI response received:', data);
+
+ // Extract grounding metadata (citations from Google Search)
+ const groundingMetadata = data.choices?.[0]?.message?.grounding_metadata;
+ const groundingSources = groundingMetadata?.search_entry_point?.rendered_content ||
+ groundingMetadata?.grounding_supports?.map((s: any) => ({
+ url: s.segment?.text || s.source?.uri,
+ title: s.source?.title
+ })) || [];
+
+ console.log('Grounding sources:', groundingSources);
+
+ // Extract structured data from tool call
+ const toolCall = data.choices?.[0]?.message?.tool_calls?.[0];
+ if (!toolCall) {
+ throw new Error('No tool call in AI response');
+ }
+
+ const researchItems = JSON.parse(toolCall.function.arguments).items;
+
+ // Transform to match the expected interface and enrich with grounding citations
+ const formattedData: ResearchDataItem[] = researchItems.map((item: any, index: number) => {
+ // If the item doesn't have a source, try to use grounding sources
+ let source = item.source;
+ if (!source && groundingSources.length > index) {
+ const groundingSource = groundingSources[index];
+ source = groundingSource.title || groundingSource.url || 'Google Search';
+ }
+
+ return {
+ id: `${stepType}-${Date.now()}-${index}`,
+ title: item.title,
+ content: item.content,
+ source: source || 'Research Analysis',
+ confidence: item.confidence || undefined,
+ timestamp: new Date().toISOString(),
+ };
+ });
+
+ console.log('Formatted research data with citations:', formattedData);
+
+ return new Response(JSON.stringify(formattedData), {
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ });
+
+ } catch (error) {
+ console.error('Error in research-step function:', error);
+ return new Response(
+ JSON.stringify({
+ error: error instanceof Error ? error.message : 'Unknown error occurred',
+ details: 'Failed to generate research data'
+ }),
+ {
+ status: 500,
+ headers: { ...corsHeaders, 'Content-Type': 'application/json' },
+ }
+ );
+ }
+});
+
diff --git a/v3/goal_ui/tailwind.config.ts b/v3/goal_ui/tailwind.config.ts
new file mode 100644
index 0000000000..406bb9ac73
--- /dev/null
+++ b/v3/goal_ui/tailwind.config.ts
@@ -0,0 +1,166 @@
+import type { Config } from "tailwindcss";
+
+export default {
+ darkMode: ["class"],
+ content: ["./pages/**/*.{ts,tsx}", "./components/**/*.{ts,tsx}", "./app/**/*.{ts,tsx}", "./src/**/*.{ts,tsx}"],
+ prefix: "",
+ theme: {
+ container: {
+ center: true,
+ padding: "2rem",
+ screens: {
+ "2xl": "1400px",
+ },
+ },
+ extend: {
+ colors: {
+ border: "hsl(var(--border))",
+ input: "hsl(var(--input))",
+ ring: "hsl(var(--ring))",
+ background: "hsl(var(--background))",
+ foreground: "hsl(var(--foreground))",
+ primary: {
+ DEFAULT: "hsl(var(--primary))",
+ foreground: "hsl(var(--primary-foreground))",
+ glow: "hsl(var(--primary-glow))",
+ },
+ secondary: {
+ DEFAULT: "hsl(var(--secondary))",
+ foreground: "hsl(var(--secondary-foreground))",
+ },
+ destructive: {
+ DEFAULT: "hsl(var(--destructive))",
+ foreground: "hsl(var(--destructive-foreground))",
+ },
+ muted: {
+ DEFAULT: "hsl(var(--muted))",
+ foreground: "hsl(var(--muted-foreground))",
+ },
+ accent: {
+ DEFAULT: "hsl(var(--accent))",
+ foreground: "hsl(var(--accent-foreground))",
+ glow: "hsl(var(--accent-glow))",
+ },
+ popover: {
+ DEFAULT: "hsl(var(--popover))",
+ foreground: "hsl(var(--popover-foreground))",
+ },
+ card: {
+ DEFAULT: "hsl(var(--card))",
+ foreground: "hsl(var(--card-foreground))",
+ },
+ sidebar: {
+ DEFAULT: "hsl(var(--sidebar-background))",
+ foreground: "hsl(var(--sidebar-foreground))",
+ primary: "hsl(var(--sidebar-primary))",
+ "primary-foreground": "hsl(var(--sidebar-primary-foreground))",
+ accent: "hsl(var(--sidebar-accent))",
+ "accent-foreground": "hsl(var(--sidebar-accent-foreground))",
+ border: "hsl(var(--sidebar-border))",
+ ring: "hsl(var(--sidebar-ring))",
+ },
+ },
+ backgroundImage: {
+ 'gradient-primary': 'var(--gradient-primary)',
+ 'gradient-accent': 'var(--gradient-accent)',
+ 'gradient-card': 'var(--gradient-card)',
+ },
+ boxShadow: {
+ 'glow': 'var(--shadow-glow)',
+ 'accent-glow': 'var(--shadow-accent-glow)',
+ 'card': 'var(--shadow-card)',
+ },
+ transitionProperty: {
+ 'smooth': 'var(--transition-smooth)',
+ },
+ borderRadius: {
+ lg: "var(--radius)",
+ md: "calc(var(--radius) - 2px)",
+ sm: "calc(var(--radius) - 4px)",
+ },
+ keyframes: {
+ "accordion-down": {
+ from: {
+ height: "0",
+ },
+ to: {
+ height: "var(--radix-accordion-content-height)",
+ },
+ },
+ "accordion-up": {
+ from: {
+ height: "var(--radix-accordion-content-height)",
+ },
+ to: {
+ height: "0",
+ },
+ },
+ "fade-in": {
+ "0%": {
+ opacity: "0",
+ transform: "translateX(-10px)"
+ },
+ "100%": {
+ opacity: "1",
+ transform: "translateX(0)"
+ }
+ },
+ "slide-up": {
+ "0%": {
+ opacity: "0",
+ transform: "translateY(20px)"
+ },
+ "100%": {
+ opacity: "1",
+ transform: "translateY(0)"
+ }
+ },
+ "pulse-glow": {
+ "0%, 100%": {
+ boxShadow: "0 0 20px hsl(var(--primary) / 0.2)"
+ },
+ "50%": {
+ boxShadow: "0 0 40px hsl(var(--primary) / 0.4)"
+ }
+ },
+ "shimmer": {
+ "0%": {
+ backgroundPosition: "-200% 0"
+ },
+ "100%": {
+ backgroundPosition: "200% 0"
+ }
+ },
+ "bounce": {
+ "0%, 100%": {
+ transform: "translateY(0) scale(1)",
+ },
+ "50%": {
+ transform: "translateY(-3px) scale(1.05)",
+ },
+ },
+ "scale-in": {
+ "0%": {
+ transform: "scale(0.8)",
+ opacity: "0",
+ },
+ "100%": {
+ transform: "scale(1)",
+ opacity: "1",
+ },
+ },
+ },
+ animation: {
+ "accordion-down": "accordion-down 0.2s ease-out",
+ "accordion-up": "accordion-up 0.2s ease-out",
+ "fade-in": "fade-in 0.5s ease-out forwards",
+ "slide-up": "slide-up 0.6s ease-out",
+ "pulse-glow": "pulse-glow 2s ease-in-out infinite",
+ "shimmer": "shimmer 3s linear infinite",
+ "bounce": "bounce 0.5s ease-in-out",
+ "scale-in": "scale-in 0.3s ease-out",
+ },
+ },
+ },
+ plugins: [require("tailwindcss-animate")],
+} satisfies Config;
diff --git a/v3/goal_ui/tsconfig.app.json b/v3/goal_ui/tsconfig.app.json
new file mode 100644
index 0000000000..0b0e43e6bc
--- /dev/null
+++ b/v3/goal_ui/tsconfig.app.json
@@ -0,0 +1,30 @@
+{
+ "compilerOptions": {
+ "target": "ES2020",
+ "useDefineForClassFields": true,
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
+ "module": "ESNext",
+ "skipLibCheck": true,
+
+ /* Bundler mode */
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "isolatedModules": true,
+ "moduleDetection": "force",
+ "noEmit": true,
+ "jsx": "react-jsx",
+
+ /* Linting */
+ "strict": false,
+ "noUnusedLocals": false,
+ "noUnusedParameters": false,
+ "noImplicitAny": false,
+ "noFallthroughCasesInSwitch": false,
+
+ "baseUrl": ".",
+ "paths": {
+ "@/*": ["./src/*"]
+ }
+ },
+ "include": ["src"]
+}
diff --git a/v3/goal_ui/tsconfig.json b/v3/goal_ui/tsconfig.json
new file mode 100644
index 0000000000..251877308f
--- /dev/null
+++ b/v3/goal_ui/tsconfig.json
@@ -0,0 +1,16 @@
+{
+ "files": [],
+ "references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }],
+ "compilerOptions": {
+ "baseUrl": ".",
+ "paths": {
+ "@/*": ["./src/*"]
+ },
+ "noImplicitAny": false,
+ "noUnusedParameters": false,
+ "skipLibCheck": true,
+ "allowJs": true,
+ "noUnusedLocals": false,
+ "strictNullChecks": false
+ }
+}
diff --git a/v3/goal_ui/tsconfig.node.json b/v3/goal_ui/tsconfig.node.json
new file mode 100644
index 0000000000..3133162c20
--- /dev/null
+++ b/v3/goal_ui/tsconfig.node.json
@@ -0,0 +1,22 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "lib": ["ES2023"],
+ "module": "ESNext",
+ "skipLibCheck": true,
+
+ /* Bundler mode */
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "isolatedModules": true,
+ "moduleDetection": "force",
+ "noEmit": true,
+
+ /* Linting */
+ "strict": true,
+ "noUnusedLocals": false,
+ "noUnusedParameters": false,
+ "noFallthroughCasesInSwitch": true
+ },
+ "include": ["vite.config.ts"]
+}
diff --git a/v3/goal_ui/vite.config.ts b/v3/goal_ui/vite.config.ts
new file mode 100644
index 0000000000..4d19d38097
--- /dev/null
+++ b/v3/goal_ui/vite.config.ts
@@ -0,0 +1,73 @@
+import { defineConfig } from "vite";
+import react from "@vitejs/plugin-react-swc";
+import path from "path";
+
+// https://vitejs.dev/config/
+export default defineConfig(() => {
+ const isWidgetBuild = process.env.BUILD_WIDGET === 'true';
+
+ if (isWidgetBuild) {
+ // Widget-specific build configuration
+ return {
+ plugins: [react()],
+ resolve: {
+ alias: {
+ "@": path.resolve(__dirname, "./src"),
+ },
+ },
+ define: {
+ // Define browser-compatible globals
+ 'process.env.NODE_ENV': JSON.stringify('production'),
+ 'process.env': '{}',
+ 'global': 'window',
+ },
+ build: {
+ lib: {
+ entry: path.resolve(__dirname, "src/widget.tsx"),
+ name: "RufloResearchWidget",
+ formats: ["iife"],
+ fileName: () => "widget.js",
+ },
+ rollupOptions: {
+ output: {
+ inlineDynamicImports: true,
+ assetFileNames: "widget.[ext]",
+ // Ensure all external dependencies are bundled for standalone widget
+ manualChunks: undefined,
+ },
+ },
+ // Don't externalize any dependencies - bundle everything
+ commonjsOptions: {
+ include: [/node_modules/],
+ },
+ outDir: "dist",
+ emptyOutDir: false,
+ // Increase chunk size warning limit for widget bundle
+ chunkSizeWarningLimit: 1000,
+ },
+ // CORS configuration for dev server
+ server: {
+ cors: true,
+ headers: {
+ 'Access-Control-Allow-Origin': '*',
+ 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS',
+ 'Access-Control-Allow-Headers': 'Content-Type',
+ },
+ },
+ };
+ }
+
+ // Main app build configuration
+ return {
+ server: {
+ host: "::",
+ port: 8080,
+ },
+ plugins: [react()],
+ resolve: {
+ alias: {
+ "@": path.resolve(__dirname, "./src"),
+ },
+ },
+ };
+});