Open-source SEO, GEO, and marketing skills for AI agents.
init: notfair-cmo v0.1.0-alpha local OpenClaw marketing portal
Yuting Zhong4b303193b0a4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlnew file mode 100644index 00000000..c01006a0--- /dev/null+++ b/.github/workflows/ci.yml@@ -0,0 +1,42 @@+name: CI++on:+ push:+ branches: [main]+ pull_request:+ branches: [main]++permissions:+ contents: read++jobs:+ build:+ name: typecheck + build (node ${{ matrix.node }})+ runs-on: ubuntu-latest+ strategy:+ fail-fast: false+ matrix:+ node: ['20', '22', '24']+ steps:+ - uses: actions/checkout@v4++ - uses: pnpm/action-setup@v4+ with:+ version: 10++ - uses: actions/setup-node@v4+ with:+ node-version: ${{ matrix.node }}+ cache: 'pnpm'++ - name: Install+ run: pnpm install --frozen-lockfile++ - name: Approve native module builds+ run: pnpm approve-builds --all || true++ - name: Typecheck+ run: pnpm typecheck++ - name: Build+ run: pnpm builddiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlnew file mode 100644index 00000000..e81f1d40--- /dev/null+++ b/.github/workflows/release.yml@@ -0,0 +1,41 @@+name: Release++on:+ push:+ tags:+ - 'v*'++permissions:+ contents: read+ id-token: write # required for npm provenance++jobs:+ publish:+ name: Build + publish to npm+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4++ - uses: pnpm/action-setup@v4+ with:+ version: 10++ - uses: actions/setup-node@v4+ with:+ node-version: '22'+ registry-url: 'https://registry.npmjs.org'+ cache: 'pnpm'++ - name: Install+ run: pnpm install --frozen-lockfile++ - name: Typecheck+ run: pnpm typecheck++ - name: Build+ run: pnpm build++ - name: Publish to npm with provenance+ run: pnpm publish --no-git-checks --provenance --access public+ env:+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}diff --git a/.gitignore b/.gitignorenew file mode 100644index 00000000..c10d7221--- /dev/null+++ b/.gitignore@@ -0,0 +1,20 @@+node_modules/+.next/+.env+.env.local+.env*.local+*.log+.DS_Store+.turbo/+dist/+out/+tsconfig.tsbuildinfo+*.tsbuildinfo++# OS / editor+.vscode/+.idea/+.zed/++# Local data dir if symlinked into repo for dev+.notfair-cmo-dev/diff --git a/ARCHITECTURE.md b/ARCHITECTURE.mdnew file mode 100644index 00000000..ceb3a840--- /dev/null+++ b/ARCHITECTURE.md@@ -0,0 +1,161 @@+# Architecture++> Single-user local app. No auth, no multi-tenancy, no hosted backend.++## Process layout++```+USER'S MACHINE+┌──────────────────────────────────────────────────────────────────────┐+│ │+│ ┌────────────────────────────────────┐ ┌──────────────────────┐ │+│ │ notfair-cmo (Next.js) │ │ OpenClaw daemon │ │+│ │ npx notfair-cmo → localhost:3000 │◀──▶│ WebSocket gateway │ │+│ │ │ │ on loopback │ │+│ │ ┌──────────────────────────────┐ │ └──────────┬───────────┘ │+│ │ │ Frontend (React + shadcn) │ │ │ subprocess │+│ │ │ - Sidebar shell + nav │ │ ▼ │+│ │ │ - CMO chat (SSE-streamed) │ │ ┌──────────────────────┐ │+│ │ │ - Cron tab │ │ │ openclaw CLI │ │+│ │ │ - Approval inbox (V0.1: stub)│ │ │ - agents add/list │ │+│ │ │ - Cost meter (V0.1: zero) │ │ │ - cron add/list/rm │ │+│ │ │ - Connections (OAuth) │ │ │ - agent (chat turn) │ │+│ │ │ - Settings (guardrails) │ │ │ - memory search │ │+│ │ └──────────────────────────────┘ │ └──────────────────────┘ │+│ │ ┌──────────────────────────────┐ │ │+│ │ │ Server actions + API routes │ │ │+│ │ │ - createProjectAction │ │ │+│ │ │ (provisions 3 agents) │ │ │+│ │ │ - scheduleCronAction │ │ │+│ │ │ - pause/resume/deleteCron │ │ │+│ │ │ - archiveProjectAction │ │ │+│ │ │ (cascade-disables crons) │ │ │+│ │ │ - /api/chat (SSE) │ │ │+│ │ │ - /api/oauth/{provider}/* │ │ │+│ │ └──────────────────────────────┘ │ │+│ │ ┌──────────────────────────────┐ │ │+│ │ │ Local SQLite │ │ │+│ │ │ ~/.notfair-cmo/db.sqlite │ │ │+│ │ │ - projects │ │ │+│ │ │ - tasks (V0.2 wires up) │ │ │+│ │ │ - approvals (V0.2) │ │ │+│ │ │ - cost_events (V0.2) │ │ │+│ │ │ - oauth_tokens (encrypted) │ │ │+│ │ │ - guardrails (config) │ │ │+│ │ │ - agent_actions (audit log) │ │ │+│ │ └──────────────────────────────┘ │ │+│ └────────────────────────────────────┘ │+└──────────────────────────────────────────────────────────────────────┘+```++## Why this shape++**Don't rebuild the wheels.** OpenClaw already provides:+- Agent runtime (per-agent isolated workspaces, model fallback chains)+- Cron scheduler with agent attribution + run history+- Built-in memory subsystem with REM (reflective episodic memory)+- WebSocket gateway with auth modes+- MCP server registration framework+- Multi-channel delivery (Telegram, Slack, iMessage, etc.)++We don't reimplement any of that. notfair-cmo adds:+- A product-shaped chat + management UI scoped per marketing project+- A consistent naming convention (`<project> / <agent> / <cron>`) so OpenClaw's flat namespace becomes hierarchical to the user+- Local SQLite for product-specific state (tasks, approvals, cost events, OAuth tokens) that doesn't belong in OpenClaw's model+- AES-256-GCM encrypted OAuth token vault with OS-keychain master key++## Agent ↔ notfair-cmo interaction (V0.1)++Agents are taught (via system prompt in their workspace `IDENTITY.md`) to use OpenClaw's built-in `exec` tool to run `openclaw cron add ...` directly. The system prompt enforces the project-namespaced naming convention so our cron tab parses + groups correctly.++There is **no MCP server** in V0.1. We considered one but found agents have direct CLI access via `exec`, which made the MCP layer redundant.++V0.2 wires the autonomy/cost/approval features through MCP tools (the implementations exist as backend helpers — they just don't get exposed to agents yet).++## Distribution++- npm package (`notfair-cmo` bin)+- Next.js standalone build (`.next/standalone/server.js` shipped, started by `bin/cli.mjs`)+- Native deps: `better-sqlite3` (Node 24 prebuilds available), `keytar` (prebuilds for major platforms)+- Runtime requires: Node 20+, OpenClaw installed and gateway running++## Module map++```+bin/+ cli.mjs # CLI entry: `notfair-cmo` (start, doctor, stop)++src/+ app/+ layout.tsx # Root layout (TooltipProvider, Toaster)+ (app)/ # Sidebar-shell route group+ layout.tsx # SidebarProvider + AppSidebar + main+ page.tsx # Project home (KPIs + recent actions)+ chat/ # CMO chat (SSE-streamed)+ approvals/ # Approval inbox (V0.2 wires fully)+ tasks/ # Task board (V0.2 wires fully)+ crons/ # Cron tab — read+write via UI + agent exec+ connections/ # OAuth: Google Ads + GSC+ settings/ # Guardrails config+ projects/ # List + new+ onboarding/ # Magic moment (placeholder steps)+ api/+ chat/ # POST → SSE stream from openclaw agent+ oauth/ # OAuth start/callback for Google Ads, GSC+ projects/[slug]/provision/ # Re-provision agents++ server/+ active-project.ts # cookie-backed current project+ actions/+ projects.ts # create (+provision), archive (cascade), rename, switch+ crons.ts # schedule, pause, resume, delete+ approvals.ts # approve, reject (V0.2 fully wired)+ guardrails.ts # update thresholds+ agent-templates.ts # CMO / google_ads / seo definitions + IDENTITY.md writer+ openclaw/+ cli.ts # subprocess wrapper: openclaw(args)+ agent-turn.ts # streaming agent invocation+ crons.ts # cron list parser + naming convention+ db/+ db.ts # better-sqlite3 singleton + migration runner+ migrations.ts # embedded SQL migrations (forward-only)+ projects.ts, tasks.ts, approvals.ts, cost.ts,+ oauth.ts, guardrails.ts, agent-actions.ts+ secrets/+ master-key.ts # OS keychain (keytar) master key+ cipher.ts # AES-256-GCM encrypt / decrypt++ components/+ app-sidebar.tsx # Sidebar with project switcher + nav + cost meter+ project-switcher.tsx+ cost-meter.tsx # Sidebar widget with hover breakdown+ cmo-chat.tsx # Streamed chat with Stop button+ schedule-cron-dialog.tsx+ cron-row-actions.tsx+ approval-card.tsx+ onboarding-flow.tsx+ ui/ # shadcn primitives++ lib/+ slug.ts # slugify + reserved-word check+ utils.ts # cn() for shadcn++ types/+ index.ts # Project, Task, Approval, CostEvent, etc.+```++## What we deliberately don't have++- No auth, no sessions, no users table — single-user local+- No multi-tenancy, no RLS — single SQLite file+- No webhook signing / reconciliation — loopback only, trusted+- No MCP server (V0.1) — agents use OpenClaw's native `exec`+- No telemetry — opt-in only when added in a later version+- No Docker / Tauri distribution (V0.1) — npm only++## Trade-offs to know about++- **Agent name discipline depends on system prompt.** If the agent forgets the `<project> / <agent> / <name>` convention, the cron lands in our "ungrouped" bucket — graceful degradation, not broken.+- **Cost meter shows zero by default** until V0.2 wires in the AI SDK middleware that records LLM usage via our `record_cost` helper.+- **Approval inbox is a placeholder** until V0.2 wires the `approve_action` enforcement into agent flows.+- **No agent ↔ agent direct messaging.** Agents coordinate by reading each other's OpenClaw memory entries (which agents already do natively via `memory search`).diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdnew file mode 100644index 00000000..c12d8d98--- /dev/null+++ b/CONTRIBUTING.md@@ -0,0 +1,68 @@+# Contributing++Thanks for poking around! notfair-cmo is small, opinionated, and willing to grow.++## Dev setup++```bash+git clone <repo>+cd notfair-cmo+pnpm install+```++Native deps (`better-sqlite3`, `keytar`) need build approvals on pnpm — already configured in `package.json` under `pnpm.onlyBuiltDependencies`, just runs on install.++Make sure you have:+- Node 20+ (24 preferred)+- OpenClaw installed and `openclaw gateway` running+- Whatever LLM provider your OpenClaw uses (the project inherits `agents.defaults.model`)++```bash+pnpm typecheck # tsc --noEmit+pnpm dev # next dev --turbopack+pnpm build # next build (standalone output)+pnpm cli # tsx bin/cli.ts (CLI in dev)+```++## Project shape++See `ARCHITECTURE.md`. Short version:+- Frontend: Next.js 16 App Router + React 19 + Tailwind 4 + shadcn/ui+- Backend: Next.js server actions + SQLite (better-sqlite3) + subprocess wrapper around `openclaw`+- No MCP server — agents use OpenClaw's built-in `exec` tool++## Adding a feature++1. Open an issue describing the user-facing change (the *what* and *why*).+2. Branch off main.+3. Build it. Keep modules small. shadcn primitives over custom CSS.+4. Run `pnpm typecheck && pnpm build`. Both must pass.+5. If you're touching cron / agent / approval / OAuth flows, exercise it end-to-end against a real OpenClaw install — the test agents we ship as scripts/ examples are the right starting point.+6. Update README / ARCHITECTURE if behavior changed.+7. Open a PR. Describe what you changed and how to verify.++## Module conventions++- Server-only modules live in `src/server/`. Anything in there can use `node:*` modules + native deps.+- Client components: start the file with `"use client";`.+- Server actions: `"use server";`. Throw on validation failure (form actions) or return discriminated `{ok: true, ...} | {ok: false, error}` (programmatic).+- Database access: only via helpers in `src/server/db/`. Don't reach for `getDb()` from a component or route.+- OpenClaw access: only via helpers in `src/server/openclaw/`. Don't shell out to `openclaw` directly from a route.+- Slugs: only via `src/lib/slug.ts`. Reserved words checked.+- Types: shared types go in `src/types/`. Server-only types stay near their server module.++## Style++- TypeScript strict mode. No `any` unless interfacing with untyped externals.+- Prefer named exports. Default exports only for Next.js pages/layouts/route handlers.+- shadcn/ui defaults — no custom color palette, no custom typography, no decorative blobs. The zinc neutral palette is the brand for V0.x.++## Testing++V0.1 doesn't ship a test suite (intentionally — we validated end-to-end against a real OpenClaw install instead of writing mocks). Test infrastructure lands in V0.2 along with the eval harness.++If you want to add tests now: Vitest for unit, Playwright for E2E. Mock OpenClaw at the subprocess wrapper level (`src/server/openclaw/cli.ts`).++## License++By contributing, you agree your contributions are licensed under MIT.diff --git a/LICENSE b/LICENSEnew file mode 100644index 00000000..6ab18489--- /dev/null+++ b/LICENSE@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2026 notfair-cmo contributors++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/PLAN.md b/PLAN.mdnew file mode 100644index 00000000..2ddb05b1--- /dev/null+++ b/PLAN.md@@ -0,0 +1,817 @@+---+status: ACTIVE+---++# CEO Plan: notfair CMO — AI Marketing OS++Generated by /plan-ceo-review on 2026-05-17+Mode: SCOPE EXPANSION | Approach: B (CMO-first Marketing OS)+Repo: notfari-workspace/notfair-cmo (greenfield)++---++## Guiding tenet++**Don't rebuild the wheels.** Before any new abstraction, registry, broker, or service in this architecture, identify what OpenClaw, Vercel platform services, AI SDK, the AI Gateway, or existing skill ecosystems already provide. Default to: existing system as source of truth + thin attribution/glue layer + frontend view layer. The product is differentiated at the product surface (CMO UX, project memory, cross-channel signals, autonomy), not by reimplementing commodity infrastructure.++---++## PIVOT (Revision 5, 2026-05-17): open-source local CLI tool++**Major scope adjustment.** notfair CMO is now an **open-source local app** distributed as an npm package. User runs `npx notfair-cmo` in their terminal; it launches a local Next.js server on `localhost:3000` and opens their browser. Single-user, single-machine, no SaaS hosting, no auth, no multi-tenancy. **OpenClaw is assumed installed + running locally on the user's machine** (we verified its capabilities via live spike — see [[openclaw-capabilities]]).++This pivot eliminates significant infrastructure (multi-tenant auth, RLS, envelope encryption per tenant, hosted Postgres, Vercel deployment, AI Gateway tenancy tagging) AND leverages OpenClaw native capabilities we were about to rebuild (memory, cron, agent isolation, MCP tool exposure, WebSocket gateway). Net effect: V1 effort drops from ~3-4 weeks CC to ~1-2 weeks CC.++**Sections superseded by this pivot:**+- Original "Approach" → see "Approach: B-local" below+- Original "Architecture decisions (locked in eng-review)" → see "Architecture decisions (revised for local OSS)" below+- Original "Wheel-rebuilding audit" → see updated audit reflecting OpenClaw native primitives+- Original "Protocol definitions" → see simplified MCP-based versions+- Original "Code conventions" → simpler (no multi-tenant middleware)++**Sections that stay valid:**+- Vision (the "hire a CMO" framing still works for OSS, just with developer-marketer hybrid audience)+- Design specifications (UI doesn't change with runtime; sidebar, screens, states all stay)+- Test strategy structure (concrete tests change but discipline stays)++---++## Vision++### Product positioning+**"The AI marketing team you hire on day one."** Not "manage 6 agents" — *hire a CMO that runs your marketing function.* The user sets direction, the CMO orchestrates execution, specialist agents do channel work, results flow back. Specialists are an implementation detail; the CMO is the product.++### 10x check+The user sets direction at 9am, reviews outcomes at 5pm. Overnight, agents ran experiments, killed losers, escalated winners, drafted tomorrow's plan. The user wakes up to a 3-paragraph briefing with one decision to make today. By day 90, project memory has compounded so the CMO's recommendations are noticeably sharper than day 1's. By day 180, agencies run 10-brand portfolios on this and switching is painful because nothing else has the per-brand memory.++### Platonic ideal — solo founder onboarding+1. Paste site URL (20 seconds)+2. CMO scrapes site → derives brand voice fingerprint + ICP hypothesis (2 minutes)+3. CMO proposes 30-day experiment program across 2 channels (1 minute review)+4. Founder approves budget + caps+5. Day 7: first weekly review with what shipped and what's working+6. Day 30: noticeably sharper recommendations from accumulated project memory++---++## Approach: B-local — CMO-first Marketing OS (open-source local)++Substrate:+- **Distribution:** npm package; user runs `npx notfair-cmo` → spawns local Next.js server + opens browser+- **Frontend:** Next.js App Router (standalone build, runs locally — no Vercel)+- **Local DB:** SQLite (better-sqlite3) at `~/.notfair-cmo/db.sqlite` for our own state (tasks, approvals, cost events, oauth tokens, project metadata)+- **AI orchestration:** AI SDK v6 with user's own LLM API key (OpenAI/Anthropic/Google — they supply); no AI Gateway tenancy needed+- **Agent runtime:** **OpenClaw** (assumed installed + running on user's machine). We invoke via subprocess (`openclaw ... --json`) and connect to its WebSocket Gateway on loopback.+- **Agent memory:** **OpenClaw memory subsystem** (built-in: index, search, REM reflection, promotion to MEMORY.md). We don't run pgvector.+- **Agent cron:** **OpenClaw cron** (built-in: `openclaw cron add/list/edit/disable/runs`). We don't run our own scheduler.+- **Tool bridge:** Our Next.js exposes an MCP server with tools (`approve_action`, `record_cost`, `log_action`, `query_project_state`, etc.). Registered with OpenClaw via `openclaw mcp set`. OpenClaw agents call our tools via MCP.+- **Skills:** preloaded per agent via OpenClaw's existing skill/MCP system. Reuse `notfair-googleads` MCP (user already has it configured). Add SEO MCP for V1.+- **No auth:** loopback-only Next.js server, single user, single machine. Gateway runs in `--auth none` mode bound to loopback.+- **OAuth (Google Ads, GSC):** `localhost:<port>/oauth/callback` redirect; tokens stored encrypted in SQLite using OS keychain (keytar) for the master key. No tenancy — just one set per user per channel.++We own:+- Local Next.js UI (sidebar shell, CMO chat, approval inbox, cron tab, cost meter, project home, onboarding)+- MCP server exposing tools to OpenClaw agents+- Subprocess wrapper around `openclaw` CLI for agent/cron/memory management+- Project concept (group OpenClaw agents + crons under a project namespace via name prefix)+- OAuth flows for Google Ads + GSC+- Local SQLite schema (tasks, approvals, cost events, oauth tokens, projects)+- npm package + CLI launcher++We do NOT own:+- Agent reasoning logic (OpenClaw)+- Agent memory (OpenClaw memory)+- Cron scheduler (OpenClaw cron)+- Individual channel skills (reuse `notfair-googleads`; create curated SEO MCP)+- LLM cost (user's own API key + their provider's billing)+- Hosting (it's local)++---++## Scope Decisions++| # | Proposal | Decision | Reasoning |+|---|----------|----------|-----------|+| D1 | Project memory + brand voice fingerprint | **V1 (via OpenClaw memory)** | Use OpenClaw's built-in memory subsystem (per-agent + REM promotion). Brand voice fingerprint is a memory entry tagged for cross-agent retrieval. We don't run pgvector. |+| D2 | CMO autonomous within user-set guardrails | **V1** | The "review outcomes at 5pm" promise requires this. Guardrails enforced by our MCP-side `approve_action` tool — autonomous below threshold, else routes to approval inbox. |+| D3 | Cross-agent signal sharing | **V1 (via OpenClaw memory + MCP)** | Agents write signals as memory entries with a `signal:` tag; CMO + specialists query via `memory search` MCP tool. No custom pub/sub. |+| D4 | Agency multi-brand mode as first-class | **DROPPED entirely** | Single-user local app. Users who want multi-brand just create multiple projects in their local install. If agency demand emerges post-OSS-launch, consider a hosted SaaS edition as a separate product. |++**V1 effort revised post-pivot:** ~1-2 weeks of CC-time. No OAuth verification calendar wait — `localhost` callback is exempt from Google's app verification for non-production-restricted scopes.++---++## Accepted scope (V1) — post-pivot++### CLI + launcher+1. **`notfair-cmo` CLI** — npm package; `npx notfair-cmo` or `pnpm dlx notfair-cmo` starts local Next.js server, opens browser at `http://localhost:<port>`. Subcommands: `start` (default), `stop`, `doctor` (checks OpenClaw is running), `version`.+2. **Local data dir** at `~/.notfair-cmo/` (SQLite + logs + cached scrape data). Override via `--data-dir`.+3. **Doctor command** — verifies OpenClaw is installed + running (`openclaw health`), LLM API key set, port available; surfaces clear fix-instructions for any failure.++### Core product (UI)+4. **Project management** — create/archive/switch projects; project = a name + slug + the OpenClaw agents/crons whose names start with that slug+5. **Agent setup — 2 V1 agent templates** (Google Ads, SEO). Creating a project provisions OpenClaw agents per template via `openclaw agents add <project-slug>-<template>`. Each gets preloaded skills via MCP (existing `notfair-googleads` for Google Ads; new curated SEO MCP for SEO).+6. **CMO agent** per project — `openclaw agents add <project-slug>-cmo` with system prompt + access to our tool MCP. Orchestrates specialists.+7. **CMO chat UI** — AI SDK `useChat` connecting to our Next.js route that bridges to OpenClaw via `openclaw agent --json` per turn (or WebSocket Gateway if streaming required).+8. **Task board** — UI view of tasks stored in our SQLite. Tasks are user-facing units the CMO creates via the `assign_task` MCP tool. State lifecycle in protocol section.++### Memory + intelligence (D1, D3 — via OpenClaw)+9. **Project memory via OpenClaw memory** — each agent has its own memory file (`agent.md` per OpenClaw convention). For project-shared memory (brand voice, ICP, competitor intel), all project agents share a common workspace dir so the memory pool is shared. CMO can `memory search` across project memory before any decision.+10. **Brand voice fingerprint** — derived during onboarding from URL scrape + uploaded samples, written as a structured memory entry tagged `voice:`. Every agent's system prompt pulls this via memory search.+11. **Cross-agent signals via tagged memory + MCP** — agents emit observations as memory entries tagged `signal:<type>` with payload + suggested_actions. The CMO and specialists query `memory search "signal:" --agent <project-slug>-*` to discover unconsumed signals. No custom pub/sub.++### Autonomy + safety (D2)+12. **Guardrail config** — stored in SQLite + surfaced in Settings UI. Same threshold schema as before.+13. **Autonomy enforcement via the `approve_action` MCP tool** — every potentially-spending agent action MUST call `approve_action(action_summary, cost_estimate, type)` first. Our tool checks against the guardrail config; either returns `{approved: true}` (within threshold) or stores in approvals queue + returns `{approved: false, approval_id}`. Agent retries after user approves.+14. **Approval inbox UI** — reads approvals queue from SQLite, one-click approve/edit/reject, fires a webhook (loopback) back to a waiting agent to resume.+15. **"Why?" inline in chat** — every agent action message has expandable reasoning fetched from `agent_actions` log table.++### Always-on ops+16. **Cost meter** — sums `cost_events` table; LLM costs reported by agents via `record_cost` MCP tool after each LLM call (using AI SDK usage data they receive). Ad spend reported by Google Ads MCP after every spend change. Always-visible in sidebar.+17. **OAuth flows for Google Ads + GSC** — localhost redirect `http://localhost:<port>/oauth/<provider>/callback`. Tokens encrypted with OS keychain master key (via `keytar`), stored in SQLite `oauth_tokens` table.+18. **Cron tab** — wraps `openclaw cron list --json`; groups by project (parsing project slug prefix from cron name) and by `--agent` (already a column in OpenClaw output). Create/pause/resume/delete forward to OpenClaw via CLI subprocess.+19. **Daily briefing** — in-app card on Project Home; generated nightly via an OpenClaw cron that calls our `generate_briefing` MCP tool, result stored in SQLite. No email/external delivery in V1.++### Distribution+20. **GitHub repo** — public, MIT license (recommended; user can choose), README with quickstart, ARCHITECTURE.md, CONTRIBUTING.md+21. **npm publish workflow** — GitHub Actions: on tag, build standalone Next.js + bundle + publish to npm registry+22. **Telemetry: opt-in only** — no phone-home by default; opt-in posts anonymous usage events to a (TBD) endpoint. OSS users will be hostile to default telemetry.++## Deferred to v1.1+++- **More agent templates** — GEO, Cold Email, Reddit, X (gated until their channel skills/MCPs are curated)+- **Channel delivery via OpenClaw native (Telegram, Slack, iMessage)** — OpenClaw already supports it; we don't surface it in V1 UI but advanced users can wire it manually+- **Standalone binary distribution** (Tauri/pkg) for users without Node installed+- **Docker distribution** for users who want isolation+- **Settings export/import** — for backup/migration between machines+- **Multi-machine sync** — Tailscale-based or via OpenClaw's existing remote-gateway feature+- **Hosted SaaS edition** — if agency demand emerges, separate product with auth + multi-tenancy + managed Postgres+- **Competitive observation loop, pause-and-handoff to human, automatic post-mortems** — all post-V1++---++## Deferred to backlog (v1.1+)++- **Competitive observation loop** — weekly competitor scan, response suggestions+- **Pause-and-handoff to human freelancer** — Loom-style brief export+- **Automatic post-mortems** when campaigns underperform (stretch; project memory makes this easy to add later)+- **Cross-project intelligence** — learnings from one brand inform another (carefully — competitive overlap risk for agencies)+- **Slack integration** — daily briefing in Slack channel+- **Mobile companion app**++---++## Out of scope (explicitly)++- **Hosted SaaS** — local-only V1; if hosted demand emerges, separate product+- **Authentication** — local loopback, single user+- **Multi-tenancy** — no organizations, no roles, no RLS+- **Custom agent runtime** — OpenClaw owns+- **Custom memory layer** — OpenClaw memory owns+- **Custom cron scheduler** — OpenClaw cron owns+- **Custom pub/sub for signals** — OpenClaw memory (tagged entries) owns+- **Channel skills from scratch** — reuse existing MCPs (`notfair-googleads` already exists; curate SEO MCP)+- **Marketing site / brand identity** — OSS project; README + GitHub repo is the marketing site V1+- **Closed-source distribution** — open source by design+- **White-label / reseller** — OSS, users fork if they want++## Design specifications (V1)++### Design direction++**Locked: shadcn/ui defaults.** Zinc neutral palette, Inter font, default radii. No custom brand in V1. Defer brand work to post-GA via /design-consultation. AI slop avoidance even with defaults: no purple gradients, no icon-in-colored-circle decoration, no generic hero copy ("Welcome to notfair CMO!"), no centered-everything layouts, no decorative blobs.++### App shell++**Locked: Pattern A — persistent left sidebar + main area.**++```+┌──────────────────────────────────────────────────────────────────────┐+│ SIDEBAR (256px, collapsible to 56px <1024px) │ MAIN │+│ ┌──────────────────────────────────┐ │ │+│ │ [Logo] Project switcher ▾ │ │ Page content │+│ ├──────────────────────────────────┤ │ │+│ │ 🏠 Home (project dashboard) │ │ │+│ │ 💬 Chat with CMO │ │ │+│ │ ✅ Approvals ⓐ │ (badge on │ │+│ │ 📋 Tasks │ unread) │ │+│ │ ⏱ Crons │ │ │+│ │ 🔌 Connections │ │ │+│ │ ⚙ Settings │ │ │+│ ├──────────────────────────────────┤ │ │+│ │ COST METER (always visible) │ │ │+│ │ ▓▓▓▓▓░░░░ $124 / $300 today │ │ │+│ ├──────────────────────────────────┤ │ │+│ │ [User avatar] Account ▾ │ │ │+│ └──────────────────────────────────┘ │ │+└──────────────────────────────────────────────────────────────────────┘+```++Use shadcn `<Sidebar>` (already designed). Sidebar collapses to 56px icon rail below 1024px. Mobile (<768px) hides sidebar behind a hamburger; sheet/drawer overlay.++**Why not chat-first:** considered (Pattern B), rejected. Sidebar pattern is more legible to agency operators managing many things; chat-first risks burying tasks/approvals/crons behind a drawer where users miss them.++### Hard-cap state (app-wide)++When daily spend cap hits: red banner across top of every screen, dismissible only after raising cap or waiting until rollover. Pauses ALL autonomous agent actions. Approval inbox still works for manual override. Cost meter turns red. Surfaces in CMO chat as the next agent turn.++### Screen 1: Project Home (default landing after project select)++**Information architecture:**+```+┌─ TOP STRIP ─────────────────────────────────────────────────┐+│ Project name • period selector (7d / 30d / 90d) │+├─ PRIMARY: 3 KPI cards ──────────────────────────────────────┤+│ [Active campaigns] [Spend MTD] [Conversions MTD] │+├─ SECONDARY: Two columns ────────────────────────────────────┤+│ Recent CMO recommendations │ Pending approvals (top 3) │+│ (last 5 items) │ with [Review] link │+├─ TERTIARY: Agent status grid ───────────────────────────────┤+│ [Google Ads: 🟢 active, 4 crons] [SEO: 🟢 active, 2 crons]│+│ [GEO: 🔒 beta] [Cold Email: 🔒 beta] ... │+└─────────────────────────────────────────────────────────────┘+```++Hierarchy reasoning: a marketer landing here wants to know "is it working" first (KPIs), "what needs me" second (recommendations + approvals), "what's running" third (agent grid).++**Interaction states:**+| State | What user sees |+|---|---|+| Loading | shadcn `<Skeleton>` rectangles for each card; no spinners |+| Empty (new project) | KPI cards show "—"; CMO recommendations area shows full-width CTA "Start onboarding to see your first plan" |+| Error | Toast (shadcn `<Toaster>`) + per-card retry; KPIs that failed show "—" with retry icon |+| Success | Live numbers, recommendations clickable into chat with that thread, approvals clickable into inbox |+| Partial | Mix — some KPIs may load before others; render as they arrive, no blocking |++**Responsive:** KPI cards stack 1-column <768px. Recommendations/approvals stack <1024px.+**A11y:** `<main>` landmark, skip-to-content link, KPI cards announce value + label, focus order: project switcher → period selector → KPI 1-3 → recommendations → approvals → agent grid.++### Screen 2: CMO Chat++**Information architecture:**+```+┌─ CONTEXT STRIP (sticky top) ────────────────────────────────┐+│ Project X • SEO + Google Ads active • 3 tasks running │+├─ MESSAGE THREAD (scrollable) ──┬─ CONTEXT DRAWER (toggle)──┤+│ │ │+│ USER: Run a 30-day │ ACTIVE TASKS │+│ experiment to triple │ • Bid optimization │+│ our trial signups │ • SEO audit │+│ │ │+│ CMO: [streaming response] │ RECENT SIGNALS │+│ 📋 Created task "Audit │ • 12 users on Reddit │+│ current CPA" │ complaining about │+│ 📋 Created task "SEO │ competitor pricing │+│ opportunity scan" │ │+│ [Want me to proceed?] │ MEMORY INJECTED │+│ │ • ICP: B2B sales teams │+│ [Approve all] [Review each] │ • Voice: direct, no buzz │+│ │ │+├─ COMPOSER ─────────────────────┴───────────────────────────┤+│ [Message CMO...] [Send →] │+└─────────────────────────────────────────────────────────────┘+```++Use AI SDK `useChat` + chat-sdk reference components. Tool calls render inline as collapsible badges with status (running/done/failed). Context drawer is collapsed by default, toggle in top-right.++**Interaction states:**+| State | What user sees |+|---|---|+| Loading (first load) | Skeleton message; thread fetches in background |+| Empty (new project chat) | CMO greets first: "I've looked at your site. Here's what I recommend for your first 30 days. Want me to walk through it?" |+| Error (LLM failure mid-stream) | Inline error bubble with retry; partial message preserved |+| Streaming | Token-by-token render; tool calls appear as inline badges (yellow=running, green=done, red=failed) |+| Partial (tool call mid-flight) | Tool call badge spinning; message continues streaming around it |++**Responsive:** Context drawer hidden by default <1024px; toggle to reveal as sheet overlay. Composer stays sticky.+**A11y:** Live region (`aria-live="polite"`) for streamed messages, tool call status announcements, keyboard send (Enter), shift-Enter for newline.++### Screen 3: Onboarding Magic Moment++**Information architecture:**+```+┌─────────────────────────────────────────────────────────────┐+│ │+│ "Let's set up your CMO." │+│ │+│ [https://yourcompany.com ] [Go →] │+│ │+│ Or use one of our example sites: Acme, Plaid, Linear │+│ │+├─ PROGRESS (after URL submit) ───────────────────────────────┤+│ ● Scraping your site... (5s) │+│ ○ Deriving brand voice fingerprint (10s) │+│ ○ Drafting ICP hypothesis (15s) │+│ ○ Building your 30-day plan (20s) │+│ │+│ [Each step expands inline as it completes, showing preview]│+│ │+├─ FINAL: 30-day plan preview ────────────────────────────────┤+│ Week 1: Google Ads bid optimization on 12 keywords │+│ Week 1: SEO audit + 3 page content proposals │+│ Week 2: ... │+│ │+│ [Approve & launch] [Edit plan] [Save & decide later] │+└─────────────────────────────────────────────────────────────┘+```++Single column, max-width 720px, centered. Use shadcn `<Card>` for the progress steps. Live updates via SSE.++**Interaction states:**+| State | What user sees |+|---|---|+| Loading (initial) | Just the URL input; placeholder examples |+| Empty | Default state — input + example chips |+| Error (URL unreachable) | Inline error under input: "Couldn't reach that URL. Try https:// prefix or a different page." |+| Per-step running | Spinner + step name + elapsed time |+| Per-step error | Red icon + retry button + "Use placeholder" option (don't block whole flow) |+| Success (all steps done) | 30-day plan preview expanded; CTAs prominent |+| Partial (skipped step) | Step shows "Used placeholder for [thing]; CMO will refine over time" |++**Responsive:** Works at 375px; max-width breaks intelligently. Plan preview cards stack 1-col on mobile.+**A11y:** Progress announced as each step changes state; focus moves to "Approve & launch" when plan ready; error states announced.++### Screen 4: Approval Inbox++**Information architecture:**+```+┌─ TOP STRIP ─────────────────────────────────────────────────┐+│ Approvals (12) [All ▾] [Spend] [Content] [Settings] │+├─ CARDS (stacked) ───────────────────────────────────────────┤+│ ┌──────────────────────────────────────────────────────┐ │+│ │ [Google Ads] Increase bid for "marketing automation"│ │+│ │ Current: $4.20 → Proposed: $5.80 (+38%) │ │+│ │ Why ▾ Cost: ~$45/day Expected: 3-5 more conv/day │ │+│ │ │ │+│ │ [Approve] [Edit] [Reject] Created 5m ago by CMO │ │+│ └──────────────────────────────────────────────────────┘ │+│ ┌──────────────────────────────────────────────────────┐ │+│ │ [Cold Email] Send sequence to 47 new leads │ │+│ │ ... │ │+│ └──────────────────────────────────────────────────────┘ │+└─────────────────────────────────────────────────────────────┘+```++Use shadcn `<Card>` per item, `<Tabs>` for filter. "Why ▾" expands inline to show CMO's reasoning chain.++**Interaction states:**+| State | What user sees |+|---|---|+| Loading | Skeleton cards |+| **Empty (the most important state)** | Large, calm centered text: "All caught up. CMO will surface decisions here." Subtle subtext: "Items above your thresholds appear here for approval. Adjust thresholds in Settings." No CTAs — empty is the *goal*. |+| Error (action failed) | Per-card error banner + retry; card stays in inbox |+| Success (approved) | Card slides out with green toast: "Approved — running now" |+| Partial (some cards still loading details) | Card shows summary, expandable details show spinner |++**Responsive:** Cards stack natively. Buttons stay 44px+ tappable. Edit opens shadcn `<Dialog>` modal.+**A11y:** Each card is a `<region aria-label="...">`, buttons keyboard-accessible, edit dialog traps focus, escape closes.++### Screen 5: Cron Tab++**Information architecture:**+```+┌─ TOP STRIP ─────────────────────────────────────────────────┐+│ Scheduled work • [Project ▾] [Agent ▾] [+ New cron] │+├─ GROUPED LIST ──────────────────────────────────────────────┤+│ ▾ Google Ads agent (4 active) │+│ ┌────────────────────────────────────────────────────┐ │+│ │ Name Schedule Last Next Status │ │+│ ├────────────────────────────────────────────────────┤ │+│ │ Daily bid opt 09:14 daily 9h ago 15h 🟢 ok │ │+│ │ Hourly metrics hourly 45m ago 15m 🟢 ok │ │+│ │ Negative kw... Mon 06:00 2d ago 5d ⚠ warn │ │+│ │ Budget pacing :30 hourly 20m ago 10m 🟢 ok │ │+│ └────────────────────────────────────────────────────┘ │+│ ▾ SEO agent (2 active) │+│ ┌────────────────────────────────────────────────────┐ │+│ │ Weekly rank check Mon 06:14 3d ago 4d 🟢 ok │ │+│ │ Daily content idea 09:23 daily 9h 15h 🟢 ok │ │+│ └────────────────────────────────────────────────────┘ │+└─────────────────────────────────────────────────────────────┘+```++Each row click expands to show last 7 runs + pause/resume/delete actions. Schedule shown in human-readable form, not raw cron syntax (use cronstrue). Times in user's local timezone.++**Interaction states:**+| State | What user sees |+|---|---|+| Loading | Skeleton table rows |+| Empty per agent | "No scheduled work for [agent]. Ask CMO to schedule something." |+| Empty whole tab | "No crons yet. CMO and specialists schedule work here when they need recurring jobs." |+| Error per row | Row shows ⚠ icon + tooltip; click for detail + reschedule action |+| Status: missed run | Row shows ⚠ + "Missed last run, see history"; click expands history |+| Success | Live status updates from OpenClaw via SSE |+| Hard halt (project archived mid-flight) | All rows show "halting..." then disappear; toast confirms |++**Responsive:** Collapse table to stacked card list <768px; each cron becomes a card with project+agent labels inline.+**A11y:** Table is a proper `<table>` with `<th scope="col">` headers; sortable; keyboard nav between rows; expandable rows announce state.++### Cross-cutting: Cost meter (sidebar persistent component)++**States:**+| State | Visual |+|---|---|+| Under 50% budget | Zinc bar, white text, no flag |+| 50-75% | Same, slight emphasis on number |+| 75-90% | Amber bar |+| 90-100% | Red bar + "Approaching cap" tooltip on hover |+| At/over cap | Solid red + "HALTED" label + clickable → opens cap settings |++Click anywhere on the meter → opens detailed cost panel: breakdown by source (LLM by agent, ad spend by channel), historical 7-day chart, edit cap.++### Cross-cutting: Activity log++Every autonomous action by every agent gets an entry in a per-project `agent_actions` log. Accessible from settings or via "Why?" command in chat. Each entry: timestamp, agent, action, cost, outcome, reasoning summary, [undo if applicable]. Builds the trust foundation that the autonomy promise depends on.++### User journey emotional arc++| Step | User does | User feels | Plan supports it via |+|---|---|---|---|+| 1 | Lands on signup | Curious, skeptical | Clean, no marketing fluff; "Sign in with Google" prominent |+| 2 | Creates first project | Hopeful | Onboarding magic moment loads fast, paste-URL is one field |+| 3 | Watches CMO build first plan | "Is this actually smart?" | Live step progress, real previews per step (not just spinners) |+| 4 | Approves first plan | "I'm committing money to this" | Plan shows projected cost + cap visible + "you can pause anytime" |+| 5 | Returns next day | "Did anything happen?" | Project home shows yesterday's results, CMO chat top-of-mind |+| 6 | Sees first approval | "Wait, what is it doing?" | Approval inbox card has "Why?" prominently; reasoning is concrete |+| 7 | Sees first results | Relief, validation | KPI card shows delta vs last period; "your CMO did this" attribution |+| 8 | Day 30 | Sticky | Project memory shows compounding learning; switching costs feel real |++The most emotionally-charged moments are (3) and (6) — the trust-building moments. Both have explicit UX investment: live previews during build, concrete reasoning per approval.++### Responsive breakpoints++- `<640px` (mobile): single column, sidebar as bottom sheet via hamburger, tables → cards, max 1 KPI per row+- `640-1023px` (tablet): sidebar collapses to icon rail, KPIs 2-up, tables OK+- `≥1024px` (desktop): full sidebar, KPIs 3-up, chat context drawer visible++### Accessibility baseline++- All interactive elements ≥44px touch target+- Color contrast ≥4.5:1 for body text (shadcn defaults pass)+- Keyboard navigable: all screens fully usable without mouse+- Focus visible: shadcn `focus-visible` rings respected+- Live regions: chat messages, approval status changes, cost meter state changes+- Skip-to-content link in every layout+- ARIA landmarks: `<header>`, `<nav>`, `<main>`, `<aside>` for sidebar context drawer+- Forms: labels visible, never placeholder-as-label+- Hard-cap banner: `role="alert"` so screen readers announce immediately++## Design decisions deferred (intentionally)++- **Brand identity** — typography, color palette, illustration style, motion language → /design-consultation post-GA+- **Marketing site / landing page** — V1 ships product-first; marketing site is separate work+- **Specialist agent chat detail design** — inherits CMO chat layout; revisit per-agent unique tools+- **Settings page detail** — inherits standard shadcn form patterns; revisit when autonomy config gets more dimensions+- **Connection manager detail** — inherits OAuth-button + connected-account-card pattern; revisit per channel++## Wheel-rebuilding audit (post-pivot, post-OpenClaw-spike)++Per the guiding tenet, every custom thing must be justified. Updated after live OpenClaw capability spike:++| Component | Verdict | Reasoning |+|---|---|---|+| Agent runtime | ✅ NOT REBUILDING | `openclaw agents add` per project + template |+| Agent memory | ✅ NOT REBUILDING (was building!) | `openclaw memory` (search, REM, promote, index) — full subsystem, fully replaces our planned pgvector |+| Cron scheduler | ✅ NOT REBUILDING | `openclaw cron` (add/list/edit/runs/show/status) — has agent attribution + name + description metadata |+| Signal pub/sub | ✅ NOT REBUILDING (was building!) | Tagged memory entries (`signal:opportunity`, `signal:risk`) discoverable via `memory search` — eliminates need for Postgres LISTEN/NOTIFY |+| Auth | ✅ NOT REBUILDING (was building!) | Local loopback, no auth needed; OpenClaw gateway runs `--auth none --bind loopback` |+| Multi-tenant DB isolation | ✅ NOT REBUILDING (was building!) | Single user, single SQLite file, no RLS, no envelope encryption per tenant |+| Webhook signing/reconciliation | ✅ NOT REBUILDING (was building!) | Loopback only, trusted; agent state is OpenClaw's source of truth, we read on demand |+| Chat UI | ✅ NOT REBUILDING | AI SDK `useChat` + chat-sdk patterns |+| Channel skills | ✅ NOT REBUILDING | Existing `notfair-googleads` MCP + new curated SEO MCP |+| Hosting/deploy infra | ✅ NOT REBUILDING (was building!) | Local Next.js standalone build, no Vercel |+| AI Gateway tenancy | ✅ NOT REBUILDING (was building!) | User's own LLM API key directly to provider; AI SDK reports usage |+| **Local SQLite for our state** | ✅ JUSTIFIED CUSTOM | Tasks/approvals/cost events/oauth tokens/project metadata are notfair-CMO-specific; OpenClaw doesn't model them |+| **MCP server exposing our tools** | ✅ JUSTIFIED CUSTOM | `approve_action`, `record_cost`, `log_action`, `query_project_state` etc. are notfair-CMO-specific; how OpenClaw agents reach our state |+| **OAuth flows + token storage** | ✅ JUSTIFIED CUSTOM | Localhost callback flow + OS-keychain-encrypted SQLite storage. OpenClaw doesn't manage external API OAuth tokens for our purpose |+| **Project concept (name-prefix grouping)** | ✅ JUSTIFIED CUSTOM | OpenClaw is flat-namespaced; project = our UX concept layered on top via consistent agent/cron name prefixes |+| **CLI launcher (`npx notfair-cmo`)** | ✅ JUSTIFIED CUSTOM | Distribution; no off-the-shelf option fits |++---++## Protocol definitions (post-pivot — MCP-based, OpenClaw-native)++### Our MCP server: tools exposed to OpenClaw agents++Our Next.js runs an MCP server (stdio when the agent invokes via OpenClaw runtime, or HTTP-over-loopback for the gateway-mode setup). Registered with OpenClaw via `openclaw mcp set notfair-cmo '{ ... }'`. Every project's CMO + specialist agents are configured to load this MCP.++Tools:+- `assign_task(project_slug, specialist_agent_id, brief, success_criteria, deadline_iso)` → `{task_id}`. Creates row in our SQLite `tasks` table. Returns task_id. Specialist picks up the brief by querying task status at next turn or via cron trigger.+- `query_task_status(task_id)` → `{status, latest_result, agent_id}`. Reads our SQLite.+- `update_task_status(task_id, status, result?, error?)` → `{ok: true}`. Specialist agents call when finishing.+- `cancel_task(task_id, reason)` → `{cancelled: bool}`.+- `approve_action(action_summary, cost_estimate_usd, type, agent_id)` → `{approved: true}` if within guardrails, else `{approved: false, approval_id}` and the agent waits/exits and retries later when approval comes in.+- `record_cost(amount_usd, source, project_slug, agent_id, ref?)` → `{ok: true}`. Source = `llm|google_ads|gsc|...`. Used by cost meter.+- `log_action(agent_id, action_type, summary, reasoning, payload?)` → `{ok: true}`. Append-only audit log; powers "Why?" in chat.+- `query_project_state(project_slug)` → `{guardrails, recent_signals, active_tasks, cost_today}`. Cheap aggregate query agents call at turn start.+- `emit_signal(project_slug, source_agent_id, signal_type, summary, evidence, confidence)` → writes structured memory entry tagged `signal:<type>` via `openclaw memory` write (or shell out). Specialists discover via memory search at next turn.+- `get_oauth_credentials(provider, project_slug)` → decrypts + returns the access token + handles refresh-if-near-expiry. Agents never see refresh tokens directly.++### CMO ↔ specialist orchestration (no custom protocol; uses MCP)++CMO is an OpenClaw agent. When user chats:+1. Our Next.js receives message, calls `openclaw agent --agent <project-slug>-cmo --message "..." --json` (or via WebSocket Gateway for streaming).+2. CMO agent runs its turn, can call our MCP tools (`assign_task`, `approve_action`, etc.) and OpenClaw's native tools (`memory search`).+3. When CMO calls `assign_task(specialist, brief)`, our tool creates SQLite row, returns task_id, AND triggers the specialist agent via either:+ - `openclaw agent --agent <project-slug>-<specialist> --message "TASK <task_id>: <brief>"` (synchronous, if user is waiting)+ - `openclaw cron add ... --at +1m` (deferred, if user can wait)+4. Specialist agent reads brief from its message, optionally fetches latest task state via `query_task_status`, executes, calls `update_task_status` when done.+5. CMO sees result on next user turn via `query_task_status` (we inject "tasks updated since last turn: ..." into context).++No webhooks needed for V1: loopback subprocess calls are synchronous; the UI updates via polling our SQLite or via SSE that reads our `tasks` table on change.++### Signal sharing: tagged memory entries++When specialist agents observe something useful, they call `emit_signal(...)`. Our tool writes a structured memory entry via OpenClaw memory:+```+agent: <project-slug>-<specialist>+tags: signal, signal:<type>, project:<project-slug>+body: |+ summary: <one-liner>+ evidence: <json>+ suggested_actions: [{target_agent: seo, brief: "..."}]+ confidence: 0.8+ ttl_until: 2026-05-24T00:00:00Z+```++Other agents in the project discover via `openclaw memory search "signal:" --agent <project-slug>-*` at task start or as a "morning brief" routine for the CMO.++### Autonomy / approval threshold model (unchanged from pre-pivot, simpler enforcement)++Same threshold schema. Enforcement: every spending agent action MUST first call `approve_action(...)`. Our tool checks SQLite `guardrails` table; if within thresholds → returns `{approved: true}` immediately. If above → writes to `approvals` queue, returns `{approved: false, approval_id}`, agent exits gracefully. When user approves in UI, we fire a webhook (loopback) to OpenClaw gateway: `openclaw agent --agent <project>-<specialist> --message "RESUME approval_id=<id>"`. Agent re-runs the action.++```yaml+# Stored as JSON in SQLite guardrails table+autonomy:+ max_daily_spend_usd: 200+ max_concurrent_experiments: 3+ require_approval_above:+ spend_per_action_usd: 50+ new_channel_first_action: true+ content_publishing: true+ bid_changes_percent: 25+ audience_change: true+ fully_autonomous:+ keyword_pause: true+ budget_reallocation: true+ ab_test_winner_selection: true+ negative_keyword_add: true+```++### Cron management (OpenClaw native + project-prefix naming)++Tenet: OpenClaw cron is the source of truth. Our value-add is project attribution + UI grouping.++**Naming convention** (simplified — no account level since single user):+```+<project-slug> / <agent-slug> / <cron-slug>++Example: acme-q4 / google-ads / daily-bid-opt+```++Constraints:+- Lowercase, alphanumeric + hyphens; spaces and `/` allowed as visual separators+- Slugs immutable once created (decoupled from project display name)+- Total length: OpenClaw shows full name in cron list — keep readable, no hash truncation needed at this length++**Operations (wrappers over `openclaw cron` CLI):**+- Create: `openclaw cron add --name "<proj> / <agent> / <name>" --description "..." --agent <project-slug>-<agent-slug> --cron "..." --message "RUN <task_id>: <brief>" --json`+- List: `openclaw cron list --json`, filter client-side by name prefix+- Halt: `openclaw cron disable <id>`+- Delete: `openclaw cron rm <id>`+- Run history: `openclaw cron runs <id> --json`+- Update: `openclaw cron edit <id> --cron "..." --message "..."`++**Frontend cron tab:**+- Calls `openclaw cron list --json` via our backend+- Groups by project (parsed from name prefix); within project, groups by `--agent` column (which OpenClaw already provides)+- Per-row actions forward to the CLI commands above+- Per-row click: shows last 7 runs from `openclaw cron runs <id>`++**Autonomy + crons:** cron creation goes through `approve_action` if cron count > cap or if cron is content-publishing.++### Task lifecycle (unchanged, stored in our SQLite)++States: `proposed` → `approved` → `running` → (`succeeded` | `failed` | `cancelled`)++Tasks live in our SQLite `tasks` table. OpenClaw agents reference them by task_id in messages and in cron `--message` payloads. State transitions via the MCP tools.++---++## Architecture decisions (revised for local OSS, post-OpenClaw-spike)++1. **CMO loop: OpenClaw agent per project.** `openclaw agents add <project-slug>-cmo` with our MCP server attached. CMO calls our tools via MCP (zero HTTP roundtrips — stdio). Specialist agents same pattern: `<project-slug>-google-ads`, `<project-slug>-seo`.+2. **No auth.** Local loopback only. OpenClaw gateway started with `--auth none --bind loopback`. Our Next.js binds to 127.0.0.1 only. No Clerk. Settings page is single-user; no roles, no permissions.+3. **Storage: SQLite via better-sqlite3.** Single file at `~/.notfair-cmo/db.sqlite`. Tables: `projects`, `tasks`, `approvals`, `cost_events`, `oauth_tokens`, `guardrails`, `agent_actions`. No pgvector — memory is OpenClaw's job.+4. **Long-running work: OpenClaw cron + cursor in our SQLite.** Cold email sequences = a cron that runs the agent every N minutes; agent reads `cursor` from our `sequence_runs` table, processes next chunk, updates cursor, exits. Same pattern as before but now OpenClaw is running, not Vercel — no 300s timeout pressure (OpenClaw can run longer turns), but pattern is unchanged for resilience.+5. **Inter-process integration: subprocess + MCP.** Three integration surfaces with OpenClaw:+ - **CLI subprocess** for management ops (`agents add`, `cron add/list/edit/rm`, `memory search/index`): spawn `openclaw <cmd> --json`, parse stdout. Wrapped in `apps/web/lib/openclaw/cli.ts`.+ - **WebSocket Gateway** for agent invocation with streaming (`openclaw gateway` running; we connect via `ws://localhost:<port>`). Wrapped in `apps/web/lib/openclaw/gateway.ts`.+ - **MCP server** (we run) exposing our tools to OpenClaw agents. Registered once at install via `openclaw mcp set notfair-cmo '{...}'`. Implementation in `apps/web/lib/mcp-server/`.+6. **OAuth: localhost callback + OS-keychain master key.** Localhost redirect (Google Ads + GSC accept this for desktop apps). Master key generated on first launch + stored in OS keychain via `keytar`. OAuth tokens AES-256-GCM encrypted with this key, stored in SQLite. Refresh handled by a single function called before any agent action; no cron needed.+7. **Real-time UI: SSE from our Next.js to browser, gateway WebSocket from Next.js to OpenClaw.** Chat uses AI SDK streaming through our Next.js (which proxies to gateway WS). Task board / approvals / cron tab updates via SSE that listens to a local pub/sub (Node `EventEmitter` is sufficient — single-process).+8. **Distribution: npm package + standalone Next.js build.** `notfair-cmo` package exports a CLI bin. CLI uses `next start` against a pre-built `.next/standalone` directory. Targets Node 20+. No native deps beyond `better-sqlite3` and `keytar` (both have prebuilds for major platforms).+9. **No monorepo.** Single-package npm project. TypeScript types live in `src/types/` and are imported via relative paths. (Monorepo was needed when CMO ran in OpenClaw with separate tool definitions; now everything is in our Next.js codebase or in OpenClaw config.)+10. **Project = name-prefix grouping.** Project slug is the prefix on OpenClaw agent names and cron names. Project metadata (display name, slug, created_at, archived_at) lives in our SQLite. Archive = mark archived + disable all matching crons + optionally remove agents.++## Code conventions (adopt from line 1)++1. **`withProjectScope(handler)` middleware** at `src/server/with-project-scope.ts`. Wraps every API route that takes a project param. Validates project exists + not archived, attaches project metadata, returns standard error envelope on failure. NO auth check (no auth).+2. **`defineMcpTool({name, schema, handler})` factory** at `src/server/mcp-server/define-tool.ts`. Single source of truth for our MCP tools: Zod schema validation, structured logging, audit log entry to `agent_actions`, standard error envelope. Every tool registered through it.+3. **Single slugification utility** at `src/lib/slug.ts`. `slugify(input, maxLen)` → kebab-case, ASCII, length-capped, validated against reserved words. Used by project/agent/cron name.+4. **Standard error envelope** in `src/types/errors.ts`: `{ok: false, error_code, message, retryable, user_message}`. All MCP tools return this shape on error so agents have predictable handling.+5. **`openclaw()` wrapper** at `src/server/openclaw/cli.ts`. Single function: `openclaw(args: string[]) → Promise<JsonValue>`. Spawns subprocess with `--json` flag, parses stdout, throws structured error on stderr. Every interaction with OpenClaw CLI goes through this.+6. **`OpenClawGateway` class** at `src/server/openclaw/gateway.ts`. Singleton; lazy-connects to `ws://localhost:<port>`; reconnects on drop. Streaming chat goes through here.+7. **ASCII state diagram inline in `tasks` schema file.** 5-state lifecycle (proposed → approved → running → succeeded/failed/cancelled) deserves a diagram in code comments next to the SQLite schema.+8. **Single-file SQLite migrations** in `src/server/db/migrations/`. Sequential numbered (`001_init.sql`, `002_add_oauth.sql`). Auto-applied on startup; no separate migration command. No down-migrations (forward-only).++## Test strategy (V1 ship gate)++### Coverage diagram++```+CODE PATHS USER FLOWS / E2E+[+] CMO orchestration loop [+] Onboarding (URL → first plan)+ ├── tool: assign_task ├── [→E2E] paste URL → scrape → voice →+ │ [→EVAL] right specialist + brief shape │ ICP → 30-day plan rendered+ │ [GAP] invalid agent_type rejection └── [→E2E] approve plan → first task runs+ │ [GAP] deadline-in-past rejection [+] Project isolation (security-critical)+ ├── tool: query_task_status ├── [→E2E] User A cannot read User B's+ │ [GAP] 200 OK valid task │ project data via any endpoint+ │ [GAP] 404 cross-project └── [→E2E] User A cannot list/halt+ ├── tool: schedule_recurring_work │ User B's crons+ │ [GAP] cap enforcement + approval inbox [+] OAuth flows+ │ [GAP] content-publishing always needs apr ├── [→E2E] Google Ads connect → token+ ├── tool: query_signals + query_memory │ stored encrypted → agent uses+ │ [GAP] project-scoped, no cross-project │ token → token refresh+ │ [GAP] ttl + consumed_by filtering └── [→E2E] GSC connect (same)+ └── [→EVAL] CMO weekly briefing quality [+] Cron lifecycle+ ├── [→E2E] create → fires → archive+[+] Signal bus │ project → cron halted+ ├── [GAP] publish + LISTEN dispatch └── [→E2E] orphan detection+ ├── [GAP] ttl expiry filters from query [+] Autonomy guardrails+ └── [GAP] confidence scoring honored ├── [→E2E] daily spend cap actually halts+ └── [→E2E] action above threshold → approval+[+] OAuth vault (security-critical) inbox, not executed+ ├── [GAP] encrypt at rest, decrypt for use [+] Cost meter+ ├── [GAP] per-project key derivation └── [→E2E] spend visible + hard cap halts+ ├── [GAP] refresh before expiry+ └── [GAP] cross-project key isolation EVALS (critical, V1 gate)+ ├── [→EVAL] CMO orchestration: 20 scenarios;+[+] Approval inbox + autonomy thresholds │ gate on right specialist + brief+ ├── [GAP] every require_approval_above rule ├── [→EVAL] Brand voice fingerprint: derive+ │ catches the action │ then generate; human review+ └── [GAP] approved item executes; rejected halts matches source voice+ └── [→EVAL] CMO weekly briefing quality++V1 ship gate: all E2E + EVAL paths green+```++### Eval harness (light, V1)++- `packages/evals` workspace with 20 curated scenarios at V1+- Scenario shape: project context + user message → assert right specialist + brief shape + no obvious errors+- Runs in CI on every PR touching CMO prompts or orchestration logic+- Gates CI on regression vs baseline (no merge if scenarios that passed yesterday fail today)+- Uses AI SDK + AI Gateway; budget ~$0.50 per full eval run+- Expand to 100+ scenarios + LLM-as-judge quality scoring post-GA++### Project-isolation harness++- Test helper `withTwoProjects(testFn)` spins up Project A (user A) + Project B (user B)+- Every API route test must include cross-project access test+- Static lint rule: any route handler test file without a `cross-project` test fails CI++### OAuth E2E uses real provider sandboxes++- Google Ads sandbox + GSC sandbox accounts maintained for V1+- Don't mock the OAuth dance — Google's verification cycle means we validate the real flow early+- E2E runs nightly + on PR touching OAuth code++## Performance notes (V1)++1. **pgvector: HNSW index, single index with `project_id` filter column.** Better recall than IVFFlat at low volumes; memory tradeoff fine at V1. Re-evaluate at 100k+ projects.+2. **AI Gateway caching aggressive on deterministic prompts.** Brand voice fingerprint, ICP analysis, post-mortems have stable inputs → 7-day cache TTL. Saves real money + speeds onboarding.+3. **Cron jitter at creation time.** Add random 0-59 min offset per cron to spread "9am daily" across the hour. One-line fix at create; saves an incident later.+4. **CMO chat SLOs:** first-token <2s, full-turn <10s for ≤5 tool calls. Measure post-spike. If OpenClaw → Next.js roundtrip >300ms, add `batch_tool_calls([...])` so CMO issues parallel queries in one roundtrip.++## Failure modes (V1, post-pivot)++| Codepath | Failure | Test | Handling | User sees |+|---|---|---|---|---|+| CLI launch | OpenClaw not installed/running | doctor cmd | `notfair-cmo doctor` runs at startup; surfaces clear install instructions if missing | Terminal output: "OpenClaw not running. Start it with `openclaw gateway` then retry." |+| CLI launch | Port already in use | Unit | Try N+1 up to 5 times; surface chosen port | "notfair-cmo running on http://localhost:3247 (3000 was busy)" |+| CMO turn | OpenClaw subprocess fails | Integration | Catch, retry once with backoff; surface error to UI | "Couldn't reach agent. Try `openclaw doctor` in another terminal." |+| MCP tool call | Tool throws unexpectedly | Unit | `defineMcpTool` wraps in try/catch, returns standard error envelope | Agent sees structured error, retries or surfaces to user |+| `approve_action` | Race: two agents check cap simultaneously | Unit | SQLite transaction with `BEGIN IMMEDIATE` around check+record | Second action sees updated state, halts correctly |+| Cron tick | OpenClaw cron fires while our app not running | Manual + integration | OpenClaw runs autonomously; cron triggers agent which calls our MCP. If our MCP server unreachable, agent fails gracefully and OpenClaw records as failed run. Next user open shows failed cron. | Cron tab shows ⚠ on failed runs; click for retry |+| OAuth refresh | Refresh token revoked | Unit + manual | Mark credential as `needs_reauth`; agent calls to `get_oauth_credentials` return error envelope; UI banner | "Reconnect your Google Ads account" banner in Connections page |+| Cost meter | Cost event missed (agent crashed before reporting) | Manual | Underreport possible but bounded; doctor cmd cross-checks against OpenClaw logs | Slight cost lag possible; doctor surfaces drift |+| SQLite | DB file corrupted | Manual | better-sqlite3 detects on open; backup auto-restored from `db.sqlite.bak` if recent | "Restored from automatic backup (data from <time>)" |+| Project archive | In-flight cron mid-tick | Integration | Archive halts crons via `openclaw cron disable` loop; in-flight ticks complete; new ticks blocked | Archive progress: "halting 12 crons..." then done |+| OS keychain | Locked / unavailable | Unit | Surface error at startup; offer fallback (password prompt for master key) | "Unlock your keychain to use stored OAuth credentials" |++**Critical gaps:** None at V1 plan stage. Failure modes mostly simpler than pre-pivot since loopback + single-process eliminates classes of distributed-system failures.++## Implementation lanes (parallel-friendly)++Plan implementation in 3 lanes, all parallel:++| Lane | Workstream | Files | Depends on |+|---|---|---|---|+| **A (parallel)** | CLI + UI shell: package.json + bin/cli.ts + sidebar shell + project CRUD + SQLite schema | `package.json`, `bin/`, `src/app/(shell)/`, `src/server/db/` | — |+| **B (parallel)** | OpenClaw integration: CLI subprocess wrapper + gateway WS client + MCP server scaffold | `src/server/openclaw/`, `src/server/mcp-server/` | — |+| **C (parallel)** | CMO chat UI + AI SDK integration + first agent template (Google Ads via existing MCP) | `src/app/api/chat/`, `src/components/chat/`, `src/server/agent-templates/` | — |++After all 3 land: lane D integrates them — onboarding flow + approval inbox UI + cron tab UI + cost meter + OAuth flow for Google Ads + SEO MCP curation.++No conflict flags — different file trees per lane.++## Still deferred (handle in implementation or post-V1)++- **Concrete SQLite schema DDL** — draft during lane A; refine as features land. Migrations are forward-only single SQL files.+- **Telemetry endpoint + opt-in UX** — design + ship in V1.1 once we have an OSS user base to measure+- **Standalone binary distribution** (Tauri/pkg) — V1 ships npm only; revisit if user feedback says install friction is real+- **Multi-machine sync of projects** — use Tailscale + OpenClaw's remote-gateway mode; post-V1+- **SEO MCP curation** — V1 needs a curated SEO MCP. Either build inline during lane C/D, or vendor from an existing OSS source. Decide during scaffolding.++---++## OpenClaw capabilities spike — COMPLETED 2026-05-17++Live spike against the running OpenClaw v2026.5.7 install on user's machine. All results passed; full findings in [[openclaw-capabilities]] memory file. Summary:++| Capability | Status | Notes |+|---|---|---|+| Isolated agents per workspace | ✅ | `openclaw agents add <name> --workspace <dir> --model <id>` — existing install has agents `main` + `supa` |+| Cron with metadata + run history | ✅ | `openclaw cron add` accepts `--name`, `--description`, `--agent`, `--cron`/`--every`, `--message`, `--session-key`, `--tools`, `--tz`. List shows ID/Name/Schedule/Next/Last/Status/Target/Delivery/Agent ID/Model. `cron runs <id>` shows history. |+| Memory subsystem | ✅ | `openclaw memory search/index/promote/REM`. Per-agent by default. Has REM (reflective episodic memory) with deep promotion to MEMORY.md. |+| MCP server registration | ✅ | `openclaw mcp set/list/show`. Existing install already has `notfair-googleads` MCP registered. |+| WebSocket Gateway | ✅ | `openclaw gateway` configurable auth (none/token/password/trusted-proxy), bind (loopback/lan/tailnet). |+| Tool-calling via MCP | ✅ | Agents call MCP-registered tools natively. |+| Long-running work | ✅ via cron chunks | Crons with `--every` reawaken agents; combined with our SQLite cursor pattern. |+| Channels (Telegram/Slack/iMessage/etc) | ✅ (bonus) | Existing install has iMessage + Slack + Telegram configured. Crons can deliver to channels via `--announce`. Out of V1 scope but available for power users. |++**No hard blockers found.** Spike validated the architecture. No further validation needed before scaffolding.++---++## Success criteria (V1 ship readiness)++- `npx notfair-cmo` works on fresh macOS + Linux + WSL machine where OpenClaw is installed+- Solo founder can complete onboarding (URL → first plan) in <5 minutes+- CMO can launch and monitor a Google Ads campaign within guardrails (using user's connected Google Ads account)+- CMO can launch SEO work (audit, content recommendations) and surface signals consumed by Google Ads agent on next turn+- CMO + specialist agents can schedule recurring work via `openclaw cron`; cron tab shows them grouped by project + agent+- Cost meter always visible; hard cap actually halts spending+- Approval inbox catches all `require_approval_above` events; no false negatives in test+- Archive a project → all of its OpenClaw crons disabled, agents optionally removed+- GitHub repo: README + ARCHITECTURE + CONTRIBUTING + LICENSE+- npm package published; install instructions verified++**Stretch (validate but don't gate):** project memory measurably improves agent output between week 1 and week 4 (requires eval harness + 4 weeks wall-clock; design harness now)++---++## Risk register (post-pivot)++| Risk | Likelihood | Impact | Mitigation |+|------|-----------|--------|-----------|+| Users don't have OpenClaw installed | High | High | `doctor` command surfaces install instructions; README leads with OpenClaw prereq; consider bundling OpenClaw install script as part of `notfair-cmo install` |+| OpenClaw version drift breaks our subprocess wrapper | Med | High | Test against multiple OpenClaw versions in CI; record min-supported version; fail fast with clear error |+| Google Ads OAuth complexity (localhost callback edge cases) | Med | Med | Use Google's standard desktop-app OAuth flow; document well; provide troubleshooting in doctor |+| User runs out of disk for SQLite/memory growth | Low | Med | Default cap on memory entries per agent; quarterly cleanup cron; doctor shows db size |+| CMO autonomy generates user fear ("it spent my money!") | High | High | Hard caps + always-visible cost meter + approval inbox for big actions + activity log + dry-run mode |+| LLM costs surprise user | Med | Med | Cost meter visible; daily cap with hard halt; AI SDK reports per-call usage |+| MCP tools become a security hole (e.g., shell-injection via cron payload) | Med | High | Strict Zod validation on every MCP tool input; no shell-out from MCP tool bodies; security audit before V1 |+| OSS user base hostile (license complaints, telemetry pushback) | Med | Low | MIT/Apache license, telemetry opt-in only, README addresses both upfront |+| `keytar` not available on user's OS | Low | High | Fallback to encrypted file with prompt-based password on every launch; doctor surfaces fallback mode |+| Single-process EventEmitter pub/sub doesn't scale | Low | Low | Single user, single project active at a time — won't hit limits in V1 |++---++## Recommended next steps (post-pivot)++1. **Scaffold the project** — `pnpm create next-app notfair-cmo`, set up directory structure (`src/server/`, `src/app/`, `src/types/`, `bin/`), install deps (`ai`, `@ai-sdk/openai`, `@ai-sdk/anthropic`, `better-sqlite3`, `keytar`, `zod`, `commander`, shadcn-cli), set up `package.json` with `bin` entry.+2. **Doctor command** — `bin/cli.ts doctor` that verifies OpenClaw is installed + running + accessible. Build first; surfaces what's missing for users.+3. **OpenClaw CLI wrapper** — `src/server/openclaw/cli.ts` with `openclaw(args)` function. Cover the operations we need (agents add/list, cron add/list/disable, memory search, mcp set).+4. **SQLite schema + migrations** — `src/server/db/migrations/001_init.sql` with `projects`, `tasks`, `approvals`, `cost_events`, `oauth_tokens`, `guardrails`, `agent_actions`, `sequence_runs`.+5. **MCP server skeleton** — `src/server/mcp-server/` with `defineMcpTool` factory + stub implementations of the 9 tools.+6. **Sidebar shell + project CRUD UI** — Lane A.+7. **CMO chat UI + first agent template** — Lane C (after lanes A + B partially landed).+8. **Onboarding magic moment + approval inbox + cron tab + cost meter** — Lane D.+9. **README + ARCHITECTURE + CONTRIBUTING + LICENSE** — before any GitHub push.+10. **npm publish workflow + initial release as v0.1.0**.++---++## Spec-review log++- Initial plan written 2026-05-17+- Independent adversarial review: 6/10, surfaced scope/protocol/feasibility gaps+- Revision 1: cut V1 from 6 channels to 2, deferred D4 agency mode to v1.1, added protocol definitions (CMO↔specialist tool-calling, signal envelope schema, autonomy threshold model, task lifecycle), restructured OpenClaw spike with fallback plan, marked memory-improvement criterion as stretch+- Revision 2: added "don't rebuild the wheels" as guiding tenet, added cron management as V1 item (OpenClaw-backed via naming convention `notfair-<account-slug>-<project-slug>-<agent-slug>-<cron-slug>` with immutable slugs decoupled from display names), added wheel-rebuilding audit table, extended CMO orchestration tools with `schedule_recurring_work` + `query_scheduled_work`, extended OpenClaw spike with cron capability checks+- Revision 3 (eng-review): locked 8 architecture decisions (CMO in OpenClaw, Clerk, cron-driven chunks for long-running work, HMAC webhooks + idempotency + reconciliation, AES-256-GCM OAuth vault, AI SDK streaming + SSE, pnpm monorepo + `@notfair/types`), added 5 code conventions, added test strategy (coverage diagram + light eval harness + project-isolation harness + real OAuth sandboxes), added performance notes, added failure modes table, added worktree parallelization lanes+- Revision 4 (design-review): locked shadcn defaults + no brand in V1, locked Pattern A app shell (sidebar + main), added complete design specs for 5 screens (Project Home, CMO Chat, Onboarding, Approval Inbox, Cron Tab) + cost meter + activity log, defined interaction states per screen, defined responsive breakpoints, defined a11y baseline, defined user journey emotional arc+- **Revision 5 (PIVOT, 2026-05-17): open-source local CLI tool.** Major scope adjustment after user pivot. Eliminated: auth (Clerk), multi-tenancy, hosted Postgres + pgvector, Vercel deployment, AI Gateway tenancy, webhook signing infrastructure, per-tenant envelope encryption, D4 agency mode entirely, OAuth verification calendar wait. Leveraged after live OpenClaw spike: OpenClaw memory (replaces pgvector), OpenClaw cron (already had it but now no naming convention needed beyond project prefix — OpenClaw tracks agent + name + description natively), OpenClaw agents (workspace per agent), MCP server pattern (how we expose tools to OpenClaw agents). New scope: npm CLI launcher, local SQLite, OS-keychain master key for OAuth, doctor command, GitHub OSS repo. V1 effort revised: ~1-2 weeks CC. All architecture, code conventions, protocol definitions, failure modes, risk register, recommended next steps revised. Design specs unchanged (UI doesn't depend on runtime).+- **Revision 6 (2026-05-17): defer MCP-from-agents to v1.1.** User decision: skip wiring the MCP server into OpenClaw agents for V1. The 12 MCP tools remain built and registered (the server runs) but agents do not call them mid-turn. V1 becomes an "agent runner + chat portal" rather than the orchestrated-CMO product. Drops from critical path: CMO orchestration loop verification, `get_oauth_credentials` runtime path, `emit_signal` → OpenClaw memory integration, `approve_action`-driven autonomy enforcement, MCP server auto-registration. Re-promoted to V1: backend-driven cron creation UI (user clicks "Schedule recurring work" on an agent → our API calls `openclaw cron add` directly), manual approval queue (placeholder for v1.1), zero-cost meter default (real cost tracking comes with MCP). Re-framed V1 promise: "talk to an OpenClaw agent scoped to a marketing project, schedule recurring work, manage cron jobs cleanly." Full CMO orchestration promise moves to v1.1.diff --git a/README.md b/README.mdnew file mode 100644index 00000000..366c277c--- /dev/null+++ b/README.md@@ -0,0 +1,97 @@+# notfair-cmo++> Local AI marketing portal. Spin up specialist [OpenClaw](https://docs.openclaw.ai) marketing agents per project, chat with them, manage their scheduled work.++Open source. Runs entirely on your machine. Bring your own LLM credentials (via OpenClaw config) and your own ad-platform OAuth.++## What it gives you++- A **CMO chat** per project — talk to a marketing-shaped agent that can launch campaigns, audit SEO, kick off cron jobs.+- **Specialist agents** (Google Ads, SEO) auto-provisioned per project, isolated in their own OpenClaw workspaces.+- A **cron tab** that parses OpenClaw's cron list and groups it by project + agent so attribution is obvious.+- An **approval inbox** and **cost meter** sketched into the sidebar (placeholders in v0.1; live in v0.2 when autonomy guardrails wire up).+- **Connections** UI for OAuth (Google Ads, Google Search Console).++## Prerequisites++- **[OpenClaw](https://docs.openclaw.ai/install)** installed and the gateway running on this machine (`openclaw gateway`).+- **Node 20+** (Node 24 recommended).+- An LLM provider configured in your OpenClaw config (the project inherits `agents.defaults.model` — primary + fallbacks chain).++Run `notfair-cmo doctor` to verify all three.++## Install + run++```bash+# One-shot, no install:+npx notfair-cmo@latest doctor # verify env+npx notfair-cmo@latest # launch UI on localhost:3000++# Or install globally:+npm install -g notfair-cmo+notfair-cmo+```++The UI opens in your browser. Sidebar is project-scoped; create one to start.++## CLI++```+notfair-cmo Launch local server + open UI (default)+notfair-cmo start Same as above+notfair-cmo doctor Verify OpenClaw, gateway, data dir, LLM key+notfair-cmo --version+notfair-cmo --help+```++Options on `start`: `--port <n>`, `--no-open`, `--data-dir <path>`.++## What happens when you create a project++1. SQLite row written at `~/.notfair-cmo/db.sqlite`.+2. Three OpenClaw agents provisioned under the project's slug:+ - `<slug>-cmo` — Chief Marketing Officer+ - `<slug>-google-ads` — Google Ads specialist+ - `<slug>-seo` — SEO specialist+ Each gets its own workspace at `~/.notfair-cmo/agents/<name>/` and a `IDENTITY.md` system prompt scoped to its role.+3. You're redirected to the project home. Click **Chat with CMO** to start.++## Scheduling recurring work++Agents have OpenClaw's built-in `exec` tool, so they create their own cron jobs by running `openclaw cron add` with our naming convention. You can also schedule manually via the **+ New cron** button on the Crons tab.++Cron names follow `<project-slug> / <agent-slug> / <cron-slug>` so the tab can group them.++## OAuth setup (optional, for Google Ads / GSC agents to do real work)++The agents are useful in chat without OAuth, but to actually pull live data or push changes, register a Google Cloud OAuth app and set:++```bash+# In your shell or .env+export GOOGLE_ADS_CLIENT_ID="..."+export GOOGLE_ADS_CLIENT_SECRET="..."+export GSC_CLIENT_ID="..."+export GSC_CLIENT_SECRET="..."+```++Set the redirect URI in Google Cloud Console to `http://localhost:3000/api/oauth/google_ads/callback` (and similar for `gsc`). Then visit **Connections** in the UI and click **Connect**.++Tokens are AES-256-GCM encrypted with a master key stored in your OS keychain (via `keytar`) and persisted to your local SQLite.++## Data location++- App state: `~/.notfair-cmo/db.sqlite` (override with `--data-dir` or `NOTFAIR_CMO_DATA_DIR`)+- Agent workspaces: `~/.notfair-cmo/agents/<agent-name>/`+- OpenClaw config: `~/.openclaw/openclaw.json` (managed by OpenClaw, not us)++## What v0.1 is and isn't++**Is:** an agent runner + chat portal + cron management UI. Talk to project-scoped OpenClaw agents, schedule their recurring work, see attribution.++**Isn't (yet):** a fully autonomous CMO. The approval inbox, autonomy guardrails, automatic cost tracking, and cross-agent signal sharing are scaffolded but not wired. They land in v0.2.++See `ARCHITECTURE.md` for the design and `CONTRIBUTING.md` for development setup.++## License++MIT — see LICENSE.diff --git a/bin/cli.mjs b/bin/cli.mjsnew file mode 100755index 00000000..dd664358--- /dev/null+++ b/bin/cli.mjs@@ -0,0 +1,221 @@+#!/usr/bin/env node+// notfair-cmo CLI entry point.+// Compiled-free: stays as plain ESM JS so it works straight from npm without a build step+// for the CLI surface. The Next.js app itself is built and shipped under .next/standalone.++import { spawn } from "node:child_process";+import { existsSync, mkdirSync, readFileSync, cpSync } from "node:fs";+import { homedir } from "node:os";+import { dirname, join } from "node:path";+import { fileURLToPath } from "node:url";+import { createServer } from "node:net";+import { Command } from "commander";+import open from "open";++const __dirname = dirname(fileURLToPath(import.meta.url));+const PKG_ROOT = dirname(__dirname);+const DATA_DIR = process.env.NOTFAIR_CMO_DATA_DIR ?? join(homedir(), ".notfair-cmo");++const program = new Command();+program+ .name("notfair-cmo")+ .description("Local AI marketing CMO portal. Orchestrates OpenClaw marketing agents.")+ .version(readPackageVersion());++program+ .command("start", { isDefault: true })+ .description("Start the local server and open the UI in your browser.")+ .option("-p, --port <port>", "Port to bind", "3000")+ .option("--no-open", "Do not auto-open the browser")+ .option("--data-dir <dir>", "Override data directory", DATA_DIR)+ .action(async (opts) => {+ const desired = Number.parseInt(opts.port, 10);+ const port = await findFreePort(desired);+ if (port !== desired) {+ console.log(`Port ${desired} was busy, using ${port} instead.`);+ }++ ensureDataDir(opts.dataDir);++ const standalonePath = join(PKG_ROOT, ".next", "standalone", "server.js");+ if (!existsSync(standalonePath)) {+ console.error("Build artifacts not found. This usually means you're running");+ console.error("from source without a build. Run: pnpm build");+ console.error(`Expected: ${standalonePath}`);+ process.exit(2);+ }++ // Next.js standalone output omits .next/static and public by default; copy+ // them in if they're missing so the server can serve CSS/JS chunks.+ ensureStandaloneAssets();++ const url = `http://127.0.0.1:${port}`;+ const child = spawn("node", [standalonePath], {+ stdio: "inherit",+ env: {+ ...process.env,+ PORT: String(port),+ HOSTNAME: "127.0.0.1",+ NOTFAIR_CMO_DATA_DIR: opts.dataDir,+ },+ });++ console.log(`notfair-cmo running on ${url}`);++ if (opts.open !== false) {+ setTimeout(() => {+ open(url).catch(() => {+ console.log(`Open ${url} in your browser.`);+ });+ }, 800);+ }++ const shutdown = () => {+ child.kill("SIGTERM");+ };+ process.on("SIGINT", shutdown);+ process.on("SIGTERM", shutdown);+ });++program+ .command("doctor")+ .description("Verify OpenClaw is installed and reachable.")+ .action(async () => {+ let allOk = true;++ process.stdout.write("Checking OpenClaw on PATH... ");+ const oc = await runCheck("openclaw", ["--version"]);+ if (oc.ok) {+ console.log(`ok (${oc.stdout.trim()})`);+ } else {+ console.log("MISSING");+ console.log(" Install: https://docs.openclaw.ai/install");+ allOk = false;+ }++ if (oc.ok) {+ process.stdout.write("Checking OpenClaw gateway health... ");+ const health = await runCheck("openclaw", ["health"]);+ if (health.ok) {+ console.log("ok");+ } else {+ console.log("UNREACHABLE");+ console.log(" Start it with: openclaw gateway");+ allOk = false;+ }+ }++ process.stdout.write("Checking data dir is writable... ");+ try {+ ensureDataDir(DATA_DIR);+ console.log(`ok (${DATA_DIR})`);+ } catch (err) {+ console.log("FAILED");+ console.log(` ${err instanceof Error ? err.message : String(err)}`);+ allOk = false;+ }++ process.stdout.write("Checking for an LLM API key... ");+ const hasKey = !!(+ process.env.OPENAI_API_KEY ||+ process.env.ANTHROPIC_API_KEY ||+ process.env.GOOGLE_GENERATIVE_AI_API_KEY+ );+ if (hasKey) {+ console.log("ok");+ } else {+ console.log("MISSING");+ console.log(" Set one of: OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY");+ allOk = false;+ }++ process.exit(allOk ? 0 : 1);+ });++program+ .command("stop")+ .description("Stop any running notfair-cmo instances on this machine.")+ .action(() => {+ console.log("Stop is not implemented yet. Use Ctrl+C in the running terminal,");+ console.log("or kill the node process bound to your notfair-cmo port.");+ process.exit(1);+ });++program.parseAsync(process.argv).catch((err) => {+ console.error(err);+ process.exit(1);+});++// --- helpers ---++function ensureStandaloneAssets() {+ const standaloneStatic = join(PKG_ROOT, ".next", "standalone", ".next", "static");+ const sourceStatic = join(PKG_ROOT, ".next", "static");+ if (!existsSync(standaloneStatic) && existsSync(sourceStatic)) {+ cpSync(sourceStatic, standaloneStatic, { recursive: true });+ }+ const standalonePublic = join(PKG_ROOT, ".next", "standalone", "public");+ const sourcePublic = join(PKG_ROOT, "public");+ if (!existsSync(standalonePublic) && existsSync(sourcePublic)) {+ cpSync(sourcePublic, standalonePublic, { recursive: true });+ }+}++function readPackageVersion() {+ try {+ const pkg = JSON.parse(readFileSync(join(PKG_ROOT, "package.json"), "utf8"));+ return pkg.version ?? "0.0.0";+ } catch {+ return "0.0.0";+ }+}++function ensureDataDir(dir) {+ if (!existsSync(dir)) {+ mkdirSync(dir, { recursive: true, mode: 0o700 });+ }+}++function findFreePort(start, maxTries = 10) {+ return new Promise((resolve, reject) => {+ let attempt = 0;+ const tryPort = (port) => {+ const server = createServer();+ server.once("error", (err) => {+ server.close();+ if (err.code === "EADDRINUSE" && attempt < maxTries) {+ attempt += 1;+ tryPort(port + 1);+ } else {+ reject(err);+ }+ });+ server.listen(port, "127.0.0.1", () => {+ server.close(() => resolve(port));+ });+ };+ tryPort(start);+ });+}++function runCheck(cmd, args) {+ return new Promise((resolve) => {+ let stdout = "";+ let stderr = "";+ const child = spawn(cmd, args, { stdio: ["ignore", "pipe", "pipe"] });+ child.stdout.on("data", (c) => {+ stdout += c.toString();+ });+ child.stderr.on("data", (c) => {+ stderr += c.toString();+ });+ child.on("error", () => resolve({ ok: false, stdout: "", stderr: "" }));+ child.on("close", (code) => {+ resolve({ ok: code === 0, stdout, stderr });+ });+ setTimeout(() => {+ child.kill("SIGTERM");+ resolve({ ok: false, stdout, stderr: "timed out" });+ }, 5000);+ });+}diff --git a/components.json b/components.jsonnew file mode 100644index 00000000..3e7c73d1--- /dev/null+++ b/components.json@@ -0,0 +1,21 @@+{+ "$schema": "https://ui.shadcn.com/schema.json",+ "style": "new-york",+ "rsc": true,+ "tsx": true,+ "tailwind": {+ "config": "",+ "css": "src/app/globals.css",+ "baseColor": "zinc",+ "cssVariables": true,+ "prefix": ""+ },+ "aliases": {+ "components": "@/components",+ "utils": "@/lib/utils",+ "ui": "@/components/ui",+ "lib": "@/lib",+ "hooks": "@/hooks"+ },+ "iconLibrary": "lucide"+}diff --git a/next-env.d.ts b/next-env.d.tsnew file mode 100644index 00000000..c4b7818f--- /dev/null+++ b/next-env.d.ts@@ -0,0 +1,6 @@+/// <reference types="next" />+/// <reference types="next/image-types/global" />+import "./.next/dev/types/routes.d.ts";++// NOTE: This file should not be edited+// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.diff --git a/next.config.ts b/next.config.tsnew file mode 100644index 00000000..ab45aaca--- /dev/null+++ b/next.config.ts@@ -0,0 +1,11 @@+import type { NextConfig } from "next";++const config: NextConfig = {+ output: "standalone",+ serverExternalPackages: ["better-sqlite3", "keytar"],+ // typedRoutes intentionally disabled in V1 — our nav table builds Link hrefs+ // dynamically. Re-enable once the route map settles and Link wrappers can+ // be properly typed.+};++export default config;diff --git a/package.json b/package.jsonnew file mode 100644index 00000000..05a6dc2b--- /dev/null+++ b/package.json@@ -0,0 +1,72 @@+{+ "name": "notfair-cmo",+ "version": "0.1.0-alpha.0",+ "description": "Open-source AI marketing CMO portal. Run locally; orchestrates OpenClaw marketing agents (Google Ads, SEO, and more).",+ "license": "MIT",+ "bin": {+ "notfair-cmo": "./bin/cli.mjs"+ },+ "files": [+ "bin/",+ ".next/standalone/",+ ".next/static/",+ "public/"+ ],+ "scripts": {+ "dev": "next dev --turbopack",+ "build": "next build && node scripts/copy-standalone-assets.mjs",+ "start": "next start",+ "cli": "tsx bin/cli.ts",+ "typecheck": "tsc --noEmit",+ "lint": "next lint"+ },+ "dependencies": {+ "@ai-sdk/anthropic": "^1.0.0",+ "@ai-sdk/openai": "^1.0.0",+ "@radix-ui/react-dialog": "^1.1.0",+ "@radix-ui/react-dropdown-menu": "^2.1.0",+ "@radix-ui/react-slot": "^1.1.0",+ "ai": "^4.0.0",+ "better-sqlite3": "^12.10.0",+ "class-variance-authority": "^0.7.0",+ "clsx": "^2.1.0",+ "commander": "^12.1.0",+ "cron-parser": "^5.5.0",+ "keytar": "^7.9.0",+ "lucide-react": "^0.460.0",+ "next": "^16.2.6",+ "next-themes": "^0.4.6",+ "open": "^10.1.0",+ "radix-ui": "^1.4.3",+ "react": "^19.0.0",+ "react-dom": "^19.0.0",+ "sonner": "^2.0.7",+ "tailwind-merge": "^2.5.0",+ "zod": "^3.23.0"+ },+ "devDependencies": {+ "@tailwindcss/postcss": "^4.0.0",+ "@types/better-sqlite3": "^7.6.0",+ "@types/node": "^22.0.0",+ "@types/react": "^19.0.0",+ "@types/react-dom": "^19.0.0",+ "eslint": "^9.0.0",+ "eslint-config-next": "^16.2.6",+ "postcss": "^8.4.0",+ "tailwindcss": "^4.0.0",+ "tsx": "^4.19.0",+ "typescript": "^5.6.0"+ },+ "engines": {+ "node": ">=20"+ },+ "pnpm": {+ "onlyBuiltDependencies": [+ "better-sqlite3",+ "keytar",+ "esbuild",+ "sharp",+ "unrs-resolver"+ ]+ }+}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlnew file mode 100644index 00000000..a9b73de0--- /dev/null+++ b/pnpm-lock.yaml@@ -0,0 +1,6700 @@+lockfileVersion: '9.0'++settings:+ autoInstallPeers: true+ excludeLinksFromLockfile: false++importers:++ .:+ dependencies:+ '@ai-sdk/anthropic':+ specifier: ^1.0.0+ version: 1.2.12([email protected])+ '@ai-sdk/openai':+ specifier: ^1.0.0+ version: 1.3.24([email protected])+ '@radix-ui/react-dialog':+ specifier: ^1.1.0+ version: 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dropdown-menu':+ specifier: ^2.1.0+ version: 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot':+ specifier: ^1.1.0+ version: 1.2.4(@types/[email protected])([email protected])+ ai:+ specifier: ^4.0.0+ version: 4.3.19([email protected])([email protected])+ better-sqlite3:+ specifier: ^12.10.0+ version: 12.10.0+ class-variance-authority:+ specifier: ^0.7.0+ version: 0.7.1+ clsx:+ specifier: ^2.1.0+ version: 2.1.1+ commander:+ specifier: ^12.1.0+ version: 12.1.0+ cron-parser:+ specifier: ^5.5.0+ version: 5.5.0+ keytar:+ specifier: ^7.9.0+ version: 7.9.0+ lucide-react:+ specifier: ^0.460.0+ version: 0.460.0([email protected])+ next:+ specifier: ^16.2.6+ version: 16.2.6(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])+ next-themes:+ specifier: ^0.4.6+ open:+ specifier: ^10.1.0+ version: 10.2.0+ radix-ui:+ specifier: ^1.4.3+ version: 1.4.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react:+ specifier: ^19.0.0+ version: 19.2.6+ react-dom:+ specifier: ^19.0.0+ version: 19.2.6([email protected])+ sonner:+ specifier: ^2.0.7+ tailwind-merge:+ specifier: ^2.5.0+ version: 2.6.1+ zod:+ specifier: ^3.23.0+ version: 3.25.76+ devDependencies:+ '@tailwindcss/postcss':+ specifier: ^4.0.0+ version: 4.3.0+ '@types/better-sqlite3':+ specifier: ^7.6.0+ version: 7.6.13+ '@types/node':+ specifier: ^22.0.0+ version: 22.19.19+ '@types/react':+ specifier: ^19.0.0+ version: 19.2.14+ '@types/react-dom':+ specifier: ^19.0.0+ version: 19.2.3(@types/[email protected])+ eslint:+ specifier: ^9.0.0+ version: 9.39.4([email protected])+ eslint-config-next:+ specifier: ^16.2.6+ version: 16.2.6(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ postcss:+ specifier: ^8.4.0+ version: 8.5.14+ tailwindcss:+ specifier: ^4.0.0+ version: 4.3.0+ tsx:+ specifier: ^4.19.0+ version: 4.22.1+ typescript:+ specifier: ^5.6.0+ version: 5.9.3++packages:++ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-YSzjlko7JvuiyQFmI9RN1tNZdEiZxc+6xld/0tq/VkJaHpEzGAb1yiNxxvmYVcjvfu/PcvCxAAYXmTYQQ63IHQ==}+ engines: {node: '>=18'}+ peerDependencies:+ zod: ^3.0.0++ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-GYXnGJTHRTZc4gJMSmFRgEQudjqd4PUN0ZjQhPwOAYH1yOAvQoG/Ikqs+HyISRbLPCrhbZnPKCNHuRU4OfpW0Q==}+ engines: {node: '>=18'}+ peerDependencies:+ zod: ^3.0.0++ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-fqhG+4sCVv8x7nFzYnFo19ryhAa3w096Kmc3hWxMQfW/TubPOmt3A6tYZhl4mUfQWWQMsuSkLrtjlWuXBVSGQA==}+ engines: {node: '>=18'}+ peerDependencies:+ zod: ^3.23.8++ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-qZMxYJ0qqX/RfnuIaab+zp8UAeJn/ygXXAffR5I4N0n1IrvA6qBsjc8hXLmBiMV2zoXlifkacF7sEFnYnjBcqg==}+ engines: {node: '>=18'}++ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-jK1IZZ22evPZoQW3vlkZ7wvjYGYF+tRBKXtrcolduIkQ/m/sOAVcVeVDUDvh1T91xCnWCdUGCPZg2avZ90mv3g==}+ engines: {node: '>=18'}+ peerDependencies:+ react: ^18 || ^19 || ^19.0.0-rc+ zod: ^3.23.8+ peerDependenciesMeta:+ zod:+ optional: true++ '@ai-sdk/[email protected]':+ resolution: {integrity: sha512-3zcwCc8ezzFlwp3ZD15wAPjf2Au4s3vAbKsXQVyhxODHcmu0iyPO2Eua6D/vicq/AUm/BAo60r97O6HU+EI0+w==}+ engines: {node: '>=18'}+ peerDependencies:+ zod: ^3.23.8++ '@alloc/[email protected]':+ resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}+ engines: {node: '>=10'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-LIVqM46zQWZhj17qA8wb4nW/ixr2y1Nw+r1etiAWgRM6U1IqP+LNhL1yg440jYZR72jCWcWbLWzIosH+uP1fqg==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==}+ engines: {node: '>=6.9.0'}+ peerDependencies:+ '@babel/core': ^7.0.0++ '@babel/[email protected]':+ resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-b3ctpQwp+PROvU/cttc4OYl4MzfJUWy6FZg+PMXfzmt/+39iHVF0sDfqay8TQM3JA2EUOyKcFZt75jWriQijsA==}+ engines: {node: '>=6.0.0'}+ hasBin: true++ '@babel/[email protected]':+ resolution: {integrity: sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==}+ engines: {node: '>=6.9.0'}++ '@babel/[email protected]':+ resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==}+ engines: {node: '>=6.9.0'}++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==}++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==}++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==}++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-lhRUCeuOyJQURhTxl4WkpFTjIsbDayJHih5kZC1giwE+MhIzAb7mEsQMqMf18rHLsrb5qI1tafG20mLxEWcWlA==}+ engines: {node: '>=18'}+ cpu: [ppc64]+ os: [aix]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-+WzIXQOSaGs33tLEgYPYe/yQHf0WTU0X42Jca3y8NWMbUVhp7rUnw+vAsRC/QiDrdD31IszMrZy+qwPOPjd+rw==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-wqh0ByljabXLKHeWXYLqoJ5jKC4XBaw6Hk08OfMrCRd2nP2ZQ5eleDZC41XHyCNgktBGYMbqnrJKq/K/lzPMSQ==}+ engines: {node: '>=18'}+ cpu: [arm]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-+VJggoaKhk2VNNqVL7f6S189UzShHC/mR9EE8rDdSkdpN0KflSwWY/gWjDrNxxisg8Fp1ZCD9jLMo4m0OUfeUA==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-0T+A9WZm+bZ84nZBtk1ckYsOvyA3x7e2Acj1KdVfV4/2tdG4fzUp91YHx+GArWLtwqp77pBXVCPn2We7Letr0Q==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [darwin]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-fyzLm/DLDl/84OCfp2f/XQ4flmORsjU7VKt8HLjvIXChJoFFOIL6pLJPH4Yhd1n1gGFF9mPwtlN5Wf82DZs+LQ==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [darwin]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-l9GeW5UZBT9k9brBYI+0WDffcRxgHQD8ShN2Ur4xWq/NFzUKm3k5lsH4PdaRgb2w7mI9u61nr2gI2mLI27Nh3Q==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [freebsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-BXoQai/A0wPO6Es3yFJ7APCiKGc1tdAEOgeTNy3SsB491S3aHn4S4r3e976eUnPdU+NbdtmBuLncYir2tMU9Nw==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [freebsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-RVyzfb3FWsGA55n6WY0MEIEPURL1FcbhFE6BffZEMEekfCzCIMtB5yyDcFnVbTnwk+CLAgTujmV/Lgvih56W+A==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-CjaaREJagqJp7iTaNQjjidaNbCKYcd4IDkzbwwxtSvjI7NZm79qiHc8HqciMddQ6CKvJT6aBd8lO9kN/ZudLlw==}+ engines: {node: '>=18'}+ cpu: [arm]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-KBnSTt1kxl9x70q+ydterVdl+Cn0H18ngRMRCEQfrbqdUuntQQ0LoMZv47uB97NljZFzY6HcfqEZ2SAyIUTQBQ==}+ engines: {node: '>=18'}+ cpu: [ia32]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-zpSlUce1mnxzgBADvxKXX5sl8aYQHo2ezvMNI8I0lbblJtp8V4odlm3Yzlj7gPyt3T8ReksE6bK+pT3WD+aJRg==}+ engines: {node: '>=18'}+ cpu: [loong64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-2jIfP6mmjkdmeTlsX/9vmdmhBmKADrWqN7zcdtHIeNSCH1SqIoNI63cYsjQR8J+wGa4Y5izRcSHSm8K3QWmk3w==}+ engines: {node: '>=18'}+ cpu: [mips64el]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-bc0FE9wWeC0WBm49IQMPSPILRocGTQt3j5KPCA8os6VprfuJ7KD+5PzESSrJ6GmPIPJK965ZJHTUlSA6GNYEhg==}+ engines: {node: '>=18'}+ cpu: [ppc64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-SQPZOwoTTT/HXFXQJG/vBX8sOFagGqvZyXcgLA3NhIqcBv1BJU1d46c0rGcrij2B56Z2rNiSLaZOYW5cUk7yLQ==}+ engines: {node: '>=18'}+ cpu: [riscv64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-SCfR0HN8CEEjnYnySJTd2cw0k9OHB/YFzt5zgJEwa+wL/T/raGWYMBqwDNAC6dqFKmJYZoQBRfHjgwLHGSrn3Q==}+ engines: {node: '>=18'}+ cpu: [s390x]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-us0dSb9iFxIi8srnpl931Nvs65it/Jd2a2K3qs7fz2WfGPHqzfzZTfec7oxZJRNPXPnNYZtanmRc4AL/JwVzHQ==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-CR/RYotgtCKwtftMwJlUU7xCVNg3lMYZ0RzTmAHSfLCXw3NtZtNpswLEj/Kkf6kEL3Gw+BpOekRX0BYCtklhUw==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [netbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-nU1yhmYutL+fQ71Kxnhg8uEOdC0pwEW9entHykTgEbna2pw2dkbFSMeqjjyHZoCmt8SBkOSvV+yNmm94aUrrqw==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [netbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-cXb5vApOsRsxsEl4mcZ1XY3D4DzcoMxR/nnc4IyqYs0rTI8ZKmW6kyyg+11Z8yvgMfAEldKzP7AdP64HnSC/6g==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [openbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-8wZM2qqtv9UP3mzy7HiGYNH/zjTA355mpeuA+859TyR+e+Tc08IHYpLJuMsfpDJwoLo1ikIJI8jC3GFjnRClzA==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [openbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-FLGfyizszcef5C3YtoyQDACyg95+dndv79i2EekILBofh5wpCa1KuBqOWKrEHZg3zrL3t5ouE5jgr94vA+Wb2w==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [openharmony]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-1ZgjUoEdHZZl/YlV76TSCz9Hqj9h9YmMGAgAPYd+q4SicWNX3G5GCyx9uhQWSLcbvPW8Ni7lj4gDa1T40akdlw==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [sunos]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Q9StnDmQ/enxnpxCCLSg0oo4+34B9TdXpuyPeTedN/6+iXBJ4J+zwfQI28u/Jl40nOYAxGoNi7mFP40RUtkmUA==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [win32]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-zF3ag/gfiCe6U2iczcRzSYJKH1DCI+ByzSENHlM2FcDbEeo5Zd2C86Aq0tKUYAJJ1obRP84ymxIAksZUcdztHA==}+ engines: {node: '>=18'}+ cpu: [ia32]+ os: [win32]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-pEl1bO9mfAmIC+tW5btTmrKaujg3zGtUmWNdCw/xs70FBjwAL3o9OEKNHvNmnyylD6ubxUERiEhdsL0xBQ9efw==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [win32]++ '@eslint-community/[email protected]':+ resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}+ peerDependencies:+ eslint: ^6.0.0 || ^7.0.0 || >=8.0.0++ '@eslint-community/[email protected]':+ resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==}+ engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}++ '@eslint/[email protected]':+ resolution: {integrity: sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@eslint/[email protected]':+ resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@eslint/[email protected]':+ resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@eslint/[email protected]':+ resolution: {integrity: sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@eslint/[email protected]':+ resolution: {integrity: sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@eslint/[email protected]':+ resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@eslint/[email protected]':+ resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-1Ih4WTWyw0+lKyFMcBHGbb5U5FtuHJuujoyyr5zTaWS5EYMeT6Jb2AuDeftsCsEuchO+mM2ij5+q9crhydzLhQ==}++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==}++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-cC52bHwM/n/CxS87FH0yWdngEZrjdtLW/qVruo68qg+prK7ZQ4YGdut2GyDVpoGeAYe/h899rVeOVm6Oi40k2A==}+ peerDependencies:+ react: '>=16.8.0'+ react-dom: '>=16.8.0'++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==}++ '@humanfs/[email protected]':+ resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==}+ engines: {node: '>=18.18.0'}++ '@humanfs/[email protected]':+ resolution: {integrity: sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==}+ engines: {node: '>=18.18.0'}++ '@humanfs/[email protected]':+ resolution: {integrity: sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==}+ engines: {node: '>=18.18.0'}++ '@humanwhocodes/[email protected]':+ resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}+ engines: {node: '>=12.22'}++ '@humanwhocodes/[email protected]':+ resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}+ engines: {node: '>=18.18'}++ '@img/[email protected]':+ resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==}+ engines: {node: '>=18'}++ '@img/[email protected]':+ resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [darwin]++ '@img/[email protected]':+ resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [darwin]++ '@img/[email protected]':+ resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==}+ cpu: [arm64]+ os: [darwin]++ '@img/[email protected]':+ resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==}+ cpu: [x64]+ os: [darwin]++ '@img/[email protected]':+ resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==}+ cpu: [arm]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==}+ cpu: [ppc64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==}+ cpu: [riscv64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==}+ cpu: [s390x]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@img/[email protected]':+ resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@img/[email protected]':+ resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [ppc64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [riscv64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [s390x]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@img/[email protected]':+ resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@img/[email protected]':+ resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@img/[email protected]':+ resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [wasm32]++ '@img/[email protected]':+ resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [arm64]+ os: [win32]++ '@img/[email protected]':+ resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [ia32]+ os: [win32]++ '@img/[email protected]':+ resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}+ cpu: [x64]+ os: [win32]++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}+ engines: {node: '>=6.0.0'}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}++ '@jridgewell/[email protected]':+ resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==}++ '@next/[email protected]':+ resolution: {integrity: sha512-gd8HoHN4ufj73WmR3JmVolrpJR47ILK6LouP5xElPglaVxir6e1a7VzvTvDWkOoPXT9rkkTzyCxBu4yeZfZwcw==}++ '@next/[email protected]':+ resolution: {integrity: sha512-Z8l6o4JWKUl755x4R+wogD86KPeU+Ckw4K+SYG4kHeOJtRenDeK+OSbGcqZpDtbwn9DsJVdir2UxmwXuinUbUw==}++ '@next/[email protected]':+ resolution: {integrity: sha512-ZJGkkcNfYgrrMkqOdZ7zoLa1TOy0qpcMfk/z4Mh/FKUz40gVO+HNQWqmLxf67Z5WB64DRp0dhEbyHfel+6sJUg==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [darwin]++ '@next/[email protected]':+ resolution: {integrity: sha512-v/YLBHIY132Ced3puBJ7YJKw1lqsCrgcNo2aRJlCEyQrrCeRJlvGlnmxhPxNQI3KE3N1DN5r9TPNPvka3nq5RQ==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [darwin]++ '@next/[email protected]':+ resolution: {integrity: sha512-RPOvqlYBbcQjkz9VQQDZ2T2bARIjXZV1KFlt+V2Mr6SW/e4I9fcKsaA0hdyf2FHoTlsV2xnBd5Y912rP/1Ce6w==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@next/[email protected]':+ resolution: {integrity: sha512-URUTu1+dMkxJsPFgm+OeEvq9wf5sujw0EvgYy80TDGHTSLTnIHeqb0Eu8A3sC95IRgjejQL+kC4mw+4yPxiAXA==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@next/[email protected]':+ resolution: {integrity: sha512-DOj182mPV8G3UkrayLoREM5YEYI+Dk5wv7Ox9xl1fFibAELEsFD0lDPfHIeILlutMMfdyhlzYPELG3peuKaurw==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@next/[email protected]':+ resolution: {integrity: sha512-HKQ5SP/V/ub73UvF7n/zeJlxk2kLmtL7Wzrg4WfmkjmNos5onJ2tKu7yZOPdL18A6Svfn3max29ym+ry7NkK4g==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@next/[email protected]':+ resolution: {integrity: sha512-LZXpTlPyS5v7HhSmnvsLGP3iIYgYOBnc8r8ArlT55sGHV89bR2HlDdBjWQ+PY6SJMmk8TuVGFuxalnP3k/0Dwg==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [win32]++ '@next/[email protected]':+ resolution: {integrity: sha512-F0+4i0h9J6C4eE3EAPWsoCk7UW/dbzOjyzxY0qnDUOYFu6FFmdZ6l97/XdV3/Nz3VYyO7UWjyEJUXkGqcoXfMA==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [win32]++ '@nodelib/[email protected]':+ resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}+ engines: {node: '>= 8'}++ '@nodelib/[email protected]':+ resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}+ engines: {node: '>= 8'}++ '@nodelib/[email protected]':+ resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}+ engines: {node: '>= 8'}++ '@nolyfill/[email protected]':+ resolution: {integrity: sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==}+ engines: {node: '>=12.4.0'}++ '@opentelemetry/[email protected]':+ resolution: {integrity: sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==}+ engines: {node: '>=8.0.0'}++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==}++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==}++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-XM+E4WXl0OqUJFovy6GjmxxFyx9opfCAIUku4dlKRd5YEPqt4kALOkQOp0Of6reHuUkJuiPBEc5k0o4z4lTC8A==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-T4nygeh9YE9dLRPhAHSeOZi7HBXo+0kYIPJXayZfvWOWA0+n3dESrZbjfDPUABkUNym6Hd+f2IR113To8D2GPA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-oTVLkEw5GpdRe29BqJ0LSDFWI3qu0vR1M0mUkOQWDIUnY/QIkLpgDMWuKxP94c2NAC2LGcgVhG1ImF3jkZ5wXw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Yq6lvO9HQyPwev1onK1daHCHqXVLzPhSVjmsNjCa2Zcxy2f7uJD2itDtxknv6FzAKCwD1qQkeVDmX/cev13n/g==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Uu+mSh4agx2ib1uIGPP4/CKNULyajb3p92LsVXmH2EHVMTfZWpll88XJ0j4W0z3f8NK1eYl1+Mf/szHPmcHzyA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-O8morBEW+HsVG28gYDZPTrT9UUovQUlJue5YO836tiTJhuIWBm/zQHc7j388sHWtdH/xUZurK9olD2+pcqx5ww==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-QM70k4Zwjttifr5a4sZFts9fn8FzHYvQ5PiB19O2HsYibaHSVt9fH9rzB0XZo/YcM+b7t/p7lYCT/F5eOeF5yQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-qgTkjNT1CfKMoP0rcasmlH2r1DAiYicWsDsufxl940sT2wHNEWWv6FMWIQXWhVdmC1d/HYfbhQx60KYyAtKxjg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-EB1FktTz5xRRi2Er974AUQZWg2yVBb1yjip38/lgwtCVRd3a+maUoGHN/xs9Yv8SY8QwbSEb+YrxGadVWbEutA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-YB9mTFQvCOAQMHU+C/jVl96WmuWeltyUEpRJJky51huhds5W2FQr1J8D/16sQlf0ozxkPK8uF3niQMdUwZPv5w==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ycS4rbwURavDPVjCb5iS3aG4lURFDILi6sKI/WITUMZ13gMmn/xGjpLoqBAalhJaDk8I3UbCM5GzKHrnzwHbvg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-/UuCrDBWravcaMix4TdT+qlNdVwOM1Nck9kWx/vafXsdfj1ChfhOdfi3cy9SGBpWgTXwYCuboT/oYpJy3clqfw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-vPdg/tF6YC/ynuBIJlk1mm7Le0VgW6ub6J2UWnTQ7/D23KXcPI1qy+0vBkgKgd38RCMJavBXpB83HPNFMTb0Fg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-VBKYIYImA5zsxACdisNQ3BjCBfmbGH3kQlnFVqlWU4tXwjy7cGX8ta80BcrO+WJXIn5iBylEH3K6ZTlee//lgQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-tAXIa1g3sM5CGpVT0uIbUx/U3Gs5N8T52IICuCtObaos1S8fzsrPXG5WObkQN3S6NVl6wKgPhAIiBGbWnvc97A==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-JPYb1GuM1bxfjMRlNLE+BcmBC8onfCi60Blk7OBqi2MLTFdS+8401U4uFjnwkOr49BLmXxLC6JHkvAsx5OJvHw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Jl+bCv8HxKnlTLVrcDE8zTMJ09R9/ukw4qBs/oZClOfoQk/cOTbDn+NceXfV7j09YPVQUryJPHurafcSg6EVKA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-3OSz3TacUWy4WtOXV38DggwxoqJK4+eDkNMl5Z/MJZaoUPaP4/9lf81xXMe1I2ReTAptverZUpbPY4wWwWyL5g==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-5umnS0T8JQzQT6HbPyO7Hh9dgd82NmS36DQr+X/YJ9ctFNCiiQd6IJAYYZ33LUwm8M+taCz5t2ui29fHZc4Y6Q==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-4ol06/1bLoFu1nwUqzdD4Y5RZ9oDdKeiHIsntug54Hcr1pgaHiPqHFEaXI1IFP/EsOfROQZ8Mig9VTIRza6Tjg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==}++ '@rtsao/[email protected]':+ resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==}++ '@swc/[email protected]':+ resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==}++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==}++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [android]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [darwin]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-N6CUmu4a6bKVADfw77p+iw6Yd9Q3OBhe0veaDX+QazfuVYlQsHfDgxBrsjQ/IW+zywL8mTrNd0SdJT/zgtvMdA==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [darwin]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [freebsd]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==}+ engines: {node: '>= 20'}+ cpu: [arm]+ os: [linux]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==}+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]+ bundledDependencies:+ - '@napi-rs/wasm-runtime'+ - '@emnapi/core'+ - '@emnapi/runtime'+ - '@tybys/wasm-util'+ - '@emnapi/wasi-threads'+ - tslib++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==}+ engines: {node: '>= 20'}+ cpu: [arm64]+ os: [win32]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Mvrf2kXW/yeW/OTezZlCGOirXRcUuLIBx/5Y12BaPM7wJoryG6dfS/NJL8aBPqtTEx/Vm4T4vKzFUcKDT+TKUA==}+ engines: {node: '>= 20'}+ cpu: [x64]+ os: [win32]++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==}+ engines: {node: '>= 20'}++ '@tailwindcss/[email protected]':+ resolution: {integrity: sha512-Jm05Tjx+9yCLGv5qw1c+84Psds8MnyrEQYCB+FFk2lgGiUjlRqdxke4mVTuYrj2xnVZqKim2Apr5ySuQRYAw/w==}++ '@tybys/[email protected]':+ resolution: {integrity: sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==}++ '@types/[email protected]':+ resolution: {integrity: sha512-NMv9ASNARoKksWtsq/SHakpYAYnhBrQgGD8zkLYk/jaK8jUGn08CfEdTRgYhMypUQAfzSP8W6gNLe0q19/t4VA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-xFdR6tkm0MWvBfO8xXCSsinYxHcqkQUlcHeSpMC2ukzOb6lwQAfDmW+Qt0AvlGd8HpsS28qKsB+oPeJn9I39jg==}++ '@types/[email protected]':+ resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==}++ '@types/[email protected]':+ resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}++ '@types/[email protected]':+ resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}++ '@types/[email protected]':+ resolution: {integrity: sha512-dyh/xO2Fh5bYrfWaaqGrRQQGkNdmYw6AmaAUvYeUMNTWQtvb796ikLdmTchRmOlOiIJ1TDXfWgVx1QkUlQ6Hew==}++ '@types/[email protected]':+ resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==}+ peerDependencies:+ '@types/react': ^19.2.0++ '@types/[email protected]':+ resolution: {integrity: sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==}++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-PwFvSKsXGShKGW6n5bZOhGHEcCZXM8HofLK9fNsEwZXzFRjoY+XT1Vsf1zgyXdwTr0ZYz1/2tkZ0DBTT9jZjhw==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ '@typescript-eslint/parser': ^8.59.3+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-HPwA+hVkfcriajbNvTmZv4VRauibay+cWArYUYq7u7W7PmGShMxbPxLvrwDme55a6d5alG3nrYfhyJ/G28XlLg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-ECiUWa/KYRGDFUqTNehaRgzDshnJfkTABJxVemHk4ko22gcr0ukloKjWvyQ64g8YCV/UI47kN1dbmjf/GaQYng==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-t2LvZnoEfzKtnPjgeEu41xw5gxq9mQVfYy4OoZ4Vlt0sk3JwxmhCca/AR7DwOiHrjWgjAj6as4AhRLKSDfvZIA==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-PcIJHjmaREXLgIAIzLnSY9VucEzz8FKXsRgFa1DmdGCK/5tJpW03TKJF01Q6VZd1lLdz2sIKPWaDUZN9dp//dw==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-g71d8QD8UaiHGvrJwyIS1hCX5r63w6Jll+4VEYhEAHXTDIqX1JgxhTAbEHtKntL9kuc4jRo7/GWw5xfCepSccQ==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-ePFoH0g4ludssdRFqqDxQePCxU4WQyRa9+XVwjm7yLn0FKhMeoetC+qBEEI1Eyb1pGSDveTIT09Bvw2WhlGayg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-CbRjVRAf7Lr9Kr8RopKcbY45p2VfmmHrm0ygOCYFi7oU8q19m0Fs/6iHS7kNOmwpp+ob07ZVcAqlxUod9lYdmg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-JAvT14goBzRzzzZyqq3P9BLArIxTtQURUtFgQ/V7FO+eU+Gg6ES+5ymOPP1wRxXcxAYeivCk4uS3jCKWI1K8Zg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0+ typescript: '>=4.8.4 <6.1.0'++ '@typescript-eslint/[email protected]':+ resolution: {integrity: sha512-f1UQF7ggd42YiwI5wGrRaPsa+P0CINBlrkLPmGfpq/u/I/oVtecoEIfFR9ag/oa1sLOsRNZ6xehf6qMZhQGBDg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ '@unrs/[email protected]':+ resolution: {integrity: sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==}+ cpu: [arm]+ os: [android]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==}+ cpu: [arm64]+ os: [android]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==}+ cpu: [arm64]+ os: [darwin]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==}+ cpu: [x64]+ os: [darwin]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==}+ cpu: [x64]+ os: [freebsd]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==}+ cpu: [arm]+ os: [linux]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==}+ cpu: [arm]+ os: [linux]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==}+ cpu: [ppc64]+ os: [linux]+ libc: [glibc]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==}+ cpu: [riscv64]+ os: [linux]+ libc: [glibc]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==}+ cpu: [riscv64]+ os: [linux]+ libc: [musl]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==}+ cpu: [s390x]+ os: [linux]+ libc: [glibc]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==}+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==}+ cpu: [arm64]+ os: [win32]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==}+ cpu: [ia32]+ os: [win32]++ '@unrs/[email protected]':+ resolution: {integrity: sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==}+ cpu: [x64]+ os: [win32]++ resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}+ peerDependencies:+ acorn: ^6.0.0 || ^7.0.0 || ^8.0.0++ resolution: {integrity: sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==}+ engines: {node: '>=0.4.0'}+ hasBin: true++ resolution: {integrity: sha512-dIE2bfNpqHN3r6IINp9znguYdhIOheKW2LDigAMrgt/upT3B8eBGPSCblENvaZGoq+hxaN9fSMzjWpbqloP+7Q==}+ engines: {node: '>=18'}+ peerDependencies:+ react: ^18 || ^19 || ^19.0.0-rc+ zod: ^3.23.8+ peerDependenciesMeta:+ react:+ optional: true++ resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==}++ resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}++ resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==}++ resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-KunSNx+TVpkAw/6ULfhnx+HWRecjqZGTOyquAoWHYLRSdK1tB5Ihce1ZW+UY3fj33bYAFWPu7W/GRSmmrCGuxA==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}++ resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==}+ engines: {node: 18 || 20 || >=22}++ resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}++ resolution: {integrity: sha512-xjOFN16Ha1+Rz4nFYKqHU/LSB+gx/Vi3yQLX7r7sAW+Wa+8hhF2h4pvqTrTMc8+WcDBEunnUurr46Jvv0jk3Vg==}+ engines: {node: '>=6.0.0'}+ hasBin: true++ resolution: {integrity: sha512-CyzaZRQKyHkB2ZInfTTl2nvT33EbDpjkLEbE8/Zck3Ll6O0qqvuGdrJ45HgtH+HykRg88ITY3AdreBGN70aBSQ==}+ engines: {node: 20.x || 22.x || 23.x || 24.x || 25.x || 26.x}++ resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==}++ resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==}++ resolution: {integrity: sha512-MWPGfDxnyzKU7rNOW9SP/c50vi3xrmrua/+6hfPbCS2ABNWfx24vPidzvC7krjU/RTo235sV776ymlsMtGKj8g==}++ resolution: {integrity: sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==}+ engines: {node: 18 || 20 || >=22}++ resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==}+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}+ hasBin: true++ resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==}++ resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-iwSsYWaCOoh26cV8NwNRViHlrfUvYsHDfRVcbtmw0Kg6PJIZZXwMkj1442FYLBGkeUf1juAsU3DTfxW579mrPA==}++ resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==}+ engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}++ resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==}++ resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}++ resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}++ resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}+ engines: {node: '>=7.0.0'}++ resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}++ resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}++ resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}++ resolution: {integrity: sha512-oML4lKUXxizYswqmxuOCpgFS8BNUJpIu6k/2HVHyaL8Ynnf3wdf9tkns0yRdJLSIjkJ+b0DXHMZEHGpMwjnPww==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}++ resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==}++ resolution: {integrity: sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}+ peerDependencies:+ supports-color: '*'+ peerDependenciesMeta:+ supports-color:+ optional: true++ resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}+ engines: {node: '>=6.0'}+ peerDependencies:+ supports-color: '*'+ peerDependenciesMeta:+ supports-color:+ optional: true++ resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==}+ engines: {node: '>=4.0.0'}++ resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}++ resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-H9LMLr5zwIbSxrmvikGuI/5KGhZ8E2zH3stkMgM5LpOWDutGM2JZaj460Udnf1a+946zc7YBgrqEWwbk7zHvGw==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==}++ resolution: {integrity: sha512-IayShXAgj/QMXgB0IWmKx+rOPuGMhqm5w6jvFxmVenXKIzRqTAAsbBPT3kWQeGANj3jGgvcvv4yK6SxqYmikgw==}++ resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-NHlTIQDK8fmVwHwuIzmXYEJ1Ewq3D9wDNc0cWXxDGysP6Pb21giwGNkxiTifyKy/4SoPuN5l6GLP1W9Sv7zB2g==}++ resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}++ resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==}++ resolution: {integrity: sha512-QyL119InA+XXEkNLNTPCXPugSvOfhwv0JOlGNzvxs0hZaiHLNvXSpudUWsOlsXGWJh8G6ckCScEkVHfX3kw/2Q==}+ engines: {node: '>=10.13.0'}++ resolution: {integrity: sha512-2FpH9Q5i2RRwyEP1AylXe6nYLR5OhaJTZwmlcP0dL/+JCbgg7yyEo/sEK6HeGZRf3dFpWwThaRHVApXSkW3xeg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-HVLACW1TppGYjJ8H6/jqH/pqOtKRw6wMlrB23xfExmFWxFquAIWCmwoLsOyN96K4a5KbmOf5At9ZUO3GZbetAw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-sNR9MHpXSUV/XB4zmsFKN+QgVG82Cc7+/aaxJ8Adi8hyOac+EXptIp45QBPaVyX3N70664wRbTcLTOemCAnyqw==}+ engines: {node: '>=18'}+ hasBin: true++ resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-z2ELYSkyrrJ6cuunTU8vhsT/RpouPkjaSah06nVW6Rg2Hpg0Vs8s497/e5s8G8qtdp4ccsiovz5P1rv+5VSW2Q==}+ peerDependencies:+ eslint: '>=9.0.0'+ typescript: '>=3.3.1'+ peerDependenciesMeta:+ typescript:+ optional: true++ resolution: {integrity: sha512-tRrKqFyCaKict5hOd244sL6EQFNycnMQnBe+j8uqGNXYzsImGbGUU4ibtoaBmv5FLwJwcFJNeg1GeVjQfbMrDQ==}++ resolution: {integrity: sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==}+ engines: {node: ^14.18.0 || >=16.0.0}+ peerDependencies:+ eslint: '*'+ eslint-plugin-import: '*'+ eslint-plugin-import-x: '*'+ peerDependenciesMeta:+ eslint-plugin-import:+ optional: true+ eslint-plugin-import-x:+ optional: true++ resolution: {integrity: sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==}+ engines: {node: '>=4'}+ peerDependencies:+ '@typescript-eslint/parser': '*'+ eslint: '*'+ eslint-import-resolver-node: '*'+ eslint-import-resolver-typescript: '*'+ eslint-import-resolver-webpack: '*'+ peerDependenciesMeta:+ '@typescript-eslint/parser':+ optional: true+ eslint:+ optional: true+ eslint-import-resolver-node:+ optional: true+ eslint-import-resolver-typescript:+ optional: true+ eslint-import-resolver-webpack:+ optional: true++ resolution: {integrity: sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==}+ engines: {node: '>=4'}+ peerDependencies:+ '@typescript-eslint/parser': '*'+ eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9+ peerDependenciesMeta:+ '@typescript-eslint/parser':+ optional: true++ resolution: {integrity: sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==}+ engines: {node: '>=4.0'}+ peerDependencies:+ eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9++ resolution: {integrity: sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==}+ 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++ resolution: {integrity: sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==}+ engines: {node: '>=4'}+ peerDependencies:+ eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7++ resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}++ resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==}+ engines: {node: ^20.19.0 || ^22.13.0 || >=24}++ resolution: {integrity: sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ hasBin: true+ peerDependencies:+ jiti: '*'+ peerDependenciesMeta:+ jiti:+ optional: true++ resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}++ resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==}+ engines: {node: '>=0.10'}++ resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}+ engines: {node: '>=4.0'}++ resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}+ engines: {node: '>=4.0'}++ resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}++ resolution: {integrity: sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==}+ engines: {node: '>=8.6.0'}++ resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}++ resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}++ resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==}++ resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}+ engines: {node: '>=12.0.0'}+ peerDependencies:+ picomatch: ^3 || ^4+ peerDependenciesMeta:+ picomatch:+ optional: true++ resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}+ engines: {node: '>=16.0.0'}++ resolution: {integrity: sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==}++ resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}+ engines: {node: '>=16'}++ resolution: {integrity: sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==}++ resolution: {integrity: sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==}++ resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}+ os: [darwin]++ resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}++ resolution: {integrity: sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}++ resolution: {integrity: sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}+ engines: {node: '>=6.9.0'}++ resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==}++ resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==}++ resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}+ engines: {node: '>=10.13.0'}++ resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}++ resolution: {integrity: sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==}++ resolution: {integrity: sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==}++ resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==}++ resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}++ resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}+ engines: {node: '>= 4'}++ resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==}+ engines: {node: '>= 4'}++ resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}+ engines: {node: '>=0.8.19'}++ resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}++ resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==}++ resolution: {integrity: sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==}++ resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+ hasBin: true++ resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==}+ engines: {node: '>=14.16'}+ hasBin: true++ resolution: {integrity: sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}+ engines: {node: '>=0.12.0'}++ resolution: {integrity: sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==}+ engines: {node: '>=16'}++ resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==}++ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}++ resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==}+ hasBin: true++ resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}++ resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==}+ hasBin: true++ resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==}+ engines: {node: '>=6'}+ hasBin: true++ resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}++ resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}++ resolution: {integrity: sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==}++ resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}++ resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==}+ hasBin: true++ resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}+ engines: {node: '>=6'}+ hasBin: true++ resolution: {integrity: sha512-3QItJOXp2AP1uv7waBkao5nCvhEv+QmJAd38Ybq7wNI74Q+BBmnLn4EDKz6yI9xGAIQoUF87qHt+kc1IVxB4zQ==}+ engines: {node: ^18.0.0 || >=20.0.0}+ hasBin: true++ resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==}+ engines: {node: '>=4.0'}++ resolution: {integrity: sha512-VPD8mtVtm5JNtA2AErl6Chp06JBfy7diFQ7TQQhdpWOl6MrCRB+eRbvAZUsbGQS9kiMq0coJsy0W0vHpDCkWsQ==}++ resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}++ resolution: {integrity: sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==}++ resolution: {integrity: sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==}+ engines: {node: '>=0.10'}++ resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}+ engines: {node: '>= 0.8.0'}++ resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [android]++ resolution: {integrity: sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [darwin]++ resolution: {integrity: sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [darwin]++ resolution: {integrity: sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [freebsd]++ resolution: {integrity: sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm]+ os: [linux]++ resolution: {integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ resolution: {integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==}+ engines: {node: '>= 12.0.0'}+ cpu: [arm64]+ os: [win32]++ resolution: {integrity: sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==}+ engines: {node: '>= 12.0.0'}+ cpu: [x64]+ os: [win32]++ resolution: {integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==}+ engines: {node: '>= 12.0.0'}++ resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}++ resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}+ hasBin: true++ resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}++ resolution: {integrity: sha512-BVtq/DykVeIvRTJvRAgCsOwaGL8Un3Bxh8MbDxMhEWlZay3T4IpEKDEpwt5KZ0KJMHzgm6jrltxlT5eXOWXDHg==}+ peerDependencies:+ react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc++ resolution: {integrity: sha512-vtEhXh/gNjI9Yg1u4jX/0YVPMvxzHuGgCm6tC5kZyb08yjGWGnqAjGJvcXbqQR2P3MyMEFnRbpcdFS6PBcLqew==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}++ resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}+ engines: {node: '>= 8'}++ resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==}+ engines: {node: '>=8.6'}++ resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==}+ engines: {node: 18 || 20 || >=22}++ resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==}++ resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}++ resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==}++ resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}++ resolution: {integrity: sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==}+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}+ hasBin: true++ resolution: {integrity: sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==}++ resolution: {integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==}+ engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}+ hasBin: true++ resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}++ resolution: {integrity: sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==}+ peerDependencies:+ react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc+ react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc++ resolution: {integrity: sha512-qOVgKJg1+At15NpeUP+eJgCHvTCgXsogweq87Ri/Ix7PkqQHg4sdaXmSFqKlgaIXE4kW0g25LE68W87UANlHtw==}+ engines: {node: '>=20.9.0'}+ hasBin: true+ 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++ resolution: {integrity: sha512-KdHvFWZjEKDf0cakgFjebl371GPsISX2oZHcuyKqM7DtogIsHrqKeLTo8wBHxaXRAQlY2PsPlZmfo+9ZCxEREQ==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==}++ resolution: {integrity: sha512-pyFS63ptit/P5WqUkt+UUfe+4oevH+bFeIiPPdfb0pFeYEu/1ELnJu5l+5EcTKYL5M7zaAa7S8ddywgXypqKCw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-5WUyunoPMsvvEhS8AxHtRzP+oA8UCkJ7YRxatWKjngndhDGLiqEVAQKWjFAiAiuL8zMRGzGSJxFnLetoa43qGQ==}++ resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}++ resolution: {integrity: sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}+ engines: {node: '>= 0.8.0'}++ resolution: {integrity: sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}++ resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}++ resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==}+ engines: {node: '>=8.6'}++ resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==}+ engines: {node: '>=12'}++ resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}+ engines: {node: ^10 || ^12 || >=14}++ resolution: {integrity: sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==}+ engines: {node: ^10 || ^12 || >=14}++ resolution: {integrity: sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==}+ engines: {node: '>=10'}+ deprecated: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.+ hasBin: true++ resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}+ engines: {node: '>= 0.8.0'}++ resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==}++ resolution: {integrity: sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==}++ resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}++ resolution: {integrity: sha512-aWizCQiyeAenIdUbqEpXgRA1ya65P13NKn/W8rWkcN0OPkRDxdBVLWnIEDsS2RpwCK2nobI7oMUSmexzTDyAmA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}+ hasBin: true++ resolution: {integrity: sha512-0prMI+hvBbPjsWnxDLxlCGyM8PN6UuWjEUCYmZhO67xIV9Xasa/r/vDnq+Xyq4Lo27g8QSbO5YzARu0D1Sps3g==}+ peerDependencies:+ react: ^19.2.6++ resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}++ resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-sfWGGfavi0xr8Pg0sVsyHMAOziVYKgPLNrS7ig+ivMNb3wbCBw3KxtflsGBAwD3gYQlE/AEZsTLgToRrSCjb0Q==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}+ engines: {node: '>= 6'}++ resolution: {integrity: sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}++ resolution: {integrity: sha512-tqt+NBWwyaMgw3zDsnygx4CByWjQEJHOPMdslYhppaQSJUtL/D4JO9CcBBlhPoI8lz9oJIDXkwXfhF4aWqP8xQ==}+ engines: {node: '>= 0.4'}+ hasBin: true++ resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==}+ engines: {iojs: '>=1.0.0', node: '>=0.10.0'}++ resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}++ resolution: {integrity: sha512-wtZlHyOje6OZTGqAoaDKxFkgRtkF9CnHAVnCHKfuj200wAgL+bSJhdsCD2l0Qx/2ekEXjPWcyKkfGb5CPboslg==}+ engines: {node: '>=0.4'}++ resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}++ resolution: {integrity: sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==}++ resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==}++ resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}+ hasBin: true++ resolution: {integrity: sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==}+ engines: {node: '>=10'}+ hasBin: true++ resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==}+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}++ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==}++ resolution: {integrity: sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==}++ resolution: {integrity: sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==}+ peerDependencies:+ react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc++ resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==}++ resolution: {integrity: sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==}++ resolution: {integrity: sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}++ resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==}+ engines: {node: '>= 12.0.0'}+ peerDependencies:+ '@babel/core': '*'+ babel-plugin-macros: '*'+ 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++ resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-2CC6CiKQtEwaEeNiqWTAw9PGykW8SR5zZX8MZk6TeAvEAnVS7Visz8WzphqgtQ8v2xz/4Q5K+j+SeMaKXeeQIA==}+ peerDependencies:+ react: ^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0++ resolution: {integrity: sha512-Oo6tHdpZsGpkKG88HJ8RR1rg/RdnEkQEfMoEk2x1XRI3F1AxeU+ijRXpiVUF4UbLfcxxRGw6TbUINKYdWVsQTQ==}++ resolution: {integrity: sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==}++ resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==}++ resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==}+ engines: {node: '>=6'}++ resolution: {integrity: sha512-nt6AMGKW1p/70DF/hGBdJB57B8Tspmbp5gfJ8ilhLnt7kkr2ye7hzD6NVG8GGErk2HWF34igrL2CXmNIkzKqKw==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==}+ engines: {node: '>=12.0.0'}++ resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}+ engines: {node: '>=8.0'}++ resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==}+ engines: {node: '>=18.12'}+ peerDependencies:+ typescript: '>=4.8.4'++ resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==}++ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}++ resolution: {integrity: sha512-TvncJykhxAzFCk0VQZKBTClall4Pm7qXDSodb6uxi8QFa8X8mT6ABjxxsQ2opDRYxG7AzcRWXaFtruz5HJKuWg==}+ engines: {node: '>=18.0.0'}+ hasBin: true++ resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==}++ resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}+ engines: {node: '>= 0.8.0'}++ resolution: {integrity: sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-KgusgyDgG4LI8Ih/sWaCtZ06tckLAS5CvT5A4D1Q7bYVoAAyzwiZvE4BmwDHkhRVkvhRBepKeASoFzQetha7Fg==}+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}+ peerDependencies:+ eslint: ^8.57.0 || ^9.0.0 || ^10.0.0+ typescript: '>=4.8.4 <6.1.0'++ resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}+ engines: {node: '>=14.17'}+ hasBin: true++ resolution: {integrity: sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}++ resolution: {integrity: sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==}++ resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==}+ hasBin: true+ peerDependencies:+ browserslist: '>= 4.21.0'++ resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}++ resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0++ resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}++ resolution: {integrity: sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg==}+ engines: {node: '>= 0.4'}++ resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}+ engines: {node: '>= 8'}+ hasBin: true++ resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}++ resolution: {integrity: sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}++ resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}+ engines: {node: '>=10'}++ resolution: {integrity: sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==}+ peerDependencies:+ zod: ^3.25.28 || ^4++ resolution: {integrity: sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==}+ engines: {node: '>=18.0.0'}+ peerDependencies:+ zod: ^3.25.0 || ^4.0.0++ resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}++snapshots:++ '@ai-sdk/[email protected]([email protected])':+ dependencies:+ '@ai-sdk/provider': 1.1.3+ '@ai-sdk/provider-utils': 2.2.8([email protected])+ zod: 3.25.76++ '@ai-sdk/[email protected]([email protected])':+ dependencies:+ '@ai-sdk/provider': 1.1.3+ '@ai-sdk/provider-utils': 2.2.8([email protected])+ zod: 3.25.76++ '@ai-sdk/[email protected]([email protected])':+ dependencies:+ '@ai-sdk/provider': 1.1.3+ nanoid: 3.3.12+ secure-json-parse: 2.7.0+ zod: 3.25.76++ '@ai-sdk/[email protected]':+ dependencies:+ json-schema: 0.4.0++ dependencies:+ '@ai-sdk/provider-utils': 2.2.8([email protected])+ '@ai-sdk/ui-utils': 1.2.11([email protected])+ react: 19.2.6+ swr: 2.4.1([email protected])+ throttleit: 2.1.0+ optionalDependencies:+ zod: 3.25.76++ '@ai-sdk/[email protected]([email protected])':+ dependencies:+ '@ai-sdk/provider': 1.1.3+ '@ai-sdk/provider-utils': 2.2.8([email protected])+ zod: 3.25.76+ zod-to-json-schema: 3.25.2([email protected])++ '@alloc/[email protected]': {}++ '@babel/[email protected]':+ dependencies:+ '@babel/helper-validator-identifier': 7.28.5+ js-tokens: 4.0.0+ picocolors: 1.1.1++ '@babel/[email protected]': {}++ '@babel/[email protected]':+ dependencies:+ '@babel/code-frame': 7.29.0+ '@babel/generator': 7.29.1+ '@babel/helper-compilation-targets': 7.28.6+ '@babel/helper-module-transforms': 7.28.6(@babel/[email protected])+ '@babel/helpers': 7.29.2+ '@babel/parser': 7.29.3+ '@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.4.3+ gensync: 1.0.0-beta.2+ json5: 2.2.3+ semver: 6.3.1+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@babel/parser': 7.29.3+ '@babel/types': 7.29.0+ '@jridgewell/gen-mapping': 0.3.13+ '@jridgewell/trace-mapping': 0.3.31+ jsesc: 3.1.0++ '@babel/[email protected]':+ dependencies:+ '@babel/compat-data': 7.29.3+ '@babel/helper-validator-option': 7.27.1+ browserslist: 4.28.2+ lru-cache: 5.1.1+ semver: 6.3.1++ '@babel/[email protected]': {}++ '@babel/[email protected]':+ dependencies:+ '@babel/traverse': 7.29.0+ '@babel/types': 7.29.0+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected](@babel/[email protected])':+ dependencies:+ '@babel/core': 7.29.0+ '@babel/helper-module-imports': 7.28.6+ '@babel/helper-validator-identifier': 7.28.5+ '@babel/traverse': 7.29.0+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]': {}++ '@babel/[email protected]': {}++ '@babel/[email protected]': {}++ '@babel/[email protected]':+ dependencies:+ '@babel/template': 7.28.6+ '@babel/types': 7.29.0++ '@babel/[email protected]':+ dependencies:+ '@babel/types': 7.29.0++ '@babel/[email protected]':+ dependencies:+ '@babel/code-frame': 7.29.0+ '@babel/parser': 7.29.3+ '@babel/types': 7.29.0++ '@babel/[email protected]':+ dependencies:+ '@babel/code-frame': 7.29.0+ '@babel/generator': 7.29.1+ '@babel/helper-globals': 7.28.0+ '@babel/parser': 7.29.3+ '@babel/template': 7.28.6+ '@babel/types': 7.29.0+ debug: 4.4.3+ transitivePeerDependencies:+ - supports-color++ '@babel/[email protected]':+ dependencies:+ '@babel/helper-string-parser': 7.27.1+ '@babel/helper-validator-identifier': 7.28.5++ '@emnapi/[email protected]':+ dependencies:+ '@emnapi/wasi-threads': 1.2.1+ tslib: 2.8.1+ optional: true++ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ dependencies:+ eslint: 9.39.4([email protected])+ eslint-visitor-keys: 3.4.3++ '@eslint-community/[email protected]': {}++ '@eslint/[email protected]':+ dependencies:+ '@eslint/object-schema': 2.1.7+ debug: 4.4.3+ minimatch: 3.1.5+ transitivePeerDependencies:+ - supports-color++ '@eslint/[email protected]':+ dependencies:+ '@eslint/core': 0.17.0++ '@eslint/[email protected]':+ dependencies:+ '@types/json-schema': 7.0.15++ '@eslint/[email protected]':+ dependencies:+ ajv: 6.15.0+ debug: 4.4.3+ espree: 10.4.0+ globals: 14.0.0+ ignore: 5.3.2+ import-fresh: 3.3.1+ js-yaml: 4.1.1+ minimatch: 3.1.5+ strip-json-comments: 3.1.1+ transitivePeerDependencies:+ - supports-color++ '@eslint/[email protected]': {}++ '@eslint/[email protected]': {}++ '@eslint/[email protected]':+ dependencies:+ '@eslint/core': 0.17.0+ levn: 0.4.1++ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/utils': 0.2.11++ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/core': 1.7.5+ '@floating-ui/utils': 0.2.11++ dependencies:+ '@floating-ui/dom': 1.7.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])++ '@floating-ui/[email protected]': {}++ '@humanfs/[email protected]':+ dependencies:+ '@humanfs/types': 0.15.0++ '@humanfs/[email protected]':+ dependencies:+ '@humanfs/core': 0.19.2+ '@humanfs/types': 0.15.0+ '@humanwhocodes/retry': 0.4.3++ '@humanfs/[email protected]': {}++ '@humanwhocodes/[email protected]': {}++ '@humanwhocodes/[email protected]': {}++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-darwin-arm64': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-darwin-x64': 1.2.4+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-arm64': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-arm': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-ppc64': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-riscv64': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-s390x': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linux-x64': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linuxmusl-arm64': 1.2.4+ optional: true++ '@img/[email protected]':+ optionalDependencies:+ '@img/sharp-libvips-linuxmusl-x64': 1.2.4+ optional: true++ '@img/[email protected]':+ dependencies:+ '@emnapi/runtime': 1.10.0+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@img/[email protected]':+ optional: true++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/sourcemap-codec': 1.5.5+ '@jridgewell/trace-mapping': 0.3.31++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/gen-mapping': 0.3.13+ '@jridgewell/trace-mapping': 0.3.31++ '@jridgewell/[email protected]': {}++ '@jridgewell/[email protected]': {}++ '@jridgewell/[email protected]':+ dependencies:+ '@jridgewell/resolve-uri': 3.1.2+ '@jridgewell/sourcemap-codec': 1.5.5++ '@napi-rs/[email protected]':+ dependencies:+ '@emnapi/core': 1.10.0+ '@emnapi/runtime': 1.10.0+ '@tybys/wasm-util': 0.10.2+ optional: true++ '@next/[email protected]': {}++ '@next/[email protected]':+ dependencies:+ fast-glob: 3.3.1++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@next/[email protected]':+ optional: true++ '@nodelib/[email protected]':+ dependencies:+ '@nodelib/fs.stat': 2.0.5+ run-parallel: 1.2.0++ '@nodelib/[email protected]': {}++ '@nodelib/[email protected]':+ dependencies:+ '@nodelib/fs.scandir': 2.1.5+ fastq: 1.20.1++ '@nolyfill/[email protected]': {}++ '@opentelemetry/[email protected]': {}++ '@radix-ui/[email protected]': {}++ '@radix-ui/[email protected]': {}++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collapsible': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-label': 2.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-arrow': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/rect': 1.1.1+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ aria-hidden: 1.2.6+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-separator': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle-group': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ use-sync-external-store: 1.6.0([email protected])+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/rect': 1.1.1+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 19.2.6+ optionalDependencies:+ '@types/react': 19.2.14++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected]': {}++ '@rtsao/[email protected]': {}++ '@swc/[email protected]':+ dependencies:+ tslib: 2.8.1++ '@tailwindcss/[email protected]':+ dependencies:+ '@jridgewell/remapping': 2.3.5+ enhanced-resolve: 5.21.3+ jiti: 2.7.0+ lightningcss: 1.32.0+ magic-string: 0.30.21+ source-map-js: 1.2.1+ tailwindcss: 4.3.0++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optional: true++ '@tailwindcss/[email protected]':+ optionalDependencies:+ '@tailwindcss/oxide-android-arm64': 4.3.0+ '@tailwindcss/oxide-darwin-arm64': 4.3.0+ '@tailwindcss/oxide-darwin-x64': 4.3.0+ '@tailwindcss/oxide-freebsd-x64': 4.3.0+ '@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.0+ '@tailwindcss/oxide-linux-arm64-gnu': 4.3.0+ '@tailwindcss/oxide-linux-arm64-musl': 4.3.0+ '@tailwindcss/oxide-linux-x64-gnu': 4.3.0+ '@tailwindcss/oxide-linux-x64-musl': 4.3.0+ '@tailwindcss/oxide-wasm32-wasi': 4.3.0+ '@tailwindcss/oxide-win32-arm64-msvc': 4.3.0+ '@tailwindcss/oxide-win32-x64-msvc': 4.3.0++ '@tailwindcss/[email protected]':+ dependencies:+ '@alloc/quick-lru': 5.2.0+ '@tailwindcss/node': 4.3.0+ '@tailwindcss/oxide': 4.3.0+ postcss: 8.5.14+ tailwindcss: 4.3.0++ '@tybys/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ '@types/[email protected]':+ dependencies:+ '@types/node': 22.19.19++ '@types/[email protected]': {}++ '@types/[email protected]': {}++ '@types/[email protected]': {}++ '@types/[email protected]': {}++ '@types/[email protected]':+ dependencies:+ undici-types: 6.21.0++ '@types/[email protected](@types/[email protected])':+ dependencies:+ '@types/react': 19.2.14++ '@types/[email protected]':+ dependencies:+ csstype: 3.2.3++ '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':+ dependencies:+ '@eslint-community/regexpp': 4.12.2+ '@typescript-eslint/scope-manager': 8.59.3+ '@typescript-eslint/visitor-keys': 8.59.3+ eslint: 9.39.4([email protected])+ ignore: 7.0.5+ natural-compare: 1.4.0+ ts-api-utils: 2.5.0([email protected])+ typescript: 5.9.3+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@typescript-eslint/scope-manager': 8.59.3+ '@typescript-eslint/types': 8.59.3+ '@typescript-eslint/typescript-estree': 8.59.3([email protected])+ '@typescript-eslint/visitor-keys': 8.59.3+ debug: 4.4.3+ eslint: 9.39.4([email protected])+ typescript: 5.9.3+ transitivePeerDependencies:+ - supports-color++ '@typescript-eslint/[email protected]([email protected])':+ dependencies:+ '@typescript-eslint/tsconfig-utils': 8.59.3([email protected])+ '@typescript-eslint/types': 8.59.3+ debug: 4.4.3+ typescript: 5.9.3+ transitivePeerDependencies:+ - supports-color++ '@typescript-eslint/[email protected]':+ dependencies:+ '@typescript-eslint/types': 8.59.3+ '@typescript-eslint/visitor-keys': 8.59.3++ '@typescript-eslint/[email protected]([email protected])':+ dependencies:+ typescript: 5.9.3++ dependencies:+ '@typescript-eslint/types': 8.59.3+ '@typescript-eslint/typescript-estree': 8.59.3([email protected])+ debug: 4.4.3+ eslint: 9.39.4([email protected])+ ts-api-utils: 2.5.0([email protected])+ typescript: 5.9.3+ transitivePeerDependencies:+ - supports-color++ '@typescript-eslint/[email protected]': {}++ '@typescript-eslint/[email protected]([email protected])':+ dependencies:+ '@typescript-eslint/project-service': 8.59.3([email protected])+ '@typescript-eslint/tsconfig-utils': 8.59.3([email protected])+ '@typescript-eslint/types': 8.59.3+ '@typescript-eslint/visitor-keys': 8.59.3+ debug: 4.4.3+ minimatch: 10.2.5+ semver: 7.8.0+ tinyglobby: 0.2.16+ ts-api-utils: 2.5.0([email protected])+ typescript: 5.9.3+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))+ '@typescript-eslint/scope-manager': 8.59.3+ '@typescript-eslint/types': 8.59.3+ '@typescript-eslint/typescript-estree': 8.59.3([email protected])+ eslint: 9.39.4([email protected])+ typescript: 5.9.3+ transitivePeerDependencies:+ - supports-color++ '@typescript-eslint/[email protected]':+ dependencies:+ '@typescript-eslint/types': 8.59.3+ eslint-visitor-keys: 5.0.1++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ dependencies:+ '@napi-rs/wasm-runtime': 0.2.12+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ '@unrs/[email protected]':+ optional: true++ dependencies:+ acorn: 8.16.0++ [email protected]: {}++ dependencies:+ '@ai-sdk/provider': 1.1.3+ '@ai-sdk/provider-utils': 2.2.8([email protected])+ '@ai-sdk/react': 1.2.12([email protected])([email protected])+ '@ai-sdk/ui-utils': 1.2.11([email protected])+ '@opentelemetry/api': 1.9.0+ jsondiffpatch: 0.6.0+ zod: 3.25.76+ optionalDependencies:+ react: 19.2.6++ dependencies:+ fast-deep-equal: 3.1.3+ fast-json-stable-stringify: 2.1.0+ json-schema-traverse: 0.4.1+ uri-js: 4.4.1++ dependencies:+ color-convert: 2.0.1++ [email protected]: {}++ dependencies:+ tslib: 2.8.1++ [email protected]: {}++ dependencies:+ call-bound: 1.0.4+ is-array-buffer: 3.0.5++ dependencies:+ call-bind: 1.0.9+ call-bound: 1.0.4+ define-properties: 1.2.1+ es-abstract: 1.24.2+ es-object-atoms: 1.1.1+ get-intrinsic: 1.3.0+ is-string: 1.1.1+ math-intrinsics: 1.1.0++ dependencies:+ call-bind: 1.0.9+ define-properties: 1.2.1+ es-abstract: 1.24.2+ es-errors: 1.3.0+ es-object-atoms: 1.1.1+ es-shim-unscopables: 1.1.0++ 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-object-atoms: 1.1.1+ es-shim-unscopables: 1.1.0++ dependencies:+ call-bind: 1.0.9+ define-properties: 1.2.1+ es-abstract: 1.24.2+ es-shim-unscopables: 1.1.0++ dependencies:+ call-bind: 1.0.9+ define-properties: 1.2.1+ es-abstract: 1.24.2+ es-shim-unscopables: 1.1.0++ dependencies:+ call-bind: 1.0.9+ define-properties: 1.2.1+ es-abstract: 1.24.2+ es-errors: 1.3.0+ es-shim-unscopables: 1.1.0++ dependencies:+ array-buffer-byte-length: 1.0.2+ call-bind: 1.0.9+ define-properties: 1.2.1+ es-abstract: 1.24.2+ es-errors: 1.3.0+ get-intrinsic: 1.3.0+ is-array-buffer: 3.0.5++ [email protected]: {}++ [email protected]: {}++ dependencies:+ possible-typed-array-names: 1.1.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ bindings: 1.5.0+ prebuild-install: 7.1.3++ dependencies:+ file-uri-to-path: 1.0.0++ dependencies:+ buffer: 5.7.1+ inherits: 2.0.4+ readable-stream: 3.6.2++ dependencies:+ balanced-match: 1.0.2+ concat-map: 0.0.1++ dependencies:+ balanced-match: 4.0.4++ dependencies:+ fill-range: 7.1.1++ dependencies:+ baseline-browser-mapping: 2.10.30+ caniuse-lite: 1.0.30001793+ electron-to-chromium: 1.5.357+ node-releases: 2.0.44+ update-browserslist-db: 1.2.3([email protected])++ dependencies:+ base64-js: 1.5.1+ ieee754: 1.2.1++ dependencies:+ run-applescript: 7.1.0++ dependencies:+ es-errors: 1.3.0+ function-bind: 1.1.2++ 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++ dependencies:+ call-bind-apply-helpers: 1.0.2+ get-intrinsic: 1.3.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ ansi-styles: 4.3.0+ supports-color: 7.2.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ clsx: 2.1.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ color-name: 1.1.4++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ luxon: 3.7.2++ dependencies:+ path-key: 3.1.1+ shebang-command: 2.0.0+ which: 2.0.2++ [email protected]: {}++ [email protected]: {}++ dependencies:+ call-bound: 1.0.4+ es-errors: 1.3.0+ is-data-view: 1.0.2++ dependencies:+ call-bound: 1.0.4+ es-errors: 1.3.0+ is-data-view: 1.0.2++ dependencies:+ call-bound: 1.0.4+ es-errors: 1.3.0+ is-data-view: 1.0.2++ dependencies:+ ms: 2.1.3++ dependencies:+ ms: 2.1.3++ dependencies:+ mimic-response: 3.1.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ bundle-name: 4.1.0+ default-browser-id: 5.0.1++ dependencies:+ es-define-property: 1.0.1+ es-errors: 1.3.0+ gopd: 1.2.0++ [email protected]: {}++ dependencies:+ define-data-property: 1.1.4+ has-property-descriptors: 1.0.2+ object-keys: 1.1.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ esutils: 2.0.3++ dependencies:+ call-bind-apply-helpers: 1.0.2+ es-errors: 1.3.0+ gopd: 1.2.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ once: 1.4.0++ dependencies:+ graceful-fs: 4.2.11+ tapable: 2.3.3++ dependencies:+ array-buffer-byte-length: 1.0.2+ arraybuffer.prototype.slice: 1.0.4+ available-typed-arrays: 1.0.7+ call-bind: 1.0.9+ 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.3+ 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.4+ 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.20++ [email protected]: {}++ [email protected]: {}++ 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++ dependencies:+ es-errors: 1.3.0++ dependencies:+ es-errors: 1.3.0+ get-intrinsic: 1.3.0+ has-tostringtag: 1.0.2+ hasown: 2.0.3++ dependencies:+ hasown: 2.0.3++ dependencies:+ is-callable: 1.2.7+ is-date-object: 1.1.0+ is-symbol: 1.1.1++ optionalDependencies:+ '@esbuild/aix-ppc64': 0.28.0+ '@esbuild/android-arm': 0.28.0+ '@esbuild/android-arm64': 0.28.0+ '@esbuild/android-x64': 0.28.0+ '@esbuild/darwin-arm64': 0.28.0+ '@esbuild/darwin-x64': 0.28.0+ '@esbuild/freebsd-arm64': 0.28.0+ '@esbuild/freebsd-x64': 0.28.0+ '@esbuild/linux-arm': 0.28.0+ '@esbuild/linux-arm64': 0.28.0+ '@esbuild/linux-ia32': 0.28.0+ '@esbuild/linux-loong64': 0.28.0+ '@esbuild/linux-mips64el': 0.28.0+ '@esbuild/linux-ppc64': 0.28.0+ '@esbuild/linux-riscv64': 0.28.0+ '@esbuild/linux-s390x': 0.28.0+ '@esbuild/linux-x64': 0.28.0+ '@esbuild/netbsd-arm64': 0.28.0+ '@esbuild/netbsd-x64': 0.28.0+ '@esbuild/openbsd-arm64': 0.28.0+ '@esbuild/openbsd-x64': 0.28.0+ '@esbuild/openharmony-arm64': 0.28.0+ '@esbuild/sunos-x64': 0.28.0+ '@esbuild/win32-arm64': 0.28.0+ '@esbuild/win32-ia32': 0.28.0+ '@esbuild/win32-x64': 0.28.0++ [email protected]: {}++ [email protected]: {}++ [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ dependencies:+ '@next/eslint-plugin-next': 16.2.6+ eslint: 9.39.4([email protected])+ eslint-import-resolver-node: 0.3.10+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))+ eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))+ eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))+ eslint-plugin-react: 7.37.5([email protected]([email protected]))+ eslint-plugin-react-hooks: 7.1.1([email protected]([email protected]))+ globals: 16.4.0+ optionalDependencies:+ typescript: 5.9.3+ transitivePeerDependencies:+ - '@typescript-eslint/parser'+ - eslint-import-resolver-webpack+ - eslint-plugin-import-x+ - supports-color++ dependencies:+ debug: 3.2.7+ is-core-module: 2.16.2+ resolve: 2.0.0-next.7+ transitivePeerDependencies:+ - supports-color++ dependencies:+ '@nolyfill/is-core-module': 1.0.39+ debug: 4.4.3+ eslint: 9.39.4([email protected])+ get-tsconfig: 4.14.0+ is-bun-module: 2.0.0+ stable-hash: 0.0.5+ tinyglobby: 0.2.16+ unrs-resolver: 1.11.1+ optionalDependencies:+ eslint-plugin-import: 2.32.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))+ transitivePeerDependencies:+ - supports-color++ [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected]([email protected])):+ dependencies:+ debug: 3.2.7+ optionalDependencies:+ eslint: 9.39.4([email protected])+ eslint-import-resolver-node: 0.3.10+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))+ transitivePeerDependencies:+ - supports-color++ [email protected](@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected])):+ 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: 9.39.4([email protected])+ eslint-import-resolver-node: 0.3.10+ eslint-module-utils: 2.12.1(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected])([email protected])([email protected]([email protected]))+ hasown: 2.0.3+ is-core-module: 2.16.2+ is-glob: 4.0.3+ minimatch: 3.1.5+ 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+ optionalDependencies:+ transitivePeerDependencies:+ - eslint-import-resolver-typescript+ - eslint-import-resolver-webpack+ - supports-color++ dependencies:+ aria-query: 5.3.2+ array-includes: 3.1.9+ array.prototype.flatmap: 1.3.3+ ast-types-flow: 0.0.8+ axe-core: 4.11.4+ axobject-query: 4.1.0+ damerau-levenshtein: 1.0.8+ emoji-regex: 9.2.2+ eslint: 9.39.4([email protected])+ hasown: 2.0.3+ jsx-ast-utils: 3.3.5+ language-tags: 1.0.9+ minimatch: 3.1.5+ object.fromentries: 2.0.8+ safe-regex-test: 1.1.0+ string.prototype.includes: 2.0.1++ dependencies:+ '@babel/core': 7.29.0+ '@babel/parser': 7.29.3+ eslint: 9.39.4([email protected])+ hermes-parser: 0.25.1+ zod: 3.25.76+ zod-validation-error: 4.0.2([email protected])+ transitivePeerDependencies:+ - supports-color++ dependencies:+ array-includes: 3.1.9+ 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.3.2+ eslint: 9.39.4([email protected])+ estraverse: 5.3.0+ hasown: 2.0.3+ jsx-ast-utils: 3.3.5+ minimatch: 3.1.5+ 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.7+ semver: 6.3.1+ string.prototype.matchall: 4.0.12+ string.prototype.repeat: 1.0.0++ dependencies:+ esrecurse: 4.3.0+ estraverse: 5.3.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))+ '@eslint-community/regexpp': 4.12.2+ '@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.8+ '@humanwhocodes/module-importer': 1.0.1+ '@humanwhocodes/retry': 0.4.3+ '@types/estree': 1.0.9+ ajv: 6.15.0+ chalk: 4.1.2+ cross-spawn: 7.0.6+ debug: 4.4.3+ escape-string-regexp: 4.0.0+ eslint-scope: 8.4.0+ eslint-visitor-keys: 4.2.1+ espree: 10.4.0+ esquery: 1.7.0+ esutils: 2.0.3+ fast-deep-equal: 3.1.3+ file-entry-cache: 8.0.0+ find-up: 5.0.0+ glob-parent: 6.0.2+ ignore: 5.3.2+ imurmurhash: 0.1.4+ is-glob: 4.0.3+ 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.4+ optionalDependencies:+ jiti: 2.7.0+ transitivePeerDependencies:+ - supports-color++ dependencies:+ acorn: 8.16.0+ acorn-jsx: 5.3.2([email protected])+ eslint-visitor-keys: 4.2.1++ dependencies:+ estraverse: 5.3.0++ dependencies:+ estraverse: 5.3.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@nodelib/fs.stat': 2.0.5+ '@nodelib/fs.walk': 1.2.8+ glob-parent: 5.1.2+ merge2: 1.4.1+ micromatch: 4.0.8++ [email protected]: {}++ [email protected]: {}++ dependencies:+ reusify: 1.1.0++ optionalDependencies:+ picomatch: 4.0.4++ dependencies:+ flat-cache: 4.0.1++ [email protected]: {}++ dependencies:+ to-regex-range: 5.0.1++ dependencies:+ locate-path: 6.0.0+ path-exists: 4.0.0++ dependencies:+ flatted: 3.4.2+ keyv: 4.5.4++ [email protected]: {}++ dependencies:+ is-callable: 1.2.7++ [email protected]: {}++ optional: true++ [email protected]: {}++ dependencies:+ call-bind: 1.0.9+ call-bound: 1.0.4+ define-properties: 1.2.1+ functions-have-names: 1.2.3+ hasown: 2.0.3+ is-callable: 1.2.7++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ 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.3+ math-intrinsics: 1.1.0++ [email protected]: {}++ dependencies:+ dunder-proto: 1.0.1+ es-object-atoms: 1.1.1++ dependencies:+ call-bound: 1.0.4+ es-errors: 1.3.0+ get-intrinsic: 1.3.0++ dependencies:+ resolve-pkg-maps: 1.0.0++ [email protected]: {}++ dependencies:+ is-glob: 4.0.3++ dependencies:+ is-glob: 4.0.3++ [email protected]: {}++ [email protected]: {}++ dependencies:+ define-properties: 1.2.1+ gopd: 1.2.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ es-define-property: 1.0.1++ dependencies:+ dunder-proto: 1.0.1++ [email protected]: {}++ dependencies:+ has-symbols: 1.1.0++ dependencies:+ function-bind: 1.1.2++ [email protected]: {}++ dependencies:+ hermes-estree: 0.25.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ parent-module: 1.0.1+ resolve-from: 4.0.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ es-errors: 1.3.0+ hasown: 2.0.3+ side-channel: 1.1.0++ dependencies:+ call-bind: 1.0.9+ call-bound: 1.0.4+ get-intrinsic: 1.3.0++ dependencies:+ async-function: 1.0.0+ call-bound: 1.0.4+ get-proto: 1.0.1+ has-tostringtag: 1.0.2+ safe-regex-test: 1.1.0++ dependencies:+ has-bigints: 1.1.0++ dependencies:+ call-bound: 1.0.4+ has-tostringtag: 1.0.2++ dependencies:+ semver: 7.8.0++ [email protected]: {}++ dependencies:+ hasown: 2.0.3++ dependencies:+ call-bound: 1.0.4+ get-intrinsic: 1.3.0+ is-typed-array: 1.1.15++ dependencies:+ call-bound: 1.0.4+ has-tostringtag: 1.0.2++ [email protected]: {}++ [email protected]: {}++ dependencies:+ call-bound: 1.0.4++ dependencies:+ call-bound: 1.0.4+ generator-function: 2.0.1+ get-proto: 1.0.1+ has-tostringtag: 1.0.2+ safe-regex-test: 1.1.0++ dependencies:+ is-extglob: 2.1.1++ dependencies:+ is-docker: 3.0.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ call-bound: 1.0.4+ has-tostringtag: 1.0.2++ [email protected]: {}++ dependencies:+ call-bound: 1.0.4+ gopd: 1.2.0+ has-tostringtag: 1.0.2+ hasown: 2.0.3++ [email protected]: {}++ dependencies:+ call-bound: 1.0.4++ dependencies:+ call-bound: 1.0.4+ has-tostringtag: 1.0.2++ dependencies:+ call-bound: 1.0.4+ has-symbols: 1.1.0+ safe-regex-test: 1.1.0++ dependencies:+ which-typed-array: 1.1.20++ [email protected]: {}++ dependencies:+ call-bound: 1.0.4++ dependencies:+ call-bound: 1.0.4+ get-intrinsic: 1.3.0++ dependencies:+ is-inside-container: 1.0.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ define-data-property: 1.1.4+ es-object-atoms: 1.1.1+ get-intrinsic: 1.3.0+ get-proto: 1.0.1+ has-symbols: 1.1.0+ set-function-name: 2.0.2++ [email protected]: {}++ [email protected]: {}++ dependencies:+ argparse: 2.0.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ minimist: 1.2.8++ [email protected]: {}++ dependencies:+ '@types/diff-match-patch': 1.0.36+ chalk: 5.6.2+ diff-match-patch: 1.0.5++ dependencies:+ array-includes: 3.1.9+ array.prototype.flat: 1.3.3+ object.assign: 4.1.7+ object.values: 1.2.1++ dependencies:+ node-addon-api: 4.3.0+ prebuild-install: 7.1.3++ dependencies:+ json-buffer: 3.0.1++ [email protected]: {}++ dependencies:+ language-subtag-registry: 0.3.23++ dependencies:+ prelude-ls: 1.2.1+ type-check: 0.4.0++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ optional: true++ dependencies:+ detect-libc: 2.1.2+ 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++ dependencies:+ p-locate: 5.0.0++ [email protected]: {}++ dependencies:+ js-tokens: 4.0.0++ dependencies:+ yallist: 3.1.1++ dependencies:+ react: 19.2.6++ [email protected]: {}++ dependencies:+ '@jridgewell/sourcemap-codec': 1.5.5++ [email protected]: {}++ [email protected]: {}++ dependencies:+ braces: 3.0.3+ picomatch: 2.3.2++ [email protected]: {}++ dependencies:+ brace-expansion: 5.0.6++ dependencies:+ brace-expansion: 1.1.14++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ react: 19.2.6+ react-dom: 19.2.6([email protected])++ [email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@next/env': 16.2.6+ '@swc/helpers': 0.5.15+ baseline-browser-mapping: 2.10.30+ caniuse-lite: 1.0.30001793+ postcss: 8.4.31+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ styled-jsx: 5.1.6(@babel/[email protected])([email protected])+ 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+ '@opentelemetry/api': 1.9.0+ sharp: 0.34.5+ transitivePeerDependencies:+ - '@babel/core'+ - babel-plugin-macros++ dependencies:+ semver: 7.8.0++ [email protected]: {}++ dependencies:+ array.prototype.flatmap: 1.3.3+ es-errors: 1.3.0+ object.entries: 1.1.9+ semver: 6.3.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ call-bind: 1.0.9+ call-bound: 1.0.4+ define-properties: 1.2.1+ es-object-atoms: 1.1.1+ has-symbols: 1.1.0+ object-keys: 1.1.1++ dependencies:+ call-bind: 1.0.9+ call-bound: 1.0.4+ define-properties: 1.2.1+ es-object-atoms: 1.1.1++ dependencies:+ call-bind: 1.0.9+ define-properties: 1.2.1+ es-abstract: 1.24.2+ es-object-atoms: 1.1.1++ dependencies:+ call-bind: 1.0.9+ define-properties: 1.2.1+ es-abstract: 1.24.2++ dependencies:+ call-bind: 1.0.9+ call-bound: 1.0.4+ define-properties: 1.2.1+ es-object-atoms: 1.1.1++ dependencies:+ wrappy: 1.0.2++ dependencies:+ default-browser: 5.5.0+ define-lazy-prop: 3.0.0+ is-inside-container: 1.0.0+ wsl-utils: 0.1.0++ dependencies:+ deep-is: 0.1.4+ fast-levenshtein: 2.0.6+ levn: 0.4.1+ prelude-ls: 1.2.1+ type-check: 0.4.0+ word-wrap: 1.2.5++ dependencies:+ get-intrinsic: 1.3.0+ object-keys: 1.1.1+ safe-push-apply: 1.0.0++ dependencies:+ yocto-queue: 0.1.0++ dependencies:+ p-limit: 3.1.0++ dependencies:+ callsites: 3.1.0++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ nanoid: 3.3.12+ picocolors: 1.1.1+ source-map-js: 1.2.1++ dependencies:+ nanoid: 3.3.12+ picocolors: 1.1.1+ source-map-js: 1.2.1++ dependencies:+ detect-libc: 2.1.2+ expand-template: 2.0.3+ github-from-package: 0.0.0+ minimist: 1.2.8+ mkdirp-classic: 0.5.3+ napi-build-utils: 2.0.0+ node-abi: 3.92.0+ pump: 3.0.4+ rc: 1.2.8+ simple-get: 4.0.1+ tar-fs: 2.1.4+ tunnel-agent: 0.6.0++ [email protected]: {}++ dependencies:+ loose-envify: 1.4.0+ object-assign: 4.1.1+ react-is: 16.13.1++ dependencies:+ end-of-stream: 1.4.5+ once: 1.4.0++ [email protected]: {}++ [email protected]: {}++ [email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/primitive': 1.1.3+ '@radix-ui/react-accessible-icon': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-accordion': 1.2.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-alert-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-arrow': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-aspect-ratio': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-avatar': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-checkbox': 1.3.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collapsible': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context-menu': 2.2.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dropdown-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-form': 0.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-hover-card': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-label': 2.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-menubar': 1.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-navigation-menu': 1.2.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-one-time-password-field': 0.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-password-toggle-field': 0.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popover': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popper': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-progress': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-radio-group': 1.3.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-scroll-area': 1.2.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-select': 2.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-separator': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slider': 1.3.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-switch': 1.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tabs': 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toast': 1.2.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toggle-group': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-toolbar': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-tooltip': 1.2.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.6+ react-dom: 19.2.6([email protected])+ optionalDependencies:+ '@types/react': 19.2.14+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ deep-extend: 0.6.0+ ini: 1.3.8+ minimist: 1.2.8+ strip-json-comments: 2.0.1++ dependencies:+ react: 19.2.6+ scheduler: 0.27.0++ [email protected]: {}++ dependencies:+ react: 19.2.6+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.8.1+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])+ use-sidecar: 1.1.3(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ get-nonce: 1.0.1+ react: 19.2.6+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14++ [email protected]: {}++ dependencies:+ inherits: 2.0.4+ string_decoder: 1.3.0+ util-deprecate: 1.0.2++ dependencies:+ call-bind: 1.0.9+ define-properties: 1.2.1+ es-abstract: 1.24.2+ es-errors: 1.3.0+ es-object-atoms: 1.1.1+ get-intrinsic: 1.3.0+ get-proto: 1.0.1+ which-builtin-type: 1.2.1++ dependencies:+ call-bind: 1.0.9+ 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++ [email protected]: {}++ [email protected]: {}++ dependencies:+ es-errors: 1.3.0+ is-core-module: 2.16.2+ node-exports-info: 1.6.0+ object-keys: 1.1.1+ path-parse: 1.0.7+ supports-preserve-symlinks-flag: 1.0.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ queue-microtask: 1.2.3++ 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++ [email protected]: {}++ dependencies:+ es-errors: 1.3.0+ isarray: 2.0.5++ dependencies:+ call-bound: 1.0.4+ es-errors: 1.3.0+ is-regex: 1.2.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ define-data-property: 1.1.4+ es-errors: 1.3.0+ function-bind: 1.1.2+ get-intrinsic: 1.3.0+ gopd: 1.2.0+ has-property-descriptors: 1.0.2++ dependencies:+ define-data-property: 1.1.4+ es-errors: 1.3.0+ functions-have-names: 1.2.3+ has-property-descriptors: 1.0.2++ dependencies:+ dunder-proto: 1.0.1+ es-errors: 1.3.0+ es-object-atoms: 1.1.1++ dependencies:+ '@img/colour': 1.1.0+ detect-libc: 2.1.2+ semver: 7.8.0+ 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+ optional: true++ dependencies:+ shebang-regex: 3.0.0++ [email protected]: {}++ dependencies:+ es-errors: 1.3.0+ object-inspect: 1.13.4++ dependencies:+ call-bound: 1.0.4+ es-errors: 1.3.0+ get-intrinsic: 1.3.0+ object-inspect: 1.13.4++ dependencies:+ call-bound: 1.0.4+ es-errors: 1.3.0+ get-intrinsic: 1.3.0+ object-inspect: 1.13.4+ side-channel-map: 1.0.1++ dependencies:+ es-errors: 1.3.0+ object-inspect: 1.13.4+ side-channel-list: 1.0.1+ side-channel-map: 1.0.1+ side-channel-weakmap: 1.0.2++ [email protected]: {}++ dependencies:+ decompress-response: 6.0.0+ once: 1.4.0+ simple-concat: 1.0.1++ dependencies:+ react: 19.2.6+ react-dom: 19.2.6([email protected])++ [email protected]: {}++ [email protected]: {}++ dependencies:+ es-errors: 1.3.0+ internal-slot: 1.1.0++ dependencies:+ call-bind: 1.0.9+ define-properties: 1.2.1+ es-abstract: 1.24.2++ 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-object-atoms: 1.1.1+ get-intrinsic: 1.3.0+ gopd: 1.2.0+ has-symbols: 1.1.0+ internal-slot: 1.1.0+ regexp.prototype.flags: 1.5.4+ set-function-name: 2.0.2+ side-channel: 1.1.0++ dependencies:+ define-properties: 1.2.1+ es-abstract: 1.24.2++ dependencies:+ call-bind: 1.0.9+ call-bound: 1.0.4+ define-data-property: 1.1.4+ define-properties: 1.2.1+ es-abstract: 1.24.2+ es-object-atoms: 1.1.1+ has-property-descriptors: 1.0.2++ dependencies:+ call-bind: 1.0.9+ call-bound: 1.0.4+ define-properties: 1.2.1+ es-object-atoms: 1.1.1++ dependencies:+ call-bind: 1.0.9+ define-properties: 1.2.1+ es-object-atoms: 1.1.1++ dependencies:+ safe-buffer: 5.2.1++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ client-only: 0.0.1+ react: 19.2.6+ optionalDependencies:+ '@babel/core': 7.29.0++ dependencies:+ has-flag: 4.0.0++ [email protected]: {}++ dependencies:+ dequal: 2.0.3+ react: 19.2.6+ use-sync-external-store: 1.6.0([email protected])++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ chownr: 1.1.4+ mkdirp-classic: 0.5.3+ pump: 3.0.4+ tar-stream: 2.2.0++ dependencies:+ bl: 4.1.0+ end-of-stream: 1.4.5+ fs-constants: 1.0.0+ inherits: 2.0.4+ readable-stream: 3.6.2++ [email protected]: {}++ dependencies:+ fdir: 6.5.0([email protected])+ picomatch: 4.0.4++ dependencies:+ is-number: 7.0.0++ dependencies:+ typescript: 5.9.3++ dependencies:+ '@types/json5': 0.0.29+ json5: 1.0.2+ minimist: 1.2.8+ strip-bom: 3.0.0++ [email protected]: {}++ dependencies:+ esbuild: 0.28.0+ optionalDependencies:+ fsevents: 2.3.3++ dependencies:+ safe-buffer: 5.2.1++ dependencies:+ prelude-ls: 1.2.1++ dependencies:+ call-bound: 1.0.4+ es-errors: 1.3.0+ is-typed-array: 1.1.15++ dependencies:+ call-bind: 1.0.9+ for-each: 0.3.5+ gopd: 1.2.0+ has-proto: 1.2.0+ is-typed-array: 1.1.15++ dependencies:+ available-typed-arrays: 1.0.7+ call-bind: 1.0.9+ for-each: 0.3.5+ gopd: 1.2.0+ has-proto: 1.2.0+ is-typed-array: 1.1.15+ reflect.getprototypeof: 1.0.10++ dependencies:+ call-bind: 1.0.9+ for-each: 0.3.5+ gopd: 1.2.0+ is-typed-array: 1.1.15+ possible-typed-array-names: 1.1.0+ reflect.getprototypeof: 1.0.10++ dependencies:+ '@typescript-eslint/eslint-plugin': 8.59.3(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ '@typescript-eslint/typescript-estree': 8.59.3([email protected])+ eslint: 9.39.4([email protected])+ typescript: 5.9.3+ transitivePeerDependencies:+ - supports-color++ [email protected]: {}++ dependencies:+ call-bound: 1.0.4+ has-bigints: 1.1.0+ has-symbols: 1.1.0+ which-boxed-primitive: 1.1.1++ [email protected]: {}++ dependencies:+ napi-postinstall: 0.3.4+ 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++ dependencies:+ browserslist: 4.28.2+ escalade: 3.2.0+ picocolors: 1.1.1++ dependencies:+ punycode: 2.3.1++ dependencies:+ react: 19.2.6+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ detect-node-es: 1.1.0+ react: 19.2.6+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.14++ dependencies:+ react: 19.2.6++ [email protected]: {}++ dependencies:+ is-bigint: 1.1.0+ is-boolean-object: 1.2.2+ is-number-object: 1.1.1+ is-string: 1.1.1+ is-symbol: 1.1.1++ dependencies:+ call-bound: 1.0.4+ function.prototype.name: 1.1.8+ has-tostringtag: 1.0.2+ is-async-function: 2.1.1+ is-date-object: 1.1.0+ is-finalizationregistry: 1.1.1+ is-generator-function: 1.1.2+ is-regex: 1.2.1+ is-weakref: 1.1.1+ isarray: 2.0.5+ which-boxed-primitive: 1.1.1+ which-collection: 1.0.2+ which-typed-array: 1.1.20++ dependencies:+ is-map: 2.0.3+ is-set: 2.0.3+ is-weakmap: 2.0.2+ is-weakset: 2.0.4++ dependencies:+ available-typed-arrays: 1.0.7+ call-bind: 1.0.9+ call-bound: 1.0.4+ for-each: 0.3.5+ get-proto: 1.0.1+ gopd: 1.2.0+ has-tostringtag: 1.0.2++ dependencies:+ isexe: 2.0.0++ [email protected]: {}++ [email protected]: {}++ dependencies:+ is-wsl: 3.1.1++ [email protected]: {}++ [email protected]: {}++ dependencies:+ zod: 3.25.76++ dependencies:+ zod: 3.25.76++ [email protected]: {}diff --git a/postcss.config.mjs b/postcss.config.mjsnew file mode 100644index 00000000..c7bcb4b1--- /dev/null+++ b/postcss.config.mjs@@ -0,0 +1,5 @@+const config = {+ plugins: ["@tailwindcss/postcss"],+};++export default config;diff --git a/scripts/copy-standalone-assets.mjs b/scripts/copy-standalone-assets.mjsnew file mode 100644index 00000000..6ed2d1dd--- /dev/null+++ b/scripts/copy-standalone-assets.mjs@@ -0,0 +1,29 @@+#!/usr/bin/env node+// Next.js standalone output (`output: "standalone"`) intentionally does NOT+// include `.next/static/` or `public/` so they can be served from a CDN in+// production. We ship as a local-first npm package, so we copy them into the+// standalone tree where `server.js` will serve them automatically.++import { existsSync, cpSync } from "node:fs";+import { dirname, join } from "node:path";+import { fileURLToPath } from "node:url";++const __dirname = dirname(fileURLToPath(import.meta.url));+const ROOT = dirname(__dirname);+const STANDALONE = join(ROOT, ".next", "standalone");++if (!existsSync(STANDALONE)) {+ console.error(`No standalone output found at ${STANDALONE}. Did 'next build' run?`);+ process.exit(1);+}++const targets = [+ { src: join(ROOT, ".next", "static"), dest: join(STANDALONE, ".next", "static") },+ { src: join(ROOT, "public"), dest: join(STANDALONE, "public") },+];++for (const { src, dest } of targets) {+ if (!existsSync(src)) continue;+ cpSync(src, dest, { recursive: true });+ console.log(`Copied ${src.replace(ROOT + "/", "")} → ${dest.replace(ROOT + "/", "")}`);+}diff --git a/scripts/e2e-provision.ts b/scripts/e2e-provision.tsnew file mode 100644index 00000000..5f4da1ed--- /dev/null+++ b/scripts/e2e-provision.ts@@ -0,0 +1,11 @@+import { ensureProjectAgents } from "../src/server/agent-templates";++async function main() {+ const r = await ensureProjectAgents("e2e-test-brand");+ console.log(JSON.stringify(r, null, 2));+}++main().catch((err) => {+ console.error(err);+ process.exit(1);+});diff --git a/src/app/(app)/activity/page.tsx b/src/app/(app)/activity/page.tsxnew file mode 100644index 00000000..1031e880--- /dev/null+++ b/src/app/(app)/activity/page.tsx@@ -0,0 +1,80 @@+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";+import { Badge } from "@/components/ui/badge";+import { getActiveProject } from "@/server/active-project";+import { listAgentActions } from "@/server/db/agent-actions";++function timeAgo(iso: string) {+ const seconds = Math.max(0, (Date.now() - new Date(iso).getTime()) / 1000);+ if (seconds < 60) return `${Math.floor(seconds)}s ago`;+ if (seconds < 3600) return `${Math.floor(seconds / 60)}m ago`;+ if (seconds < 86400) return `${Math.floor(seconds / 3600)}h ago`;+ return `${Math.floor(seconds / 86400)}d ago`;+}++export default async function ActivityPage() {+ const project = await getActiveProject();+ if (!project) {+ return (+ <div className="mx-auto max-w-md pt-12 text-sm text-muted-foreground">+ Select a project to see its activity.+ </div>+ );+ }+ const actions = listAgentActions(project.slug, 200);++ return (+ <div className="mx-auto max-w-4xl space-y-6">+ <header>+ <h1 className="text-2xl font-semibold tracking-tight">Activity</h1>+ <p className="text-sm text-muted-foreground">+ Project <span className="font-mono">{project.slug}</span> · {actions.length} actions ·+ append-only audit log+ </p>+ </header>++ {actions.length === 0 ? (+ <Card>+ <CardContent className="space-y-2 py-12 text-center text-sm">+ <h2 className="text-base font-medium">No activity yet.</h2>+ <p className="text-muted-foreground">+ Every autonomous decision and scheduled job lands here for auditing.+ When you provision agents or schedule crons, the events show up.+ </p>+ </CardContent>+ </Card>+ ) : (+ <Card>+ <CardContent className="p-0">+ <ul className="divide-y">+ {actions.map((a) => (+ <li key={a.id} className="space-y-1 px-4 py-3 text-sm">+ <div className="flex items-baseline gap-2">+ <Badge variant="outline" className="font-mono text-[10px]">+ {a.action_type}+ </Badge>+ <span className="font-mono text-xs text-muted-foreground">+ {a.agent_id}+ </span>+ <span className="ml-auto text-xs text-muted-foreground tabular-nums">+ {timeAgo(a.occurred_at)} · {new Date(a.occurred_at).toLocaleString()}+ </span>+ </div>+ <p className="leading-snug">{a.summary}</p>+ {a.reasoning && (+ <p className="rounded-md bg-muted/40 px-2.5 py-1.5 text-xs text-muted-foreground whitespace-pre-wrap">+ {a.reasoning}+ </p>+ )}+ </li>+ ))}+ </ul>+ </CardContent>+ </Card>+ )}+ </div>+ );+}++// Force this page to re-render on every visit so freshly-logged actions show up+// without a hard refresh.+export const dynamic = "force-dynamic";diff --git a/src/app/(app)/agents/page.tsx b/src/app/(app)/agents/page.tsxnew file mode 100644index 00000000..c61baece--- /dev/null+++ b/src/app/(app)/agents/page.tsx@@ -0,0 +1,106 @@+import Link from "next/link";+import { Bot, Check, MessageSquare, Clock } from "lucide-react";+import { Button } from "@/components/ui/button";+import { Card, CardContent, CardHeader } from "@/components/ui/card";+import { Badge } from "@/components/ui/badge";+import { getActiveProject } from "@/server/active-project";+import {+ TEMPLATES,+ urlSlugForTemplate,+ agentNameFor,+ type AgentTemplateKey,+} from "@/server/agent-templates";+import { listCronsForProject } from "@/server/openclaw/crons";+import { reprovisionAgentsAction } from "@/server/actions/projects";+import { ReprovisionButton } from "@/components/reprovision-button";++export default async function AgentsPage() {+ const project = await getActiveProject();+ if (!project) {+ return (+ <div className="mx-auto max-w-md pt-12 text-sm text-muted-foreground">+ Select a project to see its agents.+ </div>+ );+ }++ // Best-effort cron count per agent.+ const cronByAgent = new Map<string, number>();+ try {+ const view = await listCronsForProject(project.slug);+ for (const g of view.groups) cronByAgent.set(g.agent, g.crons.length);+ } catch {}++ // Bind the project slug into the server action for the client button.+ const reprovision = reprovisionAgentsAction.bind(null, project.slug);++ return (+ <div className="mx-auto max-w-4xl space-y-6">+ <header className="flex flex-row items-center justify-between gap-4">+ <div>+ <h1 className="text-2xl font-semibold tracking-tight">Agents</h1>+ <p className="text-sm text-muted-foreground">+ Project <span className="font-mono">{project.slug}</span> · {TEMPLATES.length}{" "}+ agents available · all running on OpenClaw with your configured model + fallback chain+ </p>+ </div>+ <ReprovisionButton action={reprovision} />+ </header>++ <div className="grid gap-4">+ {TEMPLATES.map((t) => {+ const slug = urlSlugForTemplate(t.key as AgentTemplateKey);+ const fullId = agentNameFor(project.slug, t.key as AgentTemplateKey);+ const crons = cronByAgent.get(slug) ?? 0;+ return (+ <Card key={t.key}>+ <CardHeader className="flex flex-row items-start justify-between space-y-0">+ <div className="flex items-start gap-3">+ <div className="flex size-9 shrink-0 items-center justify-center rounded-md bg-muted">+ <Bot className="size-4" />+ </div>+ <div className="space-y-1">+ <div className="flex flex-wrap items-baseline gap-x-2">+ <h2 className="text-base font-semibold">{t.display_name}</h2>+ <Badge variant="outline" className="text-[10px] font-mono">+ {fullId}+ </Badge>+ </div>+ <p className="text-sm text-muted-foreground">{t.description}</p>+ </div>+ </div>+ <div className="flex shrink-0 items-center gap-2">+ {crons > 0 && (+ <Link+ href="/crons"+ className="flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground"+ >+ <Clock className="size-3" />+ {crons}+ </Link>+ )}+ <Button asChild size="sm">+ <Link href={`/chat/${slug}`}>+ <MessageSquare className="mr-1.5 size-4" />+ Chat+ </Link>+ </Button>+ </div>+ </CardHeader>+ <CardContent>+ <ul className="grid grid-cols-1 gap-1.5 text-sm md:grid-cols-2">+ {t.capabilities.map((c) => (+ <li key={c} className="flex items-start gap-2">+ <Check className="mt-0.5 size-3.5 shrink-0 text-emerald-600" />+ <span>{c}</span>+ </li>+ ))}+ </ul>+ </CardContent>+ </Card>+ );+ })}+ </div>+ </div>+ );+}diff --git a/src/app/(app)/approvals/page.tsx b/src/app/(app)/approvals/page.tsxnew file mode 100644index 00000000..ee40074c--- /dev/null+++ b/src/app/(app)/approvals/page.tsx@@ -0,0 +1,51 @@+import { Card, CardContent } from "@/components/ui/card";+import { getActiveProject } from "@/server/active-project";+import { listPendingApprovals } from "@/server/db/approvals";+import { ApprovalCard } from "@/components/approval-card";++export default async function ApprovalsPage() {+ const project = await getActiveProject();++ if (!project) {+ return (+ <div className="mx-auto max-w-md pt-12 text-sm text-muted-foreground">+ Select a project to see its pending approvals.+ </div>+ );+ }++ const pending = listPendingApprovals(project.slug);++ return (+ <div className="mx-auto max-w-3xl space-y-4">+ <header className="space-y-1">+ <h1 className="text-2xl font-semibold tracking-tight">Approvals</h1>+ <p className="text-sm text-muted-foreground">+ Project <span className="font-mono">{project.slug}</span> · {pending.length} pending+ </p>+ </header>++ {pending.length === 0 ? (+ <Card>+ <CardContent className="py-16 text-center">+ <h2 className="text-lg font-medium">All caught up.</h2>+ <p className="mt-2 text-sm text-muted-foreground">+ CMO will surface decisions here. Items above your thresholds appear+ here for approval. Adjust thresholds in{" "}+ <a href="/settings" className="underline">+ Settings+ </a>+ .+ </p>+ </CardContent>+ </Card>+ ) : (+ <div className="space-y-3">+ {pending.map((a) => (+ <ApprovalCard key={a.id} approval={a} />+ ))}+ </div>+ )}+ </div>+ );+}diff --git a/src/app/(app)/chat/[agent]/page.tsx b/src/app/(app)/chat/[agent]/page.tsxnew file mode 100644index 00000000..9b490687--- /dev/null+++ b/src/app/(app)/chat/[agent]/page.tsx@@ -0,0 +1,81 @@+import { notFound } from "next/navigation";+import Link from "next/link";+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import { getActiveProject } from "@/server/active-project";+import {+ templateForUrlSlug,+ agentNameFor,+} from "@/server/agent-templates";+import { getSessionsView, loadSessionHistory } from "@/server/openclaw/sessions";+import { AgentChat } from "@/components/agent-chat";+import { ThreadSelector } from "@/components/thread-selector";++type Params = { agent: string };++export default async function AgentChatPage({ params }: { params: Promise<Params> }) {+ const { agent: agentSlug } = await params;+ const template = templateForUrlSlug(agentSlug);+ if (!template) notFound();++ const project = await getActiveProject();+ if (!project) {+ return (+ <div className="mx-auto max-w-md p-6 pt-12">+ <Card>+ <CardHeader>+ <CardTitle>No active project</CardTitle>+ <CardDescription>+ Create a project before chatting with the {template.display_name} agent.+ </CardDescription>+ </CardHeader>+ <CardContent>+ <Link href="/projects/new" className="text-sm underline">+ Create one+ </Link>+ </CardContent>+ </Card>+ </div>+ );+ }++ const agentFullId = agentNameFor(project.slug, template.key);+ const sessionsView = await getSessionsView(project.slug, template.key);+ const history = sessionsView.active.pending+ ? []+ : loadSessionHistory(agentFullId, sessionsView.active.sessionId);++ return (+ <>+ {/* Top bar — agent identity + thread selector. Does not scroll. */}+ <header className="flex items-center gap-3 border-b bg-background/80 px-6 py-3 backdrop-blur">+ <div className="min-w-0 flex-1">+ <div className="flex items-baseline gap-2">+ <h1 className="text-base font-semibold tracking-tight">+ {template.display_name}+ </h1>+ <span className="hidden truncate font-mono text-[11px] text-muted-foreground sm:inline">+ {agentFullId}+ </span>+ </div>+ </div>+ <ThreadSelector+ agentSlug={agentSlug}+ sessions={sessionsView.all}+ activeSessionId={sessionsView.active.sessionId}+ />+ </header>++ {/* Chat fills the remaining height. min-h-0 so the inner scroll works. */}+ <div className="min-h-0 flex-1">+ <AgentChat+ key={sessionsView.active.sessionId}+ projectSlug={project.slug}+ agentSlug={agentSlug}+ agentDisplayName={template.display_name}+ sessionId={sessionsView.active.sessionId}+ initialMessages={history.map((m) => ({ id: m.id, role: m.role, body: m.body }))}+ />+ </div>+ </>+ );+}diff --git a/src/app/(app)/chat/layout.tsx b/src/app/(app)/chat/layout.tsxnew file mode 100644index 00000000..3d246f59--- /dev/null+++ b/src/app/(app)/chat/layout.tsx@@ -0,0 +1,11 @@+/**+ * Chat layout: escape the parent main's p-6 padding so the conversation can+ * fill the entire content area edge-to-edge. Sticky composer + scrollable+ * thread need a single flex column that owns the viewport region.+ *+ * Parent main has `relative p-6`; this absolute child fills the padding box+ * (i.e., the main element's full inner area, ignoring the padding inset).+ */+export default function ChatLayout({ children }: { children: React.ReactNode }) {+ return <div className="absolute inset-0 flex flex-col">{children}</div>;+}diff --git a/src/app/(app)/chat/page.tsx b/src/app/(app)/chat/page.tsxnew file mode 100644index 00000000..3e8c8d9a--- /dev/null+++ b/src/app/(app)/chat/page.tsx@@ -0,0 +1,5 @@+import { redirect } from "next/navigation";++export default function ChatIndex() {+ redirect("/chat/cmo");+}diff --git a/src/app/(app)/connections/page.tsx b/src/app/(app)/connections/page.tsxnew file mode 100644index 00000000..884eb9ab--- /dev/null+++ b/src/app/(app)/connections/page.tsx@@ -0,0 +1,90 @@+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import { Button } from "@/components/ui/button";+import { Badge } from "@/components/ui/badge";+import { Plug } from "lucide-react";+import { getActiveProject } from "@/server/active-project";+import { listOAuthTokens } from "@/server/db/oauth";+import type { OAuthProvider } from "@/types";++const PROVIDERS: Array<{+ id: OAuthProvider;+ label: string;+ description: string;+}> = [+ {+ id: "google_ads",+ label: "Google Ads",+ description: "OAuth for the Google Ads agent. Required for bid/budget/keyword automation.",+ },+ {+ id: "gsc",+ label: "Google Search Console",+ description: "OAuth for the SEO agent. Required for ranking + content data.",+ },+];++export default async function ConnectionsPage() {+ const project = await getActiveProject();+ if (!project) {+ return (+ <div className="mx-auto max-w-md pt-12 text-sm text-muted-foreground">+ Select a project to manage its connections.+ </div>+ );+ }++ const tokens = listOAuthTokens(project.slug);+ const tokensByProvider = new Map<OAuthProvider, number>();+ for (const t of tokens) {+ tokensByProvider.set(t.provider, (tokensByProvider.get(t.provider) ?? 0) + 1);+ }++ return (+ <div className="mx-auto max-w-3xl space-y-6">+ <header>+ <h1 className="text-2xl font-semibold tracking-tight">Connections</h1>+ <p className="text-sm text-muted-foreground">+ Project <span className="font-mono">{project.slug}</span> · OAuth tokens are+ encrypted with your OS keychain master key and stored locally.+ </p>+ </header>++ <div className="space-y-3">+ {PROVIDERS.map((p) => {+ const connected = (tokensByProvider.get(p.id) ?? 0) > 0;+ return (+ <Card key={p.id}>+ <CardHeader className="flex flex-row items-start justify-between space-y-0">+ <div className="space-y-1">+ <CardTitle className="flex items-center gap-2 text-base">+ <Plug className="size-4" />+ {p.label}+ {connected && (+ <Badge variant="secondary" className="text-[10px]">+ connected+ </Badge>+ )}+ </CardTitle>+ <CardDescription>{p.description}</CardDescription>+ </div>+ <Button asChild variant={connected ? "outline" : "default"} size="sm">+ <a href={`/api/oauth/${p.id}/start?project=${project.slug}`}>+ {connected ? "Reconnect" : "Connect"}+ </a>+ </Button>+ </CardHeader>+ <CardContent className="pt-0">+ <p className="text-xs text-muted-foreground">+ Status:{" "}+ {connected+ ? `${tokensByProvider.get(p.id)} account(s) connected`+ : "not connected"}+ </p>+ </CardContent>+ </Card>+ );+ })}+ </div>+ </div>+ );+}diff --git a/src/app/(app)/crons/page.tsx b/src/app/(app)/crons/page.tsxnew file mode 100644index 00000000..26b16aee--- /dev/null+++ b/src/app/(app)/crons/page.tsx@@ -0,0 +1,131 @@+import { Card, CardContent } from "@/components/ui/card";+import { getActiveProject } from "@/server/active-project";+import { listCronsForProject } from "@/server/openclaw/crons";+import { expandSchedule } from "@/server/openclaw/cron-schedule";+import { ScheduleCronDialog } from "@/components/schedule-cron-dialog";+import {+ CronCalendar,+ type CalendarCron,+ type CalendarOccurrence,+} from "@/components/cron-calendar";++const NUM_DAYS = 14; // 2-week window; UI shows 7 at a time with prev/next.++export default async function CronsPage() {+ const project = await getActiveProject();+ if (!project) {+ return (+ <div className="mx-auto max-w-md pt-12 text-sm text-muted-foreground">+ Select a project to see its scheduled work.+ </div>+ );+ }++ let error: string | null = null;+ let view: Awaited<ReturnType<typeof listCronsForProject>>;+ try {+ view = await listCronsForProject(project.slug);+ } catch (err) {+ view = { project_slug: project.slug, groups: [] };+ error = err instanceof Error ? err.message : String(err);+ }++ // Flatten crons + agent slugs for the calendar.+ const allCrons = view.groups.flatMap((g) => g.crons);+ const agentSlugs = view.groups.map((g) => g.agent);++ // Compute the time window: today 00:00 local → +NUM_DAYS.+ const today = new Date();+ today.setHours(0, 0, 0, 0);+ const startOfFirstDay = today.getTime();+ const dayMs = 24 * 60 * 60 * 1000;+ const until = startOfFirstDay + NUM_DAYS * dayMs;++ // Expand every cron into occurrences within the window.+ const occurrences: CalendarOccurrence[] = [];+ for (const cron of allCrons) {+ if (cron.disabled) continue;+ const occs = expandSchedule(+ cron.id,+ cron.schedule_raw,+ { from: Date.now(), until },+ {+ name: cron.name,+ short_name: cron.short_name,+ agent_id: cron.agent_id,+ agent_slug: cron.agent_slug,+ schedule_text: cron.schedule_text,+ },+ );+ for (const o of occs) occurrences.push(o);+ }++ const cronsById: Record<string, CalendarCron> = {};+ for (const cron of allCrons) {+ cronsById[cron.id] = {+ id: cron.id,+ short_name: cron.short_name,+ full_name: cron.name,+ agent_id: cron.agent_id,+ agent_slug: cron.agent_slug,+ schedule_text: cron.schedule_text,+ disabled: cron.disabled,+ status_text: cron.status_text,+ };+ }++ const totalActive = allCrons.filter((c) => !c.disabled).length;+ const totalDisabled = allCrons.length - totalActive;++ return (+ <div className="mx-auto max-w-6xl space-y-6">+ <header className="flex flex-row items-center justify-between gap-4">+ <div>+ <h1 className="text-2xl font-semibold tracking-tight">Crons</h1>+ <p className="text-sm text-muted-foreground">+ Project <span className="font-mono">{project.slug}</span> ·{" "}+ {totalActive} active{totalDisabled > 0 ? ` · ${totalDisabled} paused` : ""} ·{" "}+ backed by OpenClaw+ </p>+ </div>+ <ScheduleCronDialog projectSlug={project.slug} />+ </header>++ {error && (+ <Card>+ <CardContent className="py-6 text-sm">+ <p className="font-medium text-destructive">Could not reach OpenClaw.</p>+ <p className="mt-1 text-xs text-muted-foreground">{error}</p>+ <p className="mt-2 text-xs">+ Run <code className="rounded bg-muted px-1.5 py-0.5">notfair-cmo doctor</code> for help.+ </p>+ </CardContent>+ </Card>+ )}++ {!error && allCrons.length === 0 && (+ <Card>+ <CardContent className="space-y-3 py-12 text-center">+ <h2 className="text-base font-medium">No scheduled work yet.</h2>+ <p className="text-sm text-muted-foreground">+ Schedule a recurring job for one of this project’s agents.+ </p>+ <div className="flex justify-center pt-2">+ <ScheduleCronDialog projectSlug={project.slug} />+ </div>+ </CardContent>+ </Card>+ )}++ {!error && allCrons.length > 0 && (+ <CronCalendar+ startOfFirstDay={startOfFirstDay}+ numDays={NUM_DAYS}+ occurrences={occurrences}+ cronsById={cronsById}+ agentSlugs={agentSlugs}+ />+ )}+ </div>+ );+}diff --git a/src/app/(app)/layout.tsx b/src/app/(app)/layout.tsxnew file mode 100644index 00000000..7b830eb3--- /dev/null+++ b/src/app/(app)/layout.tsx@@ -0,0 +1,36 @@+import {+ SidebarInset,+ SidebarProvider,+ SidebarTrigger,+} from "@/components/ui/sidebar";+import { AppSidebar } from "@/components/app-sidebar";+import { Separator } from "@/components/ui/separator";+import { ClientMountGate } from "@/components/client-mount-gate";++export default function AppLayout({ children }: { children: React.ReactNode }) {+ return (+ <ClientMountGate+ fallback={+ <div className="min-h-screen bg-background" suppressHydrationWarning>+ {/* Empty shell during hydration — children mount client-side */}+ </div>+ }+ >+ <SidebarProvider>+ <AppSidebar />+ <SidebarInset>+ <header className="sticky top-0 z-10 flex h-12 items-center gap-2 border-b bg-background/95 px-3 backdrop-blur supports-[backdrop-filter]:bg-background/60">+ <SidebarTrigger />+ <Separator orientation="vertical" className="h-5" />+ <a href="#main-content" className="sr-only focus:not-sr-only">+ Skip to content+ </a>+ </header>+ <main id="main-content" className="relative flex-1 p-6">+ {children}+ </main>+ </SidebarInset>+ </SidebarProvider>+ </ClientMountGate>+ );+}diff --git a/src/app/(app)/page.tsx b/src/app/(app)/page.tsxnew file mode 100644index 00000000..32e8035a--- /dev/null+++ b/src/app/(app)/page.tsx@@ -0,0 +1,239 @@+import Link from "next/link";+import { MessageSquare, Clock, Bot, ListChecks, CheckCircle2 } from "lucide-react";+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import { Button } from "@/components/ui/button";+import { Badge } from "@/components/ui/badge";+import { getActiveProject } from "@/server/active-project";+import { costToday } from "@/server/db/cost";+import { listPendingApprovals } from "@/server/db/approvals";+import { listTasks } from "@/server/db/tasks";+import { listAgentActions } from "@/server/db/agent-actions";+import { TEMPLATES, urlSlugForTemplate, type AgentTemplateKey } from "@/server/agent-templates";++function formatUsd(n: number) {+ return n.toLocaleString("en-US", { style: "currency", currency: "USD" });+}++function timeAgo(iso: string) {+ const seconds = Math.max(0, (Date.now() - new Date(iso).getTime()) / 1000);+ if (seconds < 60) return `${Math.floor(seconds)}s ago`;+ if (seconds < 3600) return `${Math.floor(seconds / 60)}m ago`;+ if (seconds < 86400) return `${Math.floor(seconds / 3600)}h ago`;+ return `${Math.floor(seconds / 86400)}d ago`;+}++export default async function ProjectHomePage() {+ const project = await getActiveProject();++ if (!project) {+ return (+ <div className="mx-auto flex max-w-lg flex-col items-start gap-4 pt-16">+ <h1 className="text-2xl font-semibold tracking-tight">+ Hire your AI marketing team.+ </h1>+ <p className="text-sm text-muted-foreground">+ Each project gets its own CMO + specialist agents (Google Ads, SEO),+ scoped under OpenClaw. Spin one up and start chatting.+ </p>+ <Button asChild>+ <Link href="/projects/new">Create your first project</Link>+ </Button>+ </div>+ );+ }++ const cost = costToday(project.slug);+ const pending = listPendingApprovals(project.slug);+ const tasks = listTasks(project.slug);+ const recent = listAgentActions(project.slug, 8);++ // Intentionally NOT calling openclaw here. The cron tab is the source of+ // truth for scheduled jobs; calling `openclaw cron list` from the home page+ // would block render for 5-15s on some machines. Show a link instead.+ const running = tasks.filter((t) => t.status === "running").length;++ return (+ <div className="mx-auto max-w-6xl space-y-6">+ <div className="flex items-baseline justify-between">+ <div>+ <h1 className="text-2xl font-semibold tracking-tight">{project.display_name}</h1>+ <p className="text-sm text-muted-foreground">+ Project home · slug <span className="font-mono">{project.slug}</span>+ </p>+ </div>+ <Button asChild>+ <Link href="/chat/cmo">+ <MessageSquare className="mr-1.5 size-4" />+ Chat with CMO+ </Link>+ </Button>+ </div>++ {/* KPI row */}+ <div className="grid gap-4 md:grid-cols-4">+ <KpiCard+ label="Spend today"+ value={formatUsd(cost.total_usd)}+ hint={`LLM ${formatUsd(cost.by_source.llm)} · Ads ${formatUsd(+ cost.by_source.google_ads + cost.by_source.gsc,+ )}`}+ />+ <KpiCard+ label="Scheduled crons"+ value="→"+ hint="open cron tab"+ href="/crons"+ />+ <KpiCard+ label="Active tasks"+ value={String(running)}+ hint={`${tasks.length} total`}+ href="/tasks"+ />+ <KpiCard+ label="Pending approvals"+ value={String(pending.length)}+ hint={pending.length === 0 ? "all caught up" : "review →"}+ href="/approvals"+ />+ </div>++ <div className="grid gap-4 lg:grid-cols-3">+ {/* Agents column */}+ <Card className="lg:col-span-2">+ <CardHeader>+ <div className="flex items-center justify-between">+ <div>+ <CardTitle className="text-base">Your agents</CardTitle>+ <CardDescription>+ Each agent runs in its own OpenClaw workspace. Click to chat.+ </CardDescription>+ </div>+ <Button asChild variant="outline" size="sm">+ <Link href="/agents">View all</Link>+ </Button>+ </div>+ </CardHeader>+ <CardContent className="space-y-2">+ {TEMPLATES.map((t) => {+ const slug = urlSlugForTemplate(t.key as AgentTemplateKey);+ return (+ <Link+ key={t.key}+ href={`/chat/${slug}`}+ className="flex items-center gap-3 rounded-md border bg-card p-3 transition-colors hover:bg-accent/50"+ >+ <div className="flex size-8 shrink-0 items-center justify-center rounded-md bg-muted">+ <Bot className="size-4" />+ </div>+ <div className="min-w-0 flex-1">+ <div className="font-medium">{t.display_name}</div>+ <p className="line-clamp-1 text-xs text-muted-foreground">{t.description}</p>+ </div>+ <MessageSquare className="size-4 shrink-0 text-muted-foreground" />+ </Link>+ );+ })}+ </CardContent>+ </Card>++ {/* Activity column */}+ <Card>+ <CardHeader>+ <div className="flex items-center justify-between">+ <div>+ <CardTitle className="text-base">Recent activity</CardTitle>+ <CardDescription>Last 8 agent actions</CardDescription>+ </div>+ <Button asChild variant="outline" size="sm">+ <Link href="/activity">All</Link>+ </Button>+ </div>+ </CardHeader>+ <CardContent>+ {recent.length === 0 ? (+ <div className="space-y-2 text-sm">+ <p className="text-muted-foreground">No activity yet.</p>+ <p className="text-xs text-muted-foreground">+ Activity logs autonomous decisions, scheduled work, and tool calls.+ </p>+ </div>+ ) : (+ <ul className="space-y-2.5 text-xs">+ {recent.map((a) => (+ <li key={a.id} className="space-y-0.5">+ <div className="flex items-center gap-2">+ <Badge variant="outline" className="font-mono text-[9px]">+ {a.action_type}+ </Badge>+ <span className="ml-auto text-[10px] text-muted-foreground tabular-nums">+ {timeAgo(a.occurred_at)}+ </span>+ </div>+ <p className="line-clamp-2 leading-snug">{a.summary}</p>+ </li>+ ))}+ </ul>+ )}+ </CardContent>+ </Card>+ </div>++ {/* Onboarding nudge if nothing has happened yet */}+ {tasks.length === 0 && recent.length === 0 && (+ <Card>+ <CardContent className="space-y-3 py-6 text-sm">+ <h3 className="font-medium">Getting started</h3>+ <ol className="space-y-1.5 text-muted-foreground">+ <li>+ 1. <Link href="/connections" className="underline">Connect Google Ads or GSC</Link>{" "}+ if you want agents to do real work (optional, chat works without it)+ </li>+ <li>+ 2. <Link href="/chat/cmo" className="underline">Chat with the CMO</Link> to plan+ what to do+ </li>+ <li>+ 3. <Link href="/crons" className="underline">Schedule recurring jobs</Link> for+ specialist agents+ </li>+ </ol>+ </CardContent>+ </Card>+ )}+ </div>+ );+}++function KpiCard({+ label,+ value,+ hint,+ href,+}: {+ label: string;+ value: string;+ hint: string;+ href?: string;+}) {+ const content = (+ <Card className={href ? "transition-colors hover:bg-accent/30" : undefined}>+ <CardHeader className="pb-2">+ <CardDescription>{label}</CardDescription>+ <CardTitle className="text-2xl tabular-nums">{value}</CardTitle>+ </CardHeader>+ <CardContent className="pt-0 text-xs text-muted-foreground">{hint}</CardContent>+ </Card>+ );+ if (href)+ return (+ <Link href={href} className="block">+ {content}+ </Link>+ );+ return content;+}++// Silence unused lint for icons reserved for future activity-feed expansion.+void ListChecks;+void CheckCircle2;diff --git a/src/app/(app)/projects/new/page.tsx b/src/app/(app)/projects/new/page.tsxnew file mode 100644index 00000000..37b7f99f--- /dev/null+++ b/src/app/(app)/projects/new/page.tsx@@ -0,0 +1,40 @@+import { Button } from "@/components/ui/button";+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { createProjectAction } from "@/server/actions/projects";++export default function NewProjectPage() {+ return (+ <div className="mx-auto max-w-md">+ <Card>+ <CardHeader>+ <CardTitle>New project</CardTitle>+ <CardDescription>+ A project groups the OpenClaw agents and crons your CMO will manage.+ Pick a name now; it’s editable later. The slug (used in agent+ names) is set once and immutable.+ </CardDescription>+ </CardHeader>+ <CardContent>+ <form action={createProjectAction} className="space-y-4">+ <div className="space-y-2">+ <Label htmlFor="display_name">Project name</Label>+ <Input+ id="display_name"+ name="display_name"+ required+ autoFocus+ placeholder="Acme Q4 launch"+ maxLength={80}+ />+ </div>+ <Button type="submit" className="w-full">+ Create project+ </Button>+ </form>+ </CardContent>+ </Card>+ </div>+ );+}diff --git a/src/app/(app)/projects/page.tsx b/src/app/(app)/projects/page.tsxnew file mode 100644index 00000000..b976783f--- /dev/null+++ b/src/app/(app)/projects/page.tsx@@ -0,0 +1,50 @@+import Link from "next/link";+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";+import { Button } from "@/components/ui/button";+import { Badge } from "@/components/ui/badge";+import { listProjects } from "@/server/db/projects";++export default function ProjectsListPage() {+ const projects = listProjects({ includeArchived: true });++ return (+ <div className="space-y-4">+ <div className="flex items-baseline justify-between">+ <div>+ <h1 className="text-2xl font-semibold tracking-tight">Projects</h1>+ <p className="text-sm text-muted-foreground">{projects.length} total</p>+ </div>+ <Button asChild>+ <Link href="/projects/new">New project</Link>+ </Button>+ </div>++ {projects.length === 0 ? (+ <Card>+ <CardContent className="py-12 text-center text-sm text-muted-foreground">+ No projects yet.{" "}+ <Link className="underline" href="/projects/new">+ Create your first one+ </Link>+ .+ </CardContent>+ </Card>+ ) : (+ <div className="grid gap-3">+ {projects.map((p) => (+ <Card key={p.slug}>+ <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">+ <CardTitle className="text-base">{p.display_name}</CardTitle>+ {p.archived_at && <Badge variant="outline">archived</Badge>}+ </CardHeader>+ <CardContent className="flex items-center justify-between pt-0 text-xs text-muted-foreground">+ <span className="font-mono">{p.slug}</span>+ <span>Created {new Date(p.created_at).toLocaleDateString()}</span>+ </CardContent>+ </Card>+ ))}+ </div>+ )}+ </div>+ );+}diff --git a/src/app/(app)/settings/page.tsx b/src/app/(app)/settings/page.tsxnew file mode 100644index 00000000..0caab829--- /dev/null+++ b/src/app/(app)/settings/page.tsx@@ -0,0 +1,122 @@+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { Button } from "@/components/ui/button";+import { getActiveProject } from "@/server/active-project";+import { getGuardrails } from "@/server/db/guardrails";+import { updateGuardrailsAction } from "@/server/actions/guardrails";++export default async function SettingsPage() {+ const project = await getActiveProject();+ if (!project) {+ return (+ <div className="mx-auto max-w-md pt-12 text-sm text-muted-foreground">+ Select a project to edit its settings.+ </div>+ );+ }+ const g = getGuardrails(project.slug);+ const submit = updateGuardrailsAction.bind(null, project.slug);++ return (+ <div className="mx-auto max-w-2xl space-y-6">+ <header>+ <h1 className="text-2xl font-semibold tracking-tight">Settings</h1>+ <p className="text-sm text-muted-foreground">+ Project <span className="font-mono">{project.slug}</span> · Autonomy guardrails+ </p>+ </header>++ <Card>+ <CardHeader>+ <CardTitle>Autonomy</CardTitle>+ <CardDescription>+ Defaults are conservative. Loosen as you build trust with the CMO.+ </CardDescription>+ </CardHeader>+ <CardContent>+ <form action={submit} className="space-y-5">+ <div className="grid gap-4 sm:grid-cols-2">+ <Field+ id="max_daily_spend_usd"+ label="Max daily spend (USD)"+ value={g.max_daily_spend_usd}+ help="Hard cap. Halts all autonomous spending at this limit."+ />+ <Field+ id="max_concurrent_experiments"+ label="Max concurrent experiments"+ value={g.max_concurrent_experiments}+ help="CMO won't launch more than this many at once."+ />+ <Field+ id="spend_per_action_usd"+ label="Approval needed above (USD/action)"+ value={g.require_approval_above.spend_per_action_usd}+ help="Single actions above this go to approval inbox."+ />+ <Field+ id="bid_changes_percent"+ label="Approval needed for bid change ≥ (%)"+ value={g.require_approval_above.bid_changes_percent}+ help="Big bid swings get human approval."+ />+ </div>++ <fieldset className="space-y-3 rounded-md border p-4">+ <legend className="px-1 text-xs uppercase text-muted-foreground">+ Always require approval for:+ </legend>+ <Toggle+ id="new_channel_first_action"+ label="First action in a new channel"+ checked={g.require_approval_above.new_channel_first_action}+ />+ <Toggle+ id="content_publishing"+ label="Content publishing (Reddit post, X tweet, email send)"+ checked={g.require_approval_above.content_publishing}+ />+ <Toggle+ id="audience_change"+ label="Audience / targeting changes"+ checked={g.require_approval_above.audience_change}+ />+ </fieldset>++ <Button type="submit">Save guardrails</Button>+ </form>+ </CardContent>+ </Card>+ </div>+ );+}++function Field({+ id,+ label,+ value,+ help,+}: {+ id: string;+ label: string;+ value: number;+ help: string;+}) {+ return (+ <div className="space-y-1.5">+ <Label htmlFor={id}>{label}</Label>+ <Input id={id} name={id} type="number" defaultValue={value} step="any" min={0} />+ <p className="text-[11px] text-muted-foreground">{help}</p>+ </div>+ );+}++function Toggle({ id, label, checked }: { id: string; label: string; checked: boolean }) {+ return (+ <label htmlFor={id} className="flex cursor-pointer items-center gap-2 text-sm">+ <input id={id} name={id} type="checkbox" defaultChecked={checked} className="size-4" />+ <span>{label}</span>+ </label>+ );+}diff --git a/src/app/(app)/tasks/page.tsx b/src/app/(app)/tasks/page.tsxnew file mode 100644index 00000000..bd8bd133--- /dev/null+++ b/src/app/(app)/tasks/page.tsx@@ -0,0 +1,96 @@+import { Badge } from "@/components/ui/badge";+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";+import { getActiveProject } from "@/server/active-project";+import { listTasks } from "@/server/db/tasks";+import type { TaskStatus } from "@/types";++const STATUS_GROUPS: Array<{ status: TaskStatus; label: string }> = [+ { status: "proposed", label: "Proposed" },+ { status: "approved", label: "Approved" },+ { status: "running", label: "Running" },+ { status: "succeeded", label: "Succeeded" },+ { status: "failed", label: "Failed" },+ { status: "cancelled", label: "Cancelled" },+];++const STATUS_VARIANT: Record<TaskStatus, "default" | "secondary" | "outline" | "destructive"> = {+ proposed: "outline",+ approved: "secondary",+ running: "default",+ succeeded: "secondary",+ failed: "destructive",+ cancelled: "outline",+};++export default async function TasksPage() {+ const project = await getActiveProject();+ if (!project) {+ return (+ <div className="mx-auto max-w-md pt-12 text-sm text-muted-foreground">+ Select a project to see its tasks.+ </div>+ );+ }++ const tasks = listTasks(project.slug);+ const byStatus = new Map<TaskStatus, typeof tasks>();+ for (const t of tasks) {+ const list = byStatus.get(t.status) ?? [];+ list.push(t);+ byStatus.set(t.status, list);+ }++ return (+ <div className="mx-auto max-w-5xl space-y-6">+ <header>+ <h1 className="text-2xl font-semibold tracking-tight">Tasks</h1>+ <p className="text-sm text-muted-foreground">+ {tasks.length} total · CMO and specialist agents create tasks here as they+ delegate work.+ </p>+ </header>++ {tasks.length === 0 ? (+ <Card>+ <CardContent className="py-12 text-center text-sm text-muted-foreground">+ No tasks yet. Ask your CMO to do something in chat to populate this board.+ </CardContent>+ </Card>+ ) : (+ <div className="grid gap-4 md:grid-cols-3">+ {STATUS_GROUPS.map((group) => {+ const items = byStatus.get(group.status) ?? [];+ if (items.length === 0) return null;+ return (+ <Card key={group.status}>+ <CardHeader className="pb-2">+ <CardTitle className="flex items-center justify-between text-sm font-medium">+ {group.label}+ <span className="text-xs text-muted-foreground tabular-nums">+ {items.length}+ </span>+ </CardTitle>+ </CardHeader>+ <CardContent className="space-y-2">+ {items.map((t) => (+ <div key={t.id} className="rounded-md border bg-card p-3 text-xs space-y-1">+ <div className="flex items-center gap-2">+ <Badge variant={STATUS_VARIANT[t.status]} className="text-[10px]">+ {t.agent_id}+ </Badge>+ </div>+ <p className="line-clamp-3 text-foreground">{t.brief}</p>+ <p className="text-[10px] text-muted-foreground">+ {new Date(t.updated_at).toLocaleString()}+ </p>+ </div>+ ))}+ </CardContent>+ </Card>+ );+ })}+ </div>+ )}+ </div>+ );+}diff --git a/src/app/api/chat/route.ts b/src/app/api/chat/route.tsnew file mode 100644index 00000000..70d30a4a--- /dev/null+++ b/src/app/api/chat/route.ts@@ -0,0 +1,103 @@+import { NextResponse } from "next/server";+import { getActiveProject } from "@/server/active-project";+import {+ agentNameFor,+ templateForUrlSlug,+ type AgentTemplateKey,+} from "@/server/agent-templates";+import { streamAgentTurn } from "@/server/openclaw/agent-turn";+import { getSessionsView, setActiveSession } from "@/server/openclaw/sessions";++export const dynamic = "force-dynamic";+export const runtime = "nodejs";++type ChatPostBody = {+ message: string;+ agent?: string;+ /** Optional explicit OpenClaw session id (UUID). Defaults to the active one. */+ sessionId?: string;+};++export async function POST(request: Request) {+ const project = await getActiveProject();+ if (!project) {+ return NextResponse.json(+ { error: "No active project. Create one first." },+ { status: 400 },+ );+ }++ let body: ChatPostBody;+ try {+ body = (await request.json()) as ChatPostBody;+ } catch {+ return NextResponse.json({ error: "Invalid JSON body" }, { status: 400 });+ }+ if (!body?.message?.trim()) {+ return NextResponse.json({ error: "message is required" }, { status: 400 });+ }++ const requestedSlug = (body.agent ?? "cmo").trim();+ const template = templateForUrlSlug(requestedSlug);+ if (!template) {+ return NextResponse.json(+ { error: `Unknown agent: '${requestedSlug}'` },+ { status: 404 },+ );+ }++ // Resolve session: explicit body wins, otherwise the active session for+ // (project, agent). If none, getSessionsView mints a fresh UUID and uses it.+ let sessionId = body.sessionId?.trim();+ if (!sessionId) {+ const view = await getSessionsView(project.slug, template.key as AgentTemplateKey);+ sessionId = view.active.sessionId;+ }++ // Persist the active session in the cookie so reloads land back in the same+ // thread without us tracking anything ourselves.+ await setActiveSession(project.slug, template.key as AgentTemplateKey, sessionId);++ const agentName = agentNameFor(project.slug, template.key as AgentTemplateKey);+ const encoder = new TextEncoder();++ const stream = new ReadableStream({+ async start(controller) {+ const send = (event: string, data: unknown) => {+ controller.enqueue(+ encoder.encode(`event: ${event}\ndata: ${JSON.stringify(data)}\n\n`),+ );+ };++ try {+ send("meta", {+ project_slug: project.slug,+ agent: agentName,+ session_id: sessionId,+ });+ for await (const chunk of streamAgentTurn({+ agent: agentName,+ message: body.message,+ sessionId,+ })) {+ send("text", { chunk });+ }+ send("done", {});+ } catch (err) {+ send("error", {+ message: err instanceof Error ? err.message : String(err),+ });+ } finally {+ controller.close();+ }+ },+ });++ return new Response(stream, {+ headers: {+ "Content-Type": "text/event-stream",+ "Cache-Control": "no-cache",+ Connection: "keep-alive",+ },+ });+}diff --git a/src/app/api/oauth/[provider]/callback/route.ts b/src/app/api/oauth/[provider]/callback/route.tsnew file mode 100644index 00000000..af49e0ed--- /dev/null+++ b/src/app/api/oauth/[provider]/callback/route.ts@@ -0,0 +1,145 @@+import { NextResponse } from "next/server";+import { storeOAuthToken } from "@/server/db/oauth";+import type { OAuthProvider } from "@/types";++export const runtime = "nodejs";++/**+ * GET /api/oauth/[provider]/callback?code=...&state=...+ *+ * Provider redirects here after the user grants consent. We exchange the code+ * for tokens, encrypt with the master key, and persist to SQLite.+ */+export async function GET(+ request: Request,+ { params }: { params: Promise<{ provider: string }> },+) {+ const { provider } = await params;+ const url = new URL(request.url);+ const code = url.searchParams.get("code");+ const state = url.searchParams.get("state");+ const errorParam = url.searchParams.get("error");++ if (errorParam) {+ return htmlResponse(+ `<h1>OAuth denied</h1><p>The provider returned: <code>${escapeHtml(errorParam)}</code></p><p><a href="/connections">Back to Connections</a></p>`,+ 400,+ );+ }+ if (!code || !state) {+ return htmlResponse(`<h1>OAuth error</h1><p>Missing code or state.</p>`, 400);+ }++ let project: string;+ try {+ const decoded = JSON.parse(Buffer.from(state, "base64url").toString("utf8")) as {+ project: string;+ };+ project = decoded.project;+ } catch {+ return htmlResponse(`<h1>OAuth error</h1><p>Invalid state token.</p>`, 400);+ }++ const config = TOKEN_CONFIG[provider];+ if (!config || !config.clientId || !config.clientSecret) {+ return htmlResponse(+ `<h1>OAuth not configured</h1><p>Set ${config?.envClientId ?? "(client id env var)"} + secret in your environment.</p>`,+ 503,+ );+ }++ const callbackBase = url.origin;+ const tokenRes = await fetch(config.tokenEndpoint, {+ method: "POST",+ headers: { "Content-Type": "application/x-www-form-urlencoded" },+ body: new URLSearchParams({+ code,+ client_id: config.clientId,+ client_secret: config.clientSecret,+ redirect_uri: `${callbackBase}/api/oauth/${provider}/callback`,+ grant_type: "authorization_code",+ }),+ });++ if (!tokenRes.ok) {+ const detail = await tokenRes.text();+ return htmlResponse(+ `<h1>Token exchange failed</h1><pre>${escapeHtml(detail)}</pre>`,+ 502,+ );+ }++ const tokenData = (await tokenRes.json()) as {+ access_token: string;+ refresh_token?: string;+ expires_in: number;+ scope: string;+ token_type: string;+ };++ if (!tokenData.refresh_token) {+ return htmlResponse(+ `<h1>No refresh token</h1><p>Re-authorize and ensure the consent screen prompts for offline access.</p><p><a href="/connections">Back</a></p>`,+ 400,+ );+ }++ try {+ await storeOAuthToken({+ project_slug: project,+ provider: provider as OAuthProvider,+ account_label: "default",+ access_token: tokenData.access_token,+ refresh_token: tokenData.refresh_token,+ expires_at: new Date(Date.now() + tokenData.expires_in * 1000).toISOString(),+ scope: tokenData.scope ?? config.scopes.join(" "),+ });+ } catch (err) {+ return htmlResponse(+ `<h1>Could not store token</h1><pre>${escapeHtml(err instanceof Error ? err.message : String(err))}</pre><p>This usually means OS keychain is unavailable.</p>`,+ 500,+ );+ }++ return NextResponse.redirect(`${callbackBase}/connections?connected=${provider}`);+}++type TokenConfig = {+ clientId: string | undefined;+ clientSecret: string | undefined;+ envClientId: string;+ tokenEndpoint: string;+ scopes: string[];+};++const TOKEN_CONFIG: Record<string, TokenConfig> = {+ google_ads: {+ clientId: process.env.GOOGLE_ADS_CLIENT_ID,+ clientSecret: process.env.GOOGLE_ADS_CLIENT_SECRET,+ envClientId: "GOOGLE_ADS_CLIENT_ID",+ tokenEndpoint: "https://oauth2.googleapis.com/token",+ scopes: ["https://www.googleapis.com/auth/adwords"],+ },+ gsc: {+ clientId: process.env.GSC_CLIENT_ID,+ clientSecret: process.env.GSC_CLIENT_SECRET,+ envClientId: "GSC_CLIENT_ID",+ tokenEndpoint: "https://oauth2.googleapis.com/token",+ scopes: ["https://www.googleapis.com/auth/webmasters.readonly"],+ },+};++function htmlResponse(html: string, status = 200): Response {+ return new Response(+ `<!doctype html><meta charset="utf-8"><style>body{font-family:system-ui;max-width:32rem;margin:4rem auto;padding:0 1rem;color:#18181b}h1{font-size:1.2rem}a{color:#2563eb}pre{background:#f4f4f5;padding:.75rem;border-radius:.5rem;overflow:auto}</style>${html}`,+ { status, headers: { "Content-Type": "text/html; charset=utf-8" } },+ );+}++function escapeHtml(s: string): string {+ return s+ .replace(/&/g, "&")+ .replace(/</g, "<")+ .replace(/>/g, ">")+ .replace(/"/g, """);+}diff --git a/src/app/api/oauth/[provider]/start/route.ts b/src/app/api/oauth/[provider]/start/route.tsnew file mode 100644index 00000000..80e16580--- /dev/null+++ b/src/app/api/oauth/[provider]/start/route.ts@@ -0,0 +1,86 @@+import { NextResponse } from "next/server";++export const runtime = "nodejs";++/**+ * GET /api/oauth/[provider]/start?project=<slug>+ *+ * V1 scaffold: redirects to the provider's OAuth consent screen with our+ * localhost callback URL. The actual provider client IDs + scopes are+ * env-driven so users can register their own OAuth app.+ *+ * Required env vars (per provider):+ * GOOGLE_ADS_CLIENT_ID, GOOGLE_ADS_CLIENT_SECRET+ * GSC_CLIENT_ID, GSC_CLIENT_SECRET+ *+ * If not set, this returns a helpful 503 explaining setup steps instead of+ * silently sending the user to a broken page.+ */+export async function GET(+ request: Request,+ { params }: { params: Promise<{ provider: string }> },+) {+ const { provider } = await params;+ const url = new URL(request.url);+ const project = url.searchParams.get("project");+ if (!project) {+ return NextResponse.json({ error: "project query param required" }, { status: 400 });+ }++ const config = OAUTH_CONFIG[provider];+ if (!config) {+ return NextResponse.json({ error: `Unknown provider: ${provider}` }, { status: 404 });+ }++ if (!config.clientId) {+ return new Response(+ `OAuth not configured for '${provider}'. Set ${config.envClientId} and ${config.envClientSecret} in your environment, then restart notfair-cmo.\n\nSee: README#oauth-setup`,+ { status: 503, headers: { "Content-Type": "text/plain" } },+ );+ }++ const callbackBase = url.origin;+ const callback = `${callbackBase}/api/oauth/${provider}/callback`;+ const state = encodeStateToken(project);++ const authUrl = new URL(config.authEndpoint);+ authUrl.searchParams.set("client_id", config.clientId);+ authUrl.searchParams.set("redirect_uri", callback);+ authUrl.searchParams.set("response_type", "code");+ authUrl.searchParams.set("scope", config.scopes.join(" "));+ authUrl.searchParams.set("access_type", "offline");+ authUrl.searchParams.set("prompt", "consent");+ authUrl.searchParams.set("state", state);++ return NextResponse.redirect(authUrl.toString());+}++type ProviderConfig = {+ clientId: string | undefined;+ envClientId: string;+ envClientSecret: string;+ authEndpoint: string;+ scopes: string[];+};++const OAUTH_CONFIG: Record<string, ProviderConfig> = {+ google_ads: {+ clientId: process.env.GOOGLE_ADS_CLIENT_ID,+ envClientId: "GOOGLE_ADS_CLIENT_ID",+ envClientSecret: "GOOGLE_ADS_CLIENT_SECRET",+ authEndpoint: "https://accounts.google.com/o/oauth2/v2/auth",+ scopes: ["https://www.googleapis.com/auth/adwords"],+ },+ gsc: {+ clientId: process.env.GSC_CLIENT_ID,+ envClientId: "GSC_CLIENT_ID",+ envClientSecret: "GSC_CLIENT_SECRET",+ authEndpoint: "https://accounts.google.com/o/oauth2/v2/auth",+ scopes: ["https://www.googleapis.com/auth/webmasters.readonly"],+ },+};++function encodeStateToken(project: string): string {+ // Simple state encoding; in production add CSRF nonce verification.+ return Buffer.from(JSON.stringify({ project, ts: Date.now() })).toString("base64url");+}diff --git a/src/app/api/projects/[slug]/provision/route.ts b/src/app/api/projects/[slug]/provision/route.tsnew file mode 100644index 00000000..4f164c69--- /dev/null+++ b/src/app/api/projects/[slug]/provision/route.ts@@ -0,0 +1,23 @@+import { NextResponse } from "next/server";+import { getProject } from "@/server/db/projects";+import { ensureProjectAgents } from "@/server/agent-templates";++export const runtime = "nodejs";++/**+ * POST /api/projects/[slug]/provision+ * Idempotently creates OpenClaw agents for this project (CMO + specialists).+ * Called from onboarding flow once after project creation.+ */+export async function POST(+ _request: Request,+ { params }: { params: Promise<{ slug: string }> },+) {+ const { slug } = await params;+ const project = getProject(slug);+ if (!project) {+ return NextResponse.json({ error: "Project not found" }, { status: 404 });+ }+ const result = await ensureProjectAgents(slug);+ return NextResponse.json({ ok: true, ...result });+}diff --git a/src/app/globals.css b/src/app/globals.cssnew file mode 100644index 00000000..f99c2b96--- /dev/null+++ b/src/app/globals.css@@ -0,0 +1,111 @@+@import "tailwindcss";++@custom-variant dark (&:is(.dark *));++@layer base {+ :root {+ --background: 0 0% 100%;+ --foreground: 240 10% 3.9%;+ --card: 0 0% 100%;+ --card-foreground: 240 10% 3.9%;+ --popover: 0 0% 100%;+ --popover-foreground: 240 10% 3.9%;+ --primary: 240 5.9% 10%;+ --primary-foreground: 0 0% 98%;+ --secondary: 240 4.8% 95.9%;+ --secondary-foreground: 240 5.9% 10%;+ --muted: 240 4.8% 95.9%;+ --muted-foreground: 240 3.8% 46.1%;+ --accent: 240 4.8% 95.9%;+ --accent-foreground: 240 5.9% 10%;+ --destructive: 0 84.2% 60.2%;+ --destructive-foreground: 0 0% 98%;+ --border: 240 5.9% 90%;+ --input: 240 5.9% 90%;+ --ring: 240 5.9% 10%;+ --radius: 0.5rem;+ }++ .dark {+ --background: 240 10% 3.9%;+ --foreground: 0 0% 98%;+ --card: 240 10% 3.9%;+ --card-foreground: 0 0% 98%;+ --popover: 240 10% 3.9%;+ --popover-foreground: 0 0% 98%;+ --primary: 0 0% 98%;+ --primary-foreground: 240 5.9% 10%;+ --secondary: 240 3.7% 15.9%;+ --secondary-foreground: 0 0% 98%;+ --muted: 240 3.7% 15.9%;+ --muted-foreground: 240 5% 64.9%;+ --accent: 240 3.7% 15.9%;+ --accent-foreground: 0 0% 98%;+ --destructive: 0 62.8% 30.6%;+ --destructive-foreground: 0 0% 98%;+ --border: 240 3.7% 15.9%;+ --input: 240 3.7% 15.9%;+ --ring: 240 4.9% 83.9%;+ }+}++@theme inline {+ --color-background: hsl(var(--background));+ --color-foreground: hsl(var(--foreground));+ --color-card: hsl(var(--card));+ --color-card-foreground: hsl(var(--card-foreground));+ --color-popover: hsl(var(--popover));+ --color-popover-foreground: hsl(var(--popover-foreground));+ --color-primary: hsl(var(--primary));+ --color-primary-foreground: hsl(var(--primary-foreground));+ --color-secondary: hsl(var(--secondary));+ --color-secondary-foreground: hsl(var(--secondary-foreground));+ --color-muted: hsl(var(--muted));+ --color-muted-foreground: hsl(var(--muted-foreground));+ --color-accent: hsl(var(--accent));+ --color-accent-foreground: hsl(var(--accent-foreground));+ --color-destructive: hsl(var(--destructive));+ --color-destructive-foreground: hsl(var(--destructive-foreground));+ --color-border: hsl(var(--border));+ --color-input: hsl(var(--input));+ --color-ring: hsl(var(--ring));+ --radius-lg: var(--radius);+ --radius-md: calc(var(--radius) - 2px);+ --radius-sm: calc(var(--radius) - 4px);+ --color-sidebar-ring: var(--sidebar-ring);+ --color-sidebar-border: var(--sidebar-border);+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);+ --color-sidebar-accent: var(--sidebar-accent);+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);+ --color-sidebar-primary: var(--sidebar-primary);+ --color-sidebar-foreground: var(--sidebar-foreground);+ --color-sidebar: var(--sidebar);+}++@layer base {+ * {+ border-color: hsl(var(--border));+ }+}++:root {+ --sidebar: hsl(0 0% 98%);+ --sidebar-foreground: hsl(240 5.3% 26.1%);+ --sidebar-primary: hsl(240 5.9% 10%);+ --sidebar-primary-foreground: hsl(0 0% 98%);+ --sidebar-accent: hsl(240 4.8% 95.9%);+ --sidebar-accent-foreground: hsl(240 5.9% 10%);+ --sidebar-border: hsl(220 13% 91%);+ --sidebar-ring: hsl(217.2 91.2% 59.8%);+}++.dark {+ --sidebar: hsl(240 5.9% 10%);+ --sidebar-foreground: hsl(240 4.8% 95.9%);+ --sidebar-primary: hsl(224.3 76.3% 48%);+ --sidebar-primary-foreground: hsl(0 0% 100%);+ --sidebar-accent: hsl(240 3.7% 15.9%);+ --sidebar-accent-foreground: hsl(240 4.8% 95.9%);+ --sidebar-border: hsl(240 3.7% 15.9%);+ --sidebar-ring: hsl(217.2 91.2% 59.8%);+}diff --git a/src/app/layout.tsx b/src/app/layout.tsxnew file mode 100644index 00000000..cb8b6c24--- /dev/null+++ b/src/app/layout.tsx@@ -0,0 +1,24 @@+import type { Metadata } from "next";+import { TooltipProvider } from "@/components/ui/tooltip";+import { Toaster } from "@/components/ui/sonner";+import "./globals.css";++export const metadata: Metadata = {+ title: "notfair CMO",+ description: "Your local AI marketing team.",+};++export default function RootLayout({+ children,+}: {+ children: React.ReactNode;+}) {+ return (+ <html lang="en" suppressHydrationWarning>+ <body className="min-h-screen bg-background text-foreground antialiased">+ <TooltipProvider delayDuration={200}>{children}</TooltipProvider>+ <Toaster position="top-right" richColors />+ </body>+ </html>+ );+}diff --git a/src/app/onboarding/layout.tsx b/src/app/onboarding/layout.tsxnew file mode 100644index 00000000..fe022130--- /dev/null+++ b/src/app/onboarding/layout.tsx@@ -0,0 +1,4 @@+// Standalone layout: no sidebar, no chrome. The onboarding flow is the entire screen.+export default function OnboardingLayout({ children }: { children: React.ReactNode }) {+ return <div className="min-h-screen bg-background p-6">{children}</div>;+}diff --git a/src/app/onboarding/page.tsx b/src/app/onboarding/page.tsxnew file mode 100644index 00000000..10de8d76--- /dev/null+++ b/src/app/onboarding/page.tsx@@ -0,0 +1,5 @@+import { OnboardingFlow } from "@/components/onboarding-flow";++export default function OnboardingPage() {+ return <OnboardingFlow />;+}diff --git a/src/components/agent-chat.tsx b/src/components/agent-chat.tsxnew file mode 100644index 00000000..645bb8fe--- /dev/null+++ b/src/components/agent-chat.tsx@@ -0,0 +1,436 @@+"use client";++import { useLayoutEffect, useMemo, useRef, useState, useTransition } from "react";+import { useRouter } from "next/navigation";+import { Send, AlertCircle, StopCircle } from "lucide-react";+import { Button } from "@/components/ui/button";+import { cn } from "@/lib/utils";+import { toast } from "sonner";+import {+ filterSlashCommands,+ executeLocalSlashCommand,+ parseSlashMessage,+ type SlashCommand,+} from "@/lib/slash-commands";+import { SlashCommandPopover } from "./slash-command-popover";+import { newSessionAction } from "@/server/actions/sessions";++type Message = {+ id: string;+ role: "user" | "assistant" | "error";+ body: string;+};++export type InitialMessage = {+ id: string;+ role: "user" | "assistant";+ body: string;+};++type Props = {+ projectSlug: string;+ agentSlug: string;+ agentDisplayName: string;+ sessionId: string;+ initialMessages?: InitialMessage[];+};++export function AgentChat({+ projectSlug: _projectSlug,+ agentSlug,+ agentDisplayName,+ sessionId,+ initialMessages = [],+}: Props) {+ const [messages, setMessages] = useState<Message[]>(initialMessages);+ const [input, setInput] = useState("");+ const [pending, setPending] = useState(false);+ const [slashIndex, setSlashIndex] = useState(0);+ const scrollRef = useRef<HTMLDivElement>(null);+ const bottomRef = useRef<HTMLDivElement>(null);+ const abortRef = useRef<AbortController | null>(null);+ const textareaRef = useRef<HTMLTextAreaElement>(null);+ const router = useRouter();+ const [, startTransition] = useTransition();++ // Slash command autocomplete shows when the user's input starts with `/`+ // and has not yet been broken by a space (i.e., they're still composing the+ // command name, not its argument).+ const slashQuery = input.startsWith("/") && !input.includes(" ") ? input : null;+ const slashOpen = slashQuery !== null && !pending;+ const slashMatches = useMemo<SlashCommand[]>(+ () => (slashOpen ? filterSlashCommands(slashQuery!) : []),+ [slashOpen, slashQuery],+ );+ const safeSlashIndex = slashMatches.length === 0+ ? 0+ : Math.min(slashIndex, slashMatches.length - 1);++ function insertSlashCommand(cmd: SlashCommand) {+ // Catalog `name` is the command without the leading slash ("new", "clear").+ // Inserts must include it so the textarea ends up with "/new " — otherwise+ // the next Enter sends the bare word to the agent.+ const insert = cmd.insert ?? `/${cmd.name} `;+ setInput(insert);+ setSlashIndex(0);+ requestAnimationFrame(() => {+ const ta = textareaRef.current;+ if (ta) {+ ta.focus();+ ta.setSelectionRange(insert.length, insert.length);+ autoResize(ta);+ }+ });+ }++ // Keep the message thread pinned to the bottom on send / streaming updates.+ // Use the scroll container directly (not scrollIntoView on a sentinel) so we+ // don't accidentally scroll the whole page if the chat is nested.+ useLayoutEffect(() => {+ const el = scrollRef.current;+ if (!el) return;+ el.scrollTop = el.scrollHeight;+ }, [messages, pending]);++ // Auto-grow the textarea up to a cap so long composer drafts don't crowd+ // the message thread.+ function autoResize(el: HTMLTextAreaElement) {+ el.style.height = "auto";+ el.style.height = `${Math.min(el.scrollHeight, 200)}px`;+ }++ async function send() {+ const text = input.trim();+ if (!text || pending) return;++ // Local-only slash commands (clear, new, stop, help) — mirror OpenClaw web+ // UI behavior: handle client-side, do NOT send to the agent.+ const parsed = parseSlashMessage(text);+ if (parsed) {+ const action = executeLocalSlashCommand(parsed.command);+ if (action) {+ setInput("");+ if (textareaRef.current) textareaRef.current.style.height = "auto";+ switch (action.kind) {+ case "clear":+ setMessages([]);+ return;+ case "new-session":+ // Create a fresh OpenClaw session id via server action, then refresh+ // the route so the page re-loads with empty history.+ startTransition(async () => {+ const r = await newSessionAction(agentSlug);+ if (!r.ok) toast.error(r.error);+ else router.refresh();+ });+ return;+ case "stop":+ if (abortRef.current) abortRef.current.abort();+ return;+ case "help": {+ const helpId = `a-${Date.now()}`;+ setMessages((m) => [+ ...m,+ { id: `u-${Date.now()}`, role: "user", body: text },+ { id: helpId, role: "assistant", body: action.content },+ ]);+ return;+ }+ }+ }+ }++ const userMessage: Message = { id: `u-${Date.now()}`, role: "user", body: text };+ const assistantId = `a-${Date.now()}`;+ setMessages((m) => [...m, userMessage, { id: assistantId, role: "assistant", body: "" }]);+ setInput("");+ if (textareaRef.current) {+ textareaRef.current.style.height = "auto";+ }+ setPending(true);++ const ctrl = new AbortController();+ abortRef.current = ctrl;++ try {+ const res = await fetch("/api/chat", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ message: text, agent: agentSlug, sessionId }),+ signal: ctrl.signal,+ });+ if (!res.ok || !res.body) {+ throw new Error((await res.text()) || `HTTP ${res.status}`);+ }++ const reader = res.body.getReader();+ const decoder = new TextDecoder();+ let buffer = "";+ let receivedText = false;++ for (;;) {+ const { value, done } = await reader.read();+ if (done) break;+ buffer += decoder.decode(value, { stream: true });+ const events = buffer.split("\n\n");+ buffer = events.pop() ?? "";+ for (const raw of events) {+ const lines = raw.split("\n");+ const evtLine = lines.find((l) => l.startsWith("event: "));+ const dataLine = lines.find((l) => l.startsWith("data: "));+ if (!evtLine || !dataLine) continue;+ const evt = evtLine.slice("event: ".length);+ let data: unknown;+ try {+ data = JSON.parse(dataLine.slice("data: ".length));+ } catch {+ continue;+ }+ if (evt === "text") {+ const chunk = (data as { chunk: string }).chunk;+ if (chunk.length > 0) receivedText = true;+ setMessages((m) =>+ m.map((msg) =>+ msg.id === assistantId ? { ...msg, body: msg.body + chunk } : msg,+ ),+ );+ } else if (evt === "error") {+ const msg = (data as { message: string }).message;+ receivedText = true;+ setMessages((m) =>+ m.map((m2) =>+ m2.id === assistantId+ ? { ...m2, role: "error", body: formatAgentError(msg) }+ : m2,+ ),+ );+ toast.error(formatAgentError(msg));+ }+ }+ }++ // Slash commands forwarded to OpenClaw (compact, model, think, etc.)+ // sometimes complete with zero stdout. Leave a quiet acknowledgement so+ // the bubble doesn't sit on "thinking…" forever.+ if (!receivedText) {+ setMessages((m) =>+ m.map((m2) =>+ m2.id === assistantId+ ? { ...m2, body: "(command handled by OpenClaw, no reply)" }+ : m2,+ ),+ );+ }+ } catch (err) {+ const isAbort = err instanceof DOMException && err.name === "AbortError";+ if (isAbort) {+ setMessages((m) =>+ m.map((m2) =>+ m2.id === assistantId+ ? { ...m2, body: (m2.body || "") + "\n\n(stopped)" }+ : m2,+ ),+ );+ } else {+ const msg = err instanceof Error ? err.message : String(err);+ setMessages((m) =>+ m.map((m2) =>+ m2.id === assistantId+ ? { ...m2, role: "error", body: formatAgentError(msg) }+ : m2,+ ),+ );+ toast.error(formatAgentError(msg));+ }+ } finally {+ setPending(false);+ abortRef.current = null;+ }+ }++ function onKey(e: React.KeyboardEvent<HTMLTextAreaElement>) {+ // Slash autocomplete: while the popover is open, Tab AND Enter both insert+ // the highlighted match. After insert the textarea ends in a space, which+ // closes the popover — a second Enter then submits the input as usual.+ if (slashOpen && slashMatches.length > 0) {+ if (e.key === "ArrowDown") {+ e.preventDefault();+ setSlashIndex((i) => (i + 1) % slashMatches.length);+ return;+ }+ if (e.key === "ArrowUp") {+ e.preventDefault();+ setSlashIndex((i) => (i - 1 + slashMatches.length) % slashMatches.length);+ return;+ }+ if (e.key === "Tab" || (e.key === "Enter" && !e.shiftKey)) {+ e.preventDefault();+ const picked = slashMatches[safeSlashIndex];+ if (picked) insertSlashCommand(picked);+ return;+ }+ if (e.key === "Escape") {+ e.preventDefault();+ setSlashIndex(0);+ setInput("");+ return;+ }+ }+ if (e.key === "Enter" && !e.shiftKey) {+ e.preventDefault();+ void send();+ }+ }++ return (+ <div className="flex h-full flex-col">+ {/* Scrollable message thread */}+ <div+ ref={scrollRef}+ className="min-h-0 flex-1 overflow-y-auto"+ role="log"+ aria-live="polite"+ >+ <div className="mx-auto w-full max-w-3xl px-6 py-8">+ {messages.length === 0 ? (+ <EmptyState agentDisplayName={agentDisplayName} />+ ) : (+ <div className="space-y-6">+ {messages.map((m) => (+ <MessageRow+ key={m.id}+ message={m}+ agentDisplayName={agentDisplayName}+ />+ ))}+ </div>+ )}+ <div ref={bottomRef} />+ </div>+ </div>++ {/* Composer — sits below the scroll area, full width with centered content */}+ <div className="border-t bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/80">+ <div className="relative mx-auto w-full max-w-3xl px-6 py-4">+ {slashOpen && (+ <SlashCommandPopover+ commands={slashMatches}+ selectedIndex={safeSlashIndex}+ onSelect={insertSlashCommand}+ onHover={setSlashIndex}+ />+ )}+ <form+ className="flex items-end gap-2"+ onSubmit={(e) => {+ e.preventDefault();+ void send();+ }}+ >+ <textarea+ ref={textareaRef}+ className="flex min-h-[44px] flex-1 resize-none rounded-2xl border bg-background px-4 py-2.5 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"+ placeholder={`Message ${agentDisplayName}… (type / for commands)`}+ value={input}+ onChange={(e) => {+ setInput(e.target.value);+ setSlashIndex(0);+ autoResize(e.target);+ }}+ onKeyDown={onKey}+ disabled={pending}+ rows={1}+ />+ {pending ? (+ <Button+ type="button"+ variant="outline"+ onClick={() => abortRef.current?.abort()}+ className="h-11 rounded-2xl"+ >+ <StopCircle className="size-4" />+ <span className="sr-only">Stop</span>+ </Button>+ ) : (+ <Button type="submit" className="h-11 rounded-2xl">+ <Send className="size-4" />+ <span className="sr-only">Send</span>+ </Button>+ )}+ </form>+ </div>+ <p className="pb-3 text-center text-[10px] text-muted-foreground">+ Enter to send · Shift+Enter for newline · / for slash commands+ </p>+ </div>+ </div>+ );+}++function EmptyState({ agentDisplayName }: { agentDisplayName: string }) {+ return (+ <div className="flex flex-col items-center justify-center py-24 text-center">+ <div className="space-y-2">+ <h2 className="text-lg font-medium text-foreground">+ Talk to {agentDisplayName}+ </h2>+ <p className="max-w-md text-sm text-muted-foreground">+ History persists per thread. Switch threads from the dropdown above.+ </p>+ </div>+ </div>+ );+}++function MessageRow({+ message,+ agentDisplayName,+}: {+ message: Message;+ agentDisplayName: string;+}) {+ if (message.role === "user") {+ return (+ <div className="flex justify-end">+ <div className="max-w-[85%] rounded-2xl bg-muted px-4 py-2.5 text-sm leading-relaxed whitespace-pre-wrap break-words">+ {message.body}+ </div>+ </div>+ );+ }+ if (message.role === "error") {+ return (+ <div className="flex items-start gap-2 rounded-md border border-destructive/50 bg-destructive/5 p-3 text-sm">+ <AlertCircle className="mt-0.5 size-4 shrink-0 text-destructive" />+ <div className="min-w-0 flex-1">+ <div className="font-medium text-destructive">+ Couldn’t reach {agentDisplayName}.+ </div>+ <div className="mt-1 text-xs text-muted-foreground whitespace-pre-wrap break-words">+ {message.body}+ </div>+ </div>+ </div>+ );+ }+ // Assistant: plain prose, full width within max-w-3xl. No bubble — Claude.ai pattern.+ return (+ <div className="group">+ <div+ className={cn(+ "text-sm leading-relaxed whitespace-pre-wrap break-words text-foreground",+ message.body === "" && "italic text-muted-foreground",+ )}+ >+ {message.body || `${agentDisplayName} is thinking…`}+ </div>+ </div>+ );+}++function formatAgentError(raw: string): string {+ if (raw.includes("missing scope")) {+ return `${raw}\n\nHint: this OpenClaw slash command requires a permission your gateway token does not grant. Use the “New thread” button above for new conversations.`;+ }+ return raw;+}diff --git a/src/components/agent-nav.tsx b/src/components/agent-nav.tsxnew file mode 100644index 00000000..6d6ff863--- /dev/null+++ b/src/components/agent-nav.tsx@@ -0,0 +1,52 @@+"use client";++import Link from "next/link";+import { usePathname } from "next/navigation";+import { Briefcase, Megaphone, Search, type LucideIcon } from "lucide-react";+import {+ SidebarMenu,+ SidebarMenuButton,+ SidebarMenuItem,+} from "@/components/ui/sidebar";+import type { AgentTemplate, AgentTemplateKey } from "@/server/agent-templates";++type AgentNavEntry = {+ key: AgentTemplate["key"];+ slug: string;+ display_name: string;+ description: string;+};++type Props = {+ agents: AgentNavEntry[];+};++const ICONS: Record<AgentTemplateKey, LucideIcon> = {+ cmo: Briefcase,+ google_ads: Megaphone,+ seo: Search,+};++export function AgentNav({ agents }: Props) {+ const pathname = usePathname();++ return (+ <SidebarMenu>+ {agents.map((a) => {+ const href = `/chat/${a.slug}`;+ const isActive = pathname === href;+ const Icon = ICONS[a.key] ?? Briefcase;+ return (+ <SidebarMenuItem key={a.key}>+ <SidebarMenuButton asChild isActive={isActive}>+ <Link href={href}>+ <Icon />+ <span>{a.display_name}</span>+ </Link>+ </SidebarMenuButton>+ </SidebarMenuItem>+ );+ })}+ </SidebarMenu>+ );+}diff --git a/src/components/app-sidebar.tsx b/src/components/app-sidebar.tsxnew file mode 100644index 00000000..844e76e3--- /dev/null+++ b/src/components/app-sidebar.tsx@@ -0,0 +1,116 @@+import Link from "next/link";+import {+ Sidebar,+ SidebarContent,+ SidebarFooter,+ SidebarGroup,+ SidebarGroupContent,+ SidebarGroupLabel,+ SidebarHeader,+ SidebarMenu,+ SidebarMenuButton,+ SidebarMenuItem,+ SidebarSeparator,+} from "@/components/ui/sidebar";+import {+ Home,+ CheckCircle2,+ ListChecks,+ Clock,+ Plug,+ Settings,+ Activity,+ type LucideIcon,+} from "lucide-react";+import { listProjects } from "@/server/db/projects";+import { getActiveProject } from "@/server/active-project";+import { pendingApprovalCount } from "@/server/db/approvals";+import { TEMPLATES, urlSlugForTemplate, type AgentTemplateKey } from "@/server/agent-templates";+import { ProjectSwitcher } from "./project-switcher";+import { CostMeter } from "./cost-meter";+import { AgentNav } from "./agent-nav";+import { Badge } from "@/components/ui/badge";++type NavItem = {+ href: string;+ label: string;+ icon: LucideIcon;+ badge?: boolean;+};++const NAV: NavItem[] = [+ { href: "/", label: "Home", icon: Home },+ { href: "/approvals", label: "Approvals", icon: CheckCircle2, badge: true },+ { href: "/tasks", label: "Tasks", icon: ListChecks },+ { href: "/crons", label: "Crons", icon: Clock },+ { href: "/activity", label: "Activity", icon: Activity },+ { href: "/connections", label: "Connections", icon: Plug },+ { href: "/settings", label: "Settings", icon: Settings },+];++export async function AppSidebar() {+ const projects = listProjects();+ const active = await getActiveProject();+ const approvalsBadge = active ? pendingApprovalCount(active.slug) : 0;++ return (+ <Sidebar collapsible="icon">+ <SidebarHeader>+ <SidebarMenu>+ <SidebarMenuItem>+ <ProjectSwitcher+ projects={projects}+ activeSlug={active?.slug ?? null}+ />+ </SidebarMenuItem>+ </SidebarMenu>+ </SidebarHeader>++ <SidebarContent>+ {active && (+ <SidebarGroup>+ <SidebarGroupLabel>Agents</SidebarGroupLabel>+ <SidebarGroupContent>+ <AgentNav+ agents={TEMPLATES.map((t) => ({+ key: t.key,+ slug: urlSlugForTemplate(t.key as AgentTemplateKey),+ display_name: t.display_name,+ description: t.description,+ }))}+ />+ </SidebarGroupContent>+ </SidebarGroup>+ )}++ <SidebarGroup>+ <SidebarGroupLabel>Project</SidebarGroupLabel>+ <SidebarGroupContent>+ <SidebarMenu>+ {NAV.map((item) => (+ <SidebarMenuItem key={item.href}>+ <SidebarMenuButton asChild>+ <Link href={item.href}>+ <item.icon />+ <span>{item.label}</span>+ {item.badge && approvalsBadge > 0 && (+ <Badge variant="secondary" className="ml-auto h-5 px-1.5 text-[10px]">+ {approvalsBadge}+ </Badge>+ )}+ </Link>+ </SidebarMenuButton>+ </SidebarMenuItem>+ ))}+ </SidebarMenu>+ </SidebarGroupContent>+ </SidebarGroup>+ </SidebarContent>++ <SidebarFooter>+ <SidebarSeparator />+ {active && <CostMeter project_slug={active.slug} />}+ </SidebarFooter>+ </Sidebar>+ );+}diff --git a/src/components/approval-card.tsx b/src/components/approval-card.tsxnew file mode 100644index 00000000..c8c71687--- /dev/null+++ b/src/components/approval-card.tsx@@ -0,0 +1,99 @@+"use client";++import { useState, useTransition } from "react";+import { ChevronDown } from "lucide-react";+import { Button } from "@/components/ui/button";+import { Badge } from "@/components/ui/badge";+import { Card, CardContent } from "@/components/ui/card";+import { toast } from "sonner";+import { approveAction, rejectAction } from "@/server/actions/approvals";+import type { Approval } from "@/types";++const ACTION_TYPE_LABEL: Record<Approval["action_type"], string> = {+ spend: "Spend",+ content_publishing: "Content",+ new_channel: "New channel",+ bid_change: "Bid change",+ audience_change: "Audience",+ other: "Other",+};++function formatUsd(n: number) {+ return n.toLocaleString("en-US", { style: "currency", currency: "USD" });+}++function timeAgo(iso: string) {+ const seconds = Math.max(0, (Date.now() - new Date(iso).getTime()) / 1000);+ if (seconds < 60) return `${Math.floor(seconds)}s ago`;+ if (seconds < 3600) return `${Math.floor(seconds / 60)}m ago`;+ if (seconds < 86400) return `${Math.floor(seconds / 3600)}h ago`;+ return `${Math.floor(seconds / 86400)}d ago`;+}++export function ApprovalCard({ approval }: { approval: Approval }) {+ const [expanded, setExpanded] = useState(false);+ const [pending, start] = useTransition();++ function approve() {+ start(async () => {+ const r = await approveAction(approval.id);+ if (!r.ok) toast.error(r.error ?? "Failed to approve");+ else toast.success("Approved — running now");+ });+ }+ function reject() {+ start(async () => {+ const r = await rejectAction(approval.id);+ if (!r.ok) toast.error(r.error ?? "Failed to reject");+ else toast.success("Rejected");+ });+ }++ return (+ <Card className="overflow-hidden" role="region" aria-label={approval.action_summary}>+ <CardContent className="space-y-3 py-4">+ <div className="flex items-start justify-between gap-3">+ <div className="space-y-1">+ <Badge variant="outline" className="text-[10px]">+ {ACTION_TYPE_LABEL[approval.action_type]}+ </Badge>+ <p className="text-sm font-medium">{approval.action_summary}</p>+ <p className="text-xs text-muted-foreground">+ {approval.cost_estimate_usd > 0 && (+ <>+ Cost: <span className="font-medium">{formatUsd(approval.cost_estimate_usd)}</span> ·{" "}+ </>+ )}+ Agent <span className="font-mono">{approval.agent_id}</span> · {timeAgo(approval.created_at)}+ </p>+ </div>+ </div>++ {approval.reasoning && (+ <button+ type="button"+ onClick={() => setExpanded((e) => !e)}+ className="flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground"+ >+ <ChevronDown className={`size-3 transition-transform ${expanded ? "rotate-180" : ""}`} />+ Why?+ </button>+ )}+ {expanded && approval.reasoning && (+ <p className="rounded-md bg-muted/40 p-3 text-xs leading-relaxed text-muted-foreground whitespace-pre-wrap">+ {approval.reasoning}+ </p>+ )}++ <div className="flex gap-2">+ <Button size="sm" onClick={approve} disabled={pending}>+ Approve+ </Button>+ <Button size="sm" variant="outline" onClick={reject} disabled={pending}>+ Reject+ </Button>+ </div>+ </CardContent>+ </Card>+ );+}diff --git a/src/components/client-mount-gate.tsx b/src/components/client-mount-gate.tsxnew file mode 100644index 00000000..05031369--- /dev/null+++ b/src/components/client-mount-gate.tsx@@ -0,0 +1,27 @@+"use client";++import { useEffect, useState } from "react";++/**+ * Render children only AFTER the client has mounted. The server renders an empty+ * shell, the client mounts and swaps in real content. Eliminates every class of+ * hydration mismatch in the wrapped tree (cookie-state divergence, lazy Radix+ * event handlers, browser-extension HTML mutations, etc.) at the cost of an+ * extra paint and zero SSR for the wrapped region.+ *+ * V1 trade-off: the app shell isn't on the SEO/perf critical path; the chat+ * itself is what matters, and that's already client-driven. Silencing the+ * hydration noise is worth the deferred mount.+ */+export function ClientMountGate({+ children,+ fallback = null,+}: {+ children: React.ReactNode;+ fallback?: React.ReactNode;+}) {+ const [mounted, setMounted] = useState(false);+ useEffect(() => setMounted(true), []);+ if (!mounted) return <>{fallback}</>;+ return <>{children}</>;+}diff --git a/src/components/cost-meter.tsx b/src/components/cost-meter.tsxnew file mode 100644index 00000000..84dd6753--- /dev/null+++ b/src/components/cost-meter.tsx@@ -0,0 +1,95 @@+import { costToday } from "@/server/db/cost";+import { getGuardrails } from "@/server/db/guardrails";+import {+ Tooltip,+ TooltipContent,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { cn } from "@/lib/utils";++type CostMeterProps = {+ project_slug: string;+};++function formatUsd(amount: number): string {+ return amount.toLocaleString("en-US", { style: "currency", currency: "USD" });+}++export function CostMeter({ project_slug }: CostMeterProps) {+ const cost = costToday(project_slug);+ const guardrails = getGuardrails(project_slug);+ const cap = guardrails.max_daily_spend_usd;+ const pct = cap > 0 ? Math.min(100, (cost.total_usd / cap) * 100) : 0;++ const status =+ pct >= 100 ? "halted" : pct >= 90 ? "danger" : pct >= 75 ? "warn" : "ok";++ const barColor = {+ ok: "bg-zinc-400 dark:bg-zinc-500",+ warn: "bg-amber-500",+ danger: "bg-red-500",+ halted: "bg-red-600",+ }[status];++ return (+ <Tooltip>+ <TooltipTrigger asChild>+ <button+ type="button"+ className="w-full space-y-1.5 px-2 py-2 text-left text-xs transition-colors hover:bg-sidebar-accent/50 rounded-md"+ >+ <div className="flex items-center justify-between gap-2">+ <span className="text-muted-foreground">Today</span>+ <span+ className={cn(+ "tabular-nums font-medium",+ status === "halted" && "text-red-600 dark:text-red-400",+ status === "danger" && "text-red-600 dark:text-red-400",+ )}+ >+ {formatUsd(cost.total_usd)} / {formatUsd(cap)}+ </span>+ </div>+ <div className="h-1.5 w-full overflow-hidden rounded-full bg-muted">+ <div+ className={cn("h-full transition-all", barColor)}+ style={{ width: `${pct}%` }}+ aria-label={`${pct.toFixed(0)}% of daily budget`}+ />+ </div>+ {status === "halted" && (+ <p className="text-[11px] font-medium text-red-600 dark:text-red-400">+ Daily cap reached+ </p>+ )}+ </button>+ </TooltipTrigger>+ <TooltipContent side="right" align="end" className="w-56 space-y-1.5">+ <p className="text-xs font-medium">Today’s spend</p>+ <div className="space-y-1 text-[11px]">+ <CostRow label="LLM" value={cost.by_source.llm} />+ <CostRow label="Google Ads" value={cost.by_source.google_ads} />+ <CostRow label="GSC" value={cost.by_source.gsc} />+ <CostRow label="Other" value={cost.by_source.other} />+ <div className="mt-1 flex items-center justify-between border-t pt-1 font-medium">+ <span>Total</span>+ <span className="tabular-nums">{formatUsd(cost.total_usd)}</span>+ </div>+ <div className="flex items-center justify-between text-muted-foreground">+ <span>Daily cap</span>+ <span className="tabular-nums">{formatUsd(cap)}</span>+ </div>+ </div>+ </TooltipContent>+ </Tooltip>+ );+}++function CostRow({ label, value }: { label: string; value: number }) {+ return (+ <div className="flex items-center justify-between">+ <span className="text-muted-foreground">{label}</span>+ <span className="tabular-nums">{formatUsd(value)}</span>+ </div>+ );+}diff --git a/src/components/cron-calendar.tsx b/src/components/cron-calendar.tsxnew file mode 100644index 00000000..54119e6c--- /dev/null+++ b/src/components/cron-calendar.tsx@@ -0,0 +1,390 @@+"use client";++import { useMemo, useState } from "react";+import { ChevronLeft, ChevronRight, Pause, Play, Trash2, ExternalLink } from "lucide-react";+import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { Badge } from "@/components/ui/badge";+import { toast } from "sonner";+import { cn } from "@/lib/utils";+import { colorForAgentSlug } from "@/lib/agent-colors";+import {+ pauseCronAction,+ resumeCronAction,+ deleteCronAction,+} from "@/server/actions/crons";++/**+ * Pre-computed cron occurrence used by the calendar. Server computes these+ * with `expandSchedule()` so the client just renders.+ */+export type CalendarOccurrence = {+ at: number;+ cron_id: string;+ cron_name: string;+ short_name: string;+ agent_id: string;+ agent_slug: string;+ schedule_text: string;+};++export type CalendarCron = {+ id: string;+ short_name: string;+ full_name: string;+ agent_id: string;+ agent_slug: string;+ schedule_text: string;+ disabled: boolean;+ status_text: string;+};++type Props = {+ /** ms epoch of the first day shown (00:00 local). */+ startOfFirstDay: number;+ numDays: number;+ occurrences: CalendarOccurrence[];+ cronsById: Record<string, CalendarCron>;+ /** Distinct agents for the legend. */+ agentSlugs: string[];+};++const DAY_MS = 24 * 60 * 60 * 1000;++export function CronCalendar({+ startOfFirstDay,+ numDays,+ occurrences,+ cronsById,+ agentSlugs,+}: Props) {+ const [focusDayOffset, setFocusDayOffset] = useState(0);+ const [selected, setSelected] = useState<CalendarOccurrence | null>(null);++ // Group occurrences into days. Memoize because we slice the same data on+ // every state change.+ const days = useMemo(() => {+ const buckets: CalendarOccurrence[][] = Array.from(+ { length: numDays },+ () => [],+ );+ for (const o of occurrences) {+ const idx = Math.floor((o.at - startOfFirstDay) / DAY_MS);+ if (idx >= 0 && idx < numDays) buckets[idx]!.push(o);+ }+ for (const day of buckets) day.sort((a, b) => a.at - b.at);+ return buckets;+ }, [occurrences, numDays, startOfFirstDay]);++ // 7-day window navigation (we keep numDays at 14 to allow scrolling).+ const visibleDays = Math.min(7, numDays);+ const offsetMax = Math.max(0, numDays - visibleDays);+ const clampedOffset = Math.max(0, Math.min(focusDayOffset, offsetMax));++ const selectedCron = selected ? cronsById[selected.cron_id] : null;++ return (+ <>+ <div className="space-y-3">+ {/* Legend + window navigator */}+ <div className="flex flex-wrap items-center justify-between gap-2">+ <div className="flex flex-wrap items-center gap-3">+ {agentSlugs.map((slug) => {+ const color = colorForAgentSlug(slug);+ return (+ <div key={slug} className="flex items-center gap-1.5 text-xs">+ <span className={cn("inline-block size-2 rounded-full", color.dot)} />+ <span className="font-mono text-muted-foreground">{slug}</span>+ </div>+ );+ })}+ {agentSlugs.length === 0 && (+ <span className="text-xs text-muted-foreground">+ No agents have scheduled work in this window.+ </span>+ )}+ </div>+ <div className="flex items-center gap-1">+ <Button+ variant="outline"+ size="sm"+ className="h-7 w-7 p-0"+ onClick={() => setFocusDayOffset((o) => Math.max(0, o - visibleDays))}+ disabled={clampedOffset === 0}+ aria-label="Previous week"+ >+ <ChevronLeft className="size-3.5" />+ </Button>+ <Button+ variant="outline"+ size="sm"+ className="h-7 px-2 text-xs"+ onClick={() => setFocusDayOffset(0)}+ disabled={clampedOffset === 0}+ >+ Today+ </Button>+ <Button+ variant="outline"+ size="sm"+ className="h-7 w-7 p-0"+ onClick={() => setFocusDayOffset((o) => Math.min(offsetMax, o + visibleDays))}+ disabled={clampedOffset >= offsetMax}+ aria-label="Next week"+ >+ <ChevronRight className="size-3.5" />+ </Button>+ </div>+ </div>++ {/* Day grid */}+ <div className="overflow-hidden rounded-lg border bg-card">+ <div+ className="grid divide-x"+ style={{ gridTemplateColumns: `repeat(${visibleDays}, minmax(0, 1fr))` }}+ >+ {Array.from({ length: visibleDays }).map((_, i) => {+ const dayIndex = clampedOffset + i;+ const dayStart = startOfFirstDay + dayIndex * DAY_MS;+ const dayOccs = days[dayIndex] ?? [];+ return (+ <DayColumn+ key={dayIndex}+ dayStart={dayStart}+ occurrences={dayOccs}+ onSelect={(o) => setSelected(o)}+ />+ );+ })}+ </div>+ </div>+ </div>++ <CronDetailDialog+ occurrence={selected}+ cron={selectedCron}+ onClose={() => setSelected(null)}+ />+ </>+ );+}++// --- Day column ---++function DayColumn({+ dayStart,+ occurrences,+ onSelect,+}: {+ dayStart: number;+ occurrences: CalendarOccurrence[];+ onSelect: (o: CalendarOccurrence) => void;+}) {+ const date = new Date(dayStart);+ const today = new Date();+ const isToday =+ date.getFullYear() === today.getFullYear() &&+ date.getMonth() === today.getMonth() &&+ date.getDate() === today.getDate();+ const dayLabel = date.toLocaleDateString(undefined, { weekday: "short" });+ const dateLabel = date.toLocaleDateString(undefined, { month: "numeric", day: "numeric" });++ return (+ <div className="flex min-h-[280px] flex-col">+ <div+ className={cn(+ "border-b px-2 py-1.5 text-center",+ isToday && "bg-accent/30",+ )}+ >+ <div+ className={cn(+ "text-[10px] uppercase tracking-wide text-muted-foreground",+ isToday && "text-foreground font-medium",+ )}+ >+ {dayLabel}+ </div>+ <div+ className={cn(+ "text-sm tabular-nums",+ isToday ? "font-semibold text-foreground" : "text-foreground/80",+ )}+ >+ {dateLabel}+ </div>+ </div>+ <div className="flex-1 space-y-1 overflow-y-auto p-1.5">+ {occurrences.length === 0 ? (+ <div className="flex h-full items-center justify-center pb-6">+ <span className="text-[10px] text-muted-foreground/60">·</span>+ </div>+ ) : (+ occurrences.map((o, idx) => (+ <OccurrenceChip+ key={`${o.cron_id}-${o.at}-${idx}`}+ occurrence={o}+ onClick={() => onSelect(o)}+ />+ ))+ )}+ </div>+ </div>+ );+}++function OccurrenceChip({+ occurrence,+ onClick,+}: {+ occurrence: CalendarOccurrence;+ onClick: () => void;+}) {+ const color = colorForAgentSlug(occurrence.agent_slug);+ const time = new Date(occurrence.at).toLocaleTimeString(undefined, {+ hour: "numeric",+ minute: "2-digit",+ });+ return (+ <button+ type="button"+ onClick={onClick}+ className={cn(+ "block w-full rounded-md border px-2 py-1 text-left text-[11px] leading-tight transition-colors hover:brightness-95",+ color.chip,+ )}+ title={`${occurrence.cron_name} · ${occurrence.schedule_text}`}+ >+ <div className="tabular-nums font-medium">{time}</div>+ <div className="truncate opacity-80">{occurrence.short_name}</div>+ </button>+ );+}++// --- Detail dialog with pause/resume/delete ---++function CronDetailDialog({+ occurrence,+ cron,+ onClose,+}: {+ occurrence: CalendarOccurrence | null;+ cron: CalendarCron | null;+ onClose: () => void;+}) {+ if (!occurrence || !cron) return null;+ return (+ <Dialog open={!!occurrence} onOpenChange={(o) => !o && onClose()}>+ <DialogContent className="max-w-md">+ <DialogHeader>+ <DialogTitle className="text-base">{cron.short_name}</DialogTitle>+ <DialogDescription className="font-mono text-xs">+ {cron.full_name}+ </DialogDescription>+ </DialogHeader>++ <dl className="grid grid-cols-[auto_1fr] gap-x-4 gap-y-2 text-sm">+ <dt className="text-muted-foreground">Agent</dt>+ <dd className="font-mono text-xs">{cron.agent_id}</dd>++ <dt className="text-muted-foreground">Schedule</dt>+ <dd className="font-mono text-xs">{cron.schedule_text}</dd>++ <dt className="text-muted-foreground">This occurrence</dt>+ <dd className="tabular-nums">+ {new Date(occurrence.at).toLocaleString()}+ </dd>++ <dt className="text-muted-foreground">Status</dt>+ <dd>+ <Badge variant={cron.disabled ? "outline" : "secondary"} className="text-[10px]">+ {cron.disabled ? "paused" : cron.status_text}+ </Badge>+ </dd>+ </dl>++ <DialogFooter className="gap-2 sm:gap-2">+ <CronActions cronId={cron.id} cronName={cron.short_name} disabled={cron.disabled} onAfter={onClose} />+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+}++function CronActions({+ cronId,+ cronName,+ disabled,+ onAfter,+}: {+ cronId: string;+ cronName: string;+ disabled: boolean;+ onAfter: () => void;+}) {+ function run(+ label: string,+ fn: () => Promise<{ ok: boolean; error?: string }>,+ ) {+ void (async () => {+ const r = await fn();+ if (!r.ok) toast.error(r.error ?? `Failed to ${label}`);+ else toast.success(`${label}: ${cronName}`);+ onAfter();+ })();+ }++ return (+ <>+ {disabled ? (+ <Button+ variant="outline"+ size="sm"+ onClick={() => run("Resumed", () => resumeCronAction(cronId))}+ >+ <Play className="mr-1.5 size-3.5" />+ Resume+ </Button>+ ) : (+ <Button+ variant="outline"+ size="sm"+ onClick={() => run("Paused", () => pauseCronAction(cronId))}+ >+ <Pause className="mr-1.5 size-3.5" />+ Pause+ </Button>+ )}+ <Button+ variant="outline"+ size="sm"+ onClick={() => {+ if (typeof window !== "undefined" && !window.confirm(`Delete cron "${cronName}"?`)) return;+ run("Deleted", () => deleteCronAction(cronId));+ }}+ className="text-destructive hover:text-destructive"+ >+ <Trash2 className="mr-1.5 size-3.5" />+ Delete+ </Button>+ <Button asChild variant="ghost" size="sm">+ <a+ href={`https://docs.openclaw.ai/cli/cron`}+ target="_blank"+ rel="noreferrer"+ className="text-xs"+ >+ <ExternalLink className="mr-1 size-3" />+ OpenClaw docs+ </a>+ </Button>+ </>+ );+}diff --git a/src/components/cron-row-actions.tsx b/src/components/cron-row-actions.tsxnew file mode 100644index 00000000..9c27b93f--- /dev/null+++ b/src/components/cron-row-actions.tsx@@ -0,0 +1,76 @@+"use client";++import { useTransition } from "react";+import { MoreHorizontal, Pause, Play, Trash2 } from "lucide-react";+import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuSeparator,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { toast } from "sonner";+import { pauseCronAction, resumeCronAction, deleteCronAction } from "@/server/actions/crons";++type Props = {+ cronId: string;+ cronName: string;+ disabled: boolean;+};++export function CronRowActions({ cronId, cronName, disabled }: Props) {+ const [pending, start] = useTransition();++ function run(label: string, fn: () => Promise<{ ok: boolean; error?: string }>) {+ start(async () => {+ const r = await fn();+ if (!r.ok) toast.error(r.error ?? `Failed to ${label}`);+ else toast.success(`${label}: ${cronName}`);+ });+ }++ function confirmDelete() {+ if (typeof window !== "undefined" && !window.confirm(`Delete cron "${cronName}"?`)) return;+ run("Deleted", () => deleteCronAction(cronId));+ }++ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="ghost" size="sm" className="h-7 w-7 p-0" disabled={pending}>+ <MoreHorizontal className="size-4" />+ <span className="sr-only">Cron actions</span>+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" className="w-40">+ {disabled ? (+ <DropdownMenuItem+ onSelect={() => run("Resumed", () => resumeCronAction(cronId))}+ disabled={pending}+ >+ <Play className="mr-2 size-3.5" />+ Resume+ </DropdownMenuItem>+ ) : (+ <DropdownMenuItem+ onSelect={() => run("Paused", () => pauseCronAction(cronId))}+ disabled={pending}+ >+ <Pause className="mr-2 size-3.5" />+ Pause+ </DropdownMenuItem>+ )}+ <DropdownMenuSeparator />+ <DropdownMenuItem+ onSelect={confirmDelete}+ disabled={pending}+ className="text-destructive focus:text-destructive"+ >+ <Trash2 className="mr-2 size-3.5" />+ Delete+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/src/components/onboarding-flow.tsx b/src/components/onboarding-flow.tsxnew file mode 100644index 00000000..e03efedb--- /dev/null+++ b/src/components/onboarding-flow.tsx@@ -0,0 +1,158 @@+"use client";++import { useState, useTransition } from "react";+import { useRouter } from "next/navigation";+import { CheckCircle2, Loader2, AlertCircle } from "lucide-react";+import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import { toast } from "sonner";+import { cn } from "@/lib/utils";++type Step = {+ id: "scrape" | "voice" | "icp" | "plan";+ label: string;+};++const STEPS: Step[] = [+ { id: "scrape", label: "Scraping your site" },+ { id: "voice", label: "Deriving brand voice fingerprint" },+ { id: "icp", label: "Drafting ICP hypothesis" },+ { id: "plan", label: "Building your 30-day plan" },+];++type StepState = "pending" | "running" | "done" | "error";++export function OnboardingFlow() {+ const router = useRouter();+ const [url, setUrl] = useState("");+ const [states, setStates] = useState<Record<Step["id"], StepState>>({+ scrape: "pending",+ voice: "pending",+ icp: "pending",+ plan: "pending",+ });+ const [active, setActive] = useState(false);+ const [pending, start] = useTransition();++ async function run() {+ if (!url.trim()) {+ toast.error("Enter your site URL first.");+ return;+ }+ setActive(true);++ // V1: stub the per-step work with timed transitions so the UX is real even+ // before the actual scraping/derivation MCP tools are wired up.+ for (const step of STEPS) {+ setStates((s) => ({ ...s, [step.id]: "running" }));+ // eslint-disable-next-line no-await-in-loop+ await new Promise((r) => setTimeout(r, 800 + Math.random() * 600));+ setStates((s) => ({ ...s, [step.id]: "done" }));+ }+ }++ function done() {+ start(() => {+ router.push("/");+ router.refresh();+ });+ }++ const allDone = STEPS.every((s) => states[s.id] === "done");++ return (+ <div className="mx-auto max-w-2xl space-y-6 pt-8">+ <header className="space-y-2 text-center">+ <h1 className="text-3xl font-semibold tracking-tight">Let’s set up your CMO.</h1>+ <p className="text-sm text-muted-foreground">+ Paste your site URL. The CMO scrapes it, learns your voice, drafts an ICP,+ and proposes a 30-day plan.+ </p>+ </header>++ <Card>+ <CardHeader>+ <CardTitle className="text-base">Site URL</CardTitle>+ <CardDescription>This is the only thing you need to provide right now.</CardDescription>+ </CardHeader>+ <CardContent className="space-y-3">+ <div className="space-y-2">+ <Label htmlFor="url">URL</Label>+ <Input+ id="url"+ placeholder="https://yourcompany.com"+ value={url}+ onChange={(e) => setUrl(e.target.value)}+ disabled={active}+ autoFocus+ />+ </div>+ {!active && (+ <Button onClick={() => void run()} disabled={!url.trim()}>+ Go+ </Button>+ )}+ </CardContent>+ </Card>++ {active && (+ <Card>+ <CardHeader>+ <CardTitle className="text-base">Building your plan</CardTitle>+ <CardDescription>This usually takes about 30 seconds.</CardDescription>+ </CardHeader>+ <CardContent>+ <ol className="space-y-3">+ {STEPS.map((step) => (+ <li key={step.id} className="flex items-center gap-3 text-sm">+ <StepIcon state={states[step.id]} />+ <span+ className={cn(+ states[step.id] === "running" && "font-medium",+ states[step.id] === "pending" && "text-muted-foreground",+ states[step.id] === "error" && "text-destructive",+ )}+ >+ {step.label}+ </span>+ </li>+ ))}+ </ol>+ </CardContent>+ </Card>+ )}++ {allDone && (+ <Card>+ <CardHeader>+ <CardTitle className="text-base">Your 30-day plan is ready</CardTitle>+ <CardDescription>+ In V1, the plan is a placeholder — wire up real scraping + LLM steps after+ shipping the core UI.+ </CardDescription>+ </CardHeader>+ <CardContent className="space-y-3">+ <ul className="space-y-1 text-sm">+ <li>• Week 1: Google Ads bid optimization on 12 keywords</li>+ <li>• Week 1: SEO audit + 3 content proposals</li>+ <li>• Week 2: Cold email sequence to 50 warm leads</li>+ <li>• Week 3-4: Iterate on what's working</li>+ </ul>+ <Button onClick={done} disabled={pending}>+ Take me to the project+ </Button>+ </CardContent>+ </Card>+ )}+ </div>+ );+}++function StepIcon({ state }: { state: StepState }) {+ if (state === "done") return <CheckCircle2 className="size-4 text-emerald-600" />;+ if (state === "running") return <Loader2 className="size-4 animate-spin" />;+ if (state === "error") return <AlertCircle className="size-4 text-destructive" />;+ return <div className="size-4 rounded-full border" />;+}diff --git a/src/components/project-switcher.tsx b/src/components/project-switcher.tsxnew file mode 100644index 00000000..b0b75d73--- /dev/null+++ b/src/components/project-switcher.tsx@@ -0,0 +1,90 @@+"use client";++import { useTransition } from "react";+import { useRouter } from "next/navigation";+import { ChevronsUpDown, Plus, Check } from "lucide-react";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuSeparator,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { SidebarMenuButton } from "@/components/ui/sidebar";+import type { Project } from "@/types";+import { switchProjectAction } from "@/server/actions/projects";+import { toast } from "sonner";++type Props = {+ projects: Project[];+ activeSlug: string | null;+};++export function ProjectSwitcher({ projects, activeSlug }: Props) {+ const router = useRouter();+ const [pending, start] = useTransition();+ const active = projects.find((p) => p.slug === activeSlug) ?? null;++ function pick(slug: string) {+ if (slug === activeSlug) return;+ start(async () => {+ const result = await switchProjectAction(slug);+ if (!result.ok) {+ toast.error(result.error);+ return;+ }+ router.refresh();+ });+ }++ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <SidebarMenuButton size="lg" className="data-[state=open]:bg-sidebar-accent">+ <div className="flex aspect-square size-8 items-center justify-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground text-xs font-semibold">+ {(active?.display_name ?? "—").slice(0, 2).toUpperCase()}+ </div>+ <div className="grid flex-1 text-left text-sm leading-tight">+ <span className="truncate font-medium">+ {active?.display_name ?? "No project"}+ </span>+ <span className="truncate text-xs text-muted-foreground">+ {active ? active.slug : "Create one to get started"}+ </span>+ </div>+ <ChevronsUpDown className="ml-auto size-4" />+ </SidebarMenuButton>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start" className="w-64">+ <DropdownMenuLabel className="text-xs text-muted-foreground">+ Projects+ </DropdownMenuLabel>+ {projects.length === 0 && (+ <DropdownMenuItem disabled>No projects yet</DropdownMenuItem>+ )}+ {projects.map((p) => (+ <DropdownMenuItem+ key={p.slug}+ onSelect={() => pick(p.slug)}+ disabled={pending}+ className="gap-2"+ >+ <div className="flex aspect-square size-6 items-center justify-center rounded bg-muted text-[10px] font-semibold">+ {p.display_name.slice(0, 2).toUpperCase()}+ </div>+ <span className="flex-1 truncate">{p.display_name}</span>+ {p.slug === activeSlug && <Check className="size-4 text-muted-foreground" />}+ </DropdownMenuItem>+ ))}+ <DropdownMenuSeparator />+ <DropdownMenuItem asChild>+ <a href="/projects/new" className="gap-2">+ <Plus className="size-4" />+ <span>New project</span>+ </a>+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/src/components/reprovision-button.tsx b/src/components/reprovision-button.tsxnew file mode 100644index 00000000..f0285564--- /dev/null+++ b/src/components/reprovision-button.tsx@@ -0,0 +1,42 @@+"use client";++import { useTransition } from "react";+import { RotateCw } from "lucide-react";+import { Button } from "@/components/ui/button";+import { toast } from "sonner";++type ReprovisionResult =+ | { ok: true; created: string[]; existed: string[] }+ | { ok: false; error: string };++type Props = {+ action: () => Promise<ReprovisionResult>;+};++export function ReprovisionButton({ action }: Props) {+ const [pending, start] = useTransition();++ function go() {+ start(async () => {+ const r = await action();+ if (!r.ok) {+ toast.error(r.error);+ return;+ }+ const created = r.created.length;+ const existed = r.existed.length;+ toast.success(+ created > 0+ ? `Provisioned ${created} new agent${created === 1 ? "" : "s"}.`+ : `All ${existed} agents already exist.`,+ );+ });+ }++ return (+ <Button variant="outline" size="sm" onClick={go} disabled={pending}>+ <RotateCw className={`mr-1.5 size-4 ${pending ? "animate-spin" : ""}`} />+ {pending ? "Provisioning..." : "Reprovision agents"}+ </Button>+ );+}diff --git a/src/components/schedule-cron-dialog.tsx b/src/components/schedule-cron-dialog.tsxnew file mode 100644index 00000000..56048383--- /dev/null+++ b/src/components/schedule-cron-dialog.tsx@@ -0,0 +1,225 @@+"use client";++import { useState, useTransition } from "react";+import { Plus, Loader2 } from "lucide-react";+import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+ DialogTrigger,+} from "@/components/ui/dialog";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { ChevronDown } from "lucide-react";+import { scheduleCronAction } from "@/server/actions/crons";+import { toast } from "sonner";++type Specialist = "cmo" | "google_ads" | "seo";+type ScheduleKind = "cron" | "every";++const SPECIALIST_LABEL: Record<Specialist, string> = {+ cmo: "CMO",+ google_ads: "Google Ads",+ seo: "SEO",+};++type Props = {+ projectSlug: string;+ defaultSpecialist?: Specialist;+ variant?: "button" | "icon";+};++const PRESET_SCHEDULES: Array<{ label: string; kind: ScheduleKind; value: string; tz?: string }> = [+ { label: "Every hour", kind: "every", value: "1h" },+ { label: "Every 15 minutes", kind: "every", value: "15m" },+ { label: "Daily at 9am (Los Angeles)", kind: "cron", value: "0 9 * * *", tz: "America/Los_Angeles" },+ { label: "Weekdays at 8am (Los Angeles)", kind: "cron", value: "0 8 * * 1-5", tz: "America/Los_Angeles" },+ { label: "Mondays at 6am (Los Angeles)", kind: "cron", value: "0 6 * * 1", tz: "America/Los_Angeles" },+];++export function ScheduleCronDialog({ projectSlug, defaultSpecialist, variant = "button" }: Props) {+ const [open, setOpen] = useState(false);+ const [specialist, setSpecialist] = useState<Specialist>(defaultSpecialist ?? "google_ads");+ const [name, setName] = useState("");+ const [kind, setKind] = useState<ScheduleKind>("every");+ const [scheduleValue, setScheduleValue] = useState("1h");+ const [tz, setTz] = useState("America/Los_Angeles");+ const [brief, setBrief] = useState("");+ const [pending, start] = useTransition();++ function reset() {+ setName("");+ setBrief("");+ setKind("every");+ setScheduleValue("1h");+ }++ function pickPreset(p: (typeof PRESET_SCHEDULES)[number]) {+ setKind(p.kind);+ setScheduleValue(p.value);+ if (p.tz) setTz(p.tz);+ }++ function submit() {+ start(async () => {+ const result = await scheduleCronAction({+ project_slug: projectSlug,+ specialist,+ name,+ schedule_kind: kind,+ schedule_value: scheduleValue,+ tz: kind === "cron" ? tz : undefined,+ brief,+ });+ if (!result.ok) {+ toast.error(result.error);+ return;+ }+ toast.success(`Scheduled ${result.cron_name}`);+ reset();+ setOpen(false);+ });+ }++ return (+ <Dialog open={open} onOpenChange={setOpen}>+ <DialogTrigger asChild>+ {variant === "icon" ? (+ <Button size="sm" variant="outline">+ <Plus className="size-4" />+ <span className="sr-only">Schedule recurring work</span>+ </Button>+ ) : (+ <Button size="sm">+ <Plus className="mr-1.5 size-4" />+ New cron+ </Button>+ )}+ </DialogTrigger>+ <DialogContent className="max-w-lg">+ <DialogHeader>+ <DialogTitle>Schedule recurring work</DialogTitle>+ <DialogDescription>+ Creates an OpenClaw cron under this project. The brief is the message the+ agent will receive on each tick.+ </DialogDescription>+ </DialogHeader>++ <div className="space-y-4">+ <div className="grid gap-2">+ <Label htmlFor="specialist">Agent</Label>+ <select+ id="specialist"+ value={specialist}+ onChange={(e) => setSpecialist(e.target.value as Specialist)}+ className="h-9 rounded-md border bg-background px-3 text-sm"+ disabled={pending}+ >+ {(Object.keys(SPECIALIST_LABEL) as Specialist[]).map((s) => (+ <option key={s} value={s}>+ {SPECIALIST_LABEL[s]}+ </option>+ ))}+ </select>+ </div>++ <div className="grid gap-2">+ <Label htmlFor="cron-name">Name</Label>+ <Input+ id="cron-name"+ placeholder="daily-bid-opt"+ value={name}+ onChange={(e) => setName(e.target.value)}+ disabled={pending}+ maxLength={64}+ />+ <p className="text-[11px] text-muted-foreground">+ Kebab-case. Becomes part of the cron name shown in OpenClaw.+ </p>+ </div>++ <div className="grid gap-2">+ <div className="flex items-center justify-between">+ <Label htmlFor="schedule">Schedule</Label>+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="ghost" size="sm" className="h-7 text-xs" disabled={pending}>+ Presets <ChevronDown className="ml-1 size-3" />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" className="w-64">+ {PRESET_SCHEDULES.map((p) => (+ <DropdownMenuItem key={p.label} onSelect={() => pickPreset(p)}>+ {p.label}+ </DropdownMenuItem>+ ))}+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ <div className="flex gap-2">+ <select+ value={kind}+ onChange={(e) => setKind(e.target.value as ScheduleKind)}+ className="h-9 w-32 rounded-md border bg-background px-2 text-sm"+ disabled={pending}+ >+ <option value="every">Every</option>+ <option value="cron">Cron expr</option>+ </select>+ <Input+ id="schedule"+ placeholder={kind === "every" ? "1h" : "0 9 * * *"}+ value={scheduleValue}+ onChange={(e) => setScheduleValue(e.target.value)}+ disabled={pending}+ className="font-mono text-sm"+ />+ </div>+ {kind === "cron" && (+ <Input+ placeholder="Timezone (IANA)"+ value={tz}+ onChange={(e) => setTz(e.target.value)}+ disabled={pending}+ className="font-mono text-sm"+ />+ )}+ </div>++ <div className="grid gap-2">+ <Label htmlFor="brief">Brief</Label>+ <textarea+ id="brief"+ placeholder="RUN: review yesterday's campaign performance and propose bid adjustments."+ value={brief}+ onChange={(e) => setBrief(e.target.value)}+ disabled={pending}+ rows={3}+ className="min-h-[80px] resize-none rounded-md border bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"+ />+ </div>+ </div>++ <DialogFooter>+ <Button variant="outline" onClick={() => setOpen(false)} disabled={pending}>+ Cancel+ </Button>+ <Button onClick={submit} disabled={pending || !name.trim() || !brief.trim()}>+ {pending && <Loader2 className="mr-1.5 size-4 animate-spin" />}+ {pending ? "Scheduling..." : "Schedule"}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+}diff --git a/src/components/slash-command-popover.tsx b/src/components/slash-command-popover.tsxnew file mode 100644index 00000000..0456ab3e--- /dev/null+++ b/src/components/slash-command-popover.tsx@@ -0,0 +1,114 @@+"use client";++import { useEffect, useRef } from "react";+import { cn } from "@/lib/utils";+import type { SlashCommand } from "@/lib/slash-commands";++type Props = {+ commands: SlashCommand[];+ selectedIndex: number;+ onSelect: (command: SlashCommand) => void;+ onHover: (index: number) => void;+};++const CATEGORY_LABEL: Record<SlashCommand["category"], string> = {+ session: "Session",+ model: "Model",+ status: "Status",+ agents: "Agents",+ tools: "Tools",+ advanced: "Advanced",+};++const CATEGORY_ACCENT: Record<SlashCommand["category"], string> = {+ session: "text-blue-600 dark:text-blue-400",+ model: "text-emerald-600 dark:text-emerald-400",+ status: "text-zinc-500 dark:text-zinc-400",+ agents: "text-violet-600 dark:text-violet-400",+ tools: "text-cyan-600 dark:text-cyan-400",+ advanced: "text-amber-600 dark:text-amber-400",+};++export function SlashCommandPopover({+ commands,+ selectedIndex,+ onSelect,+ onHover,+}: Props) {+ const listRef = useRef<HTMLUListElement>(null);++ // Keep the selected row in view as the user arrows through a long list.+ useEffect(() => {+ const list = listRef.current;+ if (!list) return;+ const row = list.children[selectedIndex] as HTMLElement | undefined;+ if (row) row.scrollIntoView({ block: "nearest" });+ }, [selectedIndex]);++ if (commands.length === 0) {+ return (+ <div+ className="absolute bottom-full left-0 right-0 mb-2 rounded-xl border bg-popover p-3 text-xs text-muted-foreground shadow-lg"+ role="listbox"+ aria-label="Slash commands"+ >+ No matching slash commands.+ </div>+ );+ }++ return (+ <div+ className="absolute bottom-full left-0 right-0 mb-2 overflow-hidden rounded-xl border bg-popover shadow-lg"+ role="listbox"+ aria-label="Slash commands"+ >+ <ul ref={listRef} className="max-h-72 overflow-y-auto py-1">+ {commands.map((c, idx) => {+ const isActive = idx === selectedIndex;+ return (+ <li key={c.name}>+ <button+ type="button"+ onMouseEnter={() => onHover(idx)}+ onClick={() => onSelect(c)}+ className={cn(+ "flex w-full items-center gap-3 px-3 py-2 text-left text-sm transition-colors",+ isActive ? "bg-accent" : "hover:bg-accent/50",+ )}+ role="option"+ aria-selected={isActive}+ >+ <span className="w-28 shrink-0 font-mono text-[13px] text-foreground">+ /{c.name}+ {c.args && (+ <span className="ml-1 text-muted-foreground">{c.args}</span>+ )}+ </span>+ <span className="flex-1 truncate text-xs text-muted-foreground">+ {c.description}+ </span>+ {c.executeLocal && (+ <span className="shrink-0 rounded border px-1 text-[9px] uppercase tracking-wide text-muted-foreground">+ local+ </span>+ )}+ <span+ className={cn(+ "shrink-0 text-[10px] uppercase tracking-wide",+ CATEGORY_ACCENT[c.category],+ )}+ >+ {CATEGORY_LABEL[c.category]}+ </span>+ </button>+ </li>+ );+ })}+ </ul>+ <div className="border-t bg-muted/30 px-3 py-1.5 text-[10px] text-muted-foreground">+ ↑↓ navigate · Enter / Tab to select · Enter again to send · Esc to clear+ </div>+ </div>+ );+}diff --git a/src/components/thread-selector.tsx b/src/components/thread-selector.tsxnew file mode 100644index 00000000..45d11eda--- /dev/null+++ b/src/components/thread-selector.tsx@@ -0,0 +1,132 @@+"use client";++import { useTransition } from "react";+import { useRouter } from "next/navigation";+import { ChevronsUpDown, Plus, Check } from "lucide-react";+import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuSeparator,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { toast } from "sonner";+import { newSessionAction, switchSessionAction } from "@/server/actions/sessions";++export type SessionLite = {+ sessionId: string;+ label: string;+ lastInteractionAt: number;+ pending: boolean;+};++type Props = {+ agentSlug: string;+ sessions: SessionLite[];+ activeSessionId: string;+};++function timeAgo(ms: number) {+ if (!ms) return "new";+ const seconds = Math.max(0, (Date.now() - ms) / 1000);+ if (seconds < 60) return `${Math.floor(seconds)}s ago`;+ if (seconds < 3600) return `${Math.floor(seconds / 60)}m ago`;+ if (seconds < 86400) return `${Math.floor(seconds / 3600)}h ago`;+ return `${Math.floor(seconds / 86400)}d ago`;+}++function displayTitle(s: SessionLite): string {+ if (s.pending) return `New thread · ${s.sessionId.slice(0, 8)}`;+ if (s.label === "main") return "Main thread";+ return s.label.length > 32 ? `${s.label.slice(0, 32)}...` : s.label;+}++export function ThreadSelector({ agentSlug, sessions, activeSessionId }: Props) {+ const router = useRouter();+ const [pending, start] = useTransition();+ const active = sessions.find((s) => s.sessionId === activeSessionId);++ function newThread() {+ start(async () => {+ const r = await newSessionAction(agentSlug);+ if (!r.ok) {+ toast.error(r.error);+ return;+ }+ router.refresh();+ });+ }++ function switchTo(sessionId: string) {+ if (sessionId === activeSessionId) return;+ start(async () => {+ const r = await switchSessionAction(agentSlug, sessionId);+ if (!r.ok) {+ toast.error(r.error);+ return;+ }+ router.refresh();+ });+ }++ return (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button+ variant="outline"+ size="sm"+ className="min-w-[200px] justify-between"+ disabled={pending}+ >+ <span className="truncate text-left">+ {active ? displayTitle(active) : "Pick a thread"}+ </span>+ <ChevronsUpDown className="ml-2 size-3.5 shrink-0 text-muted-foreground" />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" className="w-72">+ <DropdownMenuLabel className="text-xs text-muted-foreground">+ Threads ({sessions.length}) · from OpenClaw+ </DropdownMenuLabel>+ <DropdownMenuSeparator />+ {sessions.length === 0 && (+ <DropdownMenuItem disabled>No threads yet</DropdownMenuItem>+ )}+ {sessions.map((s) => {+ const isActive = s.sessionId === activeSessionId;+ return (+ <DropdownMenuItem+ key={s.sessionId}+ onSelect={(e) => {+ e.preventDefault();+ switchTo(s.sessionId);+ }}+ className="flex items-center gap-2"+ >+ <div className="flex-1 min-w-0">+ <div className="truncate text-sm">{displayTitle(s)}</div>+ <div className="text-[10px] text-muted-foreground font-mono">+ {s.sessionId.slice(0, 8)} · {timeAgo(s.lastInteractionAt)}+ </div>+ </div>+ {isActive && <Check className="size-3.5 shrink-0 text-muted-foreground" />}+ </DropdownMenuItem>+ );+ })}+ <DropdownMenuSeparator />+ <DropdownMenuItem+ onSelect={(e) => {+ e.preventDefault();+ newThread();+ }}+ disabled={pending}+ >+ <Plus className="mr-2 size-3.5" />+ New thread+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsxnew file mode 100644index 00000000..6eb2a057--- /dev/null+++ b/src/components/ui/badge.tsx@@ -0,0 +1,48 @@+import * as React from "react"+import { cva, type VariantProps } from "class-variance-authority"+import { Slot } from "radix-ui"++import { cn } from "@/lib/utils"++const badgeVariants = cva(+ "inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",+ {+ variants: {+ variant: {+ default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90",+ secondary:+ "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",+ destructive:+ "bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",+ outline:+ "border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",+ ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",+ link: "text-primary underline-offset-4 [a&]:hover:underline",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ }+)++function Badge({+ className,+ variant = "default",+ asChild = false,+ ...props+}: React.ComponentProps<"span"> &+ VariantProps<typeof badgeVariants> & { asChild?: boolean }) {+ const Comp = asChild ? Slot.Root : "span"++ return (+ <Comp+ data-slot="badge"+ data-variant={variant}+ className={cn(badgeVariants({ variant }), className)}+ {...props}+ />+ )+}++export { Badge, badgeVariants }diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsxnew file mode 100644index 00000000..4d38506c--- /dev/null+++ b/src/components/ui/button.tsx@@ -0,0 +1,64 @@+import * as React from "react"+import { cva, type VariantProps } from "class-variance-authority"+import { Slot } from "radix-ui"++import { cn } from "@/lib/utils"++const buttonVariants = cva(+ "inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ {+ variants: {+ variant: {+ default: "bg-primary text-primary-foreground hover:bg-primary/90",+ destructive:+ "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",+ outline:+ "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",+ secondary:+ "bg-secondary text-secondary-foreground hover:bg-secondary/80",+ ghost:+ "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",+ link: "text-primary underline-offset-4 hover:underline",+ },+ size: {+ default: "h-9 px-4 py-2 has-[>svg]:px-3",+ xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",+ sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",+ icon: "size-9",+ "icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",+ "icon-sm": "size-8",+ "icon-lg": "size-10",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ }+)++function Button({+ className,+ variant = "default",+ size = "default",+ asChild = false,+ ...props+}: React.ComponentProps<"button"> &+ VariantProps<typeof buttonVariants> & {+ asChild?: boolean+ }) {+ const Comp = asChild ? Slot.Root : "button"++ return (+ <Comp+ data-slot="button"+ data-variant={variant}+ data-size={size}+ className={cn(buttonVariants({ variant, size, className }))}+ {...props}+ />+ )+}++export { Button, buttonVariants }diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsxnew file mode 100644index 00000000..acf57dc5--- /dev/null+++ b/src/components/ui/card.tsx@@ -0,0 +1,92 @@+import * as React from "react"++import { cn } from "@/lib/utils"++function Card({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card"+ className={cn(+ "flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",+ className+ )}+ {...props}+ />+ )+}++function CardHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-header"+ className={cn(+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",+ className+ )}+ {...props}+ />+ )+}++function CardTitle({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-title"+ className={cn("leading-none font-semibold", className)}+ {...props}+ />+ )+}++function CardDescription({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-description"+ className={cn("text-sm text-muted-foreground", className)}+ {...props}+ />+ )+}++function CardAction({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-action"+ className={cn(+ "col-start-2 row-span-2 row-start-1 self-start justify-self-end",+ className+ )}+ {...props}+ />+ )+}++function CardContent({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-content"+ className={cn("px-6", className)}+ {...props}+ />+ )+}++function CardFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-footer"+ className={cn("flex items-center px-6 [.border-t]:pt-6", className)}+ {...props}+ />+ )+}++export {+ Card,+ CardHeader,+ CardFooter,+ CardTitle,+ CardAction,+ CardDescription,+ CardContent,+}diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsxnew file mode 100644index 00000000..84bdef4b--- /dev/null+++ b/src/components/ui/dialog.tsx@@ -0,0 +1,158 @@+"use client"++import * as React from "react"+import { XIcon } from "lucide-react"+import { Dialog as DialogPrimitive } from "radix-ui"++import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"++function Dialog({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Root>) {+ return <DialogPrimitive.Root data-slot="dialog" {...props} />+}++function DialogTrigger({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {+ return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />+}++function DialogPortal({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Portal>) {+ return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />+}++function DialogClose({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Close>) {+ return <DialogPrimitive.Close data-slot="dialog-close" {...props} />+}++function DialogOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {+ return (+ <DialogPrimitive.Overlay+ data-slot="dialog-overlay"+ className={cn(+ "fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",+ className+ )}+ {...props}+ />+ )+}++function DialogContent({+ className,+ children,+ showCloseButton = true,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Content> & {+ showCloseButton?: boolean+}) {+ return (+ <DialogPortal data-slot="dialog-portal">+ <DialogOverlay />+ <DialogPrimitive.Content+ data-slot="dialog-content"+ className={cn(+ "fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",+ className+ )}+ {...props}+ >+ {children}+ {showCloseButton && (+ <DialogPrimitive.Close+ data-slot="dialog-close"+ className="absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"+ >+ <XIcon />+ <span className="sr-only">Close</span>+ </DialogPrimitive.Close>+ )}+ </DialogPrimitive.Content>+ </DialogPortal>+ )+}++function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-header"+ className={cn("flex flex-col gap-2 text-center sm:text-left", className)}+ {...props}+ />+ )+}++function DialogFooter({+ className,+ showCloseButton = false,+ children,+ ...props+}: React.ComponentProps<"div"> & {+ showCloseButton?: boolean+}) {+ return (+ <div+ data-slot="dialog-footer"+ className={cn(+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",+ className+ )}+ {...props}+ >+ {children}+ {showCloseButton && (+ <DialogPrimitive.Close asChild>+ <Button variant="outline">Close</Button>+ </DialogPrimitive.Close>+ )}+ </div>+ )+}++function DialogTitle({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Title>) {+ return (+ <DialogPrimitive.Title+ data-slot="dialog-title"+ className={cn("text-lg leading-none font-semibold", className)}+ {...props}+ />+ )+}++function DialogDescription({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Description>) {+ return (+ <DialogPrimitive.Description+ data-slot="dialog-description"+ className={cn("text-sm text-muted-foreground", className)}+ {...props}+ />+ )+}++export {+ Dialog,+ DialogClose,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogOverlay,+ DialogPortal,+ DialogTitle,+ DialogTrigger,+}diff --git a/src/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsxnew file mode 100644index 00000000..ae1fcf62--- /dev/null+++ b/src/components/ui/dropdown-menu.tsx@@ -0,0 +1,257 @@+"use client"++import * as React from "react"+import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"+import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui"++import { cn } from "@/lib/utils"++function DropdownMenu({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {+ return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />+}++function DropdownMenuPortal({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {+ return (+ <DropdownMenuPrimitive.Portal data-slot="dropdown-menu-portal" {...props} />+ )+}++function DropdownMenuTrigger({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {+ return (+ <DropdownMenuPrimitive.Trigger+ data-slot="dropdown-menu-trigger"+ {...props}+ />+ )+}++function DropdownMenuContent({+ className,+ sideOffset = 4,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {+ return (+ <DropdownMenuPrimitive.Portal>+ <DropdownMenuPrimitive.Content+ data-slot="dropdown-menu-content"+ sideOffset={sideOffset}+ className={cn(+ "z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",+ className+ )}+ {...props}+ />+ </DropdownMenuPrimitive.Portal>+ )+}++function DropdownMenuGroup({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {+ return (+ <DropdownMenuPrimitive.Group data-slot="dropdown-menu-group" {...props} />+ )+}++function DropdownMenuItem({+ className,+ inset,+ variant = "default",+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {+ inset?: boolean+ variant?: "default" | "destructive"+}) {+ return (+ <DropdownMenuPrimitive.Item+ data-slot="dropdown-menu-item"+ data-inset={inset}+ data-variant={variant}+ className={cn(+ "relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",+ className+ )}+ {...props}+ />+ )+}++function DropdownMenuCheckboxItem({+ className,+ children,+ checked,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {+ return (+ <DropdownMenuPrimitive.CheckboxItem+ data-slot="dropdown-menu-checkbox-item"+ className={cn(+ "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className+ )}+ checked={checked}+ {...props}+ >+ <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <CheckIcon className="size-4" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.CheckboxItem>+ )+}++function DropdownMenuRadioGroup({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {+ return (+ <DropdownMenuPrimitive.RadioGroup+ data-slot="dropdown-menu-radio-group"+ {...props}+ />+ )+}++function DropdownMenuRadioItem({+ className,+ children,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>) {+ return (+ <DropdownMenuPrimitive.RadioItem+ data-slot="dropdown-menu-radio-item"+ className={cn(+ "relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className+ )}+ {...props}+ >+ <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <CircleIcon className="size-2 fill-current" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.RadioItem>+ )+}++function DropdownMenuLabel({+ className,+ inset,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {+ inset?: boolean+}) {+ return (+ <DropdownMenuPrimitive.Label+ data-slot="dropdown-menu-label"+ data-inset={inset}+ className={cn(+ "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",+ className+ )}+ {...props}+ />+ )+}++function DropdownMenuSeparator({+ className,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>) {+ return (+ <DropdownMenuPrimitive.Separator+ data-slot="dropdown-menu-separator"+ className={cn("-mx-1 my-1 h-px bg-border", className)}+ {...props}+ />+ )+}++function DropdownMenuShortcut({+ className,+ ...props+}: React.ComponentProps<"span">) {+ return (+ <span+ data-slot="dropdown-menu-shortcut"+ className={cn(+ "ml-auto text-xs tracking-widest text-muted-foreground",+ className+ )}+ {...props}+ />+ )+}++function DropdownMenuSub({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {+ return <DropdownMenuPrimitive.Sub data-slot="dropdown-menu-sub" {...props} />+}++function DropdownMenuSubTrigger({+ className,+ inset,+ children,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {+ inset?: boolean+}) {+ return (+ <DropdownMenuPrimitive.SubTrigger+ data-slot="dropdown-menu-sub-trigger"+ data-inset={inset}+ className={cn(+ "flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[inset]:pl-8 data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",+ className+ )}+ {...props}+ >+ {children}+ <ChevronRightIcon className="ml-auto size-4" />+ </DropdownMenuPrimitive.SubTrigger>+ )+}++function DropdownMenuSubContent({+ className,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {+ return (+ <DropdownMenuPrimitive.SubContent+ data-slot="dropdown-menu-sub-content"+ className={cn(+ "z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",+ className+ )}+ {...props}+ />+ )+}++export {+ DropdownMenu,+ DropdownMenuPortal,+ DropdownMenuTrigger,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuLabel,+ DropdownMenuItem,+ DropdownMenuCheckboxItem,+ DropdownMenuRadioGroup,+ DropdownMenuRadioItem,+ DropdownMenuSeparator,+ DropdownMenuShortcut,+ DropdownMenuSub,+ DropdownMenuSubTrigger,+ DropdownMenuSubContent,+}diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsxnew file mode 100644index 00000000..f1124aea--- /dev/null+++ b/src/components/ui/input.tsx@@ -0,0 +1,21 @@+import * as React from "react"++import { cn } from "@/lib/utils"++function Input({ className, type, ...props }: React.ComponentProps<"input">) {+ return (+ <input+ type={type}+ data-slot="input"+ className={cn(+ "h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30",+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",+ "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",+ className+ )}+ {...props}+ />+ )+}++export { Input }diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsxnew file mode 100644index 00000000..1ac80f70--- /dev/null+++ b/src/components/ui/label.tsx@@ -0,0 +1,24 @@+"use client"++import * as React from "react"+import { Label as LabelPrimitive } from "radix-ui"++import { cn } from "@/lib/utils"++function Label({+ className,+ ...props+}: React.ComponentProps<typeof LabelPrimitive.Root>) {+ return (+ <LabelPrimitive.Root+ data-slot="label"+ className={cn(+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",+ className+ )}+ {...props}+ />+ )+}++export { Label }diff --git a/src/components/ui/separator.tsx b/src/components/ui/separator.tsxnew file mode 100644index 00000000..cd873e36--- /dev/null+++ b/src/components/ui/separator.tsx@@ -0,0 +1,28 @@+"use client"++import * as React from "react"+import { Separator as SeparatorPrimitive } from "radix-ui"++import { cn } from "@/lib/utils"++function Separator({+ className,+ orientation = "horizontal",+ decorative = true,+ ...props+}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {+ return (+ <SeparatorPrimitive.Root+ data-slot="separator"+ decorative={decorative}+ orientation={orientation}+ className={cn(+ "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",+ className+ )}+ {...props}+ />+ )+}++export { Separator }diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsxnew file mode 100644index 00000000..cb53bb28--- /dev/null+++ b/src/components/ui/sheet.tsx@@ -0,0 +1,143 @@+"use client"++import * as React from "react"+import { XIcon } from "lucide-react"+import { Dialog as SheetPrimitive } from "radix-ui"++import { cn } from "@/lib/utils"++function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {+ return <SheetPrimitive.Root data-slot="sheet" {...props} />+}++function SheetTrigger({+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {+ return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />+}++function SheetClose({+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Close>) {+ return <SheetPrimitive.Close data-slot="sheet-close" {...props} />+}++function SheetPortal({+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Portal>) {+ return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />+}++function SheetOverlay({+ className,+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {+ return (+ <SheetPrimitive.Overlay+ data-slot="sheet-overlay"+ className={cn(+ "fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",+ className+ )}+ {...props}+ />+ )+}++function SheetContent({+ className,+ children,+ side = "right",+ showCloseButton = true,+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Content> & {+ side?: "top" | "right" | "bottom" | "left"+ showCloseButton?: boolean+}) {+ return (+ <SheetPortal>+ <SheetOverlay />+ <SheetPrimitive.Content+ data-slot="sheet-content"+ className={cn(+ "fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500",+ side === "right" &&+ "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",+ side === "left" &&+ "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",+ side === "top" &&+ "inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",+ side === "bottom" &&+ "inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",+ className+ )}+ {...props}+ >+ {children}+ {showCloseButton && (+ <SheetPrimitive.Close className="absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary">+ <XIcon className="size-4" />+ <span className="sr-only">Close</span>+ </SheetPrimitive.Close>+ )}+ </SheetPrimitive.Content>+ </SheetPortal>+ )+}++function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sheet-header"+ className={cn("flex flex-col gap-1.5 p-4", className)}+ {...props}+ />+ )+}++function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sheet-footer"+ className={cn("mt-auto flex flex-col gap-2 p-4", className)}+ {...props}+ />+ )+}++function SheetTitle({+ className,+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Title>) {+ return (+ <SheetPrimitive.Title+ data-slot="sheet-title"+ className={cn("font-semibold text-foreground", className)}+ {...props}+ />+ )+}++function SheetDescription({+ className,+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Description>) {+ return (+ <SheetPrimitive.Description+ data-slot="sheet-description"+ className={cn("text-sm text-muted-foreground", className)}+ {...props}+ />+ )+}++export {+ Sheet,+ SheetTrigger,+ SheetClose,+ SheetContent,+ SheetHeader,+ SheetFooter,+ SheetTitle,+ SheetDescription,+}diff --git a/src/components/ui/sidebar.tsx b/src/components/ui/sidebar.tsxnew file mode 100644index 00000000..9b9c0bc0--- /dev/null+++ b/src/components/ui/sidebar.tsx@@ -0,0 +1,726 @@+"use client"++import * as React from "react"+import { cva, type VariantProps } from "class-variance-authority"+import { PanelLeftIcon } from "lucide-react"+import { Slot } from "radix-ui"++import { useIsMobile } from "@/hooks/use-mobile"+import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"+import { Input } from "@/components/ui/input"+import { Separator } from "@/components/ui/separator"+import {+ Sheet,+ SheetContent,+ SheetDescription,+ SheetHeader,+ SheetTitle,+} from "@/components/ui/sheet"+import { Skeleton } from "@/components/ui/skeleton"+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip"++const SIDEBAR_COOKIE_NAME = "sidebar_state"+const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7+const SIDEBAR_WIDTH = "16rem"+const SIDEBAR_WIDTH_MOBILE = "18rem"+const SIDEBAR_WIDTH_ICON = "3rem"+const SIDEBAR_KEYBOARD_SHORTCUT = "b"++type SidebarContextProps = {+ state: "expanded" | "collapsed"+ open: boolean+ setOpen: (open: boolean) => void+ openMobile: boolean+ setOpenMobile: (open: boolean) => void+ isMobile: boolean+ toggleSidebar: () => void+}++const SidebarContext = React.createContext<SidebarContextProps | null>(null)++function useSidebar() {+ const context = React.useContext(SidebarContext)+ if (!context) {+ throw new Error("useSidebar must be used within a SidebarProvider.")+ }++ return context+}++function SidebarProvider({+ defaultOpen = true,+ open: openProp,+ onOpenChange: setOpenProp,+ className,+ style,+ children,+ ...props+}: React.ComponentProps<"div"> & {+ defaultOpen?: boolean+ open?: boolean+ onOpenChange?: (open: boolean) => void+}) {+ const isMobile = useIsMobile()+ const [openMobile, setOpenMobile] = React.useState(false)++ // This is the internal state of the sidebar.+ // We use openProp and setOpenProp for control from outside the component.+ const [_open, _setOpen] = React.useState(defaultOpen)+ const open = openProp ?? _open+ const setOpen = React.useCallback(+ (value: boolean | ((value: boolean) => boolean)) => {+ const openState = typeof value === "function" ? value(open) : value+ if (setOpenProp) {+ setOpenProp(openState)+ } else {+ _setOpen(openState)+ }++ // This sets the cookie to keep the sidebar state.+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`+ },+ [setOpenProp, open]+ )++ // Helper to toggle the sidebar.+ const toggleSidebar = React.useCallback(() => {+ return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open)+ }, [isMobile, setOpen, setOpenMobile])++ // Adds a keyboard shortcut to toggle the sidebar.+ React.useEffect(() => {+ const handleKeyDown = (event: KeyboardEvent) => {+ if (+ event.key === SIDEBAR_KEYBOARD_SHORTCUT &&+ (event.metaKey || event.ctrlKey)+ ) {+ event.preventDefault()+ toggleSidebar()+ }+ }++ window.addEventListener("keydown", handleKeyDown)+ return () => window.removeEventListener("keydown", handleKeyDown)+ }, [toggleSidebar])++ // We add a state so that we can do data-state="expanded" or "collapsed".+ // This makes it easier to style the sidebar with Tailwind classes.+ const state = open ? "expanded" : "collapsed"++ const contextValue = React.useMemo<SidebarContextProps>(+ () => ({+ state,+ open,+ setOpen,+ isMobile,+ openMobile,+ setOpenMobile,+ toggleSidebar,+ }),+ [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]+ )++ return (+ <SidebarContext.Provider value={contextValue}>+ <TooltipProvider delayDuration={0}>+ <div+ data-slot="sidebar-wrapper"+ style={+ {+ "--sidebar-width": SIDEBAR_WIDTH,+ "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,+ ...style,+ } as React.CSSProperties+ }+ className={cn(+ "group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",+ className+ )}+ {...props}+ >+ {children}+ </div>+ </TooltipProvider>+ </SidebarContext.Provider>+ )+}++function Sidebar({+ side = "left",+ variant = "sidebar",+ collapsible = "offcanvas",+ className,+ children,+ ...props+}: React.ComponentProps<"div"> & {+ side?: "left" | "right"+ variant?: "sidebar" | "floating" | "inset"+ collapsible?: "offcanvas" | "icon" | "none"+}) {+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar()++ if (collapsible === "none") {+ return (+ <div+ data-slot="sidebar"+ className={cn(+ "flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",+ className+ )}+ {...props}+ >+ {children}+ </div>+ )+ }++ if (isMobile) {+ return (+ <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>+ <SheetContent+ data-sidebar="sidebar"+ data-slot="sidebar"+ data-mobile="true"+ className="w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"+ style={+ {+ "--sidebar-width": SIDEBAR_WIDTH_MOBILE,+ } as React.CSSProperties+ }+ side={side}+ >+ <SheetHeader className="sr-only">+ <SheetTitle>Sidebar</SheetTitle>+ <SheetDescription>Displays the mobile sidebar.</SheetDescription>+ </SheetHeader>+ <div className="flex h-full w-full flex-col">{children}</div>+ </SheetContent>+ </Sheet>+ )+ }++ return (+ <div+ className="group peer hidden text-sidebar-foreground md:block"+ data-state={state}+ data-collapsible={state === "collapsed" ? collapsible : ""}+ data-variant={variant}+ data-side={side}+ data-slot="sidebar"+ >+ {/* This is what handles the sidebar gap on desktop */}+ <div+ data-slot="sidebar-gap"+ className={cn(+ "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",+ "group-data-[collapsible=offcanvas]:w-0",+ "group-data-[side=right]:rotate-180",+ variant === "floating" || variant === "inset"+ ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]"+ : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"+ )}+ />+ <div+ data-slot="sidebar-container"+ className={cn(+ "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",+ side === "left"+ ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"+ : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",+ // Adjust the padding for floating and inset variants.+ variant === "floating" || variant === "inset"+ ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]"+ : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",+ className+ )}+ {...props}+ >+ <div+ data-sidebar="sidebar"+ data-slot="sidebar-inner"+ className="flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm"+ >+ {children}+ </div>+ </div>+ </div>+ )+}++function SidebarTrigger({+ className,+ onClick,+ ...props+}: React.ComponentProps<typeof Button>) {+ const { toggleSidebar } = useSidebar()++ return (+ <Button+ data-sidebar="trigger"+ data-slot="sidebar-trigger"+ variant="ghost"+ size="icon"+ className={cn("size-7", className)}+ onClick={(event) => {+ onClick?.(event)+ toggleSidebar()+ }}+ {...props}+ >+ <PanelLeftIcon />+ <span className="sr-only">Toggle Sidebar</span>+ </Button>+ )+}++function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {+ const { toggleSidebar } = useSidebar()++ return (+ <button+ data-sidebar="rail"+ data-slot="sidebar-rail"+ aria-label="Toggle Sidebar"+ tabIndex={-1}+ onClick={toggleSidebar}+ title="Toggle Sidebar"+ className={cn(+ "absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex",+ "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",+ "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar",+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",+ className+ )}+ {...props}+ />+ )+}++function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {+ return (+ <main+ data-slot="sidebar-inset"+ className={cn(+ "relative flex w-full flex-1 flex-col bg-background",+ "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",+ className+ )}+ {...props}+ />+ )+}++function SidebarInput({+ className,+ ...props+}: React.ComponentProps<typeof Input>) {+ return (+ <Input+ data-slot="sidebar-input"+ data-sidebar="input"+ className={cn("h-8 w-full bg-background shadow-none", className)}+ {...props}+ />+ )+}++function SidebarHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-header"+ data-sidebar="header"+ className={cn("flex flex-col gap-2 p-2", className)}+ {...props}+ />+ )+}++function SidebarFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-footer"+ data-sidebar="footer"+ className={cn("flex flex-col gap-2 p-2", className)}+ {...props}+ />+ )+}++function SidebarSeparator({+ className,+ ...props+}: React.ComponentProps<typeof Separator>) {+ return (+ <Separator+ data-slot="sidebar-separator"+ data-sidebar="separator"+ className={cn("mx-2 w-auto bg-sidebar-border", className)}+ {...props}+ />+ )+}++function SidebarContent({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-content"+ data-sidebar="content"+ className={cn(+ "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",+ className+ )}+ {...props}+ />+ )+}++function SidebarGroup({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-group"+ data-sidebar="group"+ className={cn("relative flex w-full min-w-0 flex-col p-2", className)}+ {...props}+ />+ )+}++function SidebarGroupLabel({+ className,+ asChild = false,+ ...props+}: React.ComponentProps<"div"> & { asChild?: boolean }) {+ const Comp = asChild ? Slot.Root : "div"++ return (+ <Comp+ data-slot="sidebar-group-label"+ data-sidebar="group-label"+ className={cn(+ "flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",+ className+ )}+ {...props}+ />+ )+}++function SidebarGroupAction({+ className,+ asChild = false,+ ...props+}: React.ComponentProps<"button"> & { asChild?: boolean }) {+ const Comp = asChild ? Slot.Root : "button"++ return (+ <Comp+ data-slot="sidebar-group-action"+ data-sidebar="group-action"+ className={cn(+ "absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",+ // Increases the hit area of the button on mobile.+ "after:absolute after:-inset-2 md:after:hidden",+ "group-data-[collapsible=icon]:hidden",+ className+ )}+ {...props}+ />+ )+}++function SidebarGroupContent({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-group-content"+ data-sidebar="group-content"+ className={cn("w-full text-sm", className)}+ {...props}+ />+ )+}++function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">) {+ return (+ <ul+ data-slot="sidebar-menu"+ data-sidebar="menu"+ className={cn("flex w-full min-w-0 flex-col gap-1", className)}+ {...props}+ />+ )+}++function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">) {+ return (+ <li+ data-slot="sidebar-menu-item"+ data-sidebar="menu-item"+ className={cn("group/menu-item relative", className)}+ {...props}+ />+ )+}++const sidebarMenuButtonVariants = cva(+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",+ {+ variants: {+ variant: {+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",+ outline:+ "bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]",+ },+ size: {+ default: "h-8 text-sm",+ sm: "h-7 text-xs",+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ }+)++function SidebarMenuButton({+ asChild = false,+ isActive = false,+ variant = "default",+ size = "default",+ tooltip,+ className,+ ...props+}: React.ComponentProps<"button"> & {+ asChild?: boolean+ isActive?: boolean+ tooltip?: string | React.ComponentProps<typeof TooltipContent>+} & VariantProps<typeof sidebarMenuButtonVariants>) {+ const Comp = asChild ? Slot.Root : "button"+ const { isMobile, state } = useSidebar()++ const button = (+ <Comp+ data-slot="sidebar-menu-button"+ data-sidebar="menu-button"+ data-size={size}+ data-active={isActive}+ className={cn(sidebarMenuButtonVariants({ variant, size }), className)}+ {...props}+ />+ )++ if (!tooltip) {+ return button+ }++ if (typeof tooltip === "string") {+ tooltip = {+ children: tooltip,+ }+ }++ return (+ <Tooltip>+ <TooltipTrigger asChild>{button}</TooltipTrigger>+ <TooltipContent+ side="right"+ align="center"+ hidden={state !== "collapsed" || isMobile}+ {...tooltip}+ />+ </Tooltip>+ )+}++function SidebarMenuAction({+ className,+ asChild = false,+ showOnHover = false,+ ...props+}: React.ComponentProps<"button"> & {+ asChild?: boolean+ showOnHover?: boolean+}) {+ const Comp = asChild ? Slot.Root : "button"++ return (+ <Comp+ data-slot="sidebar-menu-action"+ data-sidebar="menu-action"+ className={cn(+ "absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",+ // Increases the hit area of the button on mobile.+ "after:absolute after:-inset-2 md:after:hidden",+ "peer-data-[size=sm]/menu-button:top-1",+ "peer-data-[size=default]/menu-button:top-1.5",+ "peer-data-[size=lg]/menu-button:top-2.5",+ "group-data-[collapsible=icon]:hidden",+ showOnHover &&+ "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground data-[state=open]:opacity-100 md:opacity-0",+ className+ )}+ {...props}+ />+ )+}++function SidebarMenuBadge({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-menu-badge"+ data-sidebar="menu-badge"+ className={cn(+ "pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none",+ "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",+ "peer-data-[size=sm]/menu-button:top-1",+ "peer-data-[size=default]/menu-button:top-1.5",+ "peer-data-[size=lg]/menu-button:top-2.5",+ "group-data-[collapsible=icon]:hidden",+ className+ )}+ {...props}+ />+ )+}++function SidebarMenuSkeleton({+ className,+ showIcon = false,+ ...props+}: React.ComponentProps<"div"> & {+ showIcon?: boolean+}) {+ // Random width between 50 to 90%.+ const width = React.useMemo(() => {+ return `${Math.floor(Math.random() * 40) + 50}%`+ }, [])++ return (+ <div+ data-slot="sidebar-menu-skeleton"+ data-sidebar="menu-skeleton"+ className={cn("flex h-8 items-center gap-2 rounded-md px-2", className)}+ {...props}+ >+ {showIcon && (+ <Skeleton+ className="size-4 rounded-md"+ data-sidebar="menu-skeleton-icon"+ />+ )}+ <Skeleton+ className="h-4 max-w-(--skeleton-width) flex-1"+ data-sidebar="menu-skeleton-text"+ style={+ {+ "--skeleton-width": width,+ } as React.CSSProperties+ }+ />+ </div>+ )+}++function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">) {+ return (+ <ul+ data-slot="sidebar-menu-sub"+ data-sidebar="menu-sub"+ className={cn(+ "mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5",+ "group-data-[collapsible=icon]:hidden",+ className+ )}+ {...props}+ />+ )+}++function SidebarMenuSubItem({+ className,+ ...props+}: React.ComponentProps<"li">) {+ return (+ <li+ data-slot="sidebar-menu-sub-item"+ data-sidebar="menu-sub-item"+ className={cn("group/menu-sub-item relative", className)}+ {...props}+ />+ )+}++function SidebarMenuSubButton({+ asChild = false,+ size = "md",+ isActive = false,+ className,+ ...props+}: React.ComponentProps<"a"> & {+ asChild?: boolean+ size?: "sm" | "md"+ isActive?: boolean+}) {+ const Comp = asChild ? Slot.Root : "a"++ return (+ <Comp+ data-slot="sidebar-menu-sub-button"+ data-sidebar="menu-sub-button"+ data-size={size}+ data-active={isActive}+ className={cn(+ "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",+ "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",+ size === "sm" && "text-xs",+ size === "md" && "text-sm",+ "group-data-[collapsible=icon]:hidden",+ className+ )}+ {...props}+ />+ )+}++export {+ Sidebar,+ SidebarContent,+ SidebarFooter,+ SidebarGroup,+ SidebarGroupAction,+ SidebarGroupContent,+ SidebarGroupLabel,+ SidebarHeader,+ SidebarInput,+ SidebarInset,+ SidebarMenu,+ SidebarMenuAction,+ SidebarMenuBadge,+ SidebarMenuButton,+ SidebarMenuItem,+ SidebarMenuSkeleton,+ SidebarMenuSub,+ SidebarMenuSubButton,+ SidebarMenuSubItem,+ SidebarProvider,+ SidebarRail,+ SidebarSeparator,+ SidebarTrigger,+ useSidebar,+}diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsxnew file mode 100644index 00000000..3ec6be77--- /dev/null+++ b/src/components/ui/skeleton.tsx@@ -0,0 +1,13 @@+import { cn } from "@/lib/utils"++function Skeleton({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="skeleton"+ className={cn("animate-pulse rounded-md bg-accent", className)}+ {...props}+ />+ )+}++export { Skeleton }diff --git a/src/components/ui/sonner.tsx b/src/components/ui/sonner.tsxnew file mode 100644index 00000000..9b20afe2--- /dev/null+++ b/src/components/ui/sonner.tsx@@ -0,0 +1,40 @@+"use client"++import {+ CircleCheckIcon,+ InfoIcon,+ Loader2Icon,+ OctagonXIcon,+ TriangleAlertIcon,+} from "lucide-react"+import { useTheme } from "next-themes"+import { Toaster as Sonner, type ToasterProps } from "sonner"++const Toaster = ({ ...props }: ToasterProps) => {+ const { theme = "system" } = useTheme()++ return (+ <Sonner+ theme={theme as ToasterProps["theme"]}+ className="toaster group"+ icons={{+ success: <CircleCheckIcon className="size-4" />,+ info: <InfoIcon className="size-4" />,+ warning: <TriangleAlertIcon className="size-4" />,+ error: <OctagonXIcon className="size-4" />,+ loading: <Loader2Icon className="size-4 animate-spin" />,+ }}+ style={+ {+ "--normal-bg": "var(--popover)",+ "--normal-text": "var(--popover-foreground)",+ "--normal-border": "var(--border)",+ "--border-radius": "var(--radius)",+ } as React.CSSProperties+ }+ {...props}+ />+ )+}++export { Toaster }diff --git a/src/components/ui/tooltip.tsx b/src/components/ui/tooltip.tsxnew file mode 100644index 00000000..ec65c1e4--- /dev/null+++ b/src/components/ui/tooltip.tsx@@ -0,0 +1,57 @@+"use client"++import * as React from "react"+import { Tooltip as TooltipPrimitive } from "radix-ui"++import { cn } from "@/lib/utils"++function TooltipProvider({+ delayDuration = 0,+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {+ return (+ <TooltipPrimitive.Provider+ data-slot="tooltip-provider"+ delayDuration={delayDuration}+ {...props}+ />+ )+}++function Tooltip({+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Root>) {+ return <TooltipPrimitive.Root data-slot="tooltip" {...props} />+}++function TooltipTrigger({+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />+}++function TooltipContent({+ className,+ sideOffset = 0,+ children,+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Content>) {+ return (+ <TooltipPrimitive.Portal>+ <TooltipPrimitive.Content+ data-slot="tooltip-content"+ sideOffset={sideOffset}+ className={cn(+ "z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",+ className+ )}+ {...props}+ >+ {children}+ <TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground" />+ </TooltipPrimitive.Content>+ </TooltipPrimitive.Portal>+ )+}++export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }diff --git a/src/hooks/use-mobile.ts b/src/hooks/use-mobile.tsnew file mode 100644index 00000000..2b0fe1df--- /dev/null+++ b/src/hooks/use-mobile.ts@@ -0,0 +1,19 @@+import * as React from "react"++const MOBILE_BREAKPOINT = 768++export function useIsMobile() {+ const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)++ React.useEffect(() => {+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)+ const onChange = () => {+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)+ }+ mql.addEventListener("change", onChange)+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)+ return () => mql.removeEventListener("change", onChange)+ }, [])++ return !!isMobile+}diff --git a/src/lib/agent-colors.ts b/src/lib/agent-colors.tsnew file mode 100644index 00000000..8a9db6da--- /dev/null+++ b/src/lib/agent-colors.ts@@ -0,0 +1,48 @@+import type { AgentTemplateKey } from "@/server/agent-templates";++/**+ * Per-agent color palette used by the cron calendar so users can scan which+ * agent owns which job at a glance. Deliberately distinct hues that all read+ * well against the zinc neutral background.+ */+export type AgentColor = {+ /** Tailwind classes: chip background + text color. */+ chip: string;+ /** Solid dot/legend swatch. */+ dot: string;+ /** Label color when only the label is shown. */+ label: string;+};++const PALETTE: Record<AgentTemplateKey, AgentColor> = {+ cmo: {+ chip: "bg-blue-100 text-blue-900 dark:bg-blue-950 dark:text-blue-100 border-blue-200/60 dark:border-blue-900",+ dot: "bg-blue-500",+ label: "text-blue-700 dark:text-blue-300",+ },+ google_ads: {+ chip: "bg-amber-100 text-amber-900 dark:bg-amber-950 dark:text-amber-100 border-amber-200/60 dark:border-amber-900",+ dot: "bg-amber-500",+ label: "text-amber-700 dark:text-amber-300",+ },+ seo: {+ chip: "bg-emerald-100 text-emerald-900 dark:bg-emerald-950 dark:text-emerald-100 border-emerald-200/60 dark:border-emerald-900",+ dot: "bg-emerald-500",+ label: "text-emerald-700 dark:text-emerald-300",+ },+};++const FALLBACK: AgentColor = {+ chip: "bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100 border-zinc-200/60 dark:border-zinc-800",+ dot: "bg-zinc-500",+ label: "text-zinc-700 dark:text-zinc-300",+};++/**+ * Resolve a color for an agent slug as it appears in our cron view.+ * Accepts both URL slugs ("google-ads") and template keys ("google_ads").+ */+export function colorForAgentSlug(slug: string): AgentColor {+ const normalized = slug.replace(/-/g, "_") as AgentTemplateKey;+ return PALETTE[normalized] ?? FALLBACK;+}diff --git a/src/lib/slash-commands.ts b/src/lib/slash-commands.tsnew file mode 100644index 00000000..9944ed9a--- /dev/null+++ b/src/lib/slash-commands.ts@@ -0,0 +1,281 @@+/**+ * Slash command catalog + local executor.+ *+ * Ported from OpenClaw's web UI:+ * - ui/src/ui/chat/slash-commands.ts (catalog + LOCAL_COMMANDS set)+ * - ui/src/ui/chat/slash-command-executor.ts (action-based dispatcher)+ *+ * Rules:+ * - executeLocal=true → command is handled by the client; not sent to the agent.+ * - Anything else → message goes to OpenClaw verbatim.+ *+ * For the V1 client we wire only the no-gateway-RPC locals (clear, new, help,+ * stop). The rest carry executeLocal=false and pass through to the agent.+ */++export type SlashCommandCategory =+ | "session"+ | "model"+ | "status"+ | "agents"+ | "tools"+ | "advanced";++export type SlashCommandTier = "essential" | "standard" | "power";++export type SlashCommand = {+ /** Canonical key (matches OpenClaw registry where applicable). */+ key: string;+ /** Display name (without the leading slash). */+ name: string;+ /** Short description shown in the menu. */+ description: string;+ /** Optional argument hint shown beside the name. */+ args?: string;+ category: SlashCommandCategory;+ tier: SlashCommandTier;+ /** When true, AgentChat handles this client-side and does NOT call openclaw. */+ executeLocal?: boolean;+ /** Text inserted into the textarea when the user picks this. Defaults to `/${name} `. */+ insert?: string;+};++export const SLASH_COMMANDS: SlashCommand[] = [+ // Session — local-only in OpenClaw web UI+ {+ key: "clear",+ name: "clear",+ description: "Clear the visible chat buffer (trajectory on disk is kept).",+ category: "session",+ tier: "essential",+ executeLocal: true,+ },+ {+ key: "new",+ name: "new",+ description: "Start a new session (creates a fresh thread).",+ category: "session",+ tier: "essential",+ executeLocal: true,+ },+ {+ key: "stop",+ name: "stop",+ description: "Stop the in-flight response.",+ category: "session",+ tier: "essential",+ executeLocal: true,+ },+ {+ key: "help",+ name: "help",+ description: "Show available commands.",+ category: "status",+ tier: "essential",+ executeLocal: true,+ },++ // Status — sent to the agent / OpenClaw handles+ {+ key: "commands",+ name: "commands",+ description: "List all slash commands.",+ category: "status",+ tier: "power",+ },+ {+ key: "status",+ name: "status",+ description: "Show current status.",+ category: "status",+ tier: "essential",+ },+ {+ key: "whoami",+ name: "whoami",+ description: "Show your identity / caller.",+ category: "status",+ tier: "standard",+ },+ {+ key: "usage",+ name: "usage",+ description: "Show token / cost usage for this session.",+ category: "status",+ tier: "standard",+ },++ // Tools+ {+ key: "tools",+ name: "tools",+ description: "List available runtime tools.",+ category: "tools",+ tier: "standard",+ },+ {+ key: "skill",+ name: "skill",+ description: "Run a skill by name.",+ args: "<name>",+ category: "tools",+ tier: "standard",+ insert: "/skill ",+ },++ // Session / context management — pass through to OpenClaw+ {+ key: "compact",+ name: "compact",+ description: "Compact the session context to reduce token use.",+ category: "session",+ tier: "standard",+ },+ {+ key: "reset",+ name: "reset",+ description: "Reset the current session.",+ category: "session",+ tier: "standard",+ },++ // Model / behaviour directives — pass through to OpenClaw+ {+ key: "model",+ name: "model",+ description: "Override model for this turn.",+ args: "<id>",+ category: "model",+ tier: "standard",+ insert: "/model ",+ },+ {+ key: "think",+ name: "think",+ description: "Directive: enable extended thinking.",+ category: "model",+ tier: "standard",+ },+ {+ key: "fast",+ name: "fast",+ description: "Directive: disable thinking for fastest response.",+ category: "model",+ tier: "standard",+ },+ {+ key: "verbose",+ name: "verbose",+ description: "Directive: verbose progress output.",+ category: "model",+ tier: "standard",+ },+ {+ key: "trace",+ name: "trace",+ description: "Directive: include trace details.",+ category: "model",+ tier: "power",+ },+ {+ key: "reasoning",+ name: "reasoning",+ description: "Directive: surface reasoning steps.",+ category: "model",+ tier: "power",+ },++ // Advanced+ {+ key: "elevated",+ name: "elevated",+ description: "Directive: request elevated permissions (gateway-controlled).",+ category: "advanced",+ tier: "power",+ },+ {+ key: "exec",+ name: "exec",+ description: "Directive: allow exec tool use (gateway-controlled).",+ category: "advanced",+ tier: "power",+ },+ {+ key: "queue",+ name: "queue",+ description: "Directive: queue the turn instead of running inline.",+ category: "advanced",+ tier: "power",+ },+];++/**+ * Filter commands by what the user has typed after the leading `/`.+ * Prefix match wins; substring is a fallback so `/cm` still finds /compact + /commands.+ */+export function filterSlashCommands(query: string): SlashCommand[] {+ const q = query.trim().toLowerCase();+ if (!q || q === "/") return SLASH_COMMANDS;+ const stripped = q.startsWith("/") ? q.slice(1) : q;+ const exact = SLASH_COMMANDS.filter((c) => c.name.toLowerCase().startsWith(stripped));+ if (exact.length > 0) return exact;+ return SLASH_COMMANDS.filter((c) => c.name.toLowerCase().includes(stripped));+}++/**+ * Parse a chat message into { command, args } if it starts with a slash.+ * Returns null for plain (non-slash) messages.+ */+export function parseSlashMessage(text: string): { command: string; args: string } | null {+ const trimmed = text.trim();+ if (!trimmed.startsWith("/")) return null;+ const space = trimmed.indexOf(" ");+ if (space === -1) {+ return { command: trimmed.slice(1), args: "" };+ }+ return { command: trimmed.slice(1, space), args: trimmed.slice(space + 1).trim() };+}++export function findCommand(name: string): SlashCommand | undefined {+ return SLASH_COMMANDS.find((c) => c.name === name);+}++// --- Local command actions ---++export type LocalSlashAction =+ | { kind: "clear" }+ | { kind: "new-session" }+ | { kind: "stop" }+ | { kind: "help"; content: string };++/**+ * Execute a slash command locally if it's marked executeLocal. Returns null+ * when the command should be sent to the agent verbatim.+ */+export function executeLocalSlashCommand(command: string): LocalSlashAction | null {+ const def = findCommand(command);+ if (!def?.executeLocal) return null;+ switch (command) {+ case "clear":+ return { kind: "clear" };+ case "new":+ return { kind: "new-session" };+ case "stop":+ return { kind: "stop" };+ case "help":+ return { kind: "help", content: renderHelp() };+ default:+ // executeLocal=true but no handler? Treat as pass-through.+ return null;+ }+}++function renderHelp(): string {+ const lines = ["**Available commands** (type `/` to open the menu):", ""];+ for (const c of SLASH_COMMANDS) {+ const args = c.args ? ` ${c.args}` : "";+ const local = c.executeLocal ? " · local" : " · sent to agent";+ lines.push(`• \`/${c.name}${args}\` — ${c.description}${local}`);+ }+ return lines.join("\n");+}diff --git a/src/lib/slug.ts b/src/lib/slug.tsnew file mode 100644index 00000000..24f3d9fc--- /dev/null+++ b/src/lib/slug.ts@@ -0,0 +1,52 @@+const RESERVED_SLUGS = new Set([+ "api",+ "app",+ "auth",+ "admin",+ "system",+ "settings",+ "cron",+ "agent",+ "agents",+ "cmo",+ "notfair",+ "openclaw",+]);++const SLUG_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;++export type SlugResult =+ | { ok: true; slug: string }+ | { ok: false; reason: string };++export function slugify(input: string, maxLen = 40): SlugResult {+ const trimmed = input.trim();+ if (!trimmed) return { ok: false, reason: "input is empty" };++ const ascii = trimmed+ .toLowerCase()+ .normalize("NFKD")+ .replace(/[̀-ͯ]/g, "")+ .replace(/[^a-z0-9\s-]/g, "")+ .replace(/\s+/g, "-")+ .replace(/-+/g, "-")+ .replace(/^-|-$/g, "");++ if (!ascii) return { ok: false, reason: "no valid characters" };++ const capped = ascii.slice(0, maxLen).replace(/-+$/g, "");++ if (!SLUG_PATTERN.test(capped)) {+ return { ok: false, reason: "result does not match slug pattern" };+ }++ if (RESERVED_SLUGS.has(capped)) {+ return { ok: false, reason: `'${capped}' is reserved` };+ }++ return { ok: true, slug: capped };+}++export function isValidSlug(slug: string): boolean {+ return SLUG_PATTERN.test(slug) && !RESERVED_SLUGS.has(slug);+}diff --git a/src/lib/utils.ts b/src/lib/utils.tsnew file mode 100644index 00000000..a5ef1935--- /dev/null+++ b/src/lib/utils.ts@@ -0,0 +1,6 @@+import { clsx, type ClassValue } from "clsx";+import { twMerge } from "tailwind-merge";++export function cn(...inputs: ClassValue[]) {+ return twMerge(clsx(inputs));+}diff --git a/src/server/actions/approvals.ts b/src/server/actions/approvals.tsnew file mode 100644index 00000000..b5465e9d--- /dev/null+++ b/src/server/actions/approvals.ts@@ -0,0 +1,20 @@+"use server";++import { revalidatePath } from "next/cache";+import { resolveApproval } from "@/server/db/approvals";++export async function approveAction(id: string): Promise<{ ok: boolean; error?: string }> {+ const result = resolveApproval(id, "approved");+ if (!result) return { ok: false, error: "Approval not found or already resolved." };+ revalidatePath("/approvals");+ revalidatePath("/", "layout");+ return { ok: true };+}++export async function rejectAction(id: string): Promise<{ ok: boolean; error?: string }> {+ const result = resolveApproval(id, "rejected");+ if (!result) return { ok: false, error: "Approval not found or already resolved." };+ revalidatePath("/approvals");+ revalidatePath("/", "layout");+ return { ok: true };+}diff --git a/src/server/actions/crons.ts b/src/server/actions/crons.tsnew file mode 100644index 00000000..144e1b15--- /dev/null+++ b/src/server/actions/crons.ts@@ -0,0 +1,91 @@+"use server";++import { revalidatePath } from "next/cache";+import { createCron, disableCron, enableCron, removeCron } from "@/server/openclaw/crons";+import { agentNameFor, type AgentTemplate } from "@/server/agent-templates";+import { slugify } from "@/lib/slug";+import { logAgentAction } from "@/server/db/agent-actions";++export type ScheduleCronInput = {+ project_slug: string;+ specialist: AgentTemplate["key"];+ name: string;+ schedule_kind: "cron" | "every";+ schedule_value: string;+ tz?: string;+ brief: string;+};++export type ScheduleCronResult =+ | { ok: true; cron_id: string; cron_name: string }+ | { ok: false; error: string };++export async function scheduleCronAction(input: ScheduleCronInput): Promise<ScheduleCronResult> {+ const nameSlug = slugify(input.name);+ if (!nameSlug.ok) return { ok: false, error: `Invalid name: ${nameSlug.reason}` };++ const briefTrimmed = input.brief.trim();+ if (!briefTrimmed) return { ok: false, error: "Brief is required." };++ const scheduleValueTrimmed = input.schedule_value.trim();+ if (!scheduleValueTrimmed) return { ok: false, error: "Schedule is required." };++ const agent_slug = input.specialist.replace(/_/g, "-");+ const agent_full_id = agentNameFor(input.project_slug, input.specialist);++ try {+ const result = await createCron({+ project_slug: input.project_slug,+ agent_slug,+ agent_full_id,+ cron_name: nameSlug.slug,+ schedule:+ input.schedule_kind === "cron"+ ? { kind: "cron", expr: scheduleValueTrimmed, tz: input.tz }+ : { kind: "every", duration: scheduleValueTrimmed },+ message: briefTrimmed,+ });+ logAgentAction({+ project_slug: input.project_slug,+ agent_id: agent_full_id,+ action_type: "cron_created",+ summary: `Scheduled '${nameSlug.slug}' (${input.schedule_kind} ${scheduleValueTrimmed})`,+ payload: { cron_id: result.id, cron_name: result.name, brief: briefTrimmed },+ });+ revalidatePath("/crons");+ revalidatePath("/", "layout");+ return { ok: true, cron_id: result.id, cron_name: result.name };+ } catch (err) {+ return { ok: false, error: err instanceof Error ? err.message : String(err) };+ }+}++export async function pauseCronAction(id: string): Promise<{ ok: boolean; error?: string }> {+ try {+ await disableCron(id);+ revalidatePath("/crons");+ return { ok: true };+ } catch (err) {+ return { ok: false, error: err instanceof Error ? err.message : String(err) };+ }+}++export async function resumeCronAction(id: string): Promise<{ ok: boolean; error?: string }> {+ try {+ await enableCron(id);+ revalidatePath("/crons");+ return { ok: true };+ } catch (err) {+ return { ok: false, error: err instanceof Error ? err.message : String(err) };+ }+}++export async function deleteCronAction(id: string): Promise<{ ok: boolean; error?: string }> {+ try {+ await removeCron(id);+ revalidatePath("/crons");+ return { ok: true };+ } catch (err) {+ return { ok: false, error: err instanceof Error ? err.message : String(err) };+ }+}diff --git a/src/server/actions/guardrails.ts b/src/server/actions/guardrails.tsnew file mode 100644index 00000000..967d4820--- /dev/null+++ b/src/server/actions/guardrails.ts@@ -0,0 +1,46 @@+"use server";++import { revalidatePath } from "next/cache";+import { setGuardrails, getGuardrails } from "@/server/db/guardrails";++export async function updateGuardrailsAction(+ project_slug: string,+ formData: FormData,+): Promise<void> {+ const current = getGuardrails(project_slug);+ const max_daily_spend_usd = num(formData.get("max_daily_spend_usd"), current.max_daily_spend_usd);+ const max_concurrent_experiments = num(+ formData.get("max_concurrent_experiments"),+ current.max_concurrent_experiments,+ );+ const spend_per_action_usd = num(+ formData.get("spend_per_action_usd"),+ current.require_approval_above.spend_per_action_usd,+ );+ const bid_changes_percent = num(+ formData.get("bid_changes_percent"),+ current.require_approval_above.bid_changes_percent,+ );++ setGuardrails({+ project_slug,+ max_daily_spend_usd,+ max_concurrent_experiments,+ require_approval_above: {+ spend_per_action_usd,+ new_channel_first_action: formData.get("new_channel_first_action") === "on",+ content_publishing: formData.get("content_publishing") === "on",+ bid_changes_percent,+ audience_change: formData.get("audience_change") === "on",+ },+ });++ revalidatePath("/settings");+ revalidatePath("/", "layout");+}++function num(v: FormDataEntryValue | null, fallback: number): number {+ if (typeof v !== "string") return fallback;+ const n = Number(v);+ return Number.isFinite(n) ? n : fallback;+}diff --git a/src/server/actions/projects.ts b/src/server/actions/projects.tsnew file mode 100644index 00000000..72c0a603--- /dev/null+++ b/src/server/actions/projects.ts@@ -0,0 +1,104 @@+"use server";++import { revalidatePath } from "next/cache";+import { redirect } from "next/navigation";+import { archiveProject, createProject, renameProject } from "@/server/db/projects";+import { setActiveProject } from "@/server/active-project";+import { ensureProjectAgents } from "@/server/agent-templates";+import { listCronsForProject, disableCron } from "@/server/openclaw/crons";+import { logAgentAction } from "@/server/db/agent-actions";++export type ActionResult<T = void> =+ | { ok: true; data: T }+ | { ok: false; error: string };++// Throws on validation failure so form action signature is `(formData) => Promise<void>`.+// Pages can render `error.tsx` for fallback; for inline UI feedback, wire `useActionState`+// in a client wrapper later if needed.+export async function createProjectAction(formData: FormData): Promise<void> {+ const display_name = String(formData.get("display_name") ?? "").trim();+ if (!display_name) throw new Error("Please enter a project name.");++ const result = createProject({ display_name });+ if (!result.ok) throw new Error(result.reason);++ // Provision OpenClaw agents inline so the project is immediately usable.+ // If provisioning fails (e.g., OpenClaw down), the project row still exists+ // and the user can re-run provisioning from project home later.+ try {+ const prov = await ensureProjectAgents(result.project.slug);+ logAgentAction({+ project_slug: result.project.slug,+ agent_id: "system",+ action_type: "project_created",+ summary: `Project '${result.project.display_name}' created. ${prov.created.length} agents provisioned.`,+ payload: prov,+ });+ } catch (err) {+ console.error("Agent provisioning failed; project created but no agents:", err);+ }++ await setActiveProject(result.project.slug);+ revalidatePath("/", "layout");+ redirect("/");+}++export async function reprovisionAgentsAction(slug: string): Promise<{ ok: true; created: string[]; existed: string[] } | { ok: false; error: string }> {+ try {+ const result = await ensureProjectAgents(slug);+ revalidatePath("/", "layout");+ return { ok: true, ...result };+ } catch (err) {+ return { ok: false, error: err instanceof Error ? err.message : String(err) };+ }+}++export async function switchProjectAction(slug: string): Promise<ActionResult> {+ await setActiveProject(slug);+ revalidatePath("/", "layout");+ return { ok: true, data: undefined };+}++export async function archiveProjectAction(+ slug: string,+): Promise<ActionResult<{ halted_crons: number }>> {+ const updated = archiveProject(slug);+ if (!updated) return { ok: false, error: "Project not found." };++ // Cascade: halt all OpenClaw crons matching this project's prefix.+ // Failure to halt is non-fatal; user can clean up manually via the cron tab.+ let halted = 0;+ try {+ const view = await listCronsForProject(slug);+ for (const group of view.groups) {+ for (const cron of group.crons) {+ if (cron.disabled) continue;+ try {+ await disableCron(cron.id);+ halted += 1;+ } catch (err) {+ console.error(`Failed to disable cron ${cron.id} during archive:`, err);+ }+ }+ }+ } catch (err) {+ console.error("Could not list crons during project archive:", err);+ }++ logAgentAction({+ project_slug: slug,+ agent_id: "system",+ action_type: "project_archived",+ summary: `Project archived. ${halted} cron${halted === 1 ? "" : "s"} halted.`,+ });++ revalidatePath("/", "layout");+ return { ok: true, data: { halted_crons: halted } };+}++export async function renameProjectAction(slug: string, display_name: string): Promise<ActionResult> {+ const updated = renameProject(slug, display_name);+ if (!updated) return { ok: false, error: "Project not found or name invalid." };+ revalidatePath("/", "layout");+ return { ok: true, data: undefined };+}diff --git a/src/server/actions/sessions.ts b/src/server/actions/sessions.tsnew file mode 100644index 00000000..6be66109--- /dev/null+++ b/src/server/actions/sessions.ts@@ -0,0 +1,38 @@+"use server";++import { revalidatePath } from "next/cache";+import { getActiveProject } from "@/server/active-project";+import { templateForUrlSlug } from "@/server/agent-templates";+import { newSessionId, setActiveSession } from "@/server/openclaw/sessions";++type Result<T> = { ok: true; data: T } | { ok: false; error: string };++/**+ * "New thread" = mint a UUID, set it as active. OpenClaw creates the actual+ * session entry on the first agent turn under that UUID. We do not persist+ * anything ourselves.+ */+export async function newSessionAction(agentSlug: string): Promise<Result<{ sessionId: string }>> {+ const project = await getActiveProject();+ if (!project) return { ok: false, error: "No active project." };+ const template = templateForUrlSlug(agentSlug);+ if (!template) return { ok: false, error: `Unknown agent: ${agentSlug}` };++ const sessionId = newSessionId();+ await setActiveSession(project.slug, template.key, sessionId);+ revalidatePath(`/chat/${agentSlug}`);+ return { ok: true, data: { sessionId } };+}++export async function switchSessionAction(+ agentSlug: string,+ sessionId: string,+): Promise<Result<{ sessionId: string }>> {+ const project = await getActiveProject();+ if (!project) return { ok: false, error: "No active project." };+ const template = templateForUrlSlug(agentSlug);+ if (!template) return { ok: false, error: `Unknown agent: ${agentSlug}` };+ await setActiveSession(project.slug, template.key, sessionId);+ revalidatePath(`/chat/${agentSlug}`);+ return { ok: true, data: { sessionId } };+}diff --git a/src/server/active-project.ts b/src/server/active-project.tsnew file mode 100644index 00000000..6aab8c0b--- /dev/null+++ b/src/server/active-project.ts@@ -0,0 +1,32 @@+import { cookies } from "next/headers";+import { getProject, listProjects } from "./db/projects";+import type { Project } from "@/types";++const COOKIE_NAME = "notfair_active_project";++export async function getActiveProject(): Promise<Project | null> {+ const c = await cookies();+ const slug = c.get(COOKIE_NAME)?.value;+ if (slug) {+ const p = getProject(slug);+ if (p && !p.archived_at) return p;+ }+ // Fall back to the first non-archived project, if any.+ const all = listProjects();+ return all[0] ?? null;+}++export async function setActiveProject(slug: string): Promise<void> {+ const c = await cookies();+ c.set(COOKIE_NAME, slug, {+ httpOnly: true,+ sameSite: "lax",+ path: "/",+ maxAge: 60 * 60 * 24 * 365,+ });+}++export async function clearActiveProject(): Promise<void> {+ const c = await cookies();+ c.delete(COOKIE_NAME);+}diff --git a/src/server/agent-templates.ts b/src/server/agent-templates.tsnew file mode 100644index 00000000..63835097--- /dev/null+++ b/src/server/agent-templates.ts@@ -0,0 +1,257 @@+import { mkdir, writeFile } from "node:fs/promises";+import { homedir } from "node:os";+import { join } from "node:path";+import { openclaw } from "@/server/openclaw/cli";++/**+ * Embedded in every agent's system prompt so the agent knows how to create+ * recurring jobs via the `openclaw cron add` CLI (using its built-in `exec`+ * tool). LLMs follow examples better than rules, so keep this concrete.+ *+ * The notfair-cmo project name convention `<project> / <agent> / <name>` is+ * what makes the cron tab in the UI parse and group cleanly. Drift here =+ * cron lands in "ungrouped" bucket. Strong prompt + examples = compliance.+ */+const SCHEDULE_RECURRING_WORK_SYSTEM_PROMPT = `## Scheduling recurring work++When the user asks you to "do X every day", "every Monday", "every hour", etc.,+USE your \`exec\` tool to run \`openclaw cron add ...\` and actually create the cron.+Do not just describe the schedule in chat.++CLI shape (one of these):++ openclaw cron add \\+ --name "<project-slug> / <agent-slug> / <cron-name>" \\+ --description "<one line: what this cron does>" \\+ --agent <project-slug>-<agent-slug> \\+ --cron "<5-field cron expr>" \\+ --tz "America/Los_Angeles" \\+ --message "RUN: instructions to your future self" \\+ --no-deliver \\+ --json++ openclaw cron add \\+ --name "<project-slug> / <agent-slug> / <cron-name>" \\+ --description "<one line>" \\+ --agent <project-slug>-<agent-slug> \\+ --every "1h" \\+ --message "RUN: instructions" \\+ --no-deliver \\+ --json++Required fields you must get right:++- \`--name "<project> / <agent> / <cron>"\` the literal "/" with spaces is the+ separator the notfair-cmo UI parses to group crons under the right agent.+ project = this project's slug (in your context). agent = "cmo" | "google-ads" |+ "seo" (use hyphen, not underscore). cron = kebab-case verb describing the work.+- \`--agent <project>-<agent>\` (NO slashes, hyphenated). Examples:+ \`acme-q4-google-ads\`, \`acme-q4-seo\`, \`acme-q4-cmo\`.+- \`--cron "<expr>"\` or \`--every "<duration>"\`, never both.+- \`--no-deliver\` always (unless the user explicitly wants a channel delivery).+- \`--json\` always (so you can confirm the created cron id).++Schedule formats:+- Cron expr: standard 5-field (minute hour day-of-month month day-of-week).+ "0 9 * * *" = daily 9am · "0 6 * * 1" = Mondays 6am · "*/15 * * * *" = every 15m.+- "every" durations: "30s", "5m", "1h", "6h", "1d".+- Always include \`--tz\` (IANA, e.g. "America/Los_Angeles", "UTC") for cron exprs.++Cron name rules (the last segment of \`--name\`):+- Lowercase, alphanumeric, hyphens. Describe the work, not the schedule.+- Good: \`daily-bid-opt\`, \`weekly-rank-check\`, \`hourly-metrics\`.+- Bad: \`9am-cron\`, \`every-monday\`.++Brief (the \`--message\` value):+- Instructions to your future self on each tick. Be specific.+- Example: \`RUN: pull yesterday's Google Ads campaign performance and propose bid+ adjustments within the project's daily spend cap.\`++After running, parse the JSON output and confirm the cron id to the user in chat.+`;++export type AgentTemplate = {+ key: "cmo" | "google_ads" | "seo";+ display_name: string;+ description: string;+ capabilities: string[];+ model: string;+ system_prompt: string;+};++export type AgentTemplateKey = AgentTemplate["key"];++export function templateForKey(key: string): AgentTemplate | undefined {+ return TEMPLATES.find((t) => t.key === key || t.key.replace(/_/g, "-") === key);+}++export function templateForUrlSlug(slug: string): AgentTemplate | undefined {+ // URL slugs use hyphens (google-ads), template keys use underscores (google_ads).+ return TEMPLATES.find(+ (t) => t.key === slug || t.key.replace(/_/g, "-") === slug,+ );+}++export function urlSlugForTemplate(key: AgentTemplateKey): string {+ return key.replace(/_/g, "-");+}++export const TEMPLATES: AgentTemplate[] = [+ {+ key: "cmo",+ display_name: "CMO",+ description: "Chief Marketing Officer. Owns strategy and orchestrates the specialist agents.",+ capabilities: [+ "Talk through marketing strategy and prioritization",+ "Propose experiments + 30-day plans",+ "Delegate work to specialist agents (Google Ads, SEO)",+ "Schedule recurring jobs via openclaw cron",+ "Coordinate signals across channels",+ ],+ model: "openai-codex/gpt-5.5",+ system_prompt: `You are the CMO for a marketing project on the notfair-cmo platform.++Your job: be a thoughtful chief marketing officer. Help the user think through+strategy, propose experiments, prioritize channels, and (when asked) schedule recurring+work for the specialist agents you coordinate.++${SCHEDULE_RECURRING_WORK_SYSTEM_PROMPT}++Style:+- Lead with the point. Be specific. Reference real numbers and channel realities.+- Don't waffle. Recommendations beat options. The user can push back.+- When a user asks for recurring work, USE the tool. Don't just describe what you'd schedule.`,+ },+ {+ key: "google_ads",+ display_name: "Google Ads",+ description: "Runs Google Ads campaigns, keywords, bids, budgets, search terms, negatives.",+ capabilities: [+ "Audit account health + identify wasted spend",+ "Propose + apply bid changes within guardrails",+ "Manage keywords, ad groups, negative lists",+ "Pull performance metrics + surface anomalies",+ "Schedule recurring bid/metric jobs",+ "Uses notfair-googleads MCP when account connected",+ ],+ model: "openai-codex/gpt-5.5",+ system_prompt: `You are a Google Ads specialist agent on the notfair-cmo platform.++You handle Google Ads work: campaigns, keywords, bids, budgets, search terms,+negatives. When the notfair-googleads MCP is connected, use it for live account+operations.++${SCHEDULE_RECURRING_WORK_SYSTEM_PROMPT}++Schedule yourself for recurring jobs the user asks for: hourly metric pulls, daily+bid optimization, weekly negative keyword reviews. Use specialist_agent_type:"google_ads"+when scheduling work for yourself.`,+ },+ {+ key: "seo",+ display_name: "SEO",+ description: "SEO audits, content recommendations, ranking + click tracking, technical SEO.",+ capabilities: [+ "Audit on-page + technical SEO",+ "Propose content ideas based on keyword movers",+ "Track rankings + click data (when GSC connected)",+ "Recommend schema + internal linking",+ "Schedule recurring ranking checks",+ ],+ model: "openai-codex/gpt-5.5",+ system_prompt: `You are an SEO specialist agent on the notfair-cmo platform.++You handle SEO work: audits, content recommendations, ranking checks, technical SEO,+schema, internal linking. When Google Search Console is connected, use it for ranking++ click data.++${SCHEDULE_RECURRING_WORK_SYSTEM_PROMPT}++Schedule yourself for recurring jobs the user asks for: weekly ranking checks, daily+content idea generation, monthly site audits. Use specialist_agent_type:"seo" when+scheduling work for yourself.`,+ },+];++export function agentNameFor(project_slug: string, template_key: AgentTemplate["key"]): string {+ // OpenClaw agent name format: <project-slug>-<template-key>+ // Avoids reserved names; lowercase + hyphen-only.+ const safe_template = template_key.replace(/_/g, "-");+ return `${project_slug}-${safe_template}`;+}++export async function ensureProjectAgents(project_slug: string): Promise<{+ created: string[];+ existed: string[];+}> {+ const created: string[] = [];+ const existed: string[] = [];++ for (const template of TEMPLATES) {+ const name = agentNameFor(project_slug, template.key);+ const workspaceAbs = workspaceDirFor(name);+ const already = await agentExists(name);+ if (already) {+ // Idempotently refresh the IDENTITY.md so prompt edits propagate to+ // existing agents without forcing the user to delete + recreate.+ await writeIdentityFile(workspaceAbs, template);+ existed.push(name);+ continue;+ }+ try {+ // We deliberately do NOT pass --model. OpenClaw applies its+ // agents.defaults.model config (primary + fallbacks chain) when no model+ // is specified. Overriding only the primary string would strip the user's+ // configured fallback list and reintroduce single-point-of-failure+ // behavior on provider cooldowns. The template.model field stays in+ // metadata for documentation; future versions can wire a multi-model+ // override once `openclaw agents add` supports it.+ await openclaw([+ "agents",+ "add",+ name,+ "--non-interactive",+ "--workspace",+ workspaceAbs,+ ]);+ await writeIdentityFile(workspaceAbs, template);+ created.push(name);+ } catch (err) {+ // Surface but don't crash the loop; partial provisioning recoverable on retry.+ console.error(`Failed to create agent ${name}:`, err);+ }+ }++ return { created, existed };+}++function workspaceDirFor(name: string): string {+ const dataDir = process.env.NOTFAIR_CMO_DATA_DIR ?? join(homedir(), ".notfair-cmo");+ return join(dataDir, "agents", name);+}++async function writeIdentityFile(workspaceAbs: string, template: AgentTemplate): Promise<void> {+ try {+ await mkdir(workspaceAbs, { recursive: true });+ const body = `# ${template.display_name}++${template.description}++${template.system_prompt}+`;+ await writeFile(join(workspaceAbs, "IDENTITY.md"), body, "utf8");+ } catch (err) {+ console.error(`Could not write IDENTITY.md for ${template.key}:`, err);+ }+}++async function agentExists(name: string): Promise<boolean> {+ try {+ // `agents list` doesn't currently take a name filter, so list-all and grep.+ // V1 acceptable; revisit if list grows large.+ const out = (await openclaw(["agents", "list"], { json: false })) as string;+ return out.includes(name);+ } catch {+ return false;+ }+}diff --git a/src/server/db/agent-actions.ts b/src/server/db/agent-actions.tsnew file mode 100644index 00000000..65e09f43--- /dev/null+++ b/src/server/db/agent-actions.ts@@ -0,0 +1,61 @@+import { randomUUID } from "node:crypto";+import { getDb } from "./db";++export type AgentAction = {+ id: string;+ project_slug: string;+ agent_id: string;+ task_id: string | null;+ action_type: string;+ summary: string;+ reasoning: string | null;+ payload_json: string | null;+ occurred_at: string;+};++export type LogActionInput = {+ project_slug: string;+ agent_id: string;+ action_type: string;+ summary: string;+ reasoning?: string | null;+ task_id?: string | null;+ payload?: unknown;+};++export function logAgentAction(input: LogActionInput): AgentAction {+ const db = getDb();+ const action: AgentAction = {+ id: randomUUID(),+ project_slug: input.project_slug,+ agent_id: input.agent_id,+ task_id: input.task_id ?? null,+ action_type: input.action_type,+ summary: input.summary,+ reasoning: input.reasoning ?? null,+ payload_json: input.payload === undefined ? null : JSON.stringify(input.payload),+ occurred_at: new Date().toISOString(),+ };+ db.prepare(+ `INSERT INTO agent_actions (id, project_slug, agent_id, task_id, action_type, summary, reasoning, payload_json, occurred_at)+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`,+ ).run(+ action.id,+ action.project_slug,+ action.agent_id,+ action.task_id,+ action.action_type,+ action.summary,+ action.reasoning,+ action.payload_json,+ action.occurred_at,+ );+ return action;+}++export function listAgentActions(project_slug: string, limit = 50): AgentAction[] {+ const db = getDb();+ return db+ .prepare("SELECT * FROM agent_actions WHERE project_slug = ? ORDER BY occurred_at DESC LIMIT ?")+ .all(project_slug, limit) as AgentAction[];+}diff --git a/src/server/db/approvals.ts b/src/server/db/approvals.tsnew file mode 100644index 00000000..004e4893--- /dev/null+++ b/src/server/db/approvals.ts@@ -0,0 +1,73 @@+import { randomUUID } from "node:crypto";+import { getDb } from "./db";+import type { Approval, ApprovalStatus, ApprovalType } from "@/types";++export type CreateApprovalInput = {+ project_slug: string;+ agent_id: string;+ action_summary: string;+ action_type: ApprovalType;+ cost_estimate_usd: number;+ reasoning?: string | null;+ payload: unknown;+};++export function createApproval(input: CreateApprovalInput): Approval {+ const db = getDb();+ const approval: Approval = {+ id: randomUUID(),+ project_slug: input.project_slug,+ agent_id: input.agent_id,+ action_summary: input.action_summary,+ action_type: input.action_type,+ cost_estimate_usd: input.cost_estimate_usd,+ reasoning: input.reasoning ?? null,+ payload_json: JSON.stringify(input.payload ?? {}),+ status: "pending",+ created_at: new Date().toISOString(),+ resolved_at: null,+ };+ db.prepare(+ `INSERT INTO approvals+ (id, project_slug, agent_id, action_summary, action_type, cost_estimate_usd, reasoning, payload_json, status, created_at, resolved_at)+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, 'pending', ?, NULL)`,+ ).run(+ approval.id,+ approval.project_slug,+ approval.agent_id,+ approval.action_summary,+ approval.action_type,+ approval.cost_estimate_usd,+ approval.reasoning,+ approval.payload_json,+ approval.created_at,+ );+ return approval;+}++export function listPendingApprovals(project_slug: string): Approval[] {+ const db = getDb();+ return db+ .prepare(+ "SELECT * FROM approvals WHERE project_slug = ? AND status = 'pending' ORDER BY created_at DESC",+ )+ .all(project_slug) as Approval[];+}++export function pendingApprovalCount(project_slug: string): number {+ const db = getDb();+ const row = db+ .prepare("SELECT COUNT(*) AS n FROM approvals WHERE project_slug = ? AND status = 'pending'")+ .get(project_slug) as { n: number };+ return row.n;+}++export function resolveApproval(id: string, status: Exclude<ApprovalStatus, "pending">): Approval | null {+ const db = getDb();+ const now = new Date().toISOString();+ db.prepare(+ "UPDATE approvals SET status = ?, resolved_at = ? WHERE id = ? AND status = 'pending'",+ ).run(status, now, id);+ const row = db.prepare("SELECT * FROM approvals WHERE id = ?").get(id);+ return (row as Approval) ?? null;+}diff --git a/src/server/db/cost.ts b/src/server/db/cost.tsnew file mode 100644index 00000000..f3ccfb91--- /dev/null+++ b/src/server/db/cost.ts@@ -0,0 +1,69 @@+import { randomUUID } from "node:crypto";+import { getDb } from "./db";+import type { CostEvent, CostEventSource } from "@/types";++export type RecordCostInput = {+ project_slug: string;+ agent_id?: string | null;+ source: CostEventSource;+ amount_usd: number;+ ref?: string | null;+ occurred_at?: string;+};++export function recordCost(input: RecordCostInput): CostEvent {+ const db = getDb();+ const event: CostEvent = {+ id: randomUUID(),+ project_slug: input.project_slug,+ agent_id: input.agent_id ?? null,+ source: input.source,+ amount_usd: input.amount_usd,+ ref: input.ref ?? null,+ occurred_at: input.occurred_at ?? new Date().toISOString(),+ };+ db.prepare(+ "INSERT INTO cost_events (id, project_slug, agent_id, source, amount_usd, ref, occurred_at) VALUES (?, ?, ?, ?, ?, ?, ?)",+ ).run(+ event.id,+ event.project_slug,+ event.agent_id,+ event.source,+ event.amount_usd,+ event.ref,+ event.occurred_at,+ );+ return event;+}++export type CostSummary = {+ total_usd: number;+ by_source: Record<CostEventSource, number>;+};++const ZERO_BY_SOURCE: Record<CostEventSource, number> = {+ llm: 0,+ google_ads: 0,+ gsc: 0,+ other: 0,+};++export function costToday(project_slug: string): CostSummary {+ const db = getDb();+ const startOfDay = new Date();+ startOfDay.setHours(0, 0, 0, 0);+ const since = startOfDay.toISOString();+ const rows = db+ .prepare(+ "SELECT source, COALESCE(SUM(amount_usd), 0) AS total FROM cost_events WHERE project_slug = ? AND occurred_at >= ? GROUP BY source",+ )+ .all(project_slug, since) as { source: CostEventSource; total: number }[];++ const by_source = { ...ZERO_BY_SOURCE };+ let total_usd = 0;+ for (const row of rows) {+ by_source[row.source] = row.total;+ total_usd += row.total;+ }+ return { total_usd, by_source };+}diff --git a/src/server/db/db.ts b/src/server/db/db.tsnew file mode 100644index 00000000..8cd2e78f--- /dev/null+++ b/src/server/db/db.ts@@ -0,0 +1,59 @@+import { existsSync, mkdirSync } from "node:fs";+import { homedir } from "node:os";+import { join } from "node:path";+import Database from "better-sqlite3";+import { MIGRATIONS } from "./migrations";++const DEFAULT_DATA_DIR = process.env.NOTFAIR_CMO_DATA_DIR ?? join(homedir(), ".notfair-cmo");+const DB_PATH = join(DEFAULT_DATA_DIR, "db.sqlite");++let cached: Database.Database | null = null;++export function getDb(): Database.Database {+ if (cached) return cached;++ if (!existsSync(DEFAULT_DATA_DIR)) {+ mkdirSync(DEFAULT_DATA_DIR, { recursive: true, mode: 0o700 });+ }++ const db = new Database(DB_PATH);+ db.pragma("journal_mode = WAL");+ db.pragma("foreign_keys = ON");+ db.pragma("busy_timeout = 5000");++ applyMigrations(db);++ cached = db;+ return db;+}++export function getDbPath(): string {+ return DB_PATH;+}++function applyMigrations(db: Database.Database): void {+ db.exec(`+ CREATE TABLE IF NOT EXISTS _migrations (+ name TEXT PRIMARY KEY,+ applied_at TEXT NOT NULL+ );+ `);++ const applied = new Set(+ (db.prepare("SELECT name FROM _migrations").all() as { name: string }[]).map(+ (row) => row.name,+ ),+ );++ for (const migration of MIGRATIONS) {+ if (applied.has(migration.name)) continue;+ const tx = db.transaction(() => {+ db.exec(migration.sql);+ db.prepare("INSERT INTO _migrations (name, applied_at) VALUES (?, ?)").run(+ migration.name,+ new Date().toISOString(),+ );+ });+ tx();+ }+}diff --git a/src/server/db/guardrails.ts b/src/server/db/guardrails.tsnew file mode 100644index 00000000..6cf2286a--- /dev/null+++ b/src/server/db/guardrails.ts@@ -0,0 +1,39 @@+import { getDb } from "./db";+import type { Guardrails } from "@/types";++export const DEFAULT_GUARDRAILS: Omit<Guardrails, "project_slug"> = {+ max_daily_spend_usd: 200,+ max_concurrent_experiments: 3,+ require_approval_above: {+ spend_per_action_usd: 50,+ new_channel_first_action: true,+ content_publishing: true,+ bid_changes_percent: 25,+ audience_change: true,+ },+};++export function getGuardrails(project_slug: string): Guardrails {+ const db = getDb();+ const row = db+ .prepare("SELECT config_json FROM guardrails WHERE project_slug = ?")+ .get(project_slug) as { config_json: string } | undefined;+ if (!row) return { project_slug, ...DEFAULT_GUARDRAILS };+ try {+ const parsed = JSON.parse(row.config_json) as Omit<Guardrails, "project_slug">;+ return { project_slug, ...parsed };+ } catch {+ return { project_slug, ...DEFAULT_GUARDRAILS };+ }+}++export function setGuardrails(g: Guardrails): void {+ const db = getDb();+ const { project_slug, ...config } = g;+ const config_json = JSON.stringify(config);+ const now = new Date().toISOString();+ db.prepare(+ `INSERT INTO guardrails (project_slug, config_json, updated_at) VALUES (?, ?, ?)+ ON CONFLICT(project_slug) DO UPDATE SET config_json = excluded.config_json, updated_at = excluded.updated_at`,+ ).run(project_slug, config_json, now);+}diff --git a/src/server/db/migrations.ts b/src/server/db/migrations.tsnew file mode 100644index 00000000..088c49ae--- /dev/null+++ b/src/server/db/migrations.ts@@ -0,0 +1,122 @@+// Embedded migration manifest. The canonical SQL lives in migrations/*.sql for+// readability and editor tooling; this file is a small generated mirror so the+// production build doesn't need filesystem access to apply migrations.+//+// To add a migration:+// 1. Write src/server/db/migrations/00N_<name>.sql+// 2. Append an entry below with the SAME contents+// 3. CI lint (TODO) keeps the two in sync++export type Migration = {+ name: string;+ sql: string;+};++export const MIGRATIONS: Migration[] = [+ {+ name: "001_init.sql",+ sql: `+-- notfair-cmo SQLite schema, migration 001.+-- Forward-only; do not edit after release. New changes go in a new numbered migration.++CREATE TABLE IF NOT EXISTS projects (+ id TEXT PRIMARY KEY,+ slug TEXT NOT NULL UNIQUE,+ display_name TEXT NOT NULL,+ created_at TEXT NOT NULL,+ archived_at TEXT+);++-- Task lifecycle:+-- proposed -> approved -> running -> (succeeded | failed | cancelled)+CREATE TABLE IF NOT EXISTS tasks (+ id TEXT PRIMARY KEY,+ project_slug TEXT NOT NULL REFERENCES projects(slug),+ agent_id TEXT NOT NULL,+ brief TEXT NOT NULL,+ success_criteria TEXT,+ deadline_iso TEXT,+ status TEXT NOT NULL CHECK (status IN ('proposed','approved','running','succeeded','failed','cancelled')),+ result_json TEXT,+ error_message TEXT,+ created_at TEXT NOT NULL,+ updated_at TEXT NOT NULL+);+CREATE INDEX IF NOT EXISTS idx_tasks_project ON tasks(project_slug);+CREATE INDEX IF NOT EXISTS idx_tasks_status ON tasks(project_slug, status);++CREATE TABLE IF NOT EXISTS approvals (+ id TEXT PRIMARY KEY,+ project_slug TEXT NOT NULL REFERENCES projects(slug),+ agent_id TEXT NOT NULL,+ action_summary TEXT NOT NULL,+ action_type TEXT NOT NULL CHECK (action_type IN ('spend','content_publishing','new_channel','bid_change','audience_change','other')),+ cost_estimate_usd REAL NOT NULL DEFAULT 0,+ reasoning TEXT,+ payload_json TEXT NOT NULL,+ status TEXT NOT NULL CHECK (status IN ('pending','approved','rejected','expired')),+ created_at TEXT NOT NULL,+ resolved_at TEXT+);+CREATE INDEX IF NOT EXISTS idx_approvals_pending ON approvals(project_slug, status) WHERE status = 'pending';++CREATE TABLE IF NOT EXISTS cost_events (+ id TEXT PRIMARY KEY,+ project_slug TEXT NOT NULL REFERENCES projects(slug),+ agent_id TEXT,+ source TEXT NOT NULL CHECK (source IN ('llm','google_ads','gsc','other')),+ amount_usd REAL NOT NULL,+ ref TEXT,+ occurred_at TEXT NOT NULL+);+CREATE INDEX IF NOT EXISTS idx_cost_events_project_time ON cost_events(project_slug, occurred_at);++CREATE TABLE IF NOT EXISTS oauth_tokens (+ id TEXT PRIMARY KEY,+ project_slug TEXT NOT NULL REFERENCES projects(slug),+ provider TEXT NOT NULL CHECK (provider IN ('google_ads','gsc')),+ account_label TEXT NOT NULL,+ access_token_enc TEXT NOT NULL,+ refresh_token_enc TEXT NOT NULL,+ expires_at TEXT NOT NULL,+ scope TEXT NOT NULL,+ created_at TEXT NOT NULL,+ updated_at TEXT NOT NULL,+ UNIQUE(project_slug, provider, account_label)+);++CREATE TABLE IF NOT EXISTS guardrails (+ project_slug TEXT PRIMARY KEY REFERENCES projects(slug),+ config_json TEXT NOT NULL,+ updated_at TEXT NOT NULL+);++CREATE TABLE IF NOT EXISTS agent_actions (+ id TEXT PRIMARY KEY,+ project_slug TEXT NOT NULL REFERENCES projects(slug),+ agent_id TEXT NOT NULL,+ task_id TEXT,+ action_type TEXT NOT NULL,+ summary TEXT NOT NULL,+ reasoning TEXT,+ payload_json TEXT,+ occurred_at TEXT NOT NULL+);+CREATE INDEX IF NOT EXISTS idx_agent_actions_project_time ON agent_actions(project_slug, occurred_at);++CREATE TABLE IF NOT EXISTS sequence_runs (+ id TEXT PRIMARY KEY,+ project_slug TEXT NOT NULL REFERENCES projects(slug),+ agent_id TEXT NOT NULL,+ sequence_kind TEXT NOT NULL,+ cursor TEXT NOT NULL,+ status TEXT NOT NULL CHECK (status IN ('pending','running','succeeded','failed','cancelled')),+ payload_json TEXT,+ last_tick_at TEXT,+ next_tick_at TEXT,+ created_at TEXT NOT NULL,+ updated_at TEXT NOT NULL+);+`,+ },+];diff --git a/src/server/db/migrations/001_init.sql b/src/server/db/migrations/001_init.sqlnew file mode 100644index 00000000..bdf8671f--- /dev/null+++ b/src/server/db/migrations/001_init.sql@@ -0,0 +1,105 @@+-- notfair-cmo SQLite schema, migration 001.+-- Forward-only; do not edit after release. New changes go in a new numbered migration.++CREATE TABLE IF NOT EXISTS projects (+ id TEXT PRIMARY KEY,+ slug TEXT NOT NULL UNIQUE,+ display_name TEXT NOT NULL,+ created_at TEXT NOT NULL,+ archived_at TEXT+);++-- Task lifecycle:+-- proposed → approved → running → (succeeded | failed | cancelled)+-- See src/types/index.ts for the ASCII state diagram.+CREATE TABLE IF NOT EXISTS tasks (+ id TEXT PRIMARY KEY,+ project_slug TEXT NOT NULL REFERENCES projects(slug),+ agent_id TEXT NOT NULL,+ brief TEXT NOT NULL,+ success_criteria TEXT,+ deadline_iso TEXT,+ status TEXT NOT NULL CHECK (status IN ('proposed','approved','running','succeeded','failed','cancelled')),+ result_json TEXT,+ error_message TEXT,+ created_at TEXT NOT NULL,+ updated_at TEXT NOT NULL+);+CREATE INDEX IF NOT EXISTS idx_tasks_project ON tasks(project_slug);+CREATE INDEX IF NOT EXISTS idx_tasks_status ON tasks(project_slug, status);++CREATE TABLE IF NOT EXISTS approvals (+ id TEXT PRIMARY KEY,+ project_slug TEXT NOT NULL REFERENCES projects(slug),+ agent_id TEXT NOT NULL,+ action_summary TEXT NOT NULL,+ action_type TEXT NOT NULL CHECK (action_type IN ('spend','content_publishing','new_channel','bid_change','audience_change','other')),+ cost_estimate_usd REAL NOT NULL DEFAULT 0,+ reasoning TEXT,+ payload_json TEXT NOT NULL,+ status TEXT NOT NULL CHECK (status IN ('pending','approved','rejected','expired')),+ created_at TEXT NOT NULL,+ resolved_at TEXT+);+CREATE INDEX IF NOT EXISTS idx_approvals_pending ON approvals(project_slug, status) WHERE status = 'pending';++CREATE TABLE IF NOT EXISTS cost_events (+ id TEXT PRIMARY KEY,+ project_slug TEXT NOT NULL REFERENCES projects(slug),+ agent_id TEXT,+ source TEXT NOT NULL CHECK (source IN ('llm','google_ads','gsc','other')),+ amount_usd REAL NOT NULL,+ ref TEXT,+ occurred_at TEXT NOT NULL+);+CREATE INDEX IF NOT EXISTS idx_cost_events_project_time ON cost_events(project_slug, occurred_at);++CREATE TABLE IF NOT EXISTS oauth_tokens (+ id TEXT PRIMARY KEY,+ project_slug TEXT NOT NULL REFERENCES projects(slug),+ provider TEXT NOT NULL CHECK (provider IN ('google_ads','gsc')),+ account_label TEXT NOT NULL,+ access_token_enc TEXT NOT NULL,+ refresh_token_enc TEXT NOT NULL,+ expires_at TEXT NOT NULL,+ scope TEXT NOT NULL,+ created_at TEXT NOT NULL,+ updated_at TEXT NOT NULL,+ UNIQUE(project_slug, provider, account_label)+);++CREATE TABLE IF NOT EXISTS guardrails (+ project_slug TEXT PRIMARY KEY REFERENCES projects(slug),+ config_json TEXT NOT NULL,+ updated_at TEXT NOT NULL+);++-- Append-only audit log of every autonomous action.+-- Powers the "Why?" command and post-hoc cost/decision review.+CREATE TABLE IF NOT EXISTS agent_actions (+ id TEXT PRIMARY KEY,+ project_slug TEXT NOT NULL REFERENCES projects(slug),+ agent_id TEXT NOT NULL,+ task_id TEXT,+ action_type TEXT NOT NULL,+ summary TEXT NOT NULL,+ reasoning TEXT,+ payload_json TEXT,+ occurred_at TEXT NOT NULL+);+CREATE INDEX IF NOT EXISTS idx_agent_actions_project_time ON agent_actions(project_slug, occurred_at);++-- Cursor for long-running multi-tick agent work (e.g., cold email sequences).+CREATE TABLE IF NOT EXISTS sequence_runs (+ id TEXT PRIMARY KEY,+ project_slug TEXT NOT NULL REFERENCES projects(slug),+ agent_id TEXT NOT NULL,+ sequence_kind TEXT NOT NULL,+ cursor TEXT NOT NULL,+ status TEXT NOT NULL CHECK (status IN ('pending','running','succeeded','failed','cancelled')),+ payload_json TEXT,+ last_tick_at TEXT,+ next_tick_at TEXT,+ created_at TEXT NOT NULL,+ updated_at TEXT NOT NULL+);diff --git a/src/server/db/oauth.ts b/src/server/db/oauth.tsnew file mode 100644index 00000000..212f3589--- /dev/null+++ b/src/server/db/oauth.ts@@ -0,0 +1,80 @@+import { randomUUID } from "node:crypto";+import { getDb } from "./db";+import { encrypt, decrypt } from "@/server/secrets/cipher";+import type { OAuthProvider, OAuthToken } from "@/types";++export type StoreTokenInput = {+ project_slug: string;+ provider: OAuthProvider;+ account_label: string;+ access_token: string;+ refresh_token: string;+ expires_at: string;+ scope: string;+};++export async function storeOAuthToken(input: StoreTokenInput): Promise<OAuthToken> {+ const db = getDb();+ const now = new Date().toISOString();+ const id = randomUUID();+ const access_token_enc = await encrypt(input.access_token);+ const refresh_token_enc = await encrypt(input.refresh_token);++ db.prepare(+ `INSERT INTO oauth_tokens+ (id, project_slug, provider, account_label, access_token_enc, refresh_token_enc, expires_at, scope, created_at, updated_at)+ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)+ ON CONFLICT(project_slug, provider, account_label) DO UPDATE SET+ access_token_enc = excluded.access_token_enc,+ refresh_token_enc = excluded.refresh_token_enc,+ expires_at = excluded.expires_at,+ scope = excluded.scope,+ updated_at = excluded.updated_at`,+ ).run(+ id,+ input.project_slug,+ input.provider,+ input.account_label,+ access_token_enc,+ refresh_token_enc,+ input.expires_at,+ input.scope,+ now,+ now,+ );++ return getOAuthTokenRecord(input.project_slug, input.provider, input.account_label)!;+}++export function listOAuthTokens(project_slug: string): OAuthToken[] {+ const db = getDb();+ return db+ .prepare("SELECT * FROM oauth_tokens WHERE project_slug = ? ORDER BY provider, account_label")+ .all(project_slug) as OAuthToken[];+}++export function getOAuthTokenRecord(+ project_slug: string,+ provider: OAuthProvider,+ account_label?: string,+): OAuthToken | null {+ const db = getDb();+ if (account_label) {+ const row = db+ .prepare("SELECT * FROM oauth_tokens WHERE project_slug = ? AND provider = ? AND account_label = ?")+ .get(project_slug, provider, account_label);+ return (row as OAuthToken) ?? null;+ }+ const row = db+ .prepare("SELECT * FROM oauth_tokens WHERE project_slug = ? AND provider = ? LIMIT 1")+ .get(project_slug, provider);+ return (row as OAuthToken) ?? null;+}++export async function decryptToken(record: OAuthToken): Promise<{ access_token: string; refresh_token: string }> {+ const [access_token, refresh_token] = await Promise.all([+ decrypt(record.access_token_enc),+ decrypt(record.refresh_token_enc),+ ]);+ return { access_token, refresh_token };+}diff --git a/src/server/db/projects.ts b/src/server/db/projects.tsnew file mode 100644index 00000000..bc0de9e0--- /dev/null+++ b/src/server/db/projects.ts@@ -0,0 +1,72 @@+import { randomUUID } from "node:crypto";+import { getDb } from "./db";+import type { Project } from "@/types";+import { slugify } from "@/lib/slug";++export type CreateProjectInput = {+ display_name: string;+ slug?: string;+};++export type CreateProjectResult =+ | { ok: true; project: Project }+ | { ok: false; reason: string };++export function listProjects(opts: { includeArchived?: boolean } = {}): Project[] {+ const db = getDb();+ const sql = opts.includeArchived+ ? "SELECT * FROM projects ORDER BY created_at DESC"+ : "SELECT * FROM projects WHERE archived_at IS NULL ORDER BY created_at DESC";+ return db.prepare(sql).all() as Project[];+}++export function getProject(slug: string): Project | null {+ const db = getDb();+ const row = db.prepare("SELECT * FROM projects WHERE slug = ?").get(slug);+ return (row as Project) ?? null;+}++export function createProject(input: CreateProjectInput): CreateProjectResult {+ const db = getDb();+ const slugInput = input.slug ?? input.display_name;+ const slug = slugify(slugInput);+ if (!slug.ok) return { ok: false, reason: slug.reason };++ const existing = db.prepare("SELECT 1 FROM projects WHERE slug = ?").get(slug.slug);+ if (existing) return { ok: false, reason: `project slug '${slug.slug}' already exists` };++ const project: Project = {+ id: randomUUID(),+ slug: slug.slug,+ display_name: input.display_name.trim(),+ created_at: new Date().toISOString(),+ archived_at: null,+ };++ db.prepare(+ "INSERT INTO projects (id, slug, display_name, created_at, archived_at) VALUES (?, ?, ?, ?, NULL)",+ ).run(project.id, project.slug, project.display_name, project.created_at);++ return { ok: true, project };+}++export function renameProject(slug: string, display_name: string): Project | null {+ const db = getDb();+ const trimmed = display_name.trim();+ if (!trimmed) return null;+ db.prepare("UPDATE projects SET display_name = ? WHERE slug = ?").run(trimmed, slug);+ return getProject(slug);+}++export function archiveProject(slug: string): Project | null {+ const db = getDb();+ const now = new Date().toISOString();+ db.prepare("UPDATE projects SET archived_at = ? WHERE slug = ? AND archived_at IS NULL").run(now, slug);+ return getProject(slug);+}++export function unarchiveProject(slug: string): Project | null {+ const db = getDb();+ db.prepare("UPDATE projects SET archived_at = NULL WHERE slug = ?").run(slug);+ return getProject(slug);+}diff --git a/src/server/db/tasks.ts b/src/server/db/tasks.tsnew file mode 100644index 00000000..f502f82d--- /dev/null+++ b/src/server/db/tasks.ts@@ -0,0 +1,87 @@+import { randomUUID } from "node:crypto";+import { getDb } from "./db";+import type { Task, TaskStatus } from "@/types";++export type CreateTaskInput = {+ project_slug: string;+ agent_id: string;+ brief: string;+ success_criteria?: string | null;+ deadline_iso?: string | null;+ status?: TaskStatus;+};++export function createTask(input: CreateTaskInput): Task {+ const db = getDb();+ const now = new Date().toISOString();+ const task: Task = {+ id: randomUUID(),+ project_slug: input.project_slug,+ agent_id: input.agent_id,+ brief: input.brief,+ success_criteria: input.success_criteria ?? null,+ deadline_iso: input.deadline_iso ?? null,+ status: input.status ?? "proposed",+ result_json: null,+ error_message: null,+ created_at: now,+ updated_at: now,+ };+ db.prepare(+ `INSERT INTO tasks+ (id, project_slug, agent_id, brief, success_criteria, deadline_iso, status, result_json, error_message, created_at, updated_at)+ VALUES (?, ?, ?, ?, ?, ?, ?, NULL, NULL, ?, ?)`,+ ).run(+ task.id,+ task.project_slug,+ task.agent_id,+ task.brief,+ task.success_criteria,+ task.deadline_iso,+ task.status,+ task.created_at,+ task.updated_at,+ );+ return task;+}++export function getTask(id: string): Task | null {+ const db = getDb();+ const row = db.prepare("SELECT * FROM tasks WHERE id = ?").get(id);+ return (row as Task) ?? null;+}++export function listTasks(project_slug: string, status?: TaskStatus): Task[] {+ const db = getDb();+ if (status) {+ return db+ .prepare("SELECT * FROM tasks WHERE project_slug = ? AND status = ? ORDER BY created_at DESC")+ .all(project_slug, status) as Task[];+ }+ return db+ .prepare("SELECT * FROM tasks WHERE project_slug = ? ORDER BY created_at DESC")+ .all(project_slug) as Task[];+}++export type UpdateTaskInput = {+ status?: TaskStatus;+ result?: unknown;+ error_message?: string | null;+};++export function updateTask(id: string, update: UpdateTaskInput): Task | null {+ const db = getDb();+ const now = new Date().toISOString();+ const current = getTask(id);+ if (!current) return null;++ const result_json = update.result !== undefined ? JSON.stringify(update.result) : current.result_json;+ const error_message = update.error_message !== undefined ? update.error_message : current.error_message;+ const status = update.status ?? current.status;++ db.prepare(+ "UPDATE tasks SET status = ?, result_json = ?, error_message = ?, updated_at = ? WHERE id = ?",+ ).run(status, result_json, error_message, now, id);++ return getTask(id);+}diff --git a/src/server/openclaw/agent-turn.ts b/src/server/openclaw/agent-turn.tsnew file mode 100644index 00000000..5431590e--- /dev/null+++ b/src/server/openclaw/agent-turn.ts@@ -0,0 +1,86 @@+import { spawn } from "node:child_process";++export type AgentTurnInput = {+ agent: string;+ message: string;+ sessionId?: string;+ timeoutMs?: number;+ thinking?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh";+};++/**+ * Stream the output of `openclaw agent --agent <name> --message <text>`.+ * We yield text chunks as they arrive on stdout. The OpenClaw CLI emits+ * a mix of progress and final-answer text; consumers can filter.+ */+export async function* streamAgentTurn(input: AgentTurnInput): AsyncGenerator<string, void, void> {+ const args = [+ "agent",+ "--agent",+ input.agent,+ "--message",+ input.message,+ ];+ if (input.sessionId) {+ args.push("--session-id", input.sessionId);+ }+ if (input.thinking) {+ args.push("--thinking", input.thinking);+ }++ const proc = spawn("openclaw", args, { stdio: ["ignore", "pipe", "pipe"] });+ const timeout = setTimeout(() => proc.kill("SIGTERM"), input.timeoutMs ?? 300_000);++ try {+ const stdoutQueue: string[] = [];+ let stdoutEnded = false;+ let rejectErr: Error | null = null;++ const onChunk = (chunk: Buffer) => {+ stdoutQueue.push(chunk.toString("utf8"));+ };++ const stdoutEnd = new Promise<void>((resolve, reject) => {+ proc.stdout.on("data", onChunk);+ proc.stdout.on("end", () => {+ stdoutEnded = true;+ resolve();+ });+ proc.on("error", (err) => {+ rejectErr = err;+ reject(err);+ });+ });++ // Drain stderr to avoid backpressure; surface on close if exit was nonzero.+ let stderr = "";+ proc.stderr.on("data", (chunk) => {+ stderr += chunk.toString("utf8");+ });++ const exitPromise = new Promise<number | null>((resolve) => {+ proc.on("close", (code) => resolve(code));+ });++ while (!stdoutEnded || stdoutQueue.length > 0) {+ if (stdoutQueue.length > 0) {+ yield stdoutQueue.shift()!;+ } else {+ await Promise.race([+ new Promise<void>((res) => proc.stdout.once("data", () => res())),+ stdoutEnd,+ ]);+ }+ if (rejectErr) throw rejectErr;+ }++ const code = await exitPromise;+ if (code !== 0) {+ throw new Error(+ `openclaw agent exited with code ${code}. stderr: ${stderr.trim().slice(0, 500)}`,+ );+ }+ } finally {+ clearTimeout(timeout);+ }+}diff --git a/src/server/openclaw/cli.ts b/src/server/openclaw/cli.tsnew file mode 100644index 00000000..4e6758ba--- /dev/null+++ b/src/server/openclaw/cli.ts@@ -0,0 +1,120 @@+import { spawn } from "node:child_process";++export class OpenClawError extends Error {+ readonly stderr: string;+ readonly exitCode: number | null;+ constructor(message: string, stderr: string, exitCode: number | null) {+ super(message);+ this.name = "OpenClawError";+ this.stderr = stderr;+ this.exitCode = exitCode;+ }+}++export type OpenClawOptions = {+ /** Timeout in ms. Defaults to 30s. */+ timeout?: number;+ /** When true, expect JSON on stdout and parse. Defaults to true. */+ json?: boolean;+};++/**+ * Run an OpenClaw CLI command and return parsed stdout.+ * Always passes `--json` when `json: true` (default) — caller does not.+ */+export async function openclaw(+ args: string[],+ options: OpenClawOptions = {},+): Promise<unknown> {+ const timeout = options.timeout ?? 30_000;+ const wantJson = options.json ?? true;+ const finalArgs = wantJson && !args.includes("--json") ? [...args, "--json"] : args;++ return new Promise((resolve, reject) => {+ const proc = spawn("openclaw", finalArgs, {+ stdio: ["ignore", "pipe", "pipe"],+ });++ let stdout = "";+ let stderr = "";++ const timer = setTimeout(() => {+ proc.kill("SIGTERM");+ reject(new OpenClawError(`openclaw ${args[0] ?? ""} timed out after ${timeout}ms`, stderr, null));+ }, timeout);++ proc.stdout.on("data", (chunk) => {+ stdout += chunk.toString();+ });+ proc.stderr.on("data", (chunk) => {+ stderr += chunk.toString();+ });++ proc.on("error", (err) => {+ clearTimeout(timer);+ if ((err as NodeJS.ErrnoException).code === "ENOENT") {+ reject(+ new OpenClawError(+ "openclaw not found on PATH. Install: https://docs.openclaw.ai/install",+ "",+ null,+ ),+ );+ return;+ }+ reject(new OpenClawError(err.message, stderr, null));+ });++ proc.on("close", (code) => {+ clearTimeout(timer);+ if (code !== 0) {+ reject(+ new OpenClawError(+ `openclaw ${args.join(" ")} exited with code ${code}`,+ stderr,+ code,+ ),+ );+ return;+ }+ if (!wantJson) {+ resolve(stdout);+ return;+ }+ try {+ resolve(stdout.trim() ? JSON.parse(stdout) : null);+ } catch (parseErr) {+ reject(+ new OpenClawError(+ `openclaw output was not valid JSON: ${(parseErr as Error).message}`,+ stderr,+ code,+ ),+ );+ }+ });+ });+}++/** Type-narrowed wrappers for common operations. */++export async function listAgents(): Promise<unknown> {+ return openclaw(["agents", "list"]);+}++export async function listCrons(): Promise<unknown> {+ return openclaw(["cron", "list"]);+}++export async function getHealth(): Promise<string> {+ return openclaw(["health"], { json: false }) as Promise<string>;+}++export async function isOpenClawAvailable(): Promise<boolean> {+ try {+ await openclaw(["--version"], { json: false, timeout: 5_000 });+ return true;+ } catch {+ return false;+ }+}diff --git a/src/server/openclaw/cron-schedule.ts b/src/server/openclaw/cron-schedule.tsnew file mode 100644index 00000000..9a139a96--- /dev/null+++ b/src/server/openclaw/cron-schedule.ts@@ -0,0 +1,106 @@+import { CronExpressionParser } from "cron-parser";+import type { DisplayCron } from "./crons";++export type CronOccurrence = {+ /** ms epoch */+ at: number;+ cron_id: string;+ cron_name: string;+ short_name: string;+ agent_id: string;+ agent_slug: string;+ schedule_text: string;+};++type ScheduleInput =+ | { kind: "cron"; expr: string; tz?: string }+ | { kind: "every"; everyMs: number; anchorMs?: number }+ | { kind: string; [k: string]: unknown };++/**+ * Compute upcoming occurrences for one cron up to `until` (ms epoch).+ * Returns at most `maxPerCron` entries — high-frequency crons are capped so+ * we don't render thousands of chips for an every-second job.+ */+export function expandSchedule(+ cron_id: string,+ schedule: ScheduleInput | undefined,+ range: { from: number; until: number },+ meta: Pick<DisplayCron, "name" | "short_name" | "agent_id"> & { agent_slug: string; schedule_text: string },+ maxPerCron = 60,+): CronOccurrence[] {+ if (!schedule) return [];+ const { from, until } = range;+ const out: CronOccurrence[] = [];++ const make = (at: number): CronOccurrence => ({+ at,+ cron_id,+ cron_name: meta.name,+ short_name: meta.short_name,+ agent_id: meta.agent_id,+ agent_slug: meta.agent_slug,+ schedule_text: meta.schedule_text,+ });++ if (schedule.kind === "cron" && typeof (schedule as { expr?: unknown }).expr === "string") {+ const s = schedule as { expr: string; tz?: string };+ try {+ const it = CronExpressionParser.parse(s.expr, {+ currentDate: new Date(from),+ endDate: new Date(until),+ tz: s.tz,+ });+ while (out.length < maxPerCron) {+ try {+ const next = it.next();+ out.push(make(next.toDate().getTime()));+ } catch {+ break;+ }+ }+ } catch {+ return [];+ }+ return out;+ }++ if (schedule.kind === "every" && typeof (schedule as { everyMs?: unknown }).everyMs === "number") {+ const s = schedule as { everyMs: number; anchorMs?: number };+ if (s.everyMs <= 0) return [];+ const anchor = typeof s.anchorMs === "number" ? s.anchorMs : from;+ // First occurrence at or after `from`.+ let next = anchor;+ if (anchor < from) {+ const k = Math.ceil((from - anchor) / s.everyMs);+ next = anchor + k * s.everyMs;+ }+ while (next <= until && out.length < maxPerCron) {+ out.push(make(next));+ next += s.everyMs;+ }+ return out;+ }++ return [];+}++/**+ * Expand a list of crons into a flat occurrence list grouped by day-of-week.+ * Days are in user local time (matches what the user sees in the calendar).+ */+export function groupOccurrencesByDay(+ occurrences: CronOccurrence[],+ startOfFirstDay: number,+ numDays: number,+): CronOccurrence[][] {+ const days: CronOccurrence[][] = Array.from({ length: numDays }, () => []);+ const dayMs = 24 * 60 * 60 * 1000;+ for (const o of occurrences) {+ const dayIndex = Math.floor((o.at - startOfFirstDay) / dayMs);+ if (dayIndex < 0 || dayIndex >= numDays) continue;+ days[dayIndex]!.push(o);+ }+ for (const day of days) day.sort((a, b) => a.at - b.at);+ return days;+}diff --git a/src/server/openclaw/crons.ts b/src/server/openclaw/crons.tsnew file mode 100644index 00000000..f93019ab--- /dev/null+++ b/src/server/openclaw/crons.ts@@ -0,0 +1,284 @@+import { cache } from "react";+import { openclaw } from "./cli";++/**+ * Module-level in-memory cache for the `openclaw cron list` subprocess.+ * Single-user local app, so a tiny TTL across requests is safe and avoids+ * 1-2s subprocess spawns blocking every page render. Per-request dedup is+ * additionally handled by React's `cache()` wrapper below.+ */+// Cron list rarely changes second-to-second; cache aggressively so the upstream+// `openclaw cron list` subprocess (which can take 5-15s on some machines) does+// not block every page render.+const CACHE_TTL_MS = 30_000;+let cachedCronsAt = 0;+let cachedCronsPromise: Promise<unknown> | null = null;++async function rawListAllCrons(): Promise<unknown> {+ const now = Date.now();+ if (cachedCronsPromise && now - cachedCronsAt < CACHE_TTL_MS) {+ return cachedCronsPromise;+ }+ cachedCronsAt = now;+ cachedCronsPromise = openclaw(["cron", "list"]).catch((err) => {+ // Invalidate on failure so the next caller retries instead of getting a cached reject.+ cachedCronsAt = 0;+ cachedCronsPromise = null;+ throw err;+ });+ return cachedCronsPromise;+}++export function invalidateCronCache(): void {+ cachedCronsAt = 0;+ cachedCronsPromise = null;+}++type CronSchedule =+ | { kind: "cron"; expr: string; tz?: string }+ | { kind: "every"; everyMs: number; anchorMs?: number }+ | { kind: string; [k: string]: unknown };++type CronState = {+ nextRunAtMs?: number;+ lastRunAtMs?: number;+ lastStatus?: string;+ runs?: number;+};++export type OpenClawCron = {+ id: string;+ name: string;+ description?: string;+ agentId?: string;+ schedule?: CronSchedule;+ state?: CronState;+ disabled?: boolean;+ // Catch any other fields without losing them.+ [k: string]: unknown;+};++export type DisplayCron = {+ id: string;+ name: string;+ short_name: string;+ agent_id: string;+ /** Short, project-stripped agent slug (e.g. "google-ads") for color lookup. */+ agent_slug: string;+ schedule_raw: CronSchedule | undefined;+ schedule_text: string;+ next_run_text: string;+ last_run_text: string;+ status_text: string;+ disabled: boolean;+};++export type CronGroup = {+ agent: string;+ crons: DisplayCron[];+};++export type ProjectCronView = {+ project_slug: string;+ groups: CronGroup[];+};++const NAME_SEPARATOR = "/";++/**+ * Fetch all crons from OpenClaw and group by project prefix + agent.+ * Project prefix convention: cron name is `<project-slug> / <agent-slug> / <cron-slug>`.+ * We also match crons whose `agentId` starts with `<project-slug>-` for crons+ * created outside this naming convention (e.g., directly via openclaw cli).+ */+export const listCronsForProject = cache(async (project_slug: string): Promise<ProjectCronView> => {+ const raw = await rawListAllCrons();+ const allCrons = normalize(raw);++ const matching = allCrons.filter((c) => {+ const name = (c.name ?? "").trim();+ if (+ name.startsWith(`${project_slug} ${NAME_SEPARATOR}`) ||+ name.startsWith(`${project_slug}${NAME_SEPARATOR}`)+ ) {+ return true;+ }+ if (c.agentId && c.agentId.startsWith(`${project_slug}-`)) {+ return true;+ }+ return false;+ });++ const byAgent = new Map<string, DisplayCron[]>();+ for (const cron of matching) {+ const agentId = cron.agentId ?? deriveAgentFromName(cron.name, project_slug) ?? "unknown";+ const shortAgent = shortenAgentId(agentId, project_slug);+ const display = toDisplay(cron, shortAgent, project_slug);+ const list = byAgent.get(shortAgent) ?? [];+ list.push(display);+ byAgent.set(shortAgent, list);+ }++ const groups: CronGroup[] = Array.from(byAgent.entries())+ .sort(([a], [b]) => a.localeCompare(b))+ .map(([agent, crons]) => ({ agent, crons }));++ return { project_slug, groups };+});++function toDisplay(cron: OpenClawCron, shortAgent: string, _project_slug: string): DisplayCron {+ const agent_id = cron.agentId ?? "unknown";+ const status = cron.disabled+ ? "disabled"+ : (cron.state?.lastStatus as string | undefined) ?? "idle";+ return {+ id: cron.id,+ name: cron.name,+ short_name: deriveCronShortName(cron.name),+ agent_id,+ agent_slug: shortAgent,+ schedule_raw: cron.schedule,+ schedule_text: formatSchedule(cron.schedule),+ next_run_text: formatRelativeMs(cron.state?.nextRunAtMs),+ last_run_text: formatRelativeMs(cron.state?.lastRunAtMs),+ status_text: status,+ disabled: !!cron.disabled,+ };+}++function formatSchedule(schedule: CronSchedule | undefined): string {+ if (!schedule) return "—";+ if (schedule.kind === "cron" && "expr" in schedule) {+ return schedule.tz+ ? `${schedule.expr} · ${schedule.tz}`+ : (schedule.expr as string);+ }+ if (schedule.kind === "every" && "everyMs" in schedule) {+ return `every ${formatDurationMs(schedule.everyMs as number)}`;+ }+ return JSON.stringify(schedule);+}++function formatDurationMs(ms: number): string {+ const seconds = Math.round(ms / 1000);+ if (seconds < 60) return `${seconds}s`;+ const minutes = Math.round(seconds / 60);+ if (minutes < 60) return `${minutes}m`;+ const hours = Math.round(minutes / 60);+ if (hours < 24) return `${hours}h`;+ const days = Math.round(hours / 24);+ return `${days}d`;+}++function formatRelativeMs(ms: number | undefined): string {+ if (!ms) return "—";+ const delta = ms - Date.now();+ const abs = Math.abs(delta);+ const seconds = Math.round(abs / 1000);+ if (seconds < 60) {+ return delta > 0 ? `in ${seconds}s` : `${seconds}s ago`;+ }+ const minutes = Math.round(seconds / 60);+ if (minutes < 60) {+ return delta > 0 ? `in ${minutes}m` : `${minutes}m ago`;+ }+ const hours = Math.round(minutes / 60);+ if (hours < 24) {+ return delta > 0 ? `in ${hours}h` : `${hours}h ago`;+ }+ const days = Math.round(hours / 24);+ return delta > 0 ? `in ${days}d` : `${days}d ago`;+}++function normalize(raw: unknown): OpenClawCron[] {+ if (Array.isArray(raw)) return raw as OpenClawCron[];+ if (raw && typeof raw === "object") {+ const candidate = raw as Record<string, unknown>;+ if (Array.isArray(candidate.jobs)) return candidate.jobs as OpenClawCron[];+ if (Array.isArray(candidate.crons)) return candidate.crons as OpenClawCron[];+ }+ return [];+}++function deriveAgentFromName(name: string | undefined, project_slug: string): string | null {+ if (!name) return null;+ const parts = name.split(NAME_SEPARATOR).map((s) => s.trim());+ if (parts.length >= 2 && parts[0] === project_slug) return parts[1];+ return null;+}++function deriveCronShortName(name: string): string {+ const parts = name.split(NAME_SEPARATOR).map((s) => s.trim());+ return parts[parts.length - 1] ?? name;+}++function shortenAgentId(agentId: string, project_slug: string): string {+ const prefix = `${project_slug}-`;+ return agentId.startsWith(prefix) ? agentId.slice(prefix.length) : agentId;+}++export async function disableCron(id: string): Promise<void> {+ await openclaw(["cron", "disable", id], { json: false });+ invalidateCronCache();+}++export async function enableCron(id: string): Promise<void> {+ await openclaw(["cron", "enable", id], { json: false });+ invalidateCronCache();+}++export async function removeCron(id: string): Promise<void> {+ await openclaw(["cron", "rm", id], { json: false });+ invalidateCronCache();+}++export type CreateCronInput = {+ project_slug: string;+ agent_slug: string;+ agent_full_id: string;+ cron_name: string;+ schedule:+ | { kind: "cron"; expr: string; tz?: string }+ | { kind: "every"; duration: string };+ message: string;+ description?: string;+};++export type CreateCronResult = {+ id: string;+ name: string;+};++/**+ * Create a cron in OpenClaw using our naming convention.+ * Called by the `schedule_recurring_work` MCP tool from specialist agents.+ */+export async function createCron(input: CreateCronInput): Promise<CreateCronResult> {+ const fullName = `${input.project_slug} ${NAME_SEPARATOR} ${input.agent_slug} ${NAME_SEPARATOR} ${input.cron_name}`;+ const args = [+ "cron",+ "add",+ "--name",+ fullName,+ "--agent",+ input.agent_full_id,+ "--message",+ input.message,+ "--no-deliver",+ ];+ if (input.description) {+ args.push("--description", input.description);+ }+ if (input.schedule.kind === "cron") {+ args.push("--cron", input.schedule.expr);+ if (input.schedule.tz) args.push("--tz", input.schedule.tz);+ } else {+ args.push("--every", input.schedule.duration);+ }+ const result = (await openclaw(args)) as { id?: string; name?: string };+ invalidateCronCache();+ return {+ id: String(result?.id ?? ""),+ name: String(result?.name ?? fullName),+ };+}diff --git a/src/server/openclaw/sessions.ts b/src/server/openclaw/sessions.tsnew file mode 100644index 00000000..0d8bd816--- /dev/null+++ b/src/server/openclaw/sessions.ts@@ -0,0 +1,214 @@+import { existsSync, readFileSync } from "node:fs";+import { homedir } from "node:os";+import { join } from "node:path";+import { randomUUID } from "node:crypto";+import { cookies } from "next/headers";+import { agentNameFor, type AgentTemplateKey } from "@/server/agent-templates";++/**+ * Sessions are owned by OpenClaw. We never persist threads, history, or+ * session metadata ourselves. We only:+ * 1. Read OpenClaw's session store (`~/.openclaw/agents/<agent>/sessions/sessions.json`)+ * to list a user's existing sessions for the chat thread dropdown.+ * 2. Generate fresh UUIDs to start new sessions (OpenClaw creates the session+ * entry on the first agent turn).+ * 3. Remember the active session per (project, agent_template) in a cookie.+ *+ * No DB table, no migrations, no ownership of session lifecycle.+ */++const OPENCLAW_HOME = process.env.OPENCLAW_HOME ?? join(homedir(), ".openclaw");++export type OpenClawSession = {+ /** OpenClaw-assigned session id (UUID). What we pass to --session-id. */+ sessionId: string;+ /** Optional short label parsed from the full session-key, if present. */+ label: string;+ /** Last interaction (ms epoch). 0 if unknown / freshly minted. */+ lastInteractionAt: number;+ /** True if this session exists only in our cookie (user clicked New, hasn't sent a message yet). */+ pending: boolean;+};++type RawSessionEntry = {+ sessionId?: string;+ updatedAt?: number;+ lastInteractionAt?: number;+};++function sessionsFilePath(agentFullId: string): string {+ return join(OPENCLAW_HOME, "agents", agentFullId, "sessions", "sessions.json");+}++export function listSessionsForAgent(agentFullId: string): OpenClawSession[] {+ const path = sessionsFilePath(agentFullId);+ if (!existsSync(path)) return [];+ let parsed: Record<string, RawSessionEntry>;+ try {+ parsed = JSON.parse(readFileSync(path, "utf8")) as Record<string, RawSessionEntry>;+ } catch {+ return [];+ }+ const prefix = `agent:${agentFullId}:`;+ const out: OpenClawSession[] = [];+ for (const [key, entry] of Object.entries(parsed)) {+ if (!entry.sessionId) continue;+ const label = key.startsWith(prefix) ? key.slice(prefix.length) : key;+ out.push({+ sessionId: entry.sessionId,+ label,+ lastInteractionAt: entry.lastInteractionAt ?? entry.updatedAt ?? 0,+ pending: false,+ });+ }+ out.sort((a, b) => b.lastInteractionAt - a.lastInteractionAt);+ return out;+}++/** Generate a brand-new session id. OpenClaw creates the entry on first turn. */+export function newSessionId(): string {+ return randomUUID();+}++// --- Active session per (project, agent-template) is just a cookie. ---++function cookieName(project_slug: string, agent_template_key: string): string {+ return `notfair_active_session_${project_slug}_${agent_template_key}`;+}++/**+ * Return the active session for (project, agent_template) along with the+ * full list of sessions in dropdown order. If the cookie points at a UUID+ * not yet in OpenClaw's store (pending first-message), it appears at the top+ * as a synthetic entry tagged pending.+ */+export async function getSessionsView(+ project_slug: string,+ agent_template_key: AgentTemplateKey,+): Promise<{ active: OpenClawSession; all: OpenClawSession[] }> {+ const agentFullId = agentNameFor(project_slug, agent_template_key);+ const existing = listSessionsForAgent(agentFullId);++ const c = await cookies();+ const cookieSessionId = c.get(cookieName(project_slug, agent_template_key))?.value;++ let active: OpenClawSession | undefined;+ if (cookieSessionId) {+ active = existing.find((s) => s.sessionId === cookieSessionId);+ if (!active) {+ active = {+ sessionId: cookieSessionId,+ label: cookieSessionId.slice(0, 8),+ lastInteractionAt: 0,+ pending: true,+ };+ }+ }++ if (!active) {+ if (existing.length > 0) {+ active = existing[0]!;+ } else {+ // No history yet — synthesize a default session id. Cookie will be set+ // when the user sends their first message.+ active = {+ sessionId: newSessionId(),+ label: "main",+ lastInteractionAt: 0,+ pending: true,+ };+ }+ }++ const all = active.pending && !existing.find((s) => s.sessionId === active!.sessionId)+ ? [active, ...existing]+ : existing;++ return { active, all };+}++export type ChatMessage = {+ /** Stable per-line key for React. */+ id: string;+ role: "user" | "assistant";+ body: string;+ /** Epoch ms; 0 if unknown. */+ timestamp: number;+};++/**+ * Read a session's history from OpenClaw's per-session JSONL trajectory.+ * Each line is a typed event; we only surface `type === "message"` entries+ * with role + text. Returns [] when the file does not exist yet (brand new+ * session that hasn't had its first turn).+ */+export function loadSessionHistory(agentFullId: string, sessionId: string): ChatMessage[] {+ const path = join(OPENCLAW_HOME, "agents", agentFullId, "sessions", `${sessionId}.jsonl`);+ if (!existsSync(path)) return [];+ let raw: string;+ try {+ raw = readFileSync(path, "utf8");+ } catch {+ return [];+ }++ const messages: ChatMessage[] = [];+ let idx = 0;+ for (const line of raw.split("\n")) {+ const trimmed = line.trim();+ if (!trimmed) continue;+ let entry: Record<string, unknown>;+ try {+ entry = JSON.parse(trimmed) as Record<string, unknown>;+ } catch {+ continue;+ }+ if (entry.type !== "message") continue;+ const message = entry.message as+ | { role?: string; content?: Array<{ type?: string; text?: string }>; timestamp?: number }+ | undefined;+ if (!message || (message.role !== "user" && message.role !== "assistant")) continue;+ const text = extractText(message.content);+ if (!text) continue;+ messages.push({+ id: `${sessionId}-${idx++}`,+ role: message.role,+ body: stripUserTimestampPrefix(text, message.role),+ timestamp: typeof message.timestamp === "number" ? message.timestamp : 0,+ });+ }+ return messages;+}++function extractText(content: Array<{ type?: string; text?: string }> | undefined): string {+ if (!Array.isArray(content)) return "";+ return content+ .filter((c) => c?.type === "text" && typeof c.text === "string")+ .map((c) => c.text as string)+ .join("\n")+ .trim();+}++/**+ * OpenClaw prefixes user messages with `[Day YYYY-MM-DD HH:MM TZ] ` to give+ * the model time context. Hide that in the UI so the user sees their original+ * message body.+ */+function stripUserTimestampPrefix(text: string, role: string): string {+ if (role !== "user") return text;+ return text.replace(/^\[[A-Z][a-z]{2} \d{4}-\d{2}-\d{2} \d{2}:\d{2} [A-Z]{2,5}\] ?/, "");+}++export async function setActiveSession(+ project_slug: string,+ agent_template_key: AgentTemplateKey,+ sessionId: string,+): Promise<void> {+ const c = await cookies();+ c.set(cookieName(project_slug, agent_template_key), sessionId, {+ httpOnly: true,+ sameSite: "lax",+ path: "/",+ maxAge: 60 * 60 * 24 * 365,+ });+}diff --git a/src/server/secrets/cipher.ts b/src/server/secrets/cipher.tsnew file mode 100644index 00000000..86b77f88--- /dev/null+++ b/src/server/secrets/cipher.ts@@ -0,0 +1,32 @@+import { createCipheriv, createDecipheriv, randomBytes } from "node:crypto";+import { getMasterKey } from "./master-key";++const ALGORITHM = "aes-256-gcm";+const IV_LEN = 12;+const TAG_LEN = 16;++/**+ * Encrypt a plaintext string with AES-256-GCM using the project master key+ * (loaded from OS keychain). Output format: base64(iv | ciphertext | tag).+ */+export async function encrypt(plaintext: string): Promise<string> {+ const key = await getMasterKey();+ const iv = randomBytes(IV_LEN);+ const cipher = createCipheriv(ALGORITHM, key, iv);+ const encrypted = Buffer.concat([cipher.update(plaintext, "utf8"), cipher.final()]);+ const tag = cipher.getAuthTag();+ return Buffer.concat([iv, encrypted, tag]).toString("base64");+}++export async function decrypt(blob: string): Promise<string> {+ const key = await getMasterKey();+ const buf = Buffer.from(blob, "base64");+ if (buf.length < IV_LEN + TAG_LEN) throw new Error("Encrypted blob is malformed");+ const iv = buf.subarray(0, IV_LEN);+ const tag = buf.subarray(buf.length - TAG_LEN);+ const ciphertext = buf.subarray(IV_LEN, buf.length - TAG_LEN);+ const decipher = createDecipheriv(ALGORITHM, key, iv);+ decipher.setAuthTag(tag);+ const decrypted = Buffer.concat([decipher.update(ciphertext), decipher.final()]);+ return decrypted.toString("utf8");+}diff --git a/src/server/secrets/master-key.ts b/src/server/secrets/master-key.tsnew file mode 100644index 00000000..c8190a57--- /dev/null+++ b/src/server/secrets/master-key.ts@@ -0,0 +1,50 @@+import { randomBytes } from "node:crypto";++const KEYTAR_SERVICE = "notfair-cmo";+const KEYTAR_ACCOUNT = "master-key";++type Keytar = {+ getPassword: (service: string, account: string) => Promise<string | null>;+ setPassword: (service: string, account: string, password: string) => Promise<void>;+};++let cachedKey: Buffer | null = null;+let loadAttempted = false;++async function loadKeytar(): Promise<Keytar | null> {+ try {+ const mod = (await import("keytar")) as unknown as { default?: Keytar } & Keytar;+ return mod.default ?? mod;+ } catch {+ return null;+ }+}++/**+ * Get or create the project's master encryption key.+ * Returns a 32-byte (256-bit) Buffer suitable for AES-256-GCM.+ *+ * V1: stored in OS keychain via keytar. If keytar is unavailable, throws.+ * Future: file-based fallback with prompt-based password unlock.+ */+export async function getMasterKey(): Promise<Buffer> {+ if (cachedKey) return cachedKey;+ if (loadAttempted) throw new Error("Master key unavailable (keytar not loadable)");+ loadAttempted = true;++ const keytar = await loadKeytar();+ if (!keytar) {+ throw new Error(+ "OS keychain (keytar) not available on this platform. OAuth credentials cannot be stored securely.",+ );+ }++ let stored = await keytar.getPassword(KEYTAR_SERVICE, KEYTAR_ACCOUNT);+ if (!stored) {+ const fresh = randomBytes(32).toString("base64");+ await keytar.setPassword(KEYTAR_SERVICE, KEYTAR_ACCOUNT, fresh);+ stored = fresh;+ }+ cachedKey = Buffer.from(stored, "base64");+ return cachedKey;+}diff --git a/src/types/index.ts b/src/types/index.tsnew file mode 100644index 00000000..46311132--- /dev/null+++ b/src/types/index.ts@@ -0,0 +1,119 @@+// Shared types. Imported by both server (Next.js API + MCP) and client (React).++export type Project = {+ id: string;+ slug: string;+ display_name: string;+ created_at: string;+ archived_at: string | null;+};++export type TaskStatus =+ | "proposed"+ | "approved"+ | "running"+ | "succeeded"+ | "failed"+ | "cancelled";++// ┌──────────┐ approve(within guardrails) ┌──────────┐ agent picks up ┌─────────┐+// │ proposed │ ─────────────────────────────▶│ approved │ ────────────────▶│ running │+// └──────────┘ needs_approval └──────────┘ └────┬────┘+// │ ▲ │+// │ └── user approves from inbox ──────────────────────────────┐ │+// │ │ ▼+// │ ┌───────────────┐+// └─ user/CMO cancels ───────────────────────────────────▶│ cancelled / failed / succeeded │+// └───────────────┘+export type Task = {+ id: string;+ project_slug: string;+ agent_id: string;+ brief: string;+ success_criteria: string | null;+ deadline_iso: string | null;+ status: TaskStatus;+ result_json: string | null;+ error_message: string | null;+ created_at: string;+ updated_at: string;+};++export type ApprovalStatus = "pending" | "approved" | "rejected" | "expired";++export type ApprovalType =+ | "spend"+ | "content_publishing"+ | "new_channel"+ | "bid_change"+ | "audience_change"+ | "other";++export type Approval = {+ id: string;+ project_slug: string;+ agent_id: string;+ action_summary: string;+ action_type: ApprovalType;+ cost_estimate_usd: number;+ reasoning: string | null;+ payload_json: string;+ status: ApprovalStatus;+ created_at: string;+ resolved_at: string | null;+};++export type CostEventSource = "llm" | "google_ads" | "gsc" | "other";++export type CostEvent = {+ id: string;+ project_slug: string;+ agent_id: string | null;+ source: CostEventSource;+ amount_usd: number;+ ref: string | null;+ occurred_at: string;+};++export type OAuthProvider = "google_ads" | "gsc";++export type OAuthToken = {+ id: string;+ project_slug: string;+ provider: OAuthProvider;+ account_label: string;+ access_token_enc: string;+ refresh_token_enc: string;+ expires_at: string;+ scope: string;+ created_at: string;+ updated_at: string;+};++export type Guardrails = {+ project_slug: string;+ max_daily_spend_usd: number;+ max_concurrent_experiments: number;+ require_approval_above: {+ spend_per_action_usd: number;+ new_channel_first_action: boolean;+ content_publishing: boolean;+ bid_changes_percent: number;+ audience_change: boolean;+ };+};++export type ToolErrorEnvelope = {+ ok: false;+ error_code: string;+ message: string;+ retryable: boolean;+ user_message: string;+};++export type ToolSuccessEnvelope<T> = {+ ok: true;+ data: T;+};++export type ToolResult<T> = ToolSuccessEnvelope<T> | ToolErrorEnvelope;diff --git a/tsconfig.json b/tsconfig.jsonnew file mode 100644index 00000000..43d82906--- /dev/null+++ b/tsconfig.json@@ -0,0 +1,42 @@+{+ "compilerOptions": {+ "target": "ES2022",+ "lib": [+ "dom",+ "dom.iterable",+ "ES2022"+ ],+ "allowJs": true,+ "skipLibCheck": true,+ "strict": true,+ "noEmit": true,+ "esModuleInterop": true,+ "module": "esnext",+ "moduleResolution": "bundler",+ "resolveJsonModule": true,+ "isolatedModules": true,+ "jsx": "react-jsx",+ "incremental": true,+ "plugins": [+ {+ "name": "next"+ }+ ],+ "paths": {+ "@/*": [+ "./src/*"+ ]+ }+ },+ "include": [+ "next-env.d.ts",+ "**/*.ts",+ "**/*.tsx",+ ".next/types/**/*.ts",+ ".next/dev/types/**/*.ts"+ ],+ "exclude": [+ "node_modules",+ ".next/standalone"+ ]+}