Open-source AI design agent — alternative to Lovart AI, Runway Agent, Luma Labs Agent, Krea Agent, Pika Agent, Galileo AI, Magic Patterns. Autonomous multi-step creative for posters, social, brand kits, ad creatives, and video. Free, MIT-licensed, self-hosted.
JavaScript ai-agentai-creative-agentai-design-agentai-logoai-posterai-video-agentbrand-kitdesign-agentgalileo-aikrea-agentlovartlovart-alternativeluma-agentluma-labsmagic-patternsopen-sourcepika-agentrunway-agentrunway-alternativeself-hosted
Swap: replace with Open-AI-Design-Agent — open source AI design agent
Anil-matchaee3b86a4636d
diff --git a/.env.example b/.env.exampledeleted file mode 100644index 1a4f8db..0000000--- a/.env.example+++ /dev/null@@ -1,39 +0,0 @@-# Slack-SLACK_BOT_TOKEN=xoxb-...-SLACK_APP_TOKEN=xapp-... # Socket Mode token--# ── LLM provider ────────────────────────────────────────────────────────────-# Set LLM_MODEL to any LiteLLM model string and provide the matching API key.-#-# Anthropic (Claude)-LLM_MODEL=claude-sonnet-4-6-ANTHROPIC_API_KEY=sk-ant-...-#-# OpenAI-# LLM_MODEL=gpt-4o-# OPENAI_API_KEY=sk-...-#-# Google Gemini-# LLM_MODEL=gemini/gemini-2.0-flash-# GEMINI_API_KEY=...-#-# Groq (fast open-weight models)-# LLM_MODEL=groq/llama-3.3-70b-versatile-# GROQ_API_KEY=...-#-# Local Ollama (no key needed)-# LLM_MODEL=ollama/llama3-# ────────────────────────────────────────────────────────────────────────────--# Per-channel model override: add to channels/<id>/tools.toml:-# [llm]-# model = "gpt-4o"--# Storage-DATA_DIR=./data # where SQLite DBs and channel configs live--# Optional: Mem0 for semantic recall (Phase 2)-# MEM0_API_KEY=...--# Optional: restrict which Slack workspaces can install-# ALLOWED_WORKSPACE_IDS=T01234,T05678diff --git a/.gitignore b/.gitignoreindex e4af0ad..233a5ba 100644--- a/.gitignore+++ b/.gitignore@@ -1,14 +1,119 @@+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.++# dependencies+node_modules/+/.pnp+.pnp.*+.yarn/*+!.yarn/patches+!.yarn/plugins+!.yarn/releases+!.yarn/versions++# testing+/coverage++# next.js+.next/+out/+build/++# misc+.DS_Store+*.pem++# debug+npm-debug.log*+yarn-debug.log*+yarn-error.log*+.pnpm-debug.log*++# env files (can opt-in for committing if needed).env-.venv/+.env.local+.env.development.local+.env.test.local+.env.production.local+*.env++# vercel+.vercel++# typescript+*.tsbuildinfo+next-env.d.ts++# =========================+# Python & FastAPI (Server)+# =========================++# Byte-compiled / optimized / DLL files__pycache__/-*.pyc-*.pyo-.mypy_cache/-.ruff_cache/-.pytest_cache/+*.py[cod]+*$py.class++# C extensions+*.so++# Distribution / packaging+.Python+build/+develop-eggs/dist/+downloads/+eggs/+.eggs/+lib/+lib64/+parts/+sdist/+var/+wheels/+share/python-wheels/*.egg-info/-data/-*.db-*.sqlite-.DS_Store+.installed.cfg+*.egg+MANIFEST++# PyInstaller+# Usually these files are written by a python script from a template+# before PyInstaller builds the exe, so as to inject date/other infos into it.+*.manifest+*.spec++# Installer logs+pip-log.txt+pip-delete-this-directory.txt++# Unit test / coverage reports+htmlcov/+.tox/+.nox/+.coverage+.coverage.*+.cache+nosetests.xml+coverage.xml+*.cover+*.py,cover+.hypothesis/+.pytest_cache/+cover/++# Environments+.env+.venv+env/+venv/+ENV/+env.bak/+venv.bak/++# FastAPI / Uvicorn+*.log++# Editor directories and files+.idea/+.vscode/+*.swp+*.swodiff --git a/LICENSE b/LICENSEindex 83c0228..e5ecd62 100644--- a/LICENSE+++ b/LICENSE@@ -1,6 +1,6 @@MIT License-Copyright (c) 2026 Anil-matcha+Copyright (c) 2023 Anil Chandra Naidu MatchaPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealdiff --git a/PLAN.md b/PLAN.mddeleted file mode 100644index 8d0397e..0000000--- a/PLAN.md+++ /dev/null@@ -1,453 +0,0 @@-# TagOpen — Open Source Claude Tag Alternative-> Self-hostable, channel-native AI teammate for Slack (and beyond)--**Last updated:** 2026-06-25-**Status:** Pre-build planning-------## What We're Building--An open source alternative to Anthropic's Claude Tag. Claude Tag's core insight is that AI in the workplace should be a **shared channel teammate**, not a personal per-user chatbot. One agent per channel, shared by the whole team, with admin-controlled tool access and ambient monitoring.--**Tagline:** *The self-hostable, multiplayer AI teammate. LLM-agnostic. Channel-native. No vendor lock-in.*--### What makes this different from existing open source bots-- **OpenClaw** — closest competitor. Mature (Node/TS, 50+ platforms). But it's a personal assistant — defaults to per-user DM isolation, explicitly warns against sharing agent context. Wrong default for us.-- **Hermes Agent** — best architecture ideas (5-pillar model, skill auto-creation, self-improving crons). But also per-user.-- **open-cowork / OpenWork** — Claude Cowork clones, file/desktop focused, not channel-native.--The gap nobody has filled: **channel-scoped shared agent identity with multi-user attribution and admin governance.**-------## Core Design Principles--### 1. Channel as the Unit of Identity-The `AgentSession` key is `(workspace_id, channel_id)`, NOT `user_id`.--Every user in `#engineering` talks to the same agent, sees the same context, can pick up mid-thread. This is the fundamental inversion from all existing tools.--### 2. Multi-User Attribution-Every message in agent context is tagged with who said it:-```-[2026-06-25 14:32 @alice] deploy the new model to staging-[2026-06-25 14:33 @bob] actually wait, let's run tests first-[AGENT] Holding the deploy. @bob — can you share the test results in this thread?-```-Agent knows WHO said what, can direct follow-ups at individuals, memory writes include attribution.--### 3. File-Based Channel Config (OpenClaw-inspired)-Each channel gets a directory. Version-controllable, no UI required to get started:-```-channels/- C01234ABC/ ← Slack channel_id- CHANNEL.md ← identity, purpose, tone for this channel- TOOLS.md ← which MCP servers are enabled- MEMORY.md ← curated facts (agent-written, not append-only)- BUDGET.md ← token limits (per-request, daily, monthly)- skills/- deploy-checklist.md- oncall-runbook.md- pr-review.md-```--### 4. Agent-Curated Memory (Letta-inspired inner loop)-After responding, the agent gets one internal turn to decide what's worth persisting to `MEMORY.md`. It uses `memory_append` and `memory_replace` tools. Memory stays clean because the agent curates it — not a dumb append-only log.--### 5. Skill Auto-Creation (Hermes-inspired)-After any task requiring 5+ tool calls, the agent writes a `SKILL.md` capturing what it learned. Next time a similar task comes up, the skill is loaded into context automatically. This is how institutional channel knowledge accumulates over time.--### 6. Agent-Managed Ambient Mode (Hermes crons)-Agent can call a `schedule_task(cron, description)` tool to create its own monitoring jobs. A heartbeat evaluator runs each cron, dumps recent channel state to the LLM, and asks: "anything worth surfacing?" If yes, it posts proactively.--### 7. MCP-Native Tool Access-All external tools exposed via MCP protocol. Admins list allowed MCP servers per channel in `TOOLS.md`. Portable, standard, Slack itself is now an MCP client — we align with the ecosystem.--### 8. LLM-Agnostic via LiteLLM-Default to Claude (Anthropic). Swap to GPT-4o, Gemini, or local Ollama via one config line. No LLM-vendor lock-in.-------## Architecture--```-┌─────────────────────────────────────────────────────────────┐-│ Slack Events │-│ Socket Mode (dev) / Events API (prod) │-└──────────────────────────┬──────────────────────────────────┘- │- ┌──────▼──────┐- │ Bolt App │ async Python- │ Gateway │- └──────┬──────┘- │- ┌───────────▼───────────┐- │ Channel Router │- │ (workspace_id + │- │ channel_id) │- │ → AgentSession │- └───────────┬───────────┘- │- ┌────────────────▼──────────────────┐- │ Context Assembler │- │ CHANNEL.md (identity/purpose) │- │ MEMORY.md (curated facts) │- │ SKILLS/*.md (loaded on demand) │- │ Recent msgs (sliding window N=50) │- │ User map (display names) │- └────────────────┬──────────────────┘- │- ┌────────────────▼──────────────────┐- │ Agent Loop │- │ ReAct + tool-use │- │ ├── Tool Registry (MCP) │- │ ├── Heartbeat (multi-step ok) │- │ └── Stream reply → Slack thread │- └──────┬─────────────────────┬───────┘- │ │- ┌──────────▼──────────┐ ┌────────▼──────────────┐- │ Memory Writer │ │ Skill Evaluator │- │ Inner loop turn: │ │ ≥5 tool calls? │- │ agent decides what │ │ → write SKILL.md │- │ to write to │ │ curator runs weekly │- │ MEMORY.md │ └────────────────────────┘- │ SQLite FTS5 index │- └──────────────────────┘- │- ┌──────────▼──────────┐- │ Ambient Engine │ background process- │ Per-channel crons │- │ Heartbeat LLM eval │- │ Stale thread scan │- │ Proactive Slack post│- └──────────────────────┘-```-------## Tech Stack--| Layer | Choice | Why |-|---|---|---|-| **Bot framework** | Slack Bolt (Python, async) | Best-documented, async/socket mode, Python ML ecosystem |-| **LLM routing** | LiteLLM | One interface for Claude/GPT/Gemini/Ollama, no vendor lock-in |-| **Primary memory** | SQLite + FTS5 (per channel) | No external deps, portable, WAL mode handles concurrent writes, Hermes-proven |-| **Semantic recall** | Mem0 (Phase 2) | ~80ms, fits on top of SQLite, ships fast |-| **Tool execution** | MCP protocol | Standard, Slack-native, hundreds of existing MCP servers |-| **Ambient tasks** | APScheduler → Temporal (Phase 3+) | APScheduler for MVP, Temporal for durability at scale |-| **Config** | TOML files + flat Markdown per channel | Human-readable, version-controllable, no UI needed to start |-| **Admin UI** | Next.js (Phase 4) | Channel config, tool access controls, token budgets |-| **Governance** | Microsoft Agent Governance Toolkit (MIT) | Don't build RBAC from scratch |-------## Memory Architecture (layered)--Borrowed from both OpenClaw and Hermes, adapted for multi-user channels:--```-Layer 1: Context Window- └── Last N=50 messages with user attribution- └── CHANNEL.md + active SKILL.md files- └── MEMORY.md (curated facts, always in context)--Layer 2: Session Store (SQLite per channel)- └── Full message history with user_id, timestamp, thread_ts- └── Tool call records (what ran, what it returned)- └── FTS5 index for instant keyword lookup--Layer 3: Semantic Search (Mem0, Phase 2)- └── Embeddings over important decisions/facts- └── Used for "what did we decide about X last month?"- └── Namespace = channel_id (isolated per channel)--Layer 4: Skill Library (per channel)- └── SKILL.md files in channels/<id>/skills/- └── Loaded into context when relevant (semantic match on task)- └── Auto-created by agent after complex tasks- └── Curated weekly (stale → archived after 30d unused)-```-------## Agent Loop Detail--```python-# Pseudocode — actual implementation in agent/loop.py--async def run_agent_loop(channel_id, workspace_id, message, user_id):- session = get_or_create_session(workspace_id, channel_id)-- # 1. Assemble context- context = assemble_context(- channel_config=load_channel_config(channel_id),- memory=load_memory_md(channel_id),- skills=load_relevant_skills(channel_id, message),- recent_messages=get_recent_messages(channel_id, n=50),- user_map=get_workspace_users(workspace_id),- )-- # 2. Run ReAct loop- tool_call_count = 0- while True:- response = await llm.complete(context, tools=get_channel_tools(channel_id))-- if response.is_tool_call:- result = await execute_mcp_tool(response.tool, channel_id)- context.add_tool_result(result)- tool_call_count += 1- else:- break # final answer-- # 3. Stream reply to Slack- await slack.post_message(channel_id, response.text, thread_ts=message.thread_ts)-- # 4. Inner loop: memory curation (Letta-inspired)- await memory_curation_turn(channel_id, context, response)-- # 5. Skill creation check (Hermes-inspired)- if tool_call_count >= 5:- await maybe_create_skill(channel_id, context, response)-- # 6. Persist to SQLite- await persist_turn(channel_id, user_id, message, response, tool_call_count)-```-------## Channel Config Files--### CHANNEL.md-```markdown-# Engineering Channel--You are the engineering team's AI teammate in #engineering.--## Purpose-Help the team with deployments, code reviews, incident response, and architecture decisions.--## Tone-Technical, direct, concise. Use code blocks liberally. Ask clarifying questions before big actions.--## What you know about this team-- We use GitHub, Linear, Datadog, and AWS-- Deployments happen via GitHub Actions-- On-call rotation: alice (this week), bob (next week)-- We do not deploy on Fridays-```--### TOOLS.md-```toml-[[mcp_server]]-name = "github"-url = "mcp://github.internal:3000"-allowed_tools = ["list_prs", "get_file", "create_comment"]--[[mcp_server]]-name = "linear"-url = "mcp://linear.internal:3001"-allowed_tools = ["list_issues", "create_issue", "update_status"]--[[mcp_server]]-name = "web_search"-url = "mcp://search:3002"-allowed_tools = ["search"]-```--### BUDGET.md-```toml-[limits]-max_tokens_per_request = 50000-max_tokens_per_day = 500000-max_tokens_per_month = 5000000-alert_at_percent = 80-```-------## Ambient Mode Design--The heartbeat evaluator runs on a per-channel cron. It assembles an observation dump and asks the LLM if anything is worth surfacing.--```python-# Pseudocode — ambient/heartbeat.py--async def run_heartbeat(channel_id):- observation = {- "recent_messages": get_messages_since_last_heartbeat(channel_id),- "open_tasks": get_open_items(channel_id), # from Linear/GitHub- "stale_threads": get_threads_no_reply_48h(channel_id),- "pending_decisions": extract_pending_decisions(channel_id),- }-- prompt = f"""- You are monitoring the #{channel_name} channel.- Here's what's happened since your last check:-- {format_observation(observation)}-- Should you post anything proactively? Only post if there's genuine value:- - A stale thread that needs follow-up- - A deadline approaching- - An unresolved question that was forgotten- - A conflict or risk you spotted-- If nothing is worth surfacing, respond with SILENT.- """-- response = await llm.complete(prompt)- if response.text != "SILENT":- await slack.post_message(channel_id, response.text)-```--Agent creates its own crons via tool:-```python-# Agent calls this tool during a conversation-schedule_task(- cron="0 9 * * 1", # every Monday 9am- description="Weekly standup prep: summarize last week's threads and open items"-)-```-------## Skill Lifecycle (Hermes-inspired)--```-Task completes with ≥5 tool calls- ↓-Agent writes skills/<slug>.md with YAML frontmatter- ↓-Skill is available for future sessions (semantic match on task description)- ↓- ├── Used regularly → stays active- ├── Not used 30 days → marked stale- └── Not used 90 days → archived (kept but not auto-loaded)--Weekly curator run:- - Merges overlapping skills- - Patches outdated instructions- - Promotes stale skills if they get used again-```--### SKILL.md format (from Hermes):-```markdown-----name: deploy-to-staging-description: Deploy a service to the staging environment via GitHub Actions-created: 2026-06-25-tool_calls_in_session: 7-uses: 0-last_used: null-status: active------## When to use this-When someone asks to deploy a service to staging.--## Steps-1. Check if there's an open PR with the changes (use `github:list_prs`)-2. Verify CI is passing on the branch-3. Trigger the `deploy-staging` workflow via `github:trigger_workflow`-4. Monitor the deployment log for 2 minutes-5. Post the staging URL back to the channel--## Known gotchas-- We don't deploy on Fridays (check day of week first)-- Always confirm with the person who asked before triggering-```-------## Phase Build Plan--### Phase 1 — Reactive channel teammate (target: 2–3 weeks)-- [ ] Project scaffold: Python, Bolt async, pyproject.toml-- [ ] Socket Mode Slack connection-- [ ] Channel router: `(workspace_id, channel_id)` → `AgentSession`-- [ ] Context assembler: CHANNEL.md + MEMORY.md + recent messages with attribution-- [ ] Agent loop: ReAct + tool-use via LiteLLM-- [ ] 3 built-in MCP tools: web search, Python code runner, file reader-- [ ] SQLite + FTS5 session store per channel-- [ ] Multi-user attribution in context window-- [ ] File-based channel config (CHANNEL.md, TOOLS.md, BUDGET.md)-- [ ] Basic token budget enforcement--**Milestone:** `@agent explain the last PR that was deployed` works in a Slack channel, with shared context across all users.--### Phase 2 — Memory + Skills (target: +2 weeks)-- [ ] Letta inner loop: memory curation turn after each response-- [ ] `memory_append` and `memory_replace` agent tools-- [ ] Hermes-style skill auto-creation (≥5 tool calls → write SKILL.md)-- [ ] Skill loader: semantic match skill to incoming task-- [ ] Skill curator (weekly background job)-- [ ] Mem0 integration for semantic recall layer--**Milestone:** Agent remembers team conventions across sessions without being told twice. Skill library grows automatically.--### Phase 3 — Ambient mode (target: +2 weeks)-- [ ] Heartbeat evaluator (APScheduler, per channel)-- [ ] Stale thread detection-- [ ] `schedule_task` tool (agent creates its own crons)-- [ ] Observation dump builder-- [ ] SILENT / post decision logic-- [ ] Temporal integration for durable task orchestration (optional at this stage)--**Milestone:** Agent proactively surfaces a forgotten thread or approaching deadline without being tagged.--### Phase 4 — Governance + Admin UI (target: +2 weeks)-- [ ] Per-channel audit log (who asked what, which tools ran, tokens spent)-- [ ] Hard token budget enforcement (reject request if over limit)-- [ ] Admin web UI: channel config, tool access controls, budget view-- [ ] Microsoft Agent Governance Toolkit integration for RBAC-- [ ] Channel isolation tests (agent A cannot read channel B memory)--**Milestone:** Enterprise admin can configure and audit every channel's agent from a web UI.--### Phase 5 — Multi-platform + ecosystem (ongoing)-- [ ] Discord adapter (same channel router, different event source)-- [ ] Microsoft Teams adapter-- [ ] Contribute Slack adapter improvements to OpenClaw ecosystem-- [ ] MCP server registry UI (browse and enable community MCP servers)-- [ ] Public hosted version (tagopen.ai or similar)-------## What NOT to Build (at least not yet)--- ❌ Per-user memory (personal assistant mode) — stay focused on channel-native-- ❌ Custom LLM fine-tuning — use existing models, stay model-agnostic-- ❌ Voice/video — Slack only for now-- ❌ Own vector DB — use Mem0 abstraction, don't build RAG infrastructure-- ❌ Custom MCP servers — support the protocol, let community build servers-- ❌ Real-time streaming UI — Slack's threading model is enough for MVP-------## Key References--- [Claude Tag announcement — Anthropic](https://www.anthropic.com/news/introducing-claude-tag)-- [Claude Tag technical architecture — explainx.ai](https://www.explainx.ai/blog/claude-tag-slack-team-ai-collaboration-guide-2026)-- [OpenClaw docs — agent loop](https://docs.openclaw.ai/concepts/agent-loop)-- [OpenClaw docs — multi-agent routing](https://docs.openclaw.ai/concepts/multi-agent)-- [OpenClaw gateway deep dive](https://practiceoverflow.substack.com/p/deep-dive-into-the-openclaw-gateway)-- [Hermes Agent 5-pillar architecture](https://www.mindstudio.ai/blog/hermes-agent-5-pillar-architecture-memory-skills-soul-crons)-- [Hermes Agent self-improving loop](https://mranand.substack.com/p/inside-hermes-agent-how-a-self-improving)-- [Letta agent loop rearchitecture](https://www.letta.com/blog/letta-v1-agent)-- [Ambient agents — Temporal](https://temporal.io/blog/orchestrating-ambient-agents-with-temporal)-- [Heartbeat pattern for proactive agents](https://www.mindstudio.ai/blog/agentic-os-heartbeat-pattern-proactive-ai-agent)-- [Mem0 vs Zep vs Letta comparison](https://dev.to/agdex_ai/ai-agent-memory-in-2026-mem0-vs-zep-vs-letta-vs-cognee-a-practical-guide-cfa)-- [Slack as agentic OS + MCP](https://aiautomationglobal.com/blog/slack-ai-agentic-os-mcp-30-features-2026)-- [Agent Governance Toolkit — Microsoft](https://opensource.microsoft.com/blog/2026/04/02/introducing-the-agent-governance-toolkit-open-source-runtime-security-for-ai-agents/)-------## Open Questions (decide before building)--1. **Name** — TagOpen? Channelmate? Copal? Teammate? Needs a GitHub repo name.-2. **Python vs Node** — Python chosen for ML ecosystem alignment, but OpenClaw is Node/TS with way more community. Worth revisiting if community contribution matters early.-3. **Hosting model** — self-host only for MVP, or offer a hosted SaaS version early for distribution?-4. **Thread vs channel** — should ambient posts start new threads or post in main channel? (UX decision)-5. **Memory consent** — should users be able to opt out of having their messages stored in channel memory?-6. **Skill sharing** — should skills be per-channel only, or shareable across channels in the same workspace?diff --git a/README.md b/README.mdindex 4a6ae3b..057152e 100644--- a/README.md+++ b/README.md@@ -1,158 +1,271 @@-# TagOpen+# Open AI Design Agent — Open-Source Alternative to Lovart AI, Runway Agent, Luma Labs Agent, Krea Agent-**Self-hostable, channel-native AI teammate for Slack.**-LLM-agnostic open source alternative to Claude Tag.+[](https://muapi.ai?utm_source=github&utm_medium=badge&utm_campaign=open-ai-design-agent)-> One agent per channel, shared by the whole team. Persistent memory. Skill auto-creation. Ambient monitoring. No vendor lock-in.----+> **The free, open-source AI design agent.** Plan, generate, and assemble full creative deliverables — posters, social campaigns, brand kits, ad creatives, motion ads, and video cutdowns — through an autonomous agent that orchestrates 200+ image and video models. No subscription, no credit caps, no creative restrictions.-## What makes this different+**Community:** Join [Reddit](https://reddit.com/r/muapi) & [Discord](https://discord.gg/s7KW4fsqXK) for discussions and support-Most Slack AI bots are personal assistants — one context per user, isolated DMs. TagOpen flips this:+> 🤖 **Automate Lovart, Runway, Luma Labs, Krea, Pika & more with AI coding agents:** [Generative-Media-Skills](https://github.com/SamurAIGPT/Generative-Media-Skills) — a library of skills that let agents like **Claude Code**, **Codex**, and other coding assistants drive 200+ image/video models end-to-end (brief → plan → generate → edit → assemble) directly from your terminal. Build automated creative pipelines without touching a UI.-- **Channel-scoped identity** — one agent shared by everyone in `#engineering`. All users see the same context, pick up mid-thread.-- **Multi-user attribution** — every message is tagged `[@alice]` so the agent knows who said what and can follow up with the right person.-- **Agent-curated memory** — after each conversation, the agent decides what to persist to `MEMORY.md`. No noisy append-only logs.-- **Skill auto-creation** — after complex multi-step tasks, the agent writes a `SKILL.md` capturing what it learned. Institutional knowledge accumulates automatically.-- **Ambient heartbeat** — configurable proactive monitoring: the agent surfaces stale threads, approaching deadlines, and unresolved questions without being tagged.-- **File-based config** — each channel is a directory of Markdown files. Version-controllable, no UI required.-- **MCP-native tools** — plug in any MCP server per channel. Admins control exactly what each channel's agent can access.+https://github.com/user-attachments/assets/fee3857c-887d-4c27-b3dc-a1fe9ad8f438----+### Related projects-## Quickstart+> **Open-source Freepik, Krea, Openart alternative — uncensored image & video studio with 200+ models** -> https://github.com/Anil-matcha/Open-Generative-AI-```bash-# 1. Clone and install-git clone https://github.com/Anil-matcha/tagopen-cd tagopen-pip install -e ".[dev]"--# 2. Configure-cp .env.example .env-# Fill in SLACK_BOT_TOKEN, SLACK_APP_TOKEN, ANTHROPIC_API_KEY--# 3. Set up your first channel config-mkdir -p data/channels/YOUR_CHANNEL_ID-cp channels/example/CHANNEL.md data/channels/YOUR_CHANNEL_ID/CHANNEL.md-# Edit CHANNEL.md to describe your channel's purpose--# 4. Run-tagopen-```+> **Open-source Weavy, Flora Fauna, Freepik Spaces, Krea Nodes alternative — visual workflow editor** -> https://github.com/SamurAIGPT/Vibe-Workflow-Then `@tagopen` in your channel.+> **Open-source Opus Clip alternative — turn long videos into viral vertical shorts** -> https://github.com/SamurAIGPT/AI-Youtube-Shorts-Generator----+> **Open-source multi-modal chatbot and Poe alternative** -> https://github.com/Anil-matcha/Open-Poe-AI-## Channel configuration+> **Self-hosted AI voice agent for sales calls and customer support** -> https://github.com/Anil-matcha/AI-Voice-Agent-Each channel gets a directory under `data/channels/<channel_id>/`:+<p align="center">+ <a href="https://github.com/Anil-matcha/awesome-generative-ai-apps">+ <img src="https://img.shields.io/badge/Part%20of-Awesome%20Generative%20AI%20Apps-FFD700?style=for-the-badge&logo=github&logoColor=black" alt="Awesome Generative AI Apps">+ </a>+</p>-```-data/channels/C01234ABC/- CHANNEL.md ← identity, purpose, tone- MEMORY.md ← agent-maintained facts (do not edit manually)- tools.toml ← which MCP servers are enabled- skills/ ← auto-created skill playbooks- deploy.md- oncall.md-```+> 🎨 **[Explore 50+ more open-source AI apps →](https://github.com/Anil-matcha/awesome-generative-ai-apps)**-### CHANNEL.md example-```markdown-# Engineering Channel+## 🌐 Try it Online — No Install Required-You are the engineering team's AI teammate.-Be concise, technical, and ask before triggering deploys.+**Hosted version:** [https://muapi.ai/assistant?utm_source=github&utm_medium=readme&utm_campaign=open-ai-design-agent](https://muapi.ai/assistant?utm_source=github&utm_medium=readme&utm_campaign=open-ai-design-agent)-## Team context-- Stack: Python, React, PostgreSQL, AWS-- We do not deploy on Fridays-```+Run the design agent directly in your browser — no Node.js, no setup. Sign up for a free account to start designing. The hosted version is always up to date with the latest models, planners, and templates.-### tools.toml example-```toml-[[mcp_server]]-name = "github"-url = "mcp://localhost:3001"-allowed_tools = ["list_prs", "get_file", "create_comment"]-```+**Follow** the [creator](https://x.com/matchaman11) for updates----## Architecture+Open AI Design Agent is a free, open-source AI design agent that turns natural-language briefs into full creative deliverables. Instead of picking one model and generating one asset, you describe a campaign, brand, or scene and the agent plans the deliverable list, picks the best model per asset (typography, vector, photoreal, motion), generates them in dependency order, threads brand references forward, and hands back the assembled kit. Powered by [Muapi.ai](https://muapi.ai?utm_source=github&utm_medium=readme&utm_campaign=open-ai-design-agent), it orchestrates 200+ image and video models — Nano Banana 2, Flux 2 Pro, Ideogram v3, Seedream 5, GPT-Image, Recraft v3, Midjourney v7, Kling, Sora, Veo, Runway, Luma Ray2 — across a single agent loop you can self-host and modify.++**Why Open Lovart instead of Lovart, Runway Agent, Luma Labs Agent, Krea Agent?**+- **Free & open-source** — MIT-licensed, no subscription, no credit caps+- **Self-hosted** — your briefs, brand kits, and outputs stay on your machine+- **200+ models orchestrated** — image *and* video, routed automatically per asset (Flux 2, Nano Banana 2, Ideogram v3, Recraft v3, Kling, Sora, Veo, Runway, Luma Ray2)+- **Inspectable agent loop** — every plan, model choice, and intermediate output is visible and editable; nothing is black-boxed+- **Brand kit conditioning** — palette, fonts, logo, and tone persist across every generation in a campaign+- **Multi-image reference** — up to 14 images for style transfer, product placement, or character consistency+- **Static + motion in one agent** — same brief produces poster, social cutdown, and 9:16 video ad without switching tools+- **Extensible** — add your own templates, models, planners, and tool-calls; fork the agent loop; ship products on top++## ✨ Features++- **Design Agent (Chat Mode)** — Describe a brand or campaign in plain English; the agent plans deliverables, picks the right model per asset, generates them in order, and assembles the kit+- **Design Studio** — Posters, flyers, ad creatives, social graphics, presentation slides, logos, brand identities, illustrations, packaging mockups, UI screens — all from one prompt or chat thread+- **Motion Studio** — Animated logos, product motion mockups, video ads, social video cutdowns (9:16 / 1:1 / 16:9), lip-synced spokesperson clips+- **Multi-Image Reference** — Up to 14 reference images for style transfer, brand consistency, or product placement (Nano Banana 2 Edit, Flux Kontext, GPT-Image Edit, Seedream Edit)+- **Text Rendering** — Auto-route prompts containing typographic copy to text-capable models (Ideogram v3, Flux Pro Ultra, Nano Banana 2, GPT-Image)+- **Edit Mode** — Refine, recolor, restyle, expand, inpaint, or remove elements via natural-language edits+- **Brand Kit** — Persist palette, font, logo, and tone — every generation respects the kit automatically+- **Templates Library** — Pre-built recipes for Instagram posts, story ads, LinkedIn banners, YouTube thumbnails, A4 posters, business cards, e-commerce hero shots, app icons, t-shirt prints, motion ads+- **Vectorize & Export** — Convert raster outputs to SVG, remove backgrounds cleanly, upscale to 4K print-ready+- **Workflow Studio** — Visual node-based editor to chain models into repeatable design pipelines (powered by [Vibe Workflow](https://github.com/SamurAIGPT/Vibe-Workflow))+- **Smart Controls** — Aspect ratio, resolution, quality, duration, and seed pickers that adapt per model+- **Generation History** — Browse, revisit, and download every past design (persisted locally in browser storage)+- **Responsive UI** — Modern dark/glass interface that works on desktop and mobile+- **API Key Management** — Keys stored in browser `localStorage`, never sent anywhere except Muapi++### 🤖 Design Agent — How it Works++Give the agent a brief like *"launch kit for a sustainable coffee brand called Pinecone — modern, earthy, monochrome with one accent, plus a 9:16 launch video"* and it will:++1. **Plan** — break the brief into a deliverable list (logo, wordmark, palette swatches, IG launch post, story ad, A4 poster, business card, packaging mockup, 9:16 launch video, motion logo)+2. **Route** — pick the right model per asset (Recraft v3 for the logo, Ideogram v3 for the typographic poster, Nano Banana 2 Edit for product placement, Flux Pro for the hero shot, Kling / Sora / Veo / Runway / Luma Ray2 for video)+3. **Execute** — generate in dependency order, threading the brand palette and reference images forward at each step+4. **Assemble** — hand back the full kit as downloadable assets, organized by category++You can interrupt at any step, swap a model, lock a result, fork the plan, or hand-edit any intermediate output and resume.++### 🎨 Design Studio — Three Modes++| Mode | Trigger | Models | Best for |+| :--- | :--- | :--- | :--- |+| **Generate** | Default (no image) | 50+ t2i models with text-rendering routing | New designs from a brief |+| **Edit** | Reference image uploaded | 55+ i2i / inpaint / outpaint models | Refining, recoloring, restyling existing assets |+| **Agent** | Chat thread | All of the above + video models, planned by the agent | Multi-asset campaigns, brand kits, full identity sets |++### Supported Use Cases++| Asset | Recommended Models | Notes |+| :--- | :--- | :--- |+| **Posters / Flyers** | Ideogram v3, Flux Pro Ultra, Nano Banana 2 | Crisp typographic output, A4/A3 ready |+| **Social Posts (IG / TikTok / X)** | Seedream 5, Flux Dev, Nano Banana 2 | 1:1 / 4:5 / 9:16 templates included |+| **Logos** | Recraft v3, Ideogram v3 | Pair with Vectorize for SVG export |+| **Brand Identity Boards** | Flux Pro, GPT-Image, Nano Banana 2 Edit | Multi-image reference for consistency |+| **UI Mockups & App Screens** | Flux Dev, GPT-Image, Recraft v3 | Galileo AI / Stitch / v0 / Magic Patterns alternative |+| **Product Mockups & Lifestyle** | Nano Banana 2 Edit, Flux Kontext Pro | Place product on staged backgrounds |+| **Illustrations** | Flux Dev, SDXL, Anything v5 | Stylized character & scene work |+| **YouTube Thumbnails** | Ideogram v3, Nano Banana 2 | Readable bold text + face composition |+| **Print (≥ 300 DPI)** | Flux Pro Ultra, Imagen 4 Ultra | Pair with Clarity / Magnific upscaler |+| **Packaging & Merch** | Recraft v3, Flux Pro | Vector + repeat-pattern friendly |+| **Motion Ads / Social Video** | Kling v3, Sora 2, Veo 3, Runway, Luma Ray2 | 9:16 / 1:1 / 16:9, 5–15s |+| **Animated Logos** | Kling I2V, Runway I2V, Luma Ray2 I2V | Animate static logo through i2v |+| **Spokesperson / Talking Head** | Infinite Talk, LTX 2.3 Lipsync, Wan 2.2 Speech-to-Video | Portrait + audio → video |++### 🔀 Workflow Studio++The **Workflow Studio** lets you build and run multi-step design pipelines without writing code.++**Key capabilities:**+- **Templates** — Start from pre-built design pipelines (logo + kit, social bundle, ad variants, product photoshoot, motion ad)+- **My Workflows** — Save and manage your own pipelines+- **Community** — Browse and run workflows published by other users+- **Node-based Builder** — Drag-and-drop visual editor connecting models and routing outputs between steps+- **Playground** — Run any workflow interactively with a form UI; results render inline+- **API execution** — Every workflow is also callable via the Muapi API++> 💡 **Want to add workflows to your own app?** Check out **[Vibe Workflow](https://github.com/SamurAIGPT/Vibe-Workflow)** — the open-source workflow engine powering this feature.++## 🚀 Quick Start++> Studio code is being added — for now this repo holds the agent design and roadmap. Watch / star the repo to be notified when the studio lands. The hosted version at [dev.muapi.ai/open-lovart](https://dev.muapi.ai/open-lovart) is live.++### Prerequisites (when self-hosting lands)++- [Node.js](https://nodejs.org/) (v18+)+- A [Muapi.ai](https://muapi.ai?utm_source=github&utm_medium=readme&utm_campaign=open-ai-design-agent) API key (free tier available)++### Setup-```-Slack (Socket Mode)- ↓- Bolt Gateway- ↓- Channel Router ← (workspace_id, channel_id) → AgentSession- ↓- Context Assembler ← CHANNEL.md + MEMORY.md + skills + recent msgs- ↓- Agent Loop (ReAct + tool-use via LiteLLM)- ├── Tool Registry (built-ins + MCP)- ├── Streaming reply → Slack thread- ├── Memory curation turn (Letta inner loop)- └── Skill auto-creation (Hermes pattern)- ↓- SQLite + FTS5 ← per-channel message store- ↓- Ambient Engine ← heartbeat cron, proactive posts+```bash+# Clone the repository+git clone https://github.com/Anil-matcha/Open-Lovart.git+cd Open-Lovart++# Install dependencies+npm run setup++# Start the dev server+npm run dev```----+Visit `http://localhost:3000` and enter your Muapi API key on first launch.++### Production Build-## Supported LLMs+```bash+npm run build+npm run start+```-Uses [LiteLLM](https://github.com/BerriAI/litellm) — swap provider via `LLM_MODEL` in `.env`:+## 🎨 Supported Model Categories-| Provider | Model string | Key env var |+| Category | Count | Examples ||---|---|---|-| Anthropic (default) | `claude-sonnet-4-6` | `ANTHROPIC_API_KEY` |-| OpenAI | `gpt-4o` | `OPENAI_API_KEY` |-| Google Gemini | `gemini/gemini-2.0-flash` | `GEMINI_API_KEY` |-| Groq | `groq/llama-3.3-70b-versatile` | `GROQ_API_KEY` |-| Local (Ollama) | `ollama/llama3` | *(none)* |--**Per-channel override** — different channels can use different models. Add to `data/channels/<id>/tools.toml`:-```toml-[llm]-model = "gpt-4o"-```+| **Text-to-Image (Design)** | 50+ | Flux 2 Pro, Nano Banana 2, Ideogram v3, Seedream 5, GPT-Image, Recraft v3, Midjourney v7, Imagen 4 Ultra |+| **Image-to-Image (Edit)** | 55+ | Nano Banana 2 Edit, Flux Kontext Pro/Max, GPT-Image Edit, Seededit v3, Seedream 5 Edit |+| **Vector / Logo** | 5+ | Recraft v3, Ideogram v3, Vectorizer.AI |+| **Background Removal** | 3+ | BiRefNet, RemBG, BG-Remover-v2 |+| **Upscaling (Print-grade)** | 8+ | Real-ESRGAN, Clarity Upscaler, Topaz, Magnific |+| **Inpaint / Outpaint** | 10+ | Flux Fill Pro, GPT-Image Inpaint, Seededit |+| **Text-to-Video** | 40+ | Kling v3, Sora 2, Veo 3, Wan 2.6, Seedance 2.0, Runway Gen-3, Luma Ray2 |+| **Image-to-Video** | 60+ | Kling v2.1 I2V, Veo3 I2V, Runway I2V, Luma Ray2 I2V, Seedance 2.0 I2V |+| **Lip Sync** | 9 | Infinite Talk, Wan 2.2 Speech-to-Video, LTX 2.3 Lipsync, Sync, LatentSync |++## 🛠️ Tech Stack++- **Next.js 14** — App Router, server components, fast dev server+- **React 18** — Studio UI components+- **Tailwind CSS v3** — Utility-first styling+- **npm workspaces** — Monorepo with shared `packages/studio` library+- **Muapi.ai** — AI model API gateway+- **Vibe Workflow** — Open-source node-based workflow engine++## 🤔 How is this different from Lovart, Runway Agent, Luma Labs Agent, Krea Agent?++**Open Lovart** is a community-driven, open-source alternative to closed AI design agents — same agentic creative loop, none of the lock-in.++| | Lovart / Runway / Luma / Krea Agents | Open Lovart |+| :--- | :--- | :--- |+| **Cost** | Subscription + credit packs | Free (open-source) |+| **Credit caps** | Hard monthly limits | Pay-as-you-go via your own Muapi key |+| **Model coverage** | Proprietary or single-vendor stack | 200+ open & commercial models, image *and* video |+| **Agent loop** | Closed, opaque | Fully inspectable and forkable |+| **Static + motion** | Usually one or the other per agent | Both, in one plan |+| **Text rendering** | Limited / single model | Routed across Ideogram v3, Flux Pro, Nano Banana 2, GPT-Image |+| **Multi-image reference** | Limited | Up to 14 images per request |+| **Brand kit** | Basic | Persistent palette / font / logo / tone conditioning |+| **Custom planners / tools** | No | Yes — bring your own planner, model, or post-step |+| **Self-hosting** | No | Yes |+| **Data privacy** | Cloud-based | Your data stays local |+| **Source code** | Closed | MIT licensed |++## 📄 License++MIT++## 🙏 Credits++Built with [Muapi.ai](https://muapi.ai?utm_source=github&utm_medium=readme&utm_campaign=open-ai-design-agent) — the unified API for AI image and video generation models.---+*Looking for a free, open-source Lovart alternative? Open Lovart is an open-source AI design agent — a Lovart, Runway Agent, Luma Labs Agent, Krea Agent, Pika Agent, Galileo AI, Magic Patterns replacement that you can self-host, customize, and extend.*-## Development+This project is an independent, experimental, and open-source initiative and is not affiliated with, endorsed by, or associated with Lovart, Runway, Luma Labs, Krea AI, Pika Labs, Galileo AI, Magic Patterns, or any of their respective companies, products, or services. Any references to third-party platforms, models, or technologies are made solely for interoperability, benchmarking, research, or educational purposes. All trademarks, logos, and brand names are the property of their respective owners. If any content in this repository creates confusion or raises concerns, please contact us and we will promptly review and address it.-```bash-# Run tests-pytest+## FAQ++### What is Open AI Design Agent?++**Open AI Design Agent** is a free, open-source AI design agent — alternative to **Lovart AI**, **Runway Agent**, **Luma Labs Agent**, **Krea Agent**. It turns natural-language briefs into full creative deliverables by orchestrating **200+ image and video models**.++### Key Features-# Lint-ruff check .+| Feature | Description |+|---------|-------------|+| **Design Agent** | Describe a brand/campaign → agent plans, picks models, generates, assembles the kit |+| **200+ Models** | Flux 2 Pro, Nano Banana 2, Ideogram v3, Recraft v3, Midjourney v7, Kling, Sora, Veo, Runway, Luma Ray2 |+| **Brand Kit** | Persist palette, fonts, logo, tone — every generation respects the kit |+| **Multi-Image Reference** | Up to 14 images for style transfer, brand consistency, product placement |+| **Motion Studio** | Animated logos, video ads, social video cutdowns (9:16/1:1/16:9) |+| **Templates Library** | Instagram posts, YouTube thumbnails, A4 posters, business cards, packaging mockups |+| **Vectorize & Export** | Convert raster to SVG, remove backgrounds, upscale to 4K print-ready |+| **Workflow Studio** | Visual node-based editor to chain models into repeatable pipelines |-# Type check-mypy tagopen/+### How to Get Started++**Hosted (No Install):** https://muapi.ai/assistant?utm_source=github&utm_medium=readme&utm_campaign=open-ai-design-agent — Run directly in browser++**Self-Hosted:**+```bash+git clone https://github.com/Anil-matcha/Open-AI-Design-Agent.git+cd Open-AI-Design-Agent && npm run setup && npm run dev```----+Visit `http://localhost:3000` and enter your Muapi API key.-## Roadmap+### Supported Asset Types-- [x] Phase 1 — Channel-native reactive teammate-- [ ] Phase 2 — Mem0 semantic recall + skill curator-- [ ] Phase 3 — Ambient heartbeat + agent-managed crons-- [ ] Phase 4 — Admin web UI + token governance-- [ ] Phase 5 — Discord + Teams adapters+| Asset | Recommended Models |+|-------|---------------------|+| **Posters/Flyers** | Ideogram v3, Flux Pro Ultra, Nano Banana 2 |+| **Logos** | Recraft v3, Ideogram v3 (+ Vectorize for SVG) |+| **Social Posts** | Seedream 5, Flux Dev, Nano Banana 2 |+| **Product Mockups** | Nano Banana 2 Edit, Flux Kontext Pro |+| **Motion Ads** | Kling v3, Sora 2, Veo 3, Runway, Luma Ray2 |+| **YouTube Thumbnails** | Ideogram v3, Nano Banana 2 |-See [PLAN.md](PLAN.md) for full architecture and design decisions.+### Why Open vs Lovart/Runway/Luma/Krea?----+- **Free & open-source** — MIT-licensed, no subscription, no credit caps+- **Self-hosted** — your briefs and outputs stay on your machine+- **Inspectable agent loop** — every plan and model choice is visible and editable+- **Static + motion in one agent** — same brief produces poster, social, and video-## License+### Help Resources-MIT+| Resource | Link |+|----------|------|+| **Hosted Studio** | https://muapi.ai/assistant?utm_source=github&utm_medium=readme&utm_campaign=open-ai-design-agent |+| **Reddit Community** | https://reddit.com/r/muapi |+| **Discord** | https://discord.gg/s7KW4fsqXK |+| **Related Projects** | [Open-Generative-AI](https://github.com/Anil-matcha/Open-Generative-AI), [Vibe Workflow](https://github.com/SamurAIGPT/Vibe-Workflow) |++### License++MIT License - Open source and free to use.diff --git a/channels/example/BUDGET.md b/channels/example/BUDGET.mddeleted file mode 100644index 7562705..0000000--- a/channels/example/BUDGET.md+++ /dev/null@@ -1,3 +0,0 @@-# Token Budget--Managed by tagopen. Do not edit.diff --git a/channels/example/CHANNEL.md b/channels/example/CHANNEL.mddeleted file mode 100644index cb82762..0000000--- a/channels/example/CHANNEL.md+++ /dev/null@@ -1,18 +0,0 @@-# Engineering Channel--You are the engineering team's AI teammate.--## Purpose-Help the team with deployments, code reviews, incident response, and architecture decisions.--## Tone-Technical, direct, concise. Use code blocks liberally.-Ask clarifying questions before taking big actions.-Always confirm before triggering deploys or destructive operations.--## Team context-- Stack: Python backend, React frontend, PostgreSQL, AWS-- CI/CD: GitHub Actions-- Issue tracker: Linear-- On-call: check with the team before assuming who is on-call-- We do not deploy on Fridaysdiff --git a/channels/example/MEMORY.md b/channels/example/MEMORY.mddeleted file mode 100644index cc9496c..0000000--- a/channels/example/MEMORY.md+++ /dev/null@@ -1,5 +0,0 @@-# Channel Memory--This file is maintained by the agent. Do not edit manually unless correcting errors.--<!-- agent will append facts here as they emerge -->diff --git a/channels/example/tools.toml b/channels/example/tools.tomldeleted file mode 100644index bb1a80e..0000000--- a/channels/example/tools.toml+++ /dev/null@@ -1,21 +0,0 @@-# Channel tool + LLM configuration-# Built-in tools (web_search, run_python, search_channel_history) are always available.--# Per-channel LLM override — leave commented to use the global LLM_MODEL-# [llm]-# model = "gpt-4o" # use OpenAI for this channel-# model = "claude-sonnet-4-6" # use Anthropic-# model = "gemini/gemini-2.0-flash" # use Gemini-# model = "groq/llama-3.3-70b-versatile" # use Groq--# Example: GitHub MCP server-# [[mcp_server]]-# name = "github"-# url = "mcp://localhost:3001"-# allowed_tools = ["list_prs", "get_file", "create_comment"]--# Example: Linear MCP server-# [[mcp_server]]-# name = "linear"-# url = "mcp://localhost:3002"-# allowed_tools = ["list_issues", "create_issue", "update_status"]diff --git a/client/.env.example b/client/.env.examplenew file mode 100644index 0000000..367958d--- /dev/null+++ b/client/.env.example@@ -0,0 +1,4 @@+# Base URL for the Muapi Creative Agent API+# Default: https://muapi.ai/api/v1/creative-agent+# For local development: http://localhost:8000/api/v1/creative-agent+NEXT_PUBLIC_API_BASE=https://dev.muapi.ai/api/v1/creative-agentdiff --git a/client/AGENTS.md b/client/AGENTS.mdnew file mode 100644index 0000000..8bd0e39--- /dev/null+++ b/client/AGENTS.md@@ -0,0 +1,5 @@+<!-- BEGIN:nextjs-agent-rules -->+# This is NOT the Next.js you know++This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices.+<!-- END:nextjs-agent-rules -->diff --git a/client/CLAUDE.md b/client/CLAUDE.mdnew file mode 100644index 0000000..43c994c--- /dev/null+++ b/client/CLAUDE.md@@ -0,0 +1 @@diff --git a/client/Dockerfile b/client/Dockerfilenew file mode 100644index 0000000..c5d9457--- /dev/null+++ b/client/Dockerfile@@ -0,0 +1,47 @@+# syntax=docker/dockerfile:1++# Stage 1: Base image+FROM node:24-alpine AS base+WORKDIR /app+ENV NODE_ENV=production++# Stage 2: Install dependencies+FROM base AS deps+COPY package.json package-lock.json ./+COPY client/package.json ./client/+COPY packages/design-agent/package.json ./packages/design-agent/+RUN npm ci --include=dev++# Stage 3: Build shared package+FROM deps AS builder-lib+COPY packages/design-agent ./packages/design-agent+WORKDIR /app/packages/design-agent+RUN npm run build++# Stage 4: Build Next.js app+FROM deps AS builder+COPY --from=builder-lib /app/packages/design-agent/dist ./packages/design-agent/dist+COPY client ./client+ARG API_URL=http://server:8000+ENV API_URL=${API_URL}+WORKDIR /app/client+RUN npm run build++# Stage 5: Production runtime+FROM base AS production+RUN addgroup --system --gid 1001 nodejs && \+ adduser --system --uid 1001 nextjs++COPY --from=builder --chown=nextjs:nodejs /app/client/.next/standalone ./+COPY --from=builder /app/client/public ./client/public+COPY --from=builder --chown=nextjs:nodejs /app/client/.next/static ./client/.next/static++USER nextjs+EXPOSE 3000+ENV PORT=3000+ENV HOSTNAME="0.0.0.0"++HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \+ CMD wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1++CMD ["node", "client/server.js"]diff --git a/client/app/canvas/page.js b/client/app/canvas/page.jsnew file mode 100644index 0000000..fe6bb62--- /dev/null+++ b/client/app/canvas/page.js@@ -0,0 +1,37 @@+"use client";++import React, { Suspense } from "react";+import { useSearchParams } from "next/navigation";+import { useApi } from "@/context/ApiContext";+import { CreativeCanvas } from "design-agent";+import "design-agent/dist/tailwind.css";+import { useTheme } from "next-themes";++function CanvasLoader() {+ const searchParams = useSearchParams();+ const sessionId = searchParams.get("session");+ const initialAssetParam = searchParams.get("a");+ const { userData } = useApi();+ const { theme, setTheme, resolvedTheme } = useTheme();++ return (+ <CreativeCanvas+ sessionId={sessionId}+ initialAssetParam={initialAssetParam}+ user={userData}+ isAuthorized={true}+ theme={resolvedTheme}+ setTheme={setTheme}+ />+ );+}++export default function CanvasPage() {+ return (+ <div className="h-dvh w-full">+ <Suspense fallback={<div className="h-full w-full flex items-center justify-center">Loading Workspace...</div>}>+ <CanvasLoader />+ </Suspense>+ </div>+ );+}diff --git a/client/app/favicon.ico b/client/app/favicon.iconew file mode 100644index 0000000..718d6feBinary files /dev/null and b/client/app/favicon.ico differdiff --git a/client/app/globals.css b/client/app/globals.cssnew file mode 100644index 0000000..257853e--- /dev/null+++ b/client/app/globals.css@@ -0,0 +1,149 @@+@import "tailwindcss";+@custom-variant dark (&:is(.dark *));+++@theme {+ --color-primary: #3898ec;+ --color-brand-primary: #3898ec;+ --color-bg-page: var(--bg-page);+ --color-bg-card: var(--bg-card);+ --color-primary-text: var(--text-primary);+ --color-secondary-text: var(--text-secondary);+ --color-divider: var(--border-subtle);+}++:root {+ --bg-page: #F8FAFC;+ --bg-card: #FFFFFF;+ --bg-card-hover: #F1F5F9;+ --text-primary: #0F172A;+ --text-secondary: #475569;+ --border-subtle: #E2E8F0;+ --primary: #3898ec;+}++.dark {+ --bg-page: #121212;+ --bg-card: #1E1E1E;+ --bg-card-hover: #2A2A2A;+ --text-primary: #E0E0E0;+ --text-secondary: #94A3B8;+ --border-subtle: #333333;+ --primary: #3898ec;+}++body {+ background-color: var(--bg-page);+ color: var(--text-primary);+}++/* Custom Scrollbar */+::-webkit-scrollbar {+ width: 6px;+ height: 6px;+}++::-webkit-scrollbar-track {+ background: transparent;+}++::-webkit-scrollbar-thumb {+ background: var(--border-subtle);+ border-radius: 10px;+}++::-webkit-scrollbar-thumb:hover {+ background: var(--text-secondary);+}++/* Markdown Styles */+.markdown-content {+ line-height: 1.6;+}++.markdown-content p {+ margin-bottom: 0.75rem;+}++.markdown-content p:last-child {+ margin-bottom: 0;+}++.markdown-content ul, .markdown-content ol {+ margin-left: 1.5rem;+ margin-bottom: 0.75rem;+}++.markdown-content li {+ margin-bottom: 0.25rem;+}++.markdown-content h1, .markdown-content h2, .markdown-content h3 {+ font-weight: 700;+ margin-top: 1.25rem;+ margin-bottom: 0.5rem;+}++.markdown-content code {+ background: rgba(0, 0, 0, 0.1);+ padding: 0.1rem 0.3rem;+ border-radius: 4px;+}++.dark .markdown-content code {+ background: rgba(255, 255, 255, 0.1);+}++.scrollbar-subtle::-webkit-scrollbar {+ width: 4px;+}++@keyframes fadeInUp {+ from { opacity: 0; transform: translateY(10px); }+ to { opacity: 1; transform: translateY(0); }+}++.animate-fade-in-up {+ animation: fadeInUp 0.3s ease-out forwards;+}++.glass-morphism {+ background: rgba(30, 30, 30, 0.7);+ backdrop-filter: blur(10px);+ border: 1px solid rgba(255, 255, 255, 0.1);+}++/* ===== TYPING INDICATOR ===== */+.typing-dots {+ display: flex;+ align-items: center;+ gap: 4px;+}++.typing-dots span {+ width: 4px;+ height: 4px;+ background-color: currentColor;+ border-radius: 50%;+ display: inline-block;+ animation: typing-bounce 1.4s infinite ease-in-out both;+}++.typing-dots span:nth-child(1) {+ animation-delay: -0.32s;+}++.typing-dots span:nth-child(2) {+ animation-delay: -0.16s;+}++@keyframes typing-bounce {+ 0%, 80%, 100% {+ transform: scale(0);+ opacity: 0.6;+ }+ 40% {+ transform: scale(1);+ opacity: 1;+ }+}diff --git a/client/app/layout.js b/client/app/layout.jsnew file mode 100644index 0000000..f60a0d8--- /dev/null+++ b/client/app/layout.js@@ -0,0 +1,24 @@+import { Inter } from "next/font/google";+import "./globals.css";+import { Providers } from "./providers";+import { Toaster } from "react-hot-toast";++const inter = Inter({ subsets: ["latin"] });++export const metadata = {+ title: "Open Muapi Assistant",+ description: "Open source AI creative assistant powered by Muapi API",+};++export default function RootLayout({ children }) {+ return (+ <html lang="en" suppressHydrationWarning>+ <body className={`${inter.className} antialiased`}>+ <Providers>+ {children}+ </Providers>+ <Toaster position="top-right" />+ </body>+ </html>+ );+}diff --git a/client/app/page.js b/client/app/page.jsnew file mode 100644index 0000000..458a671--- /dev/null+++ b/client/app/page.js@@ -0,0 +1,602 @@+"use client";++import React, { useState, useEffect, useCallback } from "react";+import { useRouter } from "next/navigation";+import axios from "axios";+import {+ FiPlus, FiUpload, FiSend, FiSearch, FiZap,+ FiImage, FiLayout, FiTerminal, FiChevronDown,+ FiSun, FiMoon, FiMoreHorizontal, FiArrowRight, FiTrash2,+ FiCode, FiCopy, FiX+} from "react-icons/fi";+import { CgTerminal } from "react-icons/cg";+import { RiSparklingLine, RiRobot2Line } from "react-icons/ri";+import { GoBook, GoLightBulb } from "react-icons/go";+import { HiOutlineCube } from "react-icons/hi";+import { useApi } from "@/context/ApiContext";+import { useTheme } from "next-themes";+import Link from "next/link";+import toast from "react-hot-toast";+import Navbar from "@/components/Navbar";++const API = "/api/v1/creative-agent";++export default function AssistantDashboard() {+ const router = useRouter();+ const { userData } = useApi();+ const [mounted, setMounted] = useState(false);+ const [input, setInput] = useState("");+ const [sessions, setSessions] = useState([]);+ const [loading, setLoading] = useState(true);+ const [skills, setSkills] = useState([]);+ const [showSkillsMenu, setShowSkillsMenu] = useState(false);+ const [activeSkill, setActiveSkill] = useState(null);+ const [showMentionPopup, setShowMentionPopup] = useState(false);+ const [mentionQuery, setMentionQuery] = useState("");+ const [mentionCursorPos, setMentionCursorPos] = useState(0);+ const [hoveredAsset, setHoveredAsset] = useState(null);+ const textareaRef = React.useRef(null);+ const [uploading, setUploading] = useState(false);+ const [uploadProgress, setUploadProgress] = useState(0);+ const [attachments, setAttachments] = useState([]);+ const fileInputRef = React.useRef(null);+ const [placeholderText, setPlaceholderText] = useState("");++ const placeholders = React.useMemo(() => [+ "Ask the agent to generate an image...",+ "Ask the agent to create a video...",+ "Ask the agent to edit an image...",+ "Ask the agent to plan a social campaign..."+ ], []);++ useEffect(() => {+ let currentPlaceholderIdx = 0;+ let currentCharIdx = 0;+ let isDeleting = false;+ let typingTimer;++ const type = () => {+ const currentString = placeholders[currentPlaceholderIdx];++ if (isDeleting) {+ setPlaceholderText(currentString.substring(0, currentCharIdx - 1));+ currentCharIdx--;+ } else {+ setPlaceholderText(currentString.substring(0, currentCharIdx + 1));+ currentCharIdx++;+ }++ let typeSpeed = isDeleting ? 20 : 50;++ if (!isDeleting && currentCharIdx === currentString.length) {+ typeSpeed = 2000;+ isDeleting = true;+ } else if (isDeleting && currentCharIdx === 0) {+ isDeleting = false;+ currentPlaceholderIdx = (currentPlaceholderIdx + 1) % placeholders.length;+ typeSpeed = 500;+ }++ typingTimer = setTimeout(type, typeSpeed);+ };++ typingTimer = setTimeout(type, 1000);++ return () => clearTimeout(typingTimer);+ }, [placeholders]);++ useEffect(() => {+ setMounted(true);+ fetchSessions();+ fetchSkills();+ }, []);++ const fetchSessions = async () => {+ try {+ const { data } = await axios.get(`${API}/sessions`);+ // Fetch assets for each session to show thumbnails+ const sessionsWithAssets = await Promise.all(data.map(async (s) => {+ try {+ const { data: assets } = await axios.get(`${API}/sessions/${s.id}/assets`);+ return { ...s, assets: assets.slice(0, 4) }; // Keep first 4 for thumbnail grid+ } catch {+ return { ...s, assets: [] };+ }+ }));+ setSessions(sessionsWithAssets);+ } catch (err) {+ console.error("Failed to fetch sessions:", err);+ } finally {+ setLoading(false);+ }+ };++ const fetchSkills = async () => {+ try {+ const { data } = await axios.get(`${API}/agent-skills`);+ setSkills(data);+ } catch (err) {+ console.error("Failed to fetch skills:", err);+ }+ };+++ const deleteSession = async (sessionId, sessionName) => {+ if (!window.confirm(`Delete chat "${sessionName || "Untitled"}"? This cannot be undone.`)) return;+ try {+ await axios.delete(`${API}/sessions/${sessionId}`);+ setSessions(prev => prev.filter(s => s.id !== sessionId));+ toast.success("Chat deleted");+ } catch (err) {+ toast.error("Failed to delete chat");+ }+ };++ const removeAttachment = (url) => {+ setAttachments(prev => prev.filter(a => a.url !== url));+ };++ const selectMention = (item, type) => {+ const before = input.substring(0, mentionCursorPos);+ const after = input.substring(textareaRef.current.selectionStart);++ if (type === "skill") {+ setActiveSkill(item);+ setInput(before + after);+ } else {+ const insertion = `@${item.asset_label || "asset"}`;+ setInput(before + insertion + after);+ }++ setShowMentionPopup(false);+ setTimeout(() => textareaRef.current?.focus(), 10);+ };++ const processFile = async (file) => {+ if (!file) return;+ setUploading(true);+ setUploadProgress(0);+ try {+ // 1. Get signed URL via proxy+ const { data: signData } = await axios.get("/api/v1/get_upload_url", {+ params: { filename: file.name }+ });++ const { url, fields } = signData;+ const formData = new FormData();+ Object.entries(fields).forEach(([key, value]) => {+ formData.append(key, value);+ });+ formData.append("file", file);+ formData.append("x-proxy-target-url", url);++ // 2. Upload to proxy URL+ await axios.post("/api/v1/upload-binary", formData, {+ headers: { "Content-Type": "multipart/form-data" },+ onUploadProgress: (pe) => {+ setUploadProgress(Math.round((pe.loaded * 100) / pe.total));+ }+ });++ // 3. Final URL+ const uploadedUrl = `https://cdn.muapi.ai/${fields.key}`;+ const kind = file.type?.startsWith("video/") ? "video"+ : file.type?.startsWith("audio/") ? "audio"+ : "image";++ const att = { url: uploadedUrl, kind };+ setAttachments(prev => [...prev, att]);+ toast.success("File uploaded successfully");+ } catch (err) {+ console.error("Upload failed", err);+ toast.error("Upload failed");+ } finally {+ setUploading(false);+ setUploadProgress(0);+ if (fileInputRef.current) fileInputRef.current.value = "";+ }+ };++ const handleFileUpload = (e) => processFile(e.target.files?.[0]);++ const startNewSession = async (initialMsg = "", skill = null, initialAttachments = []) => {+ try {+ const { data } = await axios.post(`${API}/sessions`, {});+ const sessionId = data.id;+ let url = `/canvas?session=${sessionId}`;+ let registeredAssets = [];++ if (initialAttachments.length > 0) {+ const results = await Promise.all(initialAttachments.map(a =>+ axios.post(`${API}/sessions/${sessionId}/assets`, {+ url: a.url,+ kind: a.kind,+ source_tool: "upload"+ })+ ));+ registeredAssets = results.map(r => r.data);+ const labels = registeredAssets.map(a => a.asset_label).join(",");+ url += `&a=${encodeURIComponent(labels)}`;+ }++ if (initialMsg) {+ const attachmentNote = registeredAssets.length+ ? "\n\n[Attached " + registeredAssets.map(a => `${a.asset_label} (${a.kind})`).join(", ") + "]"+ : "";++ const userMsg = {+ role: "user",+ content: initialMsg + attachmentNote,+ attachments: registeredAssets,+ timestamp: new Date().toISOString(),+ skill_name: skill?.name+ };++ if (skill) {+ url += `&skill=${encodeURIComponent(skill.name)}`;+ const primaryInputKey = skill.inputs?.[0] || "premise";+ await axios.post(`${API}/sessions/${sessionId}/run-skill`, {+ skill_name: skill.name,+ inputs: { [primaryInputKey]: initialMsg },+ messages_snapshot: [userMsg],+ model: "gpt-4o"+ });+ } else {+ url += `&q=${encodeURIComponent(initialMsg)}`;+ await axios.post(`${API}/sessions/${sessionId}/chat`, {+ message: initialMsg,+ messages_snapshot: [userMsg],+ model: "gpt-4o"+ });+ }+ }++ router.push(url);+ } catch (err) {+ toast.error("Failed to start session");+ }+ };++ const handleKey = (e) => {+ if (e.key === "Enter" && !e.shiftKey) {+ e.preventDefault();+ if (input.trim() || attachments.length > 0) {+ startNewSession(input.trim(), activeSkill, attachments);+ }+ }+ };++ const filteredSkills = skills.filter(s => s.name.toLowerCase().includes(mentionQuery.toLowerCase()));+ const filteredAssets = attachments.map((a, i) => ({ ...a, asset_label: `asset_${i+1}` })).filter(a => a.asset_label.includes(mentionQuery.toLowerCase()));+++ if (!mounted) return null;++ return (+ <div className="h-dvh w-full text-sm flex flex-col items-center bg-bg-page animate-fade-in text-primary-text">+ <Navbar />+ <main className="flex flex-col gap-6 items-center w-full h-full overflow-y-auto">+ <div className="flex-1 flex flex-col gap-6 sm:gap-8 items-center w-full max-w-7xl pt-6 sm:pt-8 pb-12 px-4 sm:px-8 lg:px-0">+ <h1 className="text-5xl font-bold tracking-tight text-center flex items-center gap-3">+ Design is easier with <span className="text-primary">Agents</span>+ </h1>+ <p className="text-secondary-text text-lg text-center">+ The open-source design agent that gets you and gets the job done+ </p>+ <div className="flex items-center gap-6 text-[10px] font-bold uppercase tracking-widest">+ <a href="https://github.com/Anil-matcha/Open-Lovart" target="_blank" className="flex items-center gap-2 px-4 py-2 bg-bg-card border border-divider rounded-full shadow-sm hover:shadow-md hover:border-primary/30 transition-all text-secondary-text hover:text-primary">+ <CgTerminal size={12} className="text-primary" />+ View Source+ </a>+ </div>+ <div className="w-full max-w-3xl relative">+ <div className="bg-bg-card border border-divider rounded-md shadow-[0_8px_30px_rgb(0,0,0,0.04)] p-1 focus-within:shadow-[0_8px_40px_rgb(0,0,0,0.08)] transition-all">+ <textarea+ ref={textareaRef}+ value={input}+ autoFocus+ onChange={(e) => {+ const val = e.target.value;+ const pos = e.target.selectionStart;+ setInput(val);++ const lastAtPos = val.lastIndexOf("@", pos - 1);+ if (lastAtPos !== -1 && (lastAtPos === 0 || val[lastAtPos - 1] === " ")) {+ const query = val.substring(lastAtPos + 1, pos);+ if (!query.includes(" ")) {+ setMentionQuery(query);+ setMentionCursorPos(lastAtPos);+ setShowMentionPopup(true);+ } else {+ setShowMentionPopup(false);+ }+ } else {+ setShowMentionPopup(false);+ }+ }}+ onKeyDown={handleKey}+ placeholder={placeholderText}+ className="w-full bg-transparent border-none focus:ring-0 text-lg p-4 h-24 resize-none placeholder:text-secondary-text/50 outline-none scrollbar-subtle"+ />+ <div className="flex items-center justify-between px-2 pb-2">+ <div className="flex items-center gap-1 relative">+ <input+ type="file"+ ref={fileInputRef}+ className="hidden"+ onChange={handleFileUpload}+ />+ <button+ onClick={() => fileInputRef.current?.click()}+ className="p-2 hover:bg-bg-page rounded-full text-secondary-text transition-colors relative"+ title="Upload File"+ >+ {uploading ? (+ <div className="w-12 h-12 rounded border border-divider border-dashed flex flex-col items-center justify-center bg-bg-page/50">+ <span className="border-2 border-t-transparent border-primary rounded-full w-7 h-7 animate-spin absolute"></span>+ <span className="text-[10px] font-bold text-secondary-text z-10">{uploadProgress}%</span>+ </div>+ ) : (+ <FiPlus size={20} />+ )}+ </button>+ <button+ onClick={() => setShowSkillsMenu(!showSkillsMenu)}+ className={`p-2 hover:bg-bg-page rounded-full transition-colors ${activeSkill || showSkillsMenu ? "text-primary bg-primary/10" : "text-secondary-text"}`}+ title="Skills"+ >+ <GoBook size={20} />+ </button>++ {/* Mention & Attachment Preview Bar */}+ {(uploading || attachments.length > 0 || input.includes("@")) && (+ <div className="absolute bottom-full left-0 mb-1 flex flex-wrap gap-2 bg-bg-card border border-divider rounded shadow-xl z-10 animate-in slide-in-from-bottom-2 duration-300">+ {attachments.map((att, i) => (+ <div+ key={i}+ className="relative group flex items-center gap-2 px-2 py-1 bg-bg-page border border-divider rounded cursor-help hover:border-primary/50 transition-all"+ onMouseEnter={() => setHoveredAsset(att)}+ onMouseLeave={() => setHoveredAsset(null)}+ >+ <div className="w-5 h-5 rounded overflow-hidden">+ {att.kind === "image" ? <img src={att.url} className="w-full h-full object-cover" /> : <FiTerminal size={10} />}+ </div>+ <span className="text-[10px] font-bold text-secondary-text">{`asset_${i+1}`}</span>+ </div>+ ))}++ {/* Detection for @asset_N in text */}+ {input.match(/@asset_\d+/g)?.map(match => {+ const index = parseInt(match.split('_')[1]) - 1;+ const asset = attachments[index];+ if (!asset) return null;+ return (+ <div+ key={match}+ className="relative group flex items-center gap-2 px-2 py-1 bg-primary/5 border border-primary/20 rounded-lg cursor-help hover:border-primary/50 transition-all"+ onMouseEnter={() => setHoveredAsset(asset)}+ onMouseLeave={() => setHoveredAsset(null)}+ >+ <div className="w-5 h-5 rounded overflow-hidden bg-primary/10 flex items-center justify-center text-primary">+ {asset.kind === "image" ? <img src={asset.url} className="w-full h-full object-cover" /> : <RiSparklingLine size={10} />}+ </div>+ <span className="text-[10px] font-bold text-primary">{match}</span>+ </div>+ );+ })}++ {uploading && (+ <div className="flex items-center gap-2 px-2 py-1 bg-bg-page border border-divider border-dashed rounded-lg">+ <div className="w-3 h-3 border-2 border-t-transparent border-primary rounded-full animate-spin" />+ <span className="text-[10px] font-bold text-secondary-text">{uploadProgress}%</span>+ </div>+ )}+ </div>+ )}++ {hoveredAsset && (+ <div className="absolute bottom-full left-0 mb-10 w-72 aspect-square bg-bg-card border border-divider rounded-md shadow-[0_32px_64px_-12px_rgba(0,0,0,0.2)] overflow-hidden z-[110] animate-in fade-in zoom-in-95 duration-200 pointer-events-none">+ {hoveredAsset.kind === "image" ? (+ <img src={hoveredAsset.url} className="w-full h-full object-cover" />+ ) : hoveredAsset.kind === "video" ? (+ <video src={hoveredAsset.url} className="w-full h-full object-cover" autoPlay muted loop />+ ) : (+ <div className="w-full h-full flex flex-col items-center justify-center bg-bg-page gap-3 p-6 text-center">+ <FiTerminal size={48} className="text-primary opacity-20" />+ <div className="text-xs font-medium text-secondary-text truncate w-full">{hoveredAsset.url.split('/').pop()}</div>+ </div>+ )}+ </div>+ )}++ {showMentionPopup && (+ <div className="absolute bottom-full left-0 mb-2 flex items-end gap-3 z-50">+ <div className="w-64 bg-bg-card border border-divider rounded shadow-2xl overflow-hidden animate-in fade-in slide-in-from-bottom-2 duration-200">+ <div className="p-2 border-b border-divider/30 text-[10px] font-bold text-secondary-text uppercase tracking-widest bg-bg-page/50">+ Mentions+ </div>+ <div className="max-h-60 overflow-y-auto scrollbar-subtle py-1">+ {filteredSkills.length > 0 && (+ <div className="px-3 py-1.5 text-[9px] font-bold text-primary uppercase opacity-60">Skills</div>+ )}+ {filteredSkills.map(skill => (+ <button+ key={skill.name}+ onClick={() => selectMention(skill, "skill")}+ className="w-full text-left px-3 py-2 hover:bg-bg-page transition-colors flex items-center gap-2 group"+ >+ <RiSparklingLine size={12} className="text-primary opacity-50 group-hover:opacity-100" />+ <span className="text-xs font-medium text-primary-text">{skill.name}</span>+ </button>+ ))}+ {filteredSkills.length === 0 && (+ <div className="px-4 py-8 text-center text-secondary-text text-xs italic opacity-50">No matches found</div>+ )}+ </div>+ </div>+ </div>+ )}+ </div>+ <div className="flex items-center gap-1">+ <div className="relative">+ {showSkillsMenu && (+ <div className="fixed inset-0 z-50 bg-bg-page/60 backdrop-blur-md flex items-center justify-center p-4 animate-in fade-in duration-300">+ <div className="fixed inset-0" onClick={() => setShowSkillsMenu(false)} />+ <div className="relative w-full max-w-2xl bg-bg-card border border-divider rounded-md shadow-[0_32px_64px_-12px_rgba(0,0,0,0.2)] overflow-hidden animate-in zoom-in-95 duration-200">+ <div className="px-4 py-3 border-b border-divider flex items-center justify-between bg-bg-page/30">+ <div className="flex items-center gap-4">+ <div className="w-12 h-12 rounded bg-primary/10 flex items-center justify-center text-primary shadow-inner border border-primary/20">+ <GoBook size={24} />+ </div>+ <div>+ <h3 className="text-xl font-bold text-primary-text tracking-tight">Agent Skills</h3>+ <p className="text-xs text-secondary-text font-medium opacity-70">Power up your creative workflow with specialized AI experts.</p>+ </div>+ </div>+ <button+ onClick={() => setShowSkillsMenu(false)}+ className="hidden sm:flex items-center gap-2 px-3 py-1.5 bg-bg-page border border-divider rounded text-xs font-bold text-secondary-text hover:text-primary hover:border-primary/30 transition-all"+ >+ <CgTerminal size={14} />+ Dismiss+ </button>+ </div>+ <div className="p-2 max-h-[60vh] overflow-y-auto scrollbar-subtle grid grid-cols-1 sm:grid-cols-2 gap-2">+ {skills.map(s => (+ <button+ key={s.name}+ onClick={() => { setActiveSkill(s); setShowSkillsMenu(false); }}+ className={`group relative flex flex-col gap-2 p-4 rounded transition-all text-left border ${activeSkill?.name === s.name ? "bg-primary/5 border-primary/30 ring-1 ring-primary/20" : "bg-bg-page/50 border-divider/50 hover:border-primary/30 hover:bg-bg-page hover:shadow-md"}`}+ >+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-3">+ <div className={`w-8 h-8 rounded flex items-center justify-center transition-all ${activeSkill?.name === s.name ? "bg-primary text-white scale-110 shadow-lg shadow-primary/20" : "bg-bg-card text-primary border border-divider group-hover:scale-110"}`}>+ <RiSparklingLine size={16} />+ </div>+ <div className="font-bold text-sm tracking-tight capitalize group-hover:text-primary transition-colors">{s.name.replace(/-/g, ' ')}</div>+ </div>+ {activeSkill?.name === s.name && <div className="w-2 h-2 rounded-full bg-primary animate-pulse" />}+ </div>+ <div className="text-[11px] text-secondary-text line-clamp-2 leading-relaxed opacity-80 h-8">{s.description || "Expert agent workflow for high-quality generation."}</div>+ </button>+ ))}+ </div>+ <div className="px-4 py-2 bg-bg-page/50 border-t border-divider flex items-center justify-between">+ <div className="flex items-center gap-2 text-[10px] font-bold text-secondary-text uppercase tracking-widest opacity-60">+ <RiRobot2Line size={14} />+ Design Protocol v1.2+ </div>+ <button+ onClick={() => setShowSkillsMenu(false)}+ className="px-4 py-2 text-xs font-bold text-primary-text hover:bg-bg-page rounded transition-colors border border-transparent hover:border-divider"+ >+ Dismiss+ </button>+ </div>+ </div>+ </div>+ )}+ </div>+ {activeSkill && (+ <div className="flex items-center gap-1.5 px-2 py-1 bg-primary/10 border border-primary/20 rounded-full text-primary text-[10px] font-bold animate-in zoom-in-95">+ <RiSparklingLine size={12} />+ {activeSkill.name}+ <button onClick={() => setActiveSkill(null)} className="hover:text-primary-text ml-1">✕</button>+ </div>+ )}+ </div>+ <div className="flex items-center gap-2">+ {attachments.length > 0 && (+ <div className="flex items-center -space-x-2 mr-2">+ {attachments.map((a, i) => (+ <div key={i} className="w-6 h-6 rounded-full border-2 border-bg-card bg-bg-page overflow-hidden shadow-sm">+ {a.kind === "image" ? <img src={a.url} className="w-full h-full object-cover" /> : <div className="w-full h-full flex items-center justify-center bg-black"><FiTerminal size={10} className="text-white" /></div>}+ </div>+ ))}+ <button onClick={() => setAttachments([])} className="w-6 h-6 rounded-full border-2 border-bg-card bg-red-500 text-white flex items-center justify-center hover:bg-red-600 transition-colors z-10">+ <FiPlus size={12} className="rotate-45" />+ </button>+ </div>+ )}+ <button+ onClick={() => (input.trim() || attachments.length > 0) && startNewSession(input.trim(), activeSkill, attachments)}+ disabled={!input.trim() && attachments.length === 0}+ className={`p-2 rounded-full transition-all ${input.trim() || attachments.length > 0 ? "bg-primary text-white shadow-lg shadow-primary/20 hover:scale-105" : "bg-bg-page text-secondary-text/30"}`}+ >+ <FiSend size={18} />+ </button>+ </div>+ </div>+ </div>+ </div>+ <div className="w-full">+ <h2 className="text-xl font-bold mb-6">Recent Projects</h2>+ <div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">+ {/* New Project Card */}+ <button+ onClick={() => router.push("/canvas")}+ className="group aspect-[16/10] bg-bg-card border-2 border-dashed border-divider rounded-md flex flex-col items-center justify-center gap-3 hover:border-primary hover:bg-primary/5 transition-all"+ >+ <div className="w-10 h-10 rounded-full bg-bg-page border border-divider flex items-center justify-center text-secondary-text group-hover:text-primary group-hover:border-primary group-hover:scale-110 transition-all">+ <FiPlus size={24} />+ </div>+ <span className="text-xs font-bold text-secondary-text group-hover:text-primary">New Project</span>+ </button>++ {/* Session Cards */}+ {sessions.map((session) => (+ <div+ key={session.id}+ onClick={() => router.push(`/canvas?session=${session.id}`)}+ className="group relative aspect-[16/10] bg-bg-card border border-divider rounded overflow-hidden cursor-pointer hover:shadow-xl hover:border-primary/50 transition-all"+ >+ <div className="h-full w-full grid grid-cols-2 grid-rows-2 gap-0.5 bg-divider/20">+ {session.assets && session.assets.length > 0 ? (+ session.assets.map((asset, i) => (+ <div key={i} className={`relative overflow-hidden ${session.assets.length === 1 ? 'col-span-2 row-span-2' : session.assets.length === 2 ? 'row-span-2' : ''}`}>+ {asset.kind === "image" ? (+ <img src={asset.url} alt="" className="w-full h-full object-cover" />+ ) : (+ <div className="w-full h-full bg-black/5 flex items-center justify-center"><FiImage className="text-secondary-text/20" size={32} /></div>+ )}+ </div>+ ))+ ) : (+ <div className="col-span-2 row-span-2 flex items-center justify-center bg-bg-page">+ <RiRobot2Line size={48} className="text-secondary-text/10" />+ </div>+ )}+ {session.assets && session.assets.length > 0 && session.assets.length < 4 && Array.from({ length: 4 - session.assets.length }).map((_, i) => (+ <div key={`empty-${i}`} className="bg-bg-page/50" />+ ))}+ </div>++ <button+ onClick={(e) => { e.stopPropagation(); deleteSession(session.id, session.name); }}+ className="absolute top-2 right-2 z-10 p-1.5 rounded bg-black/60 text-white opacity-0 group-hover:opacity-100 hover:bg-red-600 transition-all"+ title="Delete chat"+ >+ <FiTrash2 size={14} />+ </button>++ <div className="absolute inset-0 bg-gradient-to-t from-black/80 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity flex flex-col justify-end p-4">+ <div className="text-white font-bold text-sm truncate">{session.name || "Untitled"}</div>+ <div className="text-white/60 text-[10px] mt-1">{session.assets?.length || 0} assets</div>+ </div>++ <div className="absolute bottom-0 left-0 right-0 p-3 bg-bg-card/90 backdrop-blur-sm border-t border-divider opacity-100 group-hover:opacity-0 transition-opacity">+ <div className="text-primary-text font-bold text-xs truncate">{session.name || "Untitled Session"}</div>+ </div>+ </div>+ ))}++ {loading && Array.from({ length: 3 }).map((_, i) => (+ <div key={`skeleton-${i}`} className="aspect-[16/10] bg-bg-card border border-divider rounded-md animate-pulse" />+ ))}+ </div>+ </div>+ </div>+ </main>+ </div>+ );+}diff --git a/client/app/providers.js b/client/app/providers.jsnew file mode 100644index 0000000..d943100--- /dev/null+++ b/client/app/providers.js@@ -0,0 +1,14 @@+"use client";++import { ThemeProvider } from "next-themes";+import { ApiProvider } from "@/context/ApiContext";++export function Providers({ children }) {+ return (+ <ThemeProvider attribute="class" defaultTheme="dark" enableSystem>+ <ApiProvider>+ {children}+ </ApiProvider>+ </ThemeProvider>+ );+}diff --git a/client/components/Navbar.js b/client/components/Navbar.jsnew file mode 100644index 0000000..ced0960--- /dev/null+++ b/client/components/Navbar.js@@ -0,0 +1,52 @@+"use client";+import Link from "next/link";+import Image from "next/image";+import { useEffect, useState } from "react";+import { usePathname } from "next/navigation";+import { useApi } from "@/context/ApiContext";+import { FiMoon, FiSun } from "react-icons/fi";+import { useTheme } from "next-themes";++const Navbar = () => {+ const pathname = usePathname();+ const { userData, loading } = useApi();+ const { theme, setTheme, resolvedTheme } = useTheme();+ const [mounted, setMounted] = useState(false);++ useEffect(() => {+ setMounted(true);+ }, []);++ return (+ <div className="relative w-full">+ <header className="sticky top-0 z-30 w-full transition-all duration-500 flex flex-col items-center bg-bg-page/40 dark:bg-bg-page/60 backdrop-blur-md border-b border-divider">+ <div className="flex items-center justify-between py-3 w-full max-w-[90%] xl:max-w-[1400px] gap-6">+ <div className="flex items-center gap-8">+ <Link href="/" className="flex items-center flex-shrink-0 transition-transform duration-300 hover:scale-[1.02] active:scale-95">+ <span className="text-xl font-bold tracking-tight">Open AI Design Agent</span>+ </Link>+ </div>++ <div className="flex items-center gap-4 justify-end">+ <button+ onClick={() => setTheme(resolvedTheme === "dark" ? "light" : "dark")}+ className="p-2 hover:bg-bg-page rounded-full text-secondary-text transition-colors"+ >+ {!mounted ? <div className="w-[15px] h-[15px]" /> : resolvedTheme === "dark" ? <FiSun size={18} /> : <FiMoon size={18} />}+ </button>+ {!loading && userData && (+ <div className="flex items-center gap-3">+ <span className="font-bold text-[13px] px-3 py-1.5 border border-divider rounded bg-bg-page/30">+ $ {userData.balance || "0.00"}+ </span>+ <span className="text-sm font-bold text-primary-text hidden sm:block">{userData.username || "User"}</span>+ </div>+ )}+ </div>+ </div>+ </header>+ </div>+ );+};++export default Navbar;diff --git a/client/context/ApiContext.js b/client/context/ApiContext.jsnew file mode 100644index 0000000..757f7a5--- /dev/null+++ b/client/context/ApiContext.js@@ -0,0 +1,44 @@+import React, { createContext, useContext, useState, useEffect, useCallback } from "react";+import axios from "axios";+import toast from "react-hot-toast";++const ApiContext = createContext();++// Next.js rewrites will proxy /api to http://localhost:8000/api+const BASE_URL = "http://127.0.0.1:8000";++export function ApiProvider({ children }) {+ const [userData, setUserData] = useState(null);+ const [loading, setLoading] = useState(true);++ // We mock a constant API key to satisfy components that might check for it+ const apiKey = "server-side-key";++ const fetchUserData = useCallback(async () => {+ try {+ const { data } = await axios.get(`${BASE_URL}/api/v1/creative-agent/account/balance`);+ setUserData({+ username: data.email?.split("@")[0] || "User",+ balance: data.balance || 0,+ email: data.email,+ });+ } catch (err) {+ console.error("Failed to fetch user data via proxy", err);+ // The backend will return an error if MU_API_KEY is missing+ } finally {+ setLoading(false);+ }+ }, []);++ useEffect(() => {+ fetchUserData();+ }, [fetchUserData]);++ return (+ <ApiContext.Provider value={{ apiKey, userData, loading, fetchUserData }}>+ {children}+ </ApiContext.Provider>+ );+}++export const useApi = () => useContext(ApiContext);diff --git a/client/eslint.config.mjs b/client/eslint.config.mjsnew file mode 100644index 0000000..f443835--- /dev/null+++ b/client/eslint.config.mjs@@ -0,0 +1,16 @@+import { defineConfig, globalIgnores } from "eslint/config";+import nextVitals from "eslint-config-next/core-web-vitals";++const eslintConfig = defineConfig([+ ...nextVitals,+ // Override default ignores of eslint-config-next.+ globalIgnores([+ // Default ignores of eslint-config-next:+ ".next/**",+ "out/**",+ "build/**",+ "next-env.d.ts",+ ]),+]);++export default eslintConfig;diff --git a/client/jsconfig.json b/client/jsconfig.jsonnew file mode 100644index 0000000..2a2e4b3--- /dev/null+++ b/client/jsconfig.json@@ -0,0 +1,7 @@+{+ "compilerOptions": {+ "paths": {+ "@/*": ["./*"]+ }+ }+}diff --git a/client/next.config.mjs b/client/next.config.mjsnew file mode 100644index 0000000..546d87a--- /dev/null+++ b/client/next.config.mjs@@ -0,0 +1,14 @@+/** @type {import('next').NextConfig} */+const nextConfig = {+ output: 'standalone',+ rewrites: async () => {+ return [+ {+ source: '/api/:path*',+ destination: 'http://127.0.0.1:8000/api/:path*',+ },+ ]+ },+};++export default nextConfig;diff --git a/client/package.json b/client/package.jsonnew file mode 100644index 0000000..40e42c6--- /dev/null+++ b/client/package.json@@ -0,0 +1,36 @@+{+ "name": "open-muapi-assistant",+ "version": "0.1.0",+ "private": true,+ "scripts": {+ "dev": "set NODE_OPTIONS=--max-old-space-size=4096 && next dev",+ "dev:turbo": "set NODE_OPTIONS=--max-old-space-size=4096 && next dev --turbo",+ "build": "next build",+ "start": "next start",+ "lint": "eslint"+ },+ "dependencies": {+ "axios": "^1.16.0",+ "clsx": "^2.1.1",+ "js-cookie": "^3.0.5",+ "konva": "^10.3.0",+ "lucide-react": "^1.14.0",+ "next": "16.2.4",+ "next-themes": "^0.4.6",+ "react": "19.2.4",+ "react-dom": "19.2.4",+ "react-hot-toast": "^2.6.0",+ "react-icons": "^5.6.0",+ "react-konva": "^19.2.3",+ "react-markdown": "^10.1.0",+ "remark-gfm": "^4.0.1",+ "tailwind-merge": "^3.5.0",+ "design-agent": "*"+ },+ "devDependencies": {+ "@tailwindcss/postcss": "^4",+ "eslint": "^9",+ "eslint-config-next": "16.2.4",+ "tailwindcss": "^4"+ }+}diff --git a/client/postcss.config.mjs b/client/postcss.config.mjsnew file mode 100644index 0000000..61e3684--- /dev/null+++ b/client/postcss.config.mjs@@ -0,0 +1,7 @@+const config = {+ plugins: {+ "@tailwindcss/postcss": {},+ },+};++export default config;diff --git a/client/public/file.svg b/client/public/file.svgnew file mode 100644index 0000000..004145c--- /dev/null+++ b/client/public/file.svg@@ -0,0 +1 @@+<svg fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 13.5V5.41a1 1 0 0 0-.3-.7L9.8.29A1 1 0 0 0 9.08 0H1.5v13.5A2.5 2.5 0 0 0 4 16h8a2.5 2.5 0 0 0 2.5-2.5m-1.5 0v-7H8v-5H3v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1M9.5 5V2.12L12.38 5zM5.13 5h-.62v1.25h2.12V5zm-.62 3h7.12v1.25H4.5zm.62 3h-.62v1.25h7.12V11z" clip-rule="evenodd" fill="#666" fill-rule="evenodd"/></svg>\ No newline at end of filediff --git a/client/public/globe.svg b/client/public/globe.svgnew file mode 100644index 0000000..567f17b--- /dev/null+++ b/client/public/globe.svg@@ -0,0 +1 @@+<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.27 14.1a6.5 6.5 0 0 0 3.67-3.45q-1.24.21-2.7.34-.31 1.83-.97 3.1M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.48-1.52a7 7 0 0 1-.96 0H7.5a4 4 0 0 1-.84-1.32q-.38-.89-.63-2.08a40 40 0 0 0 3.92 0q-.25 1.2-.63 2.08a4 4 0 0 1-.84 1.31zm2.94-4.76q1.66-.15 2.95-.43a7 7 0 0 0 0-2.58q-1.3-.27-2.95-.43a18 18 0 0 1 0 3.44m-1.27-3.54a17 17 0 0 1 0 3.64 39 39 0 0 1-4.3 0 17 17 0 0 1 0-3.64 39 39 0 0 1 4.3 0m1.1-1.17q1.45.13 2.69.34a6.5 6.5 0 0 0-3.67-3.44q.65 1.26.98 3.1M8.48 1.5l.01.02q.41.37.84 1.31.38.89.63 2.08a40 40 0 0 0-3.92 0q.25-1.2.63-2.08a4 4 0 0 1 .85-1.32 7 7 0 0 1 .96 0m-2.75.4a6.5 6.5 0 0 0-3.67 3.44 29 29 0 0 1 2.7-.34q.31-1.83.97-3.1M4.58 6.28q-1.66.16-2.95.43a7 7 0 0 0 0 2.58q1.3.27 2.95.43a18 18 0 0 1 0-3.44m.17 4.71q-1.45-.12-2.69-.34a6.5 6.5 0 0 0 3.67 3.44q-.65-1.27-.98-3.1" fill="#666"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>\ No newline at end of filediff --git a/client/public/next.svg b/client/public/next.svgnew file mode 100644index 0000000..5174b28--- /dev/null+++ b/client/public/next.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>\ No newline at end of filediff --git a/client/public/vercel.svg b/client/public/vercel.svgnew file mode 100644index 0000000..7705396--- /dev/null+++ b/client/public/vercel.svg@@ -0,0 +1 @@+<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1155 1000"><path d="m577.3 0 577.4 1000H0z" fill="#fff"/></svg>\ No newline at end of filediff --git a/client/public/window.svg b/client/public/window.svgnew file mode 100644index 0000000..b2b2a44--- /dev/null+++ b/client/public/window.svg@@ -0,0 +1 @@+<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 2.5h13v10a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1zM0 1h16v11.5a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 0 12.5zm3.75 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5M7 4.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m1.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5" fill="#666"/></svg>\ No newline at end of filediff --git a/docker-compose.yml b/docker-compose.ymlnew file mode 100644index 0000000..1fff26e--- /dev/null+++ b/docker-compose.yml@@ -0,0 +1,27 @@+version: '3.8'++services:+ client:+ build:+ context: .+ dockerfile: client/Dockerfile+ args:+ API_URL: http://server:8000+ ports:+ - "3000:3000"+ environment:+ - NODE_ENV=production+ - API_URL=http://server:8000+ depends_on:+ - server+ restart: unless-stopped++ server:+ build:+ context: ./server+ dockerfile: Dockerfile+ ports:+ - "8000:8000"+ env_file:+ - ./server/.env+ restart: unless-stoppeddiff --git a/package-lock.json b/package-lock.jsonnew file mode 100644index 0000000..9e6bc21--- /dev/null+++ b/package-lock.json@@ -0,0 +1,11243 @@+{+ "name": "open-ai-design-agent-monorepo",+ "version": "1.0.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "open-ai-design-agent-monorepo",+ "version": "1.0.0",+ "workspaces": [+ "packages/*",+ "client",+ "server"+ ]+ },+ "client": {+ "name": "open-muapi-assistant",+ "version": "0.1.0",+ "dependencies": {+ "axios": "^1.16.0",+ "clsx": "^2.1.1",+ "design-agent": "*",+ "js-cookie": "^3.0.5",+ "konva": "^10.3.0",+ "lucide-react": "^1.14.0",+ "next": "16.2.4",+ "next-themes": "^0.4.6",+ "react": "19.2.4",+ "react-dom": "19.2.4",+ "react-hot-toast": "^2.6.0",+ "react-icons": "^5.6.0",+ "react-konva": "^19.2.3",+ "react-markdown": "^10.1.0",+ "remark-gfm": "^4.0.1",+ "tailwind-merge": "^3.5.0"+ },+ "devDependencies": {+ "@tailwindcss/postcss": "^4",+ "eslint": "^9",+ "eslint-config-next": "16.2.4",+ "tailwindcss": "^4"+ }+ },+ "client/node_modules/@alloc/quick-lru": {+ "version": "5.2.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "client/node_modules/@babel/code-frame": {+ "version": "7.29.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.28.5",+ "js-tokens": "^4.0.0",+ "picocolors": "^1.1.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/@babel/compat-data": {+ "version": "7.29.3",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/@babel/core": {+ "version": "7.29.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.0",+ "@babel/generator": "^7.29.0",+ "@babel/helper-compilation-targets": "^7.28.6",+ "@babel/helper-module-transforms": "^7.28.6",+ "@babel/helpers": "^7.28.6",+ "@babel/parser": "^7.29.0",+ "@babel/template": "^7.28.6",+ "@babel/traverse": "^7.29.0",+ "@babel/types": "^7.29.0",+ "@jridgewell/remapping": "^2.3.5",+ "convert-source-map": "^2.0.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.2.3",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/babel"+ }+ },+ "client/node_modules/@babel/generator": {+ "version": "7.29.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.29.0",+ "@babel/types": "^7.29.0",+ "@jridgewell/gen-mapping": "^0.3.12",+ "@jridgewell/trace-mapping": "^0.3.28",+ "jsesc": "^3.0.2"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/@babel/helper-compilation-targets": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/compat-data": "^7.28.6",+ "@babel/helper-validator-option": "^7.27.1",+ "browserslist": "^4.24.0",+ "lru-cache": "^5.1.1",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/@babel/helper-globals": {+ "version": "7.28.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/@babel/helper-module-imports": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/traverse": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/@babel/helper-module-transforms": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-imports": "^7.28.6",+ "@babel/helper-validator-identifier": "^7.28.5",+ "@babel/traverse": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "client/node_modules/@babel/helper-string-parser": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/@babel/helper-validator-identifier": {+ "version": "7.28.5",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/@babel/helper-validator-option": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/@babel/helpers": {+ "version": "7.29.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.28.6",+ "@babel/types": "^7.29.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/@babel/parser": {+ "version": "7.29.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.0"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "client/node_modules/@babel/template": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.28.6",+ "@babel/parser": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/@babel/traverse": {+ "version": "7.29.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.0",+ "@babel/generator": "^7.29.0",+ "@babel/helper-globals": "^7.28.0",+ "@babel/parser": "^7.29.0",+ "@babel/template": "^7.28.6",+ "@babel/types": "^7.29.0",+ "debug": "^4.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/@babel/types": {+ "version": "7.29.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.27.1",+ "@babel/helper-validator-identifier": "^7.28.5"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/@eslint-community/eslint-utils": {+ "version": "4.9.1",+ "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"+ }+ },+ "client/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {+ "version": "3.4.3",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "client/node_modules/@eslint-community/regexpp": {+ "version": "4.12.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"+ }+ },+ "client/node_modules/@eslint/config-array": {+ "version": "0.21.2",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@eslint/object-schema": "^2.1.7",+ "debug": "^4.3.1",+ "minimatch": "^3.1.5"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "client/node_modules/@eslint/config-helpers": {+ "version": "0.4.2",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@eslint/core": "^0.17.0"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "client/node_modules/@eslint/core": {+ "version": "0.17.0",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@types/json-schema": "^7.0.15"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "client/node_modules/@eslint/eslintrc": {+ "version": "3.3.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ajv": "^6.14.0",+ "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.1",+ "minimatch": "^3.1.5",+ "strip-json-comments": "^3.1.1"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "client/node_modules/@eslint/js": {+ "version": "9.39.4",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://eslint.org/donate"+ }+ },+ "client/node_modules/@eslint/object-schema": {+ "version": "2.1.7",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "client/node_modules/@eslint/plugin-kit": {+ "version": "0.4.1",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@eslint/core": "^0.17.0",+ "levn": "^0.4.1"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "client/node_modules/@humanfs/core": {+ "version": "0.19.2",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@humanfs/types": "^0.15.0"+ },+ "engines": {+ "node": ">=18.18.0"+ }+ },+ "client/node_modules/@humanfs/node": {+ "version": "0.16.8",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@humanfs/core": "^0.19.2",+ "@humanfs/types": "^0.15.0",+ "@humanwhocodes/retry": "^0.4.0"+ },+ "engines": {+ "node": ">=18.18.0"+ }+ },+ "client/node_modules/@humanfs/types": {+ "version": "0.15.0",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18.18.0"+ }+ },+ "client/node_modules/@humanwhocodes/module-importer": {+ "version": "1.0.1",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=12.22"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }+ },+ "client/node_modules/@humanwhocodes/retry": {+ "version": "0.4.3",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18.18"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }+ },+ "client/node_modules/@img/colour": {+ "version": "1.1.0",+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=18"+ }+ },+ "client/node_modules/@img/sharp-win32-x64": {+ "version": "0.34.5",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0 AND LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "client/node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "client/node_modules/@jridgewell/remapping": {+ "version": "2.3.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "client/node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "client/node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "client/node_modules/@next/env": {+ "version": "16.2.4",+ "license": "MIT"+ },+ "client/node_modules/@next/eslint-plugin-next": {+ "version": "16.2.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-glob": "3.3.1"+ }+ },+ "client/node_modules/@next/swc-win32-x64-msvc": {+ "version": "16.2.4",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "client/node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "client/node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "client/node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "client/node_modules/@nolyfill/is-core-module": {+ "version": "1.0.39",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.4.0"+ }+ },+ "client/node_modules/@rtsao/scc": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/@swc/helpers": {+ "version": "0.5.15",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.8.0"+ }+ },+ "client/node_modules/@tailwindcss/node": {+ "version": "4.2.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/remapping": "^2.3.5",+ "enhanced-resolve": "^5.19.0",+ "jiti": "^2.6.1",+ "lightningcss": "1.32.0",+ "magic-string": "^0.30.21",+ "source-map-js": "^1.2.1",+ "tailwindcss": "4.2.4"+ }+ },+ "client/node_modules/@tailwindcss/oxide": {+ "version": "4.2.4",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 20"+ },+ "optionalDependencies": {+ "@tailwindcss/oxide-android-arm64": "4.2.4",+ "@tailwindcss/oxide-darwin-arm64": "4.2.4",+ "@tailwindcss/oxide-darwin-x64": "4.2.4",+ "@tailwindcss/oxide-freebsd-x64": "4.2.4",+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.2.4",+ "@tailwindcss/oxide-linux-arm64-gnu": "4.2.4",+ "@tailwindcss/oxide-linux-arm64-musl": "4.2.4",+ "@tailwindcss/oxide-linux-x64-gnu": "4.2.4",+ "@tailwindcss/oxide-linux-x64-musl": "4.2.4",+ "@tailwindcss/oxide-wasm32-wasi": "4.2.4",+ "@tailwindcss/oxide-win32-arm64-msvc": "4.2.4",+ "@tailwindcss/oxide-win32-x64-msvc": "4.2.4"+ }+ },+ "client/node_modules/@tailwindcss/oxide-win32-x64-msvc": {+ "version": "4.2.4",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 20"+ }+ },+ "client/node_modules/@tailwindcss/postcss": {+ "version": "4.2.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@alloc/quick-lru": "^5.2.0",+ "@tailwindcss/node": "4.2.4",+ "@tailwindcss/oxide": "4.2.4",+ "postcss": "^8.5.6",+ "tailwindcss": "4.2.4"+ }+ },+ "client/node_modules/@types/debug": {+ "version": "4.1.13",+ "license": "MIT",+ "dependencies": {+ "@types/ms": "*"+ }+ },+ "client/node_modules/@types/estree": {+ "version": "1.0.8",+ "license": "MIT"+ },+ "client/node_modules/@types/estree-jsx": {+ "version": "1.0.5",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "*"+ }+ },+ "client/node_modules/@types/hast": {+ "version": "3.0.4",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "client/node_modules/@types/json-schema": {+ "version": "7.0.15",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/@types/json5": {+ "version": "0.0.29",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/@types/mdast": {+ "version": "4.0.4",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "client/node_modules/@types/ms": {+ "version": "2.1.0",+ "license": "MIT"+ },+ "client/node_modules/@types/react": {+ "version": "19.2.14",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "csstype": "^3.2.2"+ }+ },+ "client/node_modules/@types/react-reconciler": {+ "version": "0.33.0",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*"+ }+ },+ "client/node_modules/@types/unist": {+ "version": "3.0.3",+ "license": "MIT"+ },+ "client/node_modules/@typescript-eslint/eslint-plugin": {+ "version": "8.59.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/regexpp": "^4.12.2",+ "@typescript-eslint/scope-manager": "8.59.2",+ "@typescript-eslint/type-utils": "8.59.2",+ "@typescript-eslint/utils": "8.59.2",+ "@typescript-eslint/visitor-keys": "8.59.2",+ "ignore": "^7.0.5",+ "natural-compare": "^1.4.0",+ "ts-api-utils": "^2.5.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.59.2",+ "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",+ "typescript": ">=4.8.4 <6.1.0"+ }+ },+ "client/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {+ "version": "7.0.5",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "client/node_modules/@typescript-eslint/parser": {+ "version": "8.59.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/scope-manager": "8.59.2",+ "@typescript-eslint/types": "8.59.2",+ "@typescript-eslint/typescript-estree": "8.59.2",+ "@typescript-eslint/visitor-keys": "8.59.2",+ "debug": "^4.4.3"+ },+ "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 || ^10.0.0",+ "typescript": ">=4.8.4 <6.1.0"+ }+ },+ "client/node_modules/@typescript-eslint/project-service": {+ "version": "8.59.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/tsconfig-utils": "^8.59.2",+ "@typescript-eslint/types": "^8.59.2",+ "debug": "^4.4.3"+ },+ "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 <6.1.0"+ }+ },+ "client/node_modules/@typescript-eslint/scope-manager": {+ "version": "8.59.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "8.59.2",+ "@typescript-eslint/visitor-keys": "8.59.2"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "client/node_modules/@typescript-eslint/tsconfig-utils": {+ "version": "8.59.2",+ "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 <6.1.0"+ }+ },+ "client/node_modules/@typescript-eslint/type-utils": {+ "version": "8.59.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "8.59.2",+ "@typescript-eslint/typescript-estree": "8.59.2",+ "@typescript-eslint/utils": "8.59.2",+ "debug": "^4.4.3",+ "ts-api-utils": "^2.5.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 || ^10.0.0",+ "typescript": ">=4.8.4 <6.1.0"+ }+ },+ "client/node_modules/@typescript-eslint/types": {+ "version": "8.59.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "client/node_modules/@typescript-eslint/typescript-estree": {+ "version": "8.59.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/project-service": "8.59.2",+ "@typescript-eslint/tsconfig-utils": "8.59.2",+ "@typescript-eslint/types": "8.59.2",+ "@typescript-eslint/visitor-keys": "8.59.2",+ "debug": "^4.4.3",+ "minimatch": "^10.2.2",+ "semver": "^7.7.3",+ "tinyglobby": "^0.2.15",+ "ts-api-utils": "^2.5.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 <6.1.0"+ }+ },+ "client/node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": {+ "version": "4.0.4",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "18 || 20 || >=22"+ }+ },+ "client/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {+ "version": "5.0.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^4.0.2"+ },+ "engines": {+ "node": "18 || 20 || >=22"+ }+ },+ "client/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {+ "version": "10.2.5",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "brace-expansion": "^5.0.5"+ },+ "engines": {+ "node": "18 || 20 || >=22"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "client/node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {+ "version": "7.7.4",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "client/node_modules/@typescript-eslint/utils": {+ "version": "8.59.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.9.1",+ "@typescript-eslint/scope-manager": "8.59.2",+ "@typescript-eslint/types": "8.59.2",+ "@typescript-eslint/typescript-estree": "8.59.2"+ },+ "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 || ^10.0.0",+ "typescript": ">=4.8.4 <6.1.0"+ }+ },+ "client/node_modules/@typescript-eslint/visitor-keys": {+ "version": "8.59.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "8.59.2",+ "eslint-visitor-keys": "^5.0.0"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "client/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": {+ "version": "5.0.1",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^20.19.0 || ^22.13.0 || >=24"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "client/node_modules/@ungap/structured-clone": {+ "version": "1.3.1",+ "license": "ISC"+ },+ "client/node_modules/@unrs/resolver-binding-win32-x64-msvc": {+ "version": "1.11.1",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "client/node_modules/acorn": {+ "version": "8.16.0",+ "dev": true,+ "license": "MIT",+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "client/node_modules/acorn-jsx": {+ "version": "5.3.2",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"+ }+ },+ "client/node_modules/ajv": {+ "version": "6.15.0",+ "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"+ }+ },+ "client/node_modules/ansi-styles": {+ "version": "4.3.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "client/node_modules/argparse": {+ "version": "2.0.1",+ "dev": true,+ "license": "Python-2.0"+ },+ "client/node_modules/aria-query": {+ "version": "5.3.2",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/array-buffer-byte-length": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "is-array-buffer": "^3.0.5"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/array-includes": {+ "version": "3.1.9",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.24.0",+ "es-object-atoms": "^1.1.1",+ "get-intrinsic": "^1.3.0",+ "is-string": "^1.1.1",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/array.prototype.findlast": {+ "version": "1.2.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.2",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.0.0",+ "es-shim-unscopables": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/array.prototype.findlastindex": {+ "version": "1.2.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.9",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "es-shim-unscopables": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/array.prototype.flat": {+ "version": "1.3.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.5",+ "es-shim-unscopables": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/array.prototype.flatmap": {+ "version": "1.3.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.5",+ "es-shim-unscopables": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/array.prototype.tosorted": {+ "version": "1.1.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.3",+ "es-errors": "^1.3.0",+ "es-shim-unscopables": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/arraybuffer.prototype.slice": {+ "version": "1.0.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-buffer-byte-length": "^1.0.1",+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.5",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.6",+ "is-array-buffer": "^3.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/ast-types-flow": {+ "version": "0.0.8",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/async-function": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/asynckit": {+ "version": "0.4.0",+ "license": "MIT"+ },+ "client/node_modules/available-typed-arrays": {+ "version": "1.0.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "possible-typed-array-names": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/axe-core": {+ "version": "4.11.4",+ "dev": true,+ "license": "MPL-2.0",+ "engines": {+ "node": ">=4"+ }+ },+ "client/node_modules/axios": {+ "version": "1.16.0",+ "license": "MIT",+ "dependencies": {+ "follow-redirects": "^1.16.0",+ "form-data": "^4.0.5",+ "proxy-from-env": "^2.1.0"+ }+ },+ "client/node_modules/axobject-query": {+ "version": "4.1.0",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/bail": {+ "version": "2.0.2",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/balanced-match": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/baseline-browser-mapping": {+ "version": "2.10.27",+ "license": "Apache-2.0",+ "bin": {+ "baseline-browser-mapping": "dist/cli.cjs"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "client/node_modules/brace-expansion": {+ "version": "1.1.14",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "client/node_modules/braces": {+ "version": "3.0.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fill-range": "^7.1.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "client/node_modules/browserslist": {+ "version": "4.28.2",+ "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": {+ "baseline-browser-mapping": "^2.10.12",+ "caniuse-lite": "^1.0.30001782",+ "electron-to-chromium": "^1.5.328",+ "node-releases": "^2.0.36",+ "update-browserslist-db": "^1.2.3"+ },+ "bin": {+ "browserslist": "cli.js"+ },+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"+ }+ },+ "client/node_modules/call-bind": {+ "version": "1.0.9",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "get-intrinsic": "^1.3.0",+ "set-function-length": "^1.2.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/call-bind-apply-helpers": {+ "version": "1.0.2",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/call-bound": {+ "version": "1.0.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "get-intrinsic": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/callsites": {+ "version": "3.1.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "client/node_modules/caniuse-lite": {+ "version": "1.0.30001791",+ "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"+ },+ "client/node_modules/ccount": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/chalk": {+ "version": "4.1.2",+ "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"+ }+ },+ "client/node_modules/character-entities": {+ "version": "2.0.2",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/character-entities-html4": {+ "version": "2.1.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/character-entities-legacy": {+ "version": "3.0.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/character-reference-invalid": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/client-only": {+ "version": "0.0.1",+ "license": "MIT"+ },+ "client/node_modules/clsx": {+ "version": "2.1.1",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "client/node_modules/color-convert": {+ "version": "2.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"+ }+ },+ "client/node_modules/color-name": {+ "version": "1.1.4",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/combined-stream": {+ "version": "1.0.8",+ "license": "MIT",+ "dependencies": {+ "delayed-stream": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "client/node_modules/comma-separated-tokens": {+ "version": "2.0.3",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/concat-map": {+ "version": "0.0.1",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/convert-source-map": {+ "version": "2.0.0",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/cross-spawn": {+ "version": "7.0.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "client/node_modules/csstype": {+ "version": "3.2.3",+ "license": "MIT"+ },+ "client/node_modules/damerau-levenshtein": {+ "version": "1.0.8",+ "dev": true,+ "license": "BSD-2-Clause"+ },+ "client/node_modules/data-view-buffer": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "es-errors": "^1.3.0",+ "is-data-view": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/data-view-byte-length": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "es-errors": "^1.3.0",+ "is-data-view": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/inspect-js"+ }+ },+ "client/node_modules/data-view-byte-offset": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "is-data-view": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/debug": {+ "version": "4.4.3",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "client/node_modules/decode-named-character-reference": {+ "version": "1.3.0",+ "license": "MIT",+ "dependencies": {+ "character-entities": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/deep-is": {+ "version": "0.1.4",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/define-data-property": {+ "version": "1.1.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/define-properties": {+ "version": "1.2.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-data-property": "^1.0.1",+ "has-property-descriptors": "^1.0.0",+ "object-keys": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/delayed-stream": {+ "version": "1.0.0",+ "license": "MIT",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "client/node_modules/dequal": {+ "version": "2.0.3",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "client/node_modules/detect-libc": {+ "version": "2.1.2",+ "devOptional": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=8"+ }+ },+ "client/node_modules/devlop": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "dequal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/doctrine": {+ "version": "2.1.0",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "esutils": "^2.0.2"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "client/node_modules/dunder-proto": {+ "version": "1.0.1",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/electron-to-chromium": {+ "version": "1.5.351",+ "dev": true,+ "license": "ISC"+ },+ "client/node_modules/emoji-regex": {+ "version": "9.2.2",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/enhanced-resolve": {+ "version": "5.21.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "tapable": "^2.3.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "client/node_modules/es-abstract": {+ "version": "1.24.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-buffer-byte-length": "^1.0.2",+ "arraybuffer.prototype.slice": "^1.0.4",+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "data-view-buffer": "^1.0.2",+ "data-view-byte-length": "^1.0.2",+ "data-view-byte-offset": "^1.0.1",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "es-set-tostringtag": "^2.1.0",+ "es-to-primitive": "^1.3.0",+ "function.prototype.name": "^1.1.8",+ "get-intrinsic": "^1.3.0",+ "get-proto": "^1.0.1",+ "get-symbol-description": "^1.1.0",+ "globalthis": "^1.0.4",+ "gopd": "^1.2.0",+ "has-property-descriptors": "^1.0.2",+ "has-proto": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "internal-slot": "^1.1.0",+ "is-array-buffer": "^3.0.5",+ "is-callable": "^1.2.7",+ "is-data-view": "^1.0.2",+ "is-negative-zero": "^2.0.3",+ "is-regex": "^1.2.1",+ "is-set": "^2.0.3",+ "is-shared-array-buffer": "^1.0.4",+ "is-string": "^1.1.1",+ "is-typed-array": "^1.1.15",+ "is-weakref": "^1.1.1",+ "math-intrinsics": "^1.1.0",+ "object-inspect": "^1.13.4",+ "object-keys": "^1.1.1",+ "object.assign": "^4.1.7",+ "own-keys": "^1.0.1",+ "regexp.prototype.flags": "^1.5.4",+ "safe-array-concat": "^1.1.3",+ "safe-push-apply": "^1.0.0",+ "safe-regex-test": "^1.1.0",+ "set-proto": "^1.0.0",+ "stop-iteration-iterator": "^1.1.0",+ "string.prototype.trim": "^1.2.10",+ "string.prototype.trimend": "^1.0.9",+ "string.prototype.trimstart": "^1.0.8",+ "typed-array-buffer": "^1.0.3",+ "typed-array-byte-length": "^1.0.3",+ "typed-array-byte-offset": "^1.0.4",+ "typed-array-length": "^1.0.7",+ "unbox-primitive": "^1.1.0",+ "which-typed-array": "^1.1.19"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/es-define-property": {+ "version": "1.0.1",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/es-errors": {+ "version": "1.3.0",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/es-iterator-helpers": {+ "version": "1.3.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.9",+ "call-bound": "^1.0.4",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.24.2",+ "es-errors": "^1.3.0",+ "es-set-tostringtag": "^2.1.0",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.3.0",+ "globalthis": "^1.0.4",+ "gopd": "^1.2.0",+ "has-property-descriptors": "^1.0.2",+ "has-proto": "^1.2.0",+ "has-symbols": "^1.1.0",+ "internal-slot": "^1.1.0",+ "iterator.prototype": "^1.1.5",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/es-object-atoms": {+ "version": "1.1.1",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/es-set-tostringtag": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.6",+ "has-tostringtag": "^1.0.2",+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/es-shim-unscopables": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/es-to-primitive": {+ "version": "1.3.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-callable": "^1.2.7",+ "is-date-object": "^1.0.5",+ "is-symbol": "^1.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/escalade": {+ "version": "3.2.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "client/node_modules/escape-string-regexp": {+ "version": "4.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "client/node_modules/eslint": {+ "version": "9.39.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.8.0",+ "@eslint-community/regexpp": "^4.12.1",+ "@eslint/config-array": "^0.21.2",+ "@eslint/config-helpers": "^0.4.2",+ "@eslint/core": "^0.17.0",+ "@eslint/eslintrc": "^3.3.5",+ "@eslint/js": "9.39.4",+ "@eslint/plugin-kit": "^0.4.1",+ "@humanfs/node": "^0.16.6",+ "@humanwhocodes/module-importer": "^1.0.1",+ "@humanwhocodes/retry": "^0.4.2",+ "@types/estree": "^1.0.6",+ "ajv": "^6.14.0",+ "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.5",+ "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+ }+ }+ },+ "client/node_modules/eslint-config-next": {+ "version": "16.2.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@next/eslint-plugin-next": "16.2.4",+ "eslint-import-resolver-node": "^0.3.6",+ "eslint-import-resolver-typescript": "^3.5.2",+ "eslint-plugin-import": "^2.32.0",+ "eslint-plugin-jsx-a11y": "^6.10.0",+ "eslint-plugin-react": "^7.37.0",+ "eslint-plugin-react-hooks": "^7.0.0",+ "globals": "16.4.0",+ "typescript-eslint": "^8.46.0"+ },+ "peerDependencies": {+ "eslint": ">=9.0.0",+ "typescript": ">=3.3.1"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "client/node_modules/eslint-config-next/node_modules/globals": {+ "version": "16.4.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "client/node_modules/eslint-import-resolver-node": {+ "version": "0.3.10",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^3.2.7",+ "is-core-module": "^2.16.1",+ "resolve": "^2.0.0-next.6"+ }+ },+ "client/node_modules/eslint-import-resolver-node/node_modules/debug": {+ "version": "3.2.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.1"+ }+ },+ "client/node_modules/eslint-import-resolver-typescript": {+ "version": "3.10.1",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "@nolyfill/is-core-module": "1.0.39",+ "debug": "^4.4.0",+ "get-tsconfig": "^4.10.0",+ "is-bun-module": "^2.0.0",+ "stable-hash": "^0.0.5",+ "tinyglobby": "^0.2.13",+ "unrs-resolver": "^1.6.2"+ },+ "engines": {+ "node": "^14.18.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint-import-resolver-typescript"+ },+ "peerDependencies": {+ "eslint": "*",+ "eslint-plugin-import": "*",+ "eslint-plugin-import-x": "*"+ },+ "peerDependenciesMeta": {+ "eslint-plugin-import": {+ "optional": true+ },+ "eslint-plugin-import-x": {+ "optional": true+ }+ }+ },+ "client/node_modules/eslint-module-utils": {+ "version": "2.12.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^3.2.7"+ },+ "engines": {+ "node": ">=4"+ },+ "peerDependenciesMeta": {+ "eslint": {+ "optional": true+ }+ }+ },+ "client/node_modules/eslint-module-utils/node_modules/debug": {+ "version": "3.2.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.1"+ }+ },+ "client/node_modules/eslint-plugin-import": {+ "version": "2.32.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@rtsao/scc": "^1.1.0",+ "array-includes": "^3.1.9",+ "array.prototype.findlastindex": "^1.2.6",+ "array.prototype.flat": "^1.3.3",+ "array.prototype.flatmap": "^1.3.3",+ "debug": "^3.2.7",+ "doctrine": "^2.1.0",+ "eslint-import-resolver-node": "^0.3.9",+ "eslint-module-utils": "^2.12.1",+ "hasown": "^2.0.2",+ "is-core-module": "^2.16.1",+ "is-glob": "^4.0.3",+ "minimatch": "^3.1.2",+ "object.fromentries": "^2.0.8",+ "object.groupby": "^1.0.3",+ "object.values": "^1.2.1",+ "semver": "^6.3.1",+ "string.prototype.trimend": "^1.0.9",+ "tsconfig-paths": "^3.15.0"+ },+ "engines": {+ "node": ">=4"+ },+ "peerDependencies": {+ "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9"+ }+ },+ "client/node_modules/eslint-plugin-import/node_modules/debug": {+ "version": "3.2.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.1"+ }+ },+ "client/node_modules/eslint-plugin-jsx-a11y": {+ "version": "6.10.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "aria-query": "^5.3.2",+ "array-includes": "^3.1.8",+ "array.prototype.flatmap": "^1.3.2",+ "ast-types-flow": "^0.0.8",+ "axe-core": "^4.10.0",+ "axobject-query": "^4.1.0",+ "damerau-levenshtein": "^1.0.8",+ "emoji-regex": "^9.2.2",+ "hasown": "^2.0.2",+ "jsx-ast-utils": "^3.3.5",+ "language-tags": "^1.0.9",+ "minimatch": "^3.1.2",+ "object.fromentries": "^2.0.8",+ "safe-regex-test": "^1.0.3",+ "string.prototype.includes": "^2.0.1"+ },+ "engines": {+ "node": ">=4.0"+ },+ "peerDependencies": {+ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9"+ }+ },+ "client/node_modules/eslint-plugin-react": {+ "version": "7.37.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-includes": "^3.1.8",+ "array.prototype.findlast": "^1.2.5",+ "array.prototype.flatmap": "^1.3.3",+ "array.prototype.tosorted": "^1.1.4",+ "doctrine": "^2.1.0",+ "es-iterator-helpers": "^1.2.1",+ "estraverse": "^5.3.0",+ "hasown": "^2.0.2",+ "jsx-ast-utils": "^2.4.1 || ^3.0.0",+ "minimatch": "^3.1.2",+ "object.entries": "^1.1.9",+ "object.fromentries": "^2.0.8",+ "object.values": "^1.2.1",+ "prop-types": "^15.8.1",+ "resolve": "^2.0.0-next.5",+ "semver": "^6.3.1",+ "string.prototype.matchall": "^4.0.12",+ "string.prototype.repeat": "^1.0.0"+ },+ "engines": {+ "node": ">=4"+ },+ "peerDependencies": {+ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7"+ }+ },+ "client/node_modules/eslint-plugin-react-hooks": {+ "version": "7.1.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/core": "^7.24.4",+ "@babel/parser": "^7.24.4",+ "hermes-parser": "^0.25.1",+ "zod": "^3.25.0 || ^4.0.0",+ "zod-validation-error": "^3.5.0 || ^4.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0"+ }+ },+ "client/node_modules/eslint-scope": {+ "version": "8.4.0",+ "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"+ }+ },+ "client/node_modules/eslint-visitor-keys": {+ "version": "4.2.1",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "client/node_modules/espree": {+ "version": "10.4.0",+ "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"+ }+ },+ "client/node_modules/esquery": {+ "version": "1.7.0",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "estraverse": "^5.1.0"+ },+ "engines": {+ "node": ">=0.10"+ }+ },+ "client/node_modules/esrecurse": {+ "version": "4.3.0",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": ">=4.0"+ }+ },+ "client/node_modules/estraverse": {+ "version": "5.3.0",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=4.0"+ }+ },+ "client/node_modules/estree-util-is-identifier-name": {+ "version": "3.0.0",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/esutils": {+ "version": "2.0.3",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "client/node_modules/extend": {+ "version": "3.0.2",+ "license": "MIT"+ },+ "client/node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/fast-glob": {+ "version": "3.3.1",+ "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"+ }+ },+ "client/node_modules/fast-glob/node_modules/glob-parent": {+ "version": "5.1.2",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "client/node_modules/fast-json-stable-stringify": {+ "version": "2.1.0",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/fast-levenshtein": {+ "version": "2.0.6",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/fastq": {+ "version": "1.20.1",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "reusify": "^1.0.4"+ }+ },+ "client/node_modules/file-entry-cache": {+ "version": "8.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "flat-cache": "^4.0.0"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "client/node_modules/fill-range": {+ "version": "7.1.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "to-regex-range": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "client/node_modules/find-up": {+ "version": "5.0.0",+ "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"+ }+ },+ "client/node_modules/flat-cache": {+ "version": "4.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "flatted": "^3.2.9",+ "keyv": "^4.5.4"+ },+ "engines": {+ "node": ">=16"+ }+ },+ "client/node_modules/flatted": {+ "version": "3.4.2",+ "dev": true,+ "license": "ISC"+ },+ "client/node_modules/follow-redirects": {+ "version": "1.16.0",+ "funding": [+ {+ "type": "individual",+ "url": "https://github.com/sponsors/RubenVerborgh"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=4.0"+ },+ "peerDependenciesMeta": {+ "debug": {+ "optional": true+ }+ }+ },+ "client/node_modules/for-each": {+ "version": "0.3.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-callable": "^1.2.7"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/form-data": {+ "version": "4.0.5",+ "license": "MIT",+ "dependencies": {+ "asynckit": "^0.4.0",+ "combined-stream": "^1.0.8",+ "es-set-tostringtag": "^2.1.0",+ "hasown": "^2.0.2",+ "mime-types": "^2.1.12"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "client/node_modules/function-bind": {+ "version": "1.1.2",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/function.prototype.name": {+ "version": "1.1.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "define-properties": "^1.2.1",+ "functions-have-names": "^1.2.3",+ "hasown": "^2.0.2",+ "is-callable": "^1.2.7"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/functions-have-names": {+ "version": "1.2.3",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/generator-function": {+ "version": "2.0.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/gensync": {+ "version": "1.0.0-beta.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "client/node_modules/get-intrinsic": {+ "version": "1.3.0",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/get-proto": {+ "version": "1.0.1",+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/get-symbol-description": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/get-tsconfig": {+ "version": "4.14.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "resolve-pkg-maps": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"+ }+ },+ "client/node_modules/glob-parent": {+ "version": "6.0.2",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "client/node_modules/globals": {+ "version": "14.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "client/node_modules/globalthis": {+ "version": "1.0.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-properties": "^1.2.1",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/goober": {+ "version": "2.1.18",+ "license": "MIT",+ "peerDependencies": {+ "csstype": "^3.0.10"+ }+ },+ "client/node_modules/gopd": {+ "version": "1.2.0",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/graceful-fs": {+ "version": "4.2.11",+ "dev": true,+ "license": "ISC"+ },+ "client/node_modules/has-bigints": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/has-flag": {+ "version": "4.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "client/node_modules/has-property-descriptors": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-define-property": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/has-proto": {+ "version": "1.2.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/has-symbols": {+ "version": "1.1.0",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/has-tostringtag": {+ "version": "1.0.2",+ "license": "MIT",+ "dependencies": {+ "has-symbols": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/hasown": {+ "version": "2.0.3",+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/hast-util-to-jsx-runtime": {+ "version": "2.3.6",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/unist": "^3.0.0",+ "comma-separated-tokens": "^2.0.0",+ "devlop": "^1.0.0",+ "estree-util-is-identifier-name": "^3.0.0",+ "hast-util-whitespace": "^3.0.0",+ "mdast-util-mdx-expression": "^2.0.0",+ "mdast-util-mdx-jsx": "^3.0.0",+ "mdast-util-mdxjs-esm": "^2.0.0",+ "property-information": "^7.0.0",+ "space-separated-tokens": "^2.0.0",+ "style-to-js": "^1.0.0",+ "unist-util-position": "^5.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/hast-util-whitespace": {+ "version": "3.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/hermes-estree": {+ "version": "0.25.1",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/hermes-parser": {+ "version": "0.25.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "hermes-estree": "0.25.1"+ }+ },+ "client/node_modules/html-url-attributes": {+ "version": "3.0.1",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/ignore": {+ "version": "5.3.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "client/node_modules/import-fresh": {+ "version": "3.3.1",+ "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"+ }+ },+ "client/node_modules/imurmurhash": {+ "version": "0.1.4",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.8.19"+ }+ },+ "client/node_modules/inline-style-parser": {+ "version": "0.2.7",+ "license": "MIT"+ },+ "client/node_modules/internal-slot": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "hasown": "^2.0.2",+ "side-channel": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/is-alphabetical": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/is-alphanumerical": {+ "version": "2.0.1",+ "license": "MIT",+ "dependencies": {+ "is-alphabetical": "^2.0.0",+ "is-decimal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/is-array-buffer": {+ "version": "3.0.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "get-intrinsic": "^1.2.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-async-function": {+ "version": "2.1.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "async-function": "^1.0.0",+ "call-bound": "^1.0.3",+ "get-proto": "^1.0.1",+ "has-tostringtag": "^1.0.2",+ "safe-regex-test": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-bigint": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-bigints": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-boolean-object": {+ "version": "1.2.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-bun-module": {+ "version": "2.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "semver": "^7.7.1"+ }+ },+ "client/node_modules/is-bun-module/node_modules/semver": {+ "version": "7.7.4",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "client/node_modules/is-callable": {+ "version": "1.2.7",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-core-module": {+ "version": "2.16.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-data-view": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "get-intrinsic": "^1.2.6",+ "is-typed-array": "^1.1.13"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-date-object": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-decimal": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/is-extglob": {+ "version": "2.1.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "client/node_modules/is-finalizationregistry": {+ "version": "1.1.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-generator-function": {+ "version": "1.1.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.4",+ "generator-function": "^2.0.0",+ "get-proto": "^1.0.1",+ "has-tostringtag": "^1.0.2",+ "safe-regex-test": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-glob": {+ "version": "4.0.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "client/node_modules/is-hexadecimal": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/is-map": {+ "version": "2.0.3",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-negative-zero": {+ "version": "2.0.3",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-number": {+ "version": "7.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "client/node_modules/is-number-object": {+ "version": "1.1.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-plain-obj": {+ "version": "4.1.0",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "client/node_modules/is-regex": {+ "version": "1.2.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "gopd": "^1.2.0",+ "has-tostringtag": "^1.0.2",+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-set": {+ "version": "2.0.3",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-shared-array-buffer": {+ "version": "1.0.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-string": {+ "version": "1.1.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-symbol": {+ "version": "1.1.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "has-symbols": "^1.1.0",+ "safe-regex-test": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-typed-array": {+ "version": "1.1.15",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "which-typed-array": "^1.1.16"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-weakmap": {+ "version": "2.0.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-weakref": {+ "version": "1.1.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/is-weakset": {+ "version": "2.0.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "get-intrinsic": "^1.2.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/isarray": {+ "version": "2.0.5",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/isexe": {+ "version": "2.0.0",+ "dev": true,+ "license": "ISC"+ },+ "client/node_modules/iterator.prototype": {+ "version": "1.1.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-data-property": "^1.1.4",+ "es-object-atoms": "^1.0.0",+ "get-intrinsic": "^1.2.6",+ "get-proto": "^1.0.0",+ "has-symbols": "^1.1.0",+ "set-function-name": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/its-fine": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/react-reconciler": "^0.28.9"+ },+ "peerDependencies": {+ "react": "^19.0.0"+ }+ },+ "client/node_modules/its-fine/node_modules/@types/react-reconciler": {+ "version": "0.28.9",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*"+ }+ },+ "client/node_modules/jiti": {+ "version": "2.7.0",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jiti": "lib/jiti-cli.mjs"+ }+ },+ "client/node_modules/js-cookie": {+ "version": "3.0.5",+ "license": "MIT",+ "engines": {+ "node": ">=14"+ }+ },+ "client/node_modules/js-tokens": {+ "version": "4.0.0",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/js-yaml": {+ "version": "4.1.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "argparse": "^2.0.1"+ },+ "bin": {+ "js-yaml": "bin/js-yaml.js"+ }+ },+ "client/node_modules/jsesc": {+ "version": "3.1.0",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jsesc": "bin/jsesc"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "client/node_modules/json-buffer": {+ "version": "3.0.1",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/json-schema-traverse": {+ "version": "0.4.1",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/json-stable-stringify-without-jsonify": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/json5": {+ "version": "2.2.3",+ "dev": true,+ "license": "MIT",+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "client/node_modules/jsx-ast-utils": {+ "version": "3.3.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-includes": "^3.1.6",+ "array.prototype.flat": "^1.3.1",+ "object.assign": "^4.1.4",+ "object.values": "^1.1.6"+ },+ "engines": {+ "node": ">=4.0"+ }+ },+ "client/node_modules/keyv": {+ "version": "4.5.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "json-buffer": "3.0.1"+ }+ },+ "client/node_modules/konva": {+ "version": "10.3.0",+ "funding": [+ {+ "type": "patreon",+ "url": "https://www.patreon.com/lavrton"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/konva"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/lavrton"+ }+ ],+ "license": "MIT"+ },+ "client/node_modules/language-subtag-registry": {+ "version": "0.3.23",+ "dev": true,+ "license": "CC0-1.0"+ },+ "client/node_modules/language-tags": {+ "version": "1.0.9",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "language-subtag-registry": "^0.3.20"+ },+ "engines": {+ "node": ">=0.10"+ }+ },+ "client/node_modules/levn": {+ "version": "0.4.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "prelude-ls": "^1.2.1",+ "type-check": "~0.4.0"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "client/node_modules/lightningcss": {+ "version": "1.32.0",+ "dev": true,+ "license": "MPL-2.0",+ "dependencies": {+ "detect-libc": "^2.0.3"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ },+ "optionalDependencies": {+ "lightningcss-android-arm64": "1.32.0",+ "lightningcss-darwin-arm64": "1.32.0",+ "lightningcss-darwin-x64": "1.32.0",+ "lightningcss-freebsd-x64": "1.32.0",+ "lightningcss-linux-arm-gnueabihf": "1.32.0",+ "lightningcss-linux-arm64-gnu": "1.32.0",+ "lightningcss-linux-arm64-musl": "1.32.0",+ "lightningcss-linux-x64-gnu": "1.32.0",+ "lightningcss-linux-x64-musl": "1.32.0",+ "lightningcss-win32-arm64-msvc": "1.32.0",+ "lightningcss-win32-x64-msvc": "1.32.0"+ }+ },+ "client/node_modules/lightningcss-win32-x64-msvc": {+ "version": "1.32.0",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"+ }+ },+ "client/node_modules/locate-path": {+ "version": "6.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "p-locate": "^5.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "client/node_modules/lodash.merge": {+ "version": "4.6.2",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/longest-streak": {+ "version": "3.1.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/loose-envify": {+ "version": "1.4.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^3.0.0 || ^4.0.0"+ },+ "bin": {+ "loose-envify": "cli.js"+ }+ },+ "client/node_modules/lru-cache": {+ "version": "5.1.1",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^3.0.2"+ }+ },+ "client/node_modules/lucide-react": {+ "version": "1.14.0",+ "license": "ISC",+ "peerDependencies": {+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "client/node_modules/magic-string": {+ "version": "0.30.21",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.5"+ }+ },+ "client/node_modules/markdown-table": {+ "version": "3.0.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/math-intrinsics": {+ "version": "1.1.0",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/mdast-util-find-and-replace": {+ "version": "3.0.2",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "escape-string-regexp": "^5.0.0",+ "unist-util-is": "^6.0.0",+ "unist-util-visit-parents": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp": {+ "version": "5.0.0",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "client/node_modules/mdast-util-from-markdown": {+ "version": "2.0.3",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "mdast-util-to-string": "^4.0.0",+ "micromark": "^4.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-decode-string": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0",+ "unist-util-stringify-position": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-gfm": {+ "version": "3.1.0",+ "license": "MIT",+ "dependencies": {+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-gfm-autolink-literal": "^2.0.0",+ "mdast-util-gfm-footnote": "^2.0.0",+ "mdast-util-gfm-strikethrough": "^2.0.0",+ "mdast-util-gfm-table": "^2.0.0",+ "mdast-util-gfm-task-list-item": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-gfm-autolink-literal": {+ "version": "2.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "ccount": "^2.0.0",+ "devlop": "^1.0.0",+ "mdast-util-find-and-replace": "^3.0.0",+ "micromark-util-character": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-gfm-footnote": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.1.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-gfm-strikethrough": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-gfm-table": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "markdown-table": "^3.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-gfm-task-list-item": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-mdx-expression": {+ "version": "2.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-mdx-jsx": {+ "version": "3.2.0",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "ccount": "^2.0.0",+ "devlop": "^1.1.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "parse-entities": "^4.0.0",+ "stringify-entities": "^4.0.0",+ "unist-util-stringify-position": "^4.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-mdxjs-esm": {+ "version": "2.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-phrasing": {+ "version": "4.1.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "unist-util-is": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-to-hast": {+ "version": "13.2.1",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "@ungap/structured-clone": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "trim-lines": "^3.0.0",+ "unist-util-position": "^5.0.0",+ "unist-util-visit": "^5.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-to-markdown": {+ "version": "2.1.2",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "longest-streak": "^3.0.0",+ "mdast-util-phrasing": "^4.0.0",+ "mdast-util-to-string": "^4.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-decode-string": "^2.0.0",+ "unist-util-visit": "^5.0.0",+ "zwitch": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/mdast-util-to-string": {+ "version": "4.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/merge2": {+ "version": "1.4.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "client/node_modules/micromark": {+ "version": "4.0.2",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "@types/debug": "^4.0.0",+ "debug": "^4.0.0",+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-core-commonmark": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-combine-extensions": "^2.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-encode": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-subtokenize": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "client/node_modules/micromark-core-commonmark": {+ "version": "2.0.3",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-factory-destination": "^2.0.0",+ "micromark-factory-label": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-factory-title": "^2.0.0",+ "micromark-factory-whitespace": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-html-tag-name": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-subtokenize": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "client/node_modules/micromark-extension-gfm": {+ "version": "3.0.0",+ "license": "MIT",+ "dependencies": {+ "micromark-extension-gfm-autolink-literal": "^2.0.0",+ "micromark-extension-gfm-footnote": "^2.0.0",+ "micromark-extension-gfm-strikethrough": "^2.0.0",+ "micromark-extension-gfm-table": "^2.0.0",+ "micromark-extension-gfm-tagfilter": "^2.0.0",+ "micromark-extension-gfm-task-list-item": "^2.0.0",+ "micromark-util-combine-extensions": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/micromark-extension-gfm-autolink-literal": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/micromark-extension-gfm-footnote": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-core-commonmark": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/micromark-extension-gfm-strikethrough": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/micromark-extension-gfm-table": {+ "version": "2.1.1",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/micromark-extension-gfm-tagfilter": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/micromark-extension-gfm-task-list-item": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/micromark-factory-destination": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "client/node_modules/micromark-factory-label": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "client/node_modules/micromark-factory-space": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "client/node_modules/micromark-factory-title": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "client/node_modules/micromark-factory-whitespace": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "client/node_modules/micromark-util-character": {+ "version": "2.1.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "client/node_modules/micromark-util-chunked": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "client/node_modules/micromark-util-classify-character": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "client/node_modules/micromark-util-combine-extensions": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "client/node_modules/micromark-util-decode-numeric-character-reference": {+ "version": "2.0.2",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "client/node_modules/micromark-util-decode-string": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "decode-named-character-reference": "^1.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "client/node_modules/micromark-util-encode": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "client/node_modules/micromark-util-html-tag-name": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "client/node_modules/micromark-util-normalize-identifier": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "client/node_modules/micromark-util-resolve-all": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-types": "^2.0.0"+ }+ },+ "client/node_modules/micromark-util-sanitize-uri": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-encode": "^2.0.0",+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "client/node_modules/micromark-util-subtokenize": {+ "version": "2.1.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "client/node_modules/micromark-util-symbol": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "client/node_modules/micromark-util-types": {+ "version": "2.0.2",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "client/node_modules/micromatch": {+ "version": "4.0.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "braces": "^3.0.3",+ "picomatch": "^2.3.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "client/node_modules/mime-db": {+ "version": "1.52.0",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "client/node_modules/mime-types": {+ "version": "2.1.35",+ "license": "MIT",+ "dependencies": {+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "client/node_modules/minimatch": {+ "version": "3.1.5",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "client/node_modules/minimist": {+ "version": "1.2.8",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/ms": {+ "version": "2.1.3",+ "license": "MIT"+ },+ "client/node_modules/nanoid": {+ "version": "3.3.12",+ "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"+ }+ },+ "client/node_modules/napi-postinstall": {+ "version": "0.3.4",+ "dev": true,+ "license": "MIT",+ "bin": {+ "napi-postinstall": "lib/cli.js"+ },+ "engines": {+ "node": "^12.20.0 || ^14.18.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/napi-postinstall"+ }+ },+ "client/node_modules/natural-compare": {+ "version": "1.4.0",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/next": {+ "version": "16.2.4",+ "license": "MIT",+ "dependencies": {+ "@next/env": "16.2.4",+ "@swc/helpers": "0.5.15",+ "baseline-browser-mapping": "^2.9.19",+ "caniuse-lite": "^1.0.30001579",+ "postcss": "8.4.31",+ "styled-jsx": "5.1.6"+ },+ "bin": {+ "next": "dist/bin/next"+ },+ "engines": {+ "node": ">=20.9.0"+ },+ "optionalDependencies": {+ "@next/swc-darwin-arm64": "16.2.4",+ "@next/swc-darwin-x64": "16.2.4",+ "@next/swc-linux-arm64-gnu": "16.2.4",+ "@next/swc-linux-arm64-musl": "16.2.4",+ "@next/swc-linux-x64-gnu": "16.2.4",+ "@next/swc-linux-x64-musl": "16.2.4",+ "@next/swc-win32-arm64-msvc": "16.2.4",+ "@next/swc-win32-x64-msvc": "16.2.4",+ "sharp": "^0.34.5"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.1.0",+ "@playwright/test": "^1.51.1",+ "babel-plugin-react-compiler": "*",+ "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",+ "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",+ "sass": "^1.3.0"+ },+ "peerDependenciesMeta": {+ "@opentelemetry/api": {+ "optional": true+ },+ "@playwright/test": {+ "optional": true+ },+ "babel-plugin-react-compiler": {+ "optional": true+ },+ "sass": {+ "optional": true+ }+ }+ },+ "client/node_modules/next-themes": {+ "version": "0.4.6",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc"+ }+ },+ "client/node_modules/next/node_modules/postcss": {+ "version": "8.4.31",+ "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.6",+ "picocolors": "^1.0.0",+ "source-map-js": "^1.0.2"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "client/node_modules/node-exports-info": {+ "version": "1.6.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array.prototype.flatmap": "^1.3.3",+ "es-errors": "^1.3.0",+ "object.entries": "^1.1.9",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/node-releases": {+ "version": "2.0.38",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/object-assign": {+ "version": "4.1.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "client/node_modules/object-inspect": {+ "version": "1.13.4",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/object-keys": {+ "version": "1.1.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/object.assign": {+ "version": "4.1.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0",+ "has-symbols": "^1.1.0",+ "object-keys": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/object.entries": {+ "version": "1.1.9",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/object.fromentries": {+ "version": "2.0.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.2",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/object.groupby": {+ "version": "1.0.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/object.values": {+ "version": "1.2.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/optionator": {+ "version": "0.9.4",+ "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"+ }+ },+ "client/node_modules/own-keys": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "get-intrinsic": "^1.2.6",+ "object-keys": "^1.1.1",+ "safe-push-apply": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/p-limit": {+ "version": "3.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "yocto-queue": "^0.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "client/node_modules/p-locate": {+ "version": "5.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "p-limit": "^3.0.2"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "client/node_modules/parent-module": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "callsites": "^3.0.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "client/node_modules/parse-entities": {+ "version": "4.0.2",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^2.0.0",+ "character-entities-legacy": "^3.0.0",+ "character-reference-invalid": "^2.0.0",+ "decode-named-character-reference": "^1.0.0",+ "is-alphanumerical": "^2.0.0",+ "is-decimal": "^2.0.0",+ "is-hexadecimal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/parse-entities/node_modules/@types/unist": {+ "version": "2.0.11",+ "license": "MIT"+ },+ "client/node_modules/path-exists": {+ "version": "4.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "client/node_modules/path-key": {+ "version": "3.1.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "client/node_modules/path-parse": {+ "version": "1.0.7",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/picocolors": {+ "version": "1.1.1",+ "license": "ISC"+ },+ "client/node_modules/picomatch": {+ "version": "2.3.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "client/node_modules/possible-typed-array-names": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/postcss": {+ "version": "8.5.14",+ "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"+ }+ },+ "client/node_modules/prelude-ls": {+ "version": "1.2.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "client/node_modules/prop-types": {+ "version": "15.8.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.4.0",+ "object-assign": "^4.1.1",+ "react-is": "^16.13.1"+ }+ },+ "client/node_modules/property-information": {+ "version": "7.1.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/proxy-from-env": {+ "version": "2.1.0",+ "license": "MIT",+ "engines": {+ "node": ">=10"+ }+ },+ "client/node_modules/punycode": {+ "version": "2.3.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "client/node_modules/queue-microtask": {+ "version": "1.2.3",+ "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"+ },+ "client/node_modules/react": {+ "version": "19.2.4",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "client/node_modules/react-dom": {+ "version": "19.2.4",+ "license": "MIT",+ "dependencies": {+ "scheduler": "^0.27.0"+ },+ "peerDependencies": {+ "react": "^19.2.4"+ }+ },+ "client/node_modules/react-hot-toast": {+ "version": "2.6.0",+ "license": "MIT",+ "dependencies": {+ "csstype": "^3.1.3",+ "goober": "^2.1.16"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "react": ">=16",+ "react-dom": ">=16"+ }+ },+ "client/node_modules/react-icons": {+ "version": "5.6.0",+ "license": "MIT",+ "peerDependencies": {+ "react": "*"+ }+ },+ "client/node_modules/react-is": {+ "version": "16.13.1",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/react-konva": {+ "version": "19.2.3",+ "funding": [+ {+ "type": "patreon",+ "url": "https://www.patreon.com/lavrton"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/konva"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/lavrton"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "@types/react-reconciler": "^0.33.0",+ "its-fine": "^2.0.0",+ "react-reconciler": "0.33.0",+ "scheduler": "0.27.0"+ },+ "peerDependencies": {+ "konva": "^8.0.1 || ^7.2.5 || ^9.0.0 || ^10.0.0",+ "react": "^19.2.0",+ "react-dom": "^19.2.0"+ }+ },+ "client/node_modules/react-markdown": {+ "version": "10.1.0",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "hast-util-to-jsx-runtime": "^2.0.0",+ "html-url-attributes": "^3.0.0",+ "mdast-util-to-hast": "^13.0.0",+ "remark-parse": "^11.0.0",+ "remark-rehype": "^11.0.0",+ "unified": "^11.0.0",+ "unist-util-visit": "^5.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ },+ "peerDependencies": {+ "@types/react": ">=18",+ "react": ">=18"+ }+ },+ "client/node_modules/react-reconciler": {+ "version": "0.33.0",+ "license": "MIT",+ "dependencies": {+ "scheduler": "^0.27.0"+ },+ "engines": {+ "node": ">=0.10.0"+ },+ "peerDependencies": {+ "react": "^19.2.0"+ }+ },+ "client/node_modules/reflect.getprototypeof": {+ "version": "1.0.10",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.9",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.0.0",+ "get-intrinsic": "^1.2.7",+ "get-proto": "^1.0.1",+ "which-builtin-type": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/regexp.prototype.flags": {+ "version": "1.5.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "define-properties": "^1.2.1",+ "es-errors": "^1.3.0",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "set-function-name": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/remark-gfm": {+ "version": "4.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-gfm": "^3.0.0",+ "micromark-extension-gfm": "^3.0.0",+ "remark-parse": "^11.0.0",+ "remark-stringify": "^11.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/remark-parse": {+ "version": "11.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "micromark-util-types": "^2.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/remark-rehype": {+ "version": "11.1.2",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "mdast-util-to-hast": "^13.0.0",+ "unified": "^11.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/remark-stringify": {+ "version": "11.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/resolve": {+ "version": "2.0.0-next.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "is-core-module": "^2.16.1",+ "node-exports-info": "^1.6.0",+ "object-keys": "^1.1.1",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/resolve-from": {+ "version": "4.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "client/node_modules/resolve-pkg-maps": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"+ }+ },+ "client/node_modules/reusify": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "iojs": ">=1.0.0",+ "node": ">=0.10.0"+ }+ },+ "client/node_modules/run-parallel": {+ "version": "1.2.0",+ "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"+ }+ },+ "client/node_modules/safe-array-concat": {+ "version": "1.1.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.9",+ "call-bound": "^1.0.4",+ "get-intrinsic": "^1.3.0",+ "has-symbols": "^1.1.0",+ "isarray": "^2.0.5"+ },+ "engines": {+ "node": ">=0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/safe-push-apply": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "isarray": "^2.0.5"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/safe-regex-test": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "is-regex": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/scheduler": {+ "version": "0.27.0",+ "license": "MIT"+ },+ "client/node_modules/semver": {+ "version": "6.3.1",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "client/node_modules/set-function-length": {+ "version": "1.2.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-data-property": "^1.1.4",+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.2.4",+ "gopd": "^1.0.1",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/set-function-name": {+ "version": "2.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-data-property": "^1.1.4",+ "es-errors": "^1.3.0",+ "functions-have-names": "^1.2.3",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/set-proto": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/sharp": {+ "version": "0.34.5",+ "hasInstallScript": true,+ "license": "Apache-2.0",+ "optional": true,+ "dependencies": {+ "@img/colour": "^1.0.0",+ "detect-libc": "^2.1.2",+ "semver": "^7.7.3"+ },+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-darwin-arm64": "0.34.5",+ "@img/sharp-darwin-x64": "0.34.5",+ "@img/sharp-libvips-darwin-arm64": "1.2.4",+ "@img/sharp-libvips-darwin-x64": "1.2.4",+ "@img/sharp-libvips-linux-arm": "1.2.4",+ "@img/sharp-libvips-linux-arm64": "1.2.4",+ "@img/sharp-libvips-linux-ppc64": "1.2.4",+ "@img/sharp-libvips-linux-riscv64": "1.2.4",+ "@img/sharp-libvips-linux-s390x": "1.2.4",+ "@img/sharp-libvips-linux-x64": "1.2.4",+ "@img/sharp-libvips-linuxmusl-arm64": "1.2.4",+ "@img/sharp-libvips-linuxmusl-x64": "1.2.4",+ "@img/sharp-linux-arm": "0.34.5",+ "@img/sharp-linux-arm64": "0.34.5",+ "@img/sharp-linux-ppc64": "0.34.5",+ "@img/sharp-linux-riscv64": "0.34.5",+ "@img/sharp-linux-s390x": "0.34.5",+ "@img/sharp-linux-x64": "0.34.5",+ "@img/sharp-linuxmusl-arm64": "0.34.5",+ "@img/sharp-linuxmusl-x64": "0.34.5",+ "@img/sharp-wasm32": "0.34.5",+ "@img/sharp-win32-arm64": "0.34.5",+ "@img/sharp-win32-ia32": "0.34.5",+ "@img/sharp-win32-x64": "0.34.5"+ }+ },+ "client/node_modules/sharp/node_modules/semver": {+ "version": "7.7.4",+ "license": "ISC",+ "optional": true,+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "client/node_modules/shebang-command": {+ "version": "2.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "client/node_modules/shebang-regex": {+ "version": "3.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "client/node_modules/side-channel": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.3",+ "side-channel-list": "^1.0.0",+ "side-channel-map": "^1.0.1",+ "side-channel-weakmap": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/side-channel-list": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/side-channel-map": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/side-channel-weakmap": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3",+ "side-channel-map": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/source-map-js": {+ "version": "1.2.1",+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "client/node_modules/space-separated-tokens": {+ "version": "2.0.2",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/stable-hash": {+ "version": "0.0.5",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/stop-iteration-iterator": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "internal-slot": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/string.prototype.includes": {+ "version": "2.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.3"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/string.prototype.matchall": {+ "version": "4.0.12",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.3",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.6",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.0.0",+ "get-intrinsic": "^1.2.6",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "internal-slot": "^1.1.0",+ "regexp.prototype.flags": "^1.5.3",+ "set-function-name": "^2.0.2",+ "side-channel": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/string.prototype.repeat": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-properties": "^1.1.3",+ "es-abstract": "^1.17.5"+ }+ },+ "client/node_modules/string.prototype.trim": {+ "version": "1.2.10",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.2",+ "define-data-property": "^1.1.4",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.5",+ "es-object-atoms": "^1.0.0",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/string.prototype.trimend": {+ "version": "1.0.9",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.2",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/string.prototype.trimstart": {+ "version": "1.0.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/stringify-entities": {+ "version": "4.0.4",+ "license": "MIT",+ "dependencies": {+ "character-entities-html4": "^2.0.0",+ "character-entities-legacy": "^3.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/strip-bom": {+ "version": "3.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "client/node_modules/strip-json-comments": {+ "version": "3.1.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "client/node_modules/style-to-js": {+ "version": "1.1.21",+ "license": "MIT",+ "dependencies": {+ "style-to-object": "1.0.14"+ }+ },+ "client/node_modules/style-to-object": {+ "version": "1.0.14",+ "license": "MIT",+ "dependencies": {+ "inline-style-parser": "0.2.7"+ }+ },+ "client/node_modules/styled-jsx": {+ "version": "5.1.6",+ "license": "MIT",+ "dependencies": {+ "client-only": "0.0.1"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "peerDependencies": {+ "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0"+ },+ "peerDependenciesMeta": {+ "@babel/core": {+ "optional": true+ },+ "babel-plugin-macros": {+ "optional": true+ }+ }+ },+ "client/node_modules/supports-color": {+ "version": "7.2.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-flag": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "client/node_modules/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/tailwind-merge": {+ "version": "3.5.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/dcastil"+ }+ },+ "client/node_modules/tailwindcss": {+ "version": "4.2.4",+ "dev": true,+ "license": "MIT"+ },+ "client/node_modules/tapable": {+ "version": "2.3.3",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"+ }+ },+ "client/node_modules/tinyglobby": {+ "version": "0.2.16",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.4"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "client/node_modules/tinyglobby/node_modules/fdir": {+ "version": "6.5.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "client/node_modules/tinyglobby/node_modules/picomatch": {+ "version": "4.0.4",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "client/node_modules/to-regex-range": {+ "version": "5.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "client/node_modules/trim-lines": {+ "version": "3.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/trough": {+ "version": "2.2.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "client/node_modules/ts-api-utils": {+ "version": "2.5.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18.12"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4"+ }+ },+ "client/node_modules/tsconfig-paths": {+ "version": "3.15.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/json5": "^0.0.29",+ "json5": "^1.0.2",+ "minimist": "^1.2.6",+ "strip-bom": "^3.0.0"+ }+ },+ "client/node_modules/tsconfig-paths/node_modules/json5": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "minimist": "^1.2.0"+ },+ "bin": {+ "json5": "lib/cli.js"+ }+ },+ "client/node_modules/tslib": {+ "version": "2.8.1",+ "license": "0BSD"+ },+ "client/node_modules/type-check": {+ "version": "0.4.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "prelude-ls": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "client/node_modules/typed-array-buffer": {+ "version": "1.0.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "es-errors": "^1.3.0",+ "is-typed-array": "^1.1.14"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "client/node_modules/typed-array-byte-length": {+ "version": "1.0.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.8",+ "for-each": "^0.3.3",+ "gopd": "^1.2.0",+ "has-proto": "^1.2.0",+ "is-typed-array": "^1.1.14"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/typed-array-byte-offset": {+ "version": "1.0.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.8",+ "for-each": "^0.3.3",+ "gopd": "^1.2.0",+ "has-proto": "^1.2.0",+ "is-typed-array": "^1.1.15",+ "reflect.getprototypeof": "^1.0.9"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/typed-array-length": {+ "version": "1.0.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "for-each": "^0.3.3",+ "gopd": "^1.0.1",+ "is-typed-array": "^1.1.13",+ "possible-typed-array-names": "^1.0.0",+ "reflect.getprototypeof": "^1.0.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/typescript": {+ "version": "6.0.3",+ "dev": true,+ "license": "Apache-2.0",+ "peer": true,+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "client/node_modules/typescript-eslint": {+ "version": "8.59.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/eslint-plugin": "8.59.2",+ "@typescript-eslint/parser": "8.59.2",+ "@typescript-eslint/typescript-estree": "8.59.2",+ "@typescript-eslint/utils": "8.59.2"+ },+ "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 || ^10.0.0",+ "typescript": ">=4.8.4 <6.1.0"+ }+ },+ "client/node_modules/unbox-primitive": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.3",+ "has-bigints": "^1.0.2",+ "has-symbols": "^1.1.0",+ "which-boxed-primitive": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/unified": {+ "version": "11.0.5",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "bail": "^2.0.0",+ "devlop": "^1.0.0",+ "extend": "^3.0.0",+ "is-plain-obj": "^4.0.0",+ "trough": "^2.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/unist-util-is": {+ "version": "6.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/unist-util-position": {+ "version": "5.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/unist-util-stringify-position": {+ "version": "4.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/unist-util-visit": {+ "version": "5.1.0",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-is": "^6.0.0",+ "unist-util-visit-parents": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/unist-util-visit-parents": {+ "version": "6.0.2",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-is": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/unrs-resolver": {+ "version": "1.11.1",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "dependencies": {+ "napi-postinstall": "^0.3.0"+ },+ "funding": {+ "url": "https://opencollective.com/unrs-resolver"+ },+ "optionalDependencies": {+ "@unrs/resolver-binding-android-arm-eabi": "1.11.1",+ "@unrs/resolver-binding-android-arm64": "1.11.1",+ "@unrs/resolver-binding-darwin-arm64": "1.11.1",+ "@unrs/resolver-binding-darwin-x64": "1.11.1",+ "@unrs/resolver-binding-freebsd-x64": "1.11.1",+ "@unrs/resolver-binding-linux-arm-gnueabihf": "1.11.1",+ "@unrs/resolver-binding-linux-arm-musleabihf": "1.11.1",+ "@unrs/resolver-binding-linux-arm64-gnu": "1.11.1",+ "@unrs/resolver-binding-linux-arm64-musl": "1.11.1",+ "@unrs/resolver-binding-linux-ppc64-gnu": "1.11.1",+ "@unrs/resolver-binding-linux-riscv64-gnu": "1.11.1",+ "@unrs/resolver-binding-linux-riscv64-musl": "1.11.1",+ "@unrs/resolver-binding-linux-s390x-gnu": "1.11.1",+ "@unrs/resolver-binding-linux-x64-gnu": "1.11.1",+ "@unrs/resolver-binding-linux-x64-musl": "1.11.1",+ "@unrs/resolver-binding-wasm32-wasi": "1.11.1",+ "@unrs/resolver-binding-win32-arm64-msvc": "1.11.1",+ "@unrs/resolver-binding-win32-ia32-msvc": "1.11.1",+ "@unrs/resolver-binding-win32-x64-msvc": "1.11.1"+ }+ },+ "client/node_modules/update-browserslist-db": {+ "version": "1.2.3",+ "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"+ }+ },+ "client/node_modules/uri-js": {+ "version": "4.4.1",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "punycode": "^2.1.0"+ }+ },+ "client/node_modules/vfile": {+ "version": "6.0.3",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/vfile-message": {+ "version": "4.0.3",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-stringify-position": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "client/node_modules/which": {+ "version": "2.0.2",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "client/node_modules/which-boxed-primitive": {+ "version": "1.1.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-bigint": "^1.1.0",+ "is-boolean-object": "^1.2.1",+ "is-number-object": "^1.1.1",+ "is-string": "^1.1.1",+ "is-symbol": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/which-builtin-type": {+ "version": "1.2.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "function.prototype.name": "^1.1.6",+ "has-tostringtag": "^1.0.2",+ "is-async-function": "^2.0.0",+ "is-date-object": "^1.1.0",+ "is-finalizationregistry": "^1.1.0",+ "is-generator-function": "^1.0.10",+ "is-regex": "^1.2.1",+ "is-weakref": "^1.0.2",+ "isarray": "^2.0.5",+ "which-boxed-primitive": "^1.1.0",+ "which-collection": "^1.0.2",+ "which-typed-array": "^1.1.16"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/which-collection": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-map": "^2.0.3",+ "is-set": "^2.0.3",+ "is-weakmap": "^2.0.2",+ "is-weakset": "^2.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/which-typed-array": {+ "version": "1.1.20",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "for-each": "^0.3.5",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "client/node_modules/word-wrap": {+ "version": "1.2.5",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "client/node_modules/yallist": {+ "version": "3.1.1",+ "dev": true,+ "license": "ISC"+ },+ "client/node_modules/yocto-queue": {+ "version": "0.1.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "client/node_modules/zod": {+ "version": "4.4.3",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/colinhacks"+ }+ },+ "client/node_modules/zod-validation-error": {+ "version": "4.0.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18.0.0"+ },+ "peerDependencies": {+ "zod": "^3.25.0 || ^4.0.0"+ }+ },+ "client/node_modules/zwitch": {+ "version": "2.0.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/design-agent": {+ "resolved": "packages/design-agent",+ "link": true+ },+ "node_modules/open-muapi-assistant": {+ "resolved": "client",+ "link": true+ },+ "packages/design-agent": {+ "version": "1.0.0",+ "license": "MIT",+ "dependencies": {+ "axios": "^1.7.0",+ "framer-motion": "^12.0.0",+ "react-icons": "^5.5.0",+ "react-konva": "^19.0.0",+ "react-markdown": "^10.1.0",+ "react-syntax-highlighter": "^15.6.1",+ "remark-gfm": "^4.0.1"+ },+ "devDependencies": {+ "@babel/cli": "^7.28.3",+ "@babel/core": "^7.29.0",+ "@babel/core": "^7.29.0",+ "@babel/preset-env": "^7.28.5",+ "@babel/preset-react": "^7.28.5",+ "autoprefixer": "^10.4.14",+ "postcss": "^8.4.24",+ "tailwindcss": "^3.3.3"+ },+ "peerDependencies": {+ "konva": ">=9.0.0",+ "next": ">=14.0.0",+ "next-themes": ">=0.4.0",+ "react": ">=18.0.0",+ "react-dom": ">=18.0.0",+ "react-hot-toast": ">=2.4.0",+ "react-konva": ">=18.0.0"+ }+ },+ "packages/design-agent/node_modules/@alloc/quick-lru": {+ "version": "5.2.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "packages/design-agent/node_modules/@babel/cli": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/trace-mapping": "^0.3.28",+ "commander": "^6.2.0",+ "convert-source-map": "^2.0.0",+ "fs-readdir-recursive": "^1.1.0",+ "glob": "^7.2.0",+ "make-dir": "^2.1.0",+ "slash": "^2.0.0"+ },+ "bin": {+ "babel": "bin/babel.js",+ "babel-external-helpers": "bin/babel-external-helpers.js"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "optionalDependencies": {+ "@nicolo-ribaudo/chokidar-2": "2.1.8-no-fsevents.3",+ "chokidar": "^3.6.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/code-frame": {+ "version": "7.29.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-validator-identifier": "^7.28.5",+ "js-tokens": "^4.0.0",+ "picocolors": "^1.1.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/compat-data": {+ "version": "7.29.3",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/core": {+ "version": "7.29.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.0",+ "@babel/generator": "^7.29.0",+ "@babel/helper-compilation-targets": "^7.28.6",+ "@babel/helper-module-transforms": "^7.28.6",+ "@babel/helpers": "^7.28.6",+ "@babel/parser": "^7.29.0",+ "@babel/template": "^7.28.6",+ "@babel/traverse": "^7.29.0",+ "@babel/types": "^7.29.0",+ "@jridgewell/remapping": "^2.3.5",+ "convert-source-map": "^2.0.0",+ "debug": "^4.1.0",+ "gensync": "^1.0.0-beta.2",+ "json5": "^2.2.3",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/babel"+ }+ },+ "packages/design-agent/node_modules/@babel/generator": {+ "version": "7.29.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^7.29.0",+ "@babel/types": "^7.29.0",+ "@jridgewell/gen-mapping": "^0.3.12",+ "@jridgewell/trace-mapping": "^0.3.28",+ "jsesc": "^3.0.2"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-annotate-as-pure": {+ "version": "7.27.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.27.3"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-compilation-targets": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/compat-data": "^7.28.6",+ "@babel/helper-validator-option": "^7.27.1",+ "browserslist": "^4.24.0",+ "lru-cache": "^5.1.1",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-create-class-features-plugin": {+ "version": "7.29.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-annotate-as-pure": "^7.27.3",+ "@babel/helper-member-expression-to-functions": "^7.28.5",+ "@babel/helper-optimise-call-expression": "^7.27.1",+ "@babel/helper-replace-supers": "^7.28.6",+ "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1",+ "@babel/traverse": "^7.29.0",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-create-regexp-features-plugin": {+ "version": "7.28.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-annotate-as-pure": "^7.27.3",+ "regexpu-core": "^6.3.1",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-define-polyfill-provider": {+ "version": "0.6.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-compilation-targets": "^7.28.6",+ "@babel/helper-plugin-utils": "^7.28.6",+ "debug": "^4.4.3",+ "lodash.debounce": "^4.0.8",+ "resolve": "^1.22.11"+ },+ "peerDependencies": {+ "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-globals": {+ "version": "7.28.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-member-expression-to-functions": {+ "version": "7.28.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/traverse": "^7.28.5",+ "@babel/types": "^7.28.5"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-module-imports": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/traverse": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-module-transforms": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-imports": "^7.28.6",+ "@babel/helper-validator-identifier": "^7.28.5",+ "@babel/traverse": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-optimise-call-expression": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-plugin-utils": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-remap-async-to-generator": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-annotate-as-pure": "^7.27.1",+ "@babel/helper-wrap-function": "^7.27.1",+ "@babel/traverse": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-replace-supers": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-member-expression-to-functions": "^7.28.5",+ "@babel/helper-optimise-call-expression": "^7.27.1",+ "@babel/traverse": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-skip-transparent-expression-wrappers": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/traverse": "^7.27.1",+ "@babel/types": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-string-parser": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-validator-identifier": {+ "version": "7.28.5",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-validator-option": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helper-wrap-function": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.28.6",+ "@babel/traverse": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/helpers": {+ "version": "7.29.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/template": "^7.28.6",+ "@babel/types": "^7.29.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/parser": {+ "version": "7.29.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^7.29.0"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": {+ "version": "7.28.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1",+ "@babel/traverse": "^7.28.5"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-bugfix-safari-rest-destructuring-rhs-array": {+ "version": "7.29.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6",+ "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1",+ "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1",+ "@babel/plugin-transform-optional-chaining": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.13.0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6",+ "@babel/traverse": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-proposal-private-property-in-object": {+ "version": "7.21.0-placeholder-for-preset-env.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-syntax-import-assertions": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-syntax-import-attributes": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-syntax-jsx": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-syntax-unicode-sets-regex": {+ "version": "7.18.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-create-regexp-features-plugin": "^7.18.6",+ "@babel/helper-plugin-utils": "^7.18.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-arrow-functions": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-async-generator-functions": {+ "version": "7.29.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6",+ "@babel/helper-remap-async-to-generator": "^7.27.1",+ "@babel/traverse": "^7.29.0"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-async-to-generator": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-imports": "^7.28.6",+ "@babel/helper-plugin-utils": "^7.28.6",+ "@babel/helper-remap-async-to-generator": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-block-scoped-functions": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-block-scoping": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-class-properties": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-create-class-features-plugin": "^7.28.6",+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-class-static-block": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-create-class-features-plugin": "^7.28.6",+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.12.0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-classes": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-annotate-as-pure": "^7.27.3",+ "@babel/helper-compilation-targets": "^7.28.6",+ "@babel/helper-globals": "^7.28.0",+ "@babel/helper-plugin-utils": "^7.28.6",+ "@babel/helper-replace-supers": "^7.28.6",+ "@babel/traverse": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-computed-properties": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6",+ "@babel/template": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-destructuring": {+ "version": "7.28.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1",+ "@babel/traverse": "^7.28.5"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-dotall-regex": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-create-regexp-features-plugin": "^7.28.5",+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-duplicate-keys": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": {+ "version": "7.29.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-create-regexp-features-plugin": "^7.28.5",+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-dynamic-import": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-explicit-resource-management": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6",+ "@babel/plugin-transform-destructuring": "^7.28.5"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-exponentiation-operator": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-export-namespace-from": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-for-of": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1",+ "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-function-name": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-compilation-targets": "^7.27.1",+ "@babel/helper-plugin-utils": "^7.27.1",+ "@babel/traverse": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-json-strings": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-literals": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-logical-assignment-operators": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-member-expression-literals": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-modules-amd": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-transforms": "^7.27.1",+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-modules-commonjs": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-transforms": "^7.28.6",+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-modules-systemjs": {+ "version": "7.29.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-transforms": "^7.28.6",+ "@babel/helper-plugin-utils": "^7.28.6",+ "@babel/helper-validator-identifier": "^7.28.5",+ "@babel/traverse": "^7.29.0"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-modules-umd": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-module-transforms": "^7.27.1",+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-named-capturing-groups-regex": {+ "version": "7.29.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-create-regexp-features-plugin": "^7.28.5",+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-new-target": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-nullish-coalescing-operator": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-numeric-separator": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-object-rest-spread": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-compilation-targets": "^7.28.6",+ "@babel/helper-plugin-utils": "^7.28.6",+ "@babel/plugin-transform-destructuring": "^7.28.5",+ "@babel/plugin-transform-parameters": "^7.27.7",+ "@babel/traverse": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-object-super": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1",+ "@babel/helper-replace-supers": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-optional-catch-binding": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-optional-chaining": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6",+ "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-parameters": {+ "version": "7.27.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-private-methods": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-create-class-features-plugin": "^7.28.6",+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-private-property-in-object": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-annotate-as-pure": "^7.27.3",+ "@babel/helper-create-class-features-plugin": "^7.28.6",+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-property-literals": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-react-display-name": {+ "version": "7.28.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-react-jsx": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-annotate-as-pure": "^7.27.3",+ "@babel/helper-module-imports": "^7.28.6",+ "@babel/helper-plugin-utils": "^7.28.6",+ "@babel/plugin-syntax-jsx": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-react-jsx-development": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/plugin-transform-react-jsx": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-react-pure-annotations": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-annotate-as-pure": "^7.27.1",+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-regenerator": {+ "version": "7.29.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-regexp-modifiers": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-create-regexp-features-plugin": "^7.28.5",+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-reserved-words": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-shorthand-properties": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-spread": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.28.6",+ "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-sticky-regex": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-template-literals": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-typeof-symbol": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-unicode-escapes": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-unicode-property-regex": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-create-regexp-features-plugin": "^7.28.5",+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-unicode-regex": {+ "version": "7.27.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-create-regexp-features-plugin": "^7.27.1",+ "@babel/helper-plugin-utils": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/plugin-transform-unicode-sets-regex": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-create-regexp-features-plugin": "^7.28.5",+ "@babel/helper-plugin-utils": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/preset-env": {+ "version": "7.29.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/compat-data": "^7.29.3",+ "@babel/helper-compilation-targets": "^7.28.6",+ "@babel/helper-plugin-utils": "^7.28.6",+ "@babel/helper-validator-option": "^7.27.1",+ "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.28.5",+ "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.27.1",+ "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.27.1",+ "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array": "^7.29.3",+ "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.27.1",+ "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.28.6",+ "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2",+ "@babel/plugin-syntax-import-assertions": "^7.28.6",+ "@babel/plugin-syntax-import-attributes": "^7.28.6",+ "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6",+ "@babel/plugin-transform-arrow-functions": "^7.27.1",+ "@babel/plugin-transform-async-generator-functions": "^7.29.0",+ "@babel/plugin-transform-async-to-generator": "^7.28.6",+ "@babel/plugin-transform-block-scoped-functions": "^7.27.1",+ "@babel/plugin-transform-block-scoping": "^7.28.6",+ "@babel/plugin-transform-class-properties": "^7.28.6",+ "@babel/plugin-transform-class-static-block": "^7.28.6",+ "@babel/plugin-transform-classes": "^7.28.6",+ "@babel/plugin-transform-computed-properties": "^7.28.6",+ "@babel/plugin-transform-destructuring": "^7.28.5",+ "@babel/plugin-transform-dotall-regex": "^7.28.6",+ "@babel/plugin-transform-duplicate-keys": "^7.27.1",+ "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.29.0",+ "@babel/plugin-transform-dynamic-import": "^7.27.1",+ "@babel/plugin-transform-explicit-resource-management": "^7.28.6",+ "@babel/plugin-transform-exponentiation-operator": "^7.28.6",+ "@babel/plugin-transform-export-namespace-from": "^7.27.1",+ "@babel/plugin-transform-for-of": "^7.27.1",+ "@babel/plugin-transform-function-name": "^7.27.1",+ "@babel/plugin-transform-json-strings": "^7.28.6",+ "@babel/plugin-transform-literals": "^7.27.1",+ "@babel/plugin-transform-logical-assignment-operators": "^7.28.6",+ "@babel/plugin-transform-member-expression-literals": "^7.27.1",+ "@babel/plugin-transform-modules-amd": "^7.27.1",+ "@babel/plugin-transform-modules-commonjs": "^7.28.6",+ "@babel/plugin-transform-modules-systemjs": "^7.29.4",+ "@babel/plugin-transform-modules-umd": "^7.27.1",+ "@babel/plugin-transform-named-capturing-groups-regex": "^7.29.0",+ "@babel/plugin-transform-new-target": "^7.27.1",+ "@babel/plugin-transform-nullish-coalescing-operator": "^7.28.6",+ "@babel/plugin-transform-numeric-separator": "^7.28.6",+ "@babel/plugin-transform-object-rest-spread": "^7.28.6",+ "@babel/plugin-transform-object-super": "^7.27.1",+ "@babel/plugin-transform-optional-catch-binding": "^7.28.6",+ "@babel/plugin-transform-optional-chaining": "^7.28.6",+ "@babel/plugin-transform-parameters": "^7.27.7",+ "@babel/plugin-transform-private-methods": "^7.28.6",+ "@babel/plugin-transform-private-property-in-object": "^7.28.6",+ "@babel/plugin-transform-property-literals": "^7.27.1",+ "@babel/plugin-transform-regenerator": "^7.29.0",+ "@babel/plugin-transform-regexp-modifiers": "^7.28.6",+ "@babel/plugin-transform-reserved-words": "^7.27.1",+ "@babel/plugin-transform-shorthand-properties": "^7.27.1",+ "@babel/plugin-transform-spread": "^7.28.6",+ "@babel/plugin-transform-sticky-regex": "^7.27.1",+ "@babel/plugin-transform-template-literals": "^7.27.1",+ "@babel/plugin-transform-typeof-symbol": "^7.27.1",+ "@babel/plugin-transform-unicode-escapes": "^7.27.1",+ "@babel/plugin-transform-unicode-property-regex": "^7.28.6",+ "@babel/plugin-transform-unicode-regex": "^7.27.1",+ "@babel/plugin-transform-unicode-sets-regex": "^7.28.6",+ "@babel/preset-modules": "0.1.6-no-external-plugins",+ "babel-plugin-polyfill-corejs2": "^0.4.15",+ "babel-plugin-polyfill-corejs3": "^0.14.0",+ "babel-plugin-polyfill-regenerator": "^0.6.6",+ "core-js-compat": "^3.48.0",+ "semver": "^6.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/preset-modules": {+ "version": "0.1.6-no-external-plugins",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.0.0",+ "@babel/types": "^7.4.4",+ "esutils": "^2.0.2"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0"+ }+ },+ "packages/design-agent/node_modules/@babel/preset-react": {+ "version": "7.28.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-plugin-utils": "^7.27.1",+ "@babel/helper-validator-option": "^7.27.1",+ "@babel/plugin-transform-react-display-name": "^7.28.0",+ "@babel/plugin-transform-react-jsx": "^7.27.1",+ "@babel/plugin-transform-react-jsx-development": "^7.27.1",+ "@babel/plugin-transform-react-pure-annotations": "^7.27.1"+ },+ "engines": {+ "node": ">=6.9.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.0.0-0"+ }+ },+ "packages/design-agent/node_modules/@babel/runtime": {+ "version": "7.29.2",+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/template": {+ "version": "7.28.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.28.6",+ "@babel/parser": "^7.28.6",+ "@babel/types": "^7.28.6"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/traverse": {+ "version": "7.29.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/code-frame": "^7.29.0",+ "@babel/generator": "^7.29.0",+ "@babel/helper-globals": "^7.28.0",+ "@babel/parser": "^7.29.0",+ "@babel/template": "^7.28.6",+ "@babel/types": "^7.29.0",+ "debug": "^4.3.1"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@babel/types": {+ "version": "7.29.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^7.27.1",+ "@babel/helper-validator-identifier": "^7.28.5"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/@img/colour": {+ "version": "1.1.0",+ "license": "MIT",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=18"+ }+ },+ "packages/design-agent/node_modules/@img/sharp-win32-x64": {+ "version": "0.34.5",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0 AND LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "win32"+ ],+ "peer": true,+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "packages/design-agent/node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "packages/design-agent/node_modules/@jridgewell/remapping": {+ "version": "2.3.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "packages/design-agent/node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "packages/design-agent/node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "packages/design-agent/node_modules/@next/env": {+ "version": "16.2.6",+ "license": "MIT",+ "peer": true+ },+ "packages/design-agent/node_modules/@next/swc-darwin-arm64": {+ "version": "16.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.2.4.tgz",+ "integrity": "sha512-OXTFFox5EKN1Ym08vfrz+OXxmCcEjT4SFMbNRsWZE99dMqt2Kcusl5MqPXcW232RYkMLQTy0hqgAMEsfEd/l2A==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "darwin"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "packages/design-agent/node_modules/@next/swc-darwin-x64": {+ "version": "16.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.2.4.tgz",+ "integrity": "sha512-XhpVnUfmYWvD3YrXu55XdcAkQtOnvaI6wtQa8fuF5fGoKoxIUZ0kWPtcOfqJEWngFF/lOS9l3+O9CcownhiQxQ==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "darwin"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "packages/design-agent/node_modules/@next/swc-linux-arm64-gnu": {+ "version": "16.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.2.4.tgz",+ "integrity": "sha512-Mx/tjlNA3G8kg14QvuGAJ4xBwPk1tUHq56JxZ8CXnZwz1Etz714soCEzGQQzVMz4bEnGPowzkV6Xrp6wAkEWOQ==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "packages/design-agent/node_modules/@next/swc-linux-arm64-musl": {+ "version": "16.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.2.4.tgz",+ "integrity": "sha512-iVMMp14514u7Nup2umQS03nT/bN9HurK8ufylC3FZNykrwjtx7V1A7+4kvhbDSCeonTVqV3Txnv0Lu+m2oDXNg==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "packages/design-agent/node_modules/@next/swc-linux-x64-gnu": {+ "version": "16.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.2.4.tgz",+ "integrity": "sha512-EZOvm1aQWgnI/N/xcWOlnS3RQBk0VtVav5Zo7n4p0A7UKyTDx047k8opDbXgBpHl4CulRqRfbw3QrX2w5UOXMQ==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "packages/design-agent/node_modules/@next/swc-linux-x64-musl": {+ "version": "16.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.2.4.tgz",+ "integrity": "sha512-h9FxsngCm9cTBf71AR4fGznDEDx1hS7+kSEiIRjq5kO1oXWm07DxVGZjCvk0SGx7TSjlUqhI8oOyz7NfwAdPoA==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "packages/design-agent/node_modules/@next/swc-win32-arm64-msvc": {+ "version": "16.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.2.4.tgz",+ "integrity": "sha512-3NdJV5OXMSOeJYijX+bjaLge3mJBlh4ybydbT4GFoB/2hAojWHtMhl3CYlYoMrjPuodp0nzFVi4Tj2+WaMg+Ow==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "win32"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "packages/design-agent/node_modules/@next/swc-win32-x64-msvc": {+ "version": "16.2.6",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "peer": true,+ "engines": {+ "node": ">= 10"+ }+ },+ "packages/design-agent/node_modules/@nicolo-ribaudo/chokidar-2": {+ "version": "2.1.8-no-fsevents.3",+ "dev": true,+ "license": "MIT",+ "optional": true+ },+ "packages/design-agent/node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "packages/design-agent/node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "packages/design-agent/node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "packages/design-agent/node_modules/@swc/helpers": {+ "version": "0.5.15",+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "tslib": "^2.8.0"+ }+ },+ "packages/design-agent/node_modules/@types/debug": {+ "version": "4.1.13",+ "license": "MIT",+ "dependencies": {+ "@types/ms": "*"+ }+ },+ "packages/design-agent/node_modules/@types/estree": {+ "version": "1.0.9",+ "license": "MIT"+ },+ "packages/design-agent/node_modules/@types/estree-jsx": {+ "version": "1.0.5",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "*"+ }+ },+ "packages/design-agent/node_modules/@types/hast": {+ "version": "3.0.4",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "packages/design-agent/node_modules/@types/mdast": {+ "version": "4.0.4",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "packages/design-agent/node_modules/@types/ms": {+ "version": "2.1.0",+ "license": "MIT"+ },+ "packages/design-agent/node_modules/@types/react": {+ "version": "19.2.14",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "csstype": "^3.2.2"+ }+ },+ "packages/design-agent/node_modules/@types/react-reconciler": {+ "version": "0.33.0",+ "license": "MIT",+ "peer": true,+ "peerDependencies": {+ "@types/react": "*"+ }+ },+ "packages/design-agent/node_modules/@types/unist": {+ "version": "3.0.3",+ "license": "MIT"+ },+ "packages/design-agent/node_modules/@ungap/structured-clone": {+ "version": "1.3.1",+ "license": "ISC"+ },+ "packages/design-agent/node_modules/any-promise": {+ "version": "1.3.0",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/anymatch": {+ "version": "3.1.3",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "normalize-path": "^3.0.0",+ "picomatch": "^2.0.4"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "packages/design-agent/node_modules/arg": {+ "version": "5.0.2",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/asynckit": {+ "version": "0.4.0",+ "license": "MIT"+ },+ "packages/design-agent/node_modules/autoprefixer": {+ "version": "10.5.0",+ "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.28.2",+ "caniuse-lite": "^1.0.30001787",+ "fraction.js": "^5.3.4",+ "picocolors": "^1.1.1",+ "postcss-value-parser": "^4.2.0"+ },+ "bin": {+ "autoprefixer": "bin/autoprefixer"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ },+ "peerDependencies": {+ "postcss": "^8.1.0"+ }+ },+ "packages/design-agent/node_modules/axios": {+ "version": "1.16.0",+ "license": "MIT",+ "dependencies": {+ "follow-redirects": "^1.16.0",+ "form-data": "^4.0.5",+ "proxy-from-env": "^2.1.0"+ }+ },+ "packages/design-agent/node_modules/babel-plugin-polyfill-corejs2": {+ "version": "0.4.17",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/compat-data": "^7.28.6",+ "@babel/helper-define-polyfill-provider": "^0.6.8",+ "semver": "^6.3.1"+ },+ "peerDependencies": {+ "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"+ }+ },+ "packages/design-agent/node_modules/babel-plugin-polyfill-corejs3": {+ "version": "0.14.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-define-polyfill-provider": "^0.6.8",+ "core-js-compat": "^3.48.0"+ },+ "peerDependencies": {+ "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"+ }+ },+ "packages/design-agent/node_modules/babel-plugin-polyfill-regenerator": {+ "version": "0.6.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-define-polyfill-provider": "^0.6.8"+ },+ "peerDependencies": {+ "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"+ }+ },+ "packages/design-agent/node_modules/bail": {+ "version": "2.0.2",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/balanced-match": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/baseline-browser-mapping": {+ "version": "2.10.29",+ "license": "Apache-2.0",+ "bin": {+ "baseline-browser-mapping": "dist/cli.cjs"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "packages/design-agent/node_modules/binary-extensions": {+ "version": "2.3.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "packages/design-agent/node_modules/brace-expansion": {+ "version": "1.1.14",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "packages/design-agent/node_modules/braces": {+ "version": "3.0.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fill-range": "^7.1.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "packages/design-agent/node_modules/browserslist": {+ "version": "4.28.2",+ "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": {+ "baseline-browser-mapping": "^2.10.12",+ "caniuse-lite": "^1.0.30001782",+ "electron-to-chromium": "^1.5.328",+ "node-releases": "^2.0.36",+ "update-browserslist-db": "^1.2.3"+ },+ "bin": {+ "browserslist": "cli.js"+ },+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"+ }+ },+ "packages/design-agent/node_modules/call-bind-apply-helpers": {+ "version": "1.0.2",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "packages/design-agent/node_modules/camelcase-css": {+ "version": "2.0.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "packages/design-agent/node_modules/caniuse-lite": {+ "version": "1.0.30001792",+ "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"+ },+ "packages/design-agent/node_modules/ccount": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/character-entities": {+ "version": "2.0.2",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/character-entities-html4": {+ "version": "2.1.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/character-entities-legacy": {+ "version": "3.0.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/character-reference-invalid": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/chokidar": {+ "version": "3.6.0",+ "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"+ }+ },+ "packages/design-agent/node_modules/client-only": {+ "version": "0.0.1",+ "license": "MIT",+ "peer": true+ },+ "packages/design-agent/node_modules/combined-stream": {+ "version": "1.0.8",+ "license": "MIT",+ "dependencies": {+ "delayed-stream": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "packages/design-agent/node_modules/comma-separated-tokens": {+ "version": "2.0.3",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/commander": {+ "version": "6.2.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "packages/design-agent/node_modules/concat-map": {+ "version": "0.0.1",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/convert-source-map": {+ "version": "2.0.0",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/core-js-compat": {+ "version": "3.49.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "browserslist": "^4.28.1"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/core-js"+ }+ },+ "packages/design-agent/node_modules/cssesc": {+ "version": "3.0.0",+ "dev": true,+ "license": "MIT",+ "bin": {+ "cssesc": "bin/cssesc"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "packages/design-agent/node_modules/csstype": {+ "version": "3.2.3",+ "license": "MIT",+ "peer": true+ },+ "packages/design-agent/node_modules/debug": {+ "version": "4.4.3",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "packages/design-agent/node_modules/decode-named-character-reference": {+ "version": "1.3.0",+ "license": "MIT",+ "dependencies": {+ "character-entities": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/delayed-stream": {+ "version": "1.0.0",+ "license": "MIT",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "packages/design-agent/node_modules/dequal": {+ "version": "2.0.3",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "packages/design-agent/node_modules/detect-libc": {+ "version": "2.1.2",+ "license": "Apache-2.0",+ "optional": true,+ "peer": true,+ "engines": {+ "node": ">=8"+ }+ },+ "packages/design-agent/node_modules/devlop": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "dequal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/didyoumean": {+ "version": "1.2.2",+ "dev": true,+ "license": "Apache-2.0"+ },+ "packages/design-agent/node_modules/dlv": {+ "version": "1.1.3",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/dunder-proto": {+ "version": "1.0.1",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "packages/design-agent/node_modules/electron-to-chromium": {+ "version": "1.5.353",+ "dev": true,+ "license": "ISC"+ },+ "packages/design-agent/node_modules/es-define-property": {+ "version": "1.0.1",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "packages/design-agent/node_modules/es-errors": {+ "version": "1.3.0",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "packages/design-agent/node_modules/es-object-atoms": {+ "version": "1.1.1",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "packages/design-agent/node_modules/es-set-tostringtag": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.6",+ "has-tostringtag": "^1.0.2",+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "packages/design-agent/node_modules/escalade": {+ "version": "3.2.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "packages/design-agent/node_modules/escape-string-regexp": {+ "version": "5.0.0",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "packages/design-agent/node_modules/estree-util-is-identifier-name": {+ "version": "3.0.0",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/esutils": {+ "version": "2.0.3",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "packages/design-agent/node_modules/extend": {+ "version": "3.0.2",+ "license": "MIT"+ },+ "packages/design-agent/node_modules/fast-glob": {+ "version": "3.3.3",+ "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.8"+ },+ "engines": {+ "node": ">=8.6.0"+ }+ },+ "packages/design-agent/node_modules/fastq": {+ "version": "1.20.1",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "reusify": "^1.0.4"+ }+ },+ "packages/design-agent/node_modules/fault": {+ "version": "1.0.4",+ "license": "MIT",+ "dependencies": {+ "format": "^0.2.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/fill-range": {+ "version": "7.1.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "to-regex-range": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "packages/design-agent/node_modules/follow-redirects": {+ "version": "1.16.0",+ "funding": [+ {+ "type": "individual",+ "url": "https://github.com/sponsors/RubenVerborgh"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=4.0"+ },+ "peerDependenciesMeta": {+ "debug": {+ "optional": true+ }+ }+ },+ "packages/design-agent/node_modules/form-data": {+ "version": "4.0.5",+ "license": "MIT",+ "dependencies": {+ "asynckit": "^0.4.0",+ "combined-stream": "^1.0.8",+ "es-set-tostringtag": "^2.1.0",+ "hasown": "^2.0.2",+ "mime-types": "^2.1.12"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "packages/design-agent/node_modules/format": {+ "version": "0.2.2",+ "engines": {+ "node": ">=0.4.x"+ }+ },+ "packages/design-agent/node_modules/fraction.js": {+ "version": "5.3.4",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "*"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/rawify"+ }+ },+ "packages/design-agent/node_modules/framer-motion": {+ "version": "12.38.0",+ "license": "MIT",+ "dependencies": {+ "motion-dom": "^12.38.0",+ "motion-utils": "^12.36.0",+ "tslib": "^2.4.0"+ },+ "peerDependencies": {+ "@emotion/is-prop-valid": "*",+ "react": "^18.0.0 || ^19.0.0",+ "react-dom": "^18.0.0 || ^19.0.0"+ },+ "peerDependenciesMeta": {+ "@emotion/is-prop-valid": {+ "optional": true+ },+ "react": {+ "optional": true+ },+ "react-dom": {+ "optional": true+ }+ }+ },+ "packages/design-agent/node_modules/fs-readdir-recursive": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/fs.realpath": {+ "version": "1.0.0",+ "dev": true,+ "license": "ISC"+ },+ "packages/design-agent/node_modules/function-bind": {+ "version": "1.1.2",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "packages/design-agent/node_modules/gensync": {+ "version": "1.0.0-beta.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "packages/design-agent/node_modules/get-intrinsic": {+ "version": "1.3.0",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "packages/design-agent/node_modules/get-proto": {+ "version": "1.0.1",+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "packages/design-agent/node_modules/glob": {+ "version": "7.2.3",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.1.1",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ },+ "engines": {+ "node": "*"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "packages/design-agent/node_modules/glob-parent": {+ "version": "5.1.2",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "packages/design-agent/node_modules/goober": {+ "version": "2.1.18",+ "license": "MIT",+ "peer": true,+ "peerDependencies": {+ "csstype": "^3.0.10"+ }+ },+ "packages/design-agent/node_modules/gopd": {+ "version": "1.2.0",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "packages/design-agent/node_modules/has-symbols": {+ "version": "1.1.0",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "packages/design-agent/node_modules/has-tostringtag": {+ "version": "1.0.2",+ "license": "MIT",+ "dependencies": {+ "has-symbols": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "packages/design-agent/node_modules/hasown": {+ "version": "2.0.3",+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "packages/design-agent/node_modules/hast-util-parse-selector": {+ "version": "2.2.5",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/hast-util-to-jsx-runtime": {+ "version": "2.3.6",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/unist": "^3.0.0",+ "comma-separated-tokens": "^2.0.0",+ "devlop": "^1.0.0",+ "estree-util-is-identifier-name": "^3.0.0",+ "hast-util-whitespace": "^3.0.0",+ "mdast-util-mdx-expression": "^2.0.0",+ "mdast-util-mdx-jsx": "^3.0.0",+ "mdast-util-mdxjs-esm": "^2.0.0",+ "property-information": "^7.0.0",+ "space-separated-tokens": "^2.0.0",+ "style-to-js": "^1.0.0",+ "unist-util-position": "^5.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/hast-util-whitespace": {+ "version": "3.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/hastscript": {+ "version": "6.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^2.0.0",+ "comma-separated-tokens": "^1.0.0",+ "hast-util-parse-selector": "^2.0.0",+ "property-information": "^5.0.0",+ "space-separated-tokens": "^1.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/hastscript/node_modules/@types/hast": {+ "version": "2.3.10",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^2"+ }+ },+ "packages/design-agent/node_modules/hastscript/node_modules/@types/unist": {+ "version": "2.0.11",+ "license": "MIT"+ },+ "packages/design-agent/node_modules/hastscript/node_modules/comma-separated-tokens": {+ "version": "1.0.8",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/hastscript/node_modules/property-information": {+ "version": "5.6.0",+ "license": "MIT",+ "dependencies": {+ "xtend": "^4.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/hastscript/node_modules/space-separated-tokens": {+ "version": "1.1.5",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/highlight.js": {+ "version": "10.7.3",+ "license": "BSD-3-Clause",+ "engines": {+ "node": "*"+ }+ },+ "packages/design-agent/node_modules/highlightjs-vue": {+ "version": "1.0.0",+ "license": "CC0-1.0"+ },+ "packages/design-agent/node_modules/html-url-attributes": {+ "version": "3.0.1",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/inflight": {+ "version": "1.0.6",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "once": "^1.3.0",+ "wrappy": "1"+ }+ },+ "packages/design-agent/node_modules/inherits": {+ "version": "2.0.4",+ "dev": true,+ "license": "ISC"+ },+ "packages/design-agent/node_modules/inline-style-parser": {+ "version": "0.2.7",+ "license": "MIT"+ },+ "packages/design-agent/node_modules/is-alphabetical": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/is-alphanumerical": {+ "version": "2.0.1",+ "license": "MIT",+ "dependencies": {+ "is-alphabetical": "^2.0.0",+ "is-decimal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/is-binary-path": {+ "version": "2.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "binary-extensions": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "packages/design-agent/node_modules/is-core-module": {+ "version": "2.16.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "packages/design-agent/node_modules/is-decimal": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/is-extglob": {+ "version": "2.1.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "packages/design-agent/node_modules/is-glob": {+ "version": "4.0.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "packages/design-agent/node_modules/is-hexadecimal": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/is-number": {+ "version": "7.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "packages/design-agent/node_modules/is-plain-obj": {+ "version": "4.1.0",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "packages/design-agent/node_modules/its-fine": {+ "version": "2.0.0",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@types/react-reconciler": "^0.28.9"+ },+ "peerDependencies": {+ "react": "^19.0.0"+ }+ },+ "packages/design-agent/node_modules/its-fine/node_modules/@types/react-reconciler": {+ "version": "0.28.9",+ "license": "MIT",+ "peer": true,+ "peerDependencies": {+ "@types/react": "*"+ }+ },+ "packages/design-agent/node_modules/jiti": {+ "version": "1.21.7",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jiti": "bin/jiti.js"+ }+ },+ "packages/design-agent/node_modules/js-tokens": {+ "version": "4.0.0",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/jsesc": {+ "version": "3.1.0",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jsesc": "bin/jsesc"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "packages/design-agent/node_modules/json5": {+ "version": "2.2.3",+ "dev": true,+ "license": "MIT",+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "packages/design-agent/node_modules/konva": {+ "version": "10.3.0",+ "funding": [+ {+ "type": "patreon",+ "url": "https://www.patreon.com/lavrton"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/konva"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/lavrton"+ }+ ],+ "license": "MIT",+ "peer": true+ },+ "packages/design-agent/node_modules/lilconfig": {+ "version": "3.1.3",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/antonk52"+ }+ },+ "packages/design-agent/node_modules/lines-and-columns": {+ "version": "1.2.4",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/lodash.debounce": {+ "version": "4.0.8",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/longest-streak": {+ "version": "3.1.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/lowlight": {+ "version": "1.20.0",+ "license": "MIT",+ "dependencies": {+ "fault": "^1.0.0",+ "highlight.js": "~10.7.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/lru-cache": {+ "version": "5.1.1",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^3.0.2"+ }+ },+ "packages/design-agent/node_modules/make-dir": {+ "version": "2.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "pify": "^4.0.1",+ "semver": "^5.6.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "packages/design-agent/node_modules/make-dir/node_modules/semver": {+ "version": "5.7.2",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver"+ }+ },+ "packages/design-agent/node_modules/markdown-table": {+ "version": "3.0.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/math-intrinsics": {+ "version": "1.1.0",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "packages/design-agent/node_modules/mdast-util-find-and-replace": {+ "version": "3.0.2",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "escape-string-regexp": "^5.0.0",+ "unist-util-is": "^6.0.0",+ "unist-util-visit-parents": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-from-markdown": {+ "version": "2.0.3",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "mdast-util-to-string": "^4.0.0",+ "micromark": "^4.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-decode-string": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0",+ "unist-util-stringify-position": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-gfm": {+ "version": "3.1.0",+ "license": "MIT",+ "dependencies": {+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-gfm-autolink-literal": "^2.0.0",+ "mdast-util-gfm-footnote": "^2.0.0",+ "mdast-util-gfm-strikethrough": "^2.0.0",+ "mdast-util-gfm-table": "^2.0.0",+ "mdast-util-gfm-task-list-item": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-gfm-autolink-literal": {+ "version": "2.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "ccount": "^2.0.0",+ "devlop": "^1.0.0",+ "mdast-util-find-and-replace": "^3.0.0",+ "micromark-util-character": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-gfm-footnote": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.1.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-gfm-strikethrough": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-gfm-table": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "markdown-table": "^3.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-gfm-task-list-item": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-mdx-expression": {+ "version": "2.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-mdx-jsx": {+ "version": "3.2.0",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "ccount": "^2.0.0",+ "devlop": "^1.1.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "parse-entities": "^4.0.0",+ "stringify-entities": "^4.0.0",+ "unist-util-stringify-position": "^4.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-mdxjs-esm": {+ "version": "2.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-phrasing": {+ "version": "4.1.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "unist-util-is": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-to-hast": {+ "version": "13.2.1",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "@ungap/structured-clone": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "trim-lines": "^3.0.0",+ "unist-util-position": "^5.0.0",+ "unist-util-visit": "^5.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-to-markdown": {+ "version": "2.1.2",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "longest-streak": "^3.0.0",+ "mdast-util-phrasing": "^4.0.0",+ "mdast-util-to-string": "^4.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-decode-string": "^2.0.0",+ "unist-util-visit": "^5.0.0",+ "zwitch": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/mdast-util-to-string": {+ "version": "4.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/merge2": {+ "version": "1.4.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "packages/design-agent/node_modules/micromark": {+ "version": "4.0.2",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "@types/debug": "^4.0.0",+ "debug": "^4.0.0",+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-core-commonmark": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-combine-extensions": "^2.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-encode": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-subtokenize": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-core-commonmark": {+ "version": "2.0.3",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-factory-destination": "^2.0.0",+ "micromark-factory-label": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-factory-title": "^2.0.0",+ "micromark-factory-whitespace": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-html-tag-name": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-subtokenize": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-extension-gfm": {+ "version": "3.0.0",+ "license": "MIT",+ "dependencies": {+ "micromark-extension-gfm-autolink-literal": "^2.0.0",+ "micromark-extension-gfm-footnote": "^2.0.0",+ "micromark-extension-gfm-strikethrough": "^2.0.0",+ "micromark-extension-gfm-table": "^2.0.0",+ "micromark-extension-gfm-tagfilter": "^2.0.0",+ "micromark-extension-gfm-task-list-item": "^2.0.0",+ "micromark-util-combine-extensions": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/micromark-extension-gfm-autolink-literal": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/micromark-extension-gfm-footnote": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-core-commonmark": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/micromark-extension-gfm-strikethrough": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/micromark-extension-gfm-table": {+ "version": "2.1.1",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/micromark-extension-gfm-tagfilter": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/micromark-extension-gfm-task-list-item": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/micromark-factory-destination": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-factory-label": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-factory-space": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-factory-title": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-factory-whitespace": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-util-character": {+ "version": "2.1.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-util-chunked": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-util-classify-character": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-util-combine-extensions": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-util-decode-numeric-character-reference": {+ "version": "2.0.2",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-util-decode-string": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "decode-named-character-reference": "^1.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-util-encode": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "packages/design-agent/node_modules/micromark-util-html-tag-name": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "packages/design-agent/node_modules/micromark-util-normalize-identifier": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-util-resolve-all": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-types": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-util-sanitize-uri": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-encode": "^2.0.0",+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-util-subtokenize": {+ "version": "2.1.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "packages/design-agent/node_modules/micromark-util-symbol": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "packages/design-agent/node_modules/micromark-util-types": {+ "version": "2.0.2",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "packages/design-agent/node_modules/micromatch": {+ "version": "4.0.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "braces": "^3.0.3",+ "picomatch": "^2.3.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "packages/design-agent/node_modules/mime-db": {+ "version": "1.52.0",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "packages/design-agent/node_modules/mime-types": {+ "version": "2.1.35",+ "license": "MIT",+ "dependencies": {+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "packages/design-agent/node_modules/minimatch": {+ "version": "3.1.5",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "packages/design-agent/node_modules/motion-dom": {+ "version": "12.38.0",+ "license": "MIT",+ "dependencies": {+ "motion-utils": "^12.36.0"+ }+ },+ "packages/design-agent/node_modules/motion-utils": {+ "version": "12.36.0",+ "license": "MIT"+ },+ "packages/design-agent/node_modules/ms": {+ "version": "2.1.3",+ "license": "MIT"+ },+ "packages/design-agent/node_modules/mz": {+ "version": "2.7.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0",+ "object-assign": "^4.0.1",+ "thenify-all": "^1.0.0"+ }+ },+ "packages/design-agent/node_modules/nanoid": {+ "version": "3.3.12",+ "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"+ }+ },+ "packages/design-agent/node_modules/next": {+ "version": "16.2.6",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@next/env": "16.2.6",+ "@swc/helpers": "0.5.15",+ "baseline-browser-mapping": "^2.9.19",+ "caniuse-lite": "^1.0.30001579",+ "postcss": "8.4.31",+ "styled-jsx": "5.1.6"+ },+ "bin": {+ "next": "dist/bin/next"+ },+ "engines": {+ "node": ">=20.9.0"+ },+ "optionalDependencies": {+ "@next/swc-darwin-arm64": "16.2.6",+ "@next/swc-darwin-x64": "16.2.6",+ "@next/swc-linux-arm64-gnu": "16.2.6",+ "@next/swc-linux-arm64-musl": "16.2.6",+ "@next/swc-linux-x64-gnu": "16.2.6",+ "@next/swc-linux-x64-musl": "16.2.6",+ "@next/swc-win32-arm64-msvc": "16.2.6",+ "@next/swc-win32-x64-msvc": "16.2.6",+ "sharp": "^0.34.5"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.1.0",+ "@playwright/test": "^1.51.1",+ "babel-plugin-react-compiler": "*",+ "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",+ "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0",+ "sass": "^1.3.0"+ },+ "peerDependenciesMeta": {+ "@opentelemetry/api": {+ "optional": true+ },+ "@playwright/test": {+ "optional": true+ },+ "babel-plugin-react-compiler": {+ "optional": true+ },+ "sass": {+ "optional": true+ }+ }+ },+ "packages/design-agent/node_modules/next-themes": {+ "version": "0.4.6",+ "license": "MIT",+ "peer": true,+ "peerDependencies": {+ "react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc"+ }+ },+ "packages/design-agent/node_modules/next/node_modules/postcss": {+ "version": "8.4.31",+ "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",+ "peer": true,+ "dependencies": {+ "nanoid": "^3.3.6",+ "picocolors": "^1.0.0",+ "source-map-js": "^1.0.2"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "packages/design-agent/node_modules/node-releases": {+ "version": "2.0.38",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/normalize-path": {+ "version": "3.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "packages/design-agent/node_modules/object-assign": {+ "version": "4.1.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "packages/design-agent/node_modules/object-hash": {+ "version": "3.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "packages/design-agent/node_modules/once": {+ "version": "1.4.0",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "packages/design-agent/node_modules/parse-entities": {+ "version": "4.0.2",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^2.0.0",+ "character-entities-legacy": "^3.0.0",+ "character-reference-invalid": "^2.0.0",+ "decode-named-character-reference": "^1.0.0",+ "is-alphanumerical": "^2.0.0",+ "is-decimal": "^2.0.0",+ "is-hexadecimal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/parse-entities/node_modules/@types/unist": {+ "version": "2.0.11",+ "license": "MIT"+ },+ "packages/design-agent/node_modules/path-is-absolute": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "packages/design-agent/node_modules/path-parse": {+ "version": "1.0.7",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/picocolors": {+ "version": "1.1.1",+ "license": "ISC"+ },+ "packages/design-agent/node_modules/picomatch": {+ "version": "2.3.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "packages/design-agent/node_modules/pify": {+ "version": "4.0.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "packages/design-agent/node_modules/pirates": {+ "version": "4.0.7",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "packages/design-agent/node_modules/postcss": {+ "version": "8.5.14",+ "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"+ }+ },+ "packages/design-agent/node_modules/postcss-import": {+ "version": "15.1.0",+ "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"+ }+ },+ "packages/design-agent/node_modules/postcss-js": {+ "version": "4.1.0",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "camelcase-css": "^2.0.1"+ },+ "engines": {+ "node": "^12 || ^14 || >= 16"+ },+ "peerDependencies": {+ "postcss": "^8.4.21"+ }+ },+ "packages/design-agent/node_modules/postcss-load-config": {+ "version": "6.0.1",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "lilconfig": "^3.1.1"+ },+ "engines": {+ "node": ">= 18"+ },+ "peerDependencies": {+ "jiti": ">=1.21.0",+ "postcss": ">=8.0.9",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "jiti": {+ "optional": true+ },+ "postcss": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "packages/design-agent/node_modules/postcss-nested": {+ "version": "6.2.0",+ "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"+ }+ },+ "packages/design-agent/node_modules/postcss-selector-parser": {+ "version": "6.1.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "packages/design-agent/node_modules/postcss-value-parser": {+ "version": "4.2.0",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/prismjs": {+ "version": "1.30.0",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "packages/design-agent/node_modules/property-information": {+ "version": "7.1.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/proxy-from-env": {+ "version": "2.1.0",+ "license": "MIT",+ "engines": {+ "node": ">=10"+ }+ },+ "packages/design-agent/node_modules/queue-microtask": {+ "version": "1.2.3",+ "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"+ },+ "packages/design-agent/node_modules/react": {+ "version": "19.2.6",+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "packages/design-agent/node_modules/react-dom": {+ "version": "19.2.6",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "scheduler": "^0.27.0"+ },+ "peerDependencies": {+ "react": "^19.2.6"+ }+ },+ "packages/design-agent/node_modules/react-hot-toast": {+ "version": "2.6.0",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "csstype": "^3.1.3",+ "goober": "^2.1.16"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "react": ">=16",+ "react-dom": ">=16"+ }+ },+ "packages/design-agent/node_modules/react-icons": {+ "version": "5.6.0",+ "license": "MIT",+ "peerDependencies": {+ "react": "*"+ }+ },+ "packages/design-agent/node_modules/react-konva": {+ "version": "19.2.4",+ "funding": [+ {+ "type": "patreon",+ "url": "https://www.patreon.com/lavrton"+ },+ {+ "type": "opencollective",+ "url": "https://opencollective.com/konva"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/lavrton"+ }+ ],+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@types/react-reconciler": "^0.33.0",+ "its-fine": "^2.0.0",+ "react-reconciler": "0.33.0",+ "scheduler": "0.27.0"+ },+ "peerDependencies": {+ "konva": "^8.0.1 || ^7.2.5 || ^9.0.0 || ^10.0.0",+ "react": "^19.2.0",+ "react-dom": "^19.2.0"+ }+ },+ "packages/design-agent/node_modules/react-markdown": {+ "version": "10.1.0",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "hast-util-to-jsx-runtime": "^2.0.0",+ "html-url-attributes": "^3.0.0",+ "mdast-util-to-hast": "^13.0.0",+ "remark-parse": "^11.0.0",+ "remark-rehype": "^11.0.0",+ "unified": "^11.0.0",+ "unist-util-visit": "^5.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ },+ "peerDependencies": {+ "@types/react": ">=18",+ "react": ">=18"+ }+ },+ "packages/design-agent/node_modules/react-reconciler": {+ "version": "0.33.0",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "scheduler": "^0.27.0"+ },+ "engines": {+ "node": ">=0.10.0"+ },+ "peerDependencies": {+ "react": "^19.2.0"+ }+ },+ "packages/design-agent/node_modules/react-syntax-highlighter": {+ "version": "15.6.6",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.3.1",+ "highlight.js": "^10.4.1",+ "highlightjs-vue": "^1.0.0",+ "lowlight": "^1.17.0",+ "prismjs": "^1.30.0",+ "refractor": "^3.6.0"+ },+ "peerDependencies": {+ "react": ">= 0.14.0"+ }+ },+ "packages/design-agent/node_modules/read-cache": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "pify": "^2.3.0"+ }+ },+ "packages/design-agent/node_modules/read-cache/node_modules/pify": {+ "version": "2.3.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "packages/design-agent/node_modules/readdirp": {+ "version": "3.6.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "picomatch": "^2.2.1"+ },+ "engines": {+ "node": ">=8.10.0"+ }+ },+ "packages/design-agent/node_modules/refractor": {+ "version": "3.6.0",+ "license": "MIT",+ "dependencies": {+ "hastscript": "^6.0.0",+ "parse-entities": "^2.0.0",+ "prismjs": "~1.27.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/refractor/node_modules/character-entities": {+ "version": "1.2.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/refractor/node_modules/character-entities-legacy": {+ "version": "1.1.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/refractor/node_modules/character-reference-invalid": {+ "version": "1.1.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/refractor/node_modules/is-alphabetical": {+ "version": "1.0.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/refractor/node_modules/is-alphanumerical": {+ "version": "1.0.4",+ "license": "MIT",+ "dependencies": {+ "is-alphabetical": "^1.0.0",+ "is-decimal": "^1.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/refractor/node_modules/is-decimal": {+ "version": "1.0.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/refractor/node_modules/is-hexadecimal": {+ "version": "1.0.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/refractor/node_modules/parse-entities": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "character-entities": "^1.0.0",+ "character-entities-legacy": "^1.0.0",+ "character-reference-invalid": "^1.0.0",+ "is-alphanumerical": "^1.0.0",+ "is-decimal": "^1.0.0",+ "is-hexadecimal": "^1.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/refractor/node_modules/prismjs": {+ "version": "1.27.0",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "packages/design-agent/node_modules/regenerate": {+ "version": "1.4.2",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/regenerate-unicode-properties": {+ "version": "10.2.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "regenerate": "^1.4.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "packages/design-agent/node_modules/regexpu-core": {+ "version": "6.4.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "regenerate": "^1.4.2",+ "regenerate-unicode-properties": "^10.2.2",+ "regjsgen": "^0.8.0",+ "regjsparser": "^0.13.0",+ "unicode-match-property-ecmascript": "^2.0.0",+ "unicode-match-property-value-ecmascript": "^2.2.1"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "packages/design-agent/node_modules/regjsgen": {+ "version": "0.8.0",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/regjsparser": {+ "version": "0.13.1",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "jsesc": "~3.1.0"+ },+ "bin": {+ "regjsparser": "bin/parser"+ }+ },+ "packages/design-agent/node_modules/remark-gfm": {+ "version": "4.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-gfm": "^3.0.0",+ "micromark-extension-gfm": "^3.0.0",+ "remark-parse": "^11.0.0",+ "remark-stringify": "^11.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/remark-parse": {+ "version": "11.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "micromark-util-types": "^2.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/remark-rehype": {+ "version": "11.1.2",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "mdast-util-to-hast": "^13.0.0",+ "unified": "^11.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/remark-stringify": {+ "version": "11.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/resolve": {+ "version": "1.22.12",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "is-core-module": "^2.16.1",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "packages/design-agent/node_modules/reusify": {+ "version": "1.1.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "iojs": ">=1.0.0",+ "node": ">=0.10.0"+ }+ },+ "packages/design-agent/node_modules/run-parallel": {+ "version": "1.2.0",+ "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"+ }+ },+ "packages/design-agent/node_modules/scheduler": {+ "version": "0.27.0",+ "license": "MIT",+ "peer": true+ },+ "packages/design-agent/node_modules/semver": {+ "version": "6.3.1",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "packages/design-agent/node_modules/sharp": {+ "version": "0.34.5",+ "hasInstallScript": true,+ "license": "Apache-2.0",+ "optional": true,+ "peer": true,+ "dependencies": {+ "@img/colour": "^1.0.0",+ "detect-libc": "^2.1.2",+ "semver": "^7.7.3"+ },+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-darwin-arm64": "0.34.5",+ "@img/sharp-darwin-x64": "0.34.5",+ "@img/sharp-libvips-darwin-arm64": "1.2.4",+ "@img/sharp-libvips-darwin-x64": "1.2.4",+ "@img/sharp-libvips-linux-arm": "1.2.4",+ "@img/sharp-libvips-linux-arm64": "1.2.4",+ "@img/sharp-libvips-linux-ppc64": "1.2.4",+ "@img/sharp-libvips-linux-riscv64": "1.2.4",+ "@img/sharp-libvips-linux-s390x": "1.2.4",+ "@img/sharp-libvips-linux-x64": "1.2.4",+ "@img/sharp-libvips-linuxmusl-arm64": "1.2.4",+ "@img/sharp-libvips-linuxmusl-x64": "1.2.4",+ "@img/sharp-linux-arm": "0.34.5",+ "@img/sharp-linux-arm64": "0.34.5",+ "@img/sharp-linux-ppc64": "0.34.5",+ "@img/sharp-linux-riscv64": "0.34.5",+ "@img/sharp-linux-s390x": "0.34.5",+ "@img/sharp-linux-x64": "0.34.5",+ "@img/sharp-linuxmusl-arm64": "0.34.5",+ "@img/sharp-linuxmusl-x64": "0.34.5",+ "@img/sharp-wasm32": "0.34.5",+ "@img/sharp-win32-arm64": "0.34.5",+ "@img/sharp-win32-ia32": "0.34.5",+ "@img/sharp-win32-x64": "0.34.5"+ }+ },+ "packages/design-agent/node_modules/sharp/node_modules/semver": {+ "version": "7.8.0",+ "license": "ISC",+ "optional": true,+ "peer": true,+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "packages/design-agent/node_modules/slash": {+ "version": "2.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "packages/design-agent/node_modules/source-map-js": {+ "version": "1.2.1",+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "packages/design-agent/node_modules/space-separated-tokens": {+ "version": "2.0.2",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/stringify-entities": {+ "version": "4.0.4",+ "license": "MIT",+ "dependencies": {+ "character-entities-html4": "^2.0.0",+ "character-entities-legacy": "^3.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/style-to-js": {+ "version": "1.1.21",+ "license": "MIT",+ "dependencies": {+ "style-to-object": "1.0.14"+ }+ },+ "packages/design-agent/node_modules/style-to-object": {+ "version": "1.0.14",+ "license": "MIT",+ "dependencies": {+ "inline-style-parser": "0.2.7"+ }+ },+ "packages/design-agent/node_modules/styled-jsx": {+ "version": "5.1.6",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "client-only": "0.0.1"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "peerDependencies": {+ "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0"+ },+ "peerDependenciesMeta": {+ "@babel/core": {+ "optional": true+ },+ "babel-plugin-macros": {+ "optional": true+ }+ }+ },+ "packages/design-agent/node_modules/sucrase": {+ "version": "3.35.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.2",+ "commander": "^4.0.0",+ "lines-and-columns": "^1.1.6",+ "mz": "^2.7.0",+ "pirates": "^4.0.1",+ "tinyglobby": "^0.2.11",+ "ts-interface-checker": "^0.1.9"+ },+ "bin": {+ "sucrase": "bin/sucrase",+ "sucrase-node": "bin/sucrase-node"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "packages/design-agent/node_modules/sucrase/node_modules/commander": {+ "version": "4.1.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "packages/design-agent/node_modules/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "packages/design-agent/node_modules/tailwindcss": {+ "version": "3.4.19",+ "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.7",+ "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 || ^5.0 || ^6.0",+ "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"+ }+ },+ "packages/design-agent/node_modules/tailwindcss/node_modules/glob-parent": {+ "version": "6.0.2",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "packages/design-agent/node_modules/thenify": {+ "version": "3.3.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0"+ }+ },+ "packages/design-agent/node_modules/thenify-all": {+ "version": "1.6.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "thenify": ">= 3.1.0 < 4"+ },+ "engines": {+ "node": ">=0.8"+ }+ },+ "packages/design-agent/node_modules/tinyglobby": {+ "version": "0.2.16",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.4"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "packages/design-agent/node_modules/tinyglobby/node_modules/fdir": {+ "version": "6.5.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "packages/design-agent/node_modules/tinyglobby/node_modules/picomatch": {+ "version": "4.0.4",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "packages/design-agent/node_modules/to-regex-range": {+ "version": "5.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "packages/design-agent/node_modules/trim-lines": {+ "version": "3.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/trough": {+ "version": "2.2.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/design-agent/node_modules/ts-interface-checker": {+ "version": "0.1.13",+ "dev": true,+ "license": "Apache-2.0"+ },+ "packages/design-agent/node_modules/tslib": {+ "version": "2.8.1",+ "license": "0BSD"+ },+ "packages/design-agent/node_modules/unicode-canonical-property-names-ecmascript": {+ "version": "2.0.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "packages/design-agent/node_modules/unicode-match-property-ecmascript": {+ "version": "2.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "unicode-canonical-property-names-ecmascript": "^2.0.0",+ "unicode-property-aliases-ecmascript": "^2.0.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "packages/design-agent/node_modules/unicode-match-property-value-ecmascript": {+ "version": "2.2.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "packages/design-agent/node_modules/unicode-property-aliases-ecmascript": {+ "version": "2.2.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "packages/design-agent/node_modules/unified": {+ "version": "11.0.5",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "bail": "^2.0.0",+ "devlop": "^1.0.0",+ "extend": "^3.0.0",+ "is-plain-obj": "^4.0.0",+ "trough": "^2.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/unist-util-is": {+ "version": "6.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/unist-util-position": {+ "version": "5.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/unist-util-stringify-position": {+ "version": "4.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/unist-util-visit": {+ "version": "5.1.0",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-is": "^6.0.0",+ "unist-util-visit-parents": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/unist-util-visit-parents": {+ "version": "6.0.2",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-is": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/update-browserslist-db": {+ "version": "1.2.3",+ "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"+ }+ },+ "packages/design-agent/node_modules/util-deprecate": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT"+ },+ "packages/design-agent/node_modules/vfile": {+ "version": "6.0.3",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/vfile-message": {+ "version": "4.0.3",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-stringify-position": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "packages/design-agent/node_modules/wrappy": {+ "version": "1.0.2",+ "dev": true,+ "license": "ISC"+ },+ "packages/design-agent/node_modules/xtend": {+ "version": "4.0.2",+ "license": "MIT",+ "engines": {+ "node": ">=0.4"+ }+ },+ "packages/design-agent/node_modules/yallist": {+ "version": "3.1.1",+ "dev": true,+ "license": "ISC"+ },+ "packages/design-agent/node_modules/zwitch": {+ "version": "2.0.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ }+ }+}diff --git a/package.json b/package.jsonnew file mode 100644index 0000000..970bd7c--- /dev/null+++ b/package.json@@ -0,0 +1,16 @@+{+ "name": "open-ai-design-agent-monorepo",+ "version": "1.0.0",+ "private": true,+ "workspaces": [+ "packages/*",+ "client",+ "server"+ ],+ "scripts": {+ "dev:app": "npm run dev -w client",+ "build:app": "npm run build -w client",+ "build:lib": "npm run build -w packages/design-agent",+ "install:all": "npm install"+ }+}diff --git a/packages/design-agent/.gitignore b/packages/design-agent/.gitignorenew file mode 100644index 0000000..3a8ec2b--- /dev/null+++ b/packages/design-agent/.gitignore@@ -0,0 +1,3 @@+node_modules+dist+package-lock.json\ No newline at end of filediff --git a/packages/design-agent/babel.config.json b/packages/design-agent/babel.config.jsonnew file mode 100644index 0000000..4f06b0c--- /dev/null+++ b/packages/design-agent/babel.config.json@@ -0,0 +1,6 @@+{+ "presets": [+ "@babel/preset-env",+ "@babel/preset-react"+ ]+}diff --git a/packages/design-agent/package.json b/packages/design-agent/package.jsonnew file mode 100644index 0000000..8c74549--- /dev/null+++ b/packages/design-agent/package.json@@ -0,0 +1,41 @@+{+ "name": "design-agent",+ "version": "1.0.0",+ "description": "AI Canvas React Components",+ "main": "dist/index.js",+ "module": "dist/index.js",+ "files": [+ "dist"+ ],+ "scripts": {+ "build:css": "tailwindcss -i ./src/tailwind.css -o ./dist/tailwind.css --minify",+ "build": "npm run build:css && babel src --out-dir dist --extensions .js,.jsx"+ },+ "license": "MIT",+ "dependencies": {+ "axios": "^1.7.0",+ "framer-motion": "^12.0.0",+ "konva": "^10.3.0",+ "react-hot-toast": "^2.5.2",+ "react-icons": "^5.5.0",+ "react-konva": "^19.0.0",+ "react-markdown": "^10.1.0",+ "react-syntax-highlighter": "^15.6.1",+ "remark-gfm": "^4.0.1"+ },+ "peerDependencies": {+ "next": ">=14.0.0",+ "next-themes": ">=0.4.0",+ "react": ">=18.0.0",+ "react-dom": ">=18.0.0"+ },+ "devDependencies": {+ "@babel/cli": "^7.28.3",+ "@babel/core": "^7.29.0",+ "@babel/preset-env": "^7.28.5",+ "@babel/preset-react": "^7.28.5",+ "autoprefixer": "^10.4.14",+ "postcss": "^8.4.24",+ "tailwindcss": "^3.3.3"+ }+}diff --git a/packages/design-agent/postcss.config.js b/packages/design-agent/postcss.config.jsnew file mode 100644index 0000000..12a703d--- /dev/null+++ b/packages/design-agent/postcss.config.js@@ -0,0 +1,6 @@+module.exports = {+ plugins: {+ tailwindcss: {},+ autoprefixer: {},+ },+};diff --git a/packages/design-agent/src/CanvasArea.jsx b/packages/design-agent/src/CanvasArea.jsxnew file mode 100644index 0000000..4e8beae--- /dev/null+++ b/packages/design-agent/src/CanvasArea.jsx@@ -0,0 +1,2198 @@+"use client";++import React, {+ useState,+ useRef,+ useEffect,+ forwardRef,+ useImperativeHandle,+} from "react";+import Konva from "konva";+import {+ Stage,+ Layer,+ Image as KonvaImage,+ Text as KonvaText,+ Transformer,+ Line,+ Group,+ Rect,+ Arc,+} from "react-konva";+import toast from "react-hot-toast";++const MenuButton = ({ label, shortcut, onClick, theme }) => (+ <button+ className={`w-full text-left px-4 py-1.5 flex justify-between items-center transition-colors ${+ theme === "dark" ? "hover:bg-bg-page" : "hover:bg-bg-page"+ }`}+ onClick={(e) => {+ e.stopPropagation();+ onClick();+ }}+ >+ <span>{label}</span>+ {shortcut && (+ <span className="text-xs opacity-50 font-medium">{shortcut}</span>+ )}+ </button>+);++const MenuDivider = ({ theme }) => (+ <div+ className={`h-[1px] w-full my-1 ${theme === "dark" ? "bg-border-main" : "bg-border-main"}`}+ />+);++const URLImage = ({+ imageObj,+ isSelected,+ onSelect,+ onChange,+ onDragMove,+ onDragEnd,+}) => {+ const shapeRef = useRef();+ const trRef = useRef();+ const { zIndex, ...restImageObj } = imageObj;++ const [dims, setDims] = useState({ w: 0, h: 0 });+ const [pos, setPos] = useState({ x: imageObj.x, y: imageObj.y });++ useEffect(() => {+ setPos({ x: imageObj.x, y: imageObj.y });+ }, [imageObj.x, imageObj.y]);++ useEffect(() => {+ if (isSelected && shapeRef.current) {+ trRef.current.nodes([shapeRef.current]);+ trRef.current.getLayer().batchDraw();+ const node = shapeRef.current;+ setDims({+ w: Math.round(node.width() * node.scaleX()),+ h: Math.round(node.height() * node.scaleY()),+ });+ }+ }, [isSelected, imageObj.width, imageObj.height, imageObj.scaleX, imageObj.scaleY]);++ const handleTransform = () => {+ const node = shapeRef.current;+ if (node) {+ setDims({+ w: Math.round(node.width() * node.scaleX()),+ h: Math.round(node.height() * node.scaleY()),+ });+ setPos({ x: node.x(), y: node.y() });+ }+ };+++ return (+ <>+ <KonvaImage+ opacity={imageObj.hidden ? 0 : 1}+ listening={!imageObj.hidden}+ onClick={(e) => {+ if (!imageObj.locked) onSelect(e);+ }}+ onTap={(e) => {+ if (!imageObj.locked) onSelect(e);+ }}+ ref={shapeRef}+ {...restImageObj}+ id={imageObj.id}+ name="konva-item"+ draggable={!imageObj.locked}+ onDragMove={(e) => {+ setPos({ x: e.target.x(), y: e.target.y() });+ onDragMove(e);+ }}++ onDragEnd={(e) => onDragEnd(e, imageObj)}+ onTransformEnd={(e) => {+ const node = shapeRef.current;+ const scaleX = node.scaleX();+ const scaleY = node.scaleY();+ node.scaleX(1);+ node.scaleY(1);+ onChange({+ ...imageObj,+ x: node.x(),+ y: node.y(),+ width: Math.max(5, node.width() * scaleX),+ height: Math.max(5, node.height() * scaleY),+ rotation: node.rotation(),+ });+ }}+ />+ {isSelected && !imageObj.locked && (+ <Group+ x={pos.x}+ y={pos.y - 24}+ rotation={imageObj.rotation}+ scaleX={1 / (shapeRef.current?.getStage()?.scaleX() || 1)}+ scaleY={1 / (shapeRef.current?.getStage()?.scaleY() || 1)}+ >+ {/* Label Background */}+ <Rect+ width={dims.w * (shapeRef.current?.getStage()?.scaleX() || 1)}+ height={20}+ fill="transparent"+ />+ {/* Asset Type */}+ <KonvaText+ text="Image"+ fontSize={11}+ fontFamily="sans-serif"+ fill="#3898ec"+ x={0}+ y={5}+ />+ {/* Dimensions */}+ <KonvaText+ text={`${dims.w} × ${dims.h}`}+ fontSize={11}+ fontFamily="sans-serif"+ fill="#3898ec"+ align="right"+ width={dims.w * (shapeRef.current?.getStage()?.scaleX() || 1)}+ x={0}+ y={5}+ />+ </Group>+ )}+ {isSelected && !imageObj.locked && (+ <Transformer+ ref={trRef}+ keepRatio={true}+ centeredScaling={true}+ onTransform={handleTransform}+ enabledAnchors={[+ "top-left",+ "top-right",+ "bottom-left",+ "bottom-right",+ ]}+ anchorSize={8}+ anchorCornerRadius={4}+ anchorStroke="#3898ec"+ anchorFill="white"+ borderStroke="#3898ec"+ boundBoxFunc={(oldBox, newBox) => {+ if (newBox.width < 5 || newBox.height < 5) {+ return oldBox;+ }+ return newBox;+ }}+ />+ )}+ </>+ );+};++const URLVideo = ({+ videoObj,+ isSelected,+ onSelect,+ onChange,+ onDragMove,+ onDragEnd,+}) => {+ const shapeRef = useRef();+ const trRef = useRef();+ const [video, setVideo] = useState(null);++ useEffect(() => {+ const videoE = document.createElement("video");++ const tryLoad = (useCors) => {+ if (useCors) videoE.crossOrigin = "anonymous";+ else videoE.removeAttribute("crossOrigin");+ videoE.src = videoObj.src;+ videoE.loop = true;+ videoE.muted = true;+ videoE.playsInline = true;+ videoE.play().catch(() => {+ // Silently catch autoplay errors+ });+ };++ videoE.onerror = () => {+ if (videoE.crossOrigin === "anonymous") {+ console.warn("Video CORS failed for", videoObj.src, "retrying without CORS");+ tryLoad(false);+ }+ };++ tryLoad(true);+ setVideo(videoE);++ const layer = shapeRef.current?.getLayer();+ const anim = new Konva.Animation(() => {+ return true; // Force redraw for video+ }, layer);+ anim.start();++ return () => {+ anim.stop();+ videoE.pause();+ videoE.src = "";+ videoE.onerror = null;+ };+ }, [videoObj.src]);++ const { zIndex, ...restVideoObj } = videoObj;++ const [dims, setDims] = useState({ w: 0, h: 0 });+ const [pos, setPos] = useState({ x: videoObj.x, y: videoObj.y });++ useEffect(() => {+ setPos({ x: videoObj.x, y: videoObj.y });+ }, [videoObj.x, videoObj.y]);++ useEffect(() => {+ if (isSelected && shapeRef.current) {+ trRef.current.nodes([shapeRef.current]);+ trRef.current.getLayer().batchDraw();+ const node = shapeRef.current;+ setDims({+ w: Math.round(node.width() * node.scaleX()),+ h: Math.round(node.height() * node.scaleY()),+ });+ }+ }, [isSelected, videoObj.width, videoObj.height, videoObj.scaleX, videoObj.scaleY]);++ const handleTransform = () => {+ const node = shapeRef.current;+ if (node) {+ setDims({+ w: Math.round(node.width() * node.scaleX()),+ h: Math.round(node.height() * node.scaleY()),+ });+ setPos({ x: node.x(), y: node.y() });+ }+ };+++ return (+ <>+ <KonvaImage+ opacity={videoObj.hidden ? 0 : 1}+ listening={!videoObj.hidden}+ onClick={(e) => {+ if (!videoObj.locked) onSelect(e);+ }}+ onTap={(e) => {+ if (!videoObj.locked) onSelect(e);+ }}+ ref={shapeRef}+ image={video}+ {...restVideoObj}+ id={videoObj.id}+ name="konva-item"+ draggable={!videoObj.locked}+ onDragMove={(e) => {+ setPos({ x: e.target.x(), y: e.target.y() });+ onDragMove(e);+ }}++ onDragEnd={(e) => onDragEnd(e, videoObj)}+ onTransformEnd={(e) => {+ const node = shapeRef.current;+ const scaleX = node.scaleX();+ const scaleY = node.scaleY();+ node.scaleX(1);+ node.scaleY(1);+ onChange({+ ...videoObj,+ x: node.x(),+ y: node.y(),+ width: Math.max(5, node.width() * scaleX),+ height: Math.max(5, node.height() * scaleY),+ rotation: node.rotation(),+ });+ }}+ />+ {isSelected && !videoObj.locked && (+ <Group+ x={pos.x}+ y={pos.y - 24}+ rotation={videoObj.rotation}+ scaleX={1 / (shapeRef.current?.getStage()?.scaleX() || 1)}+ scaleY={1 / (shapeRef.current?.getStage()?.scaleY() || 1)}+ >+ <KonvaText+ text="Video"+ fontSize={11}+ fontFamily="sans-serif"+ fill="#3898ec"+ x={0}+ y={5}+ />+ <KonvaText+ text={`${dims.w} × ${dims.h}`}+ fontSize={11}+ fontFamily="sans-serif"+ fill="#3898ec"+ align="right"+ width={dims.w * (shapeRef.current?.getStage()?.scaleX() || 1)}+ x={0}+ y={5}+ />+ </Group>+ )}+ {isSelected && !videoObj.locked && (+ <Transformer+ ref={trRef}+ keepRatio={true}+ centeredScaling={true}+ onTransform={handleTransform}+ enabledAnchors={[+ "top-left",+ "top-right",+ "bottom-left",+ "bottom-right",+ ]}+ anchorSize={8}+ anchorCornerRadius={4}+ anchorStroke="#3898ec"+ anchorFill="white"+ borderStroke="#3898ec"+ boundBoxFunc={(oldBox, newBox) => {+ if (newBox.width < 5 || newBox.height < 5) {+ return oldBox;+ }+ return newBox;+ }}+ />+ )}+ </>+ );+};++const URLAudio = ({+ audioObj,+ isSelected,+ onSelect,+ onChange,+ onDragMove,+ onDragEnd,+}) => {+ const shapeRef = useRef();+ const trRef = useRef();+ const [playing, setPlaying] = useState(false);+ const [progress, setProgress] = useState(0);+ const [audio, setAudio] = useState(null);++ useEffect(() => {+ const a = new window.Audio();++ const tryLoad = (useCors) => {+ if (useCors) a.crossOrigin = "anonymous";+ else a.removeAttribute("crossOrigin");+ a.src = audioObj.src;+ a.loop = true;+ a.load();+ };++ const updateProgress = () => {+ if (a.duration) setProgress(a.currentTime / a.duration);+ };++ a.onplay = () => setPlaying(true);+ a.onpause = () => setPlaying(false);+ a.onended = () => setPlaying(false);+ a.ontimeupdate = updateProgress;++ a.onerror = () => {+ if (a.crossOrigin === "anonymous") {+ console.warn("Audio CORS failed for", audioObj.src, "retrying without CORS");+ tryLoad(false);+ } else {+ const error = a.error;+ let msg = "Unknown error";+ if (error) {+ if (error.code === 1) msg = "Aborted";+ else if (error.code === 2) msg = "Network error";+ else if (error.code === 3) msg = "Decode error";+ else if (error.code === 4) msg = "Source not supported";+ }+ console.error("Audio failed to load:", msg, audioObj.src);+ }+ };++ tryLoad(true);+ setAudio(a);++ return () => {+ a.pause();+ a.src = "";+ a.onplay = null;+ a.onpause = null;+ a.onended = null;+ a.ontimeupdate = null;+ a.onerror = null;+ };+ }, [audioObj.src]);++ const handleTogglePlay = (e) => {+ if (e && e.cancelBubble !== undefined) {+ e.cancelBubble = true;+ }+ onSelect?.();++ if (!audio) return;++ if (playing) {+ audio.pause();+ } else {+ audio.play().catch((err) => {+ console.error("Audio playback failed:", err);+ toast.error(+ "Playback failed. Please try clicking the play button again.",+ );+ });+ }+ };++ useEffect(() => {+ if (isSelected && trRef.current) {+ trRef.current.nodes([shapeRef.current]);+ trRef.current.getLayer().batchDraw();+ }+ }, [isSelected]);++ return (+ <>+ <Group+ x={audioObj.x}+ y={audioObj.y}+ ref={shapeRef}+ id={audioObj.id}+ name="konva-item"+ draggable={!audioObj.locked}+ onClick={(e) => {+ onSelect?.();+ if (isSelected && !audioObj.locked) {+ handleTogglePlay(e);+ }+ }}+ onTap={(e) => {+ onSelect?.();+ if (isSelected && !audioObj.locked) {+ handleTogglePlay(e);+ }+ }}+ onDblClick={handleTogglePlay}+ onDblTap={handleTogglePlay}+ onDragMove={onDragMove}+ onDragEnd={(e) => onDragEnd(e, audioObj)}+ >+ {/* Background Card */}+ <Rect+ width={180}+ height={60}+ fill={playing ? "#3898ec" : "#1E1E1E"}+ cornerRadius={2}+ stroke="#3898ec"+ strokeWidth={isSelected ? 2 : 1}+ shadowBlur={isSelected ? 10 : 5}+ shadowOpacity={0.3}+ />+ {/* Audio Icon (Simplified) */}+ <Rect+ x={15}+ y={15}+ width={15}+ height={30}+ fill="white"+ cornerRadius={2}+ />++ {/* Label */}+ <KonvaText+ x={45}+ y={15}+ text={audioObj.label || "Audio Asset"}+ fontSize={12}+ fontFamily="sans-serif"+ fontStyle="bold"+ fill="white"+ width={100}+ ellipsis={true}+ />++ {/* Progress bar background */}+ <Rect+ x={45}+ y={35}+ width={120}+ height={4}+ fill="rgba(255,255,255,0.2)"+ cornerRadius={2}+ />+ {/* Active Progress bar */}+ <Rect+ x={45}+ y={35}+ width={Math.max(2, 120 * progress)}+ height={4}+ fill="white"+ cornerRadius={2}+ />++ {/* Play/Pause icon (Simplified) */}+ <Group+ x={155}+ y={22}+ onClick={handleTogglePlay}+ onTap={handleTogglePlay}+ >+ {/* Transparent hit area for the button */}+ <Rect x={-15} y={-15} width={40} height={40} fill="transparent" />+ {playing ? (+ <Group>+ <Rect width={4} height={16} fill="white" />+ <Rect x={7} width={4} height={16} fill="white" />+ </Group>+ ) : (+ <Line points={[0, 0, 14, 8, 0, 16]} closed fill="white" />+ )}+ </Group>+ </Group>+ {isSelected && !audioObj.locked && (+ <Transformer ref={trRef} resizeEnabled={false} rotateEnabled={true} />+ )}+ </>+ );+};++const URLText = ({+ textObj,+ isSelected,+ onSelect,+ onChange,+ onDragMove,+ onDragEnd,+ onDblClick,+}) => {+ const shapeRef = useRef();+ const trRef = useRef();+ const { zIndex, ...restTextObj } = textObj;++ useEffect(() => {+ if (isSelected) {+ trRef.current.nodes([shapeRef.current]);+ trRef.current.getLayer().batchDraw();+ }+ }, [isSelected]);++ return (+ <>+ <KonvaText+ opacity={textObj.hidden ? 0 : 1}+ listening={!textObj.hidden}+ onClick={(e) => {+ if (!textObj.locked) onSelect(e);+ }}+ onTap={(e) => {+ if (!textObj.locked) onSelect(e);+ }}+ ref={shapeRef}+ {...restTextObj}+ id={textObj.id}+ name="konva-item"+ draggable={!textObj.locked}+ onDragMove={onDragMove}+ onDragEnd={(e) => onDragEnd(e, textObj)}+ onDblClick={() => {+ if (!textObj.locked) onDblClick(textObj.id);+ }}+ onDblTap={() => {+ if (!textObj.locked) onDblClick(textObj.id);+ }}+ onTransformEnd={(e) => {+ const node = shapeRef.current;+ const scaleX = node.scaleX();+ const scaleY = node.scaleY();+ node.scaleX(1);+ node.scaleY(1);+ onChange({+ ...textObj,+ x: node.x(),+ y: node.y(),+ width: Math.max(5, node.width() * scaleX),+ height: Math.max(5, node.height() * scaleY),+ rotation: node.rotation(),+ });+ }}+ />+ {isSelected && !textObj.locked && (+ <Transformer+ ref={trRef}+ boundBoxFunc={(oldBox, newBox) => {+ if (newBox.width < 5 || newBox.height < 5) return oldBox;+ return newBox;+ }}+ enabledAnchors={[+ "top-left",+ "top-right",+ "bottom-left",+ "bottom-right",+ ]}+ />+ )}+ </>+ );+};++const LoaderNode = ({ task, isSelected, onSelect, onChange, theme }) => {+ const shapeRef = useRef();+ const trRef = useRef();+ const arcRef = useRef();++ useEffect(() => {+ if (isSelected && trRef.current) {+ trRef.current.nodes([shapeRef.current]);+ trRef.current.getLayer().batchDraw();+ }+ }, [isSelected]);++ useEffect(() => {+ if (arcRef.current) {+ const anim = new Konva.Animation((frame) => {+ const angleDiff = frame.timeDiff * 0.36; // roughly 360 degrees per second+ arcRef.current.rotate(angleDiff);+ }, arcRef.current.getLayer());++ anim.start();+ return () => anim.stop();+ }+ }, []);++ return (+ <>+ <Group+ x={task.x || 0}+ y={task.y || 0}+ draggable+ id={task.taskId}+ onClick={(e) => {+ onSelect(e);+ }}+ onTap={(e) => {+ onSelect(e);+ }}+ onDragEnd={(e) => {+ onChange({+ ...task,+ x: e.target.x(),+ y: e.target.y(),+ });+ }}+ ref={shapeRef}+ name="konva-item"+ >+ <Rect+ width={240}+ height={240}+ fill={theme === "dark" ? "#1E1E1E" : "#FFFFFF"}+ cornerRadius={8}+ stroke="#3898ec"+ strokeWidth={1}+ shadowColor={theme === "dark" ? "#ffffff" : "#000000"}+ shadowBlur={10}+ shadowOpacity={0.2}+ shadowOffsetY={4}+ />+ <KonvaText+ x={10}+ y={45}+ text={+ task.status === "completed"+ ? `Rendering...\n\n${task.modelName}`+ : `Generating...\n\n${task.modelName}`+ }+ fontSize={14}+ fontFamily="sans-serif"+ fontStyle="bold"+ fill={theme === "dark" ? "#E0E0E0" : "#0F172A"}+ width={220}+ align="center"+ />+ <KonvaText+ x={10}+ y={110}+ text="(Move to change spawn location)"+ fontSize={10}+ fill="#3898ec"+ width={220}+ align="center"+ />+ <Arc+ ref={arcRef}+ x={120}+ y={170}+ cornerRadius={10}+ innerRadius={20}+ outerRadius={24}+ angle={300}+ fill="#3898ec"+ rotation={0}+ />+ </Group>+ {isSelected && (+ <Transformer ref={trRef} resizeEnabled={false} rotateEnabled={false} />+ )}+ </>+ );+};++const CanvasArea = forwardRef(+ (+ {+ theme = "dark",+ colors = { textSecondary: "text-text-sub", border: "border-border-main" },+ activeTasks = [],+ setActiveTasks = () => {},+ onZoomChange,+ },+ ref,+ ) => {+ const [images, setImages] = useState([]);+ const [videos, setVideos] = useState([]);+ const [audios, setAudios] = useState([]);+ const [texts, setTexts] = useState([]);+ const [selectedId, setSelectedId] = useState(null);+ const [canvasSize, setCanvasSize] = useState({ width: 800, height: 600 });+ const [zoom, setZoom] = useState(1);+ const [editingTextId, setEditingTextId] = useState(null);+ const [contextMenu, setContextMenu] = useState(null);+ const [clipboardNode, setClipboardNode] = useState(null);+ const [guides, setGuides] = useState([]);++ const stageWrapperRef = useRef();+ const stageRef = useRef();+ const containerRef = useRef();++ const updateZoom = (newZoom, pos = null) => {+ if (!newZoom || isNaN(newZoom)) return;+ setZoom(newZoom);+ onZoomChange?.(Math.round(newZoom * 100));++ if (stageRef.current && typeof stageRef.current.scale === "function") {+ stageRef.current.scale({ x: newZoom, y: newZoom });+ if (pos && typeof stageRef.current.position === "function") {+ stageRef.current.position(pos);+ }+ if (typeof stageRef.current.batchDraw === "function") {+ stageRef.current.batchDraw();+ }+ }+ if (containerRef.current) {+ containerRef.current.style.backgroundSize = `${32 * newZoom}px ${32 * newZoom}px`;+ if (pos) {+ containerRef.current.style.backgroundPosition = `${pos.x}px ${pos.y}px`;+ }+ }+ };++ const handleZoomToFit = () => {+ if (+ images.length === 0 &&+ videos.length === 0 &&+ texts.length === 0 &&+ audios.length === 0+ ) {+ updateZoom(1, { x: 0, y: 0 });+ return;+ }+ let minX = Infinity,+ minY = Infinity,+ maxX = -Infinity,+ maxY = -Infinity;+ const checkItem = (item) => {+ minX = Math.min(minX, item.x);+ minY = Math.min(minY, item.y);+ maxX = Math.max(maxX, item.x + (item.width || 150));+ maxY = Math.max(maxY, item.y + (item.height || 50));+ };+ images.forEach(checkItem);+ videos.forEach(checkItem);+ audios.forEach(checkItem);+ texts.forEach(checkItem);+ const padding = 60;+ const contentWidth = maxX - minX;+ const contentHeight = maxY - minY;+ if (contentWidth <= 0 || contentHeight <= 0) {+ updateZoom(1, { x: 0, y: 0 });+ return;+ }+ const scaleX = (canvasSize.width - padding * 2) / contentWidth;+ const scaleY = (canvasSize.height - padding * 2) / contentHeight;+ const newZoom = Math.min(5, Math.max(0.1, Math.min(scaleX, scaleY)));+ const newPos = {+ x: canvasSize.width / 2 - (minX + contentWidth / 2) * newZoom,+ y: canvasSize.height / 2 - (minY + contentHeight / 2) * newZoom,+ };+ updateZoom(newZoom, newPos);+ };++ const handleExport = (format) => {+ if (!contextMenu?.nodeId) return;+ const id = contextMenu.nodeId;+ const node = stageRef.current.findOne("#" + id);+ if (node) {+ try {+ const dataURL = node.toDataURL({+ pixelRatio: 3,+ mimeType:+ format === "JPG"+ ? "image/jpeg"+ : format === "SVG"+ ? "image/svg+xml"+ : "image/png",+ });+ const link = document.createElement("a");+ link.download = `export-${id}.${format.toLowerCase()}`;+ link.href = dataURL;+ document.body.appendChild(link);+ link.click();+ document.body.removeChild(link);+ } catch (err) {+ console.error("Export failed:", err);+ toast.error(+ "Export failed: This image might be from an external source without CORS permission.",+ );+ }+ }+ setContextMenu(null);+ };++ const handleDownload = async () => {+ const id = contextMenu?.nodeId || selectedId;+ if (!id) return;++ const item = [...images, ...videos, ...audios].find((i) => i.id === id);+ if (item && item.src) {+ try {+ toast.loading("Preparing download...", { id: "download" });+ const response = await fetch(item.src);+ const blob = await response.blob();+ const url = window.URL.createObjectURL(blob);++ const link = document.createElement("a");+ link.href = url;+ const extension = item.src.split("?")[0].split(".").pop() || "";+ const fileName = item.label || item.assetLabel || `asset-${id.substring(0, 8)}`;+ link.download = extension ? `${fileName}.${extension}` : fileName;++ document.body.appendChild(link);+ link.click();+ document.body.removeChild(link);+ window.URL.revokeObjectURL(url);++ toast.success("Download started", { id: "download" });+ } catch (err) {+ console.error("Download failed:", err);+ toast.error("Download failed. CORS might be blocking direct download.", { id: "download" });+ // Fallback to old method if fetch fails+ const link = document.createElement("a");+ link.href = item.src;+ link.target = "_blank";+ link.download = "";+ link.click();+ }+ } else {+ toast.error("Source URL not found");+ }+ setContextMenu(null);+ };++ const handleShowAllHidden = () => {+ setImages((prev) => prev.map((i) => ({ ...i, hidden: false })));+ setVideos((prev) => prev.map((v) => ({ ...v, hidden: false })));+ setAudios((prev) => prev.map((a) => ({ ...a, hidden: false })));+ setTexts((prev) => prev.map((t) => ({ ...t, hidden: false })));+ toast.success("All items are now visible");+ setContextMenu(null);+ };++ const handleClearCanvas = () => {+ if (window.confirm("Are you sure you want to clear the entire canvas?")) {+ setImages([]);+ setVideos([]);+ setAudios([]);+ setTexts([]);+ setSelectedId(null);+ toast.success("Canvas cleared");+ }+ setContextMenu(null);+ };++ const handleExportCanvas = () => {+ if (!stageRef.current) return;+ try {+ const dataURL = stageRef.current.toDataURL({ pixelRatio: 2 });+ const link = document.createElement("a");+ link.download = `canvas-export-${Date.now()}.png`;+ link.href = dataURL;+ document.body.appendChild(link);+ link.click();+ document.body.removeChild(link);+ } catch (err) {+ console.error("Canvas export failed:", err);+ toast.error(+ "Canvas export failed: One or more images on the canvas are from an external source without CORS permission.",+ );+ }+ setContextMenu(null);+ };++ const addImage = (src, x, y, width, height, onLoaded, assetLabel) => {+ if (!src) return;+ const stage = stageRef.current;+ if (!stage) {+ console.error("CanvasArea: stageRef.current is null in addImage");+ return;+ }++ const targetX =+ x !== undefined+ ? x+ : (-stage.x() + (canvasSize?.width || 800) / 2) / zoom - 100;+ const targetY =+ y !== undefined+ ? y+ : (-stage.y() + (canvasSize?.height || 600) / 2) / zoom - 100;+ const id = `img-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;++ const img = new window.Image();+ img.crossOrigin = "anonymous";++ const commitImage = (loadedImg) => {+ let finalWidth = width;+ let finalHeight = height;+ if (!finalWidth && !finalHeight && loadedImg.width) {+ const maxDim = 400;+ if (loadedImg.width > loadedImg.height) {+ finalWidth = maxDim;+ finalHeight = (loadedImg.height / loadedImg.width) * maxDim;+ } else {+ finalHeight = maxDim;+ finalWidth = (loadedImg.width / loadedImg.height) * maxDim;+ }+ }++ setImages((prev) => [+ ...prev,+ {+ id,+ assetLabel: assetLabel || null,+ src,+ x: targetX,+ y: targetY,+ image: loadedImg,+ width: finalWidth / 2 || 200,+ height: finalHeight / 2 || 200,+ rotation: 0,+ },+ ]);+ setSelectedId(id);+ if (typeof onLoaded === "function") onLoaded();+ };++ img.onload = () => {+ commitImage(img);+ };++ img.onerror = () => {+ if (img.crossOrigin === "anonymous") {+ img.removeAttribute("crossOrigin");+ img.src = src;+ } else {+ console.error("Failed to load image after retry:", src);+ // Add it anyway so it shows up in the layers list / has a presence+ commitImage(img);+ }+ };++ img.src = src;+ };++ const addVideo = (src, x, y, width, height, onLoaded, assetLabel) => {+ if (!src) return;+ const stage = stageRef.current;+ if (!stage) {+ console.error("CanvasArea: stageRef.current is null in addVideo");+ return;+ }++ const targetX =+ x !== undefined+ ? x+ : (-stage.x() + (canvasSize?.width || 800) / 2) / zoom - 150;+ const targetY =+ y !== undefined+ ? y+ : (-stage.y() + (canvasSize?.height || 600) / 2) / zoom - 100;+ const id = `vid-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;++ const tryLoad = (useCors) => {+ const video = document.createElement("video");+ if (useCors) video.crossOrigin = "anonymous";+ video.loop = true;+ video.muted = true;+ video.playsInline = true;+ video.preload = "metadata";+ let settled = false;++ const commitVideo = (v) => {+ let finalWidth = width;+ let finalHeight = height;+ const vW = v.videoWidth;+ const vH = v.videoHeight;++ if (vW && vH) {+ if (!finalWidth && !finalHeight) {+ const maxDim = 400;+ if (vW > vH) {+ finalWidth = maxDim;+ finalHeight = (vH / vW) * maxDim;+ } else {+ finalHeight = maxDim;+ finalWidth = (vW / vH) * maxDim;+ }+ }+ }++ setVideos((prev) => [+ ...prev,+ {+ id,+ assetLabel: assetLabel || null,+ src,+ x: targetX,+ y: targetY,+ width: finalWidth / 2 || 300,+ height: finalHeight / 2 || 200,+ rotation: 0,+ },+ ]);+ setSelectedId(id);+ v.play().catch(() => {+ const playOnInteract = () => {+ v.play();+ window.removeEventListener("click", playOnInteract);+ };+ window.addEventListener("click", playOnInteract);+ });+ if (typeof onLoaded === "function") onLoaded();+ };++ const handleVideoReady = () => {+ if (settled) return;+ settled = true;+ clearTimeout(fallbackTimer);+ commitVideo(video);+ };++ video.addEventListener("loadedmetadata", handleVideoReady, { once: true });+ video.addEventListener("canplay", handleVideoReady, { once: true });+ video.addEventListener("error", () => {+ if (settled) return;+ settled = true;+ clearTimeout(fallbackTimer);+ if (useCors) {+ console.warn("CORS issue with video, retrying without crossOrigin:", src);+ tryLoad(false);+ } else {+ console.error("Failed to load video after retry:", src);+ commitVideo(video);+ }+ }, { once: true });++ const fallbackTimer = setTimeout(() => {+ if (settled) return;+ settled = true;+ if (useCors) tryLoad(false);+ else commitVideo(video);+ }, 10000);++ video.src = src;+ video.load();+ };+ tryLoad(true);+ };++ const addAudio = (src, x, y, label, assetLabel) => {+ console.log("audio url", src);++ if (!src) return;+ const stage = stageRef.current;+ if (!stage) {+ console.error("CanvasArea: stageRef.current is null in addAudio");+ return;+ }+ const targetX =+ x !== undefined ? x : (-stage.x() + (canvasSize?.width || 800) / 2) / zoom - 90;+ const targetY =+ y !== undefined ? y : (-stage.y() + (canvasSize?.height || 600) / 2) / zoom - 30;+ const id = `aud-${Date.now()}`;+ setAudios((prev) => [+ ...prev,+ {+ id,+ assetLabel: assetLabel || null,+ src,+ x: targetX,+ y: targetY,+ label: label || "Audio Asset",+ rotation: 0,+ },+ ]);+ setSelectedId(id);+ };++ const addNewText = (text, x, y) => {+ const stage = stageRef.current;+ const targetX =+ x !== undefined ? x : (-stage.x() + canvasSize.width / 2) / zoom - 50;+ const targetY =+ y !== undefined ? y : (-stage.y() + canvasSize.height / 2) / zoom - 12;+ const id = `txt-${Date.now()}`;+ setTexts((prev) => [+ ...prev,+ {+ id,+ text: text || "Double-click to Edit",+ fontSize: 24,+ x: targetX,+ y: targetY,+ draggable: true,+ fill: theme === "dark" ? "white" : "black",+ rotation: 0,+ },+ ]);+ setSelectedId(id);+ };++ // Snapshot the canvas in the shape the agent expects (see SYSTEM_PROMPT).+ // Coordinates are in canvas (pre-zoom) space, origin top-left.+ const getCanvasState = () => {+ const stage = stageRef.current;+ const nodes = [];+ const push = (n, kind) => {+ if (!n.assetLabel) return; // only assets the agent knows about+ nodes.push({+ asset_id: n.assetLabel,+ kind,+ x: Math.round(n.x),+ y: Math.round(n.y),+ w: Math.round(n.width || 200),+ h: Math.round(n.height || (kind === "audio" ? 60 : 200)),+ z: n.zIndex || 0,+ locked: !!n.locked,+ });+ };+ images.forEach((n) => push(n, "image"));+ videos.forEach((n) => push(n, "video"));+ audios.forEach((n) => push(n, "audio"));+ const selectedNode = [...images, ...videos, ...audios, ...texts].find(+ (n) => n.id === selectedId,+ );+ return {+ viewport: {+ w: canvasSize.width,+ h: canvasSize.height,+ zoom,+ pan: stage ? [Math.round(stage.x()), Math.round(stage.y())] : [0, 0],+ },+ selected: selectedNode?.assetLabel || null,+ nodes,+ };+ };++ // Move a node by asset_label using functional setters so it works without+ // fresh state in the closure.+ const moveNode = (assetLabel, x, y) => {+ const patch = (arr) =>+ arr.map((n) => (n.assetLabel === assetLabel ? { ...n, x, y } : n));+ setImages(patch);+ setVideos(patch);+ setAudios(patch);+ };++ // Place a derived asset BESIDE its source on the canvas, preserving the+ // source so the user can compare or branch from it. Layout: source stays+ // at (sx, sy); new asset lands at (sx + sw + 32, sy) with the source's+ // size as a hint. If the source isn't on canvas (URL input, etc.),+ // falls back to default centre placement.+ const placeNextToSource = (sourceLabel, newUrl, newKind, newAssetLabel) => {+ let frame = null;+ const findIn = (arr) => arr.find((n) => n.assetLabel === sourceLabel);+ frame = findIn(images) || findIn(videos) || findIn(audios);++ if (!frame) {+ if (newKind === "video") addVideo(newUrl, undefined, undefined, undefined, undefined, undefined, newAssetLabel);+ else if (newKind === "audio") addAudio(newUrl, undefined, undefined, undefined, newAssetLabel);+ else addImage(newUrl, undefined, undefined, undefined, undefined, undefined, newAssetLabel);+ return;+ }++ const sw = frame.width || 200;+ const sh = frame.height || 200;+ const x = frame.x + sw + 32; // 32px gap to the right of source+ const y = frame.y;++ if (newKind === "video") {+ addVideo(newUrl, x, y, sw, sh, undefined, newAssetLabel);+ } else if (newKind === "audio") {+ addAudio(newUrl, x, y, undefined, newAssetLabel);+ } else {+ addImage(newUrl, x, y, sw, sh, undefined, newAssetLabel);+ }+ };++ // Apply an arrange_assets payload from the agent ([{asset_id, x, y}, ...]).+ const arrangeNodes = (moves) => {+ if (!Array.isArray(moves) || moves.length === 0) return 0;+ const byLabel = new Map(moves.map((m) => [m.asset_id, m]));+ const patch = (arr) =>+ arr.map((n) => {+ const m = n.assetLabel ? byLabel.get(n.assetLabel) : null;+ return m ? { ...n, x: m.x, y: m.y } : n;+ });+ setImages(patch);+ setVideos(patch);+ setAudios(patch);+ return moves.length;+ };++ useImperativeHandle(+ ref,+ () => ({+ addImage,+ addVideo,+ addAudio,+ getCanvasState,+ moveNode,+ placeNextToSource,+ // Back-compat alias — earlier code referenced replaceAt before we+ // switched to non-destructive side-by-side placement.+ replaceAt: placeNextToSource,+ arrangeNodes,+ zoomIn: () => updateZoom(Math.min(5, zoom + 0.1)),+ zoomOut: () => updateZoom(Math.max(0.1, zoom - 0.1)),+ resetZoom: () => updateZoom(1),+ }),+ // Recompute when state read by getCanvasState changes so the snapshot+ // is always current.+ [images, videos, audios, texts, selectedId, canvasSize, zoom],+ );++ // Global Paste & Keyboard listeners+ useEffect(() => {+ const handlePasteAction = (e) => {+ if (+ document.activeElement.tagName === "INPUT" ||+ document.activeElement.tagName === "TEXTAREA"+ )+ return;+ const items = e.clipboardData?.items;+ for (let i = 0; i < items.length; i++) {+ if (items[i].type.indexOf("image") !== -1) {+ e.preventDefault();+ const file = items[i].getAsFile();+ const reader = new FileReader();+ reader.onload = (event) => addImage(event.target.result);+ reader.readAsDataURL(file);+ } else if (items[i].type === "text/plain") {+ e.preventDefault();+ items[i].getAsString((text) => {+ if (text.trim()) addNewText(text);+ });+ }+ }+ };+ window.addEventListener("paste", handlePasteAction);+ return () => window.removeEventListener("paste", handlePasteAction);+ }, [zoom, canvasSize]);++ // Handle tasks spawning+ useEffect(() => {+ if (!activeTasks || activeTasks.length === 0) return;+ const tasksNeedingPosition = activeTasks.filter(+ (t) => t.x === undefined && t.y === undefined,+ );+ if (tasksNeedingPosition.length > 0) {+ setActiveTasks((prev) => {+ const next = [...prev];+ let changed = false;+ next.forEach((t, i) => {+ if (t.x === undefined && t.y === undefined) {+ const stage = stageRef.current;+ t.x = stage+ ? (-stage.x() + canvasSize.width / 2) / zoom - 120 + i * 20+ : 100 + i * 20;+ t.y = stage+ ? (-stage.y() + canvasSize.height / 2) / zoom - 60 + i * 20+ : 100 + i * 20;+ changed = true;+ }+ });+ return changed ? next : prev;+ });+ }+ const completedUnadded = activeTasks.filter(+ (t) => t.status === "completed" && t.resultUrl && !t.addedToCanvas,+ );+ if (completedUnadded.length > 0) {+ completedUnadded.forEach((task) => {+ setActiveTasks((prev) =>+ prev.map((t) =>+ t.taskId === task.taskId ? { ...t, addedToCanvas: true } : t,+ ),+ );+ const items =+ task.resultUrl.rawOutputs || task.resultUrl.examples || [];+ if (items.length > 0) {+ let loadedCount = 0;+ const handleItemLoaded = () => {+ loadedCount++;+ if (loadedCount === items.length) {+ setActiveTasks((prev) =>+ prev.map((t) =>+ t.taskId === task.taskId ? { ...t, fullyMounted: true } : t,+ ),+ );+ }+ };+ items.forEach((output, oIndex) => {+ const x = task.x !== undefined ? task.x + oIndex * 20 : 100;+ const y = task.y !== undefined ? task.y + oIndex * 20 : 100;+ const val =+ typeof output === "string"+ ? output+ : output.value || output.url || output.image_url;+ const type =+ typeof output === "object" ? output.type?.toLowerCase() : null;+ if (val) {+ if (type && type.startsWith("text")) {+ addNewText(val, x, y);+ handleItemLoaded();+ } else if (type && type.startsWith("video")) {+ addVideo(val, x, y, undefined, undefined, handleItemLoaded);+ } else if (type && type.startsWith("audio")) {+ addAudio(val, x, y, task.assetLabel);+ handleItemLoaded();+ } else {+ addImage(val, x, y, undefined, undefined, handleItemLoaded);+ }+ } else handleItemLoaded();+ });+ } else {+ setActiveTasks((prev) =>+ prev.map((t) =>+ t.taskId === task.taskId ? { ...t, fullyMounted: true } : t,+ ),+ );+ }+ });+ }+ }, [activeTasks, zoom, canvasSize]);++ // Context Menu Helpers+ const getActiveNode = (id) =>+ images.find((i) => i.id === id) ||+ videos.find((v) => v.id === id) ||+ audios.find((a) => a.id === id) ||+ texts.find((t) => t.id === id);++ const handleCopy = () => {+ const id = contextMenu?.nodeId || selectedId;+ if (id) setClipboardNode(getActiveNode(id));+ setContextMenu(null);+ };++ const handleCut = () => {+ const id = contextMenu?.nodeId || selectedId;+ if (id) {+ setClipboardNode(getActiveNode(id));+ setImages(images.filter((img) => img.id !== id));+ setVideos(videos.filter((vid) => vid.id !== id));+ setAudios(audios.filter((aud) => aud.id !== id));+ setTexts(texts.filter((txt) => txt.id !== id));+ if (selectedId === id) setSelectedId(null);+ }+ setContextMenu(null);+ };++ const handleDuplicate = () => {+ const id = contextMenu?.nodeId || selectedId;+ if (id) {+ const node = getActiveNode(id);+ if (node) {+ const newNode = {+ ...node,+ id: `${node.id.split("-")[0]}-${Date.now()}`,+ x: node.x + 20,+ y: node.y + 20,+ };+ if (newNode.id.startsWith("img"))+ setImages((prev) => [...prev, newNode]);+ if (newNode.id.startsWith("vid"))+ setVideos((prev) => [...prev, newNode]);+ if (newNode.id.startsWith("aud"))+ setAudios((prev) => [...prev, newNode]);+ if (newNode.id.startsWith("txt"))+ setTexts((prev) => [...prev, newNode]);+ }+ }+ setContextMenu(null);+ };++ const handlePasteNode = async () => {+ const stage = stageRef.current;+ if (!stage) return;+ const pastePos = contextMenu ? contextMenu.stagePos : null;+ let x, y;+ if (pastePos) {+ x = (pastePos.x - stage.x()) / zoom;+ y = (pastePos.y - stage.y()) / zoom;+ } else {+ x = (-stage.x() + canvasSize.width / 2) / zoom;+ y = (-stage.y() + canvasSize.height / 2) / zoom;+ }+ try {+ const items = await navigator.clipboard.read();+ let foundSomething = false;+ for (const item of items) {+ for (const type of item.types) {+ if (type.startsWith("image/")) {+ const blob = await item.getType(type);+ const reader = new FileReader();+ reader.onload = (e) => addImage(e.target.result, x - 50, y - 50);+ reader.readAsDataURL(blob);+ foundSomething = true;+ } else if (type === "text/plain") {+ const blob = await item.getType(type);+ const text = await blob.text();+ if (text.trim()) {+ addNewText(text, x, y);+ foundSomething = true;+ }+ }+ }+ }+ if (foundSomething) {+ setContextMenu(null);+ return;+ }+ } catch (err) {}+ if (clipboardNode) {+ const newNode = {+ ...clipboardNode,+ id: `${clipboardNode.id.split("-")[0]}-${Date.now()}`,+ };+ newNode.x = x - (newNode.width || 0) / 2;+ newNode.y = y - (newNode.height || 0) / 2;+ if (newNode.id.startsWith("img"))+ setImages((prev) => [...prev, newNode]);+ else if (newNode.id.startsWith("vid"))+ setVideos((prev) => [...prev, newNode]);+ else if (newNode.id.startsWith("aud"))+ setAudios((prev) => [...prev, newNode]);+ else if (newNode.id.startsWith("txt"))+ setTexts((prev) => [...prev, newNode]);+ }+ setContextMenu(null);+ };++ const handleZIndex = (action) => {+ const id = contextMenu?.nodeId || selectedId;+ if (!id) return;+ const allItems = [...images, ...videos, ...audios, ...texts].sort(+ (a, b) => (a.zIndex || 0) - (b.zIndex || 0),+ );+ const idxInAll = allItems.findIndex((i) => i.id === id);+ if (idxInAll === -1) return;+ const allZ = allItems.map((i) => i.zIndex || 0);+ const maxZ = Math.max(...allZ, 0);+ const minZ = Math.min(...allZ, 0);+ const updateItem = (arr, setter) => {+ const idx = arr.findIndex((i) => i.id === id);+ if (idx !== -1) {+ const item = { ...arr[idx] };+ if (action === "front") item.zIndex = maxZ + 1;+ else if (action === "back") item.zIndex = Math.max(0, minZ - 1);+ else if (action === "up")+ item.zIndex =+ idxInAll < allItems.length - 1+ ? (allItems[idxInAll + 1].zIndex || 0) + 1+ : maxZ + 1;+ else if (action === "down")+ item.zIndex =+ idxInAll > 0+ ? (allItems[idxInAll - 1].zIndex || 0) - 1+ : Math.max(0, minZ - 1);+ const newArr = [...arr];+ newArr[idx] = item;+ setter(newArr);+ }+ };+ updateItem(images, setImages);+ updateItem(videos, setVideos);+ updateItem(audios, setAudios);+ updateItem(texts, setTexts);+ setContextMenu(null);+ };++ const handleToggleState = (field) => {+ const id = contextMenu?.nodeId || selectedId;+ if (!id) return;+ const updateItem = (arr, setter) => {+ const idx = arr.findIndex((i) => i.id === id);+ if (idx !== -1) {+ const newArr = [...arr];+ newArr[idx] = { ...newArr[idx], [field]: !newArr[idx][field] };+ setter(newArr);+ if (field === "locked" && newArr[idx].locked) setSelectedId(null);+ }+ };+ updateItem(images, setImages);+ updateItem(videos, setVideos);+ updateItem(audios, setAudios);+ updateItem(texts, setTexts);+ setContextMenu(null);+ };++ const handleFlip = (direction) => {+ const id = contextMenu?.nodeId || selectedId;+ if (!id) return;+ const updateItem = (arr, setter) => {+ const idx = arr.findIndex((i) => i.id === id);+ if (idx !== -1) {+ const item = { ...arr[idx] };+ if (direction === "horizontal") {+ item.scaleX = (item.scaleX || 1) * -1;+ item.offsetX = item.scaleX === -1 ? item.width || 0 : 0;+ } else {+ item.scaleY = (item.scaleY || 1) * -1;+ item.offsetY = item.scaleY === -1 ? item.height || 0 : 0;+ }+ const newArr = [...arr];+ newArr[idx] = item;+ setter(newArr);+ }+ };+ updateItem(images, setImages);+ updateItem(videos, setVideos);+ updateItem(audios, setAudios);+ updateItem(texts, setTexts);+ setContextMenu(null);+ };++ const handleDelete = () => {+ const id = contextMenu?.nodeId || selectedId;+ if (id) {+ setImages(images.filter((img) => img.id !== id));+ setVideos(videos.filter((vid) => vid.id !== id));+ setAudios(audios.filter((aud) => aud.id !== id));+ setTexts(texts.filter((txt) => txt.id !== id));+ if (selectedId === id) setSelectedId(null);+ }+ setContextMenu(null);+ };++ // Resize Observer for Stage+ useEffect(() => {+ if (!stageWrapperRef.current) return;+ const resizeObserver = new ResizeObserver((entries) => {+ for (let entry of entries) {+ const { width, height } = entry.contentRect;+ if (width > 0 && height > 0) {+ setCanvasSize({ width, height });+ }+ }+ });+ resizeObserver.observe(stageWrapperRef.current);+ return () => resizeObserver.disconnect();+ }, []);++ // Keyboard Shortcuts+ useEffect(() => {+ const handleKeyDown = (e) => {+ if (+ document.activeElement.tagName === "INPUT" ||+ document.activeElement.tagName === "TEXTAREA"+ )+ return;+ if (e.ctrlKey || e.metaKey) {+ if (e.key === "=" || e.key === "+") {+ e.preventDefault();+ updateZoom(Math.min(5, zoom + 0.1));+ } else if (e.key === "-") {+ e.preventDefault();+ updateZoom(Math.max(0.1, zoom - 0.1));+ } else if (e.key === "0") {+ e.preventDefault();+ updateZoom(1);+ } else if (e.key === "c") handleCopy();+ else if (e.key === "x") handleCut();+ else if (e.key === "v") handlePasteNode();+ else if (e.key === "d") {+ e.preventDefault();+ handleDuplicate();+ } else if (e.key === "]") {+ e.preventDefault();+ handleZIndex("up");+ } else if (e.key === "[") {+ e.preventDefault();+ handleZIndex("down");+ }+ } else if (e.key === "Delete" || e.key === "Backspace") {+ handleDelete();+ } else if (e.key === "]") {+ if (selectedId) handleZIndex("front");+ } else if (e.key === "[") {+ if (selectedId) handleZIndex("back");+ } else if (e.shiftKey && (e.key === "!" || e.key === "1")) {+ e.preventDefault();+ handleZoomToFit();+ }+ };+ window.addEventListener("keydown", handleKeyDown);+ return () => window.removeEventListener("keydown", handleKeyDown);+ }, [zoom, images, videos, texts, selectedId, clipboardNode]);++ // Snapping Guides+ const getLineGuide = (node) => {+ const stage = node.getStage();+ const layer = node.getLayer();+ const box = node.getClientRect({ relativeTo: layer });+ const result = { vertical: [], horizontal: [] };+ const otherNodes = stage.find(".konva-item").filter((n) => n !== node);+ const GUIDELINE_OFFSET = 5 / zoom;+ otherNodes.forEach((otherNode) => {+ const oBox = otherNode.getClientRect({ relativeTo: layer });+ const nodeEdges = [+ { guide: box.x, offset: box.x - node.x(), orientation: "v" },+ {+ guide: box.x + box.width / 2,+ offset: box.x + box.width / 2 - node.x(),+ orientation: "v",+ },+ {+ guide: box.x + box.width,+ offset: box.x + box.width - node.x(),+ orientation: "v",+ },+ { guide: box.y, offset: box.y - node.y(), orientation: "h" },+ {+ guide: box.y + box.height / 2,+ offset: box.y + box.height / 2 - node.y(),+ orientation: "h",+ },+ {+ guide: box.y + box.height,+ offset: box.y + box.height - node.y(),+ orientation: "h",+ },+ ];+ const otherEdges = [+ { guide: oBox.x, orientation: "v" },+ { guide: oBox.x + oBox.width / 2, orientation: "v" },+ { guide: oBox.x + oBox.width, orientation: "v" },+ { guide: oBox.y, orientation: "h" },+ { guide: oBox.y + oBox.height / 2, orientation: "h" },+ { guide: oBox.y + oBox.height, orientation: "h" },+ ];+ nodeEdges.forEach((nEdge) => {+ otherEdges.forEach((oEdge) => {+ if (nEdge.orientation !== oEdge.orientation) return;+ if (Math.abs(nEdge.guide - oEdge.guide) <= GUIDELINE_OFFSET) {+ if (nEdge.orientation === "v")+ result.vertical.push({+ lineGuide: oEdge.guide,+ diff: oEdge.guide - nEdge.guide,+ });+ else+ result.horizontal.push({+ lineGuide: oEdge.guide,+ diff: oEdge.guide - nEdge.guide,+ });+ }+ });+ });+ });+ return result;+ };++ const handleDragMove = (e) => {+ const node = e.target;+ const guidesFound = getLineGuide(node);+ const newGuides = [];+ if (guidesFound.vertical.length > 0) {+ const g = guidesFound.vertical[0];+ node.x(node.x() + g.diff);+ newGuides.push({+ points: [g.lineGuide, -5000, g.lineGuide, 10000],+ stroke: "#3898ec",+ strokeWidth: 1 / zoom,+ dash: [4, 4],+ });+ }+ if (guidesFound.horizontal.length > 0) {+ const g = guidesFound.horizontal[0];+ node.y(node.y() + g.diff);+ newGuides.push({+ points: [-5000, g.lineGuide, 10000, g.lineGuide],+ stroke: "#3898ec",+ strokeWidth: 1 / zoom,+ dash: [4, 4],+ });+ }+ setGuides(newGuides);+ };++ const handleDragEnd = (e, item) => {+ const node = e.target;+ const id = item.id;+ const update = (arr, setter) => {+ const idx = arr.findIndex((i) => i.id === id);+ if (idx !== -1) {+ const next = [...arr];+ next[idx] = { ...next[idx], x: node.x(), y: node.y() };+ setter(next);+ }+ };+ if (id.startsWith("img")) update(images, setImages);+ else if (id.startsWith("vid")) update(videos, setVideos);+ else if (id.startsWith("txt")) update(texts, setTexts);+ setGuides([]);+ };++ const handleWheel = (e) => {+ e.evt.preventDefault();+ const stage = stageRef.current;+ if (!stage) return;+ const scaleBy = 1.05;+ const oldScale = stage.scaleX();+ const pointer = stage.getPointerPosition();+ if (!pointer) return;+ const mousePointTo = {+ x: (pointer.x - stage.x()) / oldScale,+ y: (pointer.y - stage.y()) / oldScale,+ };+ const newScale =+ e.evt.deltaY < 0 ? oldScale * scaleBy : oldScale / scaleBy;+ const boundedScale = Math.max(0.1, Math.min(5, newScale));+ updateZoom(boundedScale, {+ x: pointer.x - mousePointTo.x * boundedScale,+ y: pointer.y - mousePointTo.y * boundedScale,+ });+ setContextMenu(null);+ };++ const handleDrop = (e) => {+ e.preventDefault();+ const url = e.dataTransfer.getData("text/plain");+ const files = e.dataTransfer.files;+ if (url) {+ if (url.match(/\.(mp4|webm|mov)$/i)) addVideo(url);+ else if (url.match(/\.(mp3|wav|ogg|m4a)$/i)) addAudio(url);+ else addImage(url);+ } else if (files && files.length > 0) {+ const file = files[0];+ const reader = new FileReader();+ reader.onload = (ev) => {+ if (file.type.startsWith("video/")) addVideo(ev.target.result);+ else if (file.type.startsWith("audio/")) addAudio(ev.target.result);+ else addImage(ev.target.result);+ };+ reader.readAsDataURL(file);+ }+ };++ return (+ <div+ className="relative w-full h-full bg-bg-page overflow-hidden"+ ref={containerRef}+ onDragOver={(e) => e.preventDefault()}+ onDrop={handleDrop}+ >+ <div ref={stageWrapperRef} className="absolute inset-0">+ <Stage+ width={canvasSize.width}+ height={canvasSize.height}+ onMouseDown={(e) => {+ if (e.evt.button === 2) return;+ if (e.target === e.target.getStage()) setSelectedId(null);+ setContextMenu(null);+ }}+ onContextMenu={(e) => {+ e.evt.preventDefault();+ const stage = e.target.getStage();+ const id = e.target.id();+ setContextMenu({+ type: e.target === stage ? "canvas" : "node",+ nodeId: id,+ x: e.evt.clientX,+ y: e.evt.clientY,+ stagePos: stage.getPointerPosition(),+ });+ if (id) setSelectedId(id);+ }}+ onWheel={handleWheel}+ scaleX={zoom}+ scaleY={zoom}+ ref={stageRef}+ draggable+ onDragMove={(e) => {+ if (e.target === stageRef.current && containerRef.current) {+ containerRef.current.style.backgroundPosition = `${e.target.x()}px ${e.target.y()}px`;+ }+ }}+ >+ <Layer>+ <Rect+ width={10000}+ height={10000}+ x={-5000}+ y={-5000}+ fill="#ffffff03"+ listening={false}+ />+ {[...images, ...videos, ...audios, ...texts]+ .sort((a, b) => (a.zIndex || 0) - (b.zIndex || 0))+ .map((item) => {+ if (item.id.startsWith("img"))+ return (+ <URLImage+ key={item.id}+ imageObj={item}+ isSelected={item.id === selectedId}+ onSelect={() => setSelectedId(item.id)}+ onDragMove={handleDragMove}+ onDragEnd={handleDragEnd}+ onChange={(attrs) =>+ setImages((prev) =>+ prev.map((i) =>+ i.id === item.id ? { ...i, ...attrs } : i,+ ),+ )+ }+ />+ );+ if (item.id.startsWith("vid"))+ return (+ <URLVideo+ key={item.id}+ videoObj={item}+ isSelected={item.id === selectedId}+ onSelect={() => setSelectedId(item.id)}+ onDragMove={handleDragMove}+ onDragEnd={handleDragEnd}+ onChange={(attrs) =>+ setVideos((prev) =>+ prev.map((v) =>+ v.id === item.id ? { ...v, ...attrs } : v,+ ),+ )+ }+ />+ );+ if (item.id.startsWith("aud"))+ return (+ <URLAudio+ key={item.id}+ audioObj={item}+ isSelected={item.id === selectedId}+ onSelect={() => setSelectedId(item.id)}+ onDragMove={handleDragMove}+ onDragEnd={handleDragEnd}+ onChange={(attrs) =>+ setAudios((prev) =>+ prev.map((a) =>+ a.id === item.id ? { ...a, ...attrs } : a,+ ),+ )+ }+ />+ );+ if (item.id.startsWith("txt"))+ return (+ <URLText+ key={item.id}+ textObj={item}+ isSelected={item.id === selectedId}+ onSelect={() => setSelectedId(item.id)}+ onDblClick={setEditingTextId}+ onDragMove={handleDragMove}+ onDragEnd={handleDragEnd}+ onChange={(attrs) =>+ setTexts((prev) =>+ prev.map((t) =>+ t.id === item.id ? { ...t, ...attrs } : t,+ ),+ )+ }+ />+ );+ return null;+ })}+ {activeTasks+ .filter((t) => !t.fullyMounted)+ .map((task) => (+ <LoaderNode+ key={task.taskId}+ task={task}+ isSelected={selectedId === task.taskId}+ onSelect={() => setSelectedId(task.taskId)}+ theme={theme}+ onChange={(attrs) =>+ setActiveTasks((prev) =>+ prev.map((t) =>+ t.taskId === task.taskId ? { ...t, ...attrs } : t,+ ),+ )+ }+ />+ ))}+ {guides.map((line, i) => (+ <Line key={i} {...line} />+ ))}+ </Layer>+ </Stage>+ </div>++ {/* Text Editor Overlay */}+ {editingTextId &&+ (() => {+ const node = texts.find((t) => t.id === editingTextId);+ if (!node || !stageRef.current) return null;+ const stage = stageRef.current;+ const absX = node.x * zoom + stage.x();+ const absY = node.y * zoom + stage.y();+ return (+ <textarea+ autoFocus+ value={node.text}+ onChange={(e) =>+ setTexts((prev) =>+ prev.map((t) =>+ t.id === editingTextId+ ? { ...t, text: e.target.value }+ : t,+ ),+ )+ }+ onBlur={() => setEditingTextId(null)}+ onKeyDown={(e) => {+ if (e.key === "Escape" || (e.key === "Enter" && !e.shiftKey))+ setEditingTextId(null);+ }}+ className="absolute z-50 bg-transparent border-none outline-none resize-none overflow-hidden"+ style={{+ left: absX,+ top: absY,+ width: (node.width || 200) * zoom,+ fontSize: (node.fontSize || 24) * zoom,+ color: node.fill || (theme === "dark" ? "white" : "black"),+ transform: `rotate(${node.rotation || 0}deg)`,+ }}+ />+ );+ })()}++ {/* Context Menu */}+ {contextMenu && (+ <div+ ref={(node) => {+ if (node) {+ const rect = node.getBoundingClientRect();+ if (rect.right > window.innerWidth)+ node.style.marginLeft = `-${rect.right - window.innerWidth + 10}px`;+ if (rect.bottom > window.innerHeight)+ node.style.marginTop = `-${rect.bottom - window.innerHeight + 10}px`;+ }+ }}+ className={`fixed z-[100] w-56 rounded shadow-2xl border border-divider text-sm ${theme === "dark" ? "bg-bg-card border-border-main text-text-main" : "bg-bg-card border-border-main text-text-main"}`}+ style={{ top: contextMenu.y, left: contextMenu.x }}+ onClick={(e) => e.stopPropagation()}+ >+ {contextMenu.type === "node" ? (+ <>+ <MenuButton+ label="Copy"+ shortcut="Ctrl+C"+ onClick={handleCopy}+ theme={theme}+ />+ <MenuButton+ label="Cut"+ shortcut="Ctrl+X"+ onClick={handleCut}+ theme={theme}+ />+ <MenuButton+ label="Duplicate"+ shortcut="Ctrl+D"+ onClick={handleDuplicate}+ theme={theme}+ />+ <MenuDivider theme={theme} />+ <MenuButton+ label="Bring to Front"+ shortcut="]"+ onClick={() => handleZIndex("front")}+ theme={theme}+ />+ <MenuButton+ label="Send to Back"+ shortcut="["+ onClick={() => handleZIndex("back")}+ theme={theme}+ />+ <MenuButton+ label="Move Up"+ shortcut="Ctrl+]"+ onClick={() => handleZIndex("up")}+ theme={theme}+ />+ <MenuButton+ label="Move Down"+ shortcut="Ctrl+["+ onClick={() => handleZIndex("down")}+ theme={theme}+ />+ <MenuDivider theme={theme} />+ <MenuButton+ label="Lock/Unlock"+ shortcut="Ctrl+Shift+L"+ onClick={() => handleToggleState("locked")}+ theme={theme}+ />+ <MenuButton+ label="Show/Hide"+ shortcut="Ctrl+Shift+H"+ onClick={() => handleToggleState("hidden")}+ theme={theme}+ />+ <MenuDivider theme={theme} />+ <MenuButton+ label="Flip Horizontal"+ onClick={() => handleFlip("horizontal")}+ theme={theme}+ />+ <MenuButton+ label="Flip Vertical"+ onClick={() => handleFlip("vertical")}+ theme={theme}+ />+ <MenuDivider theme={theme} />+ <MenuButton+ label="Download"+ onClick={handleDownload}+ theme={theme}+ />+ <MenuDivider theme={theme} />+ {!contextMenu?.nodeId?.startsWith("aud") && (+ <div className="relative group">+ <button+ className={`w-full text-left px-4 py-1.5 flex justify-between items-center transition-colors ${theme === "dark" ? "hover:bg-bg-page" : "hover:bg-bg-page"}`}+ >+ <span>Export As</span>+ <span>›</span>+ </button>+ <div+ className={`absolute left-full bottom-0 hidden group-hover:block w-32 rounded shadow-2xl border border-divider text-sm ${theme === "dark" ? "bg-bg-card border-border-main" : "bg-bg-card border-border-main"}`}+ >+ <MenuButton+ label="PNG"+ onClick={() => handleExport("PNG")}+ theme={theme}+ />+ <MenuButton+ label="JPG"+ onClick={() => handleExport("JPG")}+ theme={theme}+ />+ <MenuButton+ label="SVG"+ onClick={() => handleExport("SVG")}+ theme={theme}+ />+ </div>+ </div>+ )}+ <MenuDivider theme={theme} />+ <MenuButton+ label="Delete"+ shortcut="Del"+ onClick={handleDelete}+ theme={theme}+ />+ </>+ ) : (+ <>+ <MenuButton+ label="Paste"+ shortcut="Ctrl+V"+ onClick={handlePasteNode}+ theme={theme}+ />+ <MenuDivider theme={theme} />+ <MenuButton+ label="Zoom In"+ shortcut="Ctrl++"+ onClick={() => updateZoom(Math.min(5, zoom + 0.1))}+ theme={theme}+ />+ <MenuButton+ label="Zoom Out"+ shortcut="Ctrl+-"+ onClick={() => updateZoom(Math.max(0.1, zoom - 0.1))}+ theme={theme}+ />+ <MenuButton+ label="Zoom to Fit"+ shortcut="Shift+1"+ onClick={handleZoomToFit}+ theme={theme}+ />+ <MenuButton+ label="Reset Zoom"+ shortcut="Ctrl+0"+ onClick={() => updateZoom(1)}+ theme={theme}+ />+ <MenuDivider theme={theme} />+ <MenuButton+ label="Export Canvas"+ onClick={handleExportCanvas}+ theme={theme}+ />+ <MenuButton+ label="Show All Hidden"+ onClick={handleShowAllHidden}+ theme={theme}+ />+ <MenuButton+ label="Clear Canvas"+ onClick={handleClearCanvas}+ theme={theme}+ />+ </>+ )}+ </div>+ )}+ </div>+ );+ },+);++CanvasArea.displayName = "CanvasArea";++export default CanvasArea;diff --git a/packages/design-agent/src/CreativeCanvas.jsx b/packages/design-agent/src/CreativeCanvas.jsxnew file mode 100644index 0000000..12f1f92--- /dev/null+++ b/packages/design-agent/src/CreativeCanvas.jsx@@ -0,0 +1,1878 @@+"use client";++import React, { useState, useEffect, useRef, useCallback, Suspense, useMemo } from "react";+import { useRouter, useSearchParams } from "next/navigation";+import axios from "axios";+import {+ FiSend, FiImage, FiTerminal, FiSearch,+ FiZap, FiLayout, FiUpload,+ FiPlus, FiSun, FiMoon, FiCheck, FiX, FiEdit2,+ FiArrowLeft, FiAlertCircle, FiCopy,+} from "react-icons/fi";+import { CgTerminal } from "react-icons/cg";+import { BiLoaderAlt } from "react-icons/bi";+import { RiRobot2Line, RiSparklingLine } from "react-icons/ri";+// import { useUser } from "@/context/UserContext";+import { useTheme } from "next-themes";+import dynamic from "next/dynamic";+import toast, { Toaster } from "react-hot-toast";+import ReactMarkdown from "react-markdown";+import remarkGfm from "remark-gfm";+import PlanVisualizer from "./components/PlanVisualizer";+import Link from "next/link";+import { GoBook } from "react-icons/go";+import { VscLayoutSidebarLeftOff } from "react-icons/vsc";++const CanvasArea = dynamic(() => import("./CanvasArea"), { ssr: false });+const SyntaxHighlighter = dynamic(+ () => import('react-syntax-highlighter').then((mod) => mod.Prism),+ { ssr: false }+);+import { oneLight, oneDark } from 'react-syntax-highlighter/dist/esm/styles/prism';+import { HiOutlineArrowUpTray, HiOutlineTrash } from "react-icons/hi2";+import Image from "next/image";+++const API = "/api/v1/creative-agent";++const formatTime = (dateStr) => {+ if (!dateStr) return "";+ const d = new Date(dateStr);+ return d.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });+};++const formatDateHeader = (dateStr) => {+ if (!dateStr) return "";+ const d = new Date(dateStr);+ const now = new Date();+ if (d.toDateString() === now.toDateString()) return "Today";+ const yesterday = new Date(now);+ yesterday.setDate(now.getDate() - 1);+ if (d.toDateString() === yesterday.toDateString()) return "Yesterday";+ return d.toLocaleDateString([], { weekday: 'long', month: 'short', day: 'numeric' });+};++const TypingDots = () => (+ <div className="typing-dots py-1.5 px-1">+ <span></span>+ <span></span>+ <span></span>+ </div>+);++export default function CreativeCanvas({+ user,+ theme: forcedTheme,+ setTheme: forcedSetTheme,+ creditConversionRate = 200,+ // Embed-mode props (set by the /embed/agent/[id] page).+ // When embedCode is truthy, the component:+ // 1. Sends `x-agent-embed-code: <code>` instead of a Bearer token.+ // 2. Tracks session_id in localStorage instead of the URL query string+ // (the iframe URL stays at /embed/agent/<code>).+ // 3. Hides owner-only UI (sessions sidebar, profile menu, / links).+ embedCode = null,+ isEmbed = false,+ // Platform customization props:+ // navLinks: array of { icon, label, path } to show in the user dropdown menu.+ // If not provided, defaults to the muapiapp links (Explore, Top Up, etc.).+ navLinks = null,+ // userBalanceLabel: string like "$ 5.00" or "1200 credits" to show in the dropdown.+ // If not provided, falls back to "$ {user.balance}".+ userBalanceLabel = null,+}) {+ const router = useRouter();+ const searchParams = useSearchParams();+ const inEmbedMode = isEmbed && !!embedCode;+ const embedStorageKey = inEmbedMode ? `muapi_agent_session_${embedCode}` : null;+ const [embedSessionId, setEmbedSessionId] = useState(() => {+ if (typeof window === "undefined" || !embedStorageKey) return null;+ return window.localStorage.getItem(embedStorageKey) || null;+ });+ const sessionId = inEmbedMode ? embedSessionId : searchParams.get("session");++ const [input, setInput] = useState("");+ const [messages, setMessages] = useState([]);+ const [assets, setAssets] = useState([]);+ const [activeTasks, setActiveTasks] = useState([]);+ const [busy, setBusy] = useState(false);+ const [openProfile, setOpenProfile] = useState(false);+ const [zoomLevel, setZoomLevel] = useState(100);+ const [attachments, setAttachments] = useState([]);+ const [uploading, setUploading] = useState(false);+ const [uploadProgress, setUploadProgress] = useState(0);+ const [isDragging, setIsDragging] = useState(false);++ const [sessions, setSessions] = useState([]);+ const [currentSessionName, setCurrentSessionName] = useState("Creative Canvas");+ const [isEditingName, setIsEditingName] = useState(false);+ const [newName, setNewName] = useState("");+ const [showSessions, setShowSessions] = useState(false);+ const [skills, setSkills] = useState([]);+ const [activeSkill, setActiveSkill] = useState(null);+ const [showSkillsMenu, setShowSkillsMenu] = useState(false);+ const [showAssetsMenu, setShowAssetsMenu] = useState(false);+ const [showMentionPopup, setShowMentionPopup] = useState(false);+ const [mentionQuery, setMentionQuery] = useState("");+ const [mentionCursorPos, setMentionCursorPos] = useState(0);+ const [hoveredAsset, setHoveredAsset] = useState(null);++ // Left Sidebar and Session Management+ const [showLeftSidebar, setShowLeftSidebar] = useState(true);+ const [editingSessionId, setEditingSessionId] = useState(null);+ const [editingSessionName, setEditingSessionName] = useState("");+ const [hoveredSessionId, setHoveredSessionId] = useState(null);++ // Layout resizing+ const [sidebarWidth, setSidebarWidth] = useState(350);+ const [showChat, setShowChat] = useState(true);+ const [prevWidth, setPrevWidth] = useState(350);+ const isResizing = useRef(false);++ const handleToggleSidebar = () => {+ if (showChat) {+ setPrevWidth(sidebarWidth);+ setSidebarWidth(0);+ setShowChat(false);+ } else {+ setSidebarWidth(prevWidth || 350);+ setShowChat(true);+ }+ };++ // Theme handling: Use props if provided, otherwise fallback to useTheme hook+ const { setTheme: nextSetTheme, resolvedTheme: nextResolvedTheme } = useTheme();+ const resolvedTheme = forcedTheme || nextResolvedTheme;+ const setTheme = forcedSetTheme || nextSetTheme;+ const [mounted, setMounted] = useState(false);++ const canvasRef = useRef(null);+ const chatEndRef = useRef(null);+ const textareaRef = useRef(null);+ const fileInputRef = useRef(null);+ const syncedUrlsRef = useRef(new Set());+ const justCreatedSessionRef = useRef(false);+ const initialHandoffProcessed = useRef(false);++ const getHeaders = useCallback(() => {+ if (inEmbedMode) {+ return { "x-agent-embed-code": embedCode };+ }+ const token = typeof window !== "undefined" ? localStorage.getItem("token") : null;+ return token ? { Authorization: `Bearer ${token}` } : {};+ }, [inEmbedMode, embedCode]);++ // Persist embed session_id across page reloads so the conversation resumes.+ const setActiveEmbedSession = useCallback((id) => {+ setEmbedSessionId(id);+ if (typeof window !== "undefined" && embedStorageKey) {+ if (id) window.localStorage.setItem(embedStorageKey, id);+ else window.localStorage.removeItem(embedStorageKey);+ }+ }, [embedStorageKey]);++ // Initialize+ useEffect(() => {+ setMounted(true);+ // In embed mode there's no concept of "switch to another session" — the+ // visitor only ever sees the one keyed by their localStorage. Skip the+ // sessions list fetch (which would also 403-on-allowed-origins or surface+ // sessions from other embeds spawned by the same owner).+ if (!inEmbedMode) fetchSessions();+ fetchSkills();+ }, []);++ // Handle initial query and skill from URL (Fallback only)+ useEffect(() => {+ if (!mounted || busy || initialHandoffProcessed.current) return;+ // Embed pages never have a / handoff URL — skip.+ if (inEmbedMode) {+ initialHandoffProcessed.current = true;+ return;+ }++ const q = searchParams.get("q");+ const skillName = searchParams.get("skill");+ const a = searchParams.get("a");++ if (!q && !skillName && !a) {+ initialHandoffProcessed.current = true;+ return;+ }++ // We only process URL parameters if the session is brand new AND history has loaded as empty or default.+ // Since the Dashboard now sends the message, this useEffect will typically see the user message in history+ // and correctly skip sending q again.+ const isNewSession = messages.length === 1 && messages[0].role === "assistant";++ if (isNewSession) {+ initialHandoffProcessed.current = true;++ let initialAtts = null;+ if (a) {+ initialAtts = a.split(",").map(label => ({ asset_label: label, kind: "image" }));+ }++ if (skillName && !activeSkill) {+ const found = skills.find(s => s.name === skillName);+ if (found) {+ setActiveSkill(found);+ if (q) {+ setTimeout(() => sendMessage(q, found, initialAtts), 10);+ }+ }+ } else if (q) {+ sendMessage(q, null, initialAtts);+ }++ // Cleanup URL once processed+ const newParams = new URLSearchParams(searchParams.toString());+ newParams.delete("q");+ newParams.delete("skill");+ newParams.delete("a");+ router.replace(`?${newParams.toString()}`, { scroll: false });+ } else if (messages.length > 1 || (messages.length === 1 && messages[0].role === "user")) {+ // If history already has messages, we consider the handoff "processed" by the backend.+ initialHandoffProcessed.current = true;++ const newParams = new URLSearchParams(searchParams.toString());+ newParams.delete("q");+ newParams.delete("skill");+ newParams.delete("a");+ router.replace(`?${newParams.toString()}`, { scroll: false });+ }+ }, [mounted, busy, messages, skills.length, searchParams]);++ useEffect(() => {+ if (justCreatedSessionRef.current) {+ justCreatedSessionRef.current = false;+ return;+ }+ // Clear the sync-tracking set whenever the session changes so assets from+ // the new session are always painted to canvas (prevents stale URL leakage).+ syncedUrlsRef.current.clear();+ if (sessionId) {+ loadHistory();+ loadAssets();+ // Sync name if sessions are already loaded+ const current = sessions.find(s => s.id === sessionId);+ if (current) {+ setCurrentSessionName(current.name);+ } else {+ fetchSessions(); // Re-fetch to find the name if not in list+ }+ } else {+ setMessages([{ role: "assistant", content: `Hello ${user?.username || "User"} — what shall we create today?`, timestamp: new Date().toISOString() }]);+ setAssets([]);+ setCurrentSessionName("New Session");+ }+ }, [sessionId]); // Removed sessions from deps to avoid infinite loop if fetchSessions updates sessions++ const fetchSessions = async () => {+ try {+ const { data } = await axios.get(`${API}/sessions`, { headers: getHeaders() });+ setSessions(data);+ if (sessionId) {+ const current = data.find(s => s.id === sessionId);+ if (current) setCurrentSessionName(current.name);+ }+ } catch {}+ };++ const fetchSkills = async () => {+ try {+ const { data } = await axios.get(`${API}/agent-skills`, { headers: getHeaders() });+ setSkills(data);+ } catch (err) {+ console.error("Failed to fetch skills:", err);+ }+ };++ const processEvent = (ev, msgIdx) => {+ const p = ev.payload || {};++ // Canvas mutation events — apply directly to the live canvas, don't push+ // them into the chat transcript.+ if (ev.type === "canvas_op") {+ const op = p.op;+ const args = p.args || {};+ const c = canvasRef.current;+ if (!c) return;+ if (op === "move" && typeof c.moveNode === "function") {+ c.moveNode(args.asset_id, args.x, args.y);+ } else if (op === "arrange" && typeof c.arrangeNodes === "function") {+ c.arrangeNodes(args.moves || []);+ }+ return;+ }++ const flat = (() => {+ switch (ev.type) {+ case "text": return { type: "text", content: p.content };+ case "info": return { type: "info", content: p.content };+ case "error": return { type: "error", message: p.message };+ case "tool_call": return { type: "tool_call", name: p.name, args: p.args };+ case "tool_result": return { type: "tool_result", name: p.name, result: p.result, asset: p.asset };+ case "plan_propose": return { type: "plan_propose", title: p.title, nodes: p.nodes, total_credits: p.total_credits };+ default: return { type: ev.type, ...p };+ }+ })();+ if (!flat) return;+ flat.job_id = ev.job_id || p.job_id;++ // If the job has already been approved or rejected, mark approval events as handled.+ if (ev.approved !== undefined && ev.approved !== null) {+ const isApproval = flat.type === "plan_propose" || (flat.type === "info" && (flat.content?.includes("approval") || flat.content?.includes("confirmation")));+ if (isApproval) {+ flat.handled = true;+ }+ }++ setMessages(prev => {+ const arr = [...prev];+ if (msgIdx < 0 || msgIdx >= arr.length) return arr;+ const m = { ...arr[msgIdx], events: [...(arr[msgIdx].events || [])] };+ if (m.events.find(e => e.id === ev.id)) return arr;++ // Update event and mark previous ones as handled if this is a result+ m.events.push({ ...flat, id: ev.id });+ if (flat.type === "text") m.content = (m.content || "") + (flat.content || "");++ // If this is an info-approval pill, hide it if we already have a plan for this job+ if (flat.type === "info" && (flat.content?.includes("approval") || flat.content?.includes("confirmation"))) {+ const hasPlan = m.events.some(e => e.job_id === flat.job_id && e.type === "plan_propose");+ if (hasPlan) flat.handled = true;+ }++ if (flat.type === "tool_result" || flat.type === "error") {+ m.events = m.events.map(e =>+ e.job_id === flat.job_id && (+ (e.type === "info" && (e.content?.includes("approval") || e.content?.includes("confirmation"))) ||+ (e.type === "plan_propose")+ )+ ? { ...e, handled: true }+ : e+ );+ }++ // If we just got a plan, hide any loose "Waiting for approval" pills for this job+ if (flat.type === "plan_propose") {+ m.events = m.events.map(e =>+ e.job_id === flat.job_id && e.type === "info" && (e.content?.includes("approval") || e.content?.includes("confirmation"))+ ? { ...e, handled: true }+ : e+ );+ }++ arr[msgIdx] = m;+ return arr;+ });++ if (flat.type === "tool_call" && ["generate_image", "generate_video", "image_to_video", "edit_image", "edit_video", "enhance_image"].includes(flat.name)) {+ // For edit-style tools, spawn the loader at the same spot the result+ // will land at — beside the source asset (32px to its right). The+ // source stays visible throughout. Keeps the loader and the final+ // asset position in sync — no visual jump on completion.+ //+ // generate_* (no source) keeps the default centre placement.+ let x, y;+ const a = flat.args || {};+ const srcLabel = a.image || a.video || a.audio;+ if (srcLabel && typeof srcLabel === "string" && srcLabel.startsWith("asset_")) {+ try {+ const cs = canvasRef.current?.getCanvasState?.();+ const srcNode = cs?.nodes?.find(n => n.asset_id === srcLabel);+ if (srcNode) {+ x = srcNode.x + (srcNode.w || 200) + 32;+ y = srcNode.y;+ }+ } catch {}+ }+ setActiveTasks(prev => [...prev, {+ taskId: `task-${Date.now()}-${Math.random()}`,+ modelName: flat.name,+ status: "processing",+ x, y,+ }]);+ }++ if (flat.type === "tool_result" || flat.type === "error") {+ setActiveTasks(prev => {+ const idx = prev.findIndex(t => t.modelName === flat.name);+ if (idx !== -1) {+ const next = [...prev];+ next.splice(idx, 1);+ return next;+ }+ return prev;+ });++ if (flat.asset) {+ setAssets(pa => {+ // Use a combination of label and url for reliable identification+ const idx = pa.findIndex(a =>+ (flat.asset.asset_label && a.asset_label === flat.asset.asset_label) ||+ (a.url === flat.asset.url)+ );+ if (idx !== -1) {+ const next = [...pa];+ next[idx] = { ...next[idx], ...flat.asset };+ return next;+ }+ return [...pa, flat.asset];+ });++ // Side-by-side placement: when a tool result carries source_asset_id,+ // drop the new asset just to the right of the source so both stay+ // visible. Source is preserved (the user can still see / branch+ // from it). Mark the new label-url as synced so the auto-sync+ // effect doesn't also drop it at canvas centre.+ const srcLabel = flat.result?.source_asset_id;+ const newLabel = flat.asset.asset_label;+ const newUrl = flat.asset.url;+ const newKind = flat.asset.kind || "image";+ const place = canvasRef.current?.placeNextToSource || canvasRef.current?.replaceAt;+ if (srcLabel && newLabel && newUrl && place) {+ place(srcLabel, newUrl, newKind, newLabel);+ syncedUrlsRef.current?.add?.(`${newLabel}-${newUrl}`);+ }+ }+ }+ };++ const resumePolling = async (jobId, assistantIdx) => {+ let cursor = 0;+ const POLL_INTERVAL = 1200;+ const MAX_DEAD_AIR = 6 * 60 * 1000;+ let lastProgress = Date.now();++ setBusy(true);+ while (true) {+ try {+ const { data } = await axios.get(`${API}/jobs/${jobId}/events`, {+ params: { since: cursor },+ headers: getHeaders(),+ });+ if (data.events?.length) {+ data.events.forEach(ev => processEvent({ ...ev, approved: data.approved }, assistantIdx));+ cursor = data.cursor || cursor;+ lastProgress = Date.now();+ }+ if (data.done) break;+ if (Date.now() - lastProgress > MAX_DEAD_AIR) throw new Error("Stalled");+ } catch (err) {+ if (Date.now() - lastProgress > MAX_DEAD_AIR) break;+ }+ await new Promise(r => setTimeout(r, POLL_INTERVAL));+ }+ setBusy(false);+ loadAssets();+ // Persist final state+ setMessages(prev => {+ const next = [...prev];+ axios.patch(`${API}/sessions/${sessionId}/messages`, { messages: next }, { headers: getHeaders() }).catch(() => {});+ return next;+ });+ };++ const handleJobAction = async (jobId, action) => {+ try {+ await axios.post(`${API}/jobs/${jobId}/${action}`, {}, { headers: getHeaders() });+ toast.success(`Job ${action}ed`);++ // Hide the approval card in the UI+ setMessages(prev => prev.map(m => ({+ ...m,+ events: (m.events || []).map(e =>+ e.job_id === jobId && (+ (e.type === "info" && (e.content?.includes("approval") || e.content?.includes("confirmation"))) ||+ (e.type === "plan_propose")+ )+ ? { ...e, handled: true }+ : e+ )+ })));+ } catch (err) {+ toast.error(err.response?.data?.detail || `Failed to ${action} job`);+ }+ };++ const loadHistory = async () => {+ try {+ const { data } = await axios.get(`${API}/sessions/${sessionId}/messages`, { headers: getHeaders() });+ if (data && data.length > 0) {+ // Cleanup: Hide approval cards that already have results or are for inactive jobs+ const cleaned = data.map(m => ({+ ...m,+ events: (m.events || []).map((e, idx, arr) => {+ if ((e.type === "info" && (e.content?.includes("approval") || e.content?.includes("confirmation"))) || e.type === "plan_propose") {+ const hasResult = arr.slice(idx + 1).some(next =>+ next.job_id === e.job_id && (next.type === "tool_result" || next.type === "error")+ );+ if (hasResult) return { ...e, handled: true };+ }+ return e;+ })+ }));+ setMessages(cleaned);+ checkActiveJobs(cleaned);+ } else {+ setMessages([{ role: "assistant", content: `Session ready — what shall we create?`, timestamp: new Date().toISOString() }]);+ }+ } catch {+ setMessages([{ role: "assistant", content: `Session ready — what shall we create?`, timestamp: new Date().toISOString() }]);+ }+ };++ const checkActiveJobs = async (currentMessages) => {+ if (!sessionId) return;+ try {+ const { data } = await axios.get(`${API}/sessions/${sessionId}/jobs`, { headers: getHeaders() });+ const active = data.find(j => (j.status === "pending" || j.status === "processing") && j.id);+ if (active) {+ // If the last message is assistant but empty/no events, it might be the one for this job.+ let aIdx = currentMessages.length - 1;+ if (aIdx < 0 || currentMessages[aIdx].role !== "assistant") {+ // No assistant bubble to resume into, create a new one.+ setMessages(prev => {+ const next = [...prev, { role: "assistant", content: "", events: [], timestamp: new Date().toISOString() }];+ resumePolling(active.id, next.length - 1);+ return next;+ });+ } else {+ resumePolling(active.id, aIdx);+ }+ }+ } catch {}+ };++ const loadAssets = async () => {+ if (!sessionId) return;+ try {+ const { data } = await axios.get(`${API}/sessions/${sessionId}/assets`, { headers: getHeaders() });+ setAssets(data);+ } catch {}+ };++ useEffect(() => {+ chatEndRef.current?.scrollIntoView({ behavior: "smooth" });+ }, [messages, busy]);++ const ensureSession = async () => {+ if (sessionId) return sessionId;+ const { data } = await axios.post(`${API}/sessions`, {}, { headers: getHeaders() });+ justCreatedSessionRef.current = true;+ if (inEmbedMode) {+ setActiveEmbedSession(data.id);+ } else {+ router.replace(`?session=${data.id}`, { scroll: false });+ fetchSessions();+ }+ return data.id;+ };++ const processFile = async (file) => {+ if (!file) return;++ setUploading(true);+ setUploadProgress(0);++ try {+ // 0. Make sure we have a session — uploaded assets must belong to one.+ const activeSessionId = await ensureSession();++ // 1. Get signed URL+ const { data: signData } = await axios.get("/api/v1/get_upload_url", {+ params: { filename: file.name },+ headers: getHeaders()+ });++ const { url, fields } = signData;++ // Use the proxy for the actual binary upload to maintain consistency and avoid CORS issues+ const formData = new FormData();+ formData.append("x-proxy-target-url", url);+ Object.entries(fields).forEach(([key, value]) => {+ formData.append(key, value);+ });+ formData.append("file", file);++ // 2. Upload via local proxy+ await axios.post("/api/v1/upload-binary", formData, {+ headers: { "Content-Type": "multipart/form-data" },+ onUploadProgress: (pe) => {+ setUploadProgress(Math.round((pe.loaded * 100) / pe.total));+ }+ });++ // 3. Final URL+ const uploadedUrl = `https://cdn.muapi.ai/${fields.key}`;++ // 4. Register as a real session asset so the agent can address it as asset_N.+ const kind = file.type?.startsWith("video/") ? "video"+ : file.type?.startsWith("audio/") ? "audio"+ : "image";+ const { data: registered } = await axios.post(+ `${API}/sessions/${activeSessionId}/assets`,+ { url: uploadedUrl, kind, source_tool: "upload" },+ { headers: getHeaders() },+ );++ const att = { asset_label: registered.asset_label, url: uploadedUrl, kind };+ setAttachments(prev => [...prev, att]);+ // Reflect on the canvas immediately.+ setAssets(prev => [...prev, {+ asset_label: registered.asset_label, url: uploadedUrl, kind,+ source_tool: "upload", model: null, prompt: null,+ }]);+ toast.success(`Uploaded as ${registered.asset_label}`);+ } catch (err) {+ console.error("Upload failed", err);+ toast.error("Upload failed");+ } finally {+ setUploading(false);+ setUploadProgress(0);+ if (fileInputRef.current) fileInputRef.current.value = "";+ }+ };++ const handleFileUpload = (e) => {+ processFile(e.target.files?.[0]);+ };++ const handleDragOver = (e) => {+ e.preventDefault();+ if (busy || uploading) return;+ setIsDragging(true);+ };++ const handleDragLeave = (e) => {+ e.preventDefault();+ setIsDragging(false);+ };++ const handleDrop = (e) => {+ e.preventDefault();+ setIsDragging(false);+ if (busy || uploading) return;+ const file = e.dataTransfer.files?.[0];+ if (file) processFile(file);+ };++ const removeAttachment = (label) => {+ setAttachments(prev => prev.filter(a => a.asset_label !== label));+ };++ const sendMessage = async (textOverride = null, skillOverride = null, attachmentsOverride = null) => {+ const typed = (typeof textOverride === 'string' ? textOverride : input).trim();+ const currentAttachments = attachmentsOverride || attachments;+ if ((!typed && currentAttachments.length === 0) || busy) return;++ const currentSkill = skillOverride || activeSkill;+++ let activeSessionId;+ try {+ activeSessionId = await ensureSession();+ } catch (err) {+ toast.error("Failed to establish session");+ return;+ }++ // Tell the LLM about any uploaded assets so it can call edit_image / image_to_video / etc.+ // by asset_label without us having to expose URLs in the user-visible bubble.+ const attachmentNote = currentAttachments.length+ ? "\n\n[Attached " + currentAttachments.map(a => `${a.asset_label} (${a.kind || "image"})`).join(", ") + "]"+ : "";+ const msg = typed + attachmentNote;+ const msgAttachments = [...currentAttachments];++ if (!attachmentsOverride) setAttachments([]);+ setInput("");+ if (textareaRef.current) textareaRef.current.style.height = "24px";++ const userMsg = {+ role: "user",+ content: msg,+ attachments: msgAttachments,+ timestamp: new Date().toISOString(),+ skill_name: currentSkill?.name+ };+ const updatedMessages = [...messages, userMsg];++ setMessages([...updatedMessages, { role: "assistant", content: "", events: [], timestamp: new Date().toISOString() }]);+ setBusy(true);++ const aIdx = updatedMessages.length;++ try {+ let canvasState = null;+ try {+ canvasState = canvasRef.current?.getCanvasState?.() || null;+ } catch {}++ let endpoint = `${API}/sessions/${activeSessionId}/chat`;+ let payload = {+ message: typed,+ model: "gpt-5-mini",+ messages_snapshot: updatedMessages,+ canvas_state: canvasState,+ };++ // If a skill is pinned, use the run-skill endpoint+ if (currentSkill) {+ endpoint = `${API}/sessions/${activeSessionId}/run-skill`;+ // Map the user input to the first required input of the skill+ const primaryInputKey = currentSkill.inputs?.[0] || "premise";+ payload = {+ skill_name: currentSkill.name,+ inputs: { [primaryInputKey]: typed },+ messages_snapshot: updatedMessages,+ model: "gpt-5-mini"+ };+ if (!skillOverride) setActiveSkill(null); // Clear skill after sending if not override+ }++ const enqueueRes = await axios.post(endpoint, payload, { headers: getHeaders() });+ await resumePolling(enqueueRes.data.job_id, aIdx);+ } catch (err) {+ setMessages(prev => {+ const arr = [...prev];+ if (aIdx >= 0) arr[aIdx] = { ...arr[aIdx], content: `❌ ${err.message || err}` };+ return arr;+ });+ } finally {+ setBusy(false);+ await loadAssets();+ if (activeSessionId) {+ setMessages(prev => {+ const newMsgs = [...prev];+ axios.patch(`${API}/sessions/${activeSessionId}/messages`, { messages: newMsgs }, { headers: getHeaders() }).catch(() => {});+ return newMsgs;+ });+ }+ }+ };++ const markdownComponents = useMemo(() => ({+ a: ({ node, ...props }) => {+ const isMedia = props.href?.match(/\.(jpeg|jpg|gif|png|webp|avif)$/i);+ const isVideo = props.href?.match(/\.(mp4|webm|mov)$/i);+ if (isMedia) {+ return (+ <span className="block mt-2 mb-1">+ <a href={props.href} target="_blank" rel="noreferrer" className="block relative group overflow-hidden rounded border border-divider shadow-sm">+ <img src={props.href} alt="Generated Asset" className="w-full h-auto object-cover transition-transform group-hover:scale-105" />+ <span className="absolute inset-0 bg-black/0 group-hover:bg-black/10 transition-colors" />+ </a>+ </span>+ );+ }+ if (isVideo) {+ return (+ <span className="block mt-2 mb-1">+ <video src={props.href} controls className="w-full rounded border border-divider shadow-sm" />+ </span>+ );+ }+ return <a {...props} className="text-primary hover:underline underline-offset-4 font-bold" target="_blank" rel="noreferrer" />;+ },+ div: ({ node, ...props }) => <div {...props} />,+ p: ({ node, ...props }) => <div className="mb-2 last:mb-0" {...props} />,+ pre: ({ node, ...props }) => <div className="my-3 overflow-x-auto rounded border border-divider" {...props} />,+ code: ({ node, inline, className, children, ...props }) => {+ const match = /language-(\w+)/.exec(className || '');+ return !inline && match ? (+ <SyntaxHighlighter+ style={resolvedTheme === 'dark' ? oneDark : oneLight}+ language={match[1]}+ showLineNumbers+ PreTag="div"+ className="scrollbar-subtle !m-0 !p-3 text-[12px]"+ {...props}+ >+ {String(children).replace(/\n$/, '')}+ </SyntaxHighlighter>+ ) : (+ <code className="bg-primary/10 text-primary px-1.5 py-0.5 rounded text-[12px] font-mono" {...props}>+ {children}+ </code>+ );+ }+ }), [resolvedTheme]);+++ // Sync assets to canvas once ref is ready — only push URLs not yet synced+ useEffect(() => {+ if (!sessionId || assets.length === 0) return;++ const newAssets = assets.filter(a => {+ const syncKey = `${a.asset_label || "no-label"}-${a.url}`;+ return !syncedUrlsRef.current.has(syncKey);+ });+ if (newAssets.length === 0) return;++ let attempts = 0;+ const sync = () => {+ if (canvasRef.current) {+ newAssets.forEach(a => {+ const syncKey = `${a.asset_label || "no-label"}-${a.url}`;+ if (!a.url || syncedUrlsRef.current.has(syncKey)) return;+ syncedUrlsRef.current.add(syncKey);++ const kind = a.kind || (a.url.match(/\.(mp4|webm|mov)$/i) ? "video" : a.url.match(/\.(mp3|wav|ogg|m4a)$/i) ? "audio" : "image");+ const label = a.asset_label || null;+ if (kind === "image") canvasRef.current.addImage(a.url, undefined, undefined, undefined, undefined, undefined, label);+ else if (kind === "video") canvasRef.current.addVideo(a.url, undefined, undefined, undefined, undefined, undefined, label);+ else if (kind === "audio") canvasRef.current.addAudio(a.url, undefined, undefined, undefined, label);+ });+ return true;+ }+ return false;+ };++ if (!sync()) {+ const timer = setInterval(() => {+ attempts++;+ if (sync() || attempts > 20) clearInterval(timer);+ }, 500);+ return () => clearInterval(timer);+ }+ }, [assets, sessionId]);++ const renameSession = async (id = null, name = null) => {+ const targetId = id || sessionId;+ const targetName = name || newName;+ const currentName = id ? (sessions.find(s => s.id === id)?.name) : currentSessionName;++ if (!targetId || !targetName.trim() || targetName.trim() === currentName) {+ setIsEditingName(false);+ setEditingSessionId(null);+ return;+ }+ try {+ await axios.patch(`${API}/sessions/${targetId}`, { name: targetName.trim() }, { headers: getHeaders() });+ if (targetId === sessionId) setCurrentSessionName(targetName.trim());+ setIsEditingName(false);+ setEditingSessionId(null);+ fetchSessions();+ toast.success("Session renamed");+ } catch {+ toast.error("Failed to rename session");+ setIsEditingName(false);+ setEditingSessionId(null);+ }+ };++ const deleteSession = async (id) => {+ // We use a simple confirm for safety, but with a premium look via toast if we had a custom one.+ // For now, standard confirm is reliable.+ if (!window.confirm("Are you sure you want to delete this session?")) return;+ try {+ await axios.delete(`${API}/sessions/${id}`, { headers: getHeaders() });+ toast.success("Session deleted");+ if (inEmbedMode) {+ if (id === sessionId) setActiveEmbedSession(null);+ } else {+ fetchSessions();+ if (id === sessionId) {+ router.push("/canvas");+ }+ }+ } catch (err) {+ toast.error("Failed to delete session");+ }+ };++ const handleMouseMove = useCallback((e) => {+ if (!isResizing.current) return;+ const newWidth = window.innerWidth - e.clientX;+ if (newWidth > 300 && newWidth < 800) {+ setSidebarWidth(newWidth);+ }+ }, []);++ const stopResizing = useCallback(() => {+ isResizing.current = false;+ document.removeEventListener("mousemove", handleMouseMove);+ document.removeEventListener("mouseup", stopResizing);+ document.body.style.cursor = "default";+ document.body.style.userSelect = "auto";+ }, [handleMouseMove]);++ const startResizing = useCallback((e) => {+ isResizing.current = true;+ document.addEventListener("mousemove", handleMouseMove);+ document.addEventListener("mouseup", stopResizing);+ document.body.style.cursor = "col-resize";+ document.body.style.userSelect = "none";+ }, [handleMouseMove, stopResizing]);++ const selectMention = (item, type) => {+ const before = input.substring(0, mentionCursorPos);+ // mentionCursorPos is where @ is. query is after @.+ const after = input.substring(textareaRef.current.selectionStart);++ if (type === "skill") {+ setActiveSkill(item);+ setInput(before + after);+ } else {+ const insertion = `@${item.asset_label}`;+ setInput(before + insertion + after);+ }++ setShowMentionPopup(false);+ setTimeout(() => textareaRef.current?.focus(), 10);+ };++ const copyToClipboard = async (text) => {+ if (!text) return;+ try {+ if (navigator.clipboard && window.isSecureContext) {+ await navigator.clipboard.writeText(text);+ toast.success("Copied to clipboard");+ } else {+ const textArea = document.createElement("textarea");+ textArea.value = text;+ document.body.appendChild(textArea);+ textArea.select();+ try {+ document.execCommand('copy');+ toast.success("Copied to clipboard");+ } catch (err) {+ toast.error("Failed to copy");+ }+ document.body.removeChild(textArea);+ }+ } catch (err) {+ toast.error("Failed to copy");+ }+ };++ const handleKey = (e) => { if (e.key === "Enter" && !e.shiftKey) { e.preventDefault(); sendMessage(); } };++ const filteredSkills = skills.filter(s => s.name.toLowerCase().includes(mentionQuery.toLowerCase()));+ const filteredAssets = assets.filter(a => (a.asset_label || "").toLowerCase().includes(mentionQuery.toLowerCase()));++ if (!mounted) return null;++ return (+ <div className="h-dvh w-full text-sm flex flex-col bg-bg-page text-primary-text overflow-hidden" style={{ fontFamily: "'Inter', sans-serif" }}>+ <Toaster position="top-right" reverseOrder={false} />+ <main className="flex h-full w-full overflow-hidden">+ {/* Left Sidebar: Session List — owner only. Embed visitors don't get+ a session switcher; the iframe is scoped to one localStorage-keyed+ session per embed code. */}+ <div className={`flex-shrink-0 flex flex-col bg-bg-card border-r border-divider shadow-[4px_0_12px_rgba(0,0,0,0.05)] z-20 transition-all duration-300 ${(showLeftSidebar || inEmbedMode) ? 'overflow-hidden w-0' : 'w-64'}`}>+ <div className="p-3 border-b border-divider flex items-center justify-between bg-bg-card/50">+ <div className="flex items-center gap-2 overflow-hidden">+ <Link+ href="/"+ className={`p-2 hover:bg-bg-page rounded text-secondary-text hover:text-primary transition-colors`}+ title="Go Back"+ >+ <FiArrowLeft size={16} />+ </Link>+ <Link+ href="/"+ className="flex items-center flex-shrink-0 transition-transform duration-300 hover:scale-[1.02] active:scale-95"+ aria-label="Home"+ >+ <span className="font-bold text-lg">Design Agent Studio</span>+ </Link>+ </div>+ <button+ onClick={() => setShowLeftSidebar(!showLeftSidebar)}+ className={`p-1.5 rounded transition-colors ${showLeftSidebar ? "bg-primary/10 text-primary" : "hover:bg-bg-card text-secondary-text hover:text-primary"}`}+ title="Toggle Sessions"+ >+ <VscLayoutSidebarLeftOff size={16} />+ </button>+ </div>+ <div className="flex-1 overflow-y-auto scrollbar-subtle">+ {sessions.length === 0 ? (+ <div className="px-4 py-8 text-center text-secondary-text italic text-[11px]">No previous sessions</div>+ ) : (+ sessions.map((s) => (+ <div+ key={s.id}+ onMouseEnter={() => setHoveredSessionId(s.id)}+ onMouseLeave={() => setHoveredSessionId(null)}+ className={`relative w-full flex items-center gap-3 px-4 py-3.5 cursor-pointer transition-all border-l-2 group+ ${sessionId === s.id ? "border-primary bg-primary/5" : "border-transparent hover:bg-bg-card-hover"}`}+ onClick={() => {router.push(`?session=${s.id}`); setShowLeftSidebar(!showLeftSidebar);}}+ >+ <div className="flex-1 min-w-0 pr-12">+ {editingSessionId === s.id ? (+ <input+ autoFocus+ className="bg-bg-card border border-primary px-2 py-1 rounded text-xs focus:outline-none w-full"+ value={editingSessionName}+ onChange={(e) => setEditingSessionName(e.target.value)}+ onBlur={() => renameSession(s.id, editingSessionName)}+ onKeyDown={(e) => {+ if (e.key === "Enter") renameSession(s.id, editingSessionName);+ if (e.key === "Escape") setEditingSessionId(null);+ }}+ onClick={(e) => e.stopPropagation()}+ />+ ) : (+ <div className={`flex items-center gap-2 text-[13px] font-semibold transition-colors ${sessionId === s.id ? "text-primary" : "text-primary-text"}`}>+ <span className="truncate flex-1">{s.name}</span>+ <span className="flex items-center gap-1 text-[10px] text-secondary-text opacity-70">+ <FiImage size={10} /> {s.asset_count}+ </span>+ </div>+ )}+ </div>++ {/* Hover Actions */}+ {hoveredSessionId === s.id && editingSessionId !== s.id && (+ <div className="flex items-center gap-0.5 animate-fade-in absolute right-2 top-1/2 -translate-y-1/2 bg-bg-card/90 backdrop-blur-sm pl-2 py-1 rounded-l shadow-[-12px_0_12px_rgba(0,0,0,0.1)]">+ <button+ onClick={(e) => {+ e.stopPropagation();+ setEditingSessionId(s.id);+ setEditingSessionName(s.name);+ }}+ className="p-1.5 hover:bg-bg-page rounded text-secondary-text hover:text-primary transition-colors"+ title="Rename"+ >+ <FiEdit2 size={13} />+ </button>+ <button+ onClick={(e) => {+ e.stopPropagation();+ deleteSession(s.id);+ }}+ className="p-1.5 hover:bg-red-500/10 rounded text-secondary-text hover:text-red-500 transition-colors"+ title="Delete"+ >+ <HiOutlineTrash size={14} />+ </button>+ </div>+ )}+ </div>+ ))+ )}+ </div>+ <div className="p-3 border-t border-divider bg-bg-page/30">+ <div className="flex items-center justify-between text-[10px] text-secondary-text font-medium px-1">+ <span>Total Sessions</span>+ <span>{sessions.length}</span>+ </div>+ </div>+ </div>+ <div className="flex flex-col relative bg-bg-page flex-1 overflow-hidden">+ {/* Canvas Top Bar */}+ <div className="flex justify-between items-center z-10 p-2 border-b border-divider bg-bg-page">+ <div className="relative flex items-center gap-1">+ {!inEmbedMode && (+ <button+ onClick={() => setShowLeftSidebar(!showLeftSidebar)}+ className={`p-2 hover:bg-bg-card rounded transition-colors ${showLeftSidebar ? "text-primary" : "hidden"}`}+ title="Toggle Sessions"+ >+ <VscLayoutSidebarLeftOff size={18} />+ </button>+ )}++ {!inEmbedMode && (+ <Link+ href="/"+ className={`p-1.5 hover:bg-bg-card rounded text-secondary-text hover:text-primary transition-colors ${!showLeftSidebar && "hidden"}`}+ title="Go Back"+ >+ <FiArrowLeft size={16} />+ </Link>+ )}++ {inEmbedMode && (+ <button+ onClick={() => setActiveEmbedSession(null)}+ className="p-1.5 hover:bg-bg-card rounded text-secondary-text hover:text-primary transition-colors"+ title="New chat"+ >+ <FiPlus size={16} />+ </button>+ )}++ <div className="flex items-center gap-2 text-primary-text p-1.5">+ <span className="font-medium text-sm max-w-[200px] truncate">+ {currentSessionName}+ </span>+ </div>+ </div>++ <div className="flex items-center gap-2">+ {!inEmbedMode && (+ <div className="flex items-center gap-2 h-8 border border-divider rounded bg-bg-page/30 overflow-hidden px-2">+ <span+ suppressHydrationWarning+ className="font-bold text-xs flex items-center text-primary-text truncate"+ >+ {userBalanceLabel ?? `$ ${user?.balance || "0.00"}`}+ </span>+ </div>+ )}++ <div+ className={`relative outline-none flex items-center gap-2 ${inEmbedMode ? "hidden" : ""}`}+ tabIndex={-1}+ onBlur={(e) => {+ if (!e.currentTarget.contains(e.relatedTarget)) {+ setOpenProfile(false);+ }+ }}+ >+ <button+ onClick={() => setOpenProfile(!openProfile)}+ className="w-8 h-8 rounded-full bg-primary/10 border border-primary flex items-center justify-center text-primary shadow-sm hover:bg-primary/20 transition-all overflow-hidden"+ >+ {user?.profile_photo ? (+ <img src={user.profile_photo} alt="Profile" className="w-full h-full object-cover" />+ ) : (+ <span className="text-[10px] font-bold">+ {(user?.username || "U").substring(0, 2).toUpperCase()}+ </span>+ )}+ </button>+ {!showChat && (+ <button+ onClick={handleToggleSidebar}+ className="w-8 h-8 rounded-full rotate-270 hover:bg-bg-page hover:text-primary-text transition-all flex items-center justify-center text-secondary-text z-[60]"+ title="Open Chat"+ >+ <HiOutlineArrowUpTray size={18} />+ </button>+ )}++ <div+ className={`absolute top-full right-0 mt-2 w-64 bg-bg-card border border-divider rounded shadow-2xl z-[100] py-1 transition-all duration-200 origin-top-right ${+ openProfile ? "opacity-100 scale-100 visible translate-y-0" : "opacity-0 scale-95 invisible translate-y-2"+ }`}+ >+ <div className="px-4 py-3 border-b border-divider flex flex-col">+ <div className="flex items-center justify-between mb-1">+ <span className="text-sm font-bold text-primary-text truncate">+ {user?.username || "User"}+ </span>+ {user?.plan === "pro" ? (+ <span className="text-[10px] font-bold px-2 py-0.5 rounded bg-primary text-white uppercase tracking-wider">+ Pro+ </span>+ ) : (+ <span className="text-[10px] font-bold px-2 py-0.5 rounded bg-orange-500/10 text-orange-500 border border-orange-500 uppercase tracking-wider">+ Bronze+ </span>+ )}+ </div>+ <span className="text-[11px] text-secondary-text truncate">+ {user?.email}+ </span>+ <div className="mt-2 text-[13px] font-bold text-primary">+ {userBalanceLabel ?? `$ ${user?.balance || "0.00"}`} <span className="font-normal text-secondary-text">available</span>+ </div>+ </div>++ <div className="py-1">+ <a+ href="mailto:[email protected]"+ className="w-full flex items-center gap-3 px-4 py-2 hover:bg-bg-page transition-colors text-[13px] font-semibold text-primary-text"+ >+ Support+ </a>+ </div>+ <div className="h-px bg-divider w-full my-1" />+ <div className="py-1">+ <button+ onClick={(e) => {+ e.stopPropagation();+ setTheme(resolvedTheme === "dark" ? "light" : "dark");+ }}+ className="w-full flex items-center justify-between px-4 py-2 hover:bg-bg-page transition-colors text-[13px] font-semibold text-primary-text"+ >+ <div className="flex items-center gap-3">+ <span className="text-secondary-text">+ {resolvedTheme === "dark" ? <FiSun size={15} /> : <FiMoon size={15} />}+ </span>+ Dark Mode+ </div>+ <div className={`w-8 h-4 rounded-full relative transition-colors ${resolvedTheme === "dark" ? "bg-primary" : "bg-bg-card-hover"}`}>+ <div className={`absolute top-0.5 w-3 h-3 rounded-full bg-black dark:bg-white transition-all ${resolvedTheme === "dark" ? "left-4.5" : "left-0.5"}`} />+ </div>+ </button>+ </div>+ </div>+ </div>+ </div>+ </div>++ {/* Main Canvas View */}+ <div className="flex-1 relative overflow-hidden bg-bg-page/50 w-full">+ <CanvasArea+ ref={canvasRef}+ theme={resolvedTheme}+ activeTasks={activeTasks}+ setActiveTasks={setActiveTasks}+ onZoomChange={setZoomLevel}+ />++ {/* Floating Toolbar */}+ <div className="absolute bottom-6 left-1/2 -translate-x-1/2 flex items-center gap-1 bg-bg-card border border-divider shadow-2xl px-2 py-1.5 rounded z-20">+ <div className="flex items-center gap-3 px-3">+ <span className="text-[10px] font-bold text-secondary-text uppercase tracking-widest">{zoomLevel}%</span>+ <div className="flex items-center gap-1">+ <button onClick={() => canvasRef.current?.zoomOut()} className="w-5 h-5 rounded border border-divider flex items-center justify-center text-secondary-text hover:text-primary-text hover:border-primary transition-all">-</button>+ <button onClick={() => canvasRef.current?.zoomIn()} className="w-5 h-5 rounded border border-divider flex items-center justify-center text-secondary-text hover:text-primary-text hover:border-primary transition-all">+</button>+ </div>+ </div>+ </div>+ </div>+ </div>++ {/* Resizer Handle */}+ <div+ className="h-full cursor-col-resize hover:bg-primary w-1 transition-all z-10 group relative flex items-center justify-center"+ onMouseDown={startResizing}+ >+ {/* <div className="absolute inset-y-0 left-1/2 -translate-x-1/2 w-[1px] bg-divider group-hover:bg-primary/50 transition-colors" /> */}+ <div className="z-10 w-3 h-8 rounded-full bg-bg-card border border-divider shadow-sm flex flex-col items-center justify-center gap-1 opacity-60 group-hover:opacity-100 transition-opacity translate-x-[-0.5px]">+ <div className="w-0.5 h-0.5 rounded-full bg-primary-text" />+ <div className="w-0.5 h-0.5 rounded-full bg-primary-text" />+ <div className="w-0.5 h-0.5 rounded-full bg-primary-text" />+ </div>+ </div>++ {/* Right Panel: Chat Sidebar */}+ <div+ className={`flex-shrink-0 flex flex-col bg-bg-card border-l border-divider shadow-[-10px_0_20px_rgba(0,0,0,0.02)] z-20 transition-all duration-300 ${!showChat ? 'overflow-hidden' : ''}`}+ style={{ width: sidebarWidth }}+ >+ {/* Sidebar Header */}+ <div className="p-4 flex items-center justify-between border-b border-divider bg-bg-card">+ <div className="flex flex-col">+ <h2 className="font-bold text-[13px] text-primary-text uppercase tracking-widest leading-none flex items-center gap-2">+ <RiSparklingLine className="text-primary" /> Creative Agent+ </h2>+ <span className="text-[10px] text-secondary-text mt-1.5">Auto Model • Multi-tool Access</span>+ </div>+ <div className="flex items-center gap-1">+ <Link+ href="https://muapi.ai/docs/design-agent-api"+ target="_blank"+ className="p-1.5 hover:bg-bg-page hover:text-primary-text transition-colors rounded text-secondary-text"+ title="API Docs"+ >+ <CgTerminal size={16} />+ </Link>+ {sessionId && (+ <button+ onClick={() => {+ if (inEmbedMode) setActiveEmbedSession(null);+ else router.push("/canvas");+ }}+ className="p-1.5 hover:bg-bg-page hover:text-primary-text transition-colors rounded text-secondary-text"+ title="New Session"+ >+ <FiPlus size={16} />+ </button>+ )}+ <button+ onClick={handleToggleSidebar}+ className={`w-8 h-8 rounded-full transition-all flex items-center justify-center shrink-0 ${showChat ? "bg-primary/10 text-primary" : "hover:bg-bg-page text-secondary-text hover:text-primary"}`}+ title={showChat ? "Hide Chat" : "Open Chat"}+ >+ <FiLayout size={16} />+ </button>+ </div>+ </div>+ {/* Chat History */}+ <div className="flex-1 overflow-y-auto p-4 space-y-6 scrollbar-subtle">+ {messages.map((msg, idx) => {+ if (!msg) return null;+ const prevMsg = idx > 0 ? messages[idx - 1] : null;+ const showDateHeader = msg.timestamp && (+ !prevMsg ||+ !prevMsg.timestamp ||+ new Date(msg.timestamp).toDateString() !== new Date(prevMsg.timestamp).toDateString()+ );++ return (+ <React.Fragment key={idx}>+ {showDateHeader && msg.timestamp && (+ <div className="flex justify-center my-4">+ <span className="px-2 py-1 bg-bg-page border border-divider rounded text-[10px] font-medium text-secondary-text shadow-sm">+ {formatDateHeader(msg.timestamp)}+ </span>+ </div>+ )}+ <div className={`flex flex-col gap-2 ${msg.role === "user" ? "items-end" : "items-start"} animate-fade-in-up group`}>+ <div className="flex items-center gap-2">+ {msg.role === "assistant" && (+ <div className="flex items-center gap-1.5 text-[10px] font-medium text-secondary-text ml-1">+ <RiRobot2Line /> Agent+ </div>+ )}+ <div className={`flex items-center justify-end gap-2 text-[9px] text-secondary-text`}>+ {msg.timestamp && <span>{formatTime(msg.timestamp)}</span>}+ </div>+ {msg.role === "user" && msg.skill_name && (+ <div className="flex items-center gap-1.5 text-xs font-medium text-primary bg-primary/10 px-2 py-0.5 rounded border border-primary w-fit ml-auto">+ <RiSparklingLine size={10} /> {msg.skill_name}+ </div>+ )}+ </div>+ <div className={`max-w-[90%] space-y-2 ${msg.role === "user" ? "text-right" : "text-left"}`}>+ <div className="relative">+ <div className={`px-3 py-2 text-[13px] leading-relaxed break-words relative+ ${msg.role === "user" ? "bg-bg-card-hover text-primary-text rounded-md rounded-tr-none shadow-sm border border-divider" : "text-primary-text bg-bg-page rounded-md rounded-tl-none shadow-sm border border-divider"}`}>++ {msg.content ? (+ msg.role === "assistant" ? (+ <div className="prose dark:prose-invert max-w-none prose-p:leading-relaxed prose-pre:bg-black/30">+ <ReactMarkdown+ remarkPlugins={[remarkGfm]}+ components={markdownComponents}+ >+ {msg.content}+ </ReactMarkdown>+ </div>+ ) : (+ <div className="flex flex-col gap-2">+ <div className="prose dark:prose-invert max-w-none text-primary-text prose-p:leading-relaxed">+ <ReactMarkdown+ remarkPlugins={[remarkGfm]}+ components={markdownComponents}+ >+ {msg.content}+ </ReactMarkdown>+ </div>+ {msg.attachments && msg.attachments.length > 0 && (+ <div className="flex flex-col gap-2 mt-2 w-full">+ {msg.attachments.map(att => (+ <div key={att.asset_label} className="relative w-full rounded border border-white/20 overflow-hidden shadow-sm bg-black/10">+ {att.kind === "image" && (+ <img src={att.url} alt={att.asset_label} className="w-full max-h-64 object-contain" />+ )}+ {att.kind === "video" && (+ <video src={att.url} controls className="w-full max-h-64 object-contain" />+ )}+ {att.kind === "audio" && (+ <div className="p-2">+ <audio src={att.url} controls className="w-full" />+ </div>+ )}+ {!["image", "video", "audio"].includes(att.kind) && (+ <div className="w-full p-4 flex items-center justify-center text-[10px] text-white/70">+ {att.kind}: {att.asset_label}+ </div>+ )}+ </div>+ ))}+ </div>+ )}+ </div>+ )+ ) : (msg.role === "assistant" && busy) && (+ <TypingDots />+ )}++ {(msg.events || []).filter(e => e && ["tool_call", "tool_result", "plan_propose", "error", "info"].includes(e.type)).map((ev, i) => (+ <EventPill key={i} event={{...ev, onAction: handleJobAction}} />+ ))}+ </div>++ {/* Copy Button - Hover only */}+ <button+ onClick={() => copyToClipboard(msg.content)}+ className={`absolute top-0 opacity-0 group-hover:opacity-100 transition-opacity p-1.5 rounded bg-bg-card border border-divider shadow-md hover:text-primary z-10+ ${msg.role === "user" ? "right-full mr-2" : "left-full ml-2"}`}+ title="Copy Message"+ >+ <FiCopy size={12} />+ </button>+ </div>+ </div>+ </div>+ </React.Fragment>+ );+ })}++ <div ref={chatEndRef} />+ </div>++ {/* Chat Input Area */}+ <div className="p-2 bg-bg-card">+ <div+ onDragOver={handleDragOver}+ onDragLeave={handleDragLeave}+ onDrop={handleDrop}+ className={`rounded border bg-bg-card shadow-sm flex flex-col transition-all relative+ ${isDragging ? "border-dashed border-primary bg-primary/5 ring-4 ring-primary/10" : ""}+ ${busy ? "border-primary ring-1 ring-primary/20" : "border-divider focus-within:ring-2 focus-within:ring-primary/20 focus-within:border-primary"}`}+ >+ {activeSkill && (+ <div className="flex items-center gap-2 p-1 animate-fade-in-up">+ <button+ onClick={() => setActiveSkill(null)}+ className="flex items-center gap-1.5 px-2 py-1 rounded-full bg-bg-page border border-divider text-xs hover:bg-red-500 hover:text-white transition-colors"+ >+ <FiX size={12} />+ <span>{activeSkill.name}</span>+ </button>+ </div>+ )}+ {isDragging && (+ <div className="absolute inset-0 z-50 flex items-center justify-center bg-primary/5 backdrop-blur-[1px] pointer-events-none rounded">+ <div className="bg-primary/10 p-4 rounded-full border-2 border-primary animate-pulse">+ <FiUpload className="text-primary" size={32} />+ </div>+ </div>+ )}+ {showMentionPopup && (+ <div className="absolute bottom-full left-0 mb-2 flex items-end gap-3 z-50">+ <div className="w-72 bg-bg-card border border-divider rounded shadow-2xl overflow-hidden animate-in fade-in slide-in-from-bottom-2 duration-200">+ <div className="p-2 border-b border-divider text-[10px] font-bold text-secondary-text uppercase tracking-widest bg-bg-page/50">+ Mentions+ </div>+ <div className="max-h-60 overflow-y-auto scrollbar-subtle py-1">+ {filteredAssets.length > 0 && (+ <div className="px-3 py-1.5 mt-1 text-[9px] font-bold text-green-500 uppercase opacity-60">Assets</div>+ )}+ <div className="grid grid-cols-2 gap-2">+ {filteredAssets.map(asset => (+ <button+ key={asset.asset_label}+ onClick={() => selectMention(asset, "asset")}+ className="w-full text-left px-3 py-2 hover:bg-bg-page transition-colors flex items-center gap-2 group rounded"+ >+ {asset.kind === "image" && <img src={asset.url} className="w-7 h-7 rounded border border-divider object-cover shadow-sm" />}+ {asset.kind === "video" && <video src={asset.url} className="w-7 h-7 rounded border border-divider object-cover shadow-sm" />}+ {asset.kind === "audio" && <div className="w-7 h-7 rounded flex items-center justify-center bg-primary/5 text-primary text-[8px] font-bold uppercase tracking-tight">Audio</div>}+ <div className="flex flex-col">+ <span className="text-xs font-medium text-primary-text">{asset.asset_label}</span>+ <span className="text-[9px] text-secondary-text truncate max-w-[200px]">{asset.kind}</span>+ </div>+ </button>+ ))}+ </div>+ {filteredSkills.length > 0 && (+ <div className="px-3 py-1.5 text-[9px] font-bold text-primary uppercase opacity-60">Skills</div>+ )}+ {filteredSkills.map(skill => (+ <button+ key={skill.name}+ onClick={() => selectMention(skill, "skill")}+ className="w-full text-left px-3 py-2 hover:bg-bg-page transition-colors flex items-center gap-2 group"+ >+ <RiSparklingLine size={12} className="text-primary opacity-50 group-hover:opacity-100" />+ <span className="text-xs font-medium text-primary-text">{skill.name}</span>+ </button>+ ))}+ {filteredSkills.length === 0 && filteredAssets.length === 0 && (+ <div className="px-4 py-8 text-center text-secondary-text text-xs italic opacity-50">No matches found</div>+ )}+ </div>+ </div>+ </div>+ )}+ <textarea+ ref={textareaRef}+ value={input}+ autoFocus+ onChange={(e) => {+ const val = e.target.value;+ const pos = e.target.selectionStart;+ setInput(val);++ // Simple mention detection: check if last char before cursor is @ or if we are already in mention mode+ const lastAtPos = val.lastIndexOf("@", pos - 1);+ if (lastAtPos !== -1 && (lastAtPos === 0 || val[lastAtPos - 1] === " ")) {+ const query = val.substring(lastAtPos + 1, pos);+ if (!query.includes(" ")) {+ setMentionQuery(query);+ setMentionCursorPos(lastAtPos);+ setShowMentionPopup(true);+ } else {+ setShowMentionPopup(false);+ }+ } else {+ setShowMentionPopup(false);+ }+ }}+ onKeyDown={handleKey}+ onInput={e => { e.target.style.height = "auto"; e.target.style.height = Math.min(e.target.scrollHeight, 120) + "px"; }}+ placeholder={activeSkill ? `Oh, Let us create ${activeSkill.name.toLowerCase()}s, start with your ${activeSkill.inputs?.[0]?.replace(/_/g, ' ') || 'idea'}?` : "Start with an idea or mention assets using @..."}+ className="w-full bg-transparent px-3 py-3 text-[13px] resize-none focus:outline-none min-h-[50px] max-h-[120px] scrollbar-subtle"+ rows={1}+ disabled={busy}+ />++ {(uploading || attachments.length > 0 || input.includes("@")) && (+ <div className="flex flex-wrap gap-2 border-b px-3 border-divider bg-bg-page/20">+ {/* Real Attachments */}+ {attachments.map((att) => (+ <div+ key={att.asset_label}+ className="relative group flex items-center gap-2 px-2 py-1 bg-bg-card border border-divider rounded-lg shadow-sm cursor-help transition-all hover:border-primary"+ onMouseEnter={() => setHoveredAsset(att)}+ onMouseLeave={() => setHoveredAsset(null)}+ >+ <div className="w-5 h-5 rounded overflow-hidden">+ {att.kind === "image" ? <img src={att.url} className="w-full h-full object-cover" /> : <FiTerminal size={10} />}+ </div>+ <span className="text-[10px] font-bold text-secondary-text">{att.asset_label}</span>+ </div>+ ))}++ {/* Mentioned Assets (not in attachments but in text) */}+ {assets.filter(a => input.includes(`@${a.asset_label}`) && !attachments.find(att => att.asset_label === a.asset_label)).map((a) => (+ <div+ key={a.asset_label}+ className="relative group flex items-center gap-2 px-2 py-1 bg-primary/5 border border-primary rounded-lg shadow-sm cursor-help transition-all hover:border-primary"+ onMouseEnter={() => setHoveredAsset(a)}+ onMouseLeave={() => setHoveredAsset(null)}+ >+ <div className="w-5 h-5 rounded overflow-hidden bg-primary/10 flex items-center justify-center text-primary">+ {a.kind === "image" ?+ <img src={a.url} className="w-full h-full object-cover" />+ : a.kind === "video" ?+ <video src={a.url} className="w-full h-full object-cover" />+ : a.kind === "audio" ?+ <audio src={a.url} className="w-full h-full object-cover" />+ : <RiSparklingLine size={10} />+ }+ </div>+ <span className="text-[10px] font-bold text-primary">{a.asset_label}</span>+ </div>+ ))}+ {uploading && (+ <div className="flex items-center gap-2 px-2 py-1 bg-bg-page border border-divider border-dashed rounded-lg">+ <div className="w-4 h-4 border-2 border-t-transparent border-primary rounded-full animate-spin" />+ <span className="text-[10px] font-bold text-secondary-text">{uploadProgress}%</span>+ </div>+ )}+ </div>+ )}++ {hoveredAsset && (+ <div className="absolute bottom-full left-4 w-72 aspect-square bg-bg-card border border-divider rounded-md shadow-[0_32px_64px_-12px_rgba(0,0,0,0.2)] overflow-hidden z-[110] animate-in fade-in zoom-in-95 duration-200 pointer-events-none">+ {hoveredAsset.kind === "image" ? (+ <img src={hoveredAsset.url} className="w-full h-full object-cover" />+ ) : hoveredAsset.kind === "video" ? (+ <video src={hoveredAsset.url} className="w-full h-full object-cover" autoPlay muted loop />+ ) : (+ <div className="w-full h-full flex flex-col items-center justify-center gap-3 bg-bg-page">+ <div className="w-16 h-16 rounded-2xl bg-primary/10 flex items-center justify-center text-primary">+ <FiTerminal size={32} />+ </div>+ <span className="text-xs font-bold text-secondary-text uppercase tracking-widest">{hoveredAsset.kind} Preview</span>+ </div>+ )}+ <div className="absolute inset-x-0 bottom-0 p-5 bg-gradient-to-t from-black/90 via-black/40 to-transparent">+ <div className="text-sm font-bold text-white tracking-tight">{hoveredAsset.asset_label}</div>+ <div className="text-[10px] text-white/70 mt-1 uppercase tracking-widest font-bold">{hoveredAsset.kind} • Creative Asset</div>+ </div>+ </div>+ )}++ <div className="px-3 pb-2 flex items-center justify-between">+ <div className="flex items-center gap-1">+ <input+ type="file"+ className="hidden"+ ref={fileInputRef}+ accept="image/*,video/*,audio/*"+ onChange={handleFileUpload}+ />+ <button+ type="button"+ onClick={() => fileInputRef.current?.click()}+ disabled={uploading}+ className="p-1.5 rounded hover:bg-bg-page text-secondary-text transition-all"+ title="Upload Image"+ >+ <FiUpload size={16} />+ </button>++ <div+ className="relative"+ tabIndex={-1}+ onBlur={(e) => {+ if (!e.currentTarget.contains(e.relatedTarget)) {+ setShowSkillsMenu(false);+ }+ }}+ >+ <button+ type="button"+ onClick={() => setShowSkillsMenu(!showSkillsMenu)}+ className={`p-1.5 rounded hover:bg-bg-page transition-all flex items-center gap-1.5+ ${showSkillsMenu ? "bg-bg-page text-primary shadow-inner" : "text-secondary-text"}`}+ title="Agent Skills"+ >+ <GoBook size={16} />+ </button>++ {showSkillsMenu && (+ <div className="absolute bottom-full left-1/2 -translate-x-1/2 mb-3 w-[320px] bg-bg-card border border-divider rounded shadow-2xl z-50 overflow-hidden animate-in fade-in slide-in-from-bottom-2 duration-200">+ <div className="px-4 py-3 border-b border-divider flex items-center justify-between bg-bg-page/30">+ <div>+ <h3 className="text-[12px] font-bold text-primary-text uppercase tracking-tight">Expert Skills</h3>+ </div>+ <Link+ href="https://muapi.ai/docs/design-agent-api"+ target="_blank"+ className="text-[10px] font-bold text-primary hover:underline flex items-center gap-1"+ >+ <CgTerminal size={10} />+ API Docs+ </Link>+ </div>+ <div className="max-h-80 overflow-y-auto p-1.5 scrollbar-subtle">+ {skills.map(skill => (+ <button+ key={skill.name}+ onClick={() => {+ setActiveSkill(skill);+ setShowSkillsMenu(false);+ textareaRef.current?.focus();+ }}+ className={`w-full flex items-center gap-3 px-3 py-2.5 rounded hover:bg-bg-page transition-all text-left group ${activeSkill?.name === skill.name ? "bg-primary/5 border border-primary" : "border border-transparent"}`}+ >+ <div className={`w-8 h-8 rounded flex items-center justify-center transition-colors shadow-sm ${activeSkill?.name === skill.name ? "bg-primary text-white" : "bg-bg-page text-primary border border-divider group-hover:bg-primary group-hover:text-white"}`}>+ <RiSparklingLine size={16} />+ </div>+ <div className="flex-1 min-w-0">+ <div className={`font-bold capitalize text-[12px] transition-colors ${activeSkill?.name === skill.name ? "text-primary" : "text-primary-text group-hover:text-primary"}`}>+ {skill.name}+ </div>+ <div className="text-[10px] text-secondary-text mt-0.5 line-clamp-1 opacity-70 italic">{skill.description || "Specialized workflow"}</div>+ </div>+ </button>+ ))}+ </div>+ <div className="p-2.5 bg-bg-page/50 border-t border-divider text-center">+ <button+ onClick={() => setShowSkillsMenu(false)}+ className="text-[10px] font-bold text-secondary-text hover:text-primary-text transition-colors"+ >+ Dismiss+ </button>+ </div>+ </div>+ )}+ </div>++ <div+ className="relative"+ tabIndex={-1}+ onBlur={(e) => {+ if (!e.currentTarget.contains(e.relatedTarget)) {+ setShowAssetsMenu(false);+ }+ }}+ >+ <button+ type="button"+ onClick={() => setShowAssetsMenu(!showAssetsMenu)}+ className={`p-1.5 rounded hover:bg-bg-page transition-all flex items-center gap-1.5+ ${showAssetsMenu ? "bg-bg-page text-primary shadow-inner" : "text-secondary-text"}`}+ title="Session Assets"+ >+ <FiImage size={16} />+ </button>++ {showAssetsMenu && (+ <div className="absolute bottom-full right-0 mb-2 w-72 bg-bg-card border border-divider rounded shadow-2xl z-30 animate-fade-in-up">+ <div className="p-2 mb-2 border-b border-divider text-[10px] font-bold text-secondary-text flex items-center justify-between">+ <span>Session Assets</span>+ <span className="opacity-50">{assets.length} items</span>+ </div>+ <div className="max-h-80 overflow-y-auto scrollbar-subtle p-2 grid grid-cols-3 gap-2">+ {assets.length === 0 ? (+ <div className="col-span-3 py-8 text-center text-secondary-text text-[10px] italic">No assets generated yet</div>+ ) : (+ assets.map((asset, i) => (+ <div+ key={i}+ onClick={(e) => {+ e.stopPropagation();+ setInput(prev => prev + (prev ? " " : "") + asset.asset_label);+ setShowAssetsMenu(false);+ textareaRef.current?.focus();+ }}+ className="group relative aspect-square rounded border border-divider overflow-hidden bg-bg-page/50 hover:border-primary transition-all cursor-pointer"+ >+ {asset.kind === "image" && <img src={asset.url} className="w-full h-full object-cover" />}+ {asset.kind === "video" && <video src={asset.url} className="w-full h-full object-cover" />}+ {asset.kind === "audio" && <div className="w-full h-full flex items-center justify-center bg-primary/5 text-primary text-[8px] font-bold uppercase tracking-tight">Audio</div>}++ <div className="absolute inset-0 bg-black/60 opacity-0 group-hover:opacity-100 transition-opacity flex flex-col items-center justify-center p-1 text-center">+ <span className="text-[10px] text-white font-bold truncate w-full mb-1">{asset.asset_label}</span>+ </div>+ </div>+ ))+ )}+ </div>+ </div>+ )}+ </div>+ </div>+ <div className="flex items-center gap-1">+ <button+ type="button"+ onClick={() => sendMessage()}+ disabled={busy || (!input.trim() && attachments.length === 0)}+ className={`w-8 h-8 rounded-full flex items-center justify-center transition-all shadow-sm ml-1+ ${busy || (!input.trim() && attachments.length === 0)+ ? "bg-[var(--bg-card-hover)] text-[var(--text-muted)] cursor-not-allowed"+ : "bg-primary text-white hover:scale-105"}`}+ >+ {busy ? <BiLoaderAlt size={14} className="animate-spin" /> : <FiSend size={14} />}+ </button>+ </div>+ </div>+ </div>+ </div>+ </div>+ </main>+ </div>+ );+}++++// ── Event pills ────────────────────────────────────────────────────────────────+const TOOL_ICONS = {+ generate_image: "🎨", edit_image: "✏️", generate_video: "🎬",+ image_to_video: "🎥", edit_video: "🎞️", lipsync_video: "💋",+ concat_videos: "🔗", generate_audio: "🎵", enhance_image: "✨",+ upload_file: "📤", list_models: "📚", ask_user: "❓",+ propose_plan: "📋", list_assets: "📁", get_asset: "🔍", remaining_budget: "💰",+};++function EventPill({ event }) {+ if (event.type === "tool_call") return (+ <div className="flex items-center gap-1.5 px-2.5 py-1.5 rounded bg-primary/10 border border-primary text-primary text-[11px] mt-1 shadow-sm">+ <span>{TOOL_ICONS[event.name] || "🔧"}</span>+ <span className="font-semibold">{event.name}</span>+ </div>+ );++ if (event.type === "tool_result") {+ const ok = event.result?.ok !== false;+ const model = event.result?.model;+ if (event.name === "ask_user" && event.result?.ask_user) {+ const choices = event.result.choices || [];+ return (+ <div className="px-3 py-2 rounded bg-bg-page border border-primary text-[12px] mt-1 shadow-sm">+ <div className="font-semibold text-primary mb-1">❓ {event.result.question}</div>+ {choices.length > 0 && (+ <div className="flex flex-col gap-1 mt-1">+ {choices.map((c, i) => (+ <div key={i} className="text-secondary-text">{i + 1}. {c}</div>+ ))}+ </div>+ )}+ <div className="text-[10px] text-secondary-text mt-1.5 italic">Reply to continue.</div>+ </div>+ );+ }+ return (+ <div className={`flex items-center gap-1.5 px-2.5 py-1.5 rounded text-[11px] border mt-1 shadow-sm ${+ ok+ ? "bg-[var(--color-success-bg)] text-[var(--color-success)] border-[var(--color-success)]"+ : "bg-[var(--color-error-bg)] text-[var(--color-error)] border-[var(--color-error)]"+ }`}>+ {ok ? <FiCheck size={11} /> : <FiX size={11} />}+ <div className="flex items-center gap-2 flex-1 min-w-0">+ <span className="font-semibold">+ {ok+ ? (event.asset ? `Generated ${event.asset.kind}` : `Done`)+ : `Failed`}+ </span>+ {ok && model && (+ <span className="text-[9px] font-bold uppercase tracking-tight opacity-80">+ {model}+ </span>+ )}+ {!ok && event.result?.error && (+ <span className="text-[9px] opacity-70 truncate max-w-[160px]" title={event.result.error}>+ ↺ {String(event.result.error).replace(/^\w+Error:\s*/i, "").substring(0, 60)}+ </span>+ )}+ </div>+ </div>+ );+ }++ if (event.type === "plan_propose") {+ if (event.handled) return null;+ return (+ <div className="flex flex-col gap-2">+ <PlanVisualizer plan={event} />+ <div className="flex items-center gap-2 px-2 pb-2">+ <button+ onClick={() => event.onAction?.(event.job_id, "approve")}+ className="flex-1 py-2 rounded bg-primary text-white text-[12px] font-bold hover:brightness-110 transition-all flex items-center justify-center gap-2"+ >+ <FiCheck /> Approve & Execute+ </button>+ <button+ onClick={() => event.onAction?.(event.job_id, "reject")}+ className="px-4 py-2 rounded bg-bg-card border border-divider text-secondary-text text-[12px] hover:bg-bg-page transition-all"+ >+ Cancel+ </button>+ </div>+ </div>+ );+ }++ if (event.type === "info") {+ // If this is an approval request, check if we should show buttons.+ // We avoid showing buttons on the info pill if there's a detailed plan_propose+ // card already handling the approval for this job.+ const isApproval = event.needs_approval || event.content?.includes("Waiting for approval") || event.content?.includes("Awaiting confirmation");++ // If it's already handled, we might want to hide it or show it as a simple label+ if (event.handled && isApproval) return null;++ return (+ <div className={`px-3 py-2 rounded border text-[11px] mt-1 shadow-sm flex items-center justify-between ${+ isApproval ? "bg-primary/5 border-primary" : "bg-bg-page border-divider"+ }`}>+ <div className={`flex items-center gap-2 ${isApproval ? "text-primary" : "text-secondary-text"}`}>+ {isApproval ? <FiAlertCircle size={14} className="animate-pulse" /> : <FiTerminal size={12} className="opacity-50" />}+ <span className="flex-1">{event.content}</span>+ </div>+ {isApproval && !event.handled && (+ <div className="flex items-center gap-1 ml-4">+ <button+ onClick={() => event.onAction?.(event.job_id, "approve")}+ className="px-2 py-1 rounded bg-primary text-white text-[10px] font-bold hover:brightness-110 transition-all"+ >+ Approve+ </button>+ <button+ onClick={() => event.onAction?.(event.job_id, "reject")}+ className="px-2 py-1 rounded bg-bg-card border border-divider text-secondary-text text-[10px] hover:bg-bg-page transition-all"+ >+ Reject+ </button>+ </div>+ )}+ </div>+ );+ }++ if (event.type === "error") return (+ <div className="px-2.5 py-1.5 rounded bg-[var(--color-error-bg)] text-[var(--color-error)] border border-[var(--color-error)] text-[11px] mt-1 shadow-sm">+ ❌ {event.message}+ </div>+ );++ return null;+}diff --git a/packages/design-agent/src/components/PlanVisualizer.jsx b/packages/design-agent/src/components/PlanVisualizer.jsxnew file mode 100644index 0000000..dc5e19d--- /dev/null+++ b/packages/design-agent/src/components/PlanVisualizer.jsx@@ -0,0 +1,95 @@+"use client";+import React from "react";+import { FiBox, FiArrowRight, FiZap } from "react-icons/fi";++/**+ * Renders a DAG (Directed Acyclic Graph) of plan nodes.+ * Groups nodes by their topological layers for a clean horizontal flow.+ */+export default function PlanVisualizer({ plan, theme = "dark" }) {+ if (!plan || !plan.nodes) return null;++ // Simple topological grouping by dependencies+ const layers = [];+ const processed = new Set();+ let remaining = [...plan.nodes];++ while (remaining.length > 0) {+ const layer = remaining.filter(n =>+ !n.depends || n.depends.length === 0 || n.depends.every(d => processed.has(d))+ );+ if (layer.length === 0) break; // cycle or missing dep+ layers.push(layer);+ layer.forEach(n => processed.add(n.id));+ remaining = remaining.filter(n => !processed.has(n.id));+ }++ return (+ <div className={`mt-4 mb-4 p-4 rounded border shadow-xl bg-bg-page/50 backdrop-blur-sm ${+ theme === "dark" ? "border-divider shadow-black/40" : "border-divider shadow-slate-200"+ }`}>+ <div className="flex items-center justify-between mb-6">+ <div>+ <h3 className="text-[13px] font-bold text-primary flex items-center gap-2 uppercase tracking-widest">+ <FiZap className="animate-pulse" /> Proposed Execution Plan+ </h3>+ <p className="text-[11px] text-secondary-text mt-1 italic">+ “{plan.title}”+ </p>+ </div>+ <div className="text-right">+ <div className="text-[12px] font-bold text-primary-text">+ {plan.total_credits} <span className="text-[10px] text-secondary-text font-normal">credits</span>+ </div>+ <div className="text-[10px] text-secondary-text uppercase tracking-tight">+ {plan.nodes.length} steps+ </div>+ </div>+ </div>++ <div className="relative overflow-x-auto scrollbar-hide pb-4">+ <div className="flex items-start gap-12 min-w-max px-4">+ {layers.map((layer, lIdx) => (+ <div key={lIdx} className="flex flex-col gap-6 justify-center min-h-[200px]">+ {layer.map((node) => (+ <div+ key={node.id}+ id={`plan-node-${node.id}`}+ className="w-48 p-3 rounded bg-bg-card border border-divider shadow-sm hover:border-primary/50 transition-all group relative z-10"+ >+ <div className="flex items-center justify-between mb-2">+ <span className="text-[10px] font-bold text-primary opacity-70">#{node.id}</span>+ <span className="text-[10px] font-bold text-secondary-text bg-bg-page px-1.5 py-0.5 rounded border border-divider">+ {node.est_credits || 0} cr+ </span>+ </div>+ <div className="text-[12px] font-bold text-primary-text truncate group-hover:whitespace-normal group-hover:overflow-visible transition-all">+ {node.tool.replace(/_/g, " ")}+ </div>+ <div className="text-[11px] text-secondary-text mt-1.5 leading-tight line-clamp-2 italic">+ {node.label || "Processing asset..."}+ </div>++ {/* Visual connectors (CSS arrows) */}+ {lIdx < layers.length - 1 && (+ <div className="absolute top-1/2 -right-12 w-12 h-px bg-gradient-to-r from-divider to-transparent" />+ )}+ </div>+ ))}+ </div>+ ))}+ </div>+ </div>++ {plan.notes && plan.notes.length > 0 && (+ <div className="mt-4 pt-4 border-t border-divider">+ {plan.notes.map((note, i) => (+ <div key={i} className="text-[10px] text-secondary-text flex items-center gap-2">+ <span className="w-1 h-1 rounded-full bg-primary" /> {note}+ </div>+ ))}+ </div>+ )}+ </div>+ );+}diff --git a/packages/design-agent/src/index.js b/packages/design-agent/src/index.jsnew file mode 100644index 0000000..7758046--- /dev/null+++ b/packages/design-agent/src/index.js@@ -0,0 +1,3 @@+export { default as CreativeCanvas } from "./CreativeCanvas";+export { default as CanvasArea } from "./CanvasArea";+export { default as PlanVisualizer } from "./components/PlanVisualizer";diff --git a/packages/design-agent/src/tailwind.css b/packages/design-agent/src/tailwind.cssnew file mode 100644index 0000000..235313c--- /dev/null+++ b/packages/design-agent/src/tailwind.css@@ -0,0 +1,144 @@+@tailwind base;+@tailwind components;+@tailwind utilities;++@theme {+ --color-primary: var(--primary);+ --color-secondary: var(--secondary);+ --color-bg-page: var(--bg-page);+ --color-bg-card: var(--bg-card);+ --color-bg-card-hover: var(--bg-card-hover);+ --color-primary-text: var(--text-primary);+ --color-secondary-text: var(--text-secondary);+ --color-divider: var(--border-subtle);++ /* Status Colors */+ --color-success: var(--color-success);+ --color-success-bg: var(--color-success-bg);+ --color-warning: var(--color-warning);+ --color-warning-bg: var(--color-warning-bg);+ --color-error: var(--color-error);+ --color-error-bg: var(--color-error-bg);+}++@layer base {+ :root {+ /* Brand Colors */+ --brand-primary: #3b82f6;+ --brand-primary-hover: #2563EB;+ --brand-accent: #818CF8;+ --brand-accent-hover: #7C3AED;++ /* Semantic Theme Tokens */+ --primary: #3b82f6;+ --secondary: #818CF8;+ --bg-page: #F8FAFC;+ --bg-card: #FFFFFF;+ --bg-card-hover: #F1F5F9;+ --bg-elevated: #FFFFFF;+ --text-primary: #0F172A;+ --text-secondary: #475569;+ --text-muted: #94A3B8;+ --border-subtle: #E2E8F0;+ --border-default: #CBD5E1;+ --border-hover: #94A3B8;++ /* Status Colors */+ --color-success: #10B981;+ --color-success-bg: #ECFDF5;+ --color-warning: #F59E0B;+ --color-warning-bg: #FFFBEB;+ --color-error: #EF4444;+ --color-error-bg: #FEF2F2;+ --color-info: #3B82F6;+ --color-info-bg: #EFF6FF;++ /* Shadows */+ --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);+ --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);+ --shadow-card-hover: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);+ --shadow-elevated: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);++ /* Radius */+ --radius-sm: 6px;+ --radius: 4px;+ --radius-md: 10px;+ --radius-lg: 14px;+ --radius-xl: 18px;+ }++ .dark {+ --primary: #3b82f6;+ --secondary: #A78BFA;+ --bg-page: #121212;+ --bg-card: #1E1E1E;+ --bg-card-hover: #2A2A2A;+ --bg-elevated: #1E1E1E;+ --text-primary: #E0E0E0;+ --text-secondary: #B0B0B0;+ --text-muted: #71717a;+ --border-subtle: #333333;+ --border-default: #444444;+ --border-hover: #555555;++ /* Status Colors (Dark) */+ --color-success-bg: rgba(16, 185, 129, 0.1);+ --color-warning-bg: rgba(245, 158, 11, 0.1);+ --color-error-bg: rgba(239, 68, 68, 0.1);+ --color-info-bg: rgba(59, 130, 246, 0.1);++ --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.3);+ --shadow-card-hover: 0 4px 12px -2px rgba(0, 0, 0, 0.4);+ }++ .scrollbar-hide::-webkit-scrollbar {+ display: none;+ }+ .scrollbar-hide {+ -ms-overflow-style: none;+ scrollbar-width: none;+ }++ .scrollbar-subtle::-webkit-scrollbar {+ width: 4px;+ height: 4px;+ }+ .scrollbar-subtle::-webkit-scrollbar-thumb {+ background: var(--border-default);+ border-radius: 10px;+ }+ .scrollbar-subtle::-webkit-scrollbar-track {+ background: transparent;+ }+}++@layer utilities {+ .glass {+ background-color: rgba(0, 0, 0, 0.4);+ backdrop-filter: blur(12px);+ -webkit-backdrop-filter: blur(12px);+ border: 1px solid rgba(255, 255, 255, 0.1);+ }++ .dark .glass {+ background-color: rgba(0, 0, 0, 0.6);+ }+}++@keyframes typing-dot {+ 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }+ 30% { opacity: 1; transform: translateY(-3px); }+}++.typing-dots span {+ width: 4px;+ height: 4px;+ margin: 0 1px;+ background-color: currentColor;+ border-radius: 50%;+ display: inline-block;+ animation: typing-dot 1.4s infinite ease-in-out both;+}++.typing-dots span:nth-child(1) { animation-delay: -0.32s; }+.typing-dots span:nth-child(2) { animation-delay: -0.16s; }diff --git a/packages/design-agent/tailwind.config.js b/packages/design-agent/tailwind.config.jsnew file mode 100644index 0000000..72a6239--- /dev/null+++ b/packages/design-agent/tailwind.config.js@@ -0,0 +1,21 @@+module.exports = {+ content: ["./src/**/*.{js,jsx,ts,tsx}"],+ theme: {+ extend: {+ colors: {+ primary: "var(--primary)",+ divider: "var(--border-subtle)",+ "bg-page": "var(--bg-page)",+ "bg-card": "var(--bg-card)",+ "bg-card-hover": "var(--bg-card-hover)",+ "primary-text": "var(--text-primary)",+ "secondary-text": "var(--text-secondary)",+ "border-main": "var(--border-default)",+ },+ animation: {+ "pulse-slow": "pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite",+ },+ },+ },+ plugins: [],+};diff --git a/pyproject.toml b/pyproject.tomldeleted file mode 100644index f36fbde..0000000--- a/pyproject.toml+++ /dev/null@@ -1,52 +0,0 @@-[build-system]-requires = ["hatchling"]-build-backend = "hatchling.build"--[project]-name = "tagopen"-version = "0.1.0"-description = "Self-hostable channel-native AI teammate for Slack"-readme = "README.md"-requires-python = ">=3.11"-dependencies = [- "slack-bolt>=1.21.0",- "litellm>=1.45.0",- "mem0ai>=0.1.0",- "mcp>=1.0.0",- "aiosqlite>=0.20.0",- "apscheduler>=3.10.0",- "pydantic>=2.7.0",- "pydantic-settings>=2.3.0",- "toml>=0.10.2",- "httpx>=0.27.0",- "tenacity>=8.3.0",- "structlog>=24.2.0",-]--[project.optional-dependencies]-dev = [- "pytest>=8.2.0",- "pytest-asyncio>=0.23.0",- "pytest-mock>=3.14.0",- "ruff>=0.4.0",- "mypy>=1.10.0",-]--[project.scripts]-tagopen = "tagopen.cli:main"--[tool.ruff]-line-length = 100-target-version = "py311"--[tool.ruff.lint]-select = ["E", "F", "I", "UP"]--[tool.pytest.ini_options]-asyncio_mode = "auto"-testpaths = ["tests"]--[tool.mypy]-python_version = "3.11"-strict = false-ignore_missing_imports = truediff --git a/server/.env.example b/server/.env.examplenew file mode 100644index 0000000..fa079bf--- /dev/null+++ b/server/.env.example@@ -0,0 +1,2 @@+MU_API_KEY=your_api_key+API_SUFFIX=https://api.muapi.ai\ No newline at end of filediff --git a/server/app/main.py b/server/app/main.pynew file mode 100644index 0000000..e9b12e5--- /dev/null+++ b/server/app/main.py@@ -0,0 +1,33 @@+import os+from pathlib import Path+from dotenv import load_dotenv++# Load environment variables from .env file+env_path = Path(__file__).resolve().parent.parent / ".env"+load_dotenv(dotenv_path=env_path)++from fastapi import FastAPI+from fastapi.middleware.cors import CORSMiddleware+from app.routers import creative_agent_router++app = FastAPI(title="Creative Agent Proxy API", version="1.0.0")++app.include_router(creative_agent_router.router, prefix="/api/v1/creative-agent", tags=["creative-agent"])+app.include_router(creative_agent_router.app_router, prefix="/api/v1", tags=["app"])++# Configure CORS+app.add_middleware(+ CORSMiddleware,+ allow_origins=["http://localhost:3000"], # Next.js default port+ allow_credentials=True,+ allow_methods=["*"],+ allow_headers=["*"],+)+[email protected]("/")+async def root():+ return {"message": "Welcome to Creative Agent Proxy API"}+[email protected]("/api/health")+async def health_check():+ return {"status": "healthy"}diff --git a/tagopen/agent/__init__.py b/server/app/routers/__init__.pysimilarity index 100%rename from tagopen/agent/__init__.pyrename to server/app/routers/__init__.pydiff --git a/server/app/routers/creative_agent_router.py b/server/app/routers/creative_agent_router.pynew file mode 100644index 0000000..f6ec83e--- /dev/null+++ b/server/app/routers/creative_agent_router.py@@ -0,0 +1,188 @@+from fastapi import APIRouter, Request, HTTPException, Form, UploadFile, File+from app.utils.muapi_helper import proxy_request_helper, proxy_s3_upload, API_SUFFIX+from typing import Any++router = APIRouter()+app_router = APIRouter()++# ---------------------------------------------------------+# /api/v1/creative-agent endpoints (via router)+# ---------------------------------------------------------+[email protected]("/sessions")+async def get_sessions():+ url = f"{API_SUFFIX}/api/v1/creative-agent/sessions"+ return await proxy_request_helper("GET", url)+[email protected]("/sessions")+async def create_session(request: Request):+ try:+ payload = await request.json()+ except:+ payload = {}+ url = f"{API_SUFFIX}/api/v1/creative-agent/sessions"+ return await proxy_request_helper("POST", url, payload)+[email protected]("/sessions/{session_id}")+async def update_session(session_id: str, request: Request):+ payload = await request.json()+ url = f"{API_SUFFIX}/api/v1/creative-agent/sessions/{session_id}"+ return await proxy_request_helper("PATCH", url, payload)+[email protected]("/sessions/{session_id}")+async def delete_session(session_id: str):+ url = f"{API_SUFFIX}/api/v1/creative-agent/sessions/{session_id}"+ return await proxy_request_helper("DELETE", url)+[email protected]("/sessions/{session_id}/messages")+async def get_session_messages(session_id: str):+ url = f"{API_SUFFIX}/api/v1/creative-agent/sessions/{session_id}/messages"+ return await proxy_request_helper("GET", url)+[email protected]("/sessions/{session_id}/messages")+async def update_session_messages(session_id: str, request: Request):+ payload = await request.json()+ url = f"{API_SUFFIX}/api/v1/creative-agent/sessions/{session_id}/messages"+ return await proxy_request_helper("PATCH", url, payload)+[email protected]("/sessions/{session_id}/chat")+async def chat(session_id: str, request: Request):+ payload = await request.json()+ url = f"{API_SUFFIX}/api/v1/creative-agent/sessions/{session_id}/chat"+ return await proxy_request_helper("POST", url, payload)+[email protected]("/sessions/{session_id}/assets")+async def get_session_assets(session_id: str):+ url = f"{API_SUFFIX}/api/v1/creative-agent/sessions/{session_id}/assets"+ return await proxy_request_helper("GET", url)+[email protected]("/sessions/{session_id}/assets")+async def register_session_asset(session_id: str, request: Request):+ payload = await request.json()+ url = f"{API_SUFFIX}/api/v1/creative-agent/sessions/{session_id}/assets"+ return await proxy_request_helper("POST", url, payload)+[email protected]("/jobs/{job_id}/approve")+async def approve_job(job_id: str, request: Request):+ try:+ payload = await request.json()+ except:+ payload = {}+ url = f"{API_SUFFIX}/api/v1/creative-agent/jobs/{job_id}/approve"+ return await proxy_request_helper("POST", url, payload)+[email protected]("/jobs/{job_id}/reject")+async def reject_job(job_id: str, request: Request):+ try:+ payload = await request.json()+ except:+ payload = {}+ url = f"{API_SUFFIX}/api/v1/creative-agent/jobs/{job_id}/reject"+ return await proxy_request_helper("POST", url, payload)+[email protected]("/jobs/{job_id}/cancel")+async def cancel_job(job_id: str, request: Request):+ try:+ payload = await request.json()+ except:+ payload = {}+ url = f"{API_SUFFIX}/api/v1/creative-agent/jobs/{job_id}/cancel"+ return await proxy_request_helper("POST", url, payload)+[email protected]("/jobs/{job_id}/status")+async def get_job_status(job_id: str):+ url = f"{API_SUFFIX}/api/v1/creative-agent/jobs/{job_id}/status"+ return await proxy_request_helper("GET", url)+[email protected]("/jobs/{job_id}/events")+async def get_job_events(job_id: str, request: Request):+ import urllib.parse+ params = dict(request.query_params)+ query_string = urllib.parse.urlencode(params)+ url = f"{API_SUFFIX}/api/v1/creative-agent/jobs/{job_id}/events"+ if query_string:+ url += f"?{query_string}"+ return await proxy_request_helper("GET", url)+[email protected]("/sessions/{session_id}/jobs")+async def get_session_jobs(session_id: str):+ url = f"{API_SUFFIX}/api/v1/creative-agent/sessions/{session_id}/jobs"+ return await proxy_request_helper("GET", url)+[email protected]("/agent-skills")+async def get_agent_skills():+ url = f"{API_SUFFIX}/api/v1/creative-agent/agent-skills"+ return await proxy_request_helper("GET", url)+[email protected]("/sessions/{session_id}/run-skill")+async def run_skill(session_id: str, request: Request):+ payload = await request.json()+ url = f"{API_SUFFIX}/api/v1/creative-agent/sessions/{session_id}/run-skill"+ return await proxy_request_helper("POST", url, payload)++# Account balance endpoint[email protected]("/account/balance")+async def get_account_balance():+ # It might be located at /api/v1/account/balance on the upstream+ url = f"{API_SUFFIX}/api/v1/account/balance"+ return await proxy_request_helper("GET", url)++# ---------------------------------------------------------+# /api/app endpoints (via app_router)+# ---------------------------------------------------------++@app_router.get("/get_upload_url")+async def get_upload_url(request: Request):+ import urllib.parse+ params = dict(request.query_params)+ query_string = urllib.parse.urlencode(params)+ url = f"{API_SUFFIX}/api/v1/get_upload_url?{query_string}"+ return await proxy_request_helper("GET", url)++@app_router.post("/upload-binary")+async def upload_binary(+ request: Request,+):+ try:+ form = await request.form()+ print(f"DEBUG: Received upload-binary request. Fields: {list(form.keys())}")+ target_url = form.get("x-proxy-target-url")++ if not target_url:+ print("DEBUG: x-proxy-target-url NOT FOUND in form.get()")+ raise HTTPException(status_code=400, detail="Missing x-proxy-target-url in form data")++ # Build S3 form data+ s3_form_data = {}+ file_bytes = None+ file_name = "file"+ content_type = "application/octet-stream"++ for key, value in form.items():+ if key == "x-proxy-target-url":+ continue++ # Check if this is the file field+ if key == "file":+ print(f"DEBUG: Processing 'file' field. Type: {type(value)}")+ if hasattr(value, "read") and hasattr(value, "filename"):+ file_bytes = await value.read()+ file_name = value.filename+ content_type = value.content_type+ print(f"DEBUG: Successfully read UploadFile: {file_name} ({len(file_bytes)} bytes)")+ else:+ # Fallback for unexpected types+ file_bytes = value if isinstance(value, bytes) else str(value).encode()+ print(f"DEBUG: Read file as fallback bytes: {len(file_bytes)} bytes")+ else:+ s3_form_data[key] = value++ if not file_bytes:+ print("DEBUG: UPLOAD FAILED - No file_bytes found after loop")+ raise HTTPException(status_code=400, detail="Missing file in form data")++ return await proxy_s3_upload(target_url, s3_form_data, file_bytes, file_name, content_type)+ except Exception as e:+ print(f"DEBUG: upload_binary exception: {type(e).__name__}: {e}")+ if isinstance(e, HTTPException): raise e+ raise HTTPException(status_code=400, detail=str(e))diff --git a/tagopen/ambient/__init__.py b/server/app/utils/__init__.pysimilarity index 100%rename from tagopen/ambient/__init__.pyrename to server/app/utils/__init__.pydiff --git a/server/app/utils/muapi_helper.py b/server/app/utils/muapi_helper.pynew file mode 100644index 0000000..9562c05--- /dev/null+++ b/server/app/utils/muapi_helper.py@@ -0,0 +1,87 @@+import os+import httpx+import logging+from fastapi import HTTPException+from typing import Optional+from pathlib import Path++BASE_DIR = Path(__file__).resolve().parent.parent.parent+logging.basicConfig(level=logging.INFO)+logger = logging.getLogger(__name__)++MU_API_KEY = os.getenv("MU_API_KEY")+API_SUFFIX = os.getenv("API_SUFFIX", "https://api.muapi.ai").rstrip("/")++async def get_api_key():+ api_key = os.getenv("MU_API_KEY")+ if not api_key:+ raise HTTPException(status_code=400, detail="Setup MU_API_KEY in server/.env to be able to use the Creative Agent")+ return api_key++async def proxy_request_helper(method: str, url: str, payload: Optional[dict] = None):+ api_key = await get_api_key()+ headers = {+ "Content-Type": "application/json",+ "x-api-key": api_key,+ }++ async with httpx.AsyncClient() as client:+ try:+ if method.upper() == "GET":+ response = await client.get(url, headers=headers, timeout=60.0)+ elif method.upper() == "POST":+ response = await client.post(url, json=payload, headers=headers, timeout=60.0)+ elif method.upper() == "DELETE":+ response = await client.delete(url, headers=headers, timeout=60.0)+ elif method.upper() == "PATCH":+ response = await client.patch(url, json=payload, headers=headers, timeout=60.0)+ elif method.upper() == "PUT":+ response = await client.put(url, json=payload, headers=headers, timeout=60.0)+ else:+ raise HTTPException(status_code=405, detail=f"Method {method} not supported in proxy")++ except httpx.RequestError as e:+ logger.error(f"HTTPExt Request Error for {method} {url}: {e}")+ raise HTTPException(status_code=500, detail=f"Error contacting remote server: {str(e)}")+ except Exception as e:+ logger.error(f"Unexpected error in proxy_request_helper for {method} {url}: {e}")+ raise HTTPException(status_code=500, detail=f"Internal Server Error: {str(e)}")++ try:+ if response.content:+ resp_json = response.json()+ else:+ resp_json = {}+ except ValueError:+ resp_json = {"detail": response.text or "Unknown error from remote server"}++ if 200 <= response.status_code < 300:+ return resp_json+ else:+ error_detail = resp_json.get("detail", "Something went wrong")+ logger.warning(f"Remote server returned {response.status_code}: {error_detail}")+ raise HTTPException(status_code=response.status_code, detail=error_detail)++async def proxy_s3_upload(target_url: str, form_data: dict, file_bytes: bytes, file_name: str, content_type: str):+ """+ Bypass browser CORS by uploading to S3 from the server.+ """+ try:+ print(f"Uploading file {file_name} to S3...")+ async with httpx.AsyncClient() as client:+ # S3 pre-signed POST requires the 'file' field to be the LAST field in the form+ fields = []+ for k, v in form_data.items():+ fields.append((k, (None, str(v))))+ fields.append(("file", (file_name, file_bytes, content_type)))++ response = await client.post(target_url, files=fields, timeout=120.0)++ if response.status_code == 204 or response.status_code == 200:+ return {"status": "success"}+ else:+ logger.error(f"S3 Proxy Error: {response.text}")+ raise HTTPException(status_code=response.status_code, detail="S3 upload failed")+ except Exception as e:+ logger.error(f"Upload Proxy Exception: {e}")+ raise HTTPException(status_code=500, detail=str(e))diff --git a/server/requirements.txt b/server/requirements.txtnew file mode 100644index 0000000..cb50b1a--- /dev/null+++ b/server/requirements.txt@@ -0,0 +1,5 @@+fastapi+uvicorn+httpx+python-dotenv+python-multipartdiff --git a/tagopen/__init__.py b/tagopen/__init__.pydeleted file mode 100644index 3a8bb00..0000000--- a/tagopen/__init__.py+++ /dev/null@@ -1,3 +0,0 @@-"""TagOpen — open source channel-native AI teammate."""--__version__ = "0.1.0"diff --git a/tagopen/agent/context.py b/tagopen/agent/context.pydeleted file mode 100644index cedae13..0000000--- a/tagopen/agent/context.py+++ /dev/null@@ -1,94 +0,0 @@-"""Context assembler — builds the system prompt and message list for the LLM."""--from __future__ import annotations--import logging-from pathlib import Path--from tagopen.config import settings-from tagopen.memory.store import MessageStore--logger = logging.getLogger(__name__)--_DEFAULT_CHANNEL_MD = """\-# Channel Agent--You are a helpful AI teammate in this Slack channel.-Be concise, direct, and technical. Ask clarifying questions before taking big actions.-"""---def _read_channel_file(channel_id: str, filename: str, default: str = "") -> str:- path = settings.channels_dir / channel_id / filename- if path.exists():- return path.read_text()- return default---def build_system_prompt(channel_id: str, user_map: dict[str, str]) -> str:- """Assemble the system prompt from CHANNEL.md + MEMORY.md + active skills."""- channel_md = _read_channel_file(channel_id, "CHANNEL.md", _DEFAULT_CHANNEL_MD)- memory_md = _read_channel_file(channel_id, "MEMORY.md", "")- skills = _load_skills(channel_id)-- parts = [channel_md.strip()]-- if memory_md.strip():- parts.append(f"## What I know about this channel\n\n{memory_md.strip()}")-- if skills:- skill_block = "\n\n".join(f"### Skill: {name}\n{content}" for name, content in skills)- parts.append(f"## Available skills\n\n{skill_block}")-- parts.append(- "## Multi-user context\n"- "Messages are prefixed with [timestamp @username]. "- "You are a shared teammate — anyone in the channel can see this conversation. "- "When following up, address the relevant person by @username."- )-- parts.append(- "## Memory tools\n"- "After responding you may call `memory_append` or `memory_replace` to persist "- "important facts, decisions, or conventions to MEMORY.md. Only save what future "- "sessions would genuinely benefit from knowing."- )-- return "\n\n---\n\n".join(parts)---def _load_skills(channel_id: str) -> list[tuple[str, str]]:- skills_dir = settings.channels_dir / channel_id / "skills"- if not skills_dir.exists():- return []- results = []- for path in sorted(skills_dir.glob("*.md")):- content = path.read_text()- # Skip archived skills- if "status: archived" in content:- continue- results.append((path.stem, content))- return results---async def build_messages(- channel_id: str,- user_id: str,- display_name: str,- text: str,- thread_ts: str,- store: MessageStore,-) -> list[dict]:- """Build the messages list: recent channel history + current message."""- recent = await store.get_recent_messages(limit=settings.context_window_messages)-- messages: list[dict] = []- for row in recent:- ts_str = row["ts"][:16].replace("T", " ") # trim to minute- prefix = f"[{ts_str} @{row['display_name']}]"- role = "assistant" if row["role"] == "assistant" else "user"- messages.append({"role": role, "content": f"{prefix} {row['content']}"})-- # Append current user message- messages.append({"role": "user", "content": f"[@{display_name}] {text}"})- return messagesdiff --git a/tagopen/agent/loop.py b/tagopen/agent/loop.pydeleted file mode 100644index 18002d0..0000000--- a/tagopen/agent/loop.py+++ /dev/null@@ -1,146 +0,0 @@-"""Agent loop — ReAct-style: think → tool call → observe → repeat → reply → memory curation."""--from __future__ import annotations--import json-import logging-from typing import TYPE_CHECKING, Any--from tagopen.agent.context import build_messages, build_system_prompt-from tagopen.agent.skills import maybe_create_skill-from tagopen.config import settings-from tagopen.llm import acompletion-from tagopen.memory.store import MessageStore-from tagopen.memory.writer import run_memory_curation-from tagopen.tools.registry import get_channel_tools, dispatch_tool--if TYPE_CHECKING:- from slack_bolt.async_app import AsyncApp--logger = logging.getLogger(__name__)--MAX_TOOL_ROUNDS = 10 # prevent runaway loops---async def run_agent_loop(- app: "AsyncApp",- workspace_id: str,- channel_id: str,- user_id: str,- display_name: str,- text: str,- thread_ts: str,- event_ts: str,- store: MessageStore,-) -> None:- # Persist the incoming user message- await store.add_message(- ts=event_ts,- role="user",- user_id=user_id,- display_name=display_name,- content=text,- thread_ts=thread_ts,- )-- # Fetch Slack user map for attribution (best-effort)- try:- members = await app.client.conversations_members(channel=channel_id)- user_map: dict[str, str] = {}- for uid in (members.get("members") or [])[:50]:- info = await app.client.users_info(user=uid)- profile = info["user"].get("profile", {})- user_map[uid] = profile.get("display_name") or info["user"].get("real_name") or uid- except Exception:- user_map = {user_id: display_name}-- system_prompt = build_system_prompt(channel_id, user_map)- messages = await build_messages(channel_id, user_id, display_name, text, thread_ts, store)- tools = get_channel_tools(channel_id)-- tool_call_count = 0- final_text = ""-- for _round in range(MAX_TOOL_ROUNDS):- response = await acompletion(- channel_id=channel_id,- messages=[{"role": "system", "content": system_prompt}] + messages,- tools=tools or None,- tool_choice="auto" if tools else None,- )-- choice = response.choices[0]- msg = choice.message-- # Pure text response — we're done- if not msg.tool_calls:- final_text = msg.content or ""- break-- # Execute each tool call- messages.append(msg.model_dump(exclude_none=True))- for tc in msg.tool_calls:- tool_call_count += 1- fn_name = tc.function.name- fn_args = json.loads(tc.function.arguments or "{}")-- logger.info("Tool call: %s(%s) in channel=%s", fn_name, fn_args, channel_id)- result = await dispatch_tool(fn_name, fn_args, channel_id=channel_id)-- # Handle memory write tools inline- if fn_name in ("memory_append", "memory_replace"):- _handle_memory_tool(channel_id, fn_name, fn_args)- result = "Memory updated."-- messages.append({- "role": "tool",- "tool_call_id": tc.id,- "content": str(result),- })- else:- final_text = "I reached my tool call limit. Here's what I found so far."-- if not final_text:- final_text = "Done."-- # Post reply to Slack- await app.client.chat_postMessage(- channel=channel_id,- text=final_text,- thread_ts=thread_ts,- )-- # Persist assistant reply- await store.add_message(- ts=str(__import__("time").time()),- role="assistant",- user_id="agent",- display_name="agent",- content=final_text,- thread_ts=thread_ts,- )-- # Inner loop: memory curation turn (Letta-inspired)- # Agent decides what's worth persisting to MEMORY.md- await run_memory_curation(channel_id, system_prompt, messages, final_text)-- # Skill auto-creation if task was complex (Hermes-inspired)- if tool_call_count >= 5:- await maybe_create_skill(channel_id, messages, final_text, tool_call_count)---def _handle_memory_tool(channel_id: str, fn_name: str, args: dict[str, Any]) -> None:- memory_path = settings.channels_dir / channel_id / "MEMORY.md"- memory_path.parent.mkdir(parents=True, exist_ok=True)-- current = memory_path.read_text() if memory_path.exists() else ""-- if fn_name == "memory_append":- entry = args.get("content", "").strip()- if entry:- memory_path.write_text(current.rstrip() + f"\n- {entry}\n")-- elif fn_name == "memory_replace":- old = args.get("old", "")- new = args.get("new", "")- memory_path.write_text(current.replace(old, new))diff --git a/tagopen/agent/skills.py b/tagopen/agent/skills.pydeleted file mode 100644index 2a9387f..0000000--- a/tagopen/agent/skills.py+++ /dev/null@@ -1,99 +0,0 @@-"""Skill auto-creation after complex tasks (Hermes-inspired)."""--from __future__ import annotations--import logging-from datetime import date--from tagopen.config import settings-from tagopen.llm import acompletion--logger = logging.getLogger(__name__)--_SKILL_CREATION_PROMPT = """\-The agent just completed a complex multi-step task. Review the conversation below and decide-whether it reveals a reusable procedure worth saving as a skill.--A skill is worth saving if:-- The task involved a non-obvious sequence of steps-- The same task is likely to come up again in this channel-- The agent made useful discoveries (gotchas, correct tool order, edge cases)--If yes, write a SKILL.md with this exact format:------name: <short-kebab-slug>-description: <one sentence — what task this skill handles>-created: {today}-tool_calls_in_session: {tool_calls}-uses: 0-last_used: null-status: active------## When to use this-<1-2 sentences>--## Steps-<numbered list>--## Known gotchas-<bullet list, or "None">--If no skill is worth saving, respond with exactly: SKIP-"""---async def maybe_create_skill(- channel_id: str,- messages: list[dict],- final_reply: str,- tool_call_count: int,-) -> None:- skills_dir = settings.channels_dir / channel_id / "skills"- skills_dir.mkdir(parents=True, exist_ok=True)-- conversation_summary = _summarize_messages(messages[-20:]) # last 20 to keep prompt tight- prompt = _SKILL_CREATION_PROMPT.format(today=date.today(), tool_calls=tool_call_count)-- try:- response = await acompletion(- channel_id=channel_id,- messages=[- {"role": "system", "content": prompt},- {"role": "user", "content": f"Conversation:\n{conversation_summary}\n\nFinal reply:\n{final_reply}"},- ],- )- content = response.choices[0].message.content or ""- if content.strip() == "SKIP":- return-- # Extract the name from the frontmatter- name = "unnamed"- for line in content.splitlines():- if line.startswith("name:"):- name = line.split(":", 1)[1].strip()- break-- skill_path = skills_dir / f"{name}.md"- # Don't overwrite existing skills- if skill_path.exists():- skill_path = skills_dir / f"{name}-{int(__import__('time').time())}.md"-- skill_path.write_text(content)- logger.info("Skill created: %s in channel=%s", skill_path.name, channel_id)-- except Exception:- logger.exception("Skill creation failed for channel=%s", channel_id)---def _summarize_messages(messages: list[dict]) -> str:- lines = []- for m in messages:- role = m.get("role", "")- content = m.get("content") or ""- if isinstance(content, list):- content = " ".join(c.get("text", "") for c in content if isinstance(c, dict))- if role in ("user", "assistant") and content:- lines.append(f"{role.upper()}: {content[:300]}")- return "\n".join(lines)diff --git a/tagopen/ambient/heartbeat.py b/tagopen/ambient/heartbeat.pydeleted file mode 100644index 6f8d079..0000000--- a/tagopen/ambient/heartbeat.py+++ /dev/null@@ -1,61 +0,0 @@-"""Ambient heartbeat — proactive channel monitoring (Phase 3 stub).--The scheduler calls run_heartbeat(channel_id) on a per-channel cron.-It assembles an observation dump and asks the LLM: "anything worth surfacing?"-If yes, it posts to the channel. If no, it stays silent (SILENT sentinel).-"""--from __future__ import annotations--import logging--import litellm--from tagopen.config import settings-from tagopen.memory.store import get_store--logger = logging.getLogger(__name__)--_HEARTBEAT_PROMPT = """\-You are monitoring a Slack channel as a proactive AI teammate.-Below is a summary of recent activity.--Your job: decide if anything is worth surfacing proactively.-Only post if there's genuine value — a stale thread needing follow-up,-a deadline approaching, an unresolved question, or a risk you spotted.--If nothing is worth surfacing, respond with exactly: SILENT-Otherwise, write the message you would post to the channel (concise, actionable).-"""---async def run_heartbeat(- app,- workspace_id: str,- channel_id: str,-) -> None:- store = await get_store(workspace_id, channel_id)- recent = await store.get_recent_messages(limit=30)-- if not recent:- return-- summary_lines = []- for row in recent:- summary_lines.append(f"[{row['display_name']}]: {row['content'][:200]}")- summary = "\n".join(summary_lines)-- try:- response = await litellm.acompletion(- model=settings.llm_model,- messages=[- {"role": "system", "content": _HEARTBEAT_PROMPT},- {"role": "user", "content": f"Recent messages:\n{summary}"},- ],- )- text = (response.choices[0].message.content or "").strip()- if text and text != "SILENT":- await app.client.chat_postMessage(channel=channel_id, text=text)- logger.info("Heartbeat posted to channel=%s", channel_id)- except Exception:- logger.exception("Heartbeat failed for channel=%s", channel_id)diff --git a/tagopen/cli.py b/tagopen/cli.pydeleted file mode 100644index ea59b1c..0000000--- a/tagopen/cli.py+++ /dev/null@@ -1,28 +0,0 @@-"""CLI entry point."""--import asyncio-import logging--import structlog---def main() -> None:- structlog.configure(- processors=[- structlog.stdlib.add_log_level,- structlog.stdlib.PositionalArgumentsFormatter(),- structlog.dev.ConsoleRenderer(),- ],- wrapper_class=structlog.make_filtering_bound_logger(logging.INFO),- logger_factory=structlog.PrintLoggerFactory(),- )-- from tagopen.llm import configure- from tagopen.gateway.app import start-- configure()- asyncio.run(start())---if __name__ == "__main__":- main()diff --git a/tagopen/config.py b/tagopen/config.pydeleted file mode 100644index 7ae7466..0000000--- a/tagopen/config.py+++ /dev/null@@ -1,39 +0,0 @@-"""Global settings loaded from environment / .env file."""--from pathlib import Path--from pydantic_settings import BaseSettings, SettingsConfigDict---class Settings(BaseSettings):- model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore")-- # Slack- slack_bot_token: str- slack_app_token: str-- # LLM — LiteLLM model string, e.g. "gpt-4o", "claude-sonnet-4-6", "gemini/gemini-2.0-flash"- llm_model: str = "claude-sonnet-4-6"- anthropic_api_key: str = ""- openai_api_key: str = ""- gemini_api_key: str = ""- groq_api_key: str = ""-- # Storage- data_dir: Path = Path("./data")-- # Limits- default_max_tokens_per_request: int = 50_000- default_max_tokens_per_day: int = 500_000- context_window_messages: int = 50-- @property- def channels_dir(self) -> Path:- return self.data_dir / "channels"-- @property- def db_path(self) -> Path:- return self.data_dir / "tagopen.db"---settings = Settings() # type: ignore[call-arg]diff --git a/tagopen/gateway/__init__.py b/tagopen/gateway/__init__.pydeleted file mode 100644index e69de29..0000000diff --git a/tagopen/gateway/app.py b/tagopen/gateway/app.pydeleted file mode 100644index 0140c80..0000000--- a/tagopen/gateway/app.py+++ /dev/null@@ -1,58 +0,0 @@-"""Slack Bolt gateway — entry point for all Slack events."""--import asyncio-import logging--from slack_bolt.async_app import AsyncApp-from slack_bolt.adapter.socket_mode.async_handler import AsyncSocketModeHandler--from tagopen.config import settings-from tagopen.gateway.router import route_message--logger = logging.getLogger(__name__)--app = AsyncApp(token=settings.slack_bot_token)--[email protected]("app_mention")-async def handle_mention(event: dict, say, client) -> None:- """Handle @tagopen mentions in channels."""- channel_id = event["channel"]- workspace_id = (await client.auth_test())["team_id"]- user_id = event["user"]- text = event["text"]- thread_ts = event.get("thread_ts") or event["ts"]-- # Acknowledge quickly with a reaction so the user knows we're working- await client.reactions_add(channel=channel_id, timestamp=event["ts"], name="thinking_face")-- try:- await route_message(- app=app,- workspace_id=workspace_id,- channel_id=channel_id,- user_id=user_id,- text=text,- thread_ts=thread_ts,- event_ts=event["ts"],- )- except Exception:- logger.exception("Error handling mention in %s", channel_id)- await say(- text="Sorry, I ran into an error processing that. Check the logs.",- thread_ts=thread_ts,- )- finally:- await client.reactions_remove(channel=channel_id, timestamp=event["ts"], name="thinking_face")--[email protected]("message")-async def handle_message(event: dict, client) -> None:- """Ignore regular messages — only respond to @mentions."""- pass---async def start() -> None:- handler = AsyncSocketModeHandler(app, settings.slack_app_token)- logger.info("TagOpen gateway starting (Socket Mode)…")- await handler.start_async()diff --git a/tagopen/gateway/router.py b/tagopen/gateway/router.pydeleted file mode 100644index a062bb5..0000000--- a/tagopen/gateway/router.py+++ /dev/null@@ -1,76 +0,0 @@-"""Channel router — maps (workspace_id, channel_id) to an AgentSession and runs the loop."""--import logging-from dataclasses import dataclass, field-from typing import TYPE_CHECKING--from tagopen.agent.loop import run_agent_loop-from tagopen.memory.store import get_store--if TYPE_CHECKING:- from slack_bolt.async_app import AsyncApp--logger = logging.getLogger(__name__)--# In-memory session registry: (workspace_id, channel_id) → AgentSession-# The key insight vs OpenClaw: session key includes channel_id, NOT user_id.-# All users in a channel share the same session.-_sessions: dict[tuple[str, str], "AgentSession"] = {}---@dataclass-class AgentSession:- workspace_id: str- channel_id: str- # Shared lock so concurrent @mentions in the same channel are serialized- # preventing context corruption from parallel writes.- _lock: asyncio.Lock = field(default_factory=lambda: __import__("asyncio").Lock())---import asyncio # noqa: E402 — needed for Lock reference above---def get_or_create_session(workspace_id: str, channel_id: str) -> AgentSession:- key = (workspace_id, channel_id)- if key not in _sessions:- _sessions[key] = AgentSession(workspace_id=workspace_id, channel_id=channel_id)- logger.info("New session: workspace=%s channel=%s", workspace_id, channel_id)- return _sessions[key]---async def route_message(- app: "AsyncApp",- workspace_id: str,- channel_id: str,- user_id: str,- text: str,- thread_ts: str,- event_ts: str,-) -> None:- session = get_or_create_session(workspace_id, channel_id)- store = await get_store(workspace_id, channel_id)-- # Fetch user display name for attribution in context- try:- user_info = await app.client.users_info(user=user_id)- display_name = (- user_info["user"].get("profile", {}).get("display_name")- or user_info["user"].get("real_name")- or user_id- )- except Exception:- display_name = user_id-- # Serialize per-channel — prevents race conditions on shared context- async with session._lock:- await run_agent_loop(- app=app,- workspace_id=workspace_id,- channel_id=channel_id,- user_id=user_id,- display_name=display_name,- text=text,- thread_ts=thread_ts,- event_ts=event_ts,- store=store,- )diff --git a/tagopen/llm.py b/tagopen/llm.pydeleted file mode 100644index 1717da0..0000000--- a/tagopen/llm.py+++ /dev/null@@ -1,90 +0,0 @@-"""LiteLLM helpers — key injection, model resolution, per-channel overrides.--LiteLLM reads provider keys from os.environ, not from arbitrary Python objects.-Call configure() once at startup to sync settings → os.environ.--Per-channel model override: add a line to CHANNEL.md frontmatter:- llm_model: gpt-4o-or set LLM_MODEL per channel in tools.toml:- [llm]- model = "gpt-4o"-"""--from __future__ import annotations--import logging-import os-from pathlib import Path--import litellm-import toml--from tagopen.config import settings--logger = logging.getLogger(__name__)--# Suppress LiteLLM's verbose success logs-litellm.suppress_debug_info = True---def configure() -> None:- """Sync API keys from settings → os.environ so LiteLLM can pick them up."""- _set_if_nonempty("ANTHROPIC_API_KEY", settings.anthropic_api_key)- _set_if_nonempty("OPENAI_API_KEY", settings.openai_api_key)- _set_if_nonempty("GEMINI_API_KEY", settings.gemini_api_key)- _set_if_nonempty("GROQ_API_KEY", settings.groq_api_key)-- logger.info("LLM configured — default model: %s", settings.llm_model)- _log_available_providers()---def _set_if_nonempty(env_var: str, value: str) -> None:- if value and not os.environ.get(env_var):- os.environ[env_var] = value---def _log_available_providers() -> None:- providers = []- if os.environ.get("ANTHROPIC_API_KEY"):- providers.append("Anthropic")- if os.environ.get("OPENAI_API_KEY"):- providers.append("OpenAI")- if os.environ.get("GEMINI_API_KEY"):- providers.append("Gemini")- if os.environ.get("GROQ_API_KEY"):- providers.append("Groq")- if providers:- logger.info("Available LLM providers: %s", ", ".join(providers))- else:- logger.warning("No LLM provider API keys found — set at least one in .env")---def resolve_model(channel_id: str | None = None) -> str:- """Return the model to use, respecting per-channel overrides.-- Override order (highest wins):- 1. tools.toml [llm] model = "..." in channel dir- 2. LLM_MODEL env var / settings.llm_model- """- if channel_id:- override = _channel_model_override(channel_id)- if override:- return override- return settings.llm_model---def _channel_model_override(channel_id: str) -> str | None:- tools_toml = settings.channels_dir / channel_id / "tools.toml"- if not tools_toml.exists():- return None- try:- config = toml.loads(tools_toml.read_text())- return config.get("llm", {}).get("model") or None- except Exception:- return None---async def acompletion(channel_id: str | None = None, **kwargs):- """Thin wrapper around litellm.acompletion that injects the resolved model."""- kwargs.setdefault("model", resolve_model(channel_id))- return await litellm.acompletion(**kwargs)diff --git a/tagopen/memory/__init__.py b/tagopen/memory/__init__.pydeleted file mode 100644index e69de29..0000000diff --git a/tagopen/memory/store.py b/tagopen/memory/store.pydeleted file mode 100644index d930bdc..0000000--- a/tagopen/memory/store.py+++ /dev/null@@ -1,127 +0,0 @@-"""SQLite + FTS5 message store — one DB per workspace, one table per channel."""--from __future__ import annotations--import logging-from functools import lru_cache-from pathlib import Path--import aiosqlite--from tagopen.config import settings--logger = logging.getLogger(__name__)--_CREATE_MESSAGES = """-CREATE TABLE IF NOT EXISTS messages (- id INTEGER PRIMARY KEY AUTOINCREMENT,- ts TEXT NOT NULL,- thread_ts TEXT,- channel_id TEXT NOT NULL,- role TEXT NOT NULL, -- 'user' | 'assistant'- user_id TEXT NOT NULL,- display_name TEXT NOT NULL,- content TEXT NOT NULL,- tool_calls INTEGER DEFAULT 0,- created_at REAL NOT NULL DEFAULT (unixepoch('now', 'subsec'))-);-"""--_CREATE_FTS = """-CREATE VIRTUAL TABLE IF NOT EXISTS messages_fts USING fts5(- content,- display_name,- content='messages',- content_rowid='id'-);-"""--_CREATE_TRIGGERS = """-CREATE TRIGGER IF NOT EXISTS messages_ai AFTER INSERT ON messages BEGIN- INSERT INTO messages_fts(rowid, content, display_name)- VALUES (new.id, new.content, new.display_name);-END;--CREATE TRIGGER IF NOT EXISTS messages_ad AFTER DELETE ON messages BEGIN- INSERT INTO messages_fts(messages_fts, rowid, content, display_name)- VALUES ('delete', old.id, old.content, old.display_name);-END;-"""---class MessageStore:- def __init__(self, db_path: Path, channel_id: str) -> None:- self._db_path = db_path- self._channel_id = channel_id- self._db: aiosqlite.Connection | None = None-- async def open(self) -> None:- self._db_path.parent.mkdir(parents=True, exist_ok=True)- self._db = await aiosqlite.connect(self._db_path)- self._db.row_factory = aiosqlite.Row- await self._db.execute("PRAGMA journal_mode=WAL")- await self._db.execute("PRAGMA foreign_keys=ON")- await self._db.executescript(_CREATE_MESSAGES + _CREATE_FTS + _CREATE_TRIGGERS)- await self._db.commit()-- async def add_message(- self,- ts: str,- role: str,- user_id: str,- display_name: str,- content: str,- thread_ts: str | None = None,- tool_calls: int = 0,- ) -> None:- assert self._db- await self._db.execute(- """INSERT INTO messages (ts, thread_ts, channel_id, role, user_id, display_name, content, tool_calls)- VALUES (?, ?, ?, ?, ?, ?, ?, ?)""",- (ts, thread_ts, self._channel_id, role, user_id, display_name, content, tool_calls),- )- await self._db.commit()-- async def get_recent_messages(self, limit: int = 50) -> list[aiosqlite.Row]:- assert self._db- async with self._db.execute(- """SELECT ts, role, user_id, display_name, content- FROM messages- WHERE channel_id = ?- ORDER BY created_at DESC- LIMIT ?""",- (self._channel_id, limit),- ) as cursor:- rows = await cursor.fetchall()- return list(reversed(rows)) # return chronologically-- async def search(self, query: str, limit: int = 10) -> list[aiosqlite.Row]:- """Full-text search across channel messages."""- assert self._db- async with self._db.execute(- """SELECT m.ts, m.role, m.display_name, m.content- FROM messages_fts f- JOIN messages m ON m.id = f.rowid- WHERE messages_fts MATCH ? AND m.channel_id = ?- ORDER BY rank- LIMIT ?""",- (query, self._channel_id, limit),- ) as cursor:- return await cursor.fetchall()-- async def close(self) -> None:- if self._db:- await self._db.close()---_stores: dict[tuple[str, str], MessageStore] = {}---async def get_store(workspace_id: str, channel_id: str) -> MessageStore:- key = (workspace_id, channel_id)- if key not in _stores:- db_path = settings.data_dir / "workspaces" / workspace_id / "messages.db"- store = MessageStore(db_path=db_path, channel_id=channel_id)- await store.open()- _stores[key] = store- return _stores[key]diff --git a/tagopen/memory/writer.py b/tagopen/memory/writer.pydeleted file mode 100644index 0791c3c..0000000--- a/tagopen/memory/writer.py+++ /dev/null@@ -1,102 +0,0 @@-"""Memory curation turn — inner loop (Letta-inspired).--After the agent replies, it gets one more LLM call to decide what-(if anything) to write to MEMORY.md. This keeps memory clean and-agent-curated rather than a noisy append-only log.-"""--from __future__ import annotations--import logging--from tagopen.llm import acompletion--logger = logging.getLogger(__name__)--_CURATION_PROMPT = """\-You just responded to a message in a Slack channel. Review the exchange below.--Your job: decide if anything should be persisted to the channel's long-term memory (MEMORY.md).-Only save facts that future sessions would genuinely benefit from knowing:-- Team conventions or preferences that came up-- Decisions made ("we decided to use X")-- Important context about the team or project-- Corrections to things you got wrong--Do NOT save:-- Transient task results (code output, search results)-- Things already in MEMORY.md-- Obvious facts that can be looked up--If something is worth saving, call memory_append or memory_replace.-If nothing is worth saving, do nothing — respond with an empty message.-"""--_MEMORY_TOOLS = [- {- "type": "function",- "function": {- "name": "memory_append",- "description": "Append a new fact or decision to MEMORY.md",- "parameters": {- "type": "object",- "properties": {- "content": {"type": "string", "description": "The fact to persist (one concise bullet)"},- },- "required": ["content"],- },- },- },- {- "type": "function",- "function": {- "name": "memory_replace",- "description": "Replace an outdated fact in MEMORY.md with an updated one",- "parameters": {- "type": "object",- "properties": {- "old": {"type": "string", "description": "The exact text to replace"},- "new": {"type": "string", "description": "The replacement text"},- },- "required": ["old", "new"],- },- },- },-]---async def run_memory_curation(- channel_id: str,- system_prompt: str,- messages: list[dict],- final_reply: str,-) -> None:- try:- response = await acompletion(- channel_id=channel_id,- messages=[- {"role": "system", "content": _CURATION_PROMPT},- # Provide the last few turns as context- *messages[-6:],- {"role": "assistant", "content": final_reply},- ],- tools=_MEMORY_TOOLS,- tool_choice="auto",- )-- msg = response.choices[0].message- if not msg.tool_calls:- return-- import json- from tagopen.agent.loop import _handle_memory_tool-- for tc in msg.tool_calls:- fn_name = tc.function.name- fn_args = json.loads(tc.function.arguments or "{}")- if fn_name in ("memory_append", "memory_replace"):- _handle_memory_tool(channel_id, fn_name, fn_args)- logger.info("Memory updated via curation: %s in channel=%s", fn_name, channel_id)-- except Exception:- logger.exception("Memory curation failed for channel=%s", channel_id)diff --git a/tagopen/tools/__init__.py b/tagopen/tools/__init__.pydeleted file mode 100644index e69de29..0000000diff --git a/tagopen/tools/builtins.py b/tagopen/tools/builtins.pydeleted file mode 100644index 4f5d4c7..0000000--- a/tagopen/tools/builtins.py+++ /dev/null@@ -1,147 +0,0 @@-"""Built-in tools always available to the agent: web search, Python runner, channel search."""--from __future__ import annotations--import asyncio-import logging-import sys-from io import StringIO-from typing import Any--import httpx--logger = logging.getLogger(__name__)--# LiteLLM-compatible tool schemas-BUILTIN_TOOLS: list[dict] = [- {- "type": "function",- "function": {- "name": "web_search",- "description": "Search the web for up-to-date information",- "parameters": {- "type": "object",- "properties": {- "query": {"type": "string", "description": "Search query"},- },- "required": ["query"],- },- },- },- {- "type": "function",- "function": {- "name": "run_python",- "description": "Execute a Python snippet and return stdout. Use for calculations, data processing, and quick scripts.",- "parameters": {- "type": "object",- "properties": {- "code": {"type": "string", "description": "Python code to execute"},- },- "required": ["code"],- },- },- },- {- "type": "function",- "function": {- "name": "search_channel_history",- "description": "Full-text search across this channel's message history",- "parameters": {- "type": "object",- "properties": {- "query": {"type": "string", "description": "Keywords to search for"},- },- "required": ["query"],- },- },- },- {- "type": "function",- "function": {- "name": "memory_append",- "description": "Append a new fact or decision to channel long-term memory (MEMORY.md)",- "parameters": {- "type": "object",- "properties": {- "content": {"type": "string", "description": "The fact to persist (one concise bullet)"},- },- "required": ["content"],- },- },- },- {- "type": "function",- "function": {- "name": "memory_replace",- "description": "Replace an outdated fact in channel memory with an updated version",- "parameters": {- "type": "object",- "properties": {- "old": {"type": "string"},- "new": {"type": "string"},- },- "required": ["old", "new"],- },- },- },-]---async def dispatch_builtin(fn_name: str, args: dict[str, Any]) -> Any:- if fn_name == "web_search":- return await _web_search(args["query"])- if fn_name == "run_python":- return _run_python(args["code"])- if fn_name == "search_channel_history":- # Actual search happens in dispatch_tool after store lookup; return placeholder- return args # passed through to registry for store-aware dispatch- return f"Unknown built-in: {fn_name}"---async def _web_search(query: str) -> str:- # Uses DuckDuckGo instant answer API — no key required- try:- async with httpx.AsyncClient(timeout=10) as client:- resp = await client.get(- "https://api.duckduckgo.com/",- params={"q": query, "format": "json", "no_html": "1", "skip_disambig": "1"},- )- data = resp.json()- abstract = data.get("AbstractText", "")- related = [r.get("Text", "") for r in data.get("RelatedTopics", [])[:3] if r.get("Text")]- if abstract:- return abstract + ("\n\nRelated:\n" + "\n".join(f"- {r}" for r in related) if related else "")- if related:- return "\n".join(f"- {r}" for r in related)- return "No results found."- except Exception as e:- logger.warning("Web search failed: %s", e)- return f"Search failed: {e}"---def _run_python(code: str) -> str:- # Sandboxed Python execution — stdout captured, dangerous builtins removed- safe_globals: dict[str, Any] = {- "__builtins__": {- k: v for k, v in __builtins__.items() # type: ignore[union-attr]- if k not in ("open", "exec", "eval", "__import__", "compile")- }- if isinstance(__builtins__, dict)- else {},- "print": print,- }- # Allow common safe stdlib- import math, json, re, datetime- safe_globals.update({"math": math, "json": json, "re": re, "datetime": datetime})-- old_stdout = sys.stdout- sys.stdout = buffer = StringIO()- try:- exec(code, safe_globals) # noqa: S102- output = buffer.getvalue()- return output.strip() or "(no output)"- except Exception as e:- return f"Error: {e}"- finally:- sys.stdout = old_stdoutdiff --git a/tagopen/tools/registry.py b/tagopen/tools/registry.pydeleted file mode 100644index 7665e33..0000000--- a/tagopen/tools/registry.py+++ /dev/null@@ -1,52 +0,0 @@-"""Tool registry — loads allowed tools per channel from TOOLS.md / tools.toml.--All tools are exposed as MCP-compatible function schemas so the agent can call them.-Built-in tools are always available. Channel admins can add MCP servers via TOOLS.md.-"""--from __future__ import annotations--import logging-from pathlib import Path-from typing import Any--import toml--from tagopen.config import settings-from tagopen.tools.builtins import BUILTIN_TOOLS, dispatch_builtin--logger = logging.getLogger(__name__)--# Cache parsed tool configs per channel-_tool_configs: dict[str, list[dict]] = {}---def get_channel_tools(channel_id: str) -> list[dict]:- """Return LiteLLM-compatible tool schemas for this channel."""- tools = list(BUILTIN_TOOLS) # always include built-ins-- tools_toml_path = settings.channels_dir / channel_id / "tools.toml"- if tools_toml_path.exists():- try:- config = toml.loads(tools_toml_path.read_text())- for server in config.get("mcp_server", []):- # For now, MCP servers are registered but called via HTTP- # Full MCP client implementation in Phase 2- logger.debug("MCP server registered: %s for channel=%s", server.get("name"), channel_id)- except Exception:- logger.exception("Failed to parse tools.toml for channel=%s", channel_id)-- return tools---async def dispatch_tool(fn_name: str, args: dict[str, Any], channel_id: str) -> Any:- """Dispatch a tool call to built-ins or MCP servers."""- if fn_name in {t["function"]["name"] for t in BUILTIN_TOOLS}:- return await dispatch_builtin(fn_name, args)-- # Memory tools are handled directly in the agent loop- if fn_name in ("memory_append", "memory_replace"):- return None-- logger.warning("Unknown tool: %s in channel=%s", fn_name, channel_id)- return f"Tool '{fn_name}' not found."diff --git a/tests/__init__.py b/tests/__init__.pydeleted file mode 100644index e69de29..0000000diff --git a/tests/unit/__init__.py b/tests/unit/__init__.pydeleted file mode 100644index e69de29..0000000diff --git a/tests/unit/test_memory_store.py b/tests/unit/test_memory_store.pydeleted file mode 100644index b084920..0000000--- a/tests/unit/test_memory_store.py+++ /dev/null@@ -1,74 +0,0 @@-"""Tests for SQLite message store."""--import pytest-from pathlib import Path-from tagopen.memory.store import MessageStore---async def store(tmp_path):- db_path = tmp_path / "test.db"- s = MessageStore(db_path=db_path, channel_id="C001")- await s.open()- yield s- await s.close()---async def test_add_and_retrieve_message(store):- await store.add_message(- ts="1234567890.000001",- role="user",- user_id="U001",- display_name="alice",- content="hello world",- )- rows = await store.get_recent_messages(limit=10)- assert len(rows) == 1- assert rows[0]["content"] == "hello world"- assert rows[0]["display_name"] == "alice"---async def test_message_ordering(store):- for i in range(5):- await store.add_message(- ts=f"100000000{i}.000000",- role="user",- user_id="U001",- display_name="alice",- content=f"message {i}",- )- rows = await store.get_recent_messages(limit=10)- contents = [r["content"] for r in rows]- assert contents == [f"message {i}" for i in range(5)]---async def test_fts_search(store):- await store.add_message(- ts="1.0", role="user", user_id="U1", display_name="bob", content="deploy the staging server"- )- await store.add_message(- ts="2.0", role="user", user_id="U1", display_name="bob", content="update the README docs"- )- results = await store.search("staging")- assert len(results) == 1- assert "staging" in results[0]["content"]---async def test_channel_isolation(tmp_path):- db_path = tmp_path / "shared.db"- store_a = MessageStore(db_path=db_path, channel_id="C001")- store_b = MessageStore(db_path=db_path, channel_id="C002")- await store_a.open()- await store_b.open()-- await store_a.add_message(ts="1.0", role="user", user_id="U1", display_name="a", content="channel A msg")- await store_b.add_message(ts="2.0", role="user", user_id="U1", display_name="b", content="channel B msg")-- rows_a = await store_a.get_recent_messages()- rows_b = await store_b.get_recent_messages()-- assert len(rows_a) == 1 and rows_a[0]["content"] == "channel A msg"- assert len(rows_b) == 1 and rows_b[0]["content"] == "channel B msg"-- await store_a.close()- await store_b.close()diff --git a/tests/unit/test_router.py b/tests/unit/test_router.pydeleted file mode 100644index 4b56f95..0000000--- a/tests/unit/test_router.py+++ /dev/null@@ -1,32 +0,0 @@-"""Tests for channel router — verifies channel-scoped session isolation."""--import pytest-from tagopen.gateway.router import get_or_create_session, _sessions---def setup_function():- _sessions.clear()---def test_same_channel_returns_same_session():- s1 = get_or_create_session("W001", "C001")- s2 = get_or_create_session("W001", "C001")- assert s1 is s2---def test_different_channels_return_different_sessions():- s1 = get_or_create_session("W001", "C001")- s2 = get_or_create_session("W001", "C002")- assert s1 is not s2---def test_different_workspaces_return_different_sessions():- s1 = get_or_create_session("W001", "C001")- s2 = get_or_create_session("W002", "C001")- assert s1 is not s2---def test_session_has_channel_scoped_identity():- s = get_or_create_session("W001", "C001")- assert s.workspace_id == "W001"- assert s.channel_id == "C001"