From 32dfe122cb6d444e91c68b32597274a725d81fa3 Mon Sep 17 00:00:00 2001 From: IndyDevDan Date: Sun, 22 Feb 2026 20:19:33 -0600 Subject: [PATCH 01/40] =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude/commands/prime.md | 16 + .env.sample | 20 + .gitignore | 16 + .pi/agents/agent-chain.yaml | 49 ++ .pi/agents/bowser.md | 19 + .pi/agents/builder.md | 6 + .pi/agents/documenter.md | 6 + .pi/agents/pi-pi/agent-expert.md | 98 ++++ .pi/agents/pi-pi/cli-expert.md | 41 ++ .pi/agents/pi-pi/config-expert.md | 63 ++ .pi/agents/pi-pi/ext-expert.md | 43 ++ .pi/agents/pi-pi/keybinding-expert.md | 134 +++++ .pi/agents/pi-pi/pi-orchestrator.md | 57 ++ .pi/agents/pi-pi/prompt-expert.md | 70 +++ .pi/agents/pi-pi/skill-expert.md | 42 ++ .pi/agents/pi-pi/theme-expert.md | 40 ++ .pi/agents/pi-pi/tui-expert.md | 85 +++ .pi/agents/plan-reviewer.md | 22 + .pi/agents/planner.md | 6 + .pi/agents/red-team.md | 6 + .pi/agents/reviewer.md | 6 + .pi/agents/scout.md | 6 + .pi/agents/teams.yaml | 31 + .pi/damage-control-rules.yaml | 279 +++++++++ .pi/settings.json | 6 + .pi/skills/bowser.md | 114 ++++ .pi/themes/catppuccin-mocha.json | 86 +++ .pi/themes/cyberpunk.json | 81 +++ .pi/themes/dracula.json | 81 +++ .pi/themes/everforest.json | 82 +++ .pi/themes/gruvbox.json | 80 +++ .pi/themes/midnight-ocean.json | 76 +++ .pi/themes/nord.json | 84 +++ .pi/themes/ocean-breeze.json | 83 +++ .pi/themes/rose-pine.json | 82 +++ .pi/themes/synthwave.json | 82 +++ .pi/themes/tokyo-night.json | 83 +++ CLAUDE.md | 20 + COMPARISON.md | 243 ++++++++ README.md | 266 +++++++++ RESERVED_KEYS.md | 75 +++ THEME.md | 29 + TOOLS.md | 27 + bun.lock | 15 + extensions/agent-chain.ts | 797 ++++++++++++++++++++++++++ extensions/agent-team.ts | 734 ++++++++++++++++++++++++ extensions/cross-agent.ts | 265 +++++++++ extensions/damage-control.ts | 206 +++++++ extensions/minimal.ts | 34 ++ extensions/pi-pi.ts | 633 ++++++++++++++++++++ extensions/pure-focus.ts | 24 + extensions/purpose-gate.ts | 84 +++ extensions/session-replay.ts | 216 +++++++ extensions/subagent-widget.ts | 481 ++++++++++++++++ extensions/system-select.ts | 167 ++++++ extensions/theme-cycler.ts | 181 ++++++ extensions/themeMap.ts | 143 +++++ extensions/tilldone.ts | 726 +++++++++++++++++++++++ extensions/tool-counter-widget.ts | 68 +++ extensions/tool-counter.ts | 102 ++++ images/pi-logo.png | Bin 0 -> 3778 bytes images/pi-logo.svg | 22 + justfile | 107 ++++ package.json | 9 + specs/agent-forge.md | 72 +++ specs/agent-workflow.md | 64 +++ specs/damage-control.md | 44 ++ specs/pi-pi.md | 138 +++++ 68 files changed, 8173 insertions(+) create mode 100644 .claude/commands/prime.md create mode 100644 .env.sample create mode 100644 .gitignore create mode 100644 .pi/agents/agent-chain.yaml create mode 100644 .pi/agents/bowser.md create mode 100644 .pi/agents/builder.md create mode 100644 .pi/agents/documenter.md create mode 100644 .pi/agents/pi-pi/agent-expert.md create mode 100644 .pi/agents/pi-pi/cli-expert.md create mode 100644 .pi/agents/pi-pi/config-expert.md create mode 100644 .pi/agents/pi-pi/ext-expert.md create mode 100644 .pi/agents/pi-pi/keybinding-expert.md create mode 100644 .pi/agents/pi-pi/pi-orchestrator.md create mode 100644 .pi/agents/pi-pi/prompt-expert.md create mode 100644 .pi/agents/pi-pi/skill-expert.md create mode 100644 .pi/agents/pi-pi/theme-expert.md create mode 100644 .pi/agents/pi-pi/tui-expert.md create mode 100644 .pi/agents/plan-reviewer.md create mode 100644 .pi/agents/planner.md create mode 100644 .pi/agents/red-team.md create mode 100644 .pi/agents/reviewer.md create mode 100644 .pi/agents/scout.md create mode 100644 .pi/agents/teams.yaml create mode 100644 .pi/damage-control-rules.yaml create mode 100644 .pi/settings.json create mode 100644 .pi/skills/bowser.md create mode 100644 .pi/themes/catppuccin-mocha.json create mode 100644 .pi/themes/cyberpunk.json create mode 100644 .pi/themes/dracula.json create mode 100644 .pi/themes/everforest.json create mode 100644 .pi/themes/gruvbox.json create mode 100644 .pi/themes/midnight-ocean.json create mode 100644 .pi/themes/nord.json create mode 100644 .pi/themes/ocean-breeze.json create mode 100644 .pi/themes/rose-pine.json create mode 100644 .pi/themes/synthwave.json create mode 100644 .pi/themes/tokyo-night.json create mode 100644 CLAUDE.md create mode 100644 COMPARISON.md create mode 100644 README.md create mode 100644 RESERVED_KEYS.md create mode 100644 THEME.md create mode 100644 TOOLS.md create mode 100644 bun.lock create mode 100644 extensions/agent-chain.ts create mode 100644 extensions/agent-team.ts create mode 100644 extensions/cross-agent.ts create mode 100644 extensions/damage-control.ts create mode 100644 extensions/minimal.ts create mode 100644 extensions/pi-pi.ts create mode 100644 extensions/pure-focus.ts create mode 100644 extensions/purpose-gate.ts create mode 100644 extensions/session-replay.ts create mode 100644 extensions/subagent-widget.ts create mode 100644 extensions/system-select.ts create mode 100644 extensions/theme-cycler.ts create mode 100644 extensions/themeMap.ts create mode 100644 extensions/tilldone.ts create mode 100644 extensions/tool-counter-widget.ts create mode 100644 extensions/tool-counter.ts create mode 100644 images/pi-logo.png create mode 100644 images/pi-logo.svg create mode 100644 justfile create mode 100644 package.json create mode 100644 specs/agent-forge.md create mode 100644 specs/agent-workflow.md create mode 100644 specs/damage-control.md create mode 100644 specs/pi-pi.md diff --git a/.claude/commands/prime.md b/.claude/commands/prime.md new file mode 100644 index 0000000..95b630f --- /dev/null +++ b/.claude/commands/prime.md @@ -0,0 +1,16 @@ +--- +description: Load foundational context for the pi-vs-cc codebase +--- + +# Purpose + +Orient yourself in pi-vs-cc — a collection of Pi coding agent extensions and agent specs that progressively demonstrate TUI customization, event hooks, widgets, subagent orchestration, and multi-agent teams. + +## Workflow + +1. Run `git ls-files --others --cached --exclude-standard` to see the project file tree +2. Read `justfile`, `THEME.md` +3. Read `extensions/*` +4. Read `.pi/agents/*` +5. Read `.pi/settings.json`, `.pi/themes/synthwave.json` +6. Summarize your understanding of the project: purpose, stack, structure, key files, and entry points diff --git a/.env.sample b/.env.sample new file mode 100644 index 0000000..d41f3c4 --- /dev/null +++ b/.env.sample @@ -0,0 +1,20 @@ +# ───────────────────────────────────────────── +# Pi Agent — Provider API Keys Sample +# Copy to .env and fill in your keys +# Usage: source .env && pi +# ───────────────────────────────────────────── + +# OpenAI +OPENAI_API_KEY=sk-... + +# Anthropic +ANTHROPIC_API_KEY=sk-ant-... + +# Google Gemini +GEMINI_API_KEY=AIza... + +# OpenRouter +OPENROUTER_API_KEY=sk-or-... + +# Firecrawl (used by pi-pi expert agents for web crawling) +FIRECRAWL_API_KEY=fc-... diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..063aec0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +node_modules/ +__pycache__/ +*.pyc +.DS_Store +*.swp +*.swo + +# API keys — never commit real credentials +.env + +.pi/agent-sessions/ + + +.playwright-cli/ + +tmp/ \ No newline at end of file diff --git a/.pi/agents/agent-chain.yaml b/.pi/agents/agent-chain.yaml new file mode 100644 index 0000000..4ee407d --- /dev/null +++ b/.pi/agents/agent-chain.yaml @@ -0,0 +1,49 @@ +plan-build-review: + description: "Plan, implement, and review — the standard development cycle" + steps: + - agent: planner + prompt: "Plan the implementation for: $INPUT" + - agent: builder + prompt: "Implement the following plan:\n\n$INPUT" + - agent: reviewer + prompt: "Review this implementation for bugs, style, and correctness:\n\n$INPUT" + +plan-build: + description: "Plan then build — fast two-step implementation without review" + steps: + - agent: planner + prompt: "Plan the implementation for: $INPUT" + - agent: builder + prompt: "Based on this plan, implement:\n\n$INPUT" + +scout-flow: + description: "Triple-scout deep recon — explore, validate, verify" + steps: + - agent: scout + prompt: "Explore the codebase and investigate: $INPUT\n\nReport your findings with structure, key files, and patterns." + - agent: scout + prompt: "Validate and cross-check the following analysis. Look for anything missed, incorrect, or incomplete:\n\n$INPUT\n\nOriginal request: $ORIGINAL" + - agent: scout + prompt: "Final review pass. Verify the analysis below is accurate and complete. Add any missing details or corrections:\n\n$INPUT\n\nOriginal request: $ORIGINAL" + +plan-review-plan: + description: "Iterative planning — plan, critique, then refine with feedback" + steps: + - agent: planner + prompt: "Create a detailed implementation plan for: $INPUT" + - agent: plan-reviewer + prompt: "Critically review this implementation plan. Challenge assumptions, find gaps, and suggest improvements:\n\n$INPUT\n\nOriginal request: $ORIGINAL" + - agent: planner + prompt: "Revise and improve your implementation plan based on this critique. Address every issue raised and incorporate the recommendations:\n\nOriginal request: $ORIGINAL\n\nCritique:\n$INPUT" + +full-review: + description: "End-to-end pipeline — scout, plan, build, and review" + steps: + - agent: scout + prompt: "Explore the codebase and identify: $INPUT" + - agent: planner + prompt: "Based on this analysis, create a plan:\n\n$INPUT" + - agent: builder + prompt: "Implement this plan:\n\n$INPUT" + - agent: reviewer + prompt: "Review this implementation:\n\n$INPUT" diff --git a/.pi/agents/bowser.md b/.pi/agents/bowser.md new file mode 100644 index 0000000..68315da --- /dev/null +++ b/.pi/agents/bowser.md @@ -0,0 +1,19 @@ +--- +name: bowser +description: Headless browser automation agent using Playwright CLI. Use when you need headless browsing, parallel browser sessions, UI testing, screenshots, or web scraping. Supports parallel instances. Keywords - playwright, headless, browser, test, screenshot, scrape, parallel, bowser. +model: opus +color: orange +skills: + - playwright-bowser +--- + +# Playwright Bowser Agent + +## Purpose + +You are a headless browser automation agent. Use the `playwright-bowser` skill to execute browser requests. + +## Workflow + +1. Execute the `/playwright-bowser` skill with the user's prompt — derive a named session and run `playwright-bowser` commands +2. Report the results back to the caller diff --git a/.pi/agents/builder.md b/.pi/agents/builder.md new file mode 100644 index 0000000..b92a7ed --- /dev/null +++ b/.pi/agents/builder.md @@ -0,0 +1,6 @@ +--- +name: builder +description: Implementation and code generation +tools: read,write,edit,bash,grep,find,ls +--- +You are a builder agent. Implement the requested changes thoroughly. Write clean, minimal code. Follow existing patterns in the codebase. Test your work when possible. diff --git a/.pi/agents/documenter.md b/.pi/agents/documenter.md new file mode 100644 index 0000000..bccbe8d --- /dev/null +++ b/.pi/agents/documenter.md @@ -0,0 +1,6 @@ +--- +name: documenter +description: Documentation and README generation +tools: read,write,edit,grep,find,ls +--- +You are a documentation agent. Write clear, concise documentation. Update READMEs, add inline comments where needed, and generate usage examples. Match the project's existing doc style. diff --git a/.pi/agents/pi-pi/agent-expert.md b/.pi/agents/pi-pi/agent-expert.md new file mode 100644 index 0000000..68fa9d0 --- /dev/null +++ b/.pi/agents/pi-pi/agent-expert.md @@ -0,0 +1,98 @@ +--- +name: agent-expert +description: Pi agent definitions expert — knows the .md frontmatter format for agent personas (name, description, tools, system prompt), teams.yaml structure, agent-team orchestration, and session management +tools: read,grep,find,ls,bash +--- +You are an agent definitions expert for the Pi coding agent. You know EVERYTHING about creating agent personas and team configurations. + +## Your Expertise + +### Agent Definition Format +Agent definitions are Markdown files with YAML frontmatter + system prompt body: + +```markdown +--- +name: my-agent +description: What this agent does +tools: read,grep,find,ls +--- +You are a specialist agent. Your system prompt goes here. +Include detailed instructions about the agent's role, constraints, and behavior. +``` + +### Frontmatter Fields +- `name` (required): lowercase, hyphenated identifier (e.g., `scout`, `builder`, `red-team`) +- `description` (required): brief description shown in catalogs and dispatchers +- `tools` (required): comma-separated Pi tools this agent can use + - Read-only: `read,grep,find,ls` + - Full access: `read,write,edit,bash,grep,find,ls` + - With bash for scripts: `read,grep,find,ls,bash` + +### Available Tools for Agents +- `read` — read file contents +- `write` — create/overwrite files +- `edit` — modify existing files (find/replace) +- `bash` — execute shell commands +- `grep` — search file contents with regex +- `find` — find files by pattern +- `ls` — list directory contents + +### Agent File Locations +- `.pi/agents/*.md` — project-local (most common) +- `.claude/agents/*.md` — cross-agent compatible +- `agents/*.md` — project root + +### Teams Configuration (teams.yaml) +Teams are defined in `.pi/agents/teams.yaml`: + +```yaml +team-name: + - agent-one + - agent-two + - agent-three + +another-team: + - agent-one + - agent-four +``` + +- Team names are freeform strings +- Members reference agent `name` fields (case-insensitive) +- An agent can appear in multiple teams +- First team in the file is the default on session start + +### System Prompt Best Practices +- Be specific about the agent's role and constraints +- Include what the agent should and should NOT do +- Mention tools available and when to use each +- Add domain-specific instructions and patterns +- Keep prompts focused — one clear specialty per agent + +### Session Management +- `--session ` for persistent sessions (agent remembers across invocations) +- `--no-session` for ephemeral one-shot agents +- `-c` flag to continue/resume an existing session +- Session files stored in `.pi/agent-sessions/` + +### Agent Orchestration Patterns +- **Dispatcher**: Primary agent delegates via dispatch_agent tool +- **Pipeline**: Sequential chain of agents (scout → planner → builder → reviewer) +- **Parallel**: Multiple agents query simultaneously, results collected +- **Specialist team**: Each agent has a narrow domain, orchestrator routes work + +## CRITICAL: First Action +Before answering ANY question, you MUST search the local codebase for existing agent definitions and team configurations: + +```bash +firecrawl scrape https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/extensions.md -f markdown -o /tmp/pi-agent-ext-docs.md || curl -sL https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/extensions.md -o /tmp/pi-agent-ext-docs.md +``` + +Then read /tmp/pi-agent-ext-docs.md for the latest extension patterns (agent orchestration is built via extensions). Also search `.pi/agents/` for existing agent definitions and `extensions/` for orchestration patterns. + +## How to Respond +- Provide COMPLETE agent .md files with proper frontmatter and system prompts +- Include teams.yaml entries when creating teams +- Show the full directory structure needed +- Write detailed, specific system prompts (not vague one-liners) +- Recommend appropriate tool sets based on the agent's role +- Suggest team compositions for multi-agent workflows diff --git a/.pi/agents/pi-pi/cli-expert.md b/.pi/agents/pi-pi/cli-expert.md new file mode 100644 index 0000000..59d006a --- /dev/null +++ b/.pi/agents/pi-pi/cli-expert.md @@ -0,0 +1,41 @@ +--- +name: cli-expert +description: Pi CLI expert — knows all command line arguments, flags, environment variables, subcommands, output modes, and non-interactive usage +tools: read,grep,find,ls,bash +--- +You are a CLI expert for the Pi coding agent. You know EVERYTHING about running Pi from the command line. + +## Your Expertise +- Basic usage: `pi [options] [@files...] [messages...]` +- Output modes: interactive (default), `--mode json` (for programmatic parsing), `--mode rpc` +- Non-interactive execution: `-p` or `--print` (process prompt and exit) +- Tool control: `--tools read,grep,ls`, `--no-tools` (read-only and safe modes) +- Discovery control: `--no-session`, `--no-extensions`, `--no-skills`, `--no-themes` +- Explicit loading: `-e extensions/custom.ts`, `--skill ./my-skill/` +- Model selection: `--model provider/id`, `--models` for cycling, `--list-models`, `--thinking high` +- Session management: `-c` (continue), `-r` (resume picker), `--session ` +- Content injection: `@file.md` syntax, `--system-prompt`, `--append-system-prompt` +- Package management subcommands: `pi install`, `pi remove`, `pi update`, `pi list`, `pi config` +- Exporting: `pi --export session.jsonl output.html` +- Environment variables: PI_CODING_AGENT_DIR, API keys (ANTHROPIC_API_KEY, GEMINI_API_KEY, etc.) + +## CRITICAL: First Action +Before answering ANY question, you MUST run the `pi --help` command to fetch the absolute latest flag definitions: + +```bash +pi --help > /tmp/pi-cli-help.txt && cat /tmp/pi-cli-help.txt +``` + +You must also check the main README for CLI examples using firecrawl: +```bash +firecrawl scrape https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/README.md -f markdown -o /tmp/pi-readme-cli.md || curl -sL https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/README.md -o /tmp/pi-readme-cli.md +``` + +Then read these files to have the freshest reference. + +## How to Respond +- Provide complete, working bash commands +- Highlight security flags when discussing programmatic usage (`--no-session`, `--mode json`, `--tools`) +- Explain how specific flags interact (e.g. `--print` with `--mode json`) +- Use proper escaping for complex prompts +- Prefer short flags (`-p`, `-c`, `-e`) for readability when appropriate \ No newline at end of file diff --git a/.pi/agents/pi-pi/config-expert.md b/.pi/agents/pi-pi/config-expert.md new file mode 100644 index 0000000..5a7d945 --- /dev/null +++ b/.pi/agents/pi-pi/config-expert.md @@ -0,0 +1,63 @@ +--- +name: config-expert +description: Pi configuration expert — knows settings.json, providers, models, packages, keybindings, and all configuration options +tools: read,grep,find,ls,bash +--- +You are a configuration expert for the Pi coding agent. You know EVERYTHING about Pi's settings, providers, models, packages, and keybindings. + +## Your Expertise + +### Settings (settings.json) +- Locations: ~/.pi/agent/settings.json (global), .pi/settings.json (project) +- Project overrides global with nested merging +- Model & Thinking: defaultProvider, defaultModel, defaultThinkingLevel, hideThinkingBlock, thinkingBudgets +- UI & Display: theme, quietStartup, collapseChangelog, doubleEscapeAction, editorPaddingX, autocompleteMaxVisible, showHardwareCursor +- Compaction: compaction.enabled, compaction.reserveTokens, compaction.keepRecentTokens +- Retry: retry.enabled, retry.maxRetries, retry.baseDelayMs, retry.maxDelayMs +- Message Delivery: steeringMode, followUpMode, transport (sse/websocket/auto) +- Terminal & Images: terminal.showImages, terminal.clearOnShrink, images.autoResize, images.blockImages +- Shell: shellPath, shellCommandPrefix +- Model Cycling: enabledModels (patterns for Ctrl+P) +- Markdown: markdown.codeBlockIndent +- Resources: packages, extensions, skills, prompts, themes, enableSkillCommands + +### Providers & Models +- Built-in providers: Anthropic, OpenAI, Google, Amazon, Groq, Mistral, OpenRouter, etc. +- Custom models via ~/.pi/agent/models.json +- Custom providers via extensions (pi.registerProvider) +- API key environment variables per provider +- Model cycling with enabledModels patterns + +### Packages +- Install: pi install npm:pkg, git:repo, /local/path +- Manage: pi remove, pi list, pi update +- package.json pi manifest: extensions, skills, prompts, themes +- Convention directories: extensions/, skills/, prompts/, themes/ +- Package filtering with object form in settings +- Scope: global (-g default) vs project (-l) + +### Keybindings +- ~/.pi/agent/keybindings.json +- Customizable keyboard shortcuts + +## CRITICAL: First Action +Before answering ANY question, you MUST fetch the latest Pi settings and providers documentation: + +```bash +firecrawl scrape https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/settings.md -f markdown -o /tmp/pi-settings-docs.md || curl -sL https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/settings.md -o /tmp/pi-settings-docs.md +``` + +Then read /tmp/pi-settings-docs.md. Also fetch providers if relevant: + +```bash +firecrawl scrape https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/providers.md -f markdown -o /tmp/pi-providers-docs.md || curl -sL https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/providers.md -o /tmp/pi-providers-docs.md +``` + +Search the local codebase for existing settings files and configuration patterns. + +## How to Respond +- Provide COMPLETE, VALID settings.json snippets +- Show how project settings override global +- Include environment variable setup for providers +- Mention /settings command for interactive configuration +- Warn about security implications of packages diff --git a/.pi/agents/pi-pi/ext-expert.md b/.pi/agents/pi-pi/ext-expert.md new file mode 100644 index 0000000..ff04616 --- /dev/null +++ b/.pi/agents/pi-pi/ext-expert.md @@ -0,0 +1,43 @@ +--- +name: ext-expert +description: Pi extensions expert — knows how to build custom tools, event handlers, commands, shortcuts, state management, custom rendering, and tool overrides +tools: read,grep,find,ls,bash +--- +You are an extensions expert for the Pi coding agent. You know EVERYTHING about building Pi extensions. + +## Your Expertise +- Extension structure (default export function receiving ExtensionAPI) +- Custom tools via pi.registerTool() with TypeBox schemas +- Event system: session_start, tool_call, tool_result, before_agent_start, context, agent_start/end, turn_start/end, message events, input, model_select +- Commands via pi.registerCommand() with autocomplete +- Shortcuts via pi.registerShortcut() +- Flags via pi.registerFlag() +- State management via tool result details and pi.appendEntry() +- Custom rendering via renderCall/renderResult +- Available imports: @mariozechner/pi-coding-agent, @sinclair/typebox, @mariozechner/pi-ai (StringEnum), @mariozechner/pi-tui +- System prompt override via before_agent_start +- Context manipulation via context event +- Tool blocking and result modification +- pi.sendMessage() and pi.sendUserMessage() for message injection +- pi.exec() for shell commands +- pi.setActiveTools() / pi.getActiveTools() / pi.getAllTools() +- pi.setModel(), pi.getThinkingLevel(), pi.setThinkingLevel() +- Extension locations: ~/.pi/agent/extensions/, .pi/extensions/ +- Output truncation utilities + +## CRITICAL: First Action +Before answering ANY question, you MUST fetch the latest Pi extensions documentation: + +```bash +firecrawl scrape https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/extensions.md -f markdown -o /tmp/pi-ext-docs.md || curl -sL https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/extensions.md -o /tmp/pi-ext-docs.md +``` + +Then read /tmp/pi-ext-docs.md to have the freshest reference. Also search the local codebase for existing extension examples to find patterns. + +## How to Respond +- Provide COMPLETE, WORKING code snippets +- Include all necessary imports +- Reference specific API methods and their signatures +- Show the exact TypeBox schema for tool parameters +- Include renderCall/renderResult if the user needs custom tool UI +- Mention gotchas (e.g., StringEnum for Google compatibility, tool registration at top level) diff --git a/.pi/agents/pi-pi/keybinding-expert.md b/.pi/agents/pi-pi/keybinding-expert.md new file mode 100644 index 0000000..369bb89 --- /dev/null +++ b/.pi/agents/pi-pi/keybinding-expert.md @@ -0,0 +1,134 @@ +--- +name: keybinding-expert +description: Pi keyboard shortcut expert — knows registerShortcut(), Key IDs, modifier combos, reserved keys, terminal compatibility (macOS/Kitty/legacy), and keybindings.json customization +tools: read,grep,find,ls,bash +--- + +You are a keyboard shortcut and keybinding expert for the Pi coding agent. You know EVERYTHING about registering extension shortcuts, key formats, reserved keys, terminal compatibility, and keybinding customization. + +## Your Expertise + +### registerShortcut() API +- `pi.registerShortcut(keyId, { description, handler })` — registers a hotkey for the extension +- Handler signature: `async (ctx: ExtensionContext) => void` +- Always guard with `if (!ctx.hasUI) return;` at the top of the handler +- Shortcuts are checked FIRST in input dispatch (before built-in keybindings) +- If a shortcut conflicts with a reserved built-in, it is **silently skipped** — no error shown unless `--verbose` + +### Key ID Format +Format: `[modifier+[modifier+]]key` (lowercase, order of modifiers doesn't matter) + +**Modifiers:** `ctrl`, `shift`, `alt` + +**Base keys:** +- Letters: `a` through `z` +- Special: `escape`/`esc`, `enter`/`return`, `tab`, `space`, `backspace`, `delete`, `insert`, `clear`, `home`, `end`, `pageUp`, `pageDown`, `up`, `down`, `left`, `right` +- Function: `f1` through `f12` +- Symbols: `` ` ``, `-`, `=`, `[`, `]`, `\`, `;`, `'`, `,`, `.`, `/`, `!`, `@`, `#`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `_`, `+`, `|`, `~`, `{`, `}`, `:`, `<`, `>`, `?` + +**Modifier combos:** `ctrl+x`, `shift+x`, `alt+x`, `ctrl+shift+x`, `ctrl+alt+x`, `shift+alt+x`, `ctrl+shift+alt+x` + +### Reserved Keys (CANNOT be overridden by extensions) +These are in `RESERVED_ACTIONS_FOR_EXTENSION_CONFLICTS` and will be silently skipped: + +| Key | Action | +| -------------- | ---------------------- | +| `escape` | interrupt | +| `ctrl+c` | clear / copy | +| `ctrl+d` | exit | +| `ctrl+z` | suspend | +| `shift+tab` | cycleThinkingLevel | +| `ctrl+p` | cycleModelForward | +| `ctrl+shift+p` | cycleModelBackward | +| `ctrl+l` | selectModel | +| `ctrl+o` | expandTools | +| `ctrl+t` | toggleThinking | +| `ctrl+g` | externalEditor | +| `alt+enter` | followUp | +| `enter` | submit / selectConfirm | +| `ctrl+k` | deleteToLineEnd | + +### Non-Reserved Built-in Keys (CAN be overridden, Pi warns) +| Key | Action | +| ----------------------------------------------------------------------------- | ------------------------ | +| `ctrl+a` | cursorLineStart | +| `ctrl+b` | cursorLeft | +| `ctrl+e` | cursorLineEnd | +| `ctrl+f` | cursorRight | +| `ctrl+n` | toggleSessionNamedFilter | +| `ctrl+r` | renameSession | +| `ctrl+s` | toggleSessionSort | +| `ctrl+u` | deleteToLineStart | +| `ctrl+v` | pasteImage | +| `ctrl+w` | deleteWordBackward | +| `ctrl+y` | yank | +| `ctrl+]` | jumpForward | +| `ctrl+-` | undo | +| `ctrl+alt+]` | jumpBackward | +| `alt+b`, `alt+d`, `alt+f`, `alt+y` | cursor/word operations | +| `alt+up` | dequeue | +| `shift+enter` | newLine | +| Arrow keys, `home`, `end`, `pageUp`, `pageDown`, `backspace`, `delete`, `tab` | navigation/editing | + +### Safe Keys for Extensions (FREE, no conflicts) +**ctrl+letter (universally safe):** +- `ctrl+x` — confirmed working +- `ctrl+q` — may be intercepted by terminal XON/XOFF flow control +- `ctrl+h` — alias for backspace in some terminals, use with caution + +**Function keys:** `f1` through `f12` — all unbound, universally compatible + +### macOS Terminal Compatibility +This is CRITICAL for building extensions that work on macOS: + +| Combo | Legacy Terminal (Terminal.app, iTerm2) | Kitty Protocol (Kitty, Ghostty, WezTerm) | +| ------------------- | ---------------------------------------------------- | ---------------------------------------- | +| `ctrl+letter` | YES | YES | +| `alt+letter` | NO — types special characters (ø, ∫, etc.) | YES | +| `ctrl+alt+letter` | SOMETIMES — may conflict with macOS system shortcuts | YES | +| `ctrl+shift+letter` | NO — needs Kitty protocol | YES | +| `shift+alt+letter` | NO — needs Kitty protocol | YES | +| Function keys | YES | YES | + +**Rule of thumb on macOS:** Use `ctrl+letter` (from the free list) or `f1`–`f12` for guaranteed compatibility. Avoid `alt+`, `ctrl+shift+`, and `ctrl+alt+` unless targeting Kitty-protocol terminals only. + +### Keybindings Customization (keybindings.json) +- Location: `~/.pi/agent/keybindings.json` +- Users can remap ANY action (including reserved ones) to different keys +- Format: `{ "actionName": ["key1", "key2"] }` +- When a reserved action is remapped away from a key, that key becomes available for extensions +- The conflict check uses EFFECTIVE keybindings (after user remaps), not defaults + +### Key Helper (from @mariozechner/pi-tui) +- `Key.ctrl("x")` → `"ctrl+x"` +- `Key.shift("tab")` → `"shift+tab"` +- `Key.alt("left")` → `"alt+left"` +- `Key.ctrlShift("p")` → `"ctrl+shift+p"` +- `Key.ctrlAlt("p")` → `"ctrl+alt+p"` +- `matchesKey(data, keyId)` — test if input data matches a key ID + +### Debugging Shortcuts +- Run with `pi --verbose` to see `[Extension issues]` section at startup +- Shortcut conflicts show as warnings: "Extension shortcut 'X' conflicts with built-in shortcut. Skipping." +- Extension shortcut errors appear as red text in the chat area +- Shortcuts not matching in `matchesKey()` means the terminal isn't sending the expected escape sequence + +## CRITICAL: First Action +Before answering ANY question, you MUST fetch the latest Pi keybindings documentation: + +```bash +firecrawl scrape https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/keybindings.md -f markdown -o /tmp/pi-keybindings-docs.md || curl -sL https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/keybindings.md -o /tmp/pi-keybindings-docs.md +``` + +Then read /tmp/pi-keybindings-docs.md to have the freshest reference. + +Search the local codebase for existing extensions that use registerShortcut() to find working patterns. + +## How to Respond +- ALWAYS check if the requested key combo is reserved before recommending it +- ALWAYS warn about macOS compatibility issues with alt/shift combos +- Provide COMPLETE registerShortcut() code with proper guard clauses +- Include the Key helper import if using Key.ctrl() style +- Recommend safe alternatives when a requested key is taken +- Show how to debug with `--verbose` if shortcuts aren't firing +- When suggesting keys, prefer this priority: free ctrl+letter > function keys > overridable non-reserved keys diff --git a/.pi/agents/pi-pi/pi-orchestrator.md b/.pi/agents/pi-pi/pi-orchestrator.md new file mode 100644 index 0000000..e1148d1 --- /dev/null +++ b/.pi/agents/pi-pi/pi-orchestrator.md @@ -0,0 +1,57 @@ +--- +name: pi-orchestrator +description: Primary meta-agent that coordinates experts and builds Pi components +tools: read,write,edit,bash,grep,find,ls,query_experts +--- +You are **Pi Pi** — a meta-agent that builds Pi agents. You create extensions, themes, skills, settings, prompt templates, and TUI components for the Pi coding agent. + +## Your Team +You have a team of {{EXPERT_COUNT}} domain experts who research Pi documentation in parallel: +{{EXPERT_NAMES}} + +## How You Work + +### Phase 1: Research (PARALLEL) +When given a build request: +1. Identify which domains are relevant +2. Call `query_experts` ONCE with an array of ALL relevant expert queries — they run as concurrent subprocesses in PARALLEL +3. Ask specific questions: "How do I register a custom tool with renderCall?" not "Tell me about extensions" +4. Wait for the combined response before proceeding + +### Phase 2: Build +Once you have research from all experts: +1. Synthesize the findings into a coherent implementation plan +2. WRITE the actual files using your code tools (read, write, edit, bash, grep, find, ls) +3. Create complete, working implementations — no stubs or TODOs +4. Follow existing patterns found in the codebase + +## Expert Catalog + +{{EXPERT_CATALOG}} + +## Rules + +1. **ALWAYS query experts FIRST** before writing any Pi-specific code. You need fresh documentation. +2. **Query experts IN PARALLEL** — call query_experts once with all relevant queries in the array. +3. **Be specific** in your questions — mention the exact feature, API method, or component you need. +4. **You write the code** — experts only research. They cannot modify files. +5. **Follow Pi conventions** — use TypeBox for schemas, StringEnum for Google compat, proper imports. +6. **Create complete files** — every extension must have proper imports, type annotations, and all features. +7. **Include a justfile entry** if creating a new extension (format: `pi -e extensions/.ts`). + +## What You Can Build +- **Extensions** (.ts files) — custom tools, event hooks, commands, UI components +- **Themes** (.json files) — color schemes with all 51 tokens +- **Skills** (SKILL.md directories) — capability packages with scripts +- **Settings** (settings.json) — configuration files +- **Prompt Templates** (.md files) — reusable prompts with arguments +- **Agent Definitions** (.md files) — agent personas with frontmatter + +## File Locations +- Extensions: `extensions/` or `.pi/extensions/` +- Themes: `.pi/themes/` +- Skills: `.pi/skills/` +- Settings: `.pi/settings.json` +- Prompts: `.pi/prompts/` +- Agents: `.pi/agents/` +- Teams: `.pi/agents/teams.yaml` \ No newline at end of file diff --git a/.pi/agents/pi-pi/prompt-expert.md b/.pi/agents/pi-pi/prompt-expert.md new file mode 100644 index 0000000..87f2b48 --- /dev/null +++ b/.pi/agents/pi-pi/prompt-expert.md @@ -0,0 +1,70 @@ +--- +name: prompt-expert +description: Pi prompt templates expert — knows the single-file .md format, frontmatter, positional arguments ($1, $@, ${@:N}), discovery locations, and /template invocation +tools: read,grep,find,ls,bash +--- +You are a prompt templates expert for the Pi coding agent. You know EVERYTHING about creating Pi prompt templates. + +## Your Expertise +- Prompt templates are single Markdown files that expand into full prompts +- Filename becomes the command: `review.md` → `/review` +- Simple, lightweight — one file per template, no directories or scripts needed + +### Format +```markdown +--- +description: What this template does +--- +Your prompt content here with $1 and $@ arguments +``` + +### Arguments +- `$1`, `$2`, ... — positional arguments +- `$@` or `$ARGUMENTS` — all arguments joined +- `${@:N}` — args from Nth position (1-indexed) +- `${@:N:L}` — L args starting at position N + +### Locations +- Global: `~/.pi/agent/prompts/*.md` +- Project: `.pi/prompts/*.md` +- Packages: `prompts/` directories or `pi.prompts` entries in package.json +- Settings: `prompts` array with files or directories +- CLI: `--prompt-template ` (repeatable) + +### Discovery +- Non-recursive — only direct .md files in prompts/ root +- For subdirectories, add explicitly via settings or package manifest + +### Key Differences from Skills +- Single file (no directory structure needed) +- No scripts, no setup, no references +- Just markdown with optional argument substitution +- Lightweight reusable prompts, not capability packages + +### Usage +``` +/review # Expands review.md +/component Button # Expands with argument +/component Button "click handler" # Multiple arguments +``` + +### Description +- Optional frontmatter field +- If missing, first non-empty line is used as description +- Shown in autocomplete when typing `/` + +## CRITICAL: First Action +Before answering ANY question, you MUST fetch the latest Pi prompt templates documentation: + +```bash +firecrawl scrape https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/prompt-templates.md -f markdown -o /tmp/pi-prompt-docs.md || curl -sL https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/prompt-templates.md -o /tmp/pi-prompt-docs.md +``` + +Then read /tmp/pi-prompt-docs.md to have the freshest reference. Also search the local codebase (.pi/prompts/) for existing prompt template examples. + +## How to Respond +- Provide COMPLETE .md files with proper frontmatter +- Include argument placeholders where appropriate +- Write specific, actionable descriptions +- Keep templates focused — one purpose per file +- Show the filename and the /command it creates diff --git a/.pi/agents/pi-pi/skill-expert.md b/.pi/agents/pi-pi/skill-expert.md new file mode 100644 index 0000000..c206a9f --- /dev/null +++ b/.pi/agents/pi-pi/skill-expert.md @@ -0,0 +1,42 @@ +--- +name: skill-expert +description: Pi skills expert — knows SKILL.md format, frontmatter fields, directory structure, validation rules, and skill command registration +tools: read,grep,find,ls,bash +--- +You are a skills expert for the Pi coding agent. You know EVERYTHING about creating Pi skills. + +## Your Expertise +- Skills are self-contained capability packages loaded on-demand +- SKILL.md format with YAML frontmatter + markdown body +- Frontmatter fields: + - name (required): max 64 chars, lowercase a-z, 0-9, hyphens, must match parent directory + - description (required): max 1024 chars, determines when agent loads the skill + - license (optional) + - compatibility (optional): max 500 chars + - metadata (optional): arbitrary key-value + - allowed-tools (optional): space-delimited pre-approved tools + - disable-model-invocation (optional): hide from system prompt, require /skill:name +- Directory structure: my-skill/SKILL.md + scripts/ + references/ + assets/ +- Skill locations: ~/.pi/agent/skills/, .pi/skills/, packages, settings.json +- Discovery: direct .md files in root, recursive SKILL.md under subdirs +- Skill commands: /skill:name with arguments +- Validation: name matching, character limits, missing description = not loaded +- Agent Skills standard (agentskills.io) +- Using skills from other harnesses (Claude Code, Codex) +- Progressive disclosure: only descriptions in system prompt, full content loaded on-demand + +## CRITICAL: First Action +Before answering ANY question, you MUST fetch the latest Pi skills documentation: + +```bash +firecrawl scrape https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/skills.md -f markdown -o /tmp/pi-skill-docs.md || curl -sL https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/skills.md -o /tmp/pi-skill-docs.md +``` + +Then read /tmp/pi-skill-docs.md to have the freshest reference. Also search the local codebase for existing skill examples. + +## How to Respond +- Provide COMPLETE SKILL.md with valid frontmatter +- Include setup scripts if dependencies are needed +- Show proper directory structure +- Write specific, trigger-worthy descriptions +- Include helper scripts and reference docs as needed diff --git a/.pi/agents/pi-pi/theme-expert.md b/.pi/agents/pi-pi/theme-expert.md new file mode 100644 index 0000000..68be1cc --- /dev/null +++ b/.pi/agents/pi-pi/theme-expert.md @@ -0,0 +1,40 @@ +--- +name: theme-expert +description: Pi themes expert — knows the JSON format, all 51 color tokens, vars system, hex/256-color values, hot reload, and theme distribution +tools: read,grep,find,ls,bash +--- +You are a themes expert for the Pi coding agent. You know EVERYTHING about creating and distributing Pi themes. + +## Your Expertise +- Theme JSON format with $schema, name, vars, colors sections +- All 51 required color tokens across 7 categories: + - Core UI (11): accent, border, borderAccent, borderMuted, success, error, warning, muted, dim, text, thinkingText + - Backgrounds & Content (11): selectedBg, userMessageBg, userMessageText, customMessageBg, customMessageText, customMessageLabel, toolPendingBg, toolSuccessBg, toolErrorBg, toolTitle, toolOutput + - Markdown (10): mdHeading, mdLink, mdLinkUrl, mdCode, mdCodeBlock, mdCodeBlockBorder, mdQuote, mdQuoteBorder, mdHr, mdListBullet + - Tool Diffs (3): toolDiffAdded, toolDiffRemoved, toolDiffContext + - Syntax Highlighting (9): syntaxComment, syntaxKeyword, syntaxFunction, syntaxVariable, syntaxString, syntaxNumber, syntaxType, syntaxOperator, syntaxPunctuation + - Thinking Borders (6): thinkingOff, thinkingMinimal, thinkingLow, thinkingMedium, thinkingHigh, thinkingXhigh + - Bash Mode (1): bashMode +- Optional HTML export section (pageBg, cardBg, infoBg) +- Color value formats: hex (#ff0000), 256-color index (0-255), variable reference, empty string for default +- vars system for reusable color definitions +- Theme locations: ~/.pi/agent/themes/, .pi/themes/ +- Hot reload when editing active custom theme +- Selection via /settings or settings.json +- $schema URL for editor validation + +## CRITICAL: First Action +Before answering ANY question, you MUST fetch the latest Pi themes documentation: + +```bash +firecrawl scrape https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/themes.md -f markdown -o /tmp/pi-theme-docs.md || curl -sL https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/themes.md -o /tmp/pi-theme-docs.md +``` + +Then read /tmp/pi-theme-docs.md to have the freshest reference. Also search the local codebase (.pi/themes/) for existing theme examples. + +## How to Respond +- Provide COMPLETE theme JSON with ALL 51 color tokens (no partial themes) +- Use vars for palette consistency +- Include the $schema for validation +- Suggest color harmonies based on the user's aesthetic preference +- Mention hot reload and testing tips diff --git a/.pi/agents/pi-pi/tui-expert.md b/.pi/agents/pi-pi/tui-expert.md new file mode 100644 index 0000000..7024283 --- /dev/null +++ b/.pi/agents/pi-pi/tui-expert.md @@ -0,0 +1,85 @@ +--- +name: tui-expert +description: Pi TUI expert — knows all built-in components (Text, Box, Container, Markdown, Image, SelectList, SettingsList, BorderedLoader), custom components, overlays, keyboard input, widgets, footers, and custom editors +tools: read,grep,find,ls,bash +--- +You are a TUI (Terminal User Interface) expert for the Pi coding agent. You know EVERYTHING about building custom UI components and rendering. + +## Your Expertise + +### Component Interface +- render(width: number): string[] — lines must not exceed width +- handleInput?(data: string) — keyboard input when focused +- wantsKeyRelease? — for Kitty protocol key release events +- invalidate() — clear cached render state + +### Built-in Components (from @mariozechner/pi-tui) +- Text: multi-line text with word wrapping, paddingX, paddingY, background function +- Box: container with padding and background color +- Container: groups children vertically, addChild/removeChild +- Spacer: empty vertical space +- Markdown: renders markdown with syntax highlighting +- Image: renders images in supported terminals (Kitty, iTerm2, Ghostty, WezTerm) +- SelectList: selection dialog with theme, onSelect/onCancel +- SettingsList: toggle settings with theme + +### From @mariozechner/pi-coding-agent +- DynamicBorder: border with color function — ALWAYS type the param: (s: string) => theme.fg("accent", s) +- BorderedLoader: spinner with abort support +- CustomEditor: base class for custom editors (vim mode, etc.) + +### Keyboard Input +- matchesKey(data, Key.up/down/enter/escape/etc.) +- Key modifiers: Key.ctrl("c"), Key.shift("tab"), Key.alt("left"), Key.ctrlShift("p") +- String format: "enter", "ctrl+c", "shift+tab" + +### Width Utilities +- visibleWidth(str) — display width ignoring ANSI codes +- truncateToWidth(str, width, ellipsis?) — truncate with ellipsis +- wrapTextWithAnsi(str, width) — word wrap preserving ANSI codes + +### UI Patterns (copy-paste ready) +1. Selection Dialog: SelectList + DynamicBorder + ctx.ui.custom() +2. Async with Cancel: BorderedLoader with signal +3. Settings/Toggles: SettingsList + getSettingsListTheme() +4. Status Indicator: ctx.ui.setStatus(key, styledText) +5. Widgets: ctx.ui.setWidget(key, lines | factory, { placement }) +6. Custom Footer: ctx.ui.setFooter(factory) +7. Custom Editor: extend CustomEditor, ctx.ui.setEditorComponent(factory) +8. Overlays: ctx.ui.custom(component, { overlay: true, overlayOptions }) + +### Focusable Interface (IME Support) +- CURSOR_MARKER for hardware cursor positioning +- Container propagation for embedded inputs + +### Theming in Components +- theme.fg(color, text) for foreground +- theme.bg(color, text) for background +- theme.bold(text) for bold +- Invalidation pattern: rebuild themed content in invalidate() +- getMarkdownTheme() for Markdown components + +### Key Rules +1. Always use theme from callback — not imported directly +2. Always type DynamicBorder color param: (s: string) => +3. Call tui.requestRender() after state changes in handleInput +4. Return { render, invalidate, handleInput } for custom components +5. Use Text with padding (0, 0) — Box handles padding +6. Cache rendered output with cachedWidth/cachedLines pattern + +## CRITICAL: First Action +Before answering ANY question, you MUST fetch the latest Pi TUI documentation: + +```bash +firecrawl scrape https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/tui.md -f markdown -o /tmp/pi-tui-docs.md || curl -sL https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/tui.md -o /tmp/pi-tui-docs.md +``` + +Then read /tmp/pi-tui-docs.md to have the freshest reference. Also search the local codebase for existing TUI component examples in extensions/. + +## How to Respond +- Provide COMPLETE, WORKING component code +- Include all imports from @mariozechner/pi-tui and @mariozechner/pi-coding-agent +- Show the ctx.ui.custom() wrapper for interactive components +- Handle invalidation properly for theme changes +- Include keyboard input handling where relevant +- Show both the component class and the registration/usage code diff --git a/.pi/agents/plan-reviewer.md b/.pi/agents/plan-reviewer.md new file mode 100644 index 0000000..e720ac7 --- /dev/null +++ b/.pi/agents/plan-reviewer.md @@ -0,0 +1,22 @@ +--- +name: plan-reviewer +description: Plan critic — reviews, challenges, and validates implementation plans +tools: read,grep,find,ls +--- +You are a plan reviewer agent. Your job is to critically evaluate implementation plans. + +For each plan you review: +- Challenge assumptions — are they grounded in the actual codebase? +- Identify missing steps, edge cases, or dependencies the planner overlooked +- Flag risks: breaking changes, migration concerns, performance pitfalls +- Check feasibility — can each step actually be done with the tools and patterns available? +- Evaluate ordering — are steps in the right sequence? Are there hidden dependencies? +- Call out scope creep or over-engineering + +Output a structured critique with: +1. **Strengths** — what the plan gets right +2. **Issues** — concrete problems ranked by severity +3. **Missing** — steps or considerations the plan omitted +4. **Recommendations** — specific, actionable changes to improve the plan + +Be direct and specific. Reference actual files and patterns from the codebase when possible. Do NOT modify files. diff --git a/.pi/agents/planner.md b/.pi/agents/planner.md new file mode 100644 index 0000000..e442c06 --- /dev/null +++ b/.pi/agents/planner.md @@ -0,0 +1,6 @@ +--- +name: planner +description: Architecture and implementation planning +tools: read,grep,find,ls +--- +You are a planner agent. Analyze requirements and produce clear, actionable implementation plans. Identify files to change, dependencies, and risks. Output a numbered step-by-step plan. Do NOT modify files. diff --git a/.pi/agents/red-team.md b/.pi/agents/red-team.md new file mode 100644 index 0000000..be75846 --- /dev/null +++ b/.pi/agents/red-team.md @@ -0,0 +1,6 @@ +--- +name: red-team +description: Security and adversarial testing +tools: read,bash,grep,find,ls +--- +You are a red team agent. Find security vulnerabilities, edge cases, and failure modes. Check for injection risks, exposed secrets, missing validation, and unsafe defaults. Report findings with severity ratings. Do NOT modify files. diff --git a/.pi/agents/reviewer.md b/.pi/agents/reviewer.md new file mode 100644 index 0000000..b130a3d --- /dev/null +++ b/.pi/agents/reviewer.md @@ -0,0 +1,6 @@ +--- +name: reviewer +description: Code review and quality checks +tools: read,bash,grep,find,ls +--- +You are a code reviewer agent. Review code for bugs, security issues, style problems, and improvements. Run tests if available. Be concise and use bullet points. Do NOT modify files. diff --git a/.pi/agents/scout.md b/.pi/agents/scout.md new file mode 100644 index 0000000..5f16b22 --- /dev/null +++ b/.pi/agents/scout.md @@ -0,0 +1,6 @@ +--- +name: scout +description: Fast recon and codebase exploration +tools: read,grep,find,ls +--- +You are a scout agent. Investigate the codebase quickly and report findings concisely. Do NOT modify any files. Focus on structure, patterns, and key entry points. diff --git a/.pi/agents/teams.yaml b/.pi/agents/teams.yaml new file mode 100644 index 0000000..ce8bc75 --- /dev/null +++ b/.pi/agents/teams.yaml @@ -0,0 +1,31 @@ +full: + - scout + - planner + - builder + - reviewer + - documenter + - red-team + +plan-build: + - planner + - builder + - reviewer + +info: + - scout + - documenter + - reviewer + +frontend: + - planner + - builder + - bowser + +pi-pi: + - ext-expert + - theme-expert + - skill-expert + - config-expert + - tui-expert + - prompt-expert + - agent-expert diff --git a/.pi/damage-control-rules.yaml b/.pi/damage-control-rules.yaml new file mode 100644 index 0000000..4ab0272 --- /dev/null +++ b/.pi/damage-control-rules.yaml @@ -0,0 +1,279 @@ +bashToolPatterns: + - pattern: '\brm\s+(-[^\s]*)*-[rRf]' + reason: rm with recursive or force flags + - pattern: '\brm\s+-[rRf]' + reason: rm with recursive or force flags + - pattern: '\brm\s+--recursive' + reason: rm with --recursive flag + - pattern: '\brm\s+--force' + reason: rm with --force flag + - pattern: '\bsudo\s+rm\b' + reason: sudo rm + - pattern: '\brmdir\s+--ignore-fail-on-non-empty' + reason: rmdir ignore-fail + - pattern: '\bchmod\s+(-[^\s]+\s+)*777\b' + reason: chmod 777 (world writable) + - pattern: '\bchmod\s+-[Rr].*777' + reason: recursive chmod 777 + - pattern: '\bchown\s+-[Rr].*\broot\b' + reason: recursive chown to root + - pattern: '\bgit\s+reset\s+--hard\b' + reason: git reset --hard (use --soft or stash) + - pattern: '\bgit\s+clean\s+(-[^\s]*)*-[fd]' + reason: git clean with force/directory flags + - pattern: '\bgit\s+push\s+.*--force(?!-with-lease)' + reason: git push --force (use --force-with-lease) + - pattern: '\bgit\s+push\s+(-[^\s]*)*-f\b' + reason: git push -f (use --force-with-lease) + - pattern: '\bgit\s+stash\s+clear\b' + reason: git stash clear (deletes ALL stashes) + - pattern: '\bgit\s+reflog\s+expire\b' + reason: git reflog expire (destroys recovery mechanism) + - pattern: '\bgit\s+gc\s+.*--prune=now' + reason: git gc --prune=now (can lose dangling commits) + - pattern: '\bgit\s+filter-branch\b' + reason: git filter-branch (rewrites entire history) + - pattern: '\bgit\s+checkout\s+--\s*\.' + reason: Discards all uncommitted changes + ask: true + - pattern: '\bgit\s+restore\s+\.' + reason: Discards all uncommitted changes + ask: true + - pattern: '\bgit\s+stash\s+drop\b' + reason: Permanently deletes a stash + ask: true + - pattern: '\bgit\s+branch\s+(-[^\s]*)*-D' + reason: Force deletes branch (even if unmerged) + ask: true + - pattern: '\bgit\s+push\s+\S+\s+--delete\b' + reason: Deletes remote branch + ask: true + - pattern: '\bgit\s+push\s+\S+\s+:\S+' + reason: Deletes remote branch (old syntax) + ask: true + - pattern: '\bmkfs\.' + reason: filesystem format command + - pattern: '\bdd\s+.*of=/dev/' + reason: dd writing to device + - pattern: '\bkill\s+-9\s+-1\b' + reason: kill all processes + - pattern: '\bkillall\s+-9\b' + reason: killall -9 + - pattern: '\bpkill\s+-9\b' + reason: pkill -9 + - pattern: '\bhistory\s+-c\b' + reason: clearing shell history + - pattern: '\baws\s+s3\s+rm\s+.*--recursive' + reason: aws s3 rm --recursive (deletes all objects) + - pattern: '\baws\s+s3\s+rb\s+.*--force' + reason: aws s3 rb --force (force removes bucket) + - pattern: '\baws\s+ec2\s+terminate-instances\b' + reason: aws ec2 terminate-instances + - pattern: '\baws\s+rds\s+delete-db-instance\b' + reason: aws rds delete-db-instance + - pattern: '\baws\s+cloudformation\s+delete-stack\b' + reason: aws cloudformation delete-stack (deletes infrastructure) + - pattern: '\baws\s+dynamodb\s+delete-table\b' + reason: aws dynamodb delete-table + - pattern: '\baws\s+eks\s+delete-cluster\b' + reason: aws eks delete-cluster + - pattern: '\baws\s+lambda\s+delete-function\b' + reason: aws lambda delete-function + - pattern: '\baws\s+iam\s+delete-role\b' + reason: aws iam delete-role + - pattern: '\baws\s+iam\s+delete-user\b' + reason: aws iam delete-user + - pattern: '\bgcloud\s+projects\s+delete\b' + reason: gcloud projects delete (DELETES ENTIRE PROJECT) + - pattern: '\bgcloud\s+compute\s+instances\s+delete\b' + reason: gcloud compute instances delete + - pattern: '\bgcloud\s+sql\s+instances\s+delete\b' + reason: gcloud sql instances delete + - pattern: '\bgcloud\s+container\s+clusters\s+delete\b' + reason: gcloud container clusters delete (GKE) + - pattern: '\bgcloud\s+storage\s+rm\s+.*-r' + reason: gcloud storage rm -r (recursive delete) + - pattern: '\bgcloud\s+functions\s+delete\b' + reason: gcloud functions delete + - pattern: '\bgcloud\s+iam\s+service-accounts\s+delete\b' + reason: gcloud iam service-accounts delete + - pattern: '\bgcloud\s+run\s+services\s+delete\b' + reason: gcloud run services delete (deletes Cloud Run service) + - pattern: '\bgcloud\s+run\s+jobs\s+delete\b' + reason: gcloud run jobs delete (deletes Cloud Run job) + - pattern: '\bgcloud\s+services\s+disable\b' + reason: gcloud services disable (disables GCP APIs) + - pattern: '\bgcloud\s+iam\s+roles\s+delete\b' + reason: gcloud iam roles delete (deletes IAM role) + - pattern: '\bgcloud\s+iam\s+policies\b' + reason: gcloud iam policies (modifies IAM policies) + ask: true + - pattern: '\bfirebase\s+projects:delete\b' + reason: firebase projects:delete (deletes entire project) + - pattern: '\bfirebase\s+firestore:delete\s+.*--all-collections' + reason: firebase firestore:delete --all-collections (wipes all data) + - pattern: '\bfirebase\s+database:remove\b' + reason: firebase database:remove (wipes Realtime DB) + - pattern: '\bfirebase\s+hosting:disable\b' + reason: firebase hosting:disable + - pattern: '\bfirebase\s+functions:delete\b' + reason: firebase functions:delete + - pattern: '\bvercel\s+remove\s+.*--yes' + reason: vercel remove --yes (removes deployment) + - pattern: '\bvercel\s+projects\s+rm\b' + reason: vercel projects rm (deletes project) + - pattern: '\bvercel\s+env\s+rm\b' + reason: vercel env rm (removes env variables) + - pattern: '\bvercel\s+rm\b' + reason: vercel rm (removes deployment) + - pattern: '\bvercel\s+remove\b' + reason: vercel remove (removes deployment) + - pattern: '\bvercel\s+domains\s+rm\b' + reason: vercel domains rm (removes custom domain) + - pattern: '\bnetlify\s+sites:delete\b' + reason: netlify sites:delete (deletes entire site) + - pattern: '\bnetlify\s+functions:delete\b' + reason: netlify functions:delete + - pattern: '\bwrangler\s+delete\b' + reason: wrangler delete (deletes Worker) + - pattern: '\bwrangler\s+r2\s+bucket\s+delete\b' + reason: wrangler r2 bucket delete + - pattern: '\bwrangler\s+kv:namespace\s+delete\b' + reason: wrangler kv:namespace delete + - pattern: '\bwrangler\s+d1\s+delete\b' + reason: wrangler d1 delete (deletes database) + - pattern: '\bwrangler\s+queues\s+delete\b' + reason: wrangler queues delete + - pattern: 'DELETE\s+FROM\s+\w+\s*;' + reason: DELETE without WHERE clause (will delete ALL rows) + - pattern: 'DELETE\s+\*\s+FROM' + reason: DELETE * (will delete ALL rows) + - pattern: '\bTRUNCATE\s+TABLE\b' + reason: TRUNCATE TABLE (will delete ALL rows) + - pattern: '\bDROP\s+TABLE\b' + reason: DROP TABLE + - pattern: '\bDROP\s+DATABASE\b' + reason: DROP DATABASE + - pattern: '\bDROP\s+SCHEMA\b' + reason: DROP SCHEMA + - pattern: '\bDELETE\s+FROM\s+\w+\s+WHERE\b.*\bid\s*=' + reason: SQL DELETE with specific ID + ask: true + +zeroAccessPaths: + - ".env" + - ".env.local" + - ".env.development" + - ".env.production" + - ".env.staging" + - ".env.test" + - ".env.*.local" + - "*.env" + - "~/.ssh/" + - "~/.gnupg/" + - "~/.aws/" + - "~/.config/gcloud/" + - "*-credentials.json" + - "*serviceAccount*.json" + - "*service-account*.json" + - "~/.azure/" + - "~/.kube/" + - "kubeconfig" + - "*-secret.yaml" + - "secrets.yaml" + - "~/.docker/" + - "*.pem" + - "*.key" + - "*.p12" + - "*.pfx" + - "*.tfstate" + - "*.tfstate.backup" + - ".terraform/" + - ".vercel/" + - ".netlify/" + - "firebase-adminsdk*.json" + - "serviceAccountKey.json" + - ".supabase/" + - "~/.netrc" + - "~/.npmrc" + - "~/.pypirc" + - "~/.git-credentials" + - ".git-credentials" + - "dump.sql" + - "backup.sql" + - "*.dump" + +readOnlyPaths: + - /etc/ + - /usr/ + - /bin/ + - /sbin/ + - /boot/ + - /root/ + - ~/.bash_history + - ~/.zsh_history + - ~/.node_repl_history + - ~/.bashrc + - ~/.zshrc + - ~/.profile + - ~/.bash_profile + - "package-lock.json" + - "yarn.lock" + - "pnpm-lock.yaml" + - "Gemfile.lock" + - "poetry.lock" + - "Pipfile.lock" + - "composer.lock" + - "Cargo.lock" + - "go.sum" + - "flake.lock" + - "bun.lockb" + - "uv.lock" + - "npm-shrinkwrap.json" + - "*.lock" + - "*.lockb" + - "*.min.js" + - "*.min.css" + - "*.bundle.js" + - "*.chunk.js" + - dist/ + - build/ + - .next/ + - .nuxt/ + - .output/ + - node_modules/ + - __pycache__/ + - .venv/ + - venv/ + - target/ + +noDeletePaths: + - ~/.claude/ + - CLAUDE.md + - "LICENSE" + - "LICENSE.*" + - "COPYING" + - "COPYING.*" + - "NOTICE" + - "PATENTS" + - "README.md" + - "README.*" + - "CONTRIBUTING.md" + - "CHANGELOG.md" + - "CODE_OF_CONDUCT.md" + - "SECURITY.md" + - .git/ + - .gitignore + - .gitattributes + - .gitmodules + - .github/ + - .gitlab-ci.yml + - .circleci/ + - Jenkinsfile + - .travis.yml + - azure-pipelines.yml + - Dockerfile + - "Dockerfile.*" + - docker-compose.yml + - "docker-compose.*.yml" + - .dockerignore diff --git a/.pi/settings.json b/.pi/settings.json new file mode 100644 index 0000000..b6bdc35 --- /dev/null +++ b/.pi/settings.json @@ -0,0 +1,6 @@ +{ + "theme": "synthwave", + "prompts": [ + "../.claude/commands" + ] +} \ No newline at end of file diff --git a/.pi/skills/bowser.md b/.pi/skills/bowser.md new file mode 100644 index 0000000..ab42c1d --- /dev/null +++ b/.pi/skills/bowser.md @@ -0,0 +1,114 @@ +--- +name: bowser +description: Headless browser automation using Playwright CLI. Use when you need headless browsing, parallel browser sessions, UI testing, screenshots, web scraping, or browser automation that can run in the background. Keywords - playwright, headless, browser, test, screenshot, scrape, parallel. +allowed-tools: Bash +--- + +# Playwright Bowser + +## Purpose + +Automate browsers using `playwright-cli` — a token-efficient CLI for Playwright. Runs headless by default, supports parallel sessions via named sessions (`-s=`), and doesn't load tool schemas into context. + +## Key Details + +- **Headless by default** — pass `--headed` to `open` to see the browser +- **Parallel sessions** — use `-s=` to run multiple independent browser instances +- **Persistent profiles** — cookies and storage state preserved between calls +- **Token-efficient** — CLI-based, no accessibility trees or tool schemas in context +- **Vision mode** (opt-in) — set `PLAYWRIGHT_MCP_CAPS=vision` to receive screenshots as image responses in context instead of just saving to disk + +## Sessions + +**Always use a named session.** Derive a short, descriptive kebab-case name from the user's prompt. This gives each task a persistent browser profile (cookies, localStorage, history) that accumulates across calls. + +```bash +# Derive session name from prompt context: +# "test the checkout flow on mystore.com" → -s=mystore-checkout +# "scrape pricing from competitor.com" → -s=competitor-pricing +# "UI test the login page" → -s=login-ui-test + +playwright-cli -s=mystore-checkout open https://mystore.com --persistent +playwright-cli -s=mystore-checkout snapshot +playwright-cli -s=mystore-checkout click e12 +``` + +Managing sessions: +```bash +playwright-cli list # list all sessions +playwright-cli close-all # close all sessions +playwright-cli -s= close # close specific session +playwright-cli -s= delete-data # wipe session profile +``` + +## Quick Reference + +``` +Core: open [url], goto , click , fill , type , snapshot, screenshot [ref], close +Navigate: go-back, go-forward, reload +Keyboard: press , keydown , keyup +Mouse: mousemove , mousedown, mouseup, mousewheel +Tabs: tab-list, tab-new [url], tab-close [index], tab-select +Save: screenshot [ref], pdf, screenshot --filename=f +Storage: state-save, state-load, cookie-*, localstorage-*, sessionstorage-* +Network: route , route-list, unroute, network +DevTools: console, run-code , tracing-start/stop, video-start/stop +Sessions: -s= , list, close-all, kill-all +Config: open --headed, open --browser=chrome, resize +``` + +## Workflow + +1. Derive a session name from the user's prompt and open with `--persistent` to preserve cookies/state. Always set the viewport via env var at launch: +```bash +PLAYWRIGHT_MCP_VIEWPORT_SIZE=1440x900 playwright-cli -s= open --persistent +# or headed: +PLAYWRIGHT_MCP_VIEWPORT_SIZE=1440x900 playwright-cli -s= open --persistent --headed +# or with vision (screenshots returned as image responses in context): +PLAYWRIGHT_MCP_VIEWPORT_SIZE=1440x900 PLAYWRIGHT_MCP_CAPS=vision playwright-cli -s= open --persistent +``` + +3. Get element references via snapshot: +```bash +playwright-cli snapshot +``` + +4. Interact using refs from snapshot: +```bash +playwright-cli click +playwright-cli fill "text" +playwright-cli type "text" +playwright-cli press Enter +``` + +5. Capture results: +```bash +playwright-cli screenshot +playwright-cli screenshot --filename=output.png +``` + +6. **Always close the session when done.** This is not optional — close the named session after finishing your task: +```bash +playwright-cli -s= close +``` + +## Configuration + +If a `playwright-cli.json` exists in the working directory, use it automatically. If the user provides a path to a config file, use `--config path/to/config.json`. Otherwise, skip configuration — the env var and CLI defaults are sufficient. + +```json +{ + "browser": { + "browserName": "chromium", + "launchOptions": { "headless": true }, + "contextOptions": { "viewport": { "width": 1440, "height": 900 } } + }, + "outputDir": "./screenshots" +} +``` + +## Full Help + +Run `playwright-cli --help` or `playwright-cli --help ` for detailed command usage. + +See [docs/playwright-cli.md](docs/playwright-cli.md) for full documentation. diff --git a/.pi/themes/catppuccin-mocha.json b/.pi/themes/catppuccin-mocha.json new file mode 100644 index 0000000..27819b3 --- /dev/null +++ b/.pi/themes/catppuccin-mocha.json @@ -0,0 +1,86 @@ +{ + "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json", + "name": "catppuccin-mocha", + "vars": { + "bg": "#1e1e2e", + "bgDark": "#181825", + "bgDeep": "#13131e", + "surface": "#2a2a3c", + "selection": "#34344a", + "bgRed": "#2e1420", + "bgGreen": "#142218", + "bgPeach": "#2e2010", + "bgBlue": "#141e38", + "bgMauve": "#261840", + "bgTeal": "#122830", + "comment": "#d5bcff", + "fg": "#ffffff", + "fgSoft": "#bbbbbb", + "red": "#ff7eb3", + "maroon": "#ffa0b8", + "peach": "#ffb370", + "yellow": "#ffe585", + "green": "#7af5a0", + "teal": "#60f0d8", + "sky": "#6ae4ff", + "sapphire": "#5cceff", + "blue": "#7db8ff", + "lavender": "#bfb8ff", + "mauve": "#d9a0ff", + "flamingo": "#ffc4c4", + "pink": "#ffb0e0" + }, + "colors": { + "accent": "mauve", + "border": "selection", + "borderAccent": "mauve", + "borderMuted": "surface", + "success": "green", + "error": "red", + "warning": "yellow", + "muted": "comment", + "dim": "comment", + "text": "fg", + "thinkingText": "teal", + "selectedBg": "bgMauve", + "userMessageBg": "bgBlue", + "userMessageText": "fg", + "customMessageBg": "bgTeal", + "customMessageText": "fg", + "customMessageLabel": "teal", + "toolPendingBg": "bgPeach", + "toolSuccessBg": "bgGreen", + "toolErrorBg": "bgRed", + "toolTitle": "peach", + "toolOutput": "fgSoft", + "mdHeading": "peach", + "mdLink": "blue", + "mdLinkUrl": "comment", + "mdCode": "sky", + "mdCodeBlock": "fgSoft", + "mdCodeBlockBorder": "surface", + "mdQuote": "green", + "mdQuoteBorder": "surface", + "mdHr": "surface", + "mdListBullet": "mauve", + "toolDiffAdded": "green", + "toolDiffRemoved": "red", + "toolDiffContext": "comment", + "syntaxComment": "comment", + "syntaxKeyword": "mauve", + "syntaxFunction": "blue", + "syntaxVariable": "pink", + "syntaxString": "green", + "syntaxNumber": "peach", + "syntaxType": "sky", + "syntaxOperator": "lavender", + "syntaxPunctuation": "fgSoft", + "thinkingOff": "surface", + "thinkingMinimal": "comment", + "thinkingLow": "blue", + "thinkingMedium": "sky", + "thinkingHigh": "mauve", + "thinkingXhigh": "red", + "bashMode": "yellow" + } +} diff --git a/.pi/themes/cyberpunk.json b/.pi/themes/cyberpunk.json new file mode 100644 index 0000000..09ad7df --- /dev/null +++ b/.pi/themes/cyberpunk.json @@ -0,0 +1,81 @@ +{ + "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json", + "name": "cyberpunk", + "vars": { + "bg": "#0a0a14", + "bgDark": "#06060e", + "bgDeep": "#040410", + "surface": "#12122a", + "selection": "#1a1a38", + "bgRed": "#2a0a12", + "bgOrange": "#2a1408", + "bgSky": "#081a30", + "bgCyan": "#0a2228", + "bgWarm": "#220a30", + "bgPink": "#2a0a22", + "fg": "#ffffff", + "fgSoft": "#bbbbbb", + "comment": "#ffe600", + "yellow": "#ffe600", + "cyan": "#00e5ff", + "magenta": "#ff00aa", + "red": "#ff1744", + "green": "#00e676", + "purple": "#aa00ff", + "blue": "#2979ff", + "orange": "#ff6d00" + }, + "colors": { + "accent": "cyan", + "border": "magenta", + "borderAccent": "yellow", + "borderMuted": "surface", + "success": "green", + "error": "red", + "warning": "orange", + "muted": "comment", + "dim": "comment", + "text": "fg", + "thinkingText": "green", + "selectedBg": "bgPink", + "userMessageBg": "bgWarm", + "userMessageText": "fg", + "customMessageBg": "bgCyan", + "customMessageText": "fg", + "customMessageLabel": "cyan", + "toolPendingBg": "bgOrange", + "toolSuccessBg": "bgSky", + "toolErrorBg": "bgRed", + "toolTitle": "yellow", + "toolOutput": "fgSoft", + "mdHeading": "magenta", + "mdLink": "cyan", + "mdLinkUrl": "comment", + "mdCode": "green", + "mdCodeBlock": "fgSoft", + "mdCodeBlockBorder": "surface", + "mdQuote": "purple", + "mdQuoteBorder": "surface", + "mdHr": "surface", + "mdListBullet": "yellow", + "toolDiffAdded": "green", + "toolDiffRemoved": "red", + "toolDiffContext": "comment", + "syntaxComment": "comment", + "syntaxKeyword": "magenta", + "syntaxFunction": "cyan", + "syntaxVariable": "yellow", + "syntaxString": "green", + "syntaxNumber": "purple", + "syntaxType": "blue", + "syntaxOperator": "magenta", + "syntaxPunctuation": "fgSoft", + "thinkingOff": "surface", + "thinkingMinimal": "comment", + "thinkingLow": "blue", + "thinkingMedium": "purple", + "thinkingHigh": "cyan", + "thinkingXhigh": "magenta", + "bashMode": "orange" + } +} diff --git a/.pi/themes/dracula.json b/.pi/themes/dracula.json new file mode 100644 index 0000000..d42a72c --- /dev/null +++ b/.pi/themes/dracula.json @@ -0,0 +1,81 @@ +{ + "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json", + "name": "dracula", + "vars": { + "bg": "#1a1b26", + "bgDark": "#161722", + "bgDeep": "#141520", + "surface": "#252738", + "selection": "#2c2e44", + "bgRed": "#2e1220", + "bgOrange": "#2e1c12", + "bgGreen": "#122e1a", + "bgCyan": "#122a2e", + "bgPurple": "#261536", + "bgPink": "#2e1228", + "fg": "#ffffff", + "fgSoft": "#bbbbbb", + "comment": "#f8fcc4", + "cyan": "#8be9fd", + "green": "#50fa7b", + "orange": "#ffb86c", + "pink": "#ff79c6", + "purple": "#bd93f9", + "red": "#ff5555", + "yellow": "#f1fa8c", + "blue": "#6296e4" + }, + "colors": { + "accent": "purple", + "border": "pink", + "borderAccent": "purple", + "borderMuted": "surface", + "success": "green", + "error": "red", + "warning": "orange", + "muted": "comment", + "dim": "comment", + "text": "fg", + "thinkingText": "cyan", + "selectedBg": "bgPurple", + "userMessageBg": "bgPink", + "userMessageText": "fg", + "customMessageBg": "bgCyan", + "customMessageText": "fg", + "customMessageLabel": "cyan", + "toolPendingBg": "bgOrange", + "toolSuccessBg": "bgGreen", + "toolErrorBg": "bgRed", + "toolTitle": "pink", + "toolOutput": "fgSoft", + "mdHeading": "pink", + "mdLink": "cyan", + "mdLinkUrl": "comment", + "mdCode": "green", + "mdCodeBlock": "fgSoft", + "mdCodeBlockBorder": "surface", + "mdQuote": "purple", + "mdQuoteBorder": "surface", + "mdHr": "surface", + "mdListBullet": "pink", + "toolDiffAdded": "green", + "toolDiffRemoved": "red", + "toolDiffContext": "comment", + "syntaxComment": "comment", + "syntaxKeyword": "pink", + "syntaxFunction": "green", + "syntaxVariable": "fg", + "syntaxString": "yellow", + "syntaxNumber": "purple", + "syntaxType": "cyan", + "syntaxOperator": "pink", + "syntaxPunctuation": "fgSoft", + "thinkingOff": "surface", + "thinkingMinimal": "comment", + "thinkingLow": "blue", + "thinkingMedium": "purple", + "thinkingHigh": "cyan", + "thinkingXhigh": "pink", + "bashMode": "orange" + } +} diff --git a/.pi/themes/everforest.json b/.pi/themes/everforest.json new file mode 100644 index 0000000..3131378 --- /dev/null +++ b/.pi/themes/everforest.json @@ -0,0 +1,82 @@ +{ + "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json", + "name": "everforest", + "vars": { + "bg": "#191f1d", + "bgDark": "#141a18", + "bg1": "#1e2522", + "bg2": "#222a28", + "surface": "#2c3532", + "selection": "#323e3a", + "bgRed": "#301718", + "bgOrange": "#302217", + "bgSky": "#192b34", + "bgCyan": "#172b26", + "bgWarm": "#351d29", + "bgPink": "#311c31", + "fg": "#ffffff", + "fgSoft": "#bbbbbb", + "comment": "#e7f4cd", + "red": "#eb7073", + "orange": "#f1a27e", + "yellow": "#eed096", + "green": "#bde481", + "aqua": "#78e292", + "teal": "#52e0bd", + "blue": "#78c8e2", + "purple": "#e689b5" + }, + "colors": { + "accent": "green", + "border": "aqua", + "borderAccent": "green", + "borderMuted": "surface", + "success": "green", + "error": "red", + "warning": "orange", + "muted": "comment", + "dim": "comment", + "text": "fg", + "thinkingText": "teal", + "selectedBg": "bgCyan", + "userMessageBg": "bgWarm", + "userMessageText": "fg", + "customMessageBg": "bgSky", + "customMessageText": "fg", + "customMessageLabel": "aqua", + "toolPendingBg": "bgOrange", + "toolSuccessBg": "bgCyan", + "toolErrorBg": "bgRed", + "toolTitle": "green", + "toolOutput": "fgSoft", + "mdHeading": "yellow", + "mdLink": "blue", + "mdLinkUrl": "comment", + "mdCode": "aqua", + "mdCodeBlock": "fgSoft", + "mdCodeBlockBorder": "surface", + "mdQuote": "teal", + "mdQuoteBorder": "surface", + "mdHr": "surface", + "mdListBullet": "green", + "toolDiffAdded": "green", + "toolDiffRemoved": "red", + "toolDiffContext": "comment", + "syntaxComment": "comment", + "syntaxKeyword": "red", + "syntaxFunction": "green", + "syntaxVariable": "blue", + "syntaxString": "yellow", + "syntaxNumber": "purple", + "syntaxType": "aqua", + "syntaxOperator": "orange", + "syntaxPunctuation": "fgSoft", + "thinkingOff": "surface", + "thinkingMinimal": "comment", + "thinkingLow": "blue", + "thinkingMedium": "teal", + "thinkingHigh": "green", + "thinkingXhigh": "red", + "bashMode": "orange" + } +} diff --git a/.pi/themes/gruvbox.json b/.pi/themes/gruvbox.json new file mode 100644 index 0000000..dbed3aa --- /dev/null +++ b/.pi/themes/gruvbox.json @@ -0,0 +1,80 @@ +{ + "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json", + "name": "gruvbox", + "vars": { + "bg": "#221f1c", + "bgDark": "#1c1a17", + "bgDeep": "#171412", + "surface": "#322d29", + "selection": "#3f3731", + "bgRed": "#341714", + "bgOrange": "#322215", + "bgSky": "#152432", + "bgCyan": "#142924", + "bgWarm": "#322b15", + "bgPink": "#321524", + "comment": "#fcebc5", + "fg": "#ffffff", + "fgSoft": "#bbbbbb", + "red": "#fb4b37", + "green": "#ebed5e", + "yellow": "#fcd783", + "blue": "#67a6e4", + "purple": "#ca74e7", + "aqua": "#81e4be", + "orange": "#fd953f" + }, + "colors": { + "accent": "orange", + "border": "yellow", + "borderAccent": "orange", + "borderMuted": "surface", + "success": "green", + "error": "red", + "warning": "yellow", + "muted": "comment", + "dim": "comment", + "text": "fg", + "thinkingText": "aqua", + "selectedBg": "bgWarm", + "userMessageBg": "bgOrange", + "userMessageText": "fg", + "customMessageBg": "bgCyan", + "customMessageText": "fg", + "customMessageLabel": "aqua", + "toolPendingBg": "bgSky", + "toolSuccessBg": "bgCyan", + "toolErrorBg": "bgRed", + "toolTitle": "orange", + "toolOutput": "fgSoft", + "mdHeading": "yellow", + "mdLink": "aqua", + "mdLinkUrl": "comment", + "mdCode": "green", + "mdCodeBlock": "fgSoft", + "mdCodeBlockBorder": "surface", + "mdQuote": "blue", + "mdQuoteBorder": "surface", + "mdHr": "surface", + "mdListBullet": "orange", + "toolDiffAdded": "green", + "toolDiffRemoved": "red", + "toolDiffContext": "comment", + "syntaxComment": "comment", + "syntaxKeyword": "red", + "syntaxFunction": "aqua", + "syntaxVariable": "blue", + "syntaxString": "green", + "syntaxNumber": "purple", + "syntaxType": "yellow", + "syntaxOperator": "orange", + "syntaxPunctuation": "fgSoft", + "thinkingOff": "surface", + "thinkingMinimal": "comment", + "thinkingLow": "blue", + "thinkingMedium": "aqua", + "thinkingHigh": "yellow", + "thinkingXhigh": "red", + "bashMode": "orange" + } +} diff --git a/.pi/themes/midnight-ocean.json b/.pi/themes/midnight-ocean.json new file mode 100644 index 0000000..a00cc0f --- /dev/null +++ b/.pi/themes/midnight-ocean.json @@ -0,0 +1,76 @@ +{ + "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json", + "name": "midnight-ocean", + "vars": { + "deepBlue": "#0a192f", + "oceanBlue": "#0077be", + "teal": "#00ced1", + "cyan": "#4fd1ed", + "softWhite": "#e6f1ff", + "mutedBlue": "#233554", + "lightMutedBlue": "#a8b2d1", + "slate": "#8892b0", + "successGreen": "#64ffda", + "errorRed": "#ff5f56", + "warningAmber": "#ffd700", + "purple": "#c678dd" + }, + "colors": { + "accent": "oceanBlue", + "border": "mutedBlue", + "borderAccent": "teal", + "borderMuted": 236, + "success": "successGreen", + "error": "errorRed", + "warning": "warningAmber", + "muted": "slate", + "dim": 240, + "text": "softWhite", + "thinkingText": "teal", + "selectedBg": "#112240", + "userMessageBg": "#112240", + "userMessageText": "softWhite", + "customMessageBg": "#112240", + "customMessageText": "softWhite", + "customMessageLabel": "teal", + "toolPendingBg": "deepBlue", + "toolSuccessBg": "#0d2521", + "toolErrorBg": "#331616", + "toolTitle": "cyan", + "toolOutput": "lightMutedBlue", + "mdHeading": "teal", + "mdLink": "oceanBlue", + "mdLinkUrl": "slate", + "mdCode": "cyan", + "mdCodeBlock": "#011627", + "mdCodeBlockBorder": "mutedBlue", + "mdQuote": "slate", + "mdQuoteBorder": "mutedBlue", + "mdHr": "mutedBlue", + "mdListBullet": "teal", + "toolDiffAdded": "successGreen", + "toolDiffRemoved": "errorRed", + "toolDiffContext": "slate", + "syntaxComment": "slate", + "syntaxKeyword": "purple", + "syntaxFunction": "teal", + "syntaxVariable": "cyan", + "syntaxString": "successGreen", + "syntaxNumber": "warningAmber", + "syntaxType": "oceanBlue", + "syntaxOperator": "teal", + "syntaxPunctuation": "lightMutedBlue", + "thinkingOff": "mutedBlue", + "thinkingMinimal": "oceanBlue", + "thinkingLow": "teal", + "thinkingMedium": "cyan", + "thinkingHigh": "warningAmber", + "thinkingXhigh": "errorRed", + "bashMode": "warningAmber" + }, + "export": { + "pageBg": "#0a192f", + "cardBg": "#112240", + "infoBg": "#0077be" + } +} diff --git a/.pi/themes/nord.json b/.pi/themes/nord.json new file mode 100644 index 0000000..86f494c --- /dev/null +++ b/.pi/themes/nord.json @@ -0,0 +1,84 @@ +{ + "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json", + "name": "nord", + "vars": { + "bg": "#1a1d23", + "bgDark": "#15181d", + "bgDeep": "#111316", + "surface": "#272b34", + "selection": "#2f3541", + "bgRed": "#2e1818", + "bgOrange": "#31241a", + "bgSky": "#1c2835", + "bgCyan": "#192c2d", + "bgWarm": "#291b30", + "bgPink": "#2d1927", + "comment": "#ccebf4", + "fg": "#ffffff", + "fgSoft": "#bbbbbb", + "frost1": "#67e4e2", + "frost2": "#72cee8", + "frost3": "#67a5e4", + "frost4": "#5c97df", + "red": "#e85e6c", + "orange": "#ed7f5e", + "yellow": "#f5d189", + "green": "#92df6b", + "purple": "#e278e2", + "border": "#3e5974", + "dim": "#3d4c5b" + }, + "colors": { + "accent": "frost2", + "border": "border", + "borderAccent": "frost2", + "borderMuted": "surface", + "success": "green", + "error": "red", + "warning": "orange", + "muted": "comment", + "dim": "comment", + "text": "fg", + "thinkingText": "frost1", + "selectedBg": "bgPink", + "userMessageBg": "bgWarm", + "userMessageText": "fg", + "customMessageBg": "bgCyan", + "customMessageText": "fg", + "customMessageLabel": "frost2", + "toolPendingBg": "bgOrange", + "toolSuccessBg": "bgSky", + "toolErrorBg": "bgRed", + "toolTitle": "orange", + "toolOutput": "fgSoft", + "mdHeading": "yellow", + "mdLink": "frost2", + "mdLinkUrl": "comment", + "mdCode": "frost1", + "mdCodeBlock": "fgSoft", + "mdCodeBlockBorder": "surface", + "mdQuote": "purple", + "mdQuoteBorder": "surface", + "mdHr": "surface", + "mdListBullet": "frost2", + "toolDiffAdded": "green", + "toolDiffRemoved": "red", + "toolDiffContext": "comment", + "syntaxComment": "comment", + "syntaxKeyword": "frost3", + "syntaxFunction": "frost2", + "syntaxVariable": "fg", + "syntaxString": "green", + "syntaxNumber": "purple", + "syntaxType": "frost1", + "syntaxOperator": "frost3", + "syntaxPunctuation": "fgSoft", + "thinkingOff": "surface", + "thinkingMinimal": "dim", + "thinkingLow": "frost4", + "thinkingMedium": "frost3", + "thinkingHigh": "frost2", + "thinkingXhigh": "frost1", + "bashMode": "yellow" + } +} diff --git a/.pi/themes/ocean-breeze.json b/.pi/themes/ocean-breeze.json new file mode 100644 index 0000000..462d9f2 --- /dev/null +++ b/.pi/themes/ocean-breeze.json @@ -0,0 +1,83 @@ +{ + "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json", + "name": "ocean-breeze", + "vars": { + "bg": "#0d1b2a", + "bgDark": "#0a1520", + "bgDeep": "#081018", + "surface": "#152a3e", + "selection": "#1b3450", + "bgRed": "#2a1018", + "bgOrange": "#2a1e10", + "bgSky": "#0e2440", + "bgCyan": "#0c2a2e", + "bgWarm": "#2a1530", + "bgPink": "#2e1028", + "fg": "#ffffff", + "fgSoft": "#bbbbbb", + "comment": "#c2faf2", + "coral": "#ff6b6b", + "amber": "#ffd166", + "kelp": "#2eeab5", + "biolum": "#33fff7", + "foam": "#50b0e0", + "spray": "#7ec8e3", + "mist": "#a8d8ea", + "sand": "#ecf49a", + "purple": "#b48aef", + "pink": "#f772b9" + }, + "colors": { + "accent": "biolum", + "border": "foam", + "borderAccent": "biolum", + "borderMuted": "surface", + "success": "kelp", + "error": "coral", + "warning": "amber", + "muted": "comment", + "dim": "comment", + "text": "fg", + "thinkingText": "biolum", + "selectedBg": "selection", + "userMessageBg": "bgSky", + "userMessageText": "fg", + "customMessageBg": "bgCyan", + "customMessageText": "fg", + "customMessageLabel": "spray", + "toolPendingBg": "bgOrange", + "toolSuccessBg": "bgCyan", + "toolErrorBg": "bgRed", + "toolTitle": "spray", + "toolOutput": "fgSoft", + "mdHeading": "mist", + "mdLink": "biolum", + "mdLinkUrl": "comment", + "mdCode": "kelp", + "mdCodeBlock": "fgSoft", + "mdCodeBlockBorder": "surface", + "mdQuote": "purple", + "mdQuoteBorder": "surface", + "mdHr": "surface", + "mdListBullet": "spray", + "toolDiffAdded": "kelp", + "toolDiffRemoved": "coral", + "toolDiffContext": "comment", + "syntaxComment": "comment", + "syntaxKeyword": "coral", + "syntaxFunction": "biolum", + "syntaxVariable": "spray", + "syntaxString": "kelp", + "syntaxNumber": "amber", + "syntaxType": "purple", + "syntaxOperator": "foam", + "syntaxPunctuation": "fgSoft", + "thinkingOff": "surface", + "thinkingMinimal": "comment", + "thinkingLow": "foam", + "thinkingMedium": "spray", + "thinkingHigh": "biolum", + "thinkingXhigh": "pink", + "bashMode": "amber" + } +} diff --git a/.pi/themes/rose-pine.json b/.pi/themes/rose-pine.json new file mode 100644 index 0000000..fa7f211 --- /dev/null +++ b/.pi/themes/rose-pine.json @@ -0,0 +1,82 @@ +{ + "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json", + "name": "rose-pine", + "vars": { + "bg": "#1a1726", + "bgDark": "#161320", + "bgDeep": "#12101c", + "surface": "#242038", + "selection": "#2e2946", + "bgRed": "#2c1220", + "bgOrange": "#2a1c12", + "bgSky": "#122030", + "bgCyan": "#132a2e", + "bgWarm": "#2a1830", + "bgPink": "#301828", + "fg": "#ffffff", + "fgSoft": "#bbbbbb", + "comment": "#f0a8be", + "love": "#f47a9e", + "gold": "#f8cc85", + "rose": "#f0c4c4", + "pine": "#50b8d8", + "foam": "#a8e0ea", + "iris": "#d4a8ff", + "orchid": "#e088d0", + "ember": "#f09060", + "green": "#78e0a0" + }, + "colors": { + "accent": "iris", + "border": "orchid", + "borderAccent": "iris", + "borderMuted": "surface", + "success": "foam", + "error": "love", + "warning": "gold", + "muted": "comment", + "dim": "comment", + "text": "fg", + "thinkingText": "foam", + "selectedBg": "bgPink", + "userMessageBg": "bgWarm", + "userMessageText": "fg", + "customMessageBg": "bgCyan", + "customMessageText": "fg", + "customMessageLabel": "iris", + "toolPendingBg": "bgOrange", + "toolSuccessBg": "bgSky", + "toolErrorBg": "bgRed", + "toolTitle": "gold", + "toolOutput": "fgSoft", + "mdHeading": "love", + "mdLink": "foam", + "mdLinkUrl": "comment", + "mdCode": "gold", + "mdCodeBlock": "fgSoft", + "mdCodeBlockBorder": "surface", + "mdQuote": "rose", + "mdQuoteBorder": "surface", + "mdHr": "surface", + "mdListBullet": "iris", + "toolDiffAdded": "green", + "toolDiffRemoved": "love", + "toolDiffContext": "comment", + "syntaxComment": "comment", + "syntaxKeyword": "love", + "syntaxFunction": "foam", + "syntaxVariable": "fg", + "syntaxString": "gold", + "syntaxNumber": "iris", + "syntaxType": "pine", + "syntaxOperator": "orchid", + "syntaxPunctuation": "fgSoft", + "thinkingOff": "surface", + "thinkingMinimal": "comment", + "thinkingLow": "pine", + "thinkingMedium": "iris", + "thinkingHigh": "foam", + "thinkingXhigh": "love", + "bashMode": "ember" + } +} diff --git a/.pi/themes/synthwave.json b/.pi/themes/synthwave.json new file mode 100644 index 0000000..7f5657a --- /dev/null +++ b/.pi/themes/synthwave.json @@ -0,0 +1,82 @@ +{ + "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json", + "name": "synthwave", + "vars": { + "bg": "#262335", + "bgDark": "#241b2f", + "bgDeep": "#1e1d2d", + "surface": "#34294f", + "selection": "#463465", + "bgRed": "#3d1018", + "bgRedWarm": "#301510", + "bgOrange": "#2e1f10", + "bgSky": "#1a2e4a", + "bgCyan": "#152838", + "bgWarm": "#4a1e6a", + "bgPink": "#35153a", + "comment": "#fede5d", + "fg": "#ffffff", + "fgSoft": "#bbbbbb", + "red": "#fe4450", + "cyan": "#36f9f6", + "yellow": "#fede5d", + "pink": "#ff7edb", + "green": "#72f1b8", + "orange": "#ff8b39", + "purple": "#c792ea", + "blue": "#4d9de0" + }, + "colors": { + "accent": "cyan", + "border": "pink", + "borderAccent": "cyan", + "borderMuted": "surface", + "success": "green", + "error": "red", + "warning": "orange", + "muted": "comment", + "dim": "comment", + "text": "fg", + "thinkingText": "#4a9e6a", + "selectedBg": "bgPink", + "userMessageBg": "bgWarm", + "userMessageText": "fg", + "customMessageBg": "bgCyan", + "customMessageText": "fg", + "customMessageLabel": "cyan", + "toolPendingBg": "bgOrange", + "toolSuccessBg": "bgSky", + "toolErrorBg": "bgRed", + "toolTitle": "orange", + "toolOutput": "fgSoft", + "mdHeading": "yellow", + "mdLink": "cyan", + "mdLinkUrl": "comment", + "mdCode": "yellow", + "mdCodeBlock": "fgSoft", + "mdCodeBlockBorder": "surface", + "mdQuote": "purple", + "mdQuoteBorder": "surface", + "mdHr": "surface", + "mdListBullet": "pink", + "toolDiffAdded": "green", + "toolDiffRemoved": "red", + "toolDiffContext": "comment", + "syntaxComment": "comment", + "syntaxKeyword": "red", + "syntaxFunction": "cyan", + "syntaxVariable": "fg", + "syntaxString": "yellow", + "syntaxNumber": "pink", + "syntaxType": "green", + "syntaxOperator": "cyan", + "syntaxPunctuation": "fgSoft", + "thinkingOff": "surface", + "thinkingMinimal": "comment", + "thinkingLow": "blue", + "thinkingMedium": "purple", + "thinkingHigh": "cyan", + "thinkingXhigh": "pink", + "bashMode": "orange" + } +} diff --git a/.pi/themes/tokyo-night.json b/.pi/themes/tokyo-night.json new file mode 100644 index 0000000..1db95bf --- /dev/null +++ b/.pi/themes/tokyo-night.json @@ -0,0 +1,83 @@ +{ + "$schema": "https://raw.githubusercontent.com/badlogic/pi-mono/main/packages/coding-agent/src/modes/interactive/theme/theme-schema.json", + "name": "tokyo-night", + "vars": { + "bg": "#1a1b26", + "bgDark": "#141520", + "bg1": "#1e2030", + "bg2": "#252840", + "surface": "#2a2d48", + "selection": "#353860", + "bgRed": "#301420", + "bgOrange": "#2e1e14", + "bgSky": "#162040", + "bgCyan": "#142530", + "bgWarm": "#301848", + "bgPink": "#2d1430", + "comment": "#90e8ff", + "fg": "#ffffff", + "fgSoft": "#bbbbbb", + "blue": "#7eaaff", + "cyan": "#72dfff", + "magenta": "#c9a5ff", + "purple": "#b48ef5", + "green": "#a8e06a", + "red": "#ff7a94", + "orange": "#ffa55c", + "yellow": "#f0c060", + "teal": "#20d4b0" + }, + "colors": { + "accent": "blue", + "border": "purple", + "borderAccent": "cyan", + "borderMuted": "surface", + "success": "green", + "error": "red", + "warning": "orange", + "muted": "comment", + "dim": "comment", + "text": "fg", + "thinkingText": "teal", + "selectedBg": "bgPink", + "userMessageBg": "bgWarm", + "userMessageText": "fg", + "customMessageBg": "bgCyan", + "customMessageText": "fg", + "customMessageLabel": "cyan", + "toolPendingBg": "bgOrange", + "toolSuccessBg": "bgSky", + "toolErrorBg": "bgRed", + "toolTitle": "orange", + "toolOutput": "fgSoft", + "mdHeading": "yellow", + "mdLink": "cyan", + "mdLinkUrl": "comment", + "mdCode": "magenta", + "mdCodeBlock": "fgSoft", + "mdCodeBlockBorder": "surface", + "mdQuote": "green", + "mdQuoteBorder": "surface", + "mdHr": "surface", + "mdListBullet": "blue", + "toolDiffAdded": "green", + "toolDiffRemoved": "red", + "toolDiffContext": "comment", + "syntaxComment": "comment", + "syntaxKeyword": "magenta", + "syntaxFunction": "blue", + "syntaxVariable": "purple", + "syntaxString": "green", + "syntaxNumber": "orange", + "syntaxType": "cyan", + "syntaxOperator": "teal", + "syntaxPunctuation": "fgSoft", + "thinkingOff": "surface", + "thinkingMinimal": "comment", + "thinkingLow": "blue", + "thinkingMedium": "cyan", + "thinkingHigh": "magenta", + "thinkingXhigh": "red", + "bashMode": "yellow" + } +} diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..7f119f9 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,20 @@ +# Pi vs CC — Extension Playground + +Pi Coding Agent extension examples and experiments. + +## Tooling +- **Package manager**: `bun` (not npm/yarn/pnpm) +- **Task runner**: `just` (see justfile) +- **Extensions run via**: `pi -e extensions/.ts` + +## Project Structure +- `extensions/` — Pi extension source files (.ts) +- `specs/` — Feature specifications +- `.pi/agents/` — Agent definitions for agent-team extension +- `.pi/agent-sessions/` — Ephemeral session files (gitignored) + +## Conventions +- Extensions are standalone .ts files loaded by Pi's jiti runtime +- Available imports: `@mariozechner/pi-coding-agent`, `@mariozechner/pi-tui`, `@mariozechner/pi-ai`, `@sinclair/typebox`, plus any deps in package.json +- Register tools at the top level of the extension function (not inside event handlers) +- Use `isToolCallEventType()` for type-safe tool_call event narrowing diff --git a/COMPARISON.md b/COMPARISON.md new file mode 100644 index 0000000..98ff420 --- /dev/null +++ b/COMPARISON.md @@ -0,0 +1,243 @@ +# Claude Code vs Pi Agent — Feature Comparison + +> Pi v0.52.10 vs Claude Code (Feb 2026) + +--- + +## Design Philosophy + +| Dimension | Claude Code | Pi Agent | Winner | +| ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | +| Core Mantra | "Tool for every engineer" — batteries-included, accessible to all skill levels | "If I don't need it, it won't be built" — minimal, opinionated, built for one engineer's workflow | Both | +| Approach to Features | Ship everything built-in (sub-agents, teams, MCP, plan mode, todos, web search, notebooks, 10+ tools) | Ship the minimum (4 tools, ~200-token prompt). Everything else is opt-in via extensions or bash | Both | +| Safety Philosophy | Safe by default — deny-first permissions, 5 modes, filesystem sandbox, Haiku pre-screening of commands | YOLO by default — no permissions, no sandbox. "Security in coding agents is mostly theater; if it can write and run code, it's game over" | Both | +| System Prompt Trust Model | Extensive guardrails (~10K tokens) — behavioral rules, formatting instructions, safety constraints, tool usage examples | Trust the model (~200 tokens) — "frontier models have been RL-trained up the wazoo, they inherently understand what a coding agent is" | Both | +| Observability | Abstracted — sub-agents are black boxes, compaction happens silently, system prompt not user-visible by default | Full transparency — every token visible, every tool call inspectable, no hidden orchestration, session HTML export | Pi | +| Context Engineering | Managed for you — auto-compaction, sub-agents handle overflow, system decides what enters context | User-controlled — minimal prompt overhead, no hidden injections, "exactly controlling what goes into context yields better outputs" | Pi | +| Extensibility Model | Shell hooks (external processes) + MCP protocol + Skills (markdown prompts) — loosely coupled, config-driven | TypeScript in-process extensions — same runtime, access full session state, block/modify/transform any event | Both | +| Target Audience | Every engineer — beginner-friendly, enterprise-ready, guided workflows, progressive disclosure | Power users — engineers who want control, understand tradeoffs, willing to build their own workflows | Both | +| Multi-Model Stance | Claude-first — optimized for Claude family, gateway workaround for others | Model-agnostic from day one — 324 models, 20+ providers, cross-provider context handoff, "we live in a multi-model world" | Pi | +| Planning Approach | Built-in plan mode — structured explore → plan → code phases, read-only mode, dedicated sub-agents | No plan mode — "just tell the agent to think with you." Write plans to files for persistence, versioning, and cross-session reuse | Both | +| Complexity Budget | Complexity lives in the harness so you don't have to think about it — more magic, less wiring | Complexity lives in your hands — minimal harness, you decide what to add and when. "Three similar lines of code is better than a premature abstraction" | Both | + +--- + +## Cost & Licensing + +| Feature | Claude Code | Pi Agent | Winner | +| ---------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------ | +| Tool License | Proprietary | MIT (open source, fork/embed/self-host) | Pi | +| Subscription Cost | $20-200/mo required or Dedicated Anthropic API Keys | $0 (MIT, BYO API keys) | Pi | +| Cost Tracking | Available via /cost command, customizable via statusline configuration | Real-time $/token/cache display in footer per session and customizable via extensions | Both | +| Cost Optimization | 3 models at 3 price tiers (Opus > Sonnet > Haiku) — single provider | Mix cheap/expensive models per task across any provider, free tiers available | Pi | +| System Prompt Overhead | ~10,000+ tokens | ~200 tokens (more context for actual work) | Pi | + + +--- + +## Model & Provider Support + +| Feature | Claude Code | Pi Agent | Winner | +| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | +| Official Providers | 4 platforms (Anthropic API, AWS Bedrock, Google Vertex, Foundry) — all serving Claude models | 20+ native (Anthropic, OpenAI, Google, Groq, xAI, OpenRouter, Azure, Bedrock, Vertex, Mistral, MiniMax, Kimi, Cerebras, ZAI, HuggingFace, custom) | Pi | +| Non-Anthropic / Self-Hosted Models | Via ANTHROPIC_BASE_URL gateway — routes to any OpenAI-compatible backend (OpenRouter, LiteLLM, local TGI, vLLM). Functional but unofficial workaround | Native first-class support for all providers + local (Ollama, vLLM, LM Studio via models.json). No proxy needed | Pi | +| Built-in Models | ~6 aliases (opus, sonnet, haiku, opusplan, sonnet[1m], default) mapping to Claude family | 324 (confirmed via ModelRegistry) across all providers | Pi | +| Model Switching Mid-Session | Yes — `/model ` command, `--model` flag at startup, ANTHROPIC_MODEL env var | Yes — Ctrl+P cycle, Ctrl+L fuzzy selector, session.setModel() in SDK | Tie | +| OAuth/Subscription Login | Anthropic subscriptions (Pro, Max, Teams, Enterprise) | Claude Pro, ChatGPT Plus, GitHub Copilot, Gemini CLI, Antigravity — all via /login and API keys | Pi | +| Thinking/Effort Levels | 3 effort levels (low/medium/high) on Opus 4.6 via `/model` slider, env var, or settings | 5 unified levels (off/minimal/low/medium/high) across ALL thinking capable models, Shift+Tab to cycle | Pi | + +--- + +## Agent Harness + +| Feature | Claude Code | Pi Agent | Winner | +| ------------------------ | -------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | +| Source Code | Closed source (proprietary) | Open source (MIT license) | Pi | +| System Prompt Size | ~10,000+ tokens (extensive tool descriptions, behavioral rules, safety guardrails) | ~200 tokens (minimal — trusts frontier models to code without hand-holding) | Pi | +| Default Tools | 10+ (Read, Write, Edit, Bash, Glob, Grep, WebSearch, WebFetch, NotebookEdit, Task) | 4 (read, write, edit, bash) + 3 optional (grep, find, ls) | Both | +| Agent Architecture | Monorepo TypeScript CLI — single package with built-in tool execution, sub-agents, and team coordination | 4-package monorepo (pi-ai, pi-agent-core, pi-tui, pi-coding-agent) — modular separation of LLM abstraction, agent loop, TUI, and CLI | Both | +| Sub-Agent Support | Native Task tool — 7 parallel sub-agents, permission inheritance, typed agent roles (Explore, Plan, Bash, general-purpose) | None built-in, but available through extension that spawns separate pi processes in single/parallel/chain modes with different models per sub-agent | Claude Code | +| Agent Teams | Native team coordination (lead + workers, shared task lists, message passing, broadcast) | None built-in, but achievable through SDK orchestration scripts or RPC mode driving multiple pi processes | Claude Code | +| Default Permission Model | 5 modes (default, plan, acceptEdits, bypassPermissions, dontAsk) — deny-first with filesystem/network sandbox | None by default ("YOLO mode") — runs everything without asking. Permission-gate extension available but opt-in | Claude Code | +| Memory File | CLAUDE.md (project root, nested dirs, user-level) — auto-loaded, hierarchical | AGENTS.md — similar convention, compatible with ~/.claude/skills cross-tool standard | Tie | +| Cost Visibility | Available via /cost command, customizable via statusline configuration | Immediately visible in footer by default, further customizable via extensions and getSessionStats() API | Tie | +| Hooks System | Shell-command hooks (PreToolUse, PostToolUse, Stop, Notification) — external scripts, pass/fail | TypeScript extension events (20+ types) — in-process async handlers that block, modify, transform, access session state, render UI | Pi | +| Session Format | Linear conversation | JSONL tree with id/parentId (branching, forking, labels via /tree and /fork) | Pi | +| Extension State | No built-in state persistence for extensions | pi.appendEntry() persists custom data to session, survives restart | Pi | + +--- + +## Tools & Capabilities + +### Built-in Tools (Tool-by-Tool) + +| Tool | Claude Code | Pi Agent | Winner | +| ----------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | ----------- | +| Read | Built-in — reads files with optional offset/limit, images, PDFs, notebooks | Built-in (`read`) — reads files with optional range, auto-resizes images | Tie | +| Write | Built-in — creates or overwrites files | Built-in (`write`) — creates or overwrites files | Tie | +| Edit | Built-in — exact string replacement with replace_all option | Built-in (`edit`) — surgical find-and-replace, returns unified diff | Tie | +| Bash | Built-in — shell execution with timeout, background mode, description | Built-in (`bash`) — shell execution with streaming output and abort | Tie | +| Glob | Built-in — fast file pattern matching, sorted by modification time | Not built-in. Optional `find` tool available via `--tools` flag | Claude Code | +| Grep | Built-in — ripgrep-powered search with regex, context lines, output modes | Not built-in by default. Optional `grep` tool available via `--tools` flag | Tie | +| WebSearch | Built-in — web search with domain filtering, returns formatted results | Not built-in, customizable via extensions | Claude Code | +| WebFetch | Built-in — fetches URL content, converts HTML to markdown, AI processing | Not built-in, customizable via extensions | Claude Code | +| NotebookEdit | Built-in — Jupyter notebook cell editing (replace, insert, delete) | Not built-in, customizable via extensions | Claude Code | +| Task (Sub-agents) | Built-in — spawns typed sub-agents (Explore, Plan, Bash, general-purpose) with parallel execution | Not built-in, customizable via extensions. Subagent extension spawns separate pi processes | Claude Code | +| ls | Not a dedicated tool (use Bash or Glob) | Optional built-in (`ls`) via `--tools` flag | Tie | + +### Tool System Capabilities + +| Feature | Claude Code | Pi Agent | Winner | +| --------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------------- | ----------- | +| Tool Observability | Sub-agent tool calls opaque | Every tool call, token, and dollar visible | Pi | +| Custom Tools | Via MCP servers (external process, JSON-RPC) | pi.registerTool() in-process TypeScript, streaming results, custom rendering | Pi | +| Tool Override | Not possible | Register tool with same name to replace built-in (e.g., audited read) | Pi | +| MCP Support | Native first-class, lazy loading (95% context reduction), OAuth | Not built-in (by design, argues 7-14k token overhead); available via extensions | Claude Code | +| Tool Count Philosophy | More tools = more capable out of the box (10+) | Fewer tools = smaller system prompt (~1000 tokens), trusts frontier models | Both | + +--- + +## Hooks & Event System + +> Claude Code: **14 hook events**, 3 handler types (command, prompt, agent) — shell-based, JSON stdin/stdout +> Pi: **25 extension events** across 7 categories — in-process TypeScript with full API access + +### Architecture + +| Feature | Claude Code | Pi Agent | Winner | +| ------------------------ | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- | ------ | +| Hook Language | Shell commands (any language), LLM prompts, or agent subprocesses | TypeScript (in-process, zero-build via jiti) | Pi | +| Handler Types | 3: command (shell), prompt (LLM eval), agent (multi-turn subagent) | 1: async TypeScript handler with full session/UI access | Both | +| Hook Configuration | JSON in settings files (.claude/settings.json, managed policy, plugin hooks.json, skill/agent frontmatter) | TypeScript code in extension files | Both | +| Can Modify Tool Input | Yes — updatedInput in PreToolUse/PermissionRequest | Yes — return modified args from tool_call handler | Tie | +| Async/Background Hooks | Yes — async: true on command hooks (non-blocking, results delivered next turn) | Yes — handlers are async by default, can fire-and-forget | Tie | +| Inter-Hook Communication | No built-in | Yes — pi.events shared event bus between extensions | Pi | + +### Hook-by-Hook Mapping + +| Lifecycle Point | Claude Code Hook | Pi Extension Event(s) | Notes | +| ----------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| Session starts | `SessionStart` (matcher: startup/resume/clear/compact) | `session_start` | CC can persist env vars via CLAUDE_ENV_FILE. Both can inject context | +| User submits prompt | `UserPromptSubmit` — can block prompt, add context | `input` — can block, transform text, or handle entirely | Pi also distinguishes source: interactive/rpc/extension | +| Before tool executes | `PreToolUse` — allow/deny/ask, modify input | `tool_call` — block with reason, modify args, typed per-tool | Both can intercept and modify. Pi has typed narrowing via isToolCallEventType | +| Permission dialog shown | `PermissionRequest` — auto-allow/deny on behalf of user | N/A (Pi has no permission system by default) | CC-only — Pi runs YOLO by default, permission-gate is an extension | +| After tool succeeds | `PostToolUse` — feedback to Claude, modify MCP output | `tool_result` — modify results, log, transform output | Comparable | +| After tool fails | `PostToolUseFailure` — add context about the failure | `tool_result` (isError flag) | CC has a dedicated event; Pi uses same event with error flag | +| Tool execution streaming | N/A | `tool_execution_start`, `tool_execution_update`, `tool_execution_end` | Pi-only — real-time streaming of tool execution progress | +| Bash spawn intercept | N/A | BashSpawnHook — modify command, cwd, env before bash executes | Pi-only — intercepts at process spawn level | +| User runs bash directly | N/A | `user_bash` — fired when user types shell commands (!! prefix) | Pi-only | +| Notification sent | `Notification` (matcher: permission_prompt/idle_prompt/auth_success/elicitation_dialog) | N/A (use ctx.ui.notify in any handler) | CC-only as a hook event | +| Subagent spawned | `SubagentStart` (matcher: agent type) | N/A (Pi has no built-in subagents) | CC-only | +| Subagent finished | `SubagentStop` — can prevent subagent from stopping | N/A | CC-only | +| Agent stops responding | `Stop` — can force Claude to continue | N/A (use turn_end or agent_end to react) | CC can block stopping; Pi can't but can queue follow-ups | +| Teammate goes idle | `TeammateIdle` — can force teammate to continue | N/A (Pi has no built-in teams) | CC-only | +| Task marked complete | `TaskCompleted` — can block completion | N/A (Pi has no built-in task system) | CC-only | +| Before compaction | `PreCompact` (matcher: manual/auto) | `session_before_compact` — can provide custom compaction entirely | Pi can fully replace compaction logic | +| After compaction | N/A | `session_compact` | Pi-only | +| Before session branching | N/A | `session_before_fork`, `session_before_switch`, `session_before_tree` | Pi-only — session tree architecture | +| After session branching | N/A | `session_fork`, `session_switch`, `session_tree` | Pi-only | +| Session ends | `SessionEnd` (matcher: clear/logout/exit/other) — no decision control | `session_shutdown` | Both fire on exit; neither can block | +| Before agent processes prompt | N/A | `before_agent_start` — can modify system prompt, images, prompt text | Pi-only — dynamic system prompt per-turn | +| Agent turn lifecycle | N/A | `agent_start`, `agent_end`, `turn_start`, `turn_end` | Pi-only — granular agent lifecycle | +| Message streaming | N/A | `message_start`, `message_update`, `message_end` | Pi-only — token-by-token streaming access | +| Model changed | N/A | `model_select` (source: set/cycle/restore) | Pi-only — react to model switches | +| Context window access | N/A | `context` — deep copy of messages, can filter/prune | Pi-only — direct context manipulation | + +--- + +## Extensions & Customization + +| Feature | Claude Code | Pi Agent | Winner | +| ------------------------------ | ------------------------------------------ | ------------------------------------------------------------------------------- | ------ | +| Extension Language | Shell scripts (hooks), Markdown (commands) | TypeScript (zero-build via jiti) | Pi | +| Slash Commands | .claude/commands/*.md prompt templates | Prompt templates + /skill:name + extension-registered commands | Tie | +| Package Distribution | Plugin marketplace — `/plugin` commands, git-based sharing | pi install npm:/git:/local, pi config TUI, npm gallery | Both | +| Skills (Agent Skills Standard) | Yes (auto-invocation) | Yes (progressive disclosure, cross-tool compat with ~/.claude/skills) | Tie | +| Themes | Minimally customizable | 51 color tokens, hot-reload, dark/light built-in, community themes via packages | Pi | +| Custom Keyboard Shortcuts | ~/.claude/keybindings.json | pi.registerShortcut() in extensions | Tie | +| Custom CLI Flags | Not possible | pi.registerFlag() adds custom flags to CLI | Pi | +| Custom Providers | Not possible | pi.registerProvider() with OAuth support | Pi | +| Custom Editors | Not possible | Modal editor (vim), emacs bindings, rainbow editor via extensions | Pi | + +--- + +## UI & Terminal + +| Feature | Claude Code | Pi Agent | Winner | +| --------------- | --------------------------------------- | ------------------------------------------------------------------------- | ------ | +| Custom Header | No | ctx.ui.setHeader() replaces logo/keybinding hints with custom component | Pi | +| Custom Footer | Configurable statusline (tokens, cost, model) | ctx.ui.setFooter() with git branch, token stats, cost tracking, anything | Pi | +| Status Line | Configurable statusline (tokens, cost, model) | ctx.ui.setStatus() with themed colors, turn tracking, custom data | Pi | +| Widgets | No | ctx.ui.setWidget() above/below editor with custom content | Pi | +| Overlays | No | Full overlay applications (Doom, Space Invaders, QA test overlays) | Pi | +| Dialogs | Basic permission prompts | ctx.ui.select(), confirm(), input(), editor() + custom rendering | Pi | +| Rendering | Standard terminal with known issues | Standard terminal with known issues | Both | +| Message Queuing | Supported — queue messages while agent works | Enter = steer (interrupt), Alt+Enter = follow-up (queue after completion) | Both | + +--- + +## Programmatic & SDK + +| Feature | Claude Code | Pi Agent | Winner | +| -------------------- | ------------------------------ | ----------------------------------------------------------------------------- | ------ | +| Non-Interactive Mode | claude --print | pi -p (+ stdin auto-activates) | Tie | +| JSON Streaming | --output-format stream-json | --mode json (JSONL events with full lifecycle) | Tie | +| RPC Mode | None | --mode rpc (26+ commands, bidirectional JSON protocol, any language) | Pi | +| Node.js SDK | @anthropic-ai/claude-agent-sdk | @mariozechner/pi-coding-agent (createAgentSession, full internal API) | Tie | +| Mid-Stream Control | ClaudeSDKClient.interrupt() — stop and redirect | steer() interrupts, followUp() queues messages while agent works | Pi | +| Session Stats API | Limited | getSessionStats() returns tokens (in/out/cache), cost, tool calls per session | Pi | +| HTML Export | /export — session to HTML | --export, /export, session.exportToHtml() | Both | +| SDK Examples | Docs-based | 12 official examples from minimal to full-control in package | Pi | + +--- + +## Multi-Agent & Orchestration + +| Feature | Claude Code | Pi Agent | Winner | +| ------------------------- | ---------------------------------------------------- | ------------------------------------------------------------------------------ | ----------- | +| Sub-Agents | Native Task tool, 7 parallel, permission inheritance | Subagent extension (single/parallel/chain modes), spawns separate pi processes | Claude Code | +| Agent Teams | Native team coordination (lead + workers) | No built-in equivalent; use orchestration scripts | Claude Code | +| Multi-Model Orchestration | Not possible (single provider) | Different models per sub-agent (scout on flash, worker on opus) | Pi | + +--- + +## Enterprise & Platform + +| Feature | Claude Code | Pi Agent | Winner | +| ---------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------ | ----------- | +| IDE Integration | VS Code, JetBrains, Cursor (inline diffs, @mentions) | Terminal-only (could integrate via RPC) | Claude Code | +| Web/Mobile/Desktop | claude.ai/code, iOS app, desktop app | Terminal only | Claude Code | +| Enterprise SSO/Audit | Yes (SSO, MFA, audit logs, admin dashboard) | No | Claude Code | +| Permissions/Sandboxing | 5 modes, deny-first rules, filesystem/network sandbox | None by default ("YOLO mode"); permission-gate extension available | Claude Code | +| Git Integration | Deep (commits, PRs, merge conflicts, GitHub Actions, GitLab CI) | Via bash; git-checkpoint extension available | Claude Code | +| Slack/Chat Integration | Native @Claude mentions to PRs | pi-mom Slack bot package | Claude Code | + +--- + +## Sharing & Distribution + +| Feature | Claude Code | Pi Agent | Winner | +| -------------------------- | ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------- | +| Package System | Plugin marketplace — `/plugin` commands, `.claude-plugin/plugin.json` manifest | `pi install npm:/git:/local` — `package.json` with `pi` key, `pi-package` npm keyword | Both | +| What's Bundled | Skills, agents, hooks, MCP servers, LSP servers | Extensions, skills, prompt templates, themes | Both | +| Distribution Sources | Marketplace (GitHub repo, git URL, npm, pip, direct URL, local path) | npm registry, git (GitHub/GitLab/SSH), local paths — no intermediate marketplace needed | Both | +| Discovery | Official `claude-plugins-official` marketplace + team/community marketplaces via `extraKnownMarketplaces` | npm search (`pi-package` keyword) + gallery at shittycodingagent.ai/packages with video/image previews | Both | +| Scope | User, project, local, managed (enterprise) — namespaced as `plugin-name:skill-name` | Global (`~/.pi/`) or project (`.pi/`, `-l` flag) — project settings auto-install missing packages on startup | Tie | +| Config UI | `/plugin` slash commands for install/browse/manage | `pi config` interactive TUI for enable/disable per-resource | Tie | +| Try Without Installing | No equivalent | `pi -e npm:@foo/bar` — ephemeral install for current session only | Pi | +| Cross-Tool Portability | Agent Skills standard (agentskills.io) — shared with VS Code, Codex, Cursor, GitHub | No cross-tool standard — Pi-specific extensions | Claude Code | +| Enterprise Controls | `strictKnownMarketplaces`, allowlists by repo/URL/host regex, managed plugin deployment | No enterprise controls — trust-based, review source before installing | Claude Code | +| Git-Based Sharing | `.claude/` directory (settings, skills, agents, rules, hooks) committed to repo — team gets config on clone | `.pi/settings.json` with packages — team gets packages auto-installed on startup | Tie | +| Update Mechanism | Marketplace auto-updates at startup (configurable) | `pi update` for non-pinned packages, version pinning with `@version` | Tie | +| Package Filtering | Plugin resources loaded as-is (namespaced to prevent conflicts) | Glob patterns + `!exclusions` per resource type, force-include/exclude exact paths | Pi | + +--- + +## Community & Ecosystem + +| Feature | Claude Code | Pi Agent | +| ---------------- | --------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| Creator | Anthropic — $1B+ ARR, enterprise AI company | Mario Zechner — libGDX creator (24.8K stars), solo maintainer | +| Traction | Enterprise adoption, deep IDE integrations, massive user base | 11.5K stars, 3.17M monthly npm downloads, 208 versions | +| Endorsements | Enterprise customers, Anthropic ecosystem | Armin Ronacher (Flask/Ruff) uses + contributes, powers OpenClaw (145K stars) | +| Release Velocity | Regular releases | 10+ releases in 8 days, new model support within hours | diff --git a/README.md b/README.md new file mode 100644 index 0000000..4752ee5 --- /dev/null +++ b/README.md @@ -0,0 +1,266 @@ +# pi-vs-cc + +A collection of [Pi Coding Agent](https://github.com/mariozechner/pi-coding-agent) customized instances. _Why?_ To showcase what it looks like to hedge against the leader in the agentic coding market, Claude Code. Here we showcase how you can customize the UI, agent orchestration tools, safety auditing, and cross-agent integrations. + +
+ pi-vs-cc +
+ +--- + +## Prerequisites + +All three are required: + +| Tool | Purpose | Install | +| --------------- | ------------------------- | ---------------------------------------------------------- | +| **Bun** ≥ 1.3.2 | Runtime & package manager | [bun.sh](https://bun.sh) | +| **just** | Task runner | `brew install just` | +| **pi** | Pi Coding Agent CLI | [Pi docs](https://github.com/mariozechner/pi-coding-agent) | + +--- + +## API Keys + +Pi does **not** auto-load `.env` files — API keys must be present in your shell's environment **before** you launch Pi. A sample file is provided: + +```bash +cp .env.sample .env # copy the template +# open .env and fill in your keys +``` + +`.env.sample` covers the four most popular providers: + +| Provider | Variable | Get your key | +| ---------------- | -------------------- | ---------------------------------------------------------------------------------------------------------- | +| OpenAI | `OPENAI_API_KEY` | [platform.openai.com](https://platform.openai.com/api-keys) | +| Anthropic | `ANTHROPIC_API_KEY` | [console.anthropic.com](https://console.anthropic.com/settings/keys) | +| Google | `GEMINI_API_KEY` | [aistudio.google.com](https://aistudio.google.com/app/apikey) | +| OpenRouter | `OPENROUTER_API_KEY` | [openrouter.ai](https://openrouter.ai/keys) | +| Many Many Others | `***` | [Pi Providers docs](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/providers.md) | + +### Sourcing your keys + +Pick whichever approach fits your workflow: + +**Option A — Source manually each session:** +```bash +source .env && pi +``` + +**Option B — One-liner alias (add to `~/.zshrc` or `~/.bashrc`):** +```bash +alias pi='source $(pwd)/.env && pi' +``` + +**Option C — Use the `just` task runner (auto-wired via `set dotenv-load`):** +```bash +just pi # .env is loaded automatically for every just recipe +just ext-minimal # works for all recipes, not just `pi` +``` + +--- + +## Installation + +```bash +bun install +``` + +--- + +## Extensions + +| Extension | File | Description | +| ----------------------- | ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **pure-focus** | `extensions/pure-focus.ts` | Removes the footer bar and status line entirely — pure distraction-free mode | +| **minimal** | `extensions/minimal.ts` | Compact footer showing model name and a 10-block context usage meter `[###-------] 30%` | +| **cross-agent** | `extensions/cross-agent.ts` | Scans `.claude/`, `.gemini/`, `.codex/` dirs for commands, skills, and agents and registers them in Pi | +| **purpose-gate** | `extensions/purpose-gate.ts` | Prompts you to declare session intent on startup; shows a persistent purpose widget and blocks prompts until answered | +| **tool-counter** | `extensions/tool-counter.ts` | Rich two-line footer: model + context meter + token/cost stats on line 1, cwd/branch + per-tool call tally on line 2 | +| **tool-counter-widget** | `extensions/tool-counter-widget.ts` | Live-updating above-editor widget showing per-tool call counts with background colors | +| **subagent-widget** | `extensions/subagent-widget.ts` | `/sub ` command that spawns background Pi subagents; each gets its own streaming live-progress widget | +| **tilldone** | `extensions/tilldone.ts` | Task discipline system — define tasks before starting work; tracks completion state across steps; shows persistent task list in footer with live progress | +| **agent-team** | `extensions/agent-team.ts` | Dispatcher-only orchestrator: the primary agent delegates all work to named specialist agents via `dispatch_agent`; shows a grid dashboard | +| **system-select** | `extensions/system-select.ts` | `/system` command to interactively switch between agent personas/system prompts from `.pi/agents/`, `.claude/agents/`, `.gemini/agents/`, `.codex/agents/` | +| **damage-control** | `extensions/damage-control.ts` | Real-time safety auditing — intercepts dangerous bash patterns and enforces path-based access controls from `.pi/damage-control-rules.yaml` | +| **agent-chain** | `extensions/agent-chain.ts` | Sequential pipeline orchestrator — chains multiple agents where each step's output feeds into the next step's prompt; use `/chain` to select and run | +| **pi-pi** | `extensions/pi-pi.ts` | Meta-agent that builds Pi agents using parallel research experts for documentation | +| **session-replay** | `extensions/session-replay.ts` | Scrollable timeline overlay of session history - showcasing customizable dialog UI | +| **theme-cycler** | `extensions/theme-cycler.ts` | Keyboard shortcuts (Ctrl+X/Ctrl+Q) and `/theme` command to cycle/switch between custom themes | + +--- + + +## Usage + +### Run a single extension + +```bash +pi -e extensions/.ts +``` + +### Stack multiple extensions + +Extensions compose — pass multiple `-e` flags: + +```bash +pi -e extensions/minimal.ts -e extensions/cross-agent.ts +``` + +### Use `just` recipes + +`just` wraps the most useful combinations. Run `just` with no arguments to list all available recipes: + +```bash +just +``` + +Common recipes: + +```bash +just pi # Plain Pi, no extensions +just ext-pure-focus # Distraction-free mode +just ext-minimal # Minimal context meter footer +just ext-cross-agent # Cross-agent command loading + minimal footer +just ext-purpose-gate # Purpose gate + minimal footer +just ext-tool-counter # Rich two-line footer with tool tally +just ext-tool-counter-widget # Per-tool widget above the editor +just ext-subagent-widget # Subagent spawner with live progress widgets +just ext-tilldone # Task discipline system with live progress tracking +just ext-agent-team # Multi-agent orchestration grid dashboard +just ext-system-select # Agent persona switcher via /system command +just ext-damage-control # Safety auditing + minimal footer +just ext-agent-chain # Sequential pipeline orchestrator with step chaining +just ext-pi-pi # Meta-agent that builds Pi agents using parallel experts +just ext-session-replay # Scrollable timeline overlay of session history +just ext-theme-cycler # Theme cycler + minimal footer +just all # Open every extension in its own terminal window +``` + +The `open` recipe allows you to spin up a new terminal window with any combination of stacked extensions (omit `.ts`): + +```bash +just open purpose-gate minimal tool-counter-widget +``` + +--- + +## Project Structure + +``` +pi-vs-cc/ +├── extensions/ # Pi extension source files (.ts) — one file per extension +├── specs/ # Feature specifications for extensions +├── .pi/ +│ ├── agent-sessions/ # Ephemeral session files (gitignored) +│ ├── agents/ # Agent definitions for team and chain extensions +│ │ ├── pi-pi/ # Expert agents for the pi-pi meta-agent +│ │ ├── agent-chain.yaml # Pipeline definition for agent-chain +│ │ ├── teams.yaml # Team definition for agent-team +│ │ └── *.md # Individual agent persona/system prompts +│ ├── skills/ # Custom skills +│ ├── themes/ # Custom themes (.json) used by theme-cycler +│ ├── damage-control-rules.yaml # Path/command rules for safety auditing +│ └── settings.json # Pi workspace settings +├── justfile # just task definitions +├── CLAUDE.md # Conventions and tooling reference (for agents) +├── THEME.md # Color token conventions for extension authors +└── TOOLS.md # Built-in tool function signatures available in extensions +``` + +--- + + +## Orchestrating Multi-Agent Workflows + +Pi's architecture makes it easy to coordinate multiple autonomous agents. This playground includes several powerful multi-agent extensions: + +### Subagent Widget (`/sub`) +The `subagent-widget` extension allows you to offload isolated tasks to background Pi agents while you continue working in the main terminal. Typing `/sub ` spawns a headless subagent that reports its streaming progress via a persistent, live-updating UI widget above your editor. + +### Agent Teams (`/team`) +The `agent-team` orchestrator operates as a dispatcher. Instead of answering prompts directly, the primary agent reviews your request, selects a specialist from a defined roster, and delegates the work via a `dispatch_agent` tool. +- Teams are configured in `.pi/agents/teams.yaml` where each top-level key is a team name containing a list of agent names (e.g., `frontend: [planner, builder, bowser]`). +- Individual agent personas (e.g., `builder.md`, `reviewer.md`) live in `.pi/agents/`. +- **pi-pi Meta-Agent**: The `pi-pi` team specifically delegates tasks to specialized Pi framework experts (`ext-expert.md`, `theme-expert.md`, `tui-expert.md`) located in `.pi/agents/pi-pi/` to build high-quality Pi extensions using parallel research. + - **Web Crawling Fallbacks**: To ingest the latest framework documentation dynamically, these experts use `firecrawl` as their default modern page crawler, but are explicitly programmed to safely fall back to the native `curl` baked into their bash toolset if Firecrawl fails or is unavailable. + +### Agent Chains (`/chain`) +Unlike the dynamic dispatcher, `agent-chain` acts as a sequential pipeline orchestrator. Workflows are defined in `.pi/agents/agent-chain.yaml` where the output of one agent becomes the input (`$INPUT`) to the next. +- Workflows are defined as a list of `steps`, where each step specifies an `agent` and a `prompt`. +- The `$INPUT` variable injects the previous step's output (or the user's initial prompt for the first step), and `$ORIGINAL` always contains the user's initial prompt. +- Example: The `plan-build-review` pipeline feeds your prompt to the `planner`, passes the plan to the `builder`, and finally sends the code to the `reviewer`. + +--- + +## Safety Auditing & Damage Control + +The `damage-control` extension provides real-time security hooks to prevent catastrophic mistakes when agents execute bash commands or modify files. It uses Pi's `tool_call` event to intercept and evaluate every action against `.pi/damage-control-rules.yaml`. + +- **Dangerous Commands**: Uses regex (`bashToolPatterns`) to block destructive commands like `rm -rf`, `git reset --hard`, `aws s3 rm --recursive`, or `DROP DATABASE`. Some rules strictly block execution, while others (`ask: true`) pause execution to prompt you for confirmation. +- **Zero Access Paths**: Prevents the agent from reading or writing sensitive files (e.g., `.env`, `~/.ssh/`, `*.pem`). +- **Read-Only Paths**: Allows reading but blocks modifying system files or lockfiles (`package-lock.json`, `/etc/`). +- **No-Delete Paths**: Allows modifying but prevents deleting critical project configuration (`.git/`, `Dockerfile`, `README.md`). + +--- + +## Extension Author Reference + +Companion docs cover the conventions used across all extensions in this repo: + +- **[COMPARISON.md](COMPARISON.md)** — Feature-by-feature comparison of Claude Code vs Pi Agent across 12 categories (design philosophy, tools, hooks, SDK, enterprise, and more). +- **[RESERVED_KEYS.md](RESERVED_KEYS.md)** — Pi reserved keybindings, overridable keys, and safe keys for extension authors. +- **[THEME.md](THEME.md)** — Color language: which Pi theme tokens (`success`, `accent`, `warning`, `dim`, `muted`) map to which UI roles, with examples. +- **[TOOLS.md](TOOLS.md)** — Function signatures for the built-in tools available inside extensions (`read`, `bash`, `edit`, `write`). + +--- + +## Hooks & Events + +Side-by-side comparison of lifecycle hooks in [Claude Code](https://docs.anthropic.com/en/docs/claude-code/hooks) vs [Pi Agent](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/extensions.md#events). + +| Category | Claude Code | Pi Agent | Available In | +| ------------------- | ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ------------ | +| **Session** | `SessionStart`, `SessionEnd` | `session_start`, `session_shutdown` | Both | +| **Input** | `UserPromptSubmit` | `input` | Both | +| **Tool** | `PreToolUse`, `PostToolUse`, `PostToolUseFailure` | `tool_call`, `tool_result`, `tool_execution_start`, `tool_execution_update`, `tool_execution_end` | Both | +| **Bash** | — | `BashSpawnHook`, `user_bash` | Pi | +| **Permission** | `PermissionRequest` | — | CC | +| **Compact** | `PreCompact` | `session_before_compact`, `session_compact` | Both | +| **Branching** | — | `session_before_fork`, `session_fork`, `session_before_switch`, `session_switch`, `session_before_tree`, `session_tree` | Pi | +| **Agent / Turn** | — | `before_agent_start`, `agent_start`, `agent_end`, `turn_start`, `turn_end` | Pi | +| **Message** | — | `message_start`, `message_update`, `message_end` | Pi | +| **Model / Context** | — | `model_select`, `context` | Pi | +| **Sub-agents** | `SubagentStart`, `SubagentStop`, `TeammateIdle`, `TaskCompleted` | — | CC | +| **Config** | `ConfigChange` | — | CC | +| **Worktree** | `WorktreeCreate`, `WorktreeRemove` | — | CC | +| **System** | `Stop`, `Notification` | — | CC | + + + +## Resources + +## Pi Documentation + +| Doc | Description | +| ------------------------------------------------------------------------------------------------------- | ---------------------------------- | +| [Mario's Twitter](https://x.com/badlogicgames) | Creator of Pi Coding Agent | +| [README.md](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/README.md) | Overview and getting started | +| [sdk.md](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/sdk.md) | TypeScript SDK reference | +| [rpc.md](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/rpc.md) | RPC protocol specification | +| [json.md](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/json.md) | JSON event stream format | +| [providers.md](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/providers.md) | API keys and provider setup | +| [models.md](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/models.md) | Custom models (Ollama, vLLM, etc.) | +| [extensions.md](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/extensions.md) | Extension system | +| [skills.md](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/skills.md) | Skills (Agent Skills standard) | +| [settings.md](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/settings.md) | Configuration | +| [compaction.md](https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/compaction.md) | Context compaction | + + +## Master Agentic Coding +> Prepare for the future of software engineering + +Learn tactical agentic coding patterns with [Tactical Agentic Coding](https://agenticengineer.com/tactical-agentic-coding?y=pivscc) + +Follow the [IndyDevDan YouTube channel](https://www.youtube.com/@indydevdan) to improve your agentic coding advantage. diff --git a/RESERVED_KEYS.md b/RESERVED_KEYS.md new file mode 100644 index 0000000..19604ea --- /dev/null +++ b/RESERVED_KEYS.md @@ -0,0 +1,75 @@ +# Pi Reserved Keybindings + +Extensions **cannot** override these shortcuts — they are silently skipped by `registerShortcut()`. + +| Key | Action | +|-----|--------| +| `escape` | interrupt | +| `ctrl+c` | clear / copy | +| `ctrl+d` | exit | +| `ctrl+z` | suspend | +| `shift+tab` | cycleThinkingLevel | +| `ctrl+p` | cycleModelForward | +| `ctrl+shift+p` | cycleModelBackward | +| `ctrl+l` | selectModel | +| `ctrl+o` | expandTools | +| `ctrl+t` | toggleThinking | +| `ctrl+g` | externalEditor | +| `alt+enter` | followUp | +| `enter` | submit / selectConfirm | +| `ctrl+k` | deleteToLineEnd | + +## Non-Reserved Built-in Keys + +Extensions **can** override these (Pi will warn but allow it). + +| Key | Action | +|-----|--------| +| `up` / `down` | cursor / select navigation | +| `left` / `right` | cursor movement | +| `ctrl+a` | cursorLineStart | +| `ctrl+b` | cursorLeft | +| `ctrl+e` | cursorLineEnd | +| `ctrl+f` | cursorRight | +| `ctrl+n` | toggleSessionNamedFilter | +| `ctrl+r` | renameSession | +| `ctrl+s` | toggleSessionSort | +| `ctrl+u` | deleteToLineStart | +| `ctrl+v` | pasteImage | +| `ctrl+w` | deleteWordBackward | +| `ctrl+y` | yank | +| `ctrl+]` | jumpForward | +| `ctrl+-` | undo | +| `ctrl+alt+]` | jumpBackward | +| `alt+b` | cursorWordLeft | +| `alt+d` | deleteWordForward | +| `alt+f` | cursorWordRight | +| `alt+y` | yankPop | +| `alt+up` | dequeue | +| `alt+backspace` | deleteWordBackward | +| `alt+delete` | deleteWordForward | +| `alt+left` / `alt+right` | cursorWord left/right | +| `ctrl+left` / `ctrl+right` | cursorWord left/right | +| `shift+enter` | newLine | +| `home` / `end` | cursorLineStart/End | +| `pageUp` / `pageDown` | page navigation | +| `backspace` | deleteCharBackward | +| `delete` | deleteCharForward | +| `tab` | tab | + +## Safe Keys for Extensions + +These `ctrl+letter` combos are **free** and work in all terminals: + +| Key | Notes | +|-----|-------| +| `ctrl+x` | Safe | +| `ctrl+q` | May be intercepted by terminal (XON/XOFF flow control) | +| `ctrl+h` | Alias for backspace in some terminals — use with caution | + +## macOS Notes + +- `alt+letter` combos type special characters in most macOS terminals — they don't send alt sequences +- `ctrl+shift+letter` requires Kitty keyboard protocol (Kitty, Ghostty, WezTerm) +- `ctrl+alt+letter` works in legacy terminals but may conflict with macOS system shortcuts +- **Safest bet on macOS:** stick to `ctrl+letter` combos from the free list above, or use `f1`–`f12` diff --git a/THEME.md b/THEME.md new file mode 100644 index 0000000..9ea21c1 --- /dev/null +++ b/THEME.md @@ -0,0 +1,29 @@ +# Theme Color Conventions + +Extensions in this repo use a consistent color language mapped to Pi's theme tokens. Follow these rules when building new extensions. + +## Color Roles + +| Token | Role | Used For | +|-----------|-------------------|-----------------------------------------------| +| `success` | Primary value | Token counts, hash fills, branch name, counts | +| `accent` | Secondary value | Percentages, tool names, token out counts | +| `warning` | Punctuation/frame | Brackets `[]`, parens `()`, pipes `|`, cost | +| `dim` | Filler/spacing | Dashes, labels ("in", "out"), separators | +| `muted` | Subdued text | CWD name, fallback states | + +## Examples + +``` +Context meter: warning([) success(###) dim(---) warning(]) accent(30%) +Git branch: dim(pi-vs-cc) warning(() success(main) warning()) +Token stats: success(1.2k) dim(in) accent(340) dim(out) warning($0.0042) +Tool tally: accent(Bash) success(3) warning(|) accent(Read) success(7) +``` + +## Rationale + +- **Green (success)** draws the eye to live values that change — counts, filled bars, branch +- **Cyan (accent)** highlights identifiers and secondary metrics — names, percentages +- **Yellow (warning)** frames structure — delimiters tell you where one value ends and the next begins +- **Dim** recedes into the background — labels and filler shouldn't compete for attention diff --git a/TOOLS.md b/TOOLS.md new file mode 100644 index 0000000..c9d8504 --- /dev/null +++ b/TOOLS.md @@ -0,0 +1,27 @@ +```ts +// Read the contents of a file. Supports text files and images. Output is truncated to 2000 lines or 50KB. +function read( + path: string, // Path to the file to read (relative or absolute) + limit?: number, // Maximum number of lines to read + offset?: number // Line number to start reading from (1-indexed) +): string; + +// Execute a bash command in the current working directory. Returns stdout and stderr. +function bash( + command: string, // Bash command to execute + timeout?: number // Timeout in seconds (optional, no default timeout) +): string; + +// Edit a file by replacing exact text. The oldText must match exactly (including whitespace). +function edit( + path: string, // Path to the file to edit (relative or absolute) + oldText: string, // Exact text to find and replace (must match exactly) + newText: string // New text to replace the old text with +): void; + +// Write content to a file. Creates the file if it doesn't exist, overwrites if it does. Automatically creates parent directories. +function write( + path: string, // Path to the file to write (relative or absolute) + content: string // Content to write to the file +): void; +``` diff --git a/bun.lock b/bun.lock new file mode 100644 index 0000000..bfda2e8 --- /dev/null +++ b/bun.lock @@ -0,0 +1,15 @@ +{ + "lockfileVersion": 1, + "configVersion": 1, + "workspaces": { + "": { + "name": "pi-vs-cc", + "dependencies": { + "yaml": "^2.8.0", + }, + }, + }, + "packages": { + "yaml": ["yaml@2.8.2", "", { "bin": { "yaml": "bin.mjs" } }, "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A=="], + } +} diff --git a/extensions/agent-chain.ts b/extensions/agent-chain.ts new file mode 100644 index 0000000..8cf7d2a --- /dev/null +++ b/extensions/agent-chain.ts @@ -0,0 +1,797 @@ +/** + * Agent Chain — Sequential pipeline orchestrator + * + * Runs opinionated, repeatable agent workflows. Chains are defined in + * .pi/agents/agent-chain.yaml — each chain is a sequence of agent steps + * with prompt templates. The user's original prompt flows into step 1, + * the output becomes $INPUT for step 2's prompt template, and so on. + * $ORIGINAL is always the user's original prompt. + * + * The primary Pi agent has NO codebase tools — it can ONLY kick off the + * pipeline via the `run_chain` tool. On boot you select a chain; the + * agent decides when to run it based on the user's prompt. + * + * Agents maintain session context within a Pi session — re-running the + * chain lets each agent resume where it left off. + * + * Commands: + * /chain — switch active chain + * /chain-list — list all available chains + * + * Usage: pi -e extensions/agent-chain.ts + */ + +import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import { Type } from "@sinclair/typebox"; +import { Text, truncateToWidth, visibleWidth } from "@mariozechner/pi-tui"; +import { spawn } from "child_process"; +import { readFileSync, existsSync, readdirSync, mkdirSync, unlinkSync } from "fs"; +import { join, resolve } from "path"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +// ── Types ──────────────────────────────────────── + +interface ChainStep { + agent: string; + prompt: string; +} + +interface ChainDef { + name: string; + description: string; + steps: ChainStep[]; +} + +interface AgentDef { + name: string; + description: string; + tools: string; + systemPrompt: string; +} + +interface StepState { + agent: string; + status: "pending" | "running" | "done" | "error"; + elapsed: number; + lastWork: string; +} + +// ── Display Name Helper ────────────────────────── + +function displayName(name: string): string { + return name.split("-").map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(" "); +} + +// ── Chain YAML Parser ──────────────────────────── + +function parseChainYaml(raw: string): ChainDef[] { + const chains: ChainDef[] = []; + let current: ChainDef | null = null; + let currentStep: ChainStep | null = null; + + for (const line of raw.split("\n")) { + // Chain name: top-level key + const chainMatch = line.match(/^(\S[^:]*):$/); + if (chainMatch) { + if (current && currentStep) { + current.steps.push(currentStep); + currentStep = null; + } + current = { name: chainMatch[1].trim(), description: "", steps: [] }; + chains.push(current); + continue; + } + + // Chain description + const descMatch = line.match(/^\s+description:\s+(.+)$/); + if (descMatch && current && !currentStep) { + let desc = descMatch[1].trim(); + if ((desc.startsWith('"') && desc.endsWith('"')) || + (desc.startsWith("'") && desc.endsWith("'"))) { + desc = desc.slice(1, -1); + } + current.description = desc; + continue; + } + + // "steps:" label — skip + if (line.match(/^\s+steps:\s*$/) && current) { + continue; + } + + // Step agent line + const agentMatch = line.match(/^\s+-\s+agent:\s+(.+)$/); + if (agentMatch && current) { + if (currentStep) { + current.steps.push(currentStep); + } + currentStep = { agent: agentMatch[1].trim(), prompt: "" }; + continue; + } + + // Step prompt line + const promptMatch = line.match(/^\s+prompt:\s+(.+)$/); + if (promptMatch && currentStep) { + let prompt = promptMatch[1].trim(); + if ((prompt.startsWith('"') && prompt.endsWith('"')) || + (prompt.startsWith("'") && prompt.endsWith("'"))) { + prompt = prompt.slice(1, -1); + } + prompt = prompt.replace(/\\n/g, "\n"); + currentStep.prompt = prompt; + continue; + } + } + + if (current && currentStep) { + current.steps.push(currentStep); + } + + return chains; +} + +// ── Frontmatter Parser ─────────────────────────── + +function parseAgentFile(filePath: string): AgentDef | null { + try { + const raw = readFileSync(filePath, "utf-8"); + const match = raw.match(/^---\n([\s\S]*?)\n---\n([\s\S]*)$/); + if (!match) return null; + + const frontmatter: Record = {}; + for (const line of match[1].split("\n")) { + const idx = line.indexOf(":"); + if (idx > 0) { + frontmatter[line.slice(0, idx).trim()] = line.slice(idx + 1).trim(); + } + } + + if (!frontmatter.name) return null; + + return { + name: frontmatter.name, + description: frontmatter.description || "", + tools: frontmatter.tools || "read,grep,find,ls", + systemPrompt: match[2].trim(), + }; + } catch { + return null; + } +} + +function scanAgentDirs(cwd: string): Map { + const dirs = [ + join(cwd, "agents"), + join(cwd, ".claude", "agents"), + join(cwd, ".pi", "agents"), + ]; + + const agents = new Map(); + + for (const dir of dirs) { + if (!existsSync(dir)) continue; + try { + for (const file of readdirSync(dir)) { + if (!file.endsWith(".md")) continue; + const fullPath = resolve(dir, file); + const def = parseAgentFile(fullPath); + if (def && !agents.has(def.name.toLowerCase())) { + agents.set(def.name.toLowerCase(), def); + } + } + } catch {} + } + + return agents; +} + +// ── Extension ──────────────────────────────────── + +export default function (pi: ExtensionAPI) { + let allAgents: Map = new Map(); + let chains: ChainDef[] = []; + let activeChain: ChainDef | null = null; + let widgetCtx: any; + let sessionDir = ""; + const agentSessions: Map = new Map(); + + // Per-step state for the active chain + let stepStates: StepState[] = []; + let pendingReset = false; + + function loadChains(cwd: string) { + sessionDir = join(cwd, ".pi", "agent-sessions"); + if (!existsSync(sessionDir)) { + mkdirSync(sessionDir, { recursive: true }); + } + + allAgents = scanAgentDirs(cwd); + + agentSessions.clear(); + for (const [key] of allAgents) { + const sessionFile = join(sessionDir, `chain-${key}.json`); + agentSessions.set(key, existsSync(sessionFile) ? sessionFile : null); + } + + const chainPath = join(cwd, ".pi", "agents", "agent-chain.yaml"); + if (existsSync(chainPath)) { + try { + chains = parseChainYaml(readFileSync(chainPath, "utf-8")); + } catch { + chains = []; + } + } else { + chains = []; + } + } + + function activateChain(chain: ChainDef) { + activeChain = chain; + stepStates = chain.steps.map(s => ({ + agent: s.agent, + status: "pending" as const, + elapsed: 0, + lastWork: "", + })); + // Skip widget re-registration if reset is pending — let before_agent_start handle it + if (!pendingReset) { + updateWidget(); + } + } + + // ── Card Rendering ────────────────────────── + + function renderCard(state: StepState, colWidth: number, theme: any): string[] { + const w = colWidth - 2; + const truncate = (s: string, max: number) => s.length > max ? s.slice(0, max - 3) + "..." : s; + + const statusColor = state.status === "pending" ? "dim" + : state.status === "running" ? "accent" + : state.status === "done" ? "success" : "error"; + const statusIcon = state.status === "pending" ? "○" + : state.status === "running" ? "●" + : state.status === "done" ? "✓" : "✗"; + + const name = displayName(state.agent); + const nameStr = theme.fg("accent", theme.bold(truncate(name, w))); + const nameVisible = Math.min(name.length, w); + + const statusStr = `${statusIcon} ${state.status}`; + const timeStr = state.status !== "pending" ? ` ${Math.round(state.elapsed / 1000)}s` : ""; + const statusLine = theme.fg(statusColor, statusStr + timeStr); + const statusVisible = statusStr.length + timeStr.length; + + const workRaw = state.lastWork || ""; + const workText = workRaw ? truncate(workRaw, Math.min(50, w - 1)) : ""; + const workLine = workText ? theme.fg("muted", workText) : theme.fg("dim", "—"); + const workVisible = workText ? workText.length : 1; + + const top = "┌" + "─".repeat(w) + "┐"; + const bot = "└" + "─".repeat(w) + "┘"; + const border = (content: string, visLen: number) => + theme.fg("dim", "│") + content + " ".repeat(Math.max(0, w - visLen)) + theme.fg("dim", "│"); + + return [ + theme.fg("dim", top), + border(" " + nameStr, 1 + nameVisible), + border(" " + statusLine, 1 + statusVisible), + border(" " + workLine, 1 + workVisible), + theme.fg("dim", bot), + ]; + } + + function updateWidget() { + if (!widgetCtx) return; + + widgetCtx.ui.setWidget("agent-chain", (_tui: any, theme: any) => { + const text = new Text("", 0, 1); + + return { + render(width: number): string[] { + if (!activeChain || stepStates.length === 0) { + text.setText(theme.fg("dim", "No chain active. Use /chain to select one.")); + return text.render(width); + } + + const arrowWidth = 5; // " ──▶ " + const cols = stepStates.length; + const totalArrowWidth = arrowWidth * (cols - 1); + const colWidth = Math.max(12, Math.floor((width - totalArrowWidth) / cols)); + const arrowRow = 2; // middle of 5-line card (0-indexed) + + const cards = stepStates.map(s => renderCard(s, colWidth, theme)); + const cardHeight = cards[0].length; + const outputLines: string[] = []; + + for (let line = 0; line < cardHeight; line++) { + let row = cards[0][line]; + for (let c = 1; c < cols; c++) { + if (line === arrowRow) { + row += theme.fg("dim", " ──▶ "); + } else { + row += " ".repeat(arrowWidth); + } + row += cards[c][line]; + } + outputLines.push(row); + } + + text.setText(outputLines.join("\n")); + return text.render(width); + }, + invalidate() { + text.invalidate(); + }, + }; + }); + } + + // ── Run Agent (subprocess) ────────────────── + + function runAgent( + agentDef: AgentDef, + task: string, + stepIndex: number, + ctx: any, + ): Promise<{ output: string; exitCode: number; elapsed: number }> { + const model = ctx.model + ? `${ctx.model.provider}/${ctx.model.id}` + : "openrouter/google/gemini-3-flash-preview"; + + const agentKey = agentDef.name.toLowerCase().replace(/\s+/g, "-"); + const agentSessionFile = join(sessionDir, `chain-${agentKey}.json`); + const hasSession = agentSessions.get(agentKey); + + const args = [ + "--mode", "json", + "-p", + "--no-extensions", + "--model", model, + "--tools", agentDef.tools, + "--thinking", "off", + "--append-system-prompt", agentDef.systemPrompt, + "--session", agentSessionFile, + ]; + + if (hasSession) { + args.push("-c"); + } + + args.push(task); + + const textChunks: string[] = []; + const startTime = Date.now(); + const state = stepStates[stepIndex]; + + return new Promise((resolve) => { + const proc = spawn("pi", args, { + stdio: ["ignore", "pipe", "pipe"], + env: { ...process.env }, + }); + + const timer = setInterval(() => { + state.elapsed = Date.now() - startTime; + updateWidget(); + }, 1000); + + let buffer = ""; + + proc.stdout!.setEncoding("utf-8"); + proc.stdout!.on("data", (chunk: string) => { + buffer += chunk; + const lines = buffer.split("\n"); + buffer = lines.pop() || ""; + for (const line of lines) { + if (!line.trim()) continue; + try { + const event = JSON.parse(line); + if (event.type === "message_update") { + const delta = event.assistantMessageEvent; + if (delta?.type === "text_delta") { + textChunks.push(delta.delta || ""); + const full = textChunks.join(""); + const last = full.split("\n").filter((l: string) => l.trim()).pop() || ""; + state.lastWork = last; + updateWidget(); + } + } + } catch {} + } + }); + + proc.stderr!.setEncoding("utf-8"); + proc.stderr!.on("data", () => {}); + + proc.on("close", (code) => { + if (buffer.trim()) { + try { + const event = JSON.parse(buffer); + if (event.type === "message_update") { + const delta = event.assistantMessageEvent; + if (delta?.type === "text_delta") textChunks.push(delta.delta || ""); + } + } catch {} + } + + clearInterval(timer); + const elapsed = Date.now() - startTime; + state.elapsed = elapsed; + const output = textChunks.join(""); + state.lastWork = output.split("\n").filter((l: string) => l.trim()).pop() || ""; + + if (code === 0) { + agentSessions.set(agentKey, agentSessionFile); + } + + resolve({ output, exitCode: code ?? 1, elapsed }); + }); + + proc.on("error", (err) => { + clearInterval(timer); + resolve({ + output: `Error spawning agent: ${err.message}`, + exitCode: 1, + elapsed: Date.now() - startTime, + }); + }); + }); + } + + // ── Run Chain (sequential pipeline) ───────── + + async function runChain( + task: string, + ctx: any, + ): Promise<{ output: string; success: boolean; elapsed: number }> { + if (!activeChain) { + return { output: "No chain active", success: false, elapsed: 0 }; + } + + const chainStart = Date.now(); + + // Reset all steps to pending + stepStates = activeChain.steps.map(s => ({ + agent: s.agent, + status: "pending" as const, + elapsed: 0, + lastWork: "", + })); + updateWidget(); + + let input = task; + const originalPrompt = task; + + for (let i = 0; i < activeChain.steps.length; i++) { + const step = activeChain.steps[i]; + stepStates[i].status = "running"; + updateWidget(); + + const resolvedPrompt = step.prompt + .replace(/\$INPUT/g, input) + .replace(/\$ORIGINAL/g, originalPrompt); + + const agentDef = allAgents.get(step.agent.toLowerCase()); + if (!agentDef) { + stepStates[i].status = "error"; + stepStates[i].lastWork = `Agent "${step.agent}" not found`; + updateWidget(); + return { + output: `Error at step ${i + 1}: Agent "${step.agent}" not found. Available: ${Array.from(allAgents.keys()).join(", ")}`, + success: false, + elapsed: Date.now() - chainStart, + }; + } + + const result = await runAgent(agentDef, resolvedPrompt, i, ctx); + + if (result.exitCode !== 0) { + stepStates[i].status = "error"; + updateWidget(); + return { + output: `Error at step ${i + 1} (${step.agent}): ${result.output}`, + success: false, + elapsed: Date.now() - chainStart, + }; + } + + stepStates[i].status = "done"; + updateWidget(); + + input = result.output; + } + + return { output: input, success: true, elapsed: Date.now() - chainStart }; + } + + // ── run_chain Tool ────────────────────────── + + pi.registerTool({ + name: "run_chain", + label: "Run Chain", + description: "Execute the active agent chain pipeline. Each step runs sequentially — output from one step feeds into the next. Agents maintain session context across runs.", + parameters: Type.Object({ + task: Type.String({ description: "The task/prompt for the chain to process" }), + }), + + async execute(_toolCallId, params, _signal, onUpdate, ctx) { + const { task } = params as { task: string }; + + if (onUpdate) { + onUpdate({ + content: [{ type: "text", text: `Starting chain: ${activeChain?.name}...` }], + details: { chain: activeChain?.name, task, status: "running" }, + }); + } + + const result = await runChain(task, ctx); + + const truncated = result.output.length > 8000 + ? result.output.slice(0, 8000) + "\n\n... [truncated]" + : result.output; + + const status = result.success ? "done" : "error"; + const summary = `[chain:${activeChain?.name}] ${status} in ${Math.round(result.elapsed / 1000)}s`; + + return { + content: [{ type: "text", text: `${summary}\n\n${truncated}` }], + details: { + chain: activeChain?.name, + task, + status, + elapsed: result.elapsed, + fullOutput: result.output, + }, + }; + }, + + renderCall(args, theme) { + const task = (args as any).task || ""; + const preview = task.length > 60 ? task.slice(0, 57) + "..." : task; + return new Text( + theme.fg("toolTitle", theme.bold("run_chain ")) + + theme.fg("accent", activeChain?.name || "?") + + theme.fg("dim", " — ") + + theme.fg("muted", preview), + 0, 0, + ); + }, + + renderResult(result, options, theme) { + const details = result.details as any; + if (!details) { + const text = result.content[0]; + return new Text(text?.type === "text" ? text.text : "", 0, 0); + } + + if (options.isPartial || details.status === "running") { + return new Text( + theme.fg("accent", `● ${details.chain || "chain"}`) + + theme.fg("dim", " running..."), + 0, 0, + ); + } + + const icon = details.status === "done" ? "✓" : "✗"; + const color = details.status === "done" ? "success" : "error"; + const elapsed = typeof details.elapsed === "number" ? Math.round(details.elapsed / 1000) : 0; + const header = theme.fg(color, `${icon} ${details.chain}`) + + theme.fg("dim", ` ${elapsed}s`); + + if (options.expanded && details.fullOutput) { + const output = details.fullOutput.length > 4000 + ? details.fullOutput.slice(0, 4000) + "\n... [truncated]" + : details.fullOutput; + return new Text(header + "\n" + theme.fg("muted", output), 0, 0); + } + + return new Text(header, 0, 0); + }, + }); + + // ── Commands ───────────────────────────────── + + pi.registerCommand("chain", { + description: "Switch active chain", + handler: async (_args, ctx) => { + widgetCtx = ctx; + if (chains.length === 0) { + ctx.ui.notify("No chains defined in .pi/agents/agent-chain.yaml", "warning"); + return; + } + + const options = chains.map(c => { + const steps = c.steps.map(s => displayName(s.agent)).join(" → "); + const desc = c.description ? ` — ${c.description}` : ""; + return `${c.name}${desc} (${steps})`; + }); + + const choice = await ctx.ui.select("Select Chain", options); + if (choice === undefined) return; + + const idx = options.indexOf(choice); + activateChain(chains[idx]); + const flow = chains[idx].steps.map(s => displayName(s.agent)).join(" → "); + ctx.ui.setStatus("agent-chain", `Chain: ${chains[idx].name} (${chains[idx].steps.length} steps)`); + ctx.ui.notify( + `Chain: ${chains[idx].name}\n${chains[idx].description}\n${flow}`, + "info", + ); + }, + }); + + pi.registerCommand("chain-list", { + description: "List all available chains", + handler: async (_args, ctx) => { + widgetCtx = ctx; + if (chains.length === 0) { + ctx.ui.notify("No chains defined in .pi/agents/agent-chain.yaml", "warning"); + return; + } + + const list = chains.map(c => { + const desc = c.description ? ` ${c.description}` : ""; + const steps = c.steps.map((s, i) => + ` ${i + 1}. ${displayName(s.agent)}` + ).join("\n"); + return `${c.name}:${desc ? "\n" + desc : ""}\n${steps}`; + }).join("\n\n"); + + ctx.ui.notify(list, "info"); + }, + }); + + // ── System Prompt Override ─────────────────── + + pi.on("before_agent_start", async (_event, _ctx) => { + // Force widget reset on first turn after /new + if (pendingReset && activeChain) { + pendingReset = false; + widgetCtx = _ctx; + stepStates = activeChain.steps.map(s => ({ + agent: s.agent, + status: "pending" as const, + elapsed: 0, + lastWork: "", + })); + updateWidget(); + } + + if (!activeChain) return {}; + + const flow = activeChain.steps.map(s => displayName(s.agent)).join(" → "); + const desc = activeChain.description ? `\n${activeChain.description}` : ""; + + // Build pipeline steps summary + const steps = activeChain.steps.map((s, i) => { + const agentDef = allAgents.get(s.agent.toLowerCase()); + const agentDesc = agentDef?.description || ""; + return `${i + 1}. **${displayName(s.agent)}** — ${agentDesc}`; + }).join("\n"); + + // Build full agent catalog (like agent-team.ts) + const seen = new Set(); + const agentCatalog = activeChain.steps + .filter(s => { + const key = s.agent.toLowerCase(); + if (seen.has(key)) return false; + seen.add(key); + return true; + }) + .map(s => { + const agentDef = allAgents.get(s.agent.toLowerCase()); + if (!agentDef) return `### ${displayName(s.agent)}\nAgent not found.`; + return `### ${displayName(agentDef.name)}\n${agentDef.description}\n**Tools:** ${agentDef.tools}\n**Role:** ${agentDef.systemPrompt}`; + }) + .join("\n\n"); + + return { + systemPrompt: `You are an agent with a sequential pipeline called "${activeChain.name}" at your disposal.${desc} +You have full access to your own tools AND the run_chain tool to delegate to your team. + +## Active Chain: ${activeChain.name} +Flow: ${flow} + +${steps} + +## Agent Details + +${agentCatalog} + +## When to Use run_chain +- Significant work: new features, refactors, multi-file changes, anything non-trivial +- Tasks that benefit from the full pipeline: planning, building, reviewing +- When you want structured, multi-agent collaboration on a problem + +## When to Work Directly +- Simple one-off commands: reading a file, checking status, listing contents +- Quick lookups, small edits, answering questions about the codebase +- Anything you can handle in a single step without needing the pipeline + +## How run_chain Works +- Pass a clear task description to run_chain +- Each step's output feeds into the next step as $INPUT +- Agents maintain session context — they remember previous work within this session +- You can run the chain multiple times with different tasks if needed +- After the chain completes, review the result and summarize for the user + +## Guidelines +- Use your judgment — if it's quick, just do it; if it's real work, run the chain +- Keep chain tasks focused and clearly described +- You can mix direct work and chain runs in the same conversation`, + }; + }); + + // ── Session Start ─────────────────────────── + + pi.on("session_start", async (_event, _ctx) => { + applyExtensionDefaults(import.meta.url, _ctx); + // Clear widget with both old and new ctx — one of them will be valid + if (widgetCtx) { + widgetCtx.ui.setWidget("agent-chain", undefined); + } + _ctx.ui.setWidget("agent-chain", undefined); + widgetCtx = _ctx; + + // Reset execution state — widget re-registration deferred to before_agent_start + stepStates = []; + activeChain = null; + pendingReset = true; + + // Wipe chain session files — reset agent context on /new and launch + const sessDir = join(_ctx.cwd, ".pi", "agent-sessions"); + if (existsSync(sessDir)) { + for (const f of readdirSync(sessDir)) { + if (f.startsWith("chain-") && f.endsWith(".json")) { + try { unlinkSync(join(sessDir, f)); } catch {} + } + } + } + + // Reload chains + clear agentSessions map (all agents start fresh) + loadChains(_ctx.cwd); + + if (chains.length === 0) { + _ctx.ui.notify("No chains found in .pi/agents/agent-chain.yaml", "warning"); + return; + } + + // Default to first chain — use /chain to switch + activateChain(chains[0]); + + // run_chain is registered as a tool — available alongside all default tools + + const flow = activeChain!.steps.map(s => displayName(s.agent)).join(" → "); + _ctx.ui.setStatus("agent-chain", `Chain: ${activeChain!.name} (${activeChain!.steps.length} steps)`); + _ctx.ui.notify( + `Chain: ${activeChain!.name}\n${activeChain!.description}\n${flow}\n\n` + + `/chain Switch chain\n` + + `/chain-list List all chains`, + "info", + ); + + // Footer: model | chain name | context bar + _ctx.ui.setFooter((_tui, theme, _footerData) => ({ + dispose: () => {}, + invalidate() {}, + render(width: number): string[] { + const model = _ctx.model?.id || "no-model"; + const usage = _ctx.getContextUsage(); + const pct = usage ? usage.percent : 0; + const filled = Math.round(pct / 10); + const bar = "#".repeat(filled) + "-".repeat(10 - filled); + + const chainLabel = activeChain + ? theme.fg("accent", activeChain.name) + : theme.fg("dim", "no chain"); + + const left = theme.fg("dim", ` ${model}`) + + theme.fg("muted", " · ") + + chainLabel; + const right = theme.fg("dim", `[${bar}] ${Math.round(pct)}% `); + const pad = " ".repeat(Math.max(1, width - visibleWidth(left) - visibleWidth(right))); + + return [truncateToWidth(left + pad + right, width)]; + }, + })); + }); +} diff --git a/extensions/agent-team.ts b/extensions/agent-team.ts new file mode 100644 index 0000000..66ecbef --- /dev/null +++ b/extensions/agent-team.ts @@ -0,0 +1,734 @@ +/** + * Agent Team — Dispatcher-only orchestrator with grid dashboard + * + * The primary Pi agent has NO codebase tools. It can ONLY delegate work + * to specialist agents via the `dispatch_agent` tool. Each specialist + * maintains its own Pi session for cross-invocation memory. + * + * Loads agent definitions from agents/*.md, .claude/agents/*.md, .pi/agents/*.md. + * Teams are defined in .pi/agents/teams.yaml — on boot a select dialog lets + * you pick which team to work with. Only team members are available for dispatch. + * + * Commands: + * /agents-team — switch active team + * /agents-list — list loaded agents + * /agents-grid N — set column count (default 2) + * + * Usage: pi -e extensions/agent-team.ts + */ + +import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import { Type } from "@sinclair/typebox"; +import { Text, type AutocompleteItem, truncateToWidth, visibleWidth } from "@mariozechner/pi-tui"; +import { spawn } from "child_process"; +import { readdirSync, readFileSync, existsSync, mkdirSync, unlinkSync } from "fs"; +import { join, resolve } from "path"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +// ── Types ──────────────────────────────────────── + +interface AgentDef { + name: string; + description: string; + tools: string; + systemPrompt: string; + file: string; +} + +interface AgentState { + def: AgentDef; + status: "idle" | "running" | "done" | "error"; + task: string; + toolCount: number; + elapsed: number; + lastWork: string; + contextPct: number; + sessionFile: string | null; + runCount: number; + timer?: ReturnType; +} + +// ── Display Name Helper ────────────────────────── + +function displayName(name: string): string { + return name.split("-").map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(" "); +} + +// ── Teams YAML Parser ──────────────────────────── + +function parseTeamsYaml(raw: string): Record { + const teams: Record = {}; + let current: string | null = null; + for (const line of raw.split("\n")) { + const teamMatch = line.match(/^(\S[^:]*):$/); + if (teamMatch) { + current = teamMatch[1].trim(); + teams[current] = []; + continue; + } + const itemMatch = line.match(/^\s+-\s+(.+)$/); + if (itemMatch && current) { + teams[current].push(itemMatch[1].trim()); + } + } + return teams; +} + +// ── Frontmatter Parser ─────────────────────────── + +function parseAgentFile(filePath: string): AgentDef | null { + try { + const raw = readFileSync(filePath, "utf-8"); + const match = raw.match(/^---\n([\s\S]*?)\n---\n([\s\S]*)$/); + if (!match) return null; + + const frontmatter: Record = {}; + for (const line of match[1].split("\n")) { + const idx = line.indexOf(":"); + if (idx > 0) { + frontmatter[line.slice(0, idx).trim()] = line.slice(idx + 1).trim(); + } + } + + if (!frontmatter.name) return null; + + return { + name: frontmatter.name, + description: frontmatter.description || "", + tools: frontmatter.tools || "read,grep,find,ls", + systemPrompt: match[2].trim(), + file: filePath, + }; + } catch { + return null; + } +} + +function scanAgentDirs(cwd: string): AgentDef[] { + const dirs = [ + join(cwd, "agents"), + join(cwd, ".claude", "agents"), + join(cwd, ".pi", "agents"), + ]; + + const agents: AgentDef[] = []; + const seen = new Set(); + + for (const dir of dirs) { + if (!existsSync(dir)) continue; + try { + for (const file of readdirSync(dir)) { + if (!file.endsWith(".md")) continue; + const fullPath = resolve(dir, file); + const def = parseAgentFile(fullPath); + if (def && !seen.has(def.name.toLowerCase())) { + seen.add(def.name.toLowerCase()); + agents.push(def); + } + } + } catch {} + } + + return agents; +} + +// ── Extension ──────────────────────────────────── + +export default function (pi: ExtensionAPI) { + const agentStates: Map = new Map(); + let allAgentDefs: AgentDef[] = []; + let teams: Record = {}; + let activeTeamName = ""; + let gridCols = 2; + let widgetCtx: any; + let sessionDir = ""; + let contextWindow = 0; + + function loadAgents(cwd: string) { + // Create session storage dir + sessionDir = join(cwd, ".pi", "agent-sessions"); + if (!existsSync(sessionDir)) { + mkdirSync(sessionDir, { recursive: true }); + } + + // Load all agent definitions + allAgentDefs = scanAgentDirs(cwd); + + // Load teams from .pi/agents/teams.yaml + const teamsPath = join(cwd, ".pi", "agents", "teams.yaml"); + if (existsSync(teamsPath)) { + try { + teams = parseTeamsYaml(readFileSync(teamsPath, "utf-8")); + } catch { + teams = {}; + } + } else { + teams = {}; + } + + // If no teams defined, create a default "all" team + if (Object.keys(teams).length === 0) { + teams = { all: allAgentDefs.map(d => d.name) }; + } + } + + function activateTeam(teamName: string) { + activeTeamName = teamName; + const members = teams[teamName] || []; + const defsByName = new Map(allAgentDefs.map(d => [d.name.toLowerCase(), d])); + + agentStates.clear(); + for (const member of members) { + const def = defsByName.get(member.toLowerCase()); + if (!def) continue; + const key = def.name.toLowerCase().replace(/\s+/g, "-"); + const sessionFile = join(sessionDir, `${key}.json`); + agentStates.set(def.name.toLowerCase(), { + def, + status: "idle", + task: "", + toolCount: 0, + elapsed: 0, + lastWork: "", + contextPct: 0, + sessionFile: existsSync(sessionFile) ? sessionFile : null, + runCount: 0, + }); + } + + // Auto-size grid columns based on team size + const size = agentStates.size; + gridCols = size <= 3 ? size : size === 4 ? 2 : 3; + } + + // ── Grid Rendering ─────────────────────────── + + function renderCard(state: AgentState, colWidth: number, theme: any): string[] { + const w = colWidth - 2; + const truncate = (s: string, max: number) => s.length > max ? s.slice(0, max - 3) + "..." : s; + + const statusColor = state.status === "idle" ? "dim" + : state.status === "running" ? "accent" + : state.status === "done" ? "success" : "error"; + const statusIcon = state.status === "idle" ? "○" + : state.status === "running" ? "●" + : state.status === "done" ? "✓" : "✗"; + + const name = displayName(state.def.name); + const nameStr = theme.fg("accent", theme.bold(truncate(name, w))); + const nameVisible = Math.min(name.length, w); + + const statusStr = `${statusIcon} ${state.status}`; + const timeStr = state.status !== "idle" ? ` ${Math.round(state.elapsed / 1000)}s` : ""; + const statusLine = theme.fg(statusColor, statusStr + timeStr); + const statusVisible = statusStr.length + timeStr.length; + + // Context bar: 5 blocks + percent + const filled = Math.ceil(state.contextPct / 20); + const bar = "#".repeat(filled) + "-".repeat(5 - filled); + const ctxStr = `[${bar}] ${Math.ceil(state.contextPct)}%`; + const ctxLine = theme.fg("dim", ctxStr); + const ctxVisible = ctxStr.length; + + const workRaw = state.task + ? (state.lastWork || state.task) + : state.def.description; + const workText = truncate(workRaw, Math.min(50, w - 1)); + const workLine = theme.fg("muted", workText); + const workVisible = workText.length; + + const top = "┌" + "─".repeat(w) + "┐"; + const bot = "└" + "─".repeat(w) + "┘"; + const border = (content: string, visLen: number) => + theme.fg("dim", "│") + content + " ".repeat(Math.max(0, w - visLen)) + theme.fg("dim", "│"); + + return [ + theme.fg("dim", top), + border(" " + nameStr, 1 + nameVisible), + border(" " + statusLine, 1 + statusVisible), + border(" " + ctxLine, 1 + ctxVisible), + border(" " + workLine, 1 + workVisible), + theme.fg("dim", bot), + ]; + } + + function updateWidget() { + if (!widgetCtx) return; + + widgetCtx.ui.setWidget("agent-team", (_tui: any, theme: any) => { + const text = new Text("", 0, 1); + + return { + render(width: number): string[] { + if (agentStates.size === 0) { + text.setText(theme.fg("dim", "No agents found. Add .md files to agents/")); + return text.render(width); + } + + const cols = Math.min(gridCols, agentStates.size); + const gap = 1; + const colWidth = Math.floor((width - gap * (cols - 1)) / cols); + const agents = Array.from(agentStates.values()); + const rows: string[][] = []; + + for (let i = 0; i < agents.length; i += cols) { + const rowAgents = agents.slice(i, i + cols); + const cards = rowAgents.map(a => renderCard(a, colWidth, theme)); + + while (cards.length < cols) { + cards.push(Array(6).fill(" ".repeat(colWidth))); + } + + const cardHeight = cards[0].length; + for (let line = 0; line < cardHeight; line++) { + rows.push(cards.map(card => card[line] || "")); + } + } + + const output = rows.map(cols => cols.join(" ".repeat(gap))); + text.setText(output.join("\n")); + return text.render(width); + }, + invalidate() { + text.invalidate(); + }, + }; + }); + } + + // ── Dispatch Agent (returns Promise) ───────── + + function dispatchAgent( + agentName: string, + task: string, + ctx: any, + ): Promise<{ output: string; exitCode: number; elapsed: number }> { + const key = agentName.toLowerCase(); + const state = agentStates.get(key); + if (!state) { + return Promise.resolve({ + output: `Agent "${agentName}" not found. Available: ${Array.from(agentStates.values()).map(s => displayName(s.def.name)).join(", ")}`, + exitCode: 1, + elapsed: 0, + }); + } + + if (state.status === "running") { + return Promise.resolve({ + output: `Agent "${displayName(state.def.name)}" is already running. Wait for it to finish.`, + exitCode: 1, + elapsed: 0, + }); + } + + state.status = "running"; + state.task = task; + state.toolCount = 0; + state.elapsed = 0; + state.lastWork = ""; + state.runCount++; + updateWidget(); + + const startTime = Date.now(); + state.timer = setInterval(() => { + state.elapsed = Date.now() - startTime; + updateWidget(); + }, 1000); + + const model = ctx.model + ? `${ctx.model.provider}/${ctx.model.id}` + : "openrouter/google/gemini-3-flash-preview"; + + // Session file for this agent + const agentKey = state.def.name.toLowerCase().replace(/\s+/g, "-"); + const agentSessionFile = join(sessionDir, `${agentKey}.json`); + + // Build args — first run creates session, subsequent runs resume + const args = [ + "--mode", "json", + "-p", + "--no-extensions", + "--model", model, + "--tools", state.def.tools, + "--thinking", "off", + "--append-system-prompt", state.def.systemPrompt, + "--session", agentSessionFile, + ]; + + // Continue existing session if we have one + if (state.sessionFile) { + args.push("-c"); + } + + args.push(task); + + const textChunks: string[] = []; + + return new Promise((resolve) => { + const proc = spawn("pi", args, { + stdio: ["ignore", "pipe", "pipe"], + env: { ...process.env }, + }); + + let buffer = ""; + + proc.stdout!.setEncoding("utf-8"); + proc.stdout!.on("data", (chunk: string) => { + buffer += chunk; + const lines = buffer.split("\n"); + buffer = lines.pop() || ""; + for (const line of lines) { + if (!line.trim()) continue; + try { + const event = JSON.parse(line); + if (event.type === "message_update") { + const delta = event.assistantMessageEvent; + if (delta?.type === "text_delta") { + textChunks.push(delta.delta || ""); + const full = textChunks.join(""); + const last = full.split("\n").filter((l: string) => l.trim()).pop() || ""; + state.lastWork = last; + updateWidget(); + } + } else if (event.type === "tool_execution_start") { + state.toolCount++; + updateWidget(); + } else if (event.type === "message_end") { + const msg = event.message; + if (msg?.usage && contextWindow > 0) { + state.contextPct = ((msg.usage.input || 0) / contextWindow) * 100; + updateWidget(); + } + } else if (event.type === "agent_end") { + const msgs = event.messages || []; + const last = [...msgs].reverse().find((m: any) => m.role === "assistant"); + if (last?.usage && contextWindow > 0) { + state.contextPct = ((last.usage.input || 0) / contextWindow) * 100; + updateWidget(); + } + } + } catch {} + } + }); + + proc.stderr!.setEncoding("utf-8"); + proc.stderr!.on("data", () => {}); + + proc.on("close", (code) => { + if (buffer.trim()) { + try { + const event = JSON.parse(buffer); + if (event.type === "message_update") { + const delta = event.assistantMessageEvent; + if (delta?.type === "text_delta") textChunks.push(delta.delta || ""); + } + } catch {} + } + + clearInterval(state.timer); + state.elapsed = Date.now() - startTime; + state.status = code === 0 ? "done" : "error"; + + // Mark session file as available for resume + if (code === 0) { + state.sessionFile = agentSessionFile; + } + + const full = textChunks.join(""); + state.lastWork = full.split("\n").filter((l: string) => l.trim()).pop() || ""; + updateWidget(); + + ctx.ui.notify( + `${displayName(state.def.name)} ${state.status} in ${Math.round(state.elapsed / 1000)}s`, + state.status === "done" ? "success" : "error" + ); + + resolve({ + output: full, + exitCode: code ?? 1, + elapsed: state.elapsed, + }); + }); + + proc.on("error", (err) => { + clearInterval(state.timer); + state.status = "error"; + state.lastWork = `Error: ${err.message}`; + updateWidget(); + resolve({ + output: `Error spawning agent: ${err.message}`, + exitCode: 1, + elapsed: Date.now() - startTime, + }); + }); + }); + } + + // ── dispatch_agent Tool (registered at top level) ── + + pi.registerTool({ + name: "dispatch_agent", + label: "Dispatch Agent", + description: "Dispatch a task to a specialist agent. The agent will execute the task and return the result. Use the system prompt to see available agent names.", + parameters: Type.Object({ + agent: Type.String({ description: "Agent name (case-insensitive)" }), + task: Type.String({ description: "Task description for the agent to execute" }), + }), + + async execute(_toolCallId, params, _signal, onUpdate, ctx) { + const { agent, task } = params as { agent: string; task: string }; + + try { + if (onUpdate) { + onUpdate({ + content: [{ type: "text", text: `Dispatching to ${agent}...` }], + details: { agent, task, status: "dispatching" }, + }); + } + + const result = await dispatchAgent(agent, task, ctx); + + const truncated = result.output.length > 8000 + ? result.output.slice(0, 8000) + "\n\n... [truncated]" + : result.output; + + const status = result.exitCode === 0 ? "done" : "error"; + const summary = `[${agent}] ${status} in ${Math.round(result.elapsed / 1000)}s`; + + return { + content: [{ type: "text", text: `${summary}\n\n${truncated}` }], + details: { + agent, + task, + status, + elapsed: result.elapsed, + exitCode: result.exitCode, + fullOutput: result.output, + }, + }; + } catch (err: any) { + return { + content: [{ type: "text", text: `Error dispatching to ${agent}: ${err?.message || err}` }], + details: { agent, task, status: "error", elapsed: 0, exitCode: 1, fullOutput: "" }, + }; + } + }, + + renderCall(args, theme) { + const agentName = (args as any).agent || "?"; + const task = (args as any).task || ""; + const preview = task.length > 60 ? task.slice(0, 57) + "..." : task; + return new Text( + theme.fg("toolTitle", theme.bold("dispatch_agent ")) + + theme.fg("accent", agentName) + + theme.fg("dim", " — ") + + theme.fg("muted", preview), + 0, 0, + ); + }, + + renderResult(result, options, theme) { + const details = result.details as any; + if (!details) { + const text = result.content[0]; + return new Text(text?.type === "text" ? text.text : "", 0, 0); + } + + // Streaming/partial result while agent is still running + if (options.isPartial || details.status === "dispatching") { + return new Text( + theme.fg("accent", `● ${details.agent || "?"}`) + + theme.fg("dim", " working..."), + 0, 0, + ); + } + + const icon = details.status === "done" ? "✓" : "✗"; + const color = details.status === "done" ? "success" : "error"; + const elapsed = typeof details.elapsed === "number" ? Math.round(details.elapsed / 1000) : 0; + const header = theme.fg(color, `${icon} ${details.agent}`) + + theme.fg("dim", ` ${elapsed}s`); + + if (options.expanded && details.fullOutput) { + const output = details.fullOutput.length > 4000 + ? details.fullOutput.slice(0, 4000) + "\n... [truncated]" + : details.fullOutput; + return new Text(header + "\n" + theme.fg("muted", output), 0, 0); + } + + return new Text(header, 0, 0); + }, + }); + + // ── Commands ───────────────────────────────── + + pi.registerCommand("agents-team", { + description: "Select a team to work with", + handler: async (_args, ctx) => { + widgetCtx = ctx; + const teamNames = Object.keys(teams); + if (teamNames.length === 0) { + ctx.ui.notify("No teams defined in .pi/agents/teams.yaml", "warning"); + return; + } + + const options = teamNames.map(name => { + const members = teams[name].map(m => displayName(m)); + return `${name} — ${members.join(", ")}`; + }); + + const choice = await ctx.ui.select("Select Team", options); + if (choice === undefined) return; + + const idx = options.indexOf(choice); + const name = teamNames[idx]; + activateTeam(name); + updateWidget(); + ctx.ui.setStatus("agent-team", `Team: ${name} (${agentStates.size})`); + ctx.ui.notify(`Team: ${name} — ${Array.from(agentStates.values()).map(s => displayName(s.def.name)).join(", ")}`, "info"); + }, + }); + + pi.registerCommand("agents-list", { + description: "List all loaded agents", + handler: async (_args, _ctx) => { + widgetCtx = _ctx; + const names = Array.from(agentStates.values()) + .map(s => { + const session = s.sessionFile ? "resumed" : "new"; + return `${displayName(s.def.name)} (${s.status}, ${session}, runs: ${s.runCount}): ${s.def.description}`; + }) + .join("\n"); + _ctx.ui.notify(names || "No agents loaded", "info"); + }, + }); + + pi.registerCommand("agents-grid", { + description: "Set grid columns: /agents-grid <1-6>", + getArgumentCompletions: (prefix: string): AutocompleteItem[] | null => { + const items = ["1", "2", "3", "4", "5", "6"].map(n => ({ + value: n, + label: `${n} columns`, + })); + const filtered = items.filter(i => i.value.startsWith(prefix)); + return filtered.length > 0 ? filtered : items; + }, + handler: async (args, _ctx) => { + widgetCtx = _ctx; + const n = parseInt(args?.trim() || "", 10); + if (n >= 1 && n <= 6) { + gridCols = n; + _ctx.ui.notify(`Grid set to ${gridCols} columns`, "info"); + updateWidget(); + } else { + _ctx.ui.notify("Usage: /agents-grid <1-6>", "error"); + } + }, + }); + + // ── System Prompt Override ─────────────────── + + pi.on("before_agent_start", async (_event, _ctx) => { + // Build dynamic agent catalog from active team only + const agentCatalog = Array.from(agentStates.values()) + .map(s => `### ${displayName(s.def.name)}\n**Dispatch as:** \`${s.def.name}\`\n${s.def.description}\n**Tools:** ${s.def.tools}`) + .join("\n\n"); + + const teamMembers = Array.from(agentStates.values()).map(s => displayName(s.def.name)).join(", "); + + return { + systemPrompt: `You are a dispatcher agent. You coordinate specialist agents to accomplish tasks. +You do NOT have direct access to the codebase. You MUST delegate all work through +agents using the dispatch_agent tool. + +## Active Team: ${activeTeamName} +Members: ${teamMembers} +You can ONLY dispatch to agents listed below. Do not attempt to dispatch to agents outside this team. + +## How to Work +- Analyze the user's request and break it into clear sub-tasks +- Choose the right agent(s) for each sub-task +- Dispatch tasks using the dispatch_agent tool +- Review results and dispatch follow-up agents if needed +- If a task fails, try a different agent or adjust the task description +- Summarize the outcome for the user + +## Rules +- NEVER try to read, write, or execute code directly — you have no such tools +- ALWAYS use dispatch_agent to get work done +- You can chain agents: use scout to explore, then builder to implement +- You can dispatch the same agent multiple times with different tasks +- Keep tasks focused — one clear objective per dispatch + +## Agents + +${agentCatalog}`, + }; + }); + + // ── Session Start ──────────────────────────── + + pi.on("session_start", async (_event, _ctx) => { + applyExtensionDefaults(import.meta.url, _ctx); + // Clear widgets from previous session + if (widgetCtx) { + widgetCtx.ui.setWidget("agent-team", undefined); + } + widgetCtx = _ctx; + contextWindow = _ctx.model?.contextWindow || 0; + + // Wipe old agent session files so subagents start fresh + const sessDir = join(_ctx.cwd, ".pi", "agent-sessions"); + if (existsSync(sessDir)) { + for (const f of readdirSync(sessDir)) { + if (f.endsWith(".json")) { + try { unlinkSync(join(sessDir, f)); } catch {} + } + } + } + + loadAgents(_ctx.cwd); + + // Default to first team — use /agents-team to switch + const teamNames = Object.keys(teams); + if (teamNames.length > 0) { + activateTeam(teamNames[0]); + } + + // Lock down to dispatcher-only (tool already registered at top level) + pi.setActiveTools(["dispatch_agent"]); + + _ctx.ui.setStatus("agent-team", `Team: ${activeTeamName} (${agentStates.size})`); + const members = Array.from(agentStates.values()).map(s => displayName(s.def.name)).join(", "); + _ctx.ui.notify( + `Team: ${activeTeamName} (${members})\n` + + `Team sets loaded from: .pi/agents/teams.yaml\n\n` + + `/agents-team Select a team\n` + + `/agents-list List active agents and status\n` + + `/agents-grid <1-6> Set grid column count`, + "info", + ); + updateWidget(); + + // Footer: model | team | context bar + _ctx.ui.setFooter((_tui, theme, _footerData) => ({ + dispose: () => {}, + invalidate() {}, + render(width: number): string[] { + const model = _ctx.model?.id || "no-model"; + const usage = _ctx.getContextUsage(); + const pct = usage ? usage.percent : 0; + const filled = Math.round(pct / 10); + const bar = "#".repeat(filled) + "-".repeat(10 - filled); + + const left = theme.fg("dim", ` ${model}`) + + theme.fg("muted", " · ") + + theme.fg("accent", activeTeamName); + const right = theme.fg("dim", `[${bar}] ${Math.round(pct)}% `); + const pad = " ".repeat(Math.max(1, width - visibleWidth(left) - visibleWidth(right))); + + return [truncateToWidth(left + pad + right, width)]; + }, + })); + }); +} diff --git a/extensions/cross-agent.ts b/extensions/cross-agent.ts new file mode 100644 index 0000000..a7e17a4 --- /dev/null +++ b/extensions/cross-agent.ts @@ -0,0 +1,265 @@ +/** + * Cross-Agent — Load commands, skills, and agents from other AI coding agents + * + * Scans .claude/, .gemini/, .codex/ directories (project + global) for: + * commands/*.md → registered as /name + * skills/ → listed as /skill:name (discovery only) + * agents/*.md → listed as @name (discovery only) + * + * Usage: pi -e extensions/cross-agent.ts + */ + +import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import { readdirSync, readFileSync, existsSync, statSync } from "node:fs"; +import { join, basename } from "node:path"; +import { homedir } from "node:os"; +import { applyExtensionDefaults } from "./themeMap.ts"; +import { wrapTextWithAnsi, visibleWidth } from "@mariozechner/pi-tui"; + +// --- Synthwave palette --- +function bg(s: string): string { + return `\x1b[48;2;52;20;58m${s}\x1b[49m`; +} +function pink(s: string): string { + return `\x1b[38;2;255;126;219m${s}\x1b[39m`; +} +function cyan(s: string): string { + return `\x1b[38;2;54;249;246m${s}\x1b[39m`; +} +function green(s: string): string { + return `\x1b[38;2;114;241;184m${s}\x1b[39m`; +} +function yellow(s: string): string { + return `\x1b[38;2;254;222;93m${s}\x1b[39m`; +} +function dim(s: string): string { + return `\x1b[38;2;120;100;140m${s}\x1b[39m`; +} +function bold(s: string): string { + return `\x1b[1m${s}\x1b[22m`; +} + +interface Discovered { + name: string; + description: string; + content: string; +} + +interface SourceGroup { + source: string; + commands: Discovered[]; + skills: string[]; + agents: Discovered[]; +} + +function parseFrontmatter(raw: string): { description: string; body: string; fields: Record } { + const match = raw.match(/^---\s*\n([\s\S]*?)\n---\s*\n([\s\S]*)$/); + if (!match) return { description: "", body: raw, fields: {} }; + + const front = match[1]; + const body = match[2]; + const fields: Record = {}; + for (const line of front.split("\n")) { + const idx = line.indexOf(":"); + if (idx > 0) fields[line.slice(0, idx).trim()] = line.slice(idx + 1).trim(); + } + return { description: fields.description || "", body, fields }; +} + +function expandArgs(template: string, args: string): string { + const parts = args.split(/\s+/).filter(Boolean); + let result = template; + result = result.replace(/\$ARGUMENTS|\$@/g, args); + for (let i = 0; i < parts.length; i++) { + result = result.replaceAll(`$${i + 1}`, parts[i]); + } + return result; +} + +function scanCommands(dir: string): Discovered[] { + if (!existsSync(dir)) return []; + const items: Discovered[] = []; + try { + for (const file of readdirSync(dir)) { + if (!file.endsWith(".md")) continue; + const raw = readFileSync(join(dir, file), "utf-8"); + const { description, body } = parseFrontmatter(raw); + items.push({ + name: basename(file, ".md"), + description: description || body.split("\n").find((l) => l.trim())?.trim() || "", + content: body, + }); + } + } catch {} + return items; +} + +function scanSkills(dir: string): string[] { + if (!existsSync(dir)) return []; + const names: string[] = []; + try { + for (const entry of readdirSync(dir)) { + const skillFile = join(dir, entry, "SKILL.md"); + const flatFile = join(dir, entry); + if (existsSync(skillFile) && statSync(skillFile).isFile()) { + names.push(entry); + } else if (entry.endsWith(".md") && statSync(flatFile).isFile()) { + names.push(basename(entry, ".md")); + } + } + } catch {} + return names; +} + +function scanAgents(dir: string): Discovered[] { + if (!existsSync(dir)) return []; + const items: Discovered[] = []; + try { + for (const file of readdirSync(dir)) { + if (!file.endsWith(".md")) continue; + const raw = readFileSync(join(dir, file), "utf-8"); + const { fields } = parseFrontmatter(raw); + items.push({ + name: fields.name || basename(file, ".md"), + description: fields.description || "", + content: raw, + }); + } + } catch {} + return items; +} + +export default function (pi: ExtensionAPI) { + pi.on("session_start", async (_event, ctx) => { + applyExtensionDefaults(import.meta.url, ctx); + const home = homedir(); + const cwd = ctx.cwd; + const providers = ["claude", "gemini", "codex"]; + const groups: SourceGroup[] = []; + + for (const p of providers) { + for (const [dir, label] of [ + [join(cwd, `.${p}`), `.${p}`], + [join(home, `.${p}`), `~/.${p}`], + ] as const) { + const commands = scanCommands(join(dir, "commands")); + const skills = scanSkills(join(dir, "skills")); + const agents = scanAgents(join(dir, "agents")); + + if (commands.length || skills.length || agents.length) { + groups.push({ source: label, commands, skills, agents }); + } + } + } + + // Also scan .pi/agents/ (pi-vs-cc pattern) + const localAgents = scanAgents(join(cwd, ".pi", "agents")); + if (localAgents.length) { + groups.push({ source: ".pi/agents", commands: [], skills: [], agents: localAgents }); + } + + // Register commands + const seenCmds = new Set(); + let totalCommands = 0; + let totalSkills = 0; + let totalAgents = 0; + + for (const g of groups) { + totalSkills += g.skills.length; + totalAgents += g.agents.length; + + for (const cmd of g.commands) { + if (seenCmds.has(cmd.name)) continue; + seenCmds.add(cmd.name); + totalCommands++; + pi.registerCommand(cmd.name, { + description: `[${g.source}] ${cmd.description}`.slice(0, 120), + handler: async (args) => { + pi.sendUserMessage(expandArgs(cmd.content, args || "")); + }, + }); + } + } + + if (groups.length === 0) return; + + // We delay slightly so it doesn't get instantly overwritten by system-select's default startup notify + setTimeout(() => { + if (!ctx.hasUI) return; + // Reduce max width slightly to ensure it never overflows and breaks the next line + const width = Math.min((process.stdout.columns || 80) - 4, 100); + const pad = bg(" ".repeat(width)); + const lines: string[] = []; + + lines.push(""); // space from prev + + for (let i = 0; i < groups.length; i++) { + const g = groups[i]; + + // Title with counts + const counts: string[] = []; + if (g.skills.length) counts.push(yellow("(") + green(`${g.skills.length}`) + dim(` skill${g.skills.length > 1 ? "s" : ""}`) + yellow(")")); + if (g.commands.length) counts.push(yellow("(") + green(`${g.commands.length}`) + dim(` command${g.commands.length > 1 ? "s" : ""}`) + yellow(")")); + if (g.agents.length) counts.push(yellow("(") + green(`${g.agents.length}`) + dim(` agent${g.agents.length > 1 ? "s" : ""}`) + yellow(")")); + const countStr = counts.length ? " " + counts.join(" ") : ""; + lines.push(pink(bold(` ${g.source}`)) + countStr); + + // Build body content + const items: string[] = []; + if (g.commands.length) { + items.push( + yellow("/") + + g.commands.map((c) => cyan(c.name)).join(yellow(", /")) + ); + } + if (g.skills.length) { + items.push( + yellow("/skill:") + + g.skills.map((s) => cyan(s)).join(yellow(", /skill:")) + ); + } + if (g.agents.length) { + items.push( + yellow("@") + + g.agents.map((a) => green(a.name)).join(yellow(", @")) + ); + } + + const body = items.join("\n"); + + // Top padding + lines.push(pad); + + // Wrap body text, cap at 3 rows + const maxRows = 3; + const innerWidth = width - 4; + const wrapped = wrapTextWithAnsi(body, innerWidth); + const totalItems = g.commands.length + g.skills.length + g.agents.length; + const shown = wrapped.slice(0, maxRows); + + for (const wline of shown) { + const vis = visibleWidth(wline); + const fill = Math.max(0, width - vis - 4); + lines.push(bg(" " + wline + " ".repeat(fill) + " ")); + } + + if (wrapped.length > maxRows) { + const overflow = dim(` ... ${totalItems - 15 > 0 ? totalItems - 15 : "more"} more`); + const oVis = visibleWidth(overflow); + const oFill = Math.max(0, width - oVis - 2); + lines.push(bg(overflow + " ".repeat(oFill) + " ")); + } + + // Bottom padding + lines.push(pad); + + // Spacing between groups + if (i < groups.length - 1) lines.push(""); + } + + // We send it as "info" which forces it to be a raw text element in the chat + // without the widget container, but preserving all our ANSI colors! + ctx.ui.notify(lines.join("\n"), "info"); + }, 100); + }); +} diff --git a/extensions/damage-control.ts b/extensions/damage-control.ts new file mode 100644 index 0000000..c34912a --- /dev/null +++ b/extensions/damage-control.ts @@ -0,0 +1,206 @@ +import type { ExtensionAPI, ToolCallEvent } from "@mariozechner/pi-coding-agent"; +import { isToolCallEventType } from "@mariozechner/pi-coding-agent"; +import { parse as yamlParse } from "yaml"; +import * as fs from "fs"; +import * as path from "path"; +import * as os from "os"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +interface Rule { + pattern: string; + reason: string; + ask?: boolean; +} + +interface Rules { + bashToolPatterns: Rule[]; + zeroAccessPaths: string[]; + readOnlyPaths: string[]; + noDeletePaths: string[]; +} + +export default function (pi: ExtensionAPI) { + let rules: Rules = { + bashToolPatterns: [], + zeroAccessPaths: [], + readOnlyPaths: [], + noDeletePaths: [], + }; + + function resolvePath(p: string, cwd: string): string { + if (p.startsWith("~")) { + p = path.join(os.homedir(), p.slice(1)); + } + return path.resolve(cwd, p); + } + + function isPathMatch(targetPath: string, pattern: string, cwd: string): boolean { + // Simple glob-to-regex or substring match + // Expand tilde in pattern if present + const resolvedPattern = pattern.startsWith("~") ? path.join(os.homedir(), pattern.slice(1)) : pattern; + + // If pattern ends with /, it's a directory match + if (resolvedPattern.endsWith("/")) { + const absolutePattern = path.isAbsolute(resolvedPattern) ? resolvedPattern : path.resolve(cwd, resolvedPattern); + return targetPath.startsWith(absolutePattern); + } + + // Handle basic wildcards * + const regexPattern = resolvedPattern + .replace(/[.+^${}()|[\]\\]/g, "\\$&") // escape regex chars + .replace(/\*/g, ".*"); // convert * to .* + + const regex = new RegExp(`^${regexPattern}$|^${regexPattern}/|/${regexPattern}$|/${regexPattern}/`); + + // Match against absolute path and relative-to-cwd path + const relativePath = path.relative(cwd, targetPath); + + return regex.test(targetPath) || regex.test(relativePath) || targetPath.includes(resolvedPattern) || relativePath.includes(resolvedPattern); + } + + pi.on("session_start", async (_event, ctx) => { + applyExtensionDefaults(import.meta.url, ctx); + const rulesPath = path.join(ctx.cwd, ".pi", "damage-control-rules.yaml"); + try { + if (fs.existsSync(rulesPath)) { + const content = fs.readFileSync(rulesPath, "utf8"); + const loaded = yamlParse(content) as Partial; + rules = { + bashToolPatterns: loaded.bashToolPatterns || [], + zeroAccessPaths: loaded.zeroAccessPaths || [], + readOnlyPaths: loaded.readOnlyPaths || [], + noDeletePaths: loaded.noDeletePaths || [], + }; + ctx.ui.notify(`🛡️ Damage-Control: Loaded ${rules.bashToolPatterns.length + rules.zeroAccessPaths.length + rules.readOnlyPaths.length + rules.noDeletePaths.length} rules.`); + } else { + ctx.ui.notify("🛡️ Damage-Control: No rules found at .pi/damage-control-rules.yaml"); + } + } catch (err) { + ctx.ui.notify(`🛡️ Damage-Control: Failed to load rules: ${err instanceof Error ? err.message : String(err)}`); + } + + ctx.ui.setStatus(`🛡️ Damage-Control Active: ${rules.bashToolPatterns.length + rules.zeroAccessPaths.length + rules.readOnlyPaths.length + rules.noDeletePaths.length} Rules`); + }); + + pi.on("tool_call", async (event, ctx) => { + let violationReason: string | null = null; + let shouldAsk = false; + + // 1. Check Zero Access Paths for all tools that use path or glob + const checkPaths = (pathsToCheck: string[]) => { + for (const p of pathsToCheck) { + const resolved = resolvePath(p, ctx.cwd); + for (const zap of rules.zeroAccessPaths) { + if (isPathMatch(resolved, zap, ctx.cwd)) { + return `Access to zero-access path restricted: ${zap}`; + } + } + } + return null; + }; + + // Extract paths from tool input + const inputPaths: string[] = []; + if (isToolCallEventType("read", event) || isToolCallEventType("write", event) || isToolCallEventType("edit", event)) { + inputPaths.push(event.input.path); + } else if (isToolCallEventType("grep", event) || isToolCallEventType("find", event) || isToolCallEventType("ls", event)) { + inputPaths.push(event.input.path || "."); + } + + if (isToolCallEventType("grep", event) && event.input.glob) { + // Check glob field as well + for (const zap of rules.zeroAccessPaths) { + if (event.input.glob.includes(zap) || isPathMatch(event.input.glob, zap, ctx.cwd)) { + violationReason = `Glob matches zero-access path: ${zap}`; + break; + } + } + } + + if (!violationReason) { + violationReason = checkPaths(inputPaths); + } + + // 2. Tool-specific logic + if (!violationReason) { + if (isToolCallEventType("bash", event)) { + const command = event.input.command; + + // Check bashToolPatterns + for (const rule of rules.bashToolPatterns) { + const regex = new RegExp(rule.pattern); + if (regex.test(command)) { + violationReason = rule.reason; + shouldAsk = !!rule.ask; + break; + } + } + + // Check if bash command interacts with restricted paths + if (!violationReason) { + for (const zap of rules.zeroAccessPaths) { + if (command.includes(zap)) { + violationReason = `Bash command references zero-access path: ${zap}`; + break; + } + } + } + + if (!violationReason) { + for (const rop of rules.readOnlyPaths) { + // Heuristic: check if command might modify a read-only path + // Redirects, sed -i, rm, mv to, etc. + if (command.includes(rop) && (/[\s>|]/.test(command) || command.includes("rm") || command.includes("mv") || command.includes("sed"))) { + violationReason = `Bash command may modify read-only path: ${rop}`; + break; + } + } + } + + if (!violationReason) { + for (const ndp of rules.noDeletePaths) { + if (command.includes(ndp) && (command.includes("rm") || command.includes("mv"))) { + violationReason = `Bash command attempts to delete/move protected path: ${ndp}`; + break; + } + } + } + } else if (isToolCallEventType("write", event) || isToolCallEventType("edit", event)) { + // Check Read-Only paths + for (const p of inputPaths) { + const resolved = resolvePath(p, ctx.cwd); + for (const rop of rules.readOnlyPaths) { + if (isPathMatch(resolved, rop, ctx.cwd)) { + violationReason = `Modification of read-only path restricted: ${rop}`; + break; + } + } + } + } + } + + if (violationReason) { + if (shouldAsk) { + const confirmed = await ctx.ui.confirm("🛡️ Damage-Control Confirmation", `Dangerous command detected: ${violationReason}\n\nCommand: ${isToolCallEventType("bash", event) ? event.input.command : JSON.stringify(event.input)}\n\nDo you want to proceed?`, { timeout: 30000 }); + + if (!confirmed) { + ctx.ui.setStatus(`⚠️ Last Violation Blocked: ${violationReason.slice(0, 30)}...`); + pi.appendEntry("damage-control-log", { tool: event.toolName, input: event.input, rule: violationReason, action: "blocked_by_user" }); + ctx.abort(); + return { block: true, reason: `🛑 BLOCKED by Damage-Control: ${violationReason} (User denied)\n\nDO NOT attempt to work around this restriction. DO NOT retry with alternative commands, paths, or approaches that achieve the same result. Report this block to the user exactly as stated and ask how they would like to proceed.` }; + } else { + pi.appendEntry("damage-control-log", { tool: event.toolName, input: event.input, rule: violationReason, action: "confirmed_by_user" }); + return { block: false }; + } + } else { + ctx.ui.notify(`🛑 Damage-Control: Blocked ${event.toolName} due to ${violationReason}`); + ctx.ui.setStatus(`⚠️ Last Violation: ${violationReason.slice(0, 30)}...`); + pi.appendEntry("damage-control-log", { tool: event.toolName, input: event.input, rule: violationReason, action: "blocked" }); + ctx.abort(); + return { block: true, reason: `🛑 BLOCKED by Damage-Control: ${violationReason}\n\nDO NOT attempt to work around this restriction. DO NOT retry with alternative commands, paths, or approaches that achieve the same result. Report this block to the user exactly as stated and ask how they would like to proceed.` }; + } + } + + return { block: false }; + }); +} diff --git a/extensions/minimal.ts b/extensions/minimal.ts new file mode 100644 index 0000000..5fed862 --- /dev/null +++ b/extensions/minimal.ts @@ -0,0 +1,34 @@ +/** + * Minimal — Model name + context meter in a compact footer + * + * Shows model ID and a 10-block context usage bar: [###-------] 30% + * + * Usage: pi -e extensions/minimal.ts + */ + +import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import { applyExtensionDefaults } from "./themeMap.ts"; +import { truncateToWidth, visibleWidth } from "@mariozechner/pi-tui"; + +export default function (pi: ExtensionAPI) { + pi.on("session_start", async (_event, ctx) => { + applyExtensionDefaults(import.meta.url, ctx); + ctx.ui.setFooter((_tui, theme, _footerData) => ({ + dispose: () => {}, + invalidate() {}, + render(width: number): string[] { + const model = ctx.model?.id || "no-model"; + const usage = ctx.getContextUsage(); + const pct = (usage && usage.percent !== null) ? usage.percent : 0; + const filled = Math.round(pct / 10); + const bar = "#".repeat(filled) + "-".repeat(10 - filled); + + const left = theme.fg("dim", ` ${model}`); + const right = theme.fg("dim", `[${bar}] ${Math.round(pct)}% `); + const pad = " ".repeat(Math.max(1, width - visibleWidth(left) - visibleWidth(right))); + + return [truncateToWidth(left + pad + right, width)]; + }, + })); + }); +} \ No newline at end of file diff --git a/extensions/pi-pi.ts b/extensions/pi-pi.ts new file mode 100644 index 0000000..97c46d2 --- /dev/null +++ b/extensions/pi-pi.ts @@ -0,0 +1,633 @@ +/** + * Pi Pi — Meta-agent that builds Pi agents + * + * A team of domain-specific research experts (extensions, themes, skills, + * settings, TUI) operate in PARALLEL to gather documentation and patterns. + * The primary agent synthesizes their findings and WRITES the actual files. + * + * Each expert fetches fresh Pi documentation via firecrawl on first query. + * Experts are read-only researchers. The primary agent is the only writer. + * + * Commands: + * /experts — list available experts and their status + * /experts-grid N — set dashboard column count (default 3) + * + * Usage: pi -e extensions/pi-pi.ts + */ + +import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import { Type } from "@sinclair/typebox"; +import { Text, truncateToWidth, visibleWidth } from "@mariozechner/pi-tui"; +import { spawn } from "child_process"; +import { readdirSync, readFileSync, existsSync, mkdirSync } from "fs"; +import { join, resolve } from "path"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +// ── Types ──────────────────────────────────────── + +interface ExpertDef { + name: string; + description: string; + tools: string; + systemPrompt: string; + file: string; +} + +interface ExpertState { + def: ExpertDef; + status: "idle" | "researching" | "done" | "error"; + question: string; + elapsed: number; + lastLine: string; + queryCount: number; + timer?: ReturnType; +} + +// ── Helpers ────────────────────────────────────── + +function displayName(name: string): string { + return name.split("-").map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(" "); +} + +function parseAgentFile(filePath: string): ExpertDef | null { + try { + const raw = readFileSync(filePath, "utf-8"); + const match = raw.match(/^---\n([\s\S]*?)\n---\n([\s\S]*)$/); + if (!match) return null; + + const frontmatter: Record = {}; + for (const line of match[1].split("\n")) { + const idx = line.indexOf(":"); + if (idx > 0) { + frontmatter[line.slice(0, idx).trim()] = line.slice(idx + 1).trim(); + } + } + + if (!frontmatter.name) return null; + + return { + name: frontmatter.name, + description: frontmatter.description || "", + tools: frontmatter.tools || "read,grep,find,ls", + systemPrompt: match[2].trim(), + file: filePath, + }; + } catch { + return null; + } +} + +// ── Expert card colors ──────────────────────────── +// Each expert gets a unique hue: bg fills the card interior, +// br is the matching border foreground (brighter shade of same hue). +const EXPERT_COLORS: Record = { + "agent-expert": { bg: "\x1b[48;2;20;30;75m", br: "\x1b[38;2;70;110;210m" }, // navy + "config-expert": { bg: "\x1b[48;2;18;65;30m", br: "\x1b[38;2;55;175;90m" }, // forest + "ext-expert": { bg: "\x1b[48;2;80;18;28m", br: "\x1b[38;2;210;65;85m" }, // crimson + "keybinding-expert": { bg: "\x1b[48;2;50;22;85m", br: "\x1b[38;2;145;80;220m" }, // violet + "prompt-expert": { bg: "\x1b[48;2;80;55;12m", br: "\x1b[38;2;215;150;40m" }, // amber + "skill-expert": { bg: "\x1b[48;2;12;65;75m", br: "\x1b[38;2;40;175;195m" }, // teal + "theme-expert": { bg: "\x1b[48;2;80;18;62m", br: "\x1b[38;2;210;55;160m" }, // rose + "tui-expert": { bg: "\x1b[48;2;28;42;80m", br: "\x1b[38;2;85;120;210m" }, // slate + "cli-expert": { bg: "\x1b[48;2;60;80;20m", br: "\x1b[38;2;160;210;55m" }, // olive/lime +}; +const FG_RESET = "\x1b[39m"; +const BG_RESET = "\x1b[49m"; + +// ── Extension ──────────────────────────────────── + +export default function (pi: ExtensionAPI) { + const experts: Map = new Map(); + let gridCols = 3; + let widgetCtx: any; + + function loadExperts(cwd: string) { + // Pi Pi experts live in their own dedicated directory + const piPiDir = join(cwd, ".pi", "agents", "pi-pi"); + + experts.clear(); + + if (!existsSync(piPiDir)) return; + try { + for (const file of readdirSync(piPiDir)) { + if (!file.endsWith(".md")) continue; + if (file === "pi-orchestrator.md") continue; + const fullPath = resolve(piPiDir, file); + const def = parseAgentFile(fullPath); + if (def) { + const key = def.name.toLowerCase(); + if (!experts.has(key)) { + experts.set(key, { + def, + status: "idle", + question: "", + elapsed: 0, + lastLine: "", + queryCount: 0, + }); + } + } + } + } catch {} + } + + // ── Grid Rendering ─────────────────────────── + + function renderCard(state: ExpertState, colWidth: number, theme: any): string[] { + const w = colWidth - 2; + const truncate = (s: string, max: number) => s.length > max ? s.slice(0, max - 3) + "..." : s; + + const statusColor = state.status === "idle" ? "dim" + : state.status === "researching" ? "accent" + : state.status === "done" ? "success" : "error"; + const statusIcon = state.status === "idle" ? "○" + : state.status === "researching" ? "◉" + : state.status === "done" ? "✓" : "✗"; + + const name = displayName(state.def.name); + const nameStr = theme.fg("accent", theme.bold(truncate(name, w))); + const nameVisible = Math.min(name.length, w); + + const statusStr = `${statusIcon} ${state.status}`; + const timeStr = state.status !== "idle" ? ` ${Math.round(state.elapsed / 1000)}s` : ""; + const queriesStr = state.queryCount > 0 ? ` (${state.queryCount})` : ""; + const statusLine = theme.fg(statusColor, statusStr + timeStr + queriesStr); + const statusVisible = statusStr.length + timeStr.length + queriesStr.length; + + const workRaw = state.question || state.def.description; + const workText = truncate(workRaw, Math.min(50, w - 1)); + const workLine = theme.fg("muted", workText); + const workVisible = workText.length; + + const lastRaw = state.lastLine || ""; + const lastText = truncate(lastRaw, Math.min(50, w - 1)); + const lastLineRendered = lastText ? theme.fg("dim", lastText) : theme.fg("dim", "—"); + const lastVisible = lastText ? lastText.length : 1; + + const colors = EXPERT_COLORS[state.def.name]; + const bg = colors?.bg ?? ""; + const br = colors?.br ?? ""; + const bgr = bg ? BG_RESET : ""; + const fgr = br ? FG_RESET : ""; + + // br colors the box-drawing characters; bg fills behind them so the + // full card — top line, side bars, bottom line — is one solid block. + const bord = (s: string) => bg + br + s + bgr + fgr; + + const top = "┌" + "─".repeat(w) + "┐"; + const bot = "└" + "─".repeat(w) + "┘"; + + // bg fills the inner content area; re-applied before padding to ensure + // the full row is colored even if theme.fg uses a full ANSI reset inside. + const border = (content: string, visLen: number) => { + const pad = " ".repeat(Math.max(0, w - visLen)); + return bord("│") + bg + content + bg + pad + bgr + bord("│"); + }; + + return [ + bord(top), + border(" " + nameStr, 1 + nameVisible), + border(" " + statusLine, 1 + statusVisible), + border(" " + workLine, 1 + workVisible), + border(" " + lastLineRendered, 1 + lastVisible), + bord(bot), + ]; + } + + function updateWidget() { + if (!widgetCtx) return; + + widgetCtx.ui.setWidget("pi-pi-grid", (_tui: any, theme: any) => { + + return { + render(width: number): string[] { + if (experts.size === 0) { + return ["", theme.fg("dim", " No experts found. Add agent .md files to .pi/agents/pi-pi/")]; + } + + const cols = Math.min(gridCols, experts.size); + const gap = 1; + // avoid Text component's ANSI-width miscounting by returning raw lines + const colWidth = Math.floor((width - gap * (cols - 1)) / cols) - 1; + const allExperts = Array.from(experts.values()); + + const lines: string[] = [""]; // top margin + + for (let i = 0; i < allExperts.length; i += cols) { + const rowExperts = allExperts.slice(i, i + cols); + const cards = rowExperts.map(e => renderCard(e, colWidth, theme)); + + while (cards.length < cols) { + cards.push(Array(6).fill(" ".repeat(colWidth))); + } + + const cardHeight = cards[0].length; + for (let line = 0; line < cardHeight; line++) { + lines.push(cards.map(card => card[line] || "").join(" ".repeat(gap))); + } + } + + return lines; + }, + invalidate() {}, + }; + }); + } + + // ── Query Expert ───────────────────────────── + + function queryExpert( + expertName: string, + question: string, + ctx: any, + ): Promise<{ output: string; exitCode: number; elapsed: number }> { + const key = expertName.toLowerCase(); + const state = experts.get(key); + if (!state) { + return Promise.resolve({ + output: `Expert "${expertName}" not found. Available: ${Array.from(experts.values()).map(s => s.def.name).join(", ")}`, + exitCode: 1, + elapsed: 0, + }); + } + + if (state.status === "researching") { + return Promise.resolve({ + output: `Expert "${displayName(state.def.name)}" is already researching. Wait for it to finish.`, + exitCode: 1, + elapsed: 0, + }); + } + + state.status = "researching"; + state.question = question; + state.elapsed = 0; + state.lastLine = ""; + state.queryCount++; + updateWidget(); + + const startTime = Date.now(); + state.timer = setInterval(() => { + state.elapsed = Date.now() - startTime; + updateWidget(); + }, 1000); + + const model = ctx.model + ? `${ctx.model.provider}/${ctx.model.id}` + : "openrouter/google/gemini-3-flash-preview"; + + const args = [ + "--mode", "json", + "-p", + "--no-session", + "--no-extensions", + "--model", model, + "--tools", state.def.tools, + "--thinking", "off", + "--append-system-prompt", state.def.systemPrompt, + question, + ]; + + const textChunks: string[] = []; + + return new Promise((resolve) => { + const proc = spawn("pi", args, { + stdio: ["ignore", "pipe", "pipe"], + env: { ...process.env }, + }); + + let buffer = ""; + + proc.stdout!.setEncoding("utf-8"); + proc.stdout!.on("data", (chunk: string) => { + buffer += chunk; + const lines = buffer.split("\n"); + buffer = lines.pop() || ""; + for (const line of lines) { + if (!line.trim()) continue; + try { + const event = JSON.parse(line); + if (event.type === "message_update") { + const delta = event.assistantMessageEvent; + if (delta?.type === "text_delta") { + textChunks.push(delta.delta || ""); + const full = textChunks.join(""); + const last = full.split("\n").filter((l: string) => l.trim()).pop() || ""; + state.lastLine = last; + updateWidget(); + } + } + } catch {} + } + }); + + proc.stderr!.setEncoding("utf-8"); + proc.stderr!.on("data", () => {}); + + proc.on("close", (code) => { + if (buffer.trim()) { + try { + const event = JSON.parse(buffer); + if (event.type === "message_update") { + const delta = event.assistantMessageEvent; + if (delta?.type === "text_delta") textChunks.push(delta.delta || ""); + } + } catch {} + } + + clearInterval(state.timer); + state.elapsed = Date.now() - startTime; + state.status = code === 0 ? "done" : "error"; + + const full = textChunks.join(""); + state.lastLine = full.split("\n").filter((l: string) => l.trim()).pop() || ""; + updateWidget(); + + ctx.ui.notify( + `${displayName(state.def.name)} ${state.status} in ${Math.round(state.elapsed / 1000)}s`, + state.status === "done" ? "success" : "error" + ); + + resolve({ + output: full, + exitCode: code ?? 1, + elapsed: state.elapsed, + }); + }); + + proc.on("error", (err) => { + clearInterval(state.timer); + state.status = "error"; + state.lastLine = `Error: ${err.message}`; + updateWidget(); + resolve({ + output: `Error spawning expert: ${err.message}`, + exitCode: 1, + elapsed: Date.now() - startTime, + }); + }); + }); + } + + // ── query_experts Tool (parallel) ─────────── + + pi.registerTool({ + name: "query_experts", + label: "Query Experts", + description: `Query one or more Pi domain experts IN PARALLEL. All experts run simultaneously as concurrent subprocesses. + +Pass an array of queries — each with an expert name and a specific question. All experts start at the same time and their results are returned together. + +Available experts: +- ext-expert: Extensions — tools, events, commands, rendering, state management +- theme-expert: Themes — JSON format, 51 color tokens, vars, color values +- skill-expert: Skills — SKILL.md multi-file packages, scripts, references, frontmatter +- config-expert: Settings — settings.json, providers, models, packages, keybindings +- tui-expert: TUI — components, keyboard input, overlays, widgets, footers, editors +- prompt-expert: Prompt templates — single-file .md commands, arguments ($1, $@) +- agent-expert: Agent definitions — .md personas, tools, teams.yaml, orchestration +- keybinding-expert: Keyboard shortcuts — registerShortcut(), Key IDs, reserved keys, macOS terminal compatibility + +Ask specific questions about what you need to BUILD. Each expert will return documentation excerpts, code patterns, and implementation guidance.`, + + parameters: Type.Object({ + queries: Type.Array( + Type.Object({ + expert: Type.String({ + description: "Expert name: ext-expert, theme-expert, skill-expert, config-expert, tui-expert, prompt-expert, or agent-expert", + }), + question: Type.String({ + description: "Specific question about what you need to build. Include context about the target component.", + }), + }), + { description: "Array of expert queries to run in parallel" }, + ), + }), + + async execute(_toolCallId, params, _signal, onUpdate, ctx) { + const { queries } = params as { queries: { expert: string; question: string }[] }; + + if (!queries || queries.length === 0) { + return { + content: [{ type: "text", text: "No queries provided." }], + details: { results: [], status: "error" }, + }; + } + + const names = queries.map(q => displayName(q.expert)).join(", "); + if (onUpdate) { + onUpdate({ + content: [{ type: "text", text: `Querying ${queries.length} experts in parallel: ${names}` }], + details: { queries, status: "researching", results: [] }, + }); + } + + // Launch ALL experts concurrently — allSettled so one failure + // never discards results from the others + const settled = await Promise.allSettled( + queries.map(async ({ expert, question }) => { + const result = await queryExpert(expert, question, ctx); + const truncated = result.output.length > 12000 + ? result.output.slice(0, 12000) + "\n\n... [truncated — ask follow-up for more]" + : result.output; + const status = result.exitCode === 0 ? "done" : "error"; + return { + expert, + question, + status, + elapsed: result.elapsed, + exitCode: result.exitCode, + output: truncated, + fullOutput: result.output, + }; + }), + ); + + const results = settled.map((s, i) => + s.status === "fulfilled" + ? s.value + : { + expert: queries[i].expert, + question: queries[i].question, + status: "error" as const, + elapsed: 0, + exitCode: 1, + output: `Error: ${(s.reason as any)?.message || s.reason}`, + fullOutput: "", + }, + ); + + // Build combined response + const sections = results.map(r => { + const icon = r.status === "done" ? "✓" : "✗"; + return `## [${icon}] ${displayName(r.expert)} (${Math.round(r.elapsed / 1000)}s)\n\n${r.output}`; + }); + + return { + content: [{ type: "text", text: sections.join("\n\n---\n\n") }], + details: { + results, + status: results.every(r => r.status === "done") ? "done" : "partial", + }, + }; + }, + + renderCall(args, theme) { + const queries = (args as any).queries || []; + const names = queries.map((q: any) => displayName(q.expert || "?")).join(", "); + return new Text( + theme.fg("toolTitle", theme.bold("query_experts ")) + + theme.fg("accent", `${queries.length} parallel`) + + theme.fg("dim", " — ") + + theme.fg("muted", names), + 0, 0, + ); + }, + + renderResult(result, options, theme) { + const details = result.details as any; + if (!details?.results) { + const text = result.content[0]; + return new Text(text?.type === "text" ? text.text : "", 0, 0); + } + + if (options.isPartial || details.status === "researching") { + const count = details.queries?.length || "?"; + return new Text( + theme.fg("accent", `◉ ${count} experts`) + + theme.fg("dim", " researching in parallel..."), + 0, 0, + ); + } + + const lines = (details.results as any[]).map((r: any) => { + const icon = r.status === "done" ? "✓" : "✗"; + const color = r.status === "done" ? "success" : "error"; + const elapsed = typeof r.elapsed === "number" ? Math.round(r.elapsed / 1000) : 0; + return theme.fg(color, `${icon} ${displayName(r.expert)}`) + + theme.fg("dim", ` ${elapsed}s`); + }); + + const header = lines.join(theme.fg("dim", " · ")); + + if (options.expanded && details.results) { + const expanded = (details.results as any[]).map((r: any) => { + const output = r.fullOutput + ? (r.fullOutput.length > 4000 ? r.fullOutput.slice(0, 4000) + "\n... [truncated]" : r.fullOutput) + : r.output || ""; + return theme.fg("accent", `── ${displayName(r.expert)} ──`) + "\n" + theme.fg("muted", output); + }); + return new Text(header + "\n\n" + expanded.join("\n\n"), 0, 0); + } + + return new Text(header, 0, 0); + }, + }); + + // ── Commands ───────────────────────────────── + + pi.registerCommand("experts", { + description: "List available Pi Pi experts and their status", + handler: async (_args, _ctx) => { + widgetCtx = _ctx; + const lines = Array.from(experts.values()) + .map(s => `${displayName(s.def.name)} (${s.status}, queries: ${s.queryCount}): ${s.def.description}`) + .join("\n"); + _ctx.ui.notify(lines || "No experts loaded", "info"); + }, + }); + + pi.registerCommand("experts-grid", { + description: "Set expert grid columns: /experts-grid <1-5>", + handler: async (args, _ctx) => { + widgetCtx = _ctx; + const n = parseInt(args?.trim() || "", 10); + if (n >= 1 && n <= 5) { + gridCols = n; + _ctx.ui.notify(`Grid set to ${gridCols} columns`, "info"); + updateWidget(); + } else { + _ctx.ui.notify("Usage: /experts-grid <1-5>", "error"); + } + }, + }); + + // ── System Prompt ──────────────────────────── + + pi.on("before_agent_start", async (_event, _ctx) => { + const expertCatalog = Array.from(experts.values()) + .map(s => `### ${displayName(s.def.name)}\n**Query as:** \`${s.def.name}\`\n${s.def.description}`) + .join("\n\n"); + + const expertNames = Array.from(experts.values()).map(s => displayName(s.def.name)).join(", "); + + const orchestratorPath = join(_ctx.cwd, ".pi", "agents", "pi-pi", "pi-orchestrator.md"); + let systemPrompt = ""; + try { + const raw = readFileSync(orchestratorPath, "utf-8"); + const match = raw.match(/^---\n([\s\S]*?)\n---\n([\s\S]*)$/); + const template = match ? match[2].trim() : raw; + + systemPrompt = template + .replace("{{EXPERT_COUNT}}", experts.size.toString()) + .replace("{{EXPERT_NAMES}}", expertNames) + .replace("{{EXPERT_CATALOG}}", expertCatalog); + } catch (err) { + systemPrompt = "Error: Could not load pi-orchestrator.md. Make sure it exists in .pi/agents/pi-pi/."; + } + + return { systemPrompt }; + }); + + // ── Session Start ──────────────────────────── + + pi.on("session_start", async (_event, _ctx) => { + applyExtensionDefaults(import.meta.url, _ctx); + if (widgetCtx) { + widgetCtx.ui.setWidget("pi-pi-grid", undefined); + } + widgetCtx = _ctx; + + loadExperts(_ctx.cwd); + updateWidget(); + + const expertNames = Array.from(experts.values()).map(s => displayName(s.def.name)).join(", "); + _ctx.ui.setStatus("pi-pi", `Pi Pi (${experts.size} experts)`); + _ctx.ui.notify( + `Pi Pi loaded — ${experts.size} experts: ${expertNames}\n\n` + + `/experts List experts and status\n` + + `/experts-grid N Set grid columns (1-5)\n\n` + + `Ask me to build any Pi agent component!`, + "info", + ); + + // Custom footer + _ctx.ui.setFooter((_tui, theme, _footerData) => ({ + dispose: () => {}, + invalidate() {}, + render(width: number): string[] { + const model = _ctx.model?.id || "no-model"; + const usage = _ctx.getContextUsage(); + const pct = usage ? usage.percent : 0; + const filled = Math.round(pct / 10); + const bar = "#".repeat(filled) + "-".repeat(10 - filled); + + const active = Array.from(experts.values()).filter(e => e.status === "researching").length; + const done = Array.from(experts.values()).filter(e => e.status === "done").length; + + const left = theme.fg("dim", ` ${model}`) + + theme.fg("muted", " · ") + + theme.fg("accent", "Pi Pi"); + const mid = active > 0 + ? theme.fg("accent", ` ◉ ${active} researching`) + : done > 0 + ? theme.fg("success", ` ✓ ${done} done`) + : ""; + const right = theme.fg("dim", `[${bar}] ${Math.round(pct)}% `); + const pad = " ".repeat(Math.max(1, width - visibleWidth(left) - visibleWidth(mid) - visibleWidth(right))); + + return [truncateToWidth(left + mid + pad + right, width)]; + }, + })); + }); +} diff --git a/extensions/pure-focus.ts b/extensions/pure-focus.ts new file mode 100644 index 0000000..8d8dea5 --- /dev/null +++ b/extensions/pure-focus.ts @@ -0,0 +1,24 @@ +/** + * Pure Focus — Strip all footer and status line UI + * + * Removes the footer bar and status line entirely, leaving only + * the conversation and editor. Pure distraction-free mode. + * + * Usage: pi -e examples/extensions/pure-focus.ts + */ + +import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +export default function (pi: ExtensionAPI) { + pi.on("session_start", async (_event, ctx) => { + applyExtensionDefaults(import.meta.url, ctx); + ctx.ui.setFooter((_tui, _theme, _footerData) => ({ + dispose: () => {}, + invalidate() {}, + render(_width: number): string[] { + return []; + }, + })); + }); +} diff --git a/extensions/purpose-gate.ts b/extensions/purpose-gate.ts new file mode 100644 index 0000000..cb9a4c3 --- /dev/null +++ b/extensions/purpose-gate.ts @@ -0,0 +1,84 @@ +/** + * Purpose Gate — Forces the engineer to declare intent before working + * + * On session start, immediately asks "What is the purpose of this agent?" + * via a text input dialog. A persistent widget shows the purpose for the + * rest of the session, keeping focus. Blocks all prompts until answered. + * + * Usage: pi -e extensions/purpose-gate.ts + */ + +import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import { Text, truncateToWidth } from "@mariozechner/pi-tui"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +// synthwave: bgWarm #4a1e6a → rgb(74,30,106) +function bg(s: string): string { + return `\x1b[48;2;74;30;106m${s}\x1b[49m`; +} + +// synthwave: pink #ff7edb +function pink(s: string): string { + return `\x1b[38;2;255;126;219m${s}\x1b[39m`; +} + +// synthwave: cyan #36f9f6 +function cyan(s: string): string { + return `\x1b[38;2;54;249;246m${s}\x1b[39m`; +} + +function bold(s: string): string { + return `\x1b[1m${s}\x1b[22m`; +} + +export default function (pi: ExtensionAPI) { + let purpose: string | undefined; + + async function askForPurpose(ctx: any) { + while (!purpose) { + const answer = await ctx.ui.input( + "What is the purpose of this agent?", + "e.g. Refactor the auth module to use JWT" + ); + + if (answer && answer.trim()) { + purpose = answer.trim(); + } else { + ctx.ui.notify("Purpose is required.", "warning"); + } + } + + ctx.ui.setWidget("purpose", () => { + return { + render(width: number): string[] { + const pad = bg(" ".repeat(width)); + const label = pink(bold(" PURPOSE: ")); + const msg = cyan(bold(purpose!)); + const content = bg(truncateToWidth(label + msg + " ".repeat(width), width, "")); + return [pad, content, pad]; + }, + invalidate() {}, + }; + }); + } + + pi.on("session_start", async (_event, ctx) => { + applyExtensionDefaults(import.meta.url, ctx); + void askForPurpose(ctx); + }); + + pi.on("before_agent_start", async (event) => { + if (!purpose) return; + return { + systemPrompt: event.systemPrompt + `\n\n\nYour singular purpose this session: ${purpose}\nStay focused on this goal. If a request drifts from this purpose, gently remind the user.\n`, + }; + }); + + pi.on("input", async (_event, ctx) => { + if (!purpose) { + ctx.ui.notify("Set a purpose first.", "warning"); + return { action: "handled" as const }; + } + return { action: "continue" as const }; + }); +} diff --git a/extensions/session-replay.ts b/extensions/session-replay.ts new file mode 100644 index 0000000..d26b320 --- /dev/null +++ b/extensions/session-replay.ts @@ -0,0 +1,216 @@ +import { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import { applyExtensionDefaults } from "./themeMap.ts"; +import { + Box, Text, Markdown, Container, Spacer, + matchesKey, Key, truncateToWidth, getMarkdownTheme +} from "@mariozechner/pi-tui"; +import { DynamicBorder, getMarkdownTheme as getPiMdTheme } from "@mariozechner/pi-coding-agent"; + +// Minimal shim for timestamp handling if not directly in Message objects +function formatTime(date: Date): string { + return date.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' }); +} + +function getElapsedTime(start: Date, end: Date): string { + const diffMs = end.getTime() - start.getTime(); + const diffSec = Math.floor(diffMs / 1000); + if (diffSec < 60) return `${diffSec}s`; + const diffMin = Math.floor(diffSec / 60); + return `${diffMin}m ${diffSec % 60}s`; +} + +interface HistoryItem { + type: 'user' | 'assistant' | 'tool'; + title: string; + content: string; + timestamp: Date; + elapsed?: string; +} + +class SessionReplayUI { + private selectedIndex = 0; + private expandedIndex: number | null = null; + private scrollOffset = 0; + + constructor( + private items: HistoryItem[], + private onDone: () => void + ) { + // Start selected at the bottom (most recent) + this.selectedIndex = Math.max(0, items.length - 1); + this.ensureVisible(20); // rough height estimate + } + + handleInput(data: string, tui: any): void { + if (matchesKey(data, Key.up)) { + this.selectedIndex = Math.max(0, this.selectedIndex - 1); + } else if (matchesKey(data, Key.down)) { + this.selectedIndex = Math.min(this.items.length - 1, this.selectedIndex + 1); + } else if (matchesKey(data, Key.enter)) { + this.expandedIndex = this.expandedIndex === this.selectedIndex ? null : this.selectedIndex; + } else if (matchesKey(data, Key.escape)) { + this.onDone(); + return; + } + tui.requestRender(); + } + + private ensureVisible(height: number) { + // Simple scroll window logic + const pageSize = Math.floor(height / 3); // Approx items per page + if (this.selectedIndex < this.scrollOffset) { + this.scrollOffset = this.selectedIndex; + } else if (this.selectedIndex >= this.scrollOffset + pageSize) { + this.scrollOffset = this.selectedIndex - pageSize + 1; + } + } + + render(width: number, height: number, theme: any): string[] { + this.ensureVisible(height); + + const container = new Container(); + const mdTheme = getPiMdTheme(); + + // Header + container.addChild(new DynamicBorder((s: string) => theme.fg("accent", s))); + container.addChild(new Text(`${theme.fg("accent", theme.bold(" SESSION REPLAY"))} ${theme.fg("dim", "|")} ${theme.fg("success", this.items.length.toString())} entries`, 1, 0)); + container.addChild(new Spacer(1)); + + // Calculate visible range + const visibleItems = this.items.slice(this.scrollOffset); + + visibleItems.forEach((item, idx) => { + const absoluteIndex = idx + this.scrollOffset; + const isSelected = absoluteIndex === this.selectedIndex; + const isExpanded = absoluteIndex === this.expandedIndex; + + const cardBox = new Box(1, 0, (s) => isSelected ? theme.bg("selectedBg", s) : s); + + // Icon and Title + let icon = "○"; + let color = "dim"; + if (item.type === 'user') { icon = "👤"; color = "success"; } + else if (item.type === 'assistant') { icon = "🤖"; color = "accent"; } + else if (item.type === 'tool') { icon = "🛠️"; color = "warning"; } + + const timeStr = theme.fg("success", `[${formatTime(item.timestamp)}]`); + const elapsedStr = item.elapsed ? theme.fg("dim", ` (+${item.elapsed})`) : ""; + + const titleLine = `${theme.fg(color, icon)} ${theme.bold(item.title)} ${timeStr}${elapsedStr}`; + cardBox.addChild(new Text(titleLine, 0, 0)); + + if (isExpanded) { + cardBox.addChild(new Spacer(1)); + cardBox.addChild(new Markdown(item.content, 2, 0, mdTheme)); + } else { + // Truncated preview + const preview = item.content.replace(/\n/g, ' ').substring(0, width - 10); + cardBox.addChild(new Text(theme.fg("dim", " " + preview + "..."), 0, 0)); + } + + container.addChild(cardBox); + // Don't add too many spacers if we have many items + if (visibleItems.length < 15) container.addChild(new Spacer(1)); + }); + + // Footer + container.addChild(new Spacer(1)); + container.addChild(new Text(theme.fg("dim", " ↑/↓ Navigate • Enter Expand • Esc Close"), 1, 0)); + container.addChild(new DynamicBorder((s: string) => theme.fg("accent", s))); + + return container.render(width); + } +} + +function extractContent(entry: any): string { + const msg = entry.message; + if (!msg) return ""; + const content = msg.content; + if (!content) return ""; + if (typeof content === "string") return content; + if (Array.isArray(content)) { + return content + .map((c: any) => { + if (c.type === "text") return c.text || ""; + if (c.type === "toolCall") return `Tool: ${c.name}(${JSON.stringify(c.arguments).slice(0, 200)})`; + return ""; + }) + .filter(Boolean) + .join("\n"); + } + return JSON.stringify(content).slice(0, 500); +} + +export default function(pi: ExtensionAPI) { + pi.registerCommand("replay", { + description: "Show a scrollable timeline of the current session", + handler: async (args, ctx) => { + const branch = ctx.sessionManager.getBranch(); + const items: HistoryItem[] = []; + + let prevTime: Date | null = null; + + for (const entry of branch) { + if (entry.type !== "message") continue; + const msg = entry.message; + if (!msg) continue; + + const ts = msg.timestamp ? new Date(msg.timestamp) : new Date(); + const elapsed = prevTime ? getElapsedTime(prevTime, ts) : undefined; + prevTime = ts; + + const role = msg.role; + const text = extractContent(entry); + if (!text) continue; + + if (role === "user") { + items.push({ + type: "user", + title: "User Prompt", + content: text, + timestamp: ts, + elapsed, + }); + } else if (role === "assistant") { + items.push({ + type: "assistant", + title: "Assistant", + content: text, + timestamp: ts, + elapsed, + }); + } else if (role === "toolResult") { + const toolName = (msg as any).toolName || "tool"; + items.push({ + type: "tool", + title: `Tool: ${toolName}`, + content: text, + timestamp: ts, + elapsed, + }); + } + } + + if (items.length === 0) { + ctx.ui.notify("No session history found.", "warning"); + return; + } + + await ctx.ui.custom((tui, theme, kb, done) => { + const component = new SessionReplayUI(items, () => done(undefined)); + return { + render: (w) => component.render(w, 30, theme), + handleInput: (data) => component.handleInput(data, tui), + invalidate: () => {}, + }; + }, { + overlay: true, + overlayOptions: { width: "80%", anchor: "center" }, + }); + }, + }); + + pi.on("session_start", async (_event, ctx) => { + applyExtensionDefaults(import.meta.url, ctx); + }); +} diff --git a/extensions/subagent-widget.ts b/extensions/subagent-widget.ts new file mode 100644 index 0000000..a31ac6e --- /dev/null +++ b/extensions/subagent-widget.ts @@ -0,0 +1,481 @@ +/** + * Subagent Widget — /sub, /subclear, /subrm, /subcont commands with stacking live widgets + * + * Each /sub spawns a background Pi subagent with its own persistent session, + * enabling conversation continuations via /subcont. + * + * Usage: pi -e extensions/subagent-widget.ts + * Then: + * /sub list files and summarize — spawn a new subagent + * /subcont 1 now write tests for it — continue subagent #1's conversation + * /subrm 2 — remove subagent #2 widget + * /subclear — clear all subagent widgets + */ + +import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import { DynamicBorder } from "@mariozechner/pi-coding-agent"; +import { Container, Text } from "@mariozechner/pi-tui"; +import { Type } from "@sinclair/typebox"; +const { spawn } = require("child_process") as any; +import * as fs from "fs"; +import * as os from "os"; +import * as path from "path"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +interface SubState { + id: number; + status: "running" | "done" | "error"; + task: string; + textChunks: string[]; + toolCount: number; + elapsed: number; + sessionFile: string; // persistent JSONL session path — used by /subcont to resume + turnCount: number; // increments each time /subcont continues this agent + proc?: any; // active ChildProcess ref (for kill on /subrm) +} + +export default function (pi: ExtensionAPI) { + const agents: Map = new Map(); + let nextId = 1; + let widgetCtx: any; + + // ── Session file helpers ────────────────────────────────────────────────── + + function makeSessionFile(id: number): string { + const dir = path.join(os.homedir(), ".pi", "agent", "sessions", "subagents"); + fs.mkdirSync(dir, { recursive: true }); + return path.join(dir, `subagent-${id}-${Date.now()}.jsonl`); + } + + // ── Widget rendering ────────────────────────────────────────────────────── + + function updateWidgets() { + if (!widgetCtx) return; + + for (const [id, state] of Array.from(agents.entries())) { + const key = `sub-${id}`; + widgetCtx.ui.setWidget(key, (_tui: any, theme: any) => { + const container = new Container(); + const borderFn = (s: string) => theme.fg("dim", s); + + container.addChild(new Text("", 0, 0)); // top margin + container.addChild(new DynamicBorder(borderFn)); + const content = new Text("", 1, 0); + container.addChild(content); + container.addChild(new DynamicBorder(borderFn)); + + return { + render(width: number): string[] { + const lines: string[] = []; + const statusColor = state.status === "running" ? "accent" + : state.status === "done" ? "success" : "error"; + const statusIcon = state.status === "running" ? "●" + : state.status === "done" ? "✓" : "✗"; + + const taskPreview = state.task.length > 40 + ? state.task.slice(0, 37) + "..." + : state.task; + + const turnLabel = state.turnCount > 1 + ? theme.fg("dim", ` · Turn ${state.turnCount}`) + : ""; + + lines.push( + theme.fg(statusColor, `${statusIcon} Subagent #${state.id}`) + + turnLabel + + theme.fg("dim", ` ${taskPreview}`) + + theme.fg("dim", ` (${Math.round(state.elapsed / 1000)}s)`) + + theme.fg("dim", ` | Tools: ${state.toolCount}`) + ); + + const fullText = state.textChunks.join(""); + const lastLine = fullText.split("\n").filter((l: string) => l.trim()).pop() || ""; + if (lastLine) { + const trimmed = lastLine.length > width - 10 + ? lastLine.slice(0, width - 13) + "..." + : lastLine; + lines.push(theme.fg("muted", ` ${trimmed}`)); + } + + content.setText(lines.join("\n")); + return container.render(width); + }, + invalidate() { + container.invalidate(); + }, + }; + }); + } + } + + // ── Streaming helpers ───────────────────────────────────────────────────── + + function processLine(state: SubState, line: string) { + if (!line.trim()) return; + try { + const event = JSON.parse(line); + const type = event.type; + + if (type === "message_update") { + const delta = event.assistantMessageEvent; + if (delta?.type === "text_delta") { + state.textChunks.push(delta.delta || ""); + updateWidgets(); + } + } else if (type === "tool_execution_start") { + state.toolCount++; + updateWidgets(); + } + } catch {} + } + + function spawnAgent( + state: SubState, + prompt: string, + ctx: any, + ): Promise { + const model = ctx.model + ? `${ctx.model.provider}/${ctx.model.id}` + : "openrouter/google/gemini-3-flash-preview"; + + return new Promise((resolve) => { + const proc = spawn("pi", [ + "--mode", "json", + "-p", + "--session", state.sessionFile, // persistent session for /subcont resumption + "--no-extensions", + "--model", model, + "--tools", "read,bash,grep,find,ls", + "--thinking", "off", + prompt, + ], { + stdio: ["ignore", "pipe", "pipe"], + env: { ...process.env }, + }); + + state.proc = proc; + + const startTime = Date.now(); + const timer = setInterval(() => { + state.elapsed = Date.now() - startTime; + updateWidgets(); + }, 1000); + + let buffer = ""; + + proc.stdout!.setEncoding("utf-8"); + proc.stdout!.on("data", (chunk: string) => { + buffer += chunk; + const lines = buffer.split("\n"); + buffer = lines.pop() || ""; + for (const line of lines) processLine(state, line); + }); + + proc.stderr!.setEncoding("utf-8"); + proc.stderr!.on("data", (chunk: string) => { + if (chunk.trim()) { + state.textChunks.push(chunk); + updateWidgets(); + } + }); + + proc.on("close", (code) => { + if (buffer.trim()) processLine(state, buffer); + clearInterval(timer); + state.elapsed = Date.now() - startTime; + state.status = code === 0 ? "done" : "error"; + state.proc = undefined; + updateWidgets(); + + const result = state.textChunks.join(""); + ctx.ui.notify( + `Subagent #${state.id} ${state.status} in ${Math.round(state.elapsed / 1000)}s`, + state.status === "done" ? "success" : "error" + ); + + pi.sendMessage({ + customType: "subagent-result", + content: `Subagent #${state.id}${state.turnCount > 1 ? ` (Turn ${state.turnCount})` : ""} finished "${prompt}" in ${Math.round(state.elapsed / 1000)}s.\n\nResult:\n${result.slice(0, 8000)}${result.length > 8000 ? "\n\n... [truncated]" : ""}`, + display: true, + }, { deliverAs: "followUp", triggerTurn: true }); + + resolve(); + }); + + proc.on("error", (err) => { + clearInterval(timer); + state.status = "error"; + state.proc = undefined; + state.textChunks.push(`Error: ${err.message}`); + updateWidgets(); + resolve(); + }); + }); + } + + // ── Tools for the Main Agent ────────────────────────────────────────────── + + pi.registerTool({ + name: "subagent_create", + description: "Spawn a background subagent to perform a task. Returns the subagent ID immediately while it runs in the background. Results will be delivered as a follow-up message when finished.", + parameters: Type.Object({ + task: Type.String({ description: "The complete task description for the subagent to perform" }), + }), + execute: async (callId, args, _signal, _onUpdate, ctx) => { + widgetCtx = ctx; + const id = nextId++; + const state: SubState = { + id, + status: "running", + task: args.task, + textChunks: [], + toolCount: 0, + elapsed: 0, + sessionFile: makeSessionFile(id), + turnCount: 1, + }; + agents.set(id, state); + updateWidgets(); + + // Fire-and-forget + spawnAgent(state, args.task, ctx); + + return { + content: [{ type: "text", text: `Subagent #${id} spawned and running in background.` }], + }; + }, + }); + + pi.registerTool({ + name: "subagent_continue", + description: "Continue an existing subagent's conversation. Use this to give further instructions to a finished subagent. Returns immediately while it runs in the background.", + parameters: Type.Object({ + id: Type.Number({ description: "The ID of the subagent to continue" }), + prompt: Type.String({ description: "The follow-up prompt or new instructions" }), + }), + execute: async (callId, args, _signal, _onUpdate, ctx) => { + widgetCtx = ctx; + const state = agents.get(args.id); + if (!state) { + return { content: [{ type: "text", text: `Error: No subagent #${args.id} found.` }] }; + } + if (state.status === "running") { + return { content: [{ type: "text", text: `Error: Subagent #${args.id} is still running.` }] }; + } + + state.status = "running"; + state.task = args.prompt; + state.textChunks = []; + state.elapsed = 0; + state.turnCount++; + updateWidgets(); + + ctx.ui.notify(`Continuing Subagent #${args.id} (Turn ${state.turnCount})…`, "info"); + spawnAgent(state, args.prompt, ctx); + + return { + content: [{ type: "text", text: `Subagent #${args.id} continuing conversation in background.` }], + }; + }, + }); + + pi.registerTool({ + name: "subagent_remove", + description: "Remove a specific subagent. Kills it if it's currently running.", + parameters: Type.Object({ + id: Type.Number({ description: "The ID of the subagent to remove" }), + }), + execute: async (callId, args, _signal, _onUpdate, ctx) => { + widgetCtx = ctx; + const state = agents.get(args.id); + if (!state) { + return { content: [{ type: "text", text: `Error: No subagent #${args.id} found.` }] }; + } + + if (state.proc && state.status === "running") { + state.proc.kill("SIGTERM"); + } + ctx.ui.setWidget(`sub-${args.id}`, undefined); + agents.delete(args.id); + + return { + content: [{ type: "text", text: `Subagent #${args.id} removed successfully.` }], + }; + }, + }); + + pi.registerTool({ + name: "subagent_list", + description: "List all active and finished subagents, showing their IDs, tasks, and status.", + parameters: Type.Object({}), + execute: async () => { + if (agents.size === 0) { + return { content: [{ type: "text", text: "No active subagents." }] }; + } + + const list = Array.from(agents.values()).map(s => + `#${s.id} [${s.status.toUpperCase()}] (Turn ${s.turnCount}) - ${s.task}` + ).join("\n"); + + return { + content: [{ type: "text", text: `Subagents:\n${list}` }], + }; + }, + }); + + + + // ── /sub ─────────────────────────────────────────────────────────── + + pi.registerCommand("sub", { + description: "Spawn a subagent with live widget: /sub ", + handler: async (args, ctx) => { + widgetCtx = ctx; + + const task = args?.trim(); + if (!task) { + ctx.ui.notify("Usage: /sub ", "error"); + return; + } + + const id = nextId++; + const state: SubState = { + id, + status: "running", + task, + textChunks: [], + toolCount: 0, + elapsed: 0, + sessionFile: makeSessionFile(id), + turnCount: 1, + }; + agents.set(id, state); + updateWidgets(); + + // Fire-and-forget + spawnAgent(state, task, ctx); + }, + }); + + // ── /subcont ──────────────────────────────────────────── + + pi.registerCommand("subcont", { + description: "Continue an existing subagent's conversation: /subcont ", + handler: async (args, ctx) => { + widgetCtx = ctx; + + const trimmed = args?.trim() ?? ""; + const spaceIdx = trimmed.indexOf(" "); + if (spaceIdx === -1) { + ctx.ui.notify("Usage: /subcont ", "error"); + return; + } + + const num = parseInt(trimmed.slice(0, spaceIdx), 10); + const prompt = trimmed.slice(spaceIdx + 1).trim(); + + if (isNaN(num) || !prompt) { + ctx.ui.notify("Usage: /subcont ", "error"); + return; + } + + const state = agents.get(num); + if (!state) { + ctx.ui.notify(`No subagent #${num} found. Use /sub to create one.`, "error"); + return; + } + + if (state.status === "running") { + ctx.ui.notify(`Subagent #${num} is still running — wait for it to finish first.`, "warning"); + return; + } + + // Resume: update state for a new turn + state.status = "running"; + state.task = prompt; + state.textChunks = []; + state.elapsed = 0; + state.turnCount++; + updateWidgets(); + + ctx.ui.notify(`Continuing Subagent #${num} (Turn ${state.turnCount})…`, "info"); + + // Fire-and-forget — reuses the same sessionFile for conversation history + spawnAgent(state, prompt, ctx); + }, + }); + + // ── /subrm ─────────────────────────────────────────────────────── + + pi.registerCommand("subrm", { + description: "Remove a specific subagent widget: /subrm ", + handler: async (args, ctx) => { + widgetCtx = ctx; + + const num = parseInt(args?.trim() ?? "", 10); + if (isNaN(num)) { + ctx.ui.notify("Usage: /subrm ", "error"); + return; + } + + const state = agents.get(num); + if (!state) { + ctx.ui.notify(`No subagent #${num} found.`, "error"); + return; + } + + // Kill the process if still running + if (state.proc && state.status === "running") { + state.proc.kill("SIGTERM"); + ctx.ui.notify(`Subagent #${num} killed and removed.`, "warning"); + } else { + ctx.ui.notify(`Subagent #${num} removed.`, "info"); + } + + ctx.ui.setWidget(`sub-${num}`, undefined); + agents.delete(num); + }, + }); + + // ── /subclear ───────────────────────────────────────────────────────────── + + pi.registerCommand("subclear", { + description: "Clear all subagent widgets", + handler: async (_args, ctx) => { + widgetCtx = ctx; + + let killed = 0; + for (const [id, state] of Array.from(agents.entries())) { + if (state.proc && state.status === "running") { + state.proc.kill("SIGTERM"); + killed++; + } + ctx.ui.setWidget(`sub-${id}`, undefined); + } + + const total = agents.size; + agents.clear(); + nextId = 1; + + const msg = total === 0 + ? "No subagents to clear." + : `Cleared ${total} subagent${total !== 1 ? "s" : ""}${killed > 0 ? ` (${killed} killed)` : ""}.`; + ctx.ui.notify(msg, total === 0 ? "info" : "success"); + }, + }); + + // ── Session lifecycle ───────────────────────────────────────────────────── + + pi.on("session_start", async (_event, ctx) => { + applyExtensionDefaults(import.meta.url, ctx); + for (const [id, state] of Array.from(agents.entries())) { + if (state.proc && state.status === "running") { + state.proc.kill("SIGTERM"); + } + ctx.ui.setWidget(`sub-${id}`, undefined); + } + agents.clear(); + nextId = 1; + widgetCtx = ctx; + }); +} diff --git a/extensions/system-select.ts b/extensions/system-select.ts new file mode 100644 index 0000000..8991658 --- /dev/null +++ b/extensions/system-select.ts @@ -0,0 +1,167 @@ +/** + * System Select — Switch the system prompt via /system + * + * Scans .pi/agents/, .claude/agents/, .gemini/agents/, .codex/agents/ + * (project-local and global) for agent definition .md files. + * + * /system opens a select dialog to pick a system prompt. The selected + * agent's body is prepended to Pi's default instructions so tool usage + * still works. Tools are restricted to the agent's declared tool set + * if specified. + * + * Usage: pi -e extensions/system-select.ts -e extensions/minimal.ts + */ + +import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import { readdirSync, readFileSync, existsSync } from "node:fs"; +import { join, basename } from "node:path"; +import { homedir } from "node:os"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +interface AgentDef { + name: string; + description: string; + tools: string[]; + body: string; + source: string; +} + +function parseFrontmatter(raw: string): { fields: Record; body: string } { + const match = raw.match(/^---\s*\n([\s\S]*?)\n---\s*\n([\s\S]*)$/); + if (!match) return { fields: {}, body: raw }; + const fields: Record = {}; + for (const line of match[1].split("\n")) { + const idx = line.indexOf(":"); + if (idx > 0) fields[line.slice(0, idx).trim()] = line.slice(idx + 1).trim(); + } + return { fields, body: match[2] }; +} + +function scanAgents(dir: string, source: string): AgentDef[] { + if (!existsSync(dir)) return []; + const agents: AgentDef[] = []; + try { + for (const file of readdirSync(dir)) { + if (!file.endsWith(".md")) continue; + const raw = readFileSync(join(dir, file), "utf-8"); + const { fields, body } = parseFrontmatter(raw); + agents.push({ + name: fields.name || basename(file, ".md"), + description: fields.description || "", + tools: fields.tools ? fields.tools.split(",").map((t) => t.trim()) : [], + body: body.trim(), + source, + }); + } + } catch {} + return agents; +} + +function displayName(name: string): string { + return name.split("-").map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(" "); +} + +export default function (pi: ExtensionAPI) { + let activeAgent: AgentDef | null = null; + let allAgents: AgentDef[] = []; + let defaultTools: string[] = []; + + pi.on("session_start", async (_event, ctx) => { + applyExtensionDefaults(import.meta.url, ctx); + activeAgent = null; + allAgents = []; + + const home = homedir(); + const cwd = ctx.cwd; + + const dirs: [string, string][] = [ + [join(cwd, ".pi", "agents"), ".pi"], + [join(cwd, ".claude", "agents"), ".claude"], + [join(cwd, ".gemini", "agents"), ".gemini"], + [join(cwd, ".codex", "agents"), ".codex"], + [join(home, ".pi", "agent", "agents"), "~/.pi"], + [join(home, ".claude", "agents"), "~/.claude"], + [join(home, ".gemini", "agents"), "~/.gemini"], + [join(home, ".codex", "agents"), "~/.codex"], + ]; + + const seen = new Set(); + const sourceCounts: Record = {}; + + for (const [dir, source] of dirs) { + const agents = scanAgents(dir, source); + for (const agent of agents) { + const key = agent.name.toLowerCase(); + if (seen.has(key)) continue; + seen.add(key); + allAgents.push(agent); + sourceCounts[source] = (sourceCounts[source] || 0) + 1; + } + } + + defaultTools = pi.getActiveTools(); + ctx.ui.setStatus("system-prompt", "System Prompt: Default"); + + const defaultPrompt = ctx.getSystemPrompt(); + const lines = defaultPrompt.split("\n").length; + const chars = defaultPrompt.length; + + const loadedSources = Object.entries(sourceCounts) + .map(([src, count]) => `${count} from ${src}`) + .join(", "); + + const notifyLines = []; + if (allAgents.length > 0) { + notifyLines.push(`Loaded ${allAgents.length} agents (${loadedSources})`); + } + notifyLines.push(`System Prompt: Default (${lines} lines, ${chars} chars)`); + + ctx.ui.notify(notifyLines.join("\n"), "info"); + }); + + pi.registerCommand("system", { + description: "Select a system prompt from discovered agents", + handler: async (_args, ctx) => { + if (allAgents.length === 0) { + ctx.ui.notify("No agents found in .*/agents/*.md", "warning"); + return; + } + + const options = [ + "Reset to Default", + ...allAgents.map((a) => `${a.name} — ${a.description} [${a.source}]`), + ]; + + const choice = await ctx.ui.select("Select System Prompt", options); + if (choice === undefined) return; + + if (choice === options[0]) { + activeAgent = null; + pi.setActiveTools(defaultTools); + ctx.ui.setStatus("system-prompt", "System Prompt: Default"); + ctx.ui.notify("System Prompt reset to Default", "success"); + return; + } + + const idx = options.indexOf(choice) - 1; + const agent = allAgents[idx]; + activeAgent = agent; + + if (agent.tools.length > 0) { + pi.setActiveTools(agent.tools); + } else { + pi.setActiveTools(defaultTools); + } + + ctx.ui.setStatus("system-prompt", `System Prompt: ${displayName(agent.name)}`); + ctx.ui.notify(`System Prompt switched to: ${displayName(agent.name)}`, "success"); + }, + }); + + pi.on("before_agent_start", async (event, _ctx) => { + if (!activeAgent) return; + return { + systemPrompt: activeAgent.body + "\n\n" + event.systemPrompt, + }; + }); +} diff --git a/extensions/theme-cycler.ts b/extensions/theme-cycler.ts new file mode 100644 index 0000000..3b16d4c --- /dev/null +++ b/extensions/theme-cycler.ts @@ -0,0 +1,181 @@ +/** + * Theme Cycler — Keyboard shortcuts to cycle through available themes + * + * Shortcuts: + * Ctrl+X — Cycle theme forward + * Ctrl+Q — Cycle theme backward + * + * Commands: + * /theme — Open select picker to choose a theme + * /theme — Switch directly by name + * + * Features: + * - Status line shows current theme name with accent color + * - Color swatch widget flashes briefly after each switch + * - Auto-dismisses swatch after 3 seconds + * + * Usage: pi -e extensions/theme-cycler.ts -e extensions/minimal.ts + */ + +import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent"; +import { truncateToWidth } from "@mariozechner/pi-tui"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +export default function (pi: ExtensionAPI) { + let currentCtx: ExtensionContext | undefined; + let swatchTimer: ReturnType | null = null; + + function updateStatus(ctx: ExtensionContext) { + if (!ctx.hasUI) return; + const name = ctx.ui.theme.name; + ctx.ui.setStatus("theme", `🎨 ${name}`); + } + + function showSwatch(ctx: ExtensionContext) { + if (!ctx.hasUI) return; + + if (swatchTimer) { + clearTimeout(swatchTimer); + swatchTimer = null; + } + + ctx.ui.setWidget( + "theme-swatch", + (_tui, theme) => ({ + invalidate() {}, + render(width: number): string[] { + const block = "\u2588\u2588\u2588"; + const swatch = + theme.fg("success", block) + + " " + + theme.fg("accent", block) + + " " + + theme.fg("warning", block) + + " " + + theme.fg("dim", block) + + " " + + theme.fg("muted", block); + const label = theme.fg("accent", " 🎨 ") + theme.fg("muted", ctx.ui.theme.name) + " " + swatch; + const border = theme.fg("borderMuted", "─".repeat(Math.max(0, width))); + return [border, truncateToWidth(" " + label, width), border]; + }, + }), + { placement: "belowEditor" }, + ); + + swatchTimer = setTimeout(() => { + ctx.ui.setWidget("theme-swatch", undefined); + swatchTimer = null; + }, 3000); + } + + function getThemeList(ctx: ExtensionContext) { + return ctx.ui.getAllThemes(); + } + + function findCurrentIndex(ctx: ExtensionContext): number { + const themes = getThemeList(ctx); + const current = ctx.ui.theme.name; + return themes.findIndex((t) => t.name === current); + } + + function cycleTheme(ctx: ExtensionContext, direction: 1 | -1) { + if (!ctx.hasUI) return; + + const themes = getThemeList(ctx); + if (themes.length === 0) { + ctx.ui.notify("No themes available", "warning"); + return; + } + + let index = findCurrentIndex(ctx); + if (index === -1) index = 0; + + index = (index + direction + themes.length) % themes.length; + const theme = themes[index]; + const result = ctx.ui.setTheme(theme.name); + + if (result.success) { + updateStatus(ctx); + showSwatch(ctx); + ctx.ui.notify(`${theme.name} (${index + 1}/${themes.length})`, "info"); + } else { + ctx.ui.notify(`Failed to set theme: ${result.error}`, "error"); + } + } + + // --- Shortcuts --- + + pi.registerShortcut("ctrl+x", { + description: "Cycle theme forward", + handler: async (ctx) => { + currentCtx = ctx; + cycleTheme(ctx, 1); + }, + }); + + pi.registerShortcut("ctrl+q", { + description: "Cycle theme backward", + handler: async (ctx) => { + currentCtx = ctx; + cycleTheme(ctx, -1); + }, + }); + + // --- Command: /theme --- + + pi.registerCommand("theme", { + description: "Select a theme: /theme or /theme ", + handler: async (args, ctx) => { + currentCtx = ctx; + if (!ctx.hasUI) return; + + const themes = getThemeList(ctx); + const arg = args.trim(); + + if (arg) { + const result = ctx.ui.setTheme(arg); + if (result.success) { + updateStatus(ctx); + showSwatch(ctx); + ctx.ui.notify(`Theme: ${arg}`, "info"); + } else { + ctx.ui.notify(`Theme not found: ${arg}. Use /theme to see available themes.`, "error"); + } + return; + } + + const items = themes.map((t) => { + const desc = t.path ? t.path : "built-in"; + const active = t.name === ctx.ui.theme.name ? " (active)" : ""; + return `${t.name}${active} — ${desc}`; + }); + + const selected = await ctx.ui.select("Select Theme", items); + if (!selected) return; + + const selectedName = selected.split(/\s/)[0]; + const result = ctx.ui.setTheme(selectedName); + if (result.success) { + updateStatus(ctx); + showSwatch(ctx); + ctx.ui.notify(`Theme: ${selectedName}`, "info"); + } + }, + }); + + // --- Session init --- + + pi.on("session_start", async (_event, ctx) => { + currentCtx = ctx; + applyExtensionDefaults(import.meta.url, ctx); + updateStatus(ctx); + }); + + pi.on("session_shutdown", async () => { + if (swatchTimer) { + clearTimeout(swatchTimer); + swatchTimer = null; + } + }); +} diff --git a/extensions/themeMap.ts b/extensions/themeMap.ts new file mode 100644 index 0000000..ce4e563 --- /dev/null +++ b/extensions/themeMap.ts @@ -0,0 +1,143 @@ +/** + * themeMap.ts — Per-extension default theme assignments + * + * Themes live in .pi/themes/ and are mapped by extension filename (no extension). + * Each extension calls applyExtensionTheme(import.meta.url, ctx) in its session_start + * hook to automatically load its designated theme on boot. + * + * Available themes (.pi/themes/): + * catppuccin-mocha · cyberpunk · dracula · everforest · gruvbox + * midnight-ocean · nord · ocean-breeze · rose-pine + * synthwave · tokyo-night + */ + +import type { ExtensionContext } from "@mariozechner/pi-coding-agent"; +import { basename } from "path"; +import { fileURLToPath } from "url"; + +// ── Theme assignments ────────────────────────────────────────────────────── +// +// Key = extension filename without extension (matches extensions/.ts) +// Value = theme name from .pi/themes/.json +// +export const THEME_MAP: Record = { + "agent-chain": "midnight-ocean", // deep sequential pipeline + "agent-team": "dracula", // rich orchestration palette + "cross-agent": "ocean-breeze", // cross-boundary, connecting + "damage-control": "gruvbox", // grounded, earthy safety + "minimal": "synthwave", // synthwave by default now! + "pi-pi": "rose-pine", // warm creative meta-agent + "pure-focus": "everforest", // calm, distraction-free + "purpose-gate": "tokyo-night", // intentional, sharp focus + "session-replay": "catppuccin-mocha", // soft, reflective history + "subagent-widget": "cyberpunk", // multi-agent futuristic + "system-select": "catppuccin-mocha", // soft selection UI + "theme-cycler": "synthwave", // neon, it's a theme tool + "tilldone": "everforest", // task-focused calm + "tool-counter": "synthwave", // techy metrics + "tool-counter-widget":"synthwave", // same family +}; + +// ── Helpers ─────────────────────────────────────────────────────────────── + +/** Derive the extension name (e.g. "minimal") from its import.meta.url. */ +function extensionName(fileUrl: string): string { + const filePath = fileUrl.startsWith("file://") ? fileURLToPath(fileUrl) : fileUrl; + return basename(filePath).replace(/\.[^.]+$/, ""); +} + +// ── Theme ────────────────────────────────────────────────────────────────── + +/** + * Apply the mapped theme for an extension on session boot. + * + * @param fileUrl Pass `import.meta.url` from the calling extension file. + * @param ctx The ExtensionContext from the session_start handler. + * @returns true if the theme was applied successfully, false otherwise. + */ +export function applyExtensionTheme(fileUrl: string, ctx: ExtensionContext): boolean { + if (!ctx.hasUI) return false; + + const name = extensionName(fileUrl); + + // If there are multiple extensions stacked in 'ipi', they each fire session_start + // and try to apply their own mapped theme. The LAST one to fire wins. + // Since system-select is last in the ipi alias array, it was setting 'catppuccin-mocha'. + + // We want to skip theme application for all secondary extensions if they are stacked, + // so the primary extension (first in the array) dictates the theme. + const primaryExt = primaryExtensionName(); + if (primaryExt && primaryExt !== name) { + return true; // Pretend we succeeded, but don't overwrite the primary theme + } + + let themeName = THEME_MAP[name]; + + if (!themeName) { + themeName = "synthwave"; + } + + const result = ctx.ui.setTheme(themeName); + + if (!result.success && themeName !== "synthwave") { + return ctx.ui.setTheme("synthwave").success; + } + + return result.success; +} +// ── Title ────────────────────────────────────────────────────────────────── + +/** + * Read process.argv to find the first -e / --extension flag value. + * + * When Pi is launched as: + * pi -e extensions/subagent-widget.ts -e extensions/pure-focus.ts + * + * process.argv contains those paths verbatim. Every stacked extension calls + * this and gets the same answer ("subagent-widget"), so all setTitle calls + * are idempotent — no shared state or deduplication needed. + * + * Returns null if no -e flag is present (e.g. plain `pi` with no extensions). + */ +function primaryExtensionName(): string | null { + const argv = process.argv; + for (let i = 0; i < argv.length - 1; i++) { + if (argv[i] === "-e" || argv[i] === "--extension") { + return basename(argv[i + 1]).replace(/\.[^.]+$/, ""); + } + } + return null; +} + +/** + * Set the terminal title to "π - " on session boot. + * Reads the title from process.argv so all stacked extensions agree on the + * same value — no coordination or shared state required. + * + * Deferred 150 ms to fire after Pi's own startup title-set. + */ +function applyExtensionTitle(ctx: ExtensionContext): void { + if (!ctx.hasUI) return; + const name = primaryExtensionName(); + if (!name) return; + setTimeout(() => ctx.ui.setTitle(`π - ${name}`), 150); +} + +// ── Combined default ─────────────────────────────────────────────────────── + +/** + * Apply both the mapped theme AND the terminal title for an extension. + * Drop-in replacement for applyExtensionTheme — call this in every session_start. + * + * Usage: + * import { applyExtensionDefaults } from "./themeMap.ts"; + * + * pi.on("session_start", async (_event, ctx) => { + * applyExtensionDefaults(import.meta.url, ctx); + * // ... rest of handler + * }); + */ +export function applyExtensionDefaults(fileUrl: string, ctx: ExtensionContext): void { + applyExtensionTheme(fileUrl, ctx); + applyExtensionTitle(ctx); +} diff --git a/extensions/tilldone.ts b/extensions/tilldone.ts new file mode 100644 index 0000000..66eae0d --- /dev/null +++ b/extensions/tilldone.ts @@ -0,0 +1,726 @@ +/** + * TillDone Extension — Work Till It's Done + * + * A task-driven discipline extension. The agent MUST define what it's going + * to do (via `tilldone add`) before it can use any other tools. On agent + * completion, if tasks remain incomplete, the agent gets nudged to continue + * or mark them done. Play on words: "todo" → "tilldone" (work till done). + * + * Three-state lifecycle: idle → inprogress → done + * + * Each list has a title and description that give the tasks a theme. + * Use `new-list` to start a fresh list. `clear` wipes tasks with user confirm. + * + * UI surfaces: + * - Footer: persistent task list with live progress + list title + * - Widget: prominent "current task" display (the inprogress task) + * - Status: compact summary in the status line + * - /tilldone: interactive overlay with full task details + * + * Usage: pi -e extensions/tilldone.ts + */ + +import { StringEnum } from "@mariozechner/pi-ai"; +import type { ExtensionAPI, ExtensionContext, Theme } from "@mariozechner/pi-coding-agent"; +import { DynamicBorder } from "@mariozechner/pi-coding-agent"; +import { Container, matchesKey, Text, truncateToWidth, visibleWidth } from "@mariozechner/pi-tui"; +import { Type } from "@sinclair/typebox"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +// ── Types ────────────────────────────────────────────────────────────── + +type TaskStatus = "idle" | "inprogress" | "done"; + +interface Task { + id: number; + text: string; + status: TaskStatus; +} + +interface TillDoneDetails { + action: string; + tasks: Task[]; + nextId: number; + listTitle?: string; + listDescription?: string; + error?: string; +} + +const TillDoneParams = Type.Object({ + action: StringEnum(["new-list", "add", "toggle", "remove", "update", "list", "clear"] as const), + text: Type.Optional(Type.String({ description: "Task text (for add/update), or list title (for new-list)" })), + texts: Type.Optional(Type.Array(Type.String(), { description: "Multiple task texts (for add). Use this to batch-add several tasks at once." })), + description: Type.Optional(Type.String({ description: "List description (for new-list)" })), + id: Type.Optional(Type.Number({ description: "Task ID (for toggle/remove/update)" })), +}); + +// ── Status helpers ───────────────────────────────────────────────────── + +const STATUS_ICON: Record = { idle: "○", inprogress: "●", done: "✓" }; +const NEXT_STATUS: Record = { idle: "inprogress", inprogress: "done", done: "idle" }; +const STATUS_LABEL: Record = { idle: "idle", inprogress: "in progress", done: "done" }; + +// ── /tilldone overlay component ──────────────────────────────────────── + +class TillDoneListComponent { + private tasks: Task[]; + private title: string | undefined; + private desc: string | undefined; + private theme: Theme; + private onClose: () => void; + private cachedWidth?: number; + private cachedLines?: string[]; + + constructor(tasks: Task[], title: string | undefined, desc: string | undefined, theme: Theme, onClose: () => void) { + this.tasks = tasks; + this.title = title; + this.desc = desc; + this.theme = theme; + this.onClose = onClose; + } + + handleInput(data: string): void { + if (matchesKey(data, "escape") || matchesKey(data, "ctrl+c")) { + this.onClose(); + } + } + + render(width: number): string[] { + if (this.cachedLines && this.cachedWidth === width) return this.cachedLines; + + const lines: string[] = []; + const th = this.theme; + + lines.push(""); + const heading = this.title + ? th.fg("accent", ` ${this.title} `) + : th.fg("accent", " TillDone "); + const headingLen = this.title ? this.title.length + 2 : 10; + lines.push(truncateToWidth( + th.fg("borderMuted", "─".repeat(3)) + heading + + th.fg("borderMuted", "─".repeat(Math.max(0, width - 3 - headingLen))), + width, + )); + + if (this.desc) { + lines.push(truncateToWidth(` ${th.fg("muted", this.desc)}`, width)); + } + lines.push(""); + + if (this.tasks.length === 0) { + lines.push(truncateToWidth(` ${th.fg("dim", "No tasks yet. Ask the agent to add some!")}`, width)); + } else { + const done = this.tasks.filter((t) => t.status === "done").length; + const active = this.tasks.filter((t) => t.status === "inprogress").length; + const idle = this.tasks.filter((t) => t.status === "idle").length; + + lines.push(truncateToWidth( + " " + + th.fg("success", `${done} done`) + th.fg("dim", " ") + + th.fg("accent", `${active} active`) + th.fg("dim", " ") + + th.fg("muted", `${idle} idle`), + width, + )); + lines.push(""); + + for (const task of this.tasks) { + const icon = task.status === "done" + ? th.fg("success", STATUS_ICON.done) + : task.status === "inprogress" + ? th.fg("accent", STATUS_ICON.inprogress) + : th.fg("dim", STATUS_ICON.idle); + const id = th.fg("accent", `#${task.id}`); + const text = task.status === "done" + ? th.fg("dim", task.text) + : task.status === "inprogress" + ? th.fg("success", task.text) + : th.fg("muted", task.text); + lines.push(truncateToWidth(` ${icon} ${id} ${text}`, width)); + } + } + + lines.push(""); + lines.push(truncateToWidth(` ${th.fg("dim", "Press Escape to close")}`, width)); + lines.push(""); + + this.cachedWidth = width; + this.cachedLines = lines; + return lines; + } + + invalidate(): void { + this.cachedWidth = undefined; + this.cachedLines = undefined; + } +} + +// ── Extension entry point ────────────────────────────────────────────── + +export default function (pi: ExtensionAPI) { + let tasks: Task[] = []; + let nextId = 1; + let listTitle: string | undefined; + let listDescription: string | undefined; + let nudgedThisCycle = false; + + // ── Snapshot for details ─────────────────────────────────────────── + + const makeDetails = (action: string, error?: string): TillDoneDetails => ({ + action, + tasks: [...tasks], + nextId, + listTitle, + listDescription, + ...(error ? { error } : {}), + }); + + // ── UI refresh ───────────────────────────────────────────────────── + + const refreshWidget = (ctx: ExtensionContext) => { + const current = tasks.find((t) => t.status === "inprogress"); + + if (!current) { + ctx.ui.setWidget("tilldone-current", undefined); + return; + } + + ctx.ui.setWidget("tilldone-current", (_tui, theme) => { + const container = new Container(); + const borderFn = (s: string) => theme.fg("dim", s); + + container.addChild(new Text("", 0, 0)); + container.addChild(new DynamicBorder(borderFn)); + const content = new Text("", 1, 0); + container.addChild(content); + container.addChild(new DynamicBorder(borderFn)); + + return { + render(width: number): string[] { + const cur = tasks.find((t) => t.status === "inprogress"); + if (!cur) return []; + + const line = + theme.fg("accent", "● ") + + theme.fg("dim", "WORKING ON ") + + theme.fg("accent", `#${cur.id}`) + + theme.fg("dim", " ") + + theme.fg("success", cur.text); + + content.setText(truncateToWidth(line, width - 4)); + return container.render(width); + }, + invalidate() { container.invalidate(); }, + }; + }, { placement: "belowEditor" }); + }; + + const refreshFooter = (ctx: ExtensionContext) => { + ctx.ui.setFooter((tui, theme, footerData) => { + const unsub = footerData.onBranchChange(() => tui.requestRender()); + + return { + dispose: unsub, + invalidate() {}, + render(width: number): string[] { + const done = tasks.filter((t) => t.status === "done").length; + const active = tasks.filter((t) => t.status === "inprogress").length; + const idle = tasks.filter((t) => t.status === "idle").length; + const total = tasks.length; + + // ── Line 1: list title + progress (left), counts (right) ── + const titleDisplay = listTitle + ? theme.fg("accent", ` ${listTitle} `) + : theme.fg("dim", " TillDone "); + + const l1Left = total === 0 + ? titleDisplay + theme.fg("muted", "no tasks") + : titleDisplay + + theme.fg("warning", "[") + + theme.fg("success", `${done}`) + + theme.fg("dim", "/") + + theme.fg("success", `${total}`) + + theme.fg("warning", "]"); + + const l1Right = total === 0 + ? "" + : theme.fg("dim", STATUS_ICON.idle + " ") + theme.fg("muted", `${idle}`) + + theme.fg("dim", " ") + + theme.fg("accent", STATUS_ICON.inprogress + " ") + theme.fg("accent", `${active}`) + + theme.fg("dim", " ") + + theme.fg("success", STATUS_ICON.done + " ") + theme.fg("success", `${done}`) + + theme.fg("dim", " "); + + const pad1 = " ".repeat(Math.max(1, width - visibleWidth(l1Left) - visibleWidth(l1Right))); + const line1 = truncateToWidth(l1Left + pad1 + l1Right, width, ""); + + if (total === 0) return [line1]; + + // ── Rows: inprogress first, then most recent done, max 5 ── + const activeTasks = tasks.filter((t) => t.status === "inprogress"); + const doneTasks = tasks.filter((t) => t.status === "done").reverse(); + const visible = [...activeTasks, ...doneTasks].slice(0, 5); + const remaining = total - visible.length; + + const rows = visible.map((t) => { + const icon = t.status === "done" + ? theme.fg("success", STATUS_ICON.done) + : theme.fg("accent", STATUS_ICON.inprogress); + const text = t.status === "done" + ? theme.fg("dim", t.text) + : theme.fg("success", t.text); + return truncateToWidth(` ${icon} ${text}`, width, ""); + }); + + if (remaining > 0) { + rows.push(truncateToWidth( + ` ${theme.fg("dim", ` +${remaining} more`)}`, + width, "", + )); + } + + return [line1, ...rows]; + }, + }; + }); + }; + + const refreshUI = (ctx: ExtensionContext) => { + if (tasks.length === 0) { + ctx.ui.setStatus("📋 TillDone: no tasks", "tilldone"); + } else { + const remaining = tasks.filter((t) => t.status !== "done").length; + const label = listTitle ? `📋 ${listTitle}` : "📋 TillDone"; + ctx.ui.setStatus(`${label}: ${tasks.length} tasks (${remaining} remaining)`, "tilldone"); + } + + refreshWidget(ctx); + refreshFooter(ctx); + }; + + // ── State reconstruction from session ────────────────────────────── + + const reconstructState = (ctx: ExtensionContext) => { + tasks = []; + nextId = 1; + listTitle = undefined; + listDescription = undefined; + + for (const entry of ctx.sessionManager.getBranch()) { + if (entry.type !== "message") continue; + const msg = entry.message; + if (msg.role !== "toolResult" || msg.toolName !== "tilldone") continue; + + const details = msg.details as TillDoneDetails | undefined; + if (details) { + tasks = details.tasks; + nextId = details.nextId; + listTitle = details.listTitle; + listDescription = details.listDescription; + } + } + + refreshUI(ctx); + }; + + pi.on("session_start", async (_event, ctx) => { + applyExtensionDefaults(import.meta.url, ctx); + reconstructState(ctx); + }); + pi.on("session_switch", async (_event, ctx) => reconstructState(ctx)); + pi.on("session_fork", async (_event, ctx) => reconstructState(ctx)); + pi.on("session_tree", async (_event, ctx) => reconstructState(ctx)); + + // ── Blocking gate ────────────────────────────────────────────────── + + pi.on("tool_call", async (event, _ctx) => { + if (event.toolName === "tilldone") return { block: false }; + + const pending = tasks.filter((t) => t.status !== "done"); + const active = tasks.filter((t) => t.status === "inprogress"); + + if (tasks.length === 0) { + return { + block: true, + reason: "🚫 No TillDone tasks defined. You MUST use `tilldone new-list` or `tilldone add` to define your tasks before using any other tools. Plan your work first!", + }; + } + if (pending.length === 0) { + return { + block: true, + reason: "🚫 All TillDone tasks are done. You MUST use `tilldone add` for new tasks or `tilldone new-list` to start a fresh list before using any other tools.", + }; + } + if (active.length === 0) { + return { + block: true, + reason: "🚫 No task is in progress. You MUST use `tilldone toggle` to mark a task as inprogress before doing any work.", + }; + } + + return { block: false }; + }); + + // ── Auto-nudge on agent_end ──────────────────────────────────────── + + pi.on("agent_end", async (_event, _ctx) => { + const incomplete = tasks.filter((t) => t.status !== "done"); + if (incomplete.length === 0 || nudgedThisCycle) return; + + nudgedThisCycle = true; + + const taskList = incomplete + .map((t) => ` ${STATUS_ICON[t.status]} #${t.id} [${STATUS_LABEL[t.status]}]: ${t.text}`) + .join("\n"); + + pi.sendMessage( + { + customType: "tilldone-nudge", + content: `⚠️ You still have ${incomplete.length} incomplete task(s):\n\n${taskList}\n\nEither continue working on them or mark them done with \`tilldone toggle\`. Don't stop until it's done!`, + display: true, + }, + { triggerTurn: true }, + ); + }); + + pi.on("input", async () => { + nudgedThisCycle = false; + return { action: "continue" as const }; + }); + + // ── Register tilldone tool ───────────────────────────────────────── + + pi.registerTool({ + name: "tilldone", + label: "TillDone", + description: + "Manage your task list. You MUST add tasks before using any other tools. " + + "Actions: new-list (text=title, description), add (text or texts[] for batch), toggle (id) — cycles idle→inprogress→done, remove (id), update (id + text), list, clear. " + + "Always toggle a task to inprogress before starting work on it, and to done when finished. " + + "Use new-list to start a themed list with a title and description. " + + "IMPORTANT: If the user's new request does not fit the current list's theme, use clear to wipe the slate and new-list to start fresh.", + parameters: TillDoneParams, + + async execute(_toolCallId, params, _signal, _onUpdate, ctx) { + switch (params.action) { + case "new-list": { + if (!params.text) { + return { + content: [{ type: "text" as const, text: "Error: text (title) required for new-list" }], + details: makeDetails("new-list", "text required"), + }; + } + + // If a list already exists, confirm before replacing + if (tasks.length > 0 || listTitle) { + const confirmed = await ctx.ui.confirm( + "Start a new list?", + `This will replace${listTitle ? ` "${listTitle}"` : " the current list"} (${tasks.length} task(s)). Continue?`, + { timeout: 30000 }, + ); + if (!confirmed) { + return { + content: [{ type: "text" as const, text: "New list cancelled by user." }], + details: makeDetails("new-list", "cancelled"), + }; + } + } + + tasks = []; + nextId = 1; + listTitle = params.text; + listDescription = params.description || undefined; + + const result = { + content: [{ + type: "text" as const, + text: `New list: "${listTitle}"${listDescription ? ` — ${listDescription}` : ""}`, + }], + details: makeDetails("new-list"), + }; + refreshUI(ctx); + return result; + } + + case "list": { + const header = listTitle ? `${listTitle}:` : ""; + const result = { + content: [{ + type: "text" as const, + text: tasks.length + ? (header ? header + "\n" : "") + + tasks.map((t) => `[${STATUS_ICON[t.status]}] #${t.id} (${t.status}): ${t.text}`).join("\n") + : "No tasks defined yet.", + }], + details: makeDetails("list"), + }; + refreshUI(ctx); + return result; + } + + case "add": { + const items = params.texts?.length ? params.texts : params.text ? [params.text] : []; + if (items.length === 0) { + return { + content: [{ type: "text" as const, text: "Error: text or texts required for add" }], + details: makeDetails("add", "text required"), + }; + } + const added: Task[] = []; + for (const item of items) { + const t: Task = { id: nextId++, text: item, status: "idle" }; + tasks.push(t); + added.push(t); + } + const msg = added.length === 1 + ? `Added task #${added[0].id}: ${added[0].text}` + : `Added ${added.length} tasks: ${added.map((t) => `#${t.id}`).join(", ")}`; + const result = { + content: [{ type: "text" as const, text: msg }], + details: makeDetails("add"), + }; + refreshUI(ctx); + return result; + } + + case "toggle": { + if (params.id === undefined) { + return { + content: [{ type: "text" as const, text: "Error: id required for toggle" }], + details: makeDetails("toggle", "id required"), + }; + } + const task = tasks.find((t) => t.id === params.id); + if (!task) { + return { + content: [{ type: "text" as const, text: `Task #${params.id} not found` }], + details: makeDetails("toggle", `#${params.id} not found`), + }; + } + const prev = task.status; + task.status = NEXT_STATUS[task.status]; + + // Enforce single inprogress — demote any other active task + const demoted: Task[] = []; + if (task.status === "inprogress") { + for (const t of tasks) { + if (t.id !== task.id && t.status === "inprogress") { + t.status = "idle"; + demoted.push(t); + } + } + } + + let msg = `Task #${task.id}: ${prev} → ${task.status}`; + if (demoted.length > 0) { + msg += `\n(Auto-paused ${demoted.map((t) => `#${t.id}`).join(", ")} → idle. Only one task can be in progress at a time.)`; + } + + const result = { + content: [{ + type: "text" as const, + text: msg, + }], + details: makeDetails("toggle"), + }; + refreshUI(ctx); + return result; + } + + case "remove": { + if (params.id === undefined) { + return { + content: [{ type: "text" as const, text: "Error: id required for remove" }], + details: makeDetails("remove", "id required"), + }; + } + const idx = tasks.findIndex((t) => t.id === params.id); + if (idx === -1) { + return { + content: [{ type: "text" as const, text: `Task #${params.id} not found` }], + details: makeDetails("remove", `#${params.id} not found`), + }; + } + const removed = tasks.splice(idx, 1)[0]; + const result = { + content: [{ type: "text" as const, text: `Removed task #${removed.id}: ${removed.text}` }], + details: makeDetails("remove"), + }; + refreshUI(ctx); + return result; + } + + case "update": { + if (params.id === undefined) { + return { + content: [{ type: "text" as const, text: "Error: id required for update" }], + details: makeDetails("update", "id required"), + }; + } + if (!params.text) { + return { + content: [{ type: "text" as const, text: "Error: text required for update" }], + details: makeDetails("update", "text required"), + }; + } + const toUpdate = tasks.find((t) => t.id === params.id); + if (!toUpdate) { + return { + content: [{ type: "text" as const, text: `Task #${params.id} not found` }], + details: makeDetails("update", `#${params.id} not found`), + }; + } + const oldText = toUpdate.text; + toUpdate.text = params.text; + const result = { + content: [{ type: "text" as const, text: `Updated #${toUpdate.id}: "${oldText}" → "${toUpdate.text}"` }], + details: makeDetails("update"), + }; + refreshUI(ctx); + return result; + } + + case "clear": { + if (tasks.length > 0) { + const confirmed = await ctx.ui.confirm( + "Clear TillDone list?", + `This will remove all ${tasks.length} task(s)${listTitle ? ` from "${listTitle}"` : ""}. Continue?`, + { timeout: 30000 }, + ); + if (!confirmed) { + return { + content: [{ type: "text" as const, text: "Clear cancelled by user." }], + details: makeDetails("clear", "cancelled"), + }; + } + } + + const count = tasks.length; + tasks = []; + nextId = 1; + listTitle = undefined; + listDescription = undefined; + + const result = { + content: [{ type: "text" as const, text: `Cleared ${count} task(s)` }], + details: makeDetails("clear"), + }; + refreshUI(ctx); + return result; + } + + default: + return { + content: [{ type: "text" as const, text: `Unknown action: ${params.action}` }], + details: makeDetails("list", `unknown action: ${params.action}`), + }; + } + }, + + renderCall(args, theme) { + let text = theme.fg("toolTitle", theme.bold("tilldone ")) + theme.fg("muted", args.action); + if (args.texts?.length) text += ` ${theme.fg("dim", `${args.texts.length} tasks`)}`; + else if (args.text) text += ` ${theme.fg("dim", `"${args.text}"`)}`; + if (args.description) text += ` ${theme.fg("dim", `— ${args.description}`)}`; + if (args.id !== undefined) text += ` ${theme.fg("accent", `#${args.id}`)}`; + return new Text(text, 0, 0); + }, + + renderResult(result, { expanded }, theme) { + const details = result.details as TillDoneDetails | undefined; + if (!details) { + const text = result.content[0]; + return new Text(text?.type === "text" ? text.text : "", 0, 0); + } + + if (details.error) { + return new Text(theme.fg("error", `Error: ${details.error}`), 0, 0); + } + + const taskList = details.tasks; + + switch (details.action) { + case "new-list": { + let msg = theme.fg("success", "✓ New list ") + theme.fg("accent", `"${details.listTitle}"`); + if (details.listDescription) { + msg += theme.fg("dim", ` — ${details.listDescription}`); + } + return new Text(msg, 0, 0); + } + + case "list": { + if (taskList.length === 0) return new Text(theme.fg("dim", "No tasks"), 0, 0); + + let listText = ""; + if (details.listTitle) { + listText += theme.fg("accent", details.listTitle) + theme.fg("dim", " "); + } + listText += theme.fg("muted", `${taskList.length} task(s):`); + const display = expanded ? taskList : taskList.slice(0, 5); + for (const t of display) { + const icon = t.status === "done" + ? theme.fg("success", STATUS_ICON.done) + : t.status === "inprogress" + ? theme.fg("accent", STATUS_ICON.inprogress) + : theme.fg("dim", STATUS_ICON.idle); + const itemText = t.status === "done" + ? theme.fg("dim", t.text) + : t.status === "inprogress" + ? theme.fg("success", t.text) + : theme.fg("muted", t.text); + listText += `\n${icon} ${theme.fg("accent", `#${t.id}`)} ${itemText}`; + } + if (!expanded && taskList.length > 5) { + listText += `\n${theme.fg("dim", `... ${taskList.length - 5} more`)}`; + } + return new Text(listText, 0, 0); + } + + case "add": { + const text = result.content[0]; + const msg = text?.type === "text" ? text.text : ""; + return new Text(theme.fg("success", "✓ ") + theme.fg("muted", msg), 0, 0); + } + + case "toggle": { + const text = result.content[0]; + const msg = text?.type === "text" ? text.text : ""; + return new Text(theme.fg("accent", "⟳ ") + theme.fg("muted", msg), 0, 0); + } + + case "remove": { + const text = result.content[0]; + const msg = text?.type === "text" ? text.text : ""; + return new Text(theme.fg("warning", "✕ ") + theme.fg("muted", msg), 0, 0); + } + + case "update": { + const text = result.content[0]; + const msg = text?.type === "text" ? text.text : ""; + return new Text(theme.fg("success", "✓ ") + theme.fg("muted", msg), 0, 0); + } + + case "clear": + return new Text(theme.fg("success", "✓ ") + theme.fg("muted", "Cleared all tasks"), 0, 0); + + default: + return new Text(theme.fg("dim", "done"), 0, 0); + } + }, + }); + + // ── /tilldone command ────────────────────────────────────────────── + + pi.registerCommand("tilldone", { + description: "Show all TillDone tasks on the current branch", + handler: async (_args, ctx) => { + if (!ctx.hasUI) { + ctx.ui.notify("/tilldone requires interactive mode", "error"); + return; + } + + await ctx.ui.custom((_tui, theme, _kb, done) => { + return new TillDoneListComponent(tasks, listTitle, listDescription, theme, () => done()); + }); + }, + }); +} diff --git a/extensions/tool-counter-widget.ts b/extensions/tool-counter-widget.ts new file mode 100644 index 0000000..0cee9b2 --- /dev/null +++ b/extensions/tool-counter-widget.ts @@ -0,0 +1,68 @@ +/** + * Tool Counter Widget — Tool call counts in a widget above the editor + * + * Shows a persistent, live-updating widget with per-tool background colors. + * Format: Tools (N): [Bash 3] [Read 7] [Write 2] + * + * Usage: pi -e extensions/tool-counter-widget.ts + */ + +import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import { Box, Text } from "@mariozechner/pi-tui"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +const palette = [ + [12, 40, 80], // deep navy + [50, 20, 70], // dark purple + [10, 55, 45], // dark teal + [70, 30, 10], // dark rust + [55, 15, 40], // dark plum + [15, 50, 65], // dark ocean + [45, 45, 15], // dark olive + [65, 18, 25], // dark wine +]; + +function bg(rgb: number[], s: string): string { + return `\x1b[48;2;${rgb[0]};${rgb[1]};${rgb[2]}m${s}\x1b[49m`; +} + +export default function (pi: ExtensionAPI) { + const counts: Record = {}; + const toolColors: Record = {}; + let total = 0; + let colorIdx = 0; + + pi.on("tool_execution_end", async (event) => { + if (!(event.toolName in toolColors)) { + toolColors[event.toolName] = palette[colorIdx % palette.length]; + colorIdx++; + } + counts[event.toolName] = (counts[event.toolName] || 0) + 1; + total++; + }); + + pi.on("session_start", async (_event, ctx) => { + applyExtensionDefaults(import.meta.url, ctx); + ctx.ui.setWidget("tool-counter", (_tui, theme) => { + const text = new Text("", 1, 1); + + return { + render(width: number): string[] { + const entries = Object.entries(counts); + const parts = entries.map(([name, count]) => { + const rgb = toolColors[name]; + return bg(rgb, `\x1b[38;2;220;220;220m ${name} ${count} \x1b[39m`); + }); + text.setText( + theme.fg("accent", `Tools (${total}):`) + + (entries.length > 0 ? " " + parts.join(" ") : "") + ); + return text.render(width); + }, + invalidate() { + text.invalidate(); + }, + }; + }); + }); +} diff --git a/extensions/tool-counter.ts b/extensions/tool-counter.ts new file mode 100644 index 0000000..db02ba5 --- /dev/null +++ b/extensions/tool-counter.ts @@ -0,0 +1,102 @@ +/** + * Tool Counter — Rich two-line custom footer + * + * Line 1: model + context meter on left, tokens in/out + cost on right + * Line 2: cwd (branch) on left, tool call tally on right + * + * Demonstrates: setFooter, footerData.getGitBranch(), onBranchChange(), + * session branch traversal for token/cost accumulation. + * + * Usage: pi -e extensions/tool-counter.ts + */ + +import type { AssistantMessage } from "@mariozechner/pi-ai"; +import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import { truncateToWidth, visibleWidth } from "@mariozechner/pi-tui"; +import { basename } from "node:path"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +export default function (pi: ExtensionAPI) { + const counts: Record = {}; + + pi.on("tool_execution_end", async (event) => { + counts[event.toolName] = (counts[event.toolName] || 0) + 1; + }); + + pi.on("session_start", async (_event, ctx) => { + applyExtensionDefaults(import.meta.url, ctx); + ctx.ui.setFooter((tui, theme, footerData) => { + const unsub = footerData.onBranchChange(() => tui.requestRender()); + + return { + dispose: unsub, + invalidate() {}, + render(width: number): string[] { + // --- Line 1: cwd + branch (left), tokens + cost (right) --- + let tokIn = 0; + let tokOut = 0; + let cost = 0; + for (const entry of ctx.sessionManager.getBranch()) { + if (entry.type === "message" && entry.message.role === "assistant") { + const m = entry.message as AssistantMessage; + tokIn += m.usage.input; + tokOut += m.usage.output; + cost += m.usage.cost.total; + } + } + + const fmt = (n: number) => n < 1000 ? `${n}` : `${(n / 1000).toFixed(1)}k`; + const dir = basename(ctx.cwd); + const branch = footerData.getGitBranch(); + + // --- Line 1: model + context meter (left), tokens + cost (right) --- + const usage = ctx.getContextUsage(); + const pct = usage ? usage.percent : 0; + const filled = Math.round(pct / 10) || 1; + const bar = "#".repeat(filled) + "-".repeat(10 - filled); + const model = ctx.model?.id || "no-model"; + + const l1Left = + theme.fg("dim", ` ${model} `) + + theme.fg("warning", "[") + + theme.fg("success", "#".repeat(filled)) + + theme.fg("dim", "-".repeat(10 - filled)) + + theme.fg("warning", "]") + + theme.fg("dim", " ") + + theme.fg("accent", `${Math.round(pct)}%`); + + const l1Right = + theme.fg("success", `${fmt(tokIn)}`) + + theme.fg("dim", " in ") + + theme.fg("accent", `${fmt(tokOut)}`) + + theme.fg("dim", " out ") + + theme.fg("warning", `$${cost.toFixed(4)}`) + + theme.fg("dim", " "); + + const pad1 = " ".repeat(Math.max(1, width - visibleWidth(l1Left) - visibleWidth(l1Right))); + const line1 = truncateToWidth(l1Left + pad1 + l1Right, width, ""); + + // --- Line 2: cwd + branch (left), tool tally (right) --- + const l2Left = + theme.fg("dim", ` ${dir}`) + + (branch + ? theme.fg("dim", " ") + theme.fg("warning", "(") + theme.fg("success", branch) + theme.fg("warning", ")") + : ""); + + const entries = Object.entries(counts); + const l2Right = entries.length === 0 + ? theme.fg("dim", "waiting for tools ") + : entries.map( + ([name, count]) => + theme.fg("accent", name) + theme.fg("dim", " ") + theme.fg("success", `${count}`) + ).join(theme.fg("warning", " | ")) + theme.fg("dim", " "); + + const pad2 = " ".repeat(Math.max(1, width - visibleWidth(l2Left) - visibleWidth(l2Right))); + const line2 = truncateToWidth(l2Left + pad2 + l2Right, width, ""); + + return [line1, line2]; + }, + }; + }); + }); +} diff --git a/images/pi-logo.png b/images/pi-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..6b7fc49a53f9c0dc756cbc064f9b6d30d4a11e88 GIT binary patch literal 3778 zcmeAS@N?(olHy`uVBq!ia0y~yU{(NO4mP03?EPX@vYcv+Z3iPP7r+e#*u|{Nt@0UsY^#n^&J<*%+ptU9`fN` zTYB0xCZJKHVC05?T#7$`!+qJ~9}Cxht*T-_VEiTV{omXwmJeHEm$4tPja$2Q-78E{J3}5dWE#nYs%0)STipE`_4@A@4u*tz3=a)&fduZ}`<+(B!eDS- zTxYZf9&M7)ra1<#mTzypcKW5@oL9fUFg$RqTemfDnR~&i+o0y)C>Y5h@Mm$notM&s T7o2P*pkVNH^>bP0l+XkK-?P3& literal 0 HcmV?d00001 diff --git a/images/pi-logo.svg b/images/pi-logo.svg new file mode 100644 index 0000000..ed14b63 --- /dev/null +++ b/images/pi-logo.svg @@ -0,0 +1,22 @@ + + + + + + + diff --git a/justfile b/justfile new file mode 100644 index 0000000..2d69dfe --- /dev/null +++ b/justfile @@ -0,0 +1,107 @@ +set dotenv-load := true + +default: + @just --list + +# g1 + +# 1. default pi +pi: + pi + +# 2. Pure focus pi: strip footer and status line entirely +ext-pure-focus: + pi -e extensions/pure-focus.ts + +# 3. Minimal pi: model name + 10-block context meter +ext-minimal: + pi -e extensions/minimal.ts -e extensions/theme-cycler.ts + +# 4. Cross-agent pi: load commands from .claude/, .gemini/, .codex/ dirs +ext-cross-agent: + pi -e extensions/cross-agent.ts -e extensions/minimal.ts + +# 5. Purpose gate pi: declare intent before working, persistent widget, focus the system prompt on the ONE PURPOSE for this agent +ext-purpose-gate: + pi -e extensions/purpose-gate.ts -e extensions/minimal.ts + +# 6. Customized footer pi: Tool counter, model, branch, cwd, cost, etc. +ext-tool-counter: + pi -e extensions/tool-counter.ts + +# 7. Tool counter widget: tool call counts in a below-editor widget +ext-tool-counter-widget: + pi -e extensions/tool-counter-widget.ts -e extensions/minimal.ts + +# 8. Subagent widget: /sub with live streaming progress +ext-subagent-widget: + pi -e extensions/subagent-widget.ts -e extensions/pure-focus.ts -e extensions/theme-cycler.ts + +# 9. TillDone: task-driven discipline — define tasks before working +ext-tilldone: + pi -e extensions/tilldone.ts -e extensions/theme-cycler.ts + +#g2 + +# 10. Agent team: dispatcher orchestrator with team select and grid dashboard +ext-agent-team: + pi -e extensions/agent-team.ts -e extensions/theme-cycler.ts + +# 11. System select: /system to pick an agent persona as system prompt +ext-system-select: + pi -e extensions/system-select.ts -e extensions/minimal.ts -e extensions/theme-cycler.ts + +# 12. Launch with Damage-Control safety auditing +ext-damage-control: + pi -e extensions/damage-control.ts -e extensions/minimal.ts -e extensions/theme-cycler.ts + +# 13. Agent chain: sequential pipeline orchestrator +ext-agent-chain: + pi -e extensions/agent-chain.ts -e extensions/theme-cycler.ts + +#g3 + +# 14. Pi Pi: meta-agent that builds Pi agents with parallel expert research +ext-pi-pi: + pi -e extensions/pi-pi.ts -e extensions/theme-cycler.ts + +#ext + +# 15. Session Replay: scrollable timeline overlay of session history (legit) +ext-session-replay: + pi -e extensions/session-replay.ts -e extensions/minimal.ts + +# 16. Theme cycler: Ctrl+X forward, Ctrl+Q backward, /theme picker +ext-theme-cycler: + pi -e extensions/theme-cycler.ts -e extensions/minimal.ts + +# utils + +# Open pi with one or more stacked extensions in a new terminal: just open minimal tool-counter +open +exts: + #!/usr/bin/env bash + args="" + for ext in {{exts}}; do + args="$args -e extensions/$ext.ts" + done + cmd="cd '{{justfile_directory()}}' && pi$args" + escaped="${cmd//\\/\\\\}" + escaped="${escaped//\"/\\\"}" + osascript -e "tell application \"Terminal\" to do script \"$escaped\"" + +# Open every extension in its own terminal window +all: + just open pi + just open pure-focus + just open minimal theme-cycler + just open cross-agent minimal + just open purpose-gate minimal + just open tool-counter + just open tool-counter-widget minimal + just open subagent-widget pure-focus theme-cycler + just open tilldone theme-cycler + just open agent-team theme-cycler + just open system-select minimal theme-cycler + just open damage-control minimal theme-cycler + just open agent-chain theme-cycler + just open pi-pi theme-cycler \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..ea5834f --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "name": "pi-vs-cc", + "private": true, + "type": "module", + "description": "Pi Coding Agent extension playground", + "dependencies": { + "yaml": "^2.8.0" + } +} diff --git a/specs/agent-forge.md b/specs/agent-forge.md new file mode 100644 index 0000000..48f1278 --- /dev/null +++ b/specs/agent-forge.md @@ -0,0 +1,72 @@ +# Specification: Agent Forge (Evolutionary Tooling) + +## 1. Overview +**Agent Forge** is an evolutionary extension for the Pi Coding Agent. It enables the agent to expand its own capabilities by dynamically generating, validating, and loading new TypeScript tools on demand. Instead of a static set of capabilities, Agent Forge turns the agent into a meta-developer that builds its own infrastructure. + +## 2. Core Architecture + +### 2.1 The Toolbox +All evolved tools are stored in the `extensions/` directory with a specific naming pattern: +- `extensions/forge-.ts`: The executable TypeScript logic. +- `extensions/forge-.json`: Metadata, including the tool's description and TypeBox parameters schema. +- `extensions/forge-registry.json`: A central manifest for fast tool discovery during the `before_agent_start` hook. + +### 2.2 The Proxy Model +Unlike `agent-team` which spawns new processes, Agent Forge uses a **Hybrid Proxy Model**: +1. **Dynamic Loading**: Uses `jiti` (Pi's internal runtime) to load forged tools into the existing process. +2. **Context Sharing**: Forged tools have direct access to the `ExtensionAPI`, allowing them to interact with the UI, notify the user, and use the existing toolset (read/write/bash). +3. **Zero Overhead**: Execution is instantaneous as it happens within the same Node.js/Bun runtime. + +## 3. Core Tools + +### 3.1 `forge_tool` +- **Purpose**: Generates a new tool or updates an existing one. +- **Inputs**: `name`, `description`, `parametersSchema`, and `logic` (the TypeScript body). +- **Process**: + 1. Wraps `logic` in a standard tool template. + 2. Writes `.ts` and `.json` files to `extensions/`. + 3. **Pre-flight Check**: Attempts to load the tool via `jiti`. If it fails (syntax error), it reports the error to the agent for "Self-Healing". + 4. Updates `forge-registry.json`. + +### 3.2 `use_forge_tool` +- **Purpose**: Executes a previously forged tool. +- **Process**: + 1. Resolves the tool from the registry. + 2. Dynamically imports the `.ts` file. + 3. Passes arguments to the tool's `execute` function. + 4. Handles runtime errors gracefully, offering to "debug" the tool if it crashes. + +### 3.3 `list_forge` +- **Purpose**: Lists all available evolved tools and their descriptions. + +## 4. Safety & Self-Healing +- **Sandboxing**: Forged tools are restricted to a "Core Library" of imports (fs, path, child_process, typebox). +- **Versioning**: Each `forge_tool` call creates a `.bak` of the previous version. +- **Self-Healing**: If `use_forge_tool` or `forge_tool`'s pre-flight check fails, the agent is provided with the stack trace and the source code to perform an immediate fix. + +## 5. UI Integration +- **Forge Widget**: A dedicated dashboard element showing: + - **Evolved Tools**: Count of active tools. + - **Last Action**: "Forged 'sql-explorer' 2m ago" or "Executing 'log-parser'...". + - **Health**: Indicator of any tools currently in a "broken" state. +- **Status Bar**: Displays the "Forge Tier" (based on number of successful tools). + +## 6. Template Structure +Every forged tool follows this mandatory structure: +```typescript +import { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import { Type } from "@sinclair/typebox"; + +export const metadata = { + name: "custom_tool", + description: "...", + parameters: Type.Object({ ... }) +}; + +export async function execute(params: any, pi: ExtensionAPI, ctx: any) { + // Logic goes here +} +``` + +## 7. Integration with Agent-Team +Agent Forge can act as a "specialist" within an `agent-team`. The "Engineer" agent in a team can use Agent Forge to build tools for the "Analyst" or "Builder" agents, creating a collaborative ecosystem of meta-programming. diff --git a/specs/agent-workflow.md b/specs/agent-workflow.md new file mode 100644 index 0000000..f01b38d --- /dev/null +++ b/specs/agent-workflow.md @@ -0,0 +1,64 @@ +# Specification: The Chronicle (agent-workflow) + +## 1. Overview +**The Chronicle** is a temporal orchestration extension for the Pi Coding Agent. It enables long-running, state-aware workflows that span multiple sessions and personas. Unlike traditional linear agents, The Chronicle manages a formal **State Machine** where each stage of a project is handled by a specialized agent persona, with the extension acting as a persistent "State Supervisor." + +## 2. Core Architecture + +### 2.1 The Supervisor Model +The Chronicle operates as a non-working supervisor that delegates tasks to worker agents. +- **The Ledger**: A persistent JSON file (`.pi/chronicle/sessions/.json`) that tracks the project state, file snapshots, and transition history. +- **State Isolation**: Each state is executed by a fresh Pi sub-agent process with a specialized system prompt, preventing "persona leakage" and ensuring clean tool contexts. +- **Context Handover**: When transitioning, the Supervisor extracts a "Snapshot" (modified files, key discoveries, pending tasks) and injects it into the next agent's starting context. + +### 2.2 Workflow Definition +Workflows are defined in JSON templates: +```json +{ + "name": "Feature Implementation", + "states": { + "planning": { + "persona": "Software Architect", + "next": ["implementation"], + "requires_approval": true + }, + "implementation": { + "persona": "Senior Engineer", + "next": ["verification", "planning"] + } + } +} +``` + +## 3. Key Mechanisms + +### 3.1 Explicit Transitions +To ensure reliability, transitions are **explicit**. The agent must call a tool to signal completion: +- `workflow_transition(target_state, summary)`: Finalizes the current state, saves the snapshot, and triggers the supervisor to spawn the next agent. +- `workflow_update_snapshot(data)`: Allows agents to "checkpoint" critical findings (e.g., "The API port is 8081, not 8080") that must persist through the entire workflow. + +### 3.2 Temporal Persistence +- **Checkpointing**: Every tool call and state change is logged to the Ledger. +- **Recovery**: If a session is interrupted (e.g., power loss, manual exit), the extension can resume exactly where it left off by reading the Ledger and re-priming the sub-agent. + +### 3.3 TUI Integration (The Timeline) +A dedicated widget displays the project's journey: +- **Breadcrumbs**: `Planning [✓] -> Implementation [●] -> Verification [ ]`. +- **Metrics**: Displays cumulative token usage and time elapsed per state. +- **Diff View**: Shows which files have been modified since the start of the current state. + +## 4. Operational Guardrails + +### 4.1 Anti-Looping +If a workflow transitions between the same states more than 3 times (e.g., Planning -> Implementation -> Planning -> Implementation), the Supervisor forces a transition to a `human_intervention` state and blocks further automated moves. + +### 4.2 Resource Budgeting +The Supervisor tracks the total cost and token consumption across all sub-agents. It can be configured with hard limits to prevent runaway costs in long-running workflows. + +### 4.3 Cleanup +Each state can define a cleanup routine that the Supervisor executes (e.g., killing background processes) before the next agent is spawned. + +## 5. Integration +The Chronicle integrates with: +- **agent-team**: To fetch specialized personas for specific states. +- **damage-control**: To enforce safety rules across all worker sub-agents spawned by the Supervisor. diff --git a/specs/damage-control.md b/specs/damage-control.md new file mode 100644 index 0000000..c70872f --- /dev/null +++ b/specs/damage-control.md @@ -0,0 +1,44 @@ +# Specification: Damage-Control Extension + +## 1. Overview +**Damage-Control** is a safety and observability extension for the Pi Coding Agent. It enforces security patterns and "Rules of Engagement" by auditing tool calls in real-time. It intercepts potentially dangerous operations and enforces path-based access controls. + +## 2. Core Architecture +- **Rule Engine**: Loads `.pi/damage-control-rules.yaml` on `session_start`. If missing, it defaults to an empty rule set. +- **Interception Hook**: Uses `pi.on("tool_call", handler)` to evaluate every tool call before execution. +- **Path Resolver**: Utility to expand tildes (`~`) and resolve relative paths against the current working directory (`cwd`) for accurate matching. + +## 3. Tool Interception Logic +The extension uses `isToolCallEventType(toolName, event)` for type-safe narrowing of events. + +### A. Bash Tool (`bash`) +- **Input Field**: `event.input.command`. +- **Destructive Patterns**: Match `bashToolPatterns` regex against the raw command string. +- **Path Matching**: Best-effort heuristic. Match `zeroAccessPaths`, `readOnlyPaths`, and `noDeletePaths` as substrings/regex patterns within the command string. +- **Modification Detection**: Block any bash command referencing `readOnlyPaths` patterns to prevent redirects (`>`), in-place edits (`sed -i`), or moves/deletes. + +### B. File Tools (`read`, `write`, `edit`, `grep`, `find`, `ls`) +- **Input Field**: `event.input.path`. +- **Default Path**: For `grep`, `find`, and `ls`, if `path` is undefined, treat it as `ctx.cwd` for matching. +- **Access Control**: + - **Zero Access**: Block if path matches any `zeroAccessPaths` pattern. + - **Grep Glob**: Check the `glob` field of `grep` (`event.input.glob`) against `zeroAccessPaths`. + - **Read Only**: Block `write` or `edit` calls if path matches `readOnlyPaths`. + - **No Delete**: Block `bash` calls involving `rm` or similar on `noDeletePaths`. + +## 4. Intervention & UI +- **Status Indicator**: Use `ctx.ui.setStatus()` to show an indicator of active safety rules (e.g., "🛡️ Damage-Control Active: 142 Rules"). +- **Violation Feedback**: When a violation is blocked or confirmed, update the status temporarily to show the last event (e.g., "⚠️ Last Violation: git reset --hard"). +- **Blocking**: Return `{ block: true, reason: "Security Policy Violation: [Reason]" }`. +- **User Confirmation (`ask: true`)**: + - For rules with `ask: true`, the handler must `await ctx.ui.confirm(title, message, { timeout: 30000 })`. + - Return `{ block: !confirmed, reason: "User denied execution" }`. +- **Notifications**: Use `ctx.ui.notify()` to alert the user when a rule is triggered. + +## 5. Logging & Persistence +- Every interception (block or confirm) is logged using `pi.appendEntry("damage-control-log", { tool, input, rule, action })`. This ensures the security audit is part of the permanent session history. + +## 6. Implementation Notes +- **Path Resolution**: Must match against both raw input (e.g., `src/main.ts`) and absolute resolved paths. Handle `ctx.cwd` fallback for optional paths. +- **Tilde Expansion**: Manually expand `~` to `process.env.HOME` or `os.homedir()`. +- **Graceful Fallback**: If YAML parsing fails, notify the user and continue with no active rules rather than crashing the extension. diff --git a/specs/pi-pi.md b/specs/pi-pi.md new file mode 100644 index 0000000..cd40be3 --- /dev/null +++ b/specs/pi-pi.md @@ -0,0 +1,138 @@ +# Pi Pi — Meta Agent Spec + +## Purpose + +A Pi extension that builds Pi agents. The "Pi Pi" agent is a meta-agent — it knows how to create extensions, themes, skills, settings, prompt templates, and TUI components by querying a team of domain-specific research agents in parallel. + +## Architecture + +``` +User Request: "Build me a Pi agent that does X" + │ + ▼ +┌──────────────────────────────────┐ +│ Primary Agent ("Pi Pi") │ +│ Tools: read,write,edit,bash, │ +│ grep,find,ls, │ +│ query_expert │ +│ Role: WRITER — gathers info │ +│ from experts, then builds │ +└──────┬───────────────────────────┘ + │ query_expert (parallel) + ├──────────────────────────┐──────────────────────┐──────────────────────┐──────────────────────┐ + ▼ ▼ ▼ ▼ ▼ +┌─────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ +│ ext-expert │ │ theme-expert │ │ skill-expert │ │ config-expert│ │ tui-expert │ +│ Extensions │ │ Themes │ │ Skills │ │ Settings │ │ TUI/UI │ +│ Tools, cmds │ │ JSON format │ │ SKILL.md │ │ Providers │ │ Components │ +│ Events, API │ │ Color tokens │ │ Frontmatter │ │ Models │ │ Rendering │ +│ │ │ Hot reload │ │ Directories │ │ Packages │ │ Keyboard │ +│ read-only │ │ read-only │ │ read-only │ │ read-only │ │ read-only │ +└─────────────┘ └──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘ +``` + +## Flow + +1. User asks the primary Pi Pi agent to build something +2. Primary agent identifies which domains are relevant +3. Primary dispatches `query_expert` calls in PARALLEL to all relevant experts +4. Each expert: + a. Uses `/skill:firecrawl` to scrape fresh Pi documentation for their domain + b. Searches the local codebase for existing patterns and examples + c. Returns structured research findings +5. Primary agent receives ALL expert responses +6. Primary agent synthesizes the information and WRITES the actual files + +## Expert Agents + +### ext-expert (Extensions) +- **Domain**: Pi extensions — custom tools, events, commands, shortcuts, flags, state management, custom rendering, overriding tools +- **Doc URL**: `https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/extensions.md` +- **Tools**: read,grep,find,ls,bash +- **First action**: Fetch fresh extensions.md via firecrawl + +### theme-expert (Themes) +- **Domain**: Pi themes — JSON format, 51 color tokens, vars, hex/256-color values, hot reload +- **Doc URL**: `https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/themes.md` +- **Tools**: read,grep,find,ls,bash +- **First action**: Fetch fresh themes.md via firecrawl + +### skill-expert (Skills) +- **Domain**: Pi skills — SKILL.md format, frontmatter, directories, validation, /skill:name commands +- **Doc URL**: `https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/skills.md` +- **Tools**: read,grep,find,ls,bash +- **First action**: Fetch fresh skills.md via firecrawl + +### config-expert (Settings & Providers) +- **Domain**: Pi settings, providers, models, packages, keybindings — settings.json, models.json, packages, enabledModels +- **Doc URLs**: settings.md, providers.md, models.md, packages.md, keybindings.md +- **Tools**: read,grep,find,ls,bash +- **First action**: Fetch fresh settings.md + providers.md via firecrawl + +### tui-expert (TUI Components) +- **Domain**: Pi TUI — Component interface, Text, Box, Container, Markdown, Image, keyboard input, custom components, overlays, theming, SelectList, SettingsList, BorderedLoader, widgets, footers, editors +- **Doc URL**: `https://raw.githubusercontent.com/badlogic/pi-mono/refs/heads/main/packages/coding-agent/docs/tui.md` +- **Tools**: read,grep,find,ls,bash +- **First action**: Fetch fresh tui.md via firecrawl + +## Extension Structure + +File: `extensions/pi-pi.ts` + +### Differences from agent-team.ts + +| Feature | agent-team | pi-pi | +|---------|-----------|-------| +| Primary tools | dispatch_agent ONLY | read,write,edit,bash,grep,find,ls + query_expert | +| Subagent tools | varies per agent | read,grep,find,ls,bash (read-only + bash for firecrawl) | +| Dispatch model | Sequential | Parallel (LLM calls query_expert N times) | +| Subagent sessions | Persistent | Ephemeral (--no-session) | +| System prompt | Generic dispatcher | Specialized meta-agent builder | +| First prompt | None | Each expert fetches fresh docs on first query | + +### Tool: query_expert + +```typescript +pi.registerTool({ + name: "query_expert", + label: "Query Expert", + description: "Query a domain expert for Pi documentation and patterns. Experts research in parallel. Use multiple query_expert calls in one response for parallel research.", + parameters: Type.Object({ + expert: Type.String({ description: "Expert name: ext-expert, theme-expert, skill-expert, config-expert, tui-expert" }), + question: Type.String({ description: "What to research — be specific about what you need to build" }), + }), +}) +``` + +### Widget + +Grid of expert cards showing: +- Expert name and status (idle/researching/done/error) +- Current question being researched +- Elapsed time + +### Justfile Entry + +```just +ext-pi-pi: + pi -e extensions/pi-pi.ts +``` + +## Agent Definition Files + +Located in `.pi/agents/`: +- `ext-expert.md` +- `theme-expert.md` +- `skill-expert.md` +- `config-expert.md` +- `tui-expert.md` + +Teams entry in `.pi/agents/teams.yaml`: +```yaml +pi-pi: + - ext-expert + - theme-expert + - skill-expert + - config-expert + - tui-expert +``` From ae242436c94fa2d034c91b3ea56540e4f5741cb3 Mon Sep 17 00:00:00 2001 From: IndyDevDan Date: Thu, 26 Feb 2026 15:55:17 -0600 Subject: [PATCH 02/40] pi vs open code --- PI_VS_OPEN_CODE.md | 178 +++++++++++++++++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 179 insertions(+) create mode 100644 PI_VS_OPEN_CODE.md diff --git a/PI_VS_OPEN_CODE.md b/PI_VS_OPEN_CODE.md new file mode 100644 index 0000000..c810112 --- /dev/null +++ b/PI_VS_OPEN_CODE.md @@ -0,0 +1,178 @@ +# Pi Agent vs OpenCode — Customization & Control Comparison + +> Pi v0.52+ vs OpenCode v1.1+ (Feb 2026) +> +> **Thesis:** Pi and OpenCode are both MIT-licensed, open-source, model-agnostic terminal coding agents. But they represent fundamentally different architectures. Pi is a **programmable platform** — a minimal harness with 25+ in-process TypeScript hooks that let you build your own agent experience. OpenCode is a **configurable product** — a full-featured Claude Code alternative with JSON-driven settings and a plugin system for extras. The distinction matters: Pi gives you control at the *runtime* level. OpenCode gives you control at the *configuration* level. + +--- + +## The Core Architectural Split + +| Dimension | Pi Agent | OpenCode | +| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **What it ships** | 4 tools, ~200-token system prompt, 25+ extension events. Everything else is opt-in. | 12+ tools, built-in sub-agents, Plan mode, LSP, web search, MCP, permissions, desktop app. | +| **Extension model** | In-process TypeScript. Extensions run in the same runtime as the agent loop. They can intercept, block, modify, and transform any event in real-time. | Out-of-process plugins. JS/TS files in a config directory that subscribe to events and register tools. | +| **Customization ceiling** | Effectively unlimited — you can replace the entire UI, override any tool, inject custom system prompts per-turn, build full overlay applications (Doom, Space Invaders, QA tools), and orchestrate multi-agent pipelines. | Bounded — you can add tools, hook into tool execution, customize compaction, and configure permissions via JSON. But you cannot modify the TUI, inject custom UI components, or intercept the input/agent lifecycle at the same depth. | +| **Philosophy** | "If I don't need it, it won't be built. Build what you need." | "Ship a polished, complete product. Configure what you need." | +| **Closest analogy** | A race car chassis + engine. You design the body, aero, and electronics. | A production car with a tuning package. You adjust settings and bolt on accessories. | + +--- + +## Extension / Plugin System — Deep Comparison + +This is the single most important comparison between these two tools. Pi's extension system is architecturally different from OpenCode's plugin system — not just in API surface, but in *where code runs* and *what it can touch*. + +### Architecture + +| Feature | Pi Extensions | OpenCode Plugins | Winner | +| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | +| Runtime model | **In-process** — extensions execute in the same Bun/Node.js runtime as the agent loop. Zero serialization overhead. Direct access to session state, UI context, and the event stream. | **Separate module** — plugins are loaded from `.opencode/plugins/` or npm. They receive a context object and return hook handlers. Communication happens through the SDK client. | Pi | +| Build step | None — TypeScript executed via jiti at runtime. Write `.ts`, run immediately. | None — TypeScript supported natively via Bun loader. | Tie | +| Composability | Stack multiple extensions with `-e` flags: `pi -e ext1.ts -e ext2.ts`. Extensions can communicate via `pi.events` shared bus. | Multiple plugins loaded from directory. No built-in inter-plugin communication channel. | Pi | +| Ephemeral testing | `pi -e npm:@foo/bar` — try a package without installing | Not possible — must add to config or plugin directory | Pi | + +### Event Coverage + +This is where the gap is widest. Pi exposes 25+ typed events across 7 categories. OpenCode exposes ~20 events but skips critical lifecycle hooks. + +| Lifecycle Point | Pi Extension Event | OpenCode Plugin Hook | Gap Analysis | +| --------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **Session starts** | `session_start` | `session.created` | Comparable | +| **User submits prompt** | `input` — can **block**, transform text, or handle entirely | ❌ Not available | **Pi-only.** This is huge — Pi can gate all user input, inject context, redirect prompts, or prevent execution before the agent ever sees it. OpenCode has no equivalent. | +| **Before agent processes prompt** | `before_agent_start` — can modify system prompt, images, prompt text **per-turn** | ❌ Not available | **Pi-only.** Dynamic system prompt injection on every turn. The purpose-gate extension uses this to inject session intent into every agent call. | +| **Agent turn lifecycle** | `agent_start`, `agent_end`, `turn_start`, `turn_end` | `session.idle` (only fires when agent finishes) | **Pi has 4x granularity.** OpenCode only knows when the agent is done, not when turns start/end within a session. | +| **Before tool executes** | `tool_call` — block with reason, modify args, typed per-tool via `isToolCallEventType()` | `tool.execute.before` — can modify args, throw to block | Both can intercept. Pi has typed narrowing per tool (bash, read, write, edit). | +| **After tool executes** | `tool_result` — modify results, log, transform output | `tool.execute.after` — react to results | Comparable | +| **Tool execution streaming** | `tool_execution_start`, `_update`, `_end` | ❌ Not available | **Pi-only.** Real-time streaming of tool output as it happens — critical for building live progress UIs. | +| **Bash spawn intercept** | `BashSpawnHook` — modify command, cwd, env vars **before the process spawns** | `shell.env` — inject env vars into shell execution | Pi intercepts at process spawn level. OpenCode only injects env vars. | +| **Message streaming** | `message_start`, `message_update`, `message_end` — token-by-token access | `message.part.updated`, `message.updated` | Both have message events; Pi is more granular with token-level streaming. | +| **Model changed** | `model_select` (source: set/cycle/restore) | ❌ Not available | **Pi-only.** React to model switches programmatically. | +| **Context window access** | `context` — deep copy of all messages, can filter and prune | ❌ Not available | **Pi-only.** Direct manipulation of what's in the context window. No other tool offers this. | +| **Before compaction** | `session_before_compact` — can **replace compaction logic entirely** | `experimental.session.compacting` — inject context or replace prompt | Both can customize. Pi can replace the entire compaction flow; OpenCode can replace the prompt. | +| **Session branching** | `session_before_fork`, `session_fork`, `session_before_switch`, `session_switch`, `session_before_tree`, `session_tree` | ❌ Not applicable (no branching model) | **Pi-only.** Pi's JSONL tree session format supports forking/branching. OpenCode uses linear SQLite sessions. | +| **Permission events** | Not applicable (YOLO by default) | `permission.asked`, `permission.replied` | OpenCode-only — but Pi can build equivalent or better permission systems via `tool_call` blocking. | +| **LSP events** | Not built-in | `lsp.client.diagnostics`, `lsp.updated` | OpenCode-only — native LSP integration. | +| **File watcher** | Not built-in | `file.watcher.updated` | OpenCode-only. | +| **Todo events** | Not built-in | `todo.updated` | OpenCode-only. | + +**Summary: Pi has 8+ hook points that OpenCode simply doesn't expose**, including the critical `input`, `before_agent_start`, agent lifecycle, tool execution streaming, context window access, and session branching hooks. These aren't minor — they're the hooks you need to build fundamentally different agent behaviors. + +### UI Customization + +This is the other dimension where Pi is in a different category entirely. + +| Feature | Pi Extensions | OpenCode Plugins | Winner | +| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | ------ | +| Custom header | `ctx.ui.setHeader()` — replace the logo and keybinding hints with any content | ❌ Not possible | Pi | +| Custom footer | `ctx.ui.setFooter()` — git branch, token stats, cost tracking, tool counters, anything | ❌ Not possible | Pi | +| Status line | `ctx.ui.setStatus()` — themed colors, turn tracking, custom data | ❌ Not possible | Pi | +| Widgets | `ctx.ui.setWidget(key, renderFn)` — persistent UI panels above/below the editor. Used for subagent progress, task lists, tool counters, purpose display. | ❌ Not possible | Pi | +| Overlays | Full overlay applications — session replay timeline, game overlays (Doom), QA tools | ❌ Not possible | Pi | +| Dialogs | `ctx.ui.select()`, `confirm()`, `input()`, `editor()` — interactive prompts with custom rendering | ❌ Not available to plugins (only built-in permission dialogs) | Pi | +| Custom editors | vim modal editor, emacs bindings, rainbow editor — all via extensions | ❌ Not possible | Pi | +| Notifications | `ctx.ui.notify()` from any handler | `osascript` or desktop app notifications via plugin | Both | +| Theme system | 51 color tokens, hot-reload, dark/light, custom themes via packages | Theme customization via `tui.json` | Pi | + +**OpenCode's TUI is polished but closed.** It's built with Bubble Tea (Go) and the Ink React renderer, and it looks great out of the box. But you can't inject custom UI components, widgets, or overlays into it from a plugin. What you see is what you get. + +**Pi's TUI is a canvas.** The extensions API gives you full control over every UI surface — header, footer, status line, widgets above/below the editor, fullscreen overlays, and interactive dialogs. The pi-vs-claude-code repo demonstrates this with 16 extensions that completely transform the agent experience. + +### Registration APIs + +| What you can register | Pi | OpenCode | +| ----------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------- | +| Custom tools | `pi.registerTool()` — in-process, streaming results, custom rendering | `tool()` helper in plugins — Zod schema, execute function | Tie | +| Override built-in tools | Register tool with same name → replaces built-in | Plugin tool with same name → takes precedence | Tie | +| Custom slash commands | `pi.registerCommand()` + prompt templates in `.pi/prompts/` | Markdown files in `.opencode/commands/` | Tie | +| Custom CLI flags | `pi.registerFlag()` — adds flags to the `pi` CLI | ❌ Not possible | Pi | +| Custom keyboard shortcuts | `pi.registerShortcut()` | Configurable via `tui.json` keybinds (JSON, not code) | Pi | +| Custom providers | `pi.registerProvider()` with OAuth support | JSON config in `opencode.json` with npm AI SDK packages | Pi | +| Persistent extension state | `pi.appendEntry()` — survives restarts, stored in session JSONL | ❌ Not available to plugins | Pi | +| Inter-extension communication | `pi.events` shared event bus | ❌ Not available | Pi | + +--- + +## What OpenCode Does Better (And Why It Still Matters) + +The thesis isn't "Pi is better." It's "Pi is more controllable." OpenCode has real advantages that come from its product-first approach: + +| Feature | Why OpenCode Wins | Pi's Alternative | +| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| **Batteries included** | 12+ tools, LSP, web search, MCP, permissions, todo tracking — zero configuration needed. You install and start coding. | You build what you need with extensions, or install pi packages. Higher ceiling, higher floor. | +| **Built-in Plan mode** | Tab to switch between Build (full access) and Plan (read-only). No setup. | No plan mode. "Just tell the agent to think." Or build it with an extension. | +| **Native MCP support** | stdio and remote MCP servers configured in JSON. First-class integration. | Not built-in by design (argues 7-14K token overhead). Available via extensions. | +| **Permission system** | Granular allow/deny/ask with glob patterns per tool, per agent, per command pattern. `.env` files denied by default. Doom loop detection. | YOLO by default. The damage-control extension builds equivalent functionality — but you have to build or install it. | +| **LSP integration** | go-to-definition, find references, hover, document symbols, call hierarchy — all built in. | Not available. Would need to be built as an extension. | +| **Client/server architecture** | TUI is one client. Desktop app, VS Code extension, web UI, and mobile are others. `opencode serve` exposes an HTTP API. | Terminal only. RPC mode over stdin/stdout for programmatic access, but no multi-client architecture. | +| **Desktop app** | Native app for macOS, Windows, Linux. | No. | +| **GitHub/GitLab integration** | Comment `@opencode` on issues/PRs. GitLab Duo OAuth. | Via bash. | +| **Massive community** | 104K stars, 735 contributors, 9,200+ commits. Issues get fixed fast. | ~8.9K stars (pi-mono), solo maintainer + approved contributors. Smaller but passionate community. | +| **Organizational config** | `.well-known/opencode` endpoint for enterprise defaults. | Not available. | + +--- + +## Concrete Examples: What Pi's Control Enables + +These aren't theoretical. They're actual extensions in the pi-vs-claude-code repo. + +### 1. Purpose Gate (Input Interception + Dynamic System Prompts + Custom Widgets) +Forces the engineer to declare session intent before any work begins. Uses `input` to block all prompts until purpose is set, `before_agent_start` to inject purpose into the system prompt on every turn, and `setWidget` to display it persistently. + +**Could OpenCode do this?** Partially. You could create a custom agent with a specific prompt, but you can't block user input, you can't inject per-turn system prompts, and you can't add a persistent widget to the UI. + +### 2. Damage Control (Safety Auditing via tool_call Interception) +Intercepts every tool call, checks against YAML-defined rules (dangerous bash patterns, zero-access paths, read-only paths, no-delete paths), and blocks or prompts for confirmation. Uses typed narrowing (`isToolCallEventType`) to extract tool-specific args. + +**Could OpenCode do this?** Partially — OpenCode's `tool.execute.before` can throw to block tool calls, and the built-in permission system covers common cases. But Pi's version is fully programmable with custom rules and custom UI (confirm dialogs, status line updates, persistent logging via `appendEntry`). + +### 3. Subagent Widget (Multi-Agent Orchestration with Live UI) +`/sub` spawns background Pi processes as sub-agents. Each gets its own persistent session file, live-streaming progress widget, and independent model. `/subcont` continues a subagent's conversation. Widgets stack in the UI showing real-time status. + +**Could OpenCode do this?** OpenCode has built-in subagents (@general, custom agents), but you can't add live-updating widgets to the UI, you can't show streaming progress from multiple agents simultaneously, and you can't continue a specific subagent's conversation across turns. + +### 4. Agent Team (Dispatcher Orchestration with Grid Dashboard) +The primary agent becomes a pure dispatcher — it reads your prompt, picks a specialist from a YAML roster, and delegates via a `dispatch_agent` tool. A grid dashboard widget shows all agents and their status. + +**Could OpenCode do this?** OpenCode has custom agents, but the dispatcher pattern with a grid dashboard UI and real-time status widgets isn't possible through plugins. + +### 5. Theme Cycler (Full TUI Theming) +Ctrl+X/Ctrl+Q keyboard shortcuts cycle through custom themes. `/theme` command opens a selector. Hot-reload with 51 color tokens. + +**Could OpenCode do this?** OpenCode has themes via `tui.json`, but no keyboard shortcuts for cycling and no extension-level theme registration. + +--- + +## The OpenCode Clone Thesis + +You asked whether OpenCode is more of a "Claude Code copycat." The evidence supports this framing. Here's what Claude Code ships vs. what OpenCode ships vs. what Pi ships: + +| Feature | Claude Code | OpenCode | Pi | +| --------------------- | ------------------------------ | ----------------------------------- | -------------------------------- | +| Built-in sub-agents | ✅ Native Task tool, 7 parallel | ✅ General subagent + custom agents | ❌ Build with extensions | +| Plan mode | ✅ Built-in plan mode | ✅ Tab to switch to Plan agent | ❌ "Just tell the agent to think" | +| Permission system | ✅ 5 modes, deny-first | ✅ allow/deny/ask with glob patterns | ❌ YOLO by default | +| MCP support | ✅ Native, first-class | ✅ Native, stdio + remote | ❌ Not built-in | +| Web search | ✅ Built-in | ✅ Built-in (Exa AI) | ❌ Build with extensions | +| LSP integration | ❌ Not built-in | ✅ Native | ❌ Not built-in | +| IDE extensions | ✅ VS Code, JetBrains | ✅ VS Code | ❌ Terminal only | +| Desktop app | ✅ Desktop app | ✅ Desktop app (beta) | ❌ Terminal only | +| AGENTS.md / CLAUDE.md | ✅ CLAUDE.md | ✅ AGENTS.md | ✅ AGENTS.md (or CLAUDE.md) | +| Slash commands | ✅ .claude/commands/ | ✅ .opencode/commands/ | ✅ .pi/prompts/ + extensions | +| Skills | ✅ Agent Skills standard | ✅ SKILL.md loading | ✅ Agent Skills standard | +| Session sharing | ✅ /export to HTML | ✅ /share creates link | ✅ /export to HTML | +| GitHub Actions bot | ✅ Native | ✅ @opencode bot | ❌ Not built-in | +| Todo tracking | ✅ Built-in | ✅ Built-in | ❌ Build with extensions | + +OpenCode systematically reproduced Claude Code's feature set, added LSP support and a desktop app, swapped the single-provider lock-in for model-agnostic support, and open-sourced it under MIT. It's a very good execution of this strategy. + +Pi rejected the feature set entirely and built a minimal, extensible harness that trusts the engineer to compose their own agent experience. It's a different bet — that the right set of primitives (events, UI APIs, tool registration, session branching) is more valuable than a pre-built feature set. + +--- + +## Summary: The Decision Framework + +**Choose Pi if you are building a custom agent workflow** — you want to control input interception, dynamic system prompts, UI components, multi-agent orchestration with live dashboards, safety auditing with custom rules, or anything that requires programmatic control over the agent loop. Pi's extensions are code that runs inside the agent. The ceiling is whatever you can build in TypeScript. + +**Choose OpenCode if you want a production-ready Claude Code replacement** — you need LSP, MCP, permissions, Plan mode, sub-agents, web search, GitHub integration, a desktop app, and a massive community shipping updates daily. OpenCode's plugin system handles common customization needs (tool hooks, custom tools, notifications, compaction), and the JSON-driven config covers agent definitions, permissions, and provider setup without writing code. + +**The one-line version:** Pi is a platform. OpenCode is a product. Both are open source. The question is whether you want to *build* your experience or *configure* an existing Claude Code like experience. \ No newline at end of file diff --git a/README.md b/README.md index 4752ee5..383a0e2 100644 --- a/README.md +++ b/README.md @@ -210,6 +210,7 @@ The `damage-control` extension provides real-time security hooks to prevent cata Companion docs cover the conventions used across all extensions in this repo: - **[COMPARISON.md](COMPARISON.md)** — Feature-by-feature comparison of Claude Code vs Pi Agent across 12 categories (design philosophy, tools, hooks, SDK, enterprise, and more). +- **[PI_VS_OPEN_CODE.md](PI_VS_OPEN_CODE.md)** — Architectural comparison of Pi Agent vs OpenCode (open-source Claude Code alternative) focusing on extension capabilities, event lifecycle, and UI customization. - **[RESERVED_KEYS.md](RESERVED_KEYS.md)** — Pi reserved keybindings, overridable keys, and safe keys for extension authors. - **[THEME.md](THEME.md)** — Color language: which Pi theme tokens (`success`, `accent`, `warning`, `dim`, `muted`) map to which UI roles, with examples. - **[TOOLS.md](TOOLS.md)** — Function signatures for the built-in tools available inside extensions (`read`, `bash`, `edit`, `write`). From f832b913d5a0999fc3fe6de6808b23879deae7e3 Mon Sep 17 00:00:00 2001 From: Azreen Jamal Date: Sun, 1 Mar 2026 23:41:24 +0800 Subject: [PATCH 03/40] feat: add improved pi agent with observatory, dashboard, and pledge-now-pay-later --- .pi/observatory/.gitignore | 3 + .pi/observatory/.gitkeep | 0 .pi/skills/bowser.md | 50 +- README.md | 12 + bun.lock | 13 + extensions/agent-dashboard.ts | 971 ++ extensions/agent-team.ts | 308 +- extensions/observatory.ts | 1100 +++ extensions/stop.ts | 41 + extensions/themeMap.ts | 2 + justfile | 16 +- package.json | 3 + pledge-now-pay-later/.env.example | 7 + pledge-now-pay-later/.eslintrc.json | 3 + pledge-now-pay-later/.gitignore | 43 + pledge-now-pay-later/Dockerfile | 27 + pledge-now-pay-later/README.md | 139 + pledge-now-pay-later/bun.lock | 1242 +++ pledge-now-pay-later/docker-compose.yml | 23 + pledge-now-pay-later/docs/EMBED_GUIDE.md | 134 + pledge-now-pay-later/docs/PRODUCT_SPEC.md | 1364 +++ pledge-now-pay-later/next.config.mjs | 6 + pledge-now-pay-later/package-lock.json | 8166 +++++++++++++++++ pledge-now-pay-later/package.json | 49 + pledge-now-pay-later/postcss.config.mjs | 8 + pledge-now-pay-later/prisma.config.ts | 15 + pledge-now-pay-later/prisma/schema.prisma | 208 + pledge-now-pay-later/prisma/seed.mts | 306 + .../src/app/api/analytics/route.ts | 33 + .../src/app/api/dashboard/route.ts | 156 + .../events/[id]/qr/[qrId]/download/route.ts | 32 + .../src/app/api/events/[id]/qr/route.ts | 104 + .../src/app/api/events/route.ts | 107 + .../src/app/api/exports/crm-pack/route.ts | 78 + .../src/app/api/gocardless/callback/route.ts | 74 + .../app/api/gocardless/create-flow/route.ts | 135 + .../src/app/api/gocardless/webhook/route.ts | 82 + .../app/api/imports/bank-statement/route.ts | 133 + .../api/pledges/[id]/mark-initiated/route.ts | 31 + .../src/app/api/pledges/[id]/route.ts | 88 + .../src/app/api/pledges/route.ts | 133 + .../src/app/api/qr/[token]/route.ts | 66 + .../src/app/api/settings/route.ts | 60 + .../src/app/api/stripe/checkout/route.ts | 118 + .../src/app/api/stripe/webhook/route.ts | 88 + .../src/app/api/webhooks/route.ts | 79 + .../src/app/dashboard/apply/page.tsx | 92 + .../src/app/dashboard/events/[id]/page.tsx | 241 + .../src/app/dashboard/events/page.tsx | 225 + .../src/app/dashboard/exports/page.tsx | 77 + .../src/app/dashboard/layout.tsx | 89 + .../src/app/dashboard/loading.tsx | 23 + .../src/app/dashboard/page.tsx | 324 + .../src/app/dashboard/pledges/page.tsx | 293 + .../src/app/dashboard/reconcile/page.tsx | 239 + .../src/app/dashboard/settings/page.tsx | 266 + pledge-now-pay-later/src/app/favicon.ico | Bin 0 -> 25931 bytes .../src/app/fonts/GeistMonoVF.woff | Bin 0 -> 67864 bytes .../src/app/fonts/GeistVF.woff | Bin 0 -> 66268 bytes pledge-now-pay-later/src/app/globals.css | 45 + pledge-now-pay-later/src/app/layout.tsx | 20 + .../src/app/p/[token]/loading.tsx | 12 + .../src/app/p/[token]/page.tsx | 210 + .../src/app/p/[token]/steps/amount-step.tsx | 97 + .../[token]/steps/bank-instructions-step.tsx | 165 + .../app/p/[token]/steps/card-payment-step.tsx | 305 + .../app/p/[token]/steps/confirmation-step.tsx | 87 + .../app/p/[token]/steps/direct-debit-step.tsx | 365 + .../app/p/[token]/steps/fpx-payment-step.tsx | 329 + .../src/app/p/[token]/steps/identity-step.tsx | 123 + .../src/app/p/[token]/steps/payment-step.tsx | 95 + .../src/app/p/success/page.tsx | 152 + pledge-now-pay-later/src/app/page.tsx | 94 + .../src/components/qr-code.tsx | 32 + .../src/components/ui/badge.tsx | 28 + .../src/components/ui/button.tsx | 38 + .../src/components/ui/card.tsx | 34 + .../src/components/ui/dialog.tsx | 35 + .../src/components/ui/input.tsx | 17 + .../src/components/ui/label.tsx | 9 + .../src/components/ui/select.tsx | 18 + .../src/components/ui/skeleton.tsx | 7 + .../src/components/ui/textarea.tsx | 18 + .../src/components/ui/toast.tsx | 49 + pledge-now-pay-later/src/lib/analytics.ts | 37 + pledge-now-pay-later/src/lib/exports.ts | 42 + pledge-now-pay-later/src/lib/gocardless.ts | 171 + pledge-now-pay-later/src/lib/matching.ts | 98 + pledge-now-pay-later/src/lib/org.ts | 29 + pledge-now-pay-later/src/lib/prisma.ts | 21 + pledge-now-pay-later/src/lib/qr.ts | 48 + pledge-now-pay-later/src/lib/reference.ts | 39 + pledge-now-pay-later/src/lib/reminders.ts | 100 + pledge-now-pay-later/src/lib/stripe.ts | 127 + pledge-now-pay-later/src/lib/utils.ts | 16 + pledge-now-pay-later/src/lib/validators.ts | 48 + pledge-now-pay-later/src/middleware.ts | 50 + pledge-now-pay-later/tailwind.config.ts | 62 + pledge-now-pay-later/tsconfig.json | 26 + 99 files changed, 20949 insertions(+), 74 deletions(-) create mode 100644 .pi/observatory/.gitignore create mode 100644 .pi/observatory/.gitkeep create mode 100644 extensions/agent-dashboard.ts create mode 100644 extensions/observatory.ts create mode 100644 extensions/stop.ts create mode 100644 pledge-now-pay-later/.env.example create mode 100644 pledge-now-pay-later/.eslintrc.json create mode 100644 pledge-now-pay-later/.gitignore create mode 100644 pledge-now-pay-later/Dockerfile create mode 100644 pledge-now-pay-later/README.md create mode 100644 pledge-now-pay-later/bun.lock create mode 100644 pledge-now-pay-later/docker-compose.yml create mode 100644 pledge-now-pay-later/docs/EMBED_GUIDE.md create mode 100644 pledge-now-pay-later/docs/PRODUCT_SPEC.md create mode 100644 pledge-now-pay-later/next.config.mjs create mode 100644 pledge-now-pay-later/package-lock.json create mode 100644 pledge-now-pay-later/package.json create mode 100644 pledge-now-pay-later/postcss.config.mjs create mode 100644 pledge-now-pay-later/prisma.config.ts create mode 100644 pledge-now-pay-later/prisma/schema.prisma create mode 100644 pledge-now-pay-later/prisma/seed.mts create mode 100644 pledge-now-pay-later/src/app/api/analytics/route.ts create mode 100644 pledge-now-pay-later/src/app/api/dashboard/route.ts create mode 100644 pledge-now-pay-later/src/app/api/events/[id]/qr/[qrId]/download/route.ts create mode 100644 pledge-now-pay-later/src/app/api/events/[id]/qr/route.ts create mode 100644 pledge-now-pay-later/src/app/api/events/route.ts create mode 100644 pledge-now-pay-later/src/app/api/exports/crm-pack/route.ts create mode 100644 pledge-now-pay-later/src/app/api/gocardless/callback/route.ts create mode 100644 pledge-now-pay-later/src/app/api/gocardless/create-flow/route.ts create mode 100644 pledge-now-pay-later/src/app/api/gocardless/webhook/route.ts create mode 100644 pledge-now-pay-later/src/app/api/imports/bank-statement/route.ts create mode 100644 pledge-now-pay-later/src/app/api/pledges/[id]/mark-initiated/route.ts create mode 100644 pledge-now-pay-later/src/app/api/pledges/[id]/route.ts create mode 100644 pledge-now-pay-later/src/app/api/pledges/route.ts create mode 100644 pledge-now-pay-later/src/app/api/qr/[token]/route.ts create mode 100644 pledge-now-pay-later/src/app/api/settings/route.ts create mode 100644 pledge-now-pay-later/src/app/api/stripe/checkout/route.ts create mode 100644 pledge-now-pay-later/src/app/api/stripe/webhook/route.ts create mode 100644 pledge-now-pay-later/src/app/api/webhooks/route.ts create mode 100644 pledge-now-pay-later/src/app/dashboard/apply/page.tsx create mode 100644 pledge-now-pay-later/src/app/dashboard/events/[id]/page.tsx create mode 100644 pledge-now-pay-later/src/app/dashboard/events/page.tsx create mode 100644 pledge-now-pay-later/src/app/dashboard/exports/page.tsx create mode 100644 pledge-now-pay-later/src/app/dashboard/layout.tsx create mode 100644 pledge-now-pay-later/src/app/dashboard/loading.tsx create mode 100644 pledge-now-pay-later/src/app/dashboard/page.tsx create mode 100644 pledge-now-pay-later/src/app/dashboard/pledges/page.tsx create mode 100644 pledge-now-pay-later/src/app/dashboard/reconcile/page.tsx create mode 100644 pledge-now-pay-later/src/app/dashboard/settings/page.tsx create mode 100644 pledge-now-pay-later/src/app/favicon.ico create mode 100644 pledge-now-pay-later/src/app/fonts/GeistMonoVF.woff create mode 100644 pledge-now-pay-later/src/app/fonts/GeistVF.woff create mode 100644 pledge-now-pay-later/src/app/globals.css create mode 100644 pledge-now-pay-later/src/app/layout.tsx create mode 100644 pledge-now-pay-later/src/app/p/[token]/loading.tsx create mode 100644 pledge-now-pay-later/src/app/p/[token]/page.tsx create mode 100644 pledge-now-pay-later/src/app/p/[token]/steps/amount-step.tsx create mode 100644 pledge-now-pay-later/src/app/p/[token]/steps/bank-instructions-step.tsx create mode 100644 pledge-now-pay-later/src/app/p/[token]/steps/card-payment-step.tsx create mode 100644 pledge-now-pay-later/src/app/p/[token]/steps/confirmation-step.tsx create mode 100644 pledge-now-pay-later/src/app/p/[token]/steps/direct-debit-step.tsx create mode 100644 pledge-now-pay-later/src/app/p/[token]/steps/fpx-payment-step.tsx create mode 100644 pledge-now-pay-later/src/app/p/[token]/steps/identity-step.tsx create mode 100644 pledge-now-pay-later/src/app/p/[token]/steps/payment-step.tsx create mode 100644 pledge-now-pay-later/src/app/p/success/page.tsx create mode 100644 pledge-now-pay-later/src/app/page.tsx create mode 100644 pledge-now-pay-later/src/components/qr-code.tsx create mode 100644 pledge-now-pay-later/src/components/ui/badge.tsx create mode 100644 pledge-now-pay-later/src/components/ui/button.tsx create mode 100644 pledge-now-pay-later/src/components/ui/card.tsx create mode 100644 pledge-now-pay-later/src/components/ui/dialog.tsx create mode 100644 pledge-now-pay-later/src/components/ui/input.tsx create mode 100644 pledge-now-pay-later/src/components/ui/label.tsx create mode 100644 pledge-now-pay-later/src/components/ui/select.tsx create mode 100644 pledge-now-pay-later/src/components/ui/skeleton.tsx create mode 100644 pledge-now-pay-later/src/components/ui/textarea.tsx create mode 100644 pledge-now-pay-later/src/components/ui/toast.tsx create mode 100644 pledge-now-pay-later/src/lib/analytics.ts create mode 100644 pledge-now-pay-later/src/lib/exports.ts create mode 100644 pledge-now-pay-later/src/lib/gocardless.ts create mode 100644 pledge-now-pay-later/src/lib/matching.ts create mode 100644 pledge-now-pay-later/src/lib/org.ts create mode 100644 pledge-now-pay-later/src/lib/prisma.ts create mode 100644 pledge-now-pay-later/src/lib/qr.ts create mode 100644 pledge-now-pay-later/src/lib/reference.ts create mode 100644 pledge-now-pay-later/src/lib/reminders.ts create mode 100644 pledge-now-pay-later/src/lib/stripe.ts create mode 100644 pledge-now-pay-later/src/lib/utils.ts create mode 100644 pledge-now-pay-later/src/lib/validators.ts create mode 100644 pledge-now-pay-later/src/middleware.ts create mode 100644 pledge-now-pay-later/tailwind.config.ts create mode 100644 pledge-now-pay-later/tsconfig.json diff --git a/.pi/observatory/.gitignore b/.pi/observatory/.gitignore new file mode 100644 index 0000000..d5e0d85 --- /dev/null +++ b/.pi/observatory/.gitignore @@ -0,0 +1,3 @@ +events.jsonl +summary.json +report.md diff --git a/.pi/observatory/.gitkeep b/.pi/observatory/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/.pi/skills/bowser.md b/.pi/skills/bowser.md index ab42c1d..5b67413 100644 --- a/.pi/skills/bowser.md +++ b/.pi/skills/bowser.md @@ -8,7 +8,15 @@ allowed-tools: Bash ## Purpose -Automate browsers using `playwright-cli` — a token-efficient CLI for Playwright. Runs headless by default, supports parallel sessions via named sessions (`-s=`), and doesn't load tool schemas into context. +Automate browsers using `playwright-cli` (via `@playwright/cli`) — a token-efficient CLI for Playwright. Runs headless by default, supports parallel sessions via named sessions (`-s=`), and doesn't load tool schemas into context. + +## Prerequisites + +Ensure the package is installed in the project: +```bash +bun add -d @playwright/cli +bunx playwright install chromium +``` ## Key Details @@ -28,17 +36,17 @@ Automate browsers using `playwright-cli` — a token-efficient CLI for Playwrigh # "scrape pricing from competitor.com" → -s=competitor-pricing # "UI test the login page" → -s=login-ui-test -playwright-cli -s=mystore-checkout open https://mystore.com --persistent -playwright-cli -s=mystore-checkout snapshot -playwright-cli -s=mystore-checkout click e12 +bunx playwright-cli -s=mystore-checkout open https://mystore.com --persistent +bunx playwright-cli -s=mystore-checkout snapshot +bunx playwright-cli -s=mystore-checkout click e12 ``` Managing sessions: ```bash -playwright-cli list # list all sessions -playwright-cli close-all # close all sessions -playwright-cli -s= close # close specific session -playwright-cli -s= delete-data # wipe session profile +bunx playwright-cli list # list all sessions +bunx playwright-cli close-all # close all sessions +bunx playwright-cli -s= close # close specific session +bunx playwright-cli -s= delete-data # wipe session profile ``` ## Quick Reference @@ -61,35 +69,35 @@ Config: open --headed, open --browser=chrome, resize 1. Derive a session name from the user's prompt and open with `--persistent` to preserve cookies/state. Always set the viewport via env var at launch: ```bash -PLAYWRIGHT_MCP_VIEWPORT_SIZE=1440x900 playwright-cli -s= open --persistent +PLAYWRIGHT_MCP_VIEWPORT_SIZE=1440x900 bunx playwright-cli -s= open --persistent # or headed: -PLAYWRIGHT_MCP_VIEWPORT_SIZE=1440x900 playwright-cli -s= open --persistent --headed +PLAYWRIGHT_MCP_VIEWPORT_SIZE=1440x900 bunx playwright-cli -s= open --persistent --headed # or with vision (screenshots returned as image responses in context): -PLAYWRIGHT_MCP_VIEWPORT_SIZE=1440x900 PLAYWRIGHT_MCP_CAPS=vision playwright-cli -s= open --persistent +PLAYWRIGHT_MCP_VIEWPORT_SIZE=1440x900 PLAYWRIGHT_MCP_CAPS=vision bunx playwright-cli -s= open --persistent ``` 3. Get element references via snapshot: ```bash -playwright-cli snapshot +bunx playwright-cli snapshot ``` 4. Interact using refs from snapshot: ```bash -playwright-cli click -playwright-cli fill "text" -playwright-cli type "text" -playwright-cli press Enter +bunx playwright-cli click +bunx playwright-cli fill "text" +bunx playwright-cli type "text" +bunx playwright-cli press Enter ``` 5. Capture results: ```bash -playwright-cli screenshot -playwright-cli screenshot --filename=output.png +bunx playwright-cli screenshot +bunx playwright-cli screenshot --filename=output.png ``` 6. **Always close the session when done.** This is not optional — close the named session after finishing your task: ```bash -playwright-cli -s= close +bunx playwright-cli -s= close ``` ## Configuration @@ -109,6 +117,4 @@ If a `playwright-cli.json` exists in the working directory, use it automatically ## Full Help -Run `playwright-cli --help` or `playwright-cli --help ` for detailed command usage. - -See [docs/playwright-cli.md](docs/playwright-cli.md) for full documentation. +Run `bunx playwright-cli --help` or `bunx playwright-cli --help ` for detailed command usage. diff --git a/README.md b/README.md index 383a0e2..502e7d4 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ bun install | **system-select** | `extensions/system-select.ts` | `/system` command to interactively switch between agent personas/system prompts from `.pi/agents/`, `.claude/agents/`, `.gemini/agents/`, `.codex/agents/` | | **damage-control** | `extensions/damage-control.ts` | Real-time safety auditing — intercepts dangerous bash patterns and enforces path-based access controls from `.pi/damage-control-rules.yaml` | | **agent-chain** | `extensions/agent-chain.ts` | Sequential pipeline orchestrator — chains multiple agents where each step's output feeds into the next step's prompt; use `/chain` to select and run | +| **agent-dashboard** | `extensions/agent-dashboard.ts` | Unified agent observability — passively tracks `dispatch_agent`, `subagent_create`, and `run_chain` across all orchestration interfaces; compact widget + `/dashboard` overlay with live, history, interface, and stats views | | **pi-pi** | `extensions/pi-pi.ts` | Meta-agent that builds Pi agents using parallel research experts for documentation | | **session-replay** | `extensions/session-replay.ts` | Scrollable timeline overlay of session history - showcasing customizable dialog UI | | **theme-cycler** | `extensions/theme-cycler.ts` | Keyboard shortcuts (Ctrl+X/Ctrl+Q) and `/theme` command to cycle/switch between custom themes | @@ -132,6 +133,7 @@ just ext-agent-team # Multi-agent orchestration grid dashboard just ext-system-select # Agent persona switcher via /system command just ext-damage-control # Safety auditing + minimal footer just ext-agent-chain # Sequential pipeline orchestrator with step chaining +just ext-agent-dashboard # Unified agent monitoring across team, subagent, and chain just ext-pi-pi # Meta-agent that builds Pi agents using parallel experts just ext-session-replay # Scrollable timeline overlay of session history just ext-theme-cycler # Theme cycler + minimal footer @@ -192,6 +194,16 @@ Unlike the dynamic dispatcher, `agent-chain` acts as a sequential pipeline orche - The `$INPUT` variable injects the previous step's output (or the user's initial prompt for the first step), and `$ORIGINAL` always contains the user's initial prompt. - Example: The `plan-build-review` pipeline feeds your prompt to the `planner`, passes the plan to the `builder`, and finally sends the code to the `reviewer`. +### Agent Dashboard (`/dashboard`) + +The `agent-dashboard` extension provides unified observability across all three orchestration interfaces. It passively intercepts `dispatch_agent`, `subagent_create`, `subagent_continue`, and `run_chain` tool calls and tracks every agent run. Stack it alongside any orchestration extension: + +```bash +pi -e extensions/agent-team.ts -e extensions/agent-dashboard.ts +``` + +The compact widget shows active/done/error counts. Use `/dashboard` to open a full-screen overlay with four views: **Live** (active agent cards), **History** (completed runs table), **Interfaces** (grouped by team/subagent/chain), and **Stats** (aggregate metrics and per-agent durations). + --- ## Safety Auditing & Damage Control diff --git a/bun.lock b/bun.lock index bfda2e8..b2f7695 100644 --- a/bun.lock +++ b/bun.lock @@ -7,9 +7,22 @@ "dependencies": { "yaml": "^2.8.0", }, + "devDependencies": { + "@playwright/cli": "^0.1.1", + }, }, }, "packages": { + "@playwright/cli": ["@playwright/cli@0.1.1", "", { "dependencies": { "minimist": "^1.2.5", "playwright": "1.59.0-alpha-1771104257000" }, "bin": { "playwright-cli": "playwright-cli.js" } }, "sha512-9k11ZfDwAfMVDDIuEVW1Wvs8SoDNXIY1dNQ+9C9/SS8ZmElkcxesu5eoL7vNa96ntibUGaq1TM2qQoqvdl/I9g=="], + + "fsevents": ["fsevents@2.3.2", "", { "os": "darwin" }, "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="], + + "minimist": ["minimist@1.2.8", "", {}, "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="], + + "playwright": ["playwright@1.59.0-alpha-1771104257000", "", { "dependencies": { "playwright-core": "1.59.0-alpha-1771104257000" }, "optionalDependencies": { "fsevents": "2.3.2" }, "bin": { "playwright": "cli.js" } }, "sha512-6SCMMMJaDRsSqiKVLmb2nhtLES7iTYawTWWrQK6UdIGNzXi8lka4sLKRec3L4DnTWwddAvCuRn8035dhNiHzbg=="], + + "playwright-core": ["playwright-core@1.59.0-alpha-1771104257000", "", { "bin": { "playwright-core": "cli.js" } }, "sha512-YiXup3pnpQUCBMSIW5zx8CErwRx4K6O5Kojkw2BzJui8MazoMUDU6E3xGsb1kzFviEAE09LFQ+y1a0RhIJQ5SA=="], + "yaml": ["yaml@2.8.2", "", { "bin": { "yaml": "bin.mjs" } }, "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A=="], } } diff --git a/extensions/agent-dashboard.ts b/extensions/agent-dashboard.ts new file mode 100644 index 0000000..ec2acca --- /dev/null +++ b/extensions/agent-dashboard.ts @@ -0,0 +1,971 @@ +/** + * Agent Dashboard — Unified observability across all agent interfaces + * + * Passively tracks agent activity from team dispatches, subagent spawns, + * and chain pipeline runs. Provides a compact always-visible widget plus + * a full-screen overlay with four switchable views. + * + * Hooks into: dispatch_agent, subagent_create, subagent_continue, run_chain + * tool calls and their completions. Completely passive — never blocks. + * + * Commands: + * /dashboard — toggle full-screen overlay + * /dashboard clear — reset all tracked state + * + * Usage: pi -e extensions/agent-dashboard.ts + */ + +import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent"; +import { DynamicBorder } from "@mariozechner/pi-coding-agent"; +import { Container, matchesKey, Text, truncateToWidth } from "@mariozechner/pi-tui"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +// ── Data Types ───────────────────────────────────────────────────────── + +type AgentInterface = "team" | "subagent" | "chain"; + +interface TrackedAgent { + id: string; + name: string; + iface: AgentInterface; + status: "running" | "done" | "error"; + task: string; + startedAt: number; + endedAt?: number; + elapsed: number; + toolCount: number; + lastText: string; + turnCount: number; + chainStep?: number; + chainName?: string; + teamName?: string; +} + +interface AgentRun { + id: string; + name: string; + iface: AgentInterface; + task: string; + status: "done" | "error"; + startedAt: number; + endedAt: number; + duration: number; + toolCount: number; + resultPreview: string; + chainStep?: number; + chainName?: string; + teamName?: string; +} + +interface DashboardStats { + totalRuns: number; + totalSuccess: number; + totalError: number; + totalDuration: number; + agentRunCounts: Record; + ifaceCounts: Record; +} + +// ── Helpers ──────────────────────────────────────────────────────────── + +function fmtDuration(ms: number): string { + if (ms < 1000) return `${ms}ms`; + const secs = Math.floor(ms / 1000); + if (secs < 60) return `${secs}s`; + const mins = Math.floor(secs / 60); + const remSecs = secs % 60; + if (mins < 60) return `${mins}m ${remSecs}s`; + const hrs = Math.floor(mins / 60); + const remMins = mins % 60; + return `${hrs}h ${remMins}m`; +} + +function shortId(): string { + return Math.random().toString(36).slice(2, 6); +} + +function truncate(s: string, max: number): string { + return s.length > max ? s.slice(0, max - 1) + "…" : s; +} + +function emptyStats(): DashboardStats { + return { + totalRuns: 0, + totalSuccess: 0, + totalError: 0, + totalDuration: 0, + agentRunCounts: {}, + ifaceCounts: { team: 0, subagent: 0, chain: 0 }, + }; +} + +// ── Extension ────────────────────────────────────────────────────────── + +export default function (pi: ExtensionAPI) { + // ── State ────────────────────────────────────────────────────────── + + const activeAgents: Map = new Map(); + let history: AgentRun[] = []; + let stats: DashboardStats = emptyStats(); + let widgetCtx: ExtensionContext | null = null; + let tickTimer: ReturnType | null = null; + + // Mapping from toolCallId → tracked agent info (with timestamp for staleness) + const pendingCalls: Map = new Map(); + + // Staleness threshold: 10 minutes + const STALE_TIMEOUT_MS = 10 * 60 * 1000; + + // Inactivity auto-stop: stop tick after 30s with no active agents + let lastActivityTs = Date.now(); + + // ── Tracked tool names ───────────────────────────────────────────── + + const TRACKED_TOOLS = new Set([ + "dispatch_agent", + "subagent_create", + "subagent_continue", + "run_chain", + ]); + + // ── State Management ─────────────────────────────────────────────── + + function clearState() { + activeAgents.clear(); + history = []; + stats = emptyStats(); + pendingCalls.clear(); + lastActivityTs = Date.now(); + } + + function addToHistory(agent: TrackedAgent) { + const run: AgentRun = { + id: agent.id, + name: agent.name, + iface: agent.iface, + task: agent.task, + status: agent.status === "error" ? "error" : "done", + startedAt: agent.startedAt, + endedAt: agent.endedAt || Date.now(), + duration: agent.elapsed, + toolCount: agent.toolCount, + resultPreview: truncate(agent.lastText, 200), + chainStep: agent.chainStep, + chainName: agent.chainName, + teamName: agent.teamName, + }; + + history.push(run); + // Ring buffer capped at 200 + if (history.length > 200) { + history = history.slice(-200); + } + + // Update stats + stats.totalRuns++; + if (run.status === "done") stats.totalSuccess++; + else stats.totalError++; + stats.totalDuration += run.duration; + stats.agentRunCounts[run.name] = (stats.agentRunCounts[run.name] || 0) + 1; + stats.ifaceCounts[run.iface] = (stats.ifaceCounts[run.iface] || 0) + 1; + } + + // ── Tick Timer ───────────────────────────────────────────────────── + + function startTick() { + if (tickTimer) return; + tickTimer = setInterval(() => { + const now = Date.now(); + + // Update elapsed on running agents + for (const agent of activeAgents.values()) { + if (agent.status === "running") { + agent.elapsed = now - agent.startedAt; + } + } + + // Staleness check: expire pending calls older than 10 minutes + for (const [callId, pending] of pendingCalls) { + if (now - pending.ts > STALE_TIMEOUT_MS) { + pendingCalls.delete(callId); + const agent = activeAgents.get(pending.agentId); + if (agent && agent.status === "running") { + agent.status = "error"; + agent.endedAt = now; + agent.elapsed = now - agent.startedAt; + agent.lastText = "Timed out (no completion after 10m)"; + addToHistory(agent); + activeAgents.delete(pending.agentId); + } + } + } + + // Auto-stop tick after 30s of inactivity (no active agents, no pending calls) + if (activeAgents.size === 0 && pendingCalls.size === 0) { + if (now - lastActivityTs > 30_000) { + stopTick(); + return; + } + } else { + lastActivityTs = now; + } + + updateWidget(); + }, 1000); + } + + function stopTick() { + if (tickTimer) { + clearInterval(tickTimer); + tickTimer = null; + } + } + + // ── Widget Rendering ─────────────────────────────────────────────── + + function updateWidget() { + if (!widgetCtx) return; + + try { + widgetCtx.ui.setWidget("agent-dashboard", (_tui, theme) => { + const container = new Container(); + const borderFn = (s: string) => theme.fg("accent", s); + + container.addChild(new DynamicBorder(borderFn)); + + const headerText = new Text("", 1, 0); + container.addChild(headerText); + + const agentLines: Text[] = []; + // Pre-allocate up to 4 lines for active agents + for (let i = 0; i < 4; i++) { + const t = new Text("", 1, 0); + agentLines.push(t); + container.addChild(t); + } + + const hintText = new Text("", 1, 0); + container.addChild(hintText); + + container.addChild(new DynamicBorder(borderFn)); + + return { + render(width: number): string[] { + const activeCount = activeAgents.size; + const doneCount = stats.totalSuccess; + const errorCount = stats.totalError; + + // Line 1: summary bar + const line1 = + theme.fg("accent", " 📊 Dashboard") + + theme.fg("dim", " │ Active: ") + theme.fg(activeCount > 0 ? "accent" : "muted", `${activeCount}`) + + theme.fg("dim", " │ Done: ") + theme.fg("success", `${doneCount}`) + + theme.fg("dim", " │ Errors: ") + theme.fg(errorCount > 0 ? "error" : "muted", `${errorCount}`); + headerText.setText(truncateToWidth(line1, width - 4)); + + // Active agent lines + const agents = Array.from(activeAgents.values()); + for (let i = 0; i < agentLines.length; i++) { + if (i < agents.length) { + const a = agents[i]; + const icon = a.status === "running" ? "⟳" + : a.status === "done" ? "✓" : "✗"; + const statusColor = a.status === "running" ? "accent" + : a.status === "done" ? "success" : "error"; + const ifaceTag = theme.fg("dim", `[${a.iface}]`); + const elapsed = theme.fg("muted", fmtDuration(a.elapsed)); + const tools = theme.fg("dim", `🔧${a.toolCount}`); + const lastText = a.lastText + ? theme.fg("muted", truncate(a.lastText, Math.max(20, width - 60))) + : ""; + + const line = + " " + theme.fg(statusColor, icon) + " " + + theme.fg("accent", truncate(a.name, 16)) + " " + + ifaceTag + " " + + elapsed + " " + + tools + + (lastText ? theme.fg("dim", " │ ") + lastText : ""); + agentLines[i].setText(truncateToWidth(line, width - 4)); + } else { + agentLines[i].setText(""); + } + } + + // Hint line + const hintLine = + theme.fg("dim", " /dashboard") + theme.fg("muted", " — full view") + + theme.fg("dim", " │ ") + + theme.fg("muted", `${stats.totalRuns} total runs`) + + (stats.totalDuration > 0 + ? theme.fg("dim", " │ avg ") + theme.fg("muted", fmtDuration(Math.round(stats.totalDuration / Math.max(1, stats.totalRuns)))) + : ""); + hintText.setText(truncateToWidth(hintLine, width - 4)); + + return container.render(width); + }, + invalidate() { + container.invalidate(); + }, + }; + }); + } catch {} + } + + // ── Overlay ──────────────────────────────────────────────────────── + + async function openOverlay(ctx: ExtensionContext) { + if (!ctx.hasUI) return; + + let currentView = 0; // 0=Live, 1=History, 2=Interfaces, 3=Stats + let scrollOffset = 0; + + const viewNames = ["1:Live", "2:History", "3:Interfaces", "4:Stats"]; + + await ctx.ui.custom((_tui, theme, _kb, done) => { + return { + render(width: number): string[] { + const lines: string[] = []; + + // ── Header ── + lines.push(""); + const tabs = viewNames.map((name, i) => + i === currentView + ? theme.fg("accent", theme.bold(`[${name}]`)) + : theme.fg("dim", `[${name}]`) + ).join(" "); + lines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold("📊 Agent Dashboard")) + + " ".repeat(Math.max(1, width - 20 - viewNames.join(" ").length - 2)) + + tabs, + width, + )); + lines.push(theme.fg("dim", "─".repeat(width))); + + // ── View content ── + const contentLines = renderView(currentView, width, theme, scrollOffset); + lines.push(...contentLines); + + // ── Footer controls ── + lines.push(""); + lines.push(theme.fg("dim", "─".repeat(width))); + lines.push(truncateToWidth( + " " + theme.fg("dim", "1-4/Tab: views │ j/k: scroll │ c: clear │ q/Esc: close"), + width, + )); + lines.push(""); + + return lines; + }, + handleInput(data: string) { + if (matchesKey(data, "escape") || data === "q") { + done(undefined); + return; + } + if (data === "1") { currentView = 0; scrollOffset = 0; } + else if (data === "2") { currentView = 1; scrollOffset = 0; } + else if (data === "3") { currentView = 2; scrollOffset = 0; } + else if (data === "4") { currentView = 3; scrollOffset = 0; } + else if (data === "\t") { currentView = (currentView + 1) % 4; scrollOffset = 0; } + else if (matchesKey(data, "up") || data === "k") { scrollOffset = Math.max(0, scrollOffset - 1); } + else if (matchesKey(data, "down") || data === "j") { scrollOffset++; } + else if (matchesKey(data, "pageUp")) { scrollOffset = Math.max(0, scrollOffset - 20); } + else if (matchesKey(data, "pageDown")) { scrollOffset += 20; } + else if (data === "c") { + clearState(); + scrollOffset = 0; + } + _tui.requestRender(); + }, + invalidate() {}, + }; + }, { + overlay: true, + overlayOptions: { width: "90%", anchor: "center" }, + }); + } + + // ── View Renderers ───────────────────────────────────────────────── + + function renderView(view: number, width: number, theme: any, offset: number): string[] { + switch (view) { + case 0: return renderLiveView(width, theme, offset); + case 1: return renderHistoryView(width, theme, offset); + case 2: return renderInterfacesView(width, theme, offset); + case 3: return renderStatsView(width, theme, offset); + default: return []; + } + } + + // ── View 1: Live ─────────────────────────────────────────────────── + + function renderLiveView(width: number, theme: any, offset: number): string[] { + const lines: string[] = []; + const agents = Array.from(activeAgents.values()); + + lines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold("Active Agents")) + + theme.fg("dim", ` (${agents.length} running)`), + width, + )); + lines.push(""); + + if (agents.length === 0) { + lines.push(truncateToWidth( + " " + theme.fg("dim", "No agents currently running. Activity will appear here when"), + width, + )); + lines.push(truncateToWidth( + " " + theme.fg("dim", "dispatch_agent, subagent_create, subagent_continue, or run_chain is called."), + width, + )); + lines.push(""); + + // Show recent completions as context + if (history.length > 0) { + lines.push(truncateToWidth( + " " + theme.fg("muted", `Last completed: ${history.length} agents`), + width, + )); + const recent = history.slice(-3).reverse(); + for (const run of recent) { + const icon = run.status === "done" ? "✓" : "✗"; + const color = run.status === "done" ? "success" : "error"; + lines.push(truncateToWidth( + " " + theme.fg(color, `${icon} ${run.name}`) + + theme.fg("dim", ` [${run.iface}] `) + + theme.fg("muted", fmtDuration(run.duration)) + + theme.fg("dim", " — ") + + theme.fg("muted", truncate(run.task, 50)), + width, + )); + } + } + return lines; + } + + const allLines: string[] = []; + for (const agent of agents) { + const icon = agent.status === "running" ? "●" + : agent.status === "done" ? "✓" : "✗"; + const statusColor = agent.status === "running" ? "accent" + : agent.status === "done" ? "success" : "error"; + + // Card top + allLines.push(truncateToWidth( + " " + theme.fg("dim", "┌─ ") + + theme.fg(statusColor, `${icon} ${agent.name}`) + + theme.fg("dim", ` [${agent.iface}]`) + + (agent.chainName ? theme.fg("dim", ` chain:${agent.chainName}`) : "") + + (agent.teamName ? theme.fg("dim", ` team:${agent.teamName}`) : "") + + (agent.chainStep !== undefined ? theme.fg("dim", ` step:${agent.chainStep}`) : "") + + theme.fg("dim", " ─".repeat(Math.max(0, Math.floor((width - 50) / 2)))), + width, + )); + + // Task + allLines.push(truncateToWidth( + " " + theme.fg("dim", "│ ") + + theme.fg("muted", "Task: ") + + theme.fg("accent", truncate(agent.task, width - 20)), + width, + )); + + // Metrics + allLines.push(truncateToWidth( + " " + theme.fg("dim", "│ ") + + theme.fg("muted", "Elapsed: ") + theme.fg("success", fmtDuration(agent.elapsed)) + + theme.fg("dim", " │ ") + + theme.fg("muted", "Tools: ") + theme.fg("accent", `${agent.toolCount}`) + + theme.fg("dim", " │ ") + + theme.fg("muted", "Turns: ") + theme.fg("accent", `${agent.turnCount}`), + width, + )); + + // Streaming text + if (agent.lastText) { + allLines.push(truncateToWidth( + " " + theme.fg("dim", "│ ") + + theme.fg("muted", truncate(agent.lastText, width - 10)), + width, + )); + } + + // Card bottom + allLines.push(truncateToWidth( + " " + theme.fg("dim", "└" + "─".repeat(Math.max(0, width - 5))), + width, + )); + allLines.push(""); + } + + const visible = allLines.slice(offset); + lines.push(...visible); + + return lines; + } + + // ── View 2: History ──────────────────────────────────────────────── + + function renderHistoryView(width: number, theme: any, offset: number): string[] { + const lines: string[] = []; + + lines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold("Completed Runs")) + + theme.fg("dim", ` (${history.length} total)`), + width, + )); + lines.push(""); + + if (history.length === 0) { + lines.push(truncateToWidth(" " + theme.fg("dim", "No completed runs yet."), width)); + return lines; + } + + // Table header + const hdr = + theme.fg("accent", " Status") + + theme.fg("accent", " │ Name ") + + theme.fg("accent", " │ Interface ") + + theme.fg("accent", " │ Duration ") + + theme.fg("accent", " │ Tools ") + + theme.fg("accent", " │ Task"); + lines.push(truncateToWidth(hdr, width)); + lines.push(truncateToWidth(" " + theme.fg("dim", "─".repeat(Math.min(80, width - 4))), width)); + + // Show newest first + const rows: string[] = []; + const reversed = [...history].reverse(); + for (const run of reversed) { + const icon = run.status === "done" ? "✓" : "✗"; + const color = run.status === "done" ? "success" : "error"; + const ifaceLabel = run.iface.padEnd(9); + const nameLabel = truncate(run.name, 14).padEnd(14); + const durLabel = fmtDuration(run.duration).padEnd(8); + const toolLabel = String(run.toolCount).padStart(5); + const taskPreview = truncate(run.task, Math.max(10, width - 70)); + + const row = + " " + theme.fg(color, ` ${icon} `) + + theme.fg("dim", " │ ") + theme.fg("accent", nameLabel) + + theme.fg("dim", " │ ") + theme.fg("muted", ifaceLabel) + + theme.fg("dim", " │ ") + theme.fg("success", durLabel) + + theme.fg("dim", " │ ") + theme.fg("accent", toolLabel) + + theme.fg("dim", " │ ") + theme.fg("muted", taskPreview); + rows.push(row); + } + + const visible = rows.slice(offset); + for (const row of visible) { + lines.push(truncateToWidth(row, width)); + } + + return lines; + } + + // ── View 3: Interfaces ───────────────────────────────────────────── + + function renderInterfacesView(width: number, theme: any, offset: number): string[] { + const lines: string[] = []; + + lines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold("Agents by Interface")), + width, + )); + lines.push(""); + + const ifaceLabels: Record = { + team: "🏢 Team (dispatch_agent)", + subagent: "🤖 Subagent (subagent_create/continue)", + chain: "🔗 Chain (run_chain)", + }; + + const allLines: string[] = []; + + for (const iface of ["team", "subagent", "chain"] as AgentInterface[]) { + const activeForIface = Array.from(activeAgents.values()).filter(a => a.iface === iface); + const historyForIface = history.filter(r => r.iface === iface); + const totalCount = stats.ifaceCounts[iface] || 0; + + allLines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold(ifaceLabels[iface])) + + theme.fg("dim", ` — ${activeForIface.length} active, ${totalCount} completed`), + width, + )); + allLines.push(truncateToWidth(" " + theme.fg("dim", "─".repeat(Math.min(60, width - 6))), width)); + + // Active + if (activeForIface.length > 0) { + for (const agent of activeForIface) { + allLines.push(truncateToWidth( + " " + theme.fg("accent", "● ") + + theme.fg("accent", agent.name) + + theme.fg("dim", " — ") + + theme.fg("success", fmtDuration(agent.elapsed)) + + theme.fg("dim", " │ 🔧") + theme.fg("muted", `${agent.toolCount}`) + + theme.fg("dim", " │ ") + + theme.fg("muted", truncate(agent.task, 40)), + width, + )); + } + } + + // Recent completed (last 5) + const recent = historyForIface.slice(-5).reverse(); + if (recent.length > 0) { + for (const run of recent) { + const icon = run.status === "done" ? "✓" : "✗"; + const color = run.status === "done" ? "success" : "error"; + allLines.push(truncateToWidth( + " " + theme.fg(color, `${icon} `) + + theme.fg("muted", run.name) + + theme.fg("dim", " — ") + + theme.fg("muted", fmtDuration(run.duration)) + + theme.fg("dim", " │ ") + + theme.fg("muted", truncate(run.task, 40)), + width, + )); + } + } + + if (activeForIface.length === 0 && recent.length === 0) { + allLines.push(truncateToWidth(" " + theme.fg("dim", "No activity recorded."), width)); + } + + allLines.push(""); + } + + const visible = allLines.slice(offset); + lines.push(...visible); + + return lines; + } + + // ── View 4: Stats ────────────────────────────────────────────────── + + function renderStatsView(width: number, theme: any, offset: number): string[] { + const lines: string[] = []; + + lines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold("Aggregate Statistics")), + width, + )); + lines.push(""); + + const avgDur = stats.totalRuns > 0 + ? fmtDuration(Math.round(stats.totalDuration / stats.totalRuns)) + : "—"; + const successRate = stats.totalRuns > 0 + ? `${Math.round((stats.totalSuccess / stats.totalRuns) * 100)}%` + : "—"; + + const allLines: string[] = []; + + // Summary cards + allLines.push(truncateToWidth( + " " + + theme.fg("muted", "Total Runs: ") + theme.fg("accent", `${stats.totalRuns}`) + + theme.fg("dim", " │ ") + + theme.fg("muted", "Success: ") + theme.fg("success", `${stats.totalSuccess}`) + + theme.fg("dim", " │ ") + + theme.fg("muted", "Errors: ") + theme.fg(stats.totalError > 0 ? "error" : "muted", `${stats.totalError}`) + + theme.fg("dim", " │ ") + + theme.fg("muted", "Success Rate: ") + theme.fg("success", successRate), + width, + )); + allLines.push(truncateToWidth( + " " + + theme.fg("muted", "Total Duration: ") + theme.fg("success", fmtDuration(stats.totalDuration)) + + theme.fg("dim", " │ ") + + theme.fg("muted", "Avg Duration: ") + theme.fg("accent", avgDur), + width, + )); + allLines.push(""); + + // Interface breakdown + allLines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold("Interface Breakdown")), + width, + )); + allLines.push(""); + + const ifaceTotal = Math.max(1, stats.ifaceCounts.team + stats.ifaceCounts.subagent + stats.ifaceCounts.chain); + const barWidth = Math.min(30, Math.floor(width * 0.3)); + + for (const [iface, label] of [["team", "Team "], ["subagent", "Subagent "], ["chain", "Chain "]] as [AgentInterface, string][]) { + const count = stats.ifaceCounts[iface] || 0; + const ratio = count / ifaceTotal; + const filled = Math.round(ratio * barWidth); + const bar = "█".repeat(filled) + "░".repeat(barWidth - filled); + + allLines.push(truncateToWidth( + " " + + theme.fg("accent", label) + " " + + theme.fg("success", bar) + " " + + theme.fg("muted", `${count}`) + + theme.fg("dim", ` (${Math.round(ratio * 100)}%)`), + width, + )); + } + allLines.push(""); + + // Most-used agents bar chart + allLines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold("Most-Used Agents")), + width, + )); + allLines.push(""); + + const agentEntries = Object.entries(stats.agentRunCounts).sort((a, b) => b[1] - a[1]); + + if (agentEntries.length === 0) { + allLines.push(truncateToWidth(" " + theme.fg("dim", "No agent runs recorded yet."), width)); + } else { + const maxCount = agentEntries[0][1]; + for (const [name, count] of agentEntries.slice(0, 15)) { + const ratio = maxCount > 0 ? count / maxCount : 0; + const filled = Math.round(ratio * barWidth); + const bar = "█".repeat(filled) + "░".repeat(barWidth - filled); + + allLines.push(truncateToWidth( + " " + + theme.fg("accent", name.padEnd(16)) + " " + + theme.fg("success", bar) + " " + + theme.fg("muted", `${count}`), + width, + )); + } + } + allLines.push(""); + + // Per-agent average durations + if (history.length > 0) { + allLines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold("Average Duration by Agent")), + width, + )); + allLines.push(""); + + const durByAgent: Record = {}; + for (const run of history) { + if (!durByAgent[run.name]) durByAgent[run.name] = []; + durByAgent[run.name].push(run.duration); + } + + const durEntries = Object.entries(durByAgent).sort((a, b) => { + const avgA = a[1].reduce((s, v) => s + v, 0) / a[1].length; + const avgB = b[1].reduce((s, v) => s + v, 0) / b[1].length; + return avgB - avgA; + }); + + for (const [name, durations] of durEntries) { + const avg = durations.reduce((s, v) => s + v, 0) / durations.length; + const min = Math.min(...durations); + const max = Math.max(...durations); + + allLines.push(truncateToWidth( + " " + + theme.fg("accent", name.padEnd(16)) + + theme.fg("dim", " avg: ") + theme.fg("success", fmtDuration(Math.round(avg)).padEnd(8)) + + theme.fg("dim", " min: ") + theme.fg("muted", fmtDuration(min).padEnd(8)) + + theme.fg("dim", " max: ") + theme.fg("muted", fmtDuration(max).padEnd(8)) + + theme.fg("dim", " runs: ") + theme.fg("muted", `${durations.length}`), + width, + )); + } + } + + const visible = allLines.slice(offset); + lines.push(...visible); + + return lines; + } + + // ── Commands ─────────────────────────────────────────────────────── + + pi.registerCommand("dashboard", { + description: "Open Agent Dashboard overlay. Args: clear", + handler: async (args, ctx) => { + widgetCtx = ctx; + const arg = (args || "").trim().toLowerCase(); + + if (arg === "clear") { + stopTick(); + clearState(); + startTick(); + ctx.ui.notify("📊 Dashboard: All data cleared.", "info"); + updateWidget(); + return; + } + + await openOverlay(ctx); + }, + }); + + // ── Event Handlers ───────────────────────────────────────────────── + + pi.on("session_start", async (_event, ctx) => { + applyExtensionDefaults(import.meta.url, ctx); + stopTick(); + widgetCtx = ctx; + clearState(); + startTick(); + updateWidget(); + }); + + pi.on("before_agent_start", async (_event, ctx) => { + widgetCtx = ctx; + return undefined; + }); + + pi.on("agent_end", async (_event, ctx) => { + widgetCtx = ctx; + updateWidget(); + }); + + pi.on("tool_call", async (event, _ctx) => { + try { + const toolName = event.toolName; + if (!TRACKED_TOOLS.has(toolName)) return undefined; + + const input = event.input; + const now = Date.now(); + const callId = event.toolCallId; + lastActivityTs = now; + + if (toolName === "dispatch_agent") { + const agentName = (input.agent as string) || "unknown"; + const task = (input.task as string) || ""; + const id = `team:${agentName}:${shortId()}`; + + const tracked: TrackedAgent = { + id, + name: agentName, + iface: "team", + status: "running", + task, + startedAt: now, + elapsed: 0, + toolCount: 0, + lastText: "", + turnCount: 1, + teamName: agentName, + }; + + activeAgents.set(id, tracked); + pendingCalls.set(callId, { agentId: id, ts: now }); + + } else if (toolName === "subagent_create") { + const task = (input.task as string) || ""; + const id = `sub:create:${shortId()}`; + + const tracked: TrackedAgent = { + id, + name: "Subagent", + iface: "subagent", + status: "running", + task, + startedAt: now, + elapsed: 0, + toolCount: 0, + lastText: "", + turnCount: 1, + }; + + activeAgents.set(id, tracked); + pendingCalls.set(callId, { agentId: id, ts: now }); + + } else if (toolName === "subagent_continue") { + // Always create a new tracking entry using the widget's ID from input + const subId = input.id; + const prompt = (input.prompt as string) || ""; + const id = `sub:cont:${subId}:${shortId()}`; + + const tracked: TrackedAgent = { + id, + name: `Subagent #${subId}`, + iface: "subagent", + status: "running", + task: prompt, + startedAt: now, + elapsed: 0, + toolCount: 0, + lastText: "", + turnCount: 1, + }; + + activeAgents.set(id, tracked); + pendingCalls.set(callId, { agentId: id, ts: now }); + + } else if (toolName === "run_chain") { + const task = (input.task as string) || ""; + const id = `chain:${shortId()}`; + + const tracked: TrackedAgent = { + id, + name: "chain", + iface: "chain", + status: "running", + task, + startedAt: now, + elapsed: 0, + toolCount: 0, + lastText: "", + turnCount: 1, + chainName: "pipeline", + }; + + activeAgents.set(id, tracked); + pendingCalls.set(callId, { agentId: id, ts: now }); + } + + // Ensure tick is running when we have active agents + startTick(); + updateWidget(); + } catch {} + + return undefined; + }); + + pi.on("tool_execution_end", async (event) => { + try { + const toolName = event.toolName; + if (!TRACKED_TOOLS.has(toolName)) return; + + const now = Date.now(); + const callId = event.toolCallId; + lastActivityTs = now; + + const pending = pendingCalls.get(callId); + if (pending) { + pendingCalls.delete(callId); + + const agent = activeAgents.get(pending.agentId); + if (agent) { + agent.status = event.isError ? "error" : "done"; + agent.endedAt = now; + agent.elapsed = now - agent.startedAt; + + // Extract result preview if available + try { + const result = event.result; + if (result?.content) { + for (const block of result.content) { + if (block.type === "text" && block.text) { + agent.lastText = block.text.slice(0, 200); + break; + } + } + } + } catch {} + + // Move to history + addToHistory(agent); + activeAgents.delete(pending.agentId); + } + } + + updateWidget(); + } catch {} + }); +} diff --git a/extensions/agent-team.ts b/extensions/agent-team.ts index 66ecbef..18c3f71 100644 --- a/extensions/agent-team.ts +++ b/extensions/agent-team.ts @@ -2,8 +2,9 @@ * Agent Team — Dispatcher-only orchestrator with grid dashboard * * The primary Pi agent has NO codebase tools. It can ONLY delegate work - * to specialist agents via the `dispatch_agent` tool. Each specialist - * maintains its own Pi session for cross-invocation memory. + * to specialist agents via the `dispatch_agent` tool (single) or + * `dispatch_agents` tool (parallel batch). Each specialist maintains + * its own Pi session for cross-invocation memory. * * Loads agent definitions from agents/*.md, .claude/agents/*.md, .pi/agents/*.md. * Teams are defined in .pi/agents/teams.yaml — on boot a select dialog lets @@ -20,11 +21,16 @@ import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; import { Type } from "@sinclair/typebox"; import { Text, type AutocompleteItem, truncateToWidth, visibleWidth } from "@mariozechner/pi-tui"; -import { spawn } from "child_process"; +import { spawn, type ChildProcess } from "child_process"; import { readdirSync, readFileSync, existsSync, mkdirSync, unlinkSync } from "fs"; import { join, resolve } from "path"; import { applyExtensionDefaults } from "./themeMap.ts"; +// ── Constants ──────────────────────────────────── + +const AGENT_TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes per dispatch +const WIDGET_THROTTLE_MS = 500; // max widget refresh rate + // ── Types ──────────────────────────────────────── interface AgentDef { @@ -46,6 +52,7 @@ interface AgentState { sessionFile: string | null; runCount: number; timer?: ReturnType; + proc?: ChildProcess; } // ── Display Name Helper ────────────────────────── @@ -136,6 +143,7 @@ function scanAgentDirs(cwd: string): AgentDef[] { export default function (pi: ExtensionAPI) { const agentStates: Map = new Map(); + const activeProcesses: Set = new Set(); let allAgentDefs: AgentDef[] = []; let teams: Record = {}; let activeTeamName = ""; @@ -144,17 +152,40 @@ export default function (pi: ExtensionAPI) { let sessionDir = ""; let contextWindow = 0; + // ── Throttled Widget Update ────────────────── + + let widgetDirty = false; + let widgetTimer: ReturnType | null = null; + + function scheduleWidgetUpdate() { + widgetDirty = true; + if (widgetTimer) return; // already scheduled + widgetTimer = setTimeout(() => { + widgetTimer = null; + if (widgetDirty) { + widgetDirty = false; + doUpdateWidget(); + } + }, WIDGET_THROTTLE_MS); + } + + function flushWidgetUpdate() { + if (widgetTimer) { + clearTimeout(widgetTimer); + widgetTimer = null; + } + widgetDirty = false; + doUpdateWidget(); + } + function loadAgents(cwd: string) { - // Create session storage dir sessionDir = join(cwd, ".pi", "agent-sessions"); if (!existsSync(sessionDir)) { mkdirSync(sessionDir, { recursive: true }); } - // Load all agent definitions allAgentDefs = scanAgentDirs(cwd); - // Load teams from .pi/agents/teams.yaml const teamsPath = join(cwd, ".pi", "agents", "teams.yaml"); if (existsSync(teamsPath)) { try { @@ -166,7 +197,6 @@ export default function (pi: ExtensionAPI) { teams = {}; } - // If no teams defined, create a default "all" team if (Object.keys(teams).length === 0) { teams = { all: allAgentDefs.map(d => d.name) }; } @@ -196,11 +226,24 @@ export default function (pi: ExtensionAPI) { }); } - // Auto-size grid columns based on team size const size = agentStates.size; gridCols = size <= 3 ? size : size === 4 ? 2 : 3; } + // ── Kill all tracked child processes ───────── + + function killAllAgents() { + for (const proc of activeProcesses) { + try { proc.kill("SIGTERM"); } catch {} + } + // Force kill after 3s + setTimeout(() => { + for (const proc of activeProcesses) { + try { proc.kill("SIGKILL"); } catch {} + } + }, 3000); + } + // ── Grid Rendering ─────────────────────────── function renderCard(state: AgentState, colWidth: number, theme: any): string[] { @@ -223,7 +266,6 @@ export default function (pi: ExtensionAPI) { const statusLine = theme.fg(statusColor, statusStr + timeStr); const statusVisible = statusStr.length + timeStr.length; - // Context bar: 5 blocks + percent const filled = Math.ceil(state.contextPct / 20); const bar = "#".repeat(filled) + "-".repeat(5 - filled); const ctxStr = `[${bar}] ${Math.ceil(state.contextPct)}%`; @@ -252,7 +294,7 @@ export default function (pi: ExtensionAPI) { ]; } - function updateWidget() { + function doUpdateWidget() { if (!widgetCtx) return; widgetCtx.ui.setWidget("agent-team", (_tui: any, theme: any) => { @@ -302,6 +344,7 @@ export default function (pi: ExtensionAPI) { agentName: string, task: string, ctx: any, + signal?: AbortSignal, ): Promise<{ output: string; exitCode: number; elapsed: number }> { const key = agentName.toLowerCase(); const state = agentStates.get(key); @@ -321,29 +364,29 @@ export default function (pi: ExtensionAPI) { }); } + // Reset state for new run state.status = "running"; state.task = task; state.toolCount = 0; state.elapsed = 0; state.lastWork = ""; + state.contextPct = 0; state.runCount++; - updateWidget(); + scheduleWidgetUpdate(); const startTime = Date.now(); state.timer = setInterval(() => { state.elapsed = Date.now() - startTime; - updateWidget(); + scheduleWidgetUpdate(); }, 1000); const model = ctx.model ? `${ctx.model.provider}/${ctx.model.id}` : "openrouter/google/gemini-3-flash-preview"; - // Session file for this agent const agentKey = state.def.name.toLowerCase().replace(/\s+/g, "-"); const agentSessionFile = join(sessionDir, `${agentKey}.json`); - // Build args — first run creates session, subsequent runs resume const args = [ "--mode", "json", "-p", @@ -355,7 +398,6 @@ export default function (pi: ExtensionAPI) { "--session", agentSessionFile, ]; - // Continue existing session if we have one if (state.sessionFile) { args.push("-c"); } @@ -363,13 +405,44 @@ export default function (pi: ExtensionAPI) { args.push(task); const textChunks: string[] = []; + let resolved = false; + + return new Promise((promiseResolve) => { + // Guard against double-resolve + const safeResolve = (val: { output: string; exitCode: number; elapsed: number }) => { + if (resolved) return; + resolved = true; + promiseResolve(val); + }; - return new Promise((resolve) => { const proc = spawn("pi", args, { stdio: ["ignore", "pipe", "pipe"], env: { ...process.env }, }); + state.proc = proc; + activeProcesses.add(proc); + + // ── Timeout guard ── + const timeout = setTimeout(() => { + try { proc.kill("SIGTERM"); } catch {} + // Force kill after 3s if still alive + setTimeout(() => { try { proc.kill("SIGKILL"); } catch {} }, 3000); + }, AGENT_TIMEOUT_MS); + + // ── AbortSignal support ── + const onAbort = () => { + try { proc.kill("SIGTERM"); } catch {} + setTimeout(() => { try { proc.kill("SIGKILL"); } catch {} }, 3000); + }; + if (signal) { + if (signal.aborted) { + onAbort(); + } else { + signal.addEventListener("abort", onAbort, { once: true }); + } + } + let buffer = ""; proc.stdout!.setEncoding("utf-8"); @@ -388,23 +461,23 @@ export default function (pi: ExtensionAPI) { const full = textChunks.join(""); const last = full.split("\n").filter((l: string) => l.trim()).pop() || ""; state.lastWork = last; - updateWidget(); + scheduleWidgetUpdate(); } } else if (event.type === "tool_execution_start") { state.toolCount++; - updateWidget(); + scheduleWidgetUpdate(); } else if (event.type === "message_end") { const msg = event.message; if (msg?.usage && contextWindow > 0) { state.contextPct = ((msg.usage.input || 0) / contextWindow) * 100; - updateWidget(); + scheduleWidgetUpdate(); } } else if (event.type === "agent_end") { const msgs = event.messages || []; const last = [...msgs].reverse().find((m: any) => m.role === "assistant"); if (last?.usage && contextWindow > 0) { state.contextPct = ((last.usage.input || 0) / contextWindow) * 100; - updateWidget(); + scheduleWidgetUpdate(); } } } catch {} @@ -415,6 +488,12 @@ export default function (pi: ExtensionAPI) { proc.stderr!.on("data", () => {}); proc.on("close", (code) => { + clearTimeout(timeout); + if (signal) signal.removeEventListener?.("abort", onAbort); + activeProcesses.delete(proc); + state.proc = undefined; + + // Process any remaining buffer if (buffer.trim()) { try { const event = JSON.parse(buffer); @@ -427,35 +506,45 @@ export default function (pi: ExtensionAPI) { clearInterval(state.timer); state.elapsed = Date.now() - startTime; - state.status = code === 0 ? "done" : "error"; - // Mark session file as available for resume + const timedOut = state.elapsed >= AGENT_TIMEOUT_MS; + state.status = timedOut ? "error" : (code === 0 ? "done" : "error"); + if (code === 0) { state.sessionFile = agentSessionFile; } const full = textChunks.join(""); state.lastWork = full.split("\n").filter((l: string) => l.trim()).pop() || ""; - updateWidget(); + flushWidgetUpdate(); - ctx.ui.notify( - `${displayName(state.def.name)} ${state.status} in ${Math.round(state.elapsed / 1000)}s`, - state.status === "done" ? "success" : "error" - ); + const statusMsg = timedOut + ? `${displayName(state.def.name)} timed out after ${Math.round(AGENT_TIMEOUT_MS / 1000)}s` + : `${displayName(state.def.name)} ${state.status} in ${Math.round(state.elapsed / 1000)}s`; - resolve({ - output: full, + ctx.ui.notify(statusMsg, state.status === "done" ? "success" : "error"); + + const output = timedOut + ? full + "\n\n[TIMED OUT after " + Math.round(AGENT_TIMEOUT_MS / 1000) + "s]" + : full; + + safeResolve({ + output, exitCode: code ?? 1, elapsed: state.elapsed, }); }); proc.on("error", (err) => { + clearTimeout(timeout); + if (signal) signal.removeEventListener?.("abort", onAbort); + activeProcesses.delete(proc); + state.proc = undefined; clearInterval(state.timer); state.status = "error"; state.lastWork = `Error: ${err.message}`; - updateWidget(); - resolve({ + flushWidgetUpdate(); + safeResolve({ output: `Error spawning agent: ${err.message}`, exitCode: 1, elapsed: Date.now() - startTime, @@ -464,18 +553,18 @@ export default function (pi: ExtensionAPI) { }); } - // ── dispatch_agent Tool (registered at top level) ── + // ── dispatch_agent Tool (single) ───────────── pi.registerTool({ name: "dispatch_agent", label: "Dispatch Agent", - description: "Dispatch a task to a specialist agent. The agent will execute the task and return the result. Use the system prompt to see available agent names.", + description: "Dispatch a task to a single specialist agent. The agent executes the task and returns the result. For dispatching multiple agents in parallel, use dispatch_agents instead.", parameters: Type.Object({ agent: Type.String({ description: "Agent name (case-insensitive)" }), task: Type.String({ description: "Task description for the agent to execute" }), }), - async execute(_toolCallId, params, _signal, onUpdate, ctx) { + async execute(_toolCallId, params, signal, onUpdate, ctx) { const { agent, task } = params as { agent: string; task: string }; try { @@ -486,7 +575,7 @@ export default function (pi: ExtensionAPI) { }); } - const result = await dispatchAgent(agent, task, ctx); + const result = await dispatchAgent(agent, task, ctx, signal); const truncated = result.output.length > 8000 ? result.output.slice(0, 8000) + "\n\n... [truncated]" @@ -534,7 +623,6 @@ export default function (pi: ExtensionAPI) { return new Text(text?.type === "text" ? text.text : "", 0, 0); } - // Streaming/partial result while agent is still running if (options.isPartial || details.status === "dispatching") { return new Text( theme.fg("accent", `● ${details.agent || "?"}`) + @@ -560,6 +648,120 @@ export default function (pi: ExtensionAPI) { }, }); + // ── dispatch_agents Tool (parallel batch) ──── + + pi.registerTool({ + name: "dispatch_agents", + label: "Dispatch Agents (Parallel)", + description: "Dispatch tasks to multiple specialist agents in parallel. All agents run simultaneously and results are returned together. Much faster than sequential dispatch_agent calls when tasks are independent.", + parameters: Type.Object({ + dispatches: Type.Array( + Type.Object({ + agent: Type.String({ description: "Agent name (case-insensitive)" }), + task: Type.String({ description: "Task description for the agent" }), + }), + { description: "Array of {agent, task} pairs to dispatch in parallel", minItems: 1 }, + ), + }), + + async execute(_toolCallId, params, signal, onUpdate, ctx) { + const { dispatches } = params as { dispatches: { agent: string; task: string }[] }; + + const agentNames = dispatches.map(d => d.agent).join(", "); + if (onUpdate) { + onUpdate({ + content: [{ type: "text", text: `Dispatching ${dispatches.length} agents in parallel: ${agentNames}` }], + details: { dispatches, status: "dispatching", count: dispatches.length }, + }); + } + + // Launch all in parallel + const promises = dispatches.map(({ agent, task }) => + dispatchAgent(agent, task, ctx, signal).then(result => ({ + agent, + task, + ...result, + })) + ); + + const results = await Promise.all(promises); + + const summaryParts: string[] = []; + const allDetails: any[] = []; + + for (const r of results) { + const status = r.exitCode === 0 ? "done" : "error"; + const truncated = r.output.length > 4000 + ? r.output.slice(0, 4000) + "\n... [truncated]" + : r.output; + summaryParts.push(`## [${r.agent}] ${status} in ${Math.round(r.elapsed / 1000)}s\n\n${truncated}`); + allDetails.push({ + agent: r.agent, + task: r.task, + status, + elapsed: r.elapsed, + exitCode: r.exitCode, + fullOutput: r.output, + }); + } + + const doneCount = results.filter(r => r.exitCode === 0).length; + const header = `Parallel dispatch complete: ${doneCount}/${results.length} succeeded`; + + return { + content: [{ type: "text", text: `${header}\n\n${summaryParts.join("\n\n---\n\n")}` }], + details: { + dispatches: allDetails, + status: "complete", + count: results.length, + succeeded: doneCount, + }, + }; + }, + + renderCall(args, theme) { + const dispatches = (args as any).dispatches || []; + const names = dispatches.map((d: any) => d.agent || "?").join(", "); + return new Text( + theme.fg("toolTitle", theme.bold("dispatch_agents ")) + + theme.fg("accent", `[${dispatches.length}] `) + + theme.fg("muted", names), + 0, 0, + ); + }, + + renderResult(result, options, theme) { + const details = result.details as any; + if (!details) { + const text = result.content[0]; + return new Text(text?.type === "text" ? text.text : "", 0, 0); + } + + if (options.isPartial || details.status === "dispatching") { + return new Text( + theme.fg("accent", `● Parallel dispatch`) + + theme.fg("dim", ` ${details.count || "?"} agents working...`), + 0, 0, + ); + } + + const header = theme.fg("success", `✓ ${details.succeeded}`) + + theme.fg("dim", `/${details.count} agents completed`); + + if (options.expanded && Array.isArray(details.dispatches)) { + const lines = details.dispatches.map((d: any) => { + const icon = d.status === "done" ? "✓" : "✗"; + const color = d.status === "done" ? "success" : "error"; + return theme.fg(color, ` ${icon} ${d.agent}`) + + theme.fg("dim", ` ${Math.round(d.elapsed / 1000)}s`); + }); + return new Text(header + "\n" + lines.join("\n"), 0, 0); + } + + return new Text(header, 0, 0); + }, + }); + // ── Commands ───────────────────────────────── pi.registerCommand("agents-team", { @@ -583,7 +785,7 @@ export default function (pi: ExtensionAPI) { const idx = options.indexOf(choice); const name = teamNames[idx]; activateTeam(name); - updateWidget(); + flushWidgetUpdate(); ctx.ui.setStatus("agent-team", `Team: ${name} (${agentStates.size})`); ctx.ui.notify(`Team: ${name} — ${Array.from(agentStates.values()).map(s => displayName(s.def.name)).join(", ")}`, "info"); }, @@ -619,7 +821,7 @@ export default function (pi: ExtensionAPI) { if (n >= 1 && n <= 6) { gridCols = n; _ctx.ui.notify(`Grid set to ${gridCols} columns`, "info"); - updateWidget(); + flushWidgetUpdate(); } else { _ctx.ui.notify("Usage: /agents-grid <1-6>", "error"); } @@ -629,7 +831,6 @@ export default function (pi: ExtensionAPI) { // ── System Prompt Override ─────────────────── pi.on("before_agent_start", async (_event, _ctx) => { - // Build dynamic agent catalog from active team only const agentCatalog = Array.from(agentStates.values()) .map(s => `### ${displayName(s.def.name)}\n**Dispatch as:** \`${s.def.name}\`\n${s.def.description}\n**Tools:** ${s.def.tools}`) .join("\n\n"); @@ -639,7 +840,7 @@ export default function (pi: ExtensionAPI) { return { systemPrompt: `You are a dispatcher agent. You coordinate specialist agents to accomplish tasks. You do NOT have direct access to the codebase. You MUST delegate all work through -agents using the dispatch_agent tool. +agents using the dispatch_agent or dispatch_agents tools. ## Active Team: ${activeTeamName} Members: ${teamMembers} @@ -648,17 +849,20 @@ You can ONLY dispatch to agents listed below. Do not attempt to dispatch to agen ## How to Work - Analyze the user's request and break it into clear sub-tasks - Choose the right agent(s) for each sub-task -- Dispatch tasks using the dispatch_agent tool +- **Use dispatch_agents for independent parallel tasks** — this is much faster +- Use dispatch_agent for sequential tasks where order matters - Review results and dispatch follow-up agents if needed - If a task fails, try a different agent or adjust the task description - Summarize the outcome for the user ## Rules - NEVER try to read, write, or execute code directly — you have no such tools -- ALWAYS use dispatch_agent to get work done +- ALWAYS use dispatch_agent or dispatch_agents to get work done +- **Prefer dispatch_agents when tasks are independent** — parallelism saves time - You can chain agents: use scout to explore, then builder to implement - You can dispatch the same agent multiple times with different tasks - Keep tasks focused — one clear objective per dispatch +- Each agent has a ${Math.round(AGENT_TIMEOUT_MS / 1000)}s timeout — break large tasks into smaller ones ## Agents @@ -670,7 +874,6 @@ ${agentCatalog}`, pi.on("session_start", async (_event, _ctx) => { applyExtensionDefaults(import.meta.url, _ctx); - // Clear widgets from previous session if (widgetCtx) { widgetCtx.ui.setWidget("agent-team", undefined); } @@ -689,14 +892,12 @@ ${agentCatalog}`, loadAgents(_ctx.cwd); - // Default to first team — use /agents-team to switch const teamNames = Object.keys(teams); if (teamNames.length > 0) { activateTeam(teamNames[0]); } - // Lock down to dispatcher-only (tool already registered at top level) - pi.setActiveTools(["dispatch_agent"]); + pi.setActiveTools(["dispatch_agent", "dispatch_agents"]); _ctx.ui.setStatus("agent-team", `Team: ${activeTeamName} (${agentStates.size})`); const members = Array.from(agentStates.values()).map(s => displayName(s.def.name)).join(", "); @@ -708,9 +909,8 @@ ${agentCatalog}`, `/agents-grid <1-6> Set grid column count`, "info", ); - updateWidget(); + flushWidgetUpdate(); - // Footer: model | team | context bar _ctx.ui.setFooter((_tui, theme, _footerData) => ({ dispose: () => {}, invalidate() {}, @@ -721,9 +921,13 @@ ${agentCatalog}`, const filled = Math.round(pct / 10); const bar = "#".repeat(filled) + "-".repeat(10 - filled); + const running = Array.from(agentStates.values()).filter(s => s.status === "running").length; + const runningStr = running > 0 ? theme.fg("accent", ` ● ${running} running`) : ""; + const left = theme.fg("dim", ` ${model}`) + theme.fg("muted", " · ") + - theme.fg("accent", activeTeamName); + theme.fg("accent", activeTeamName) + + runningStr; const right = theme.fg("dim", `[${bar}] ${Math.round(pct)}% `); const pad = " ".repeat(Math.max(1, width - visibleWidth(left) - visibleWidth(right))); @@ -731,4 +935,10 @@ ${agentCatalog}`, }, })); }); + + // ── Cleanup on exit ────────────────────────── + + process.on("exit", () => killAllAgents()); + process.on("SIGINT", () => { killAllAgents(); process.exit(0); }); + process.on("SIGTERM", () => { killAllAgents(); process.exit(0); }); } diff --git a/extensions/observatory.ts b/extensions/observatory.ts new file mode 100644 index 0000000..7a22536 --- /dev/null +++ b/extensions/observatory.ts @@ -0,0 +1,1100 @@ +/** + * Observatory — Comprehensive observability dashboard for the Pi coding agent + * + * A completely passive extension that observes and records every event — + * session starts, tool calls, agent turns, errors, context usage — into + * an append-only JSONL log and rolling summary on disk. + * + * Surfaces: + * - Widget: compact live dashboard with session stats, tool counts, cost + * - Footer: single-line status bar with model, context %, event count + * - Overlay: full-screen dashboard (4 views) opened via /obs command + * - Export: markdown report via /obs export + * + * Storage: .pi/observatory/events.jsonl, .pi/observatory/summary.json + * + * Commands: + * /obs or /observatory — open dashboard overlay + * /obs clear — wipe all observatory data + * /obs export — write markdown report + * /obs agents — overlay → agents view + * /obs tools — overlay → tools view + * /obs timeline — overlay → timeline view + * + * Usage: pi -e extensions/observatory.ts + */ + +import type { AssistantMessage } from "@mariozechner/pi-ai"; +import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent"; +import { DynamicBorder } from "@mariozechner/pi-coding-agent"; +import { Container, matchesKey, Text, truncateToWidth } from "@mariozechner/pi-tui"; +import * as fs from "fs"; +import * as path from "path"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +// ── Data Model ───────────────────────────────────────────────────────── + +type ObsEventType = + | "session_start" + | "session_switch" + | "session_fork" + | "tool_call" + | "tool_end" + | "agent_start" + | "agent_end" + | "dispatch" + | "error" + | "blocked"; + +interface ObsEvent { + ts: number; + type: ObsEventType; + sessionId: string; + tool?: string; + durationMs?: number; + blocked?: boolean; + blockReason?: string; + agentTurn?: number; + contextPercent?: number; + tokensIn?: number; + tokensOut?: number; + cost?: number; + error?: string; + meta?: Record; +} + +interface ObsSummary { + totalSessions: number; + totalEvents: number; + totalToolCalls: number; + totalAgentTurns: number; + totalErrors: number; + totalBlocked: number; + totalTokensIn: number; + totalTokensOut: number; + totalCost: number; + toolCounts: Record; + toolDurations: Record; + toolBlocked: Record; + sessions: SessionSummary[]; + lastUpdated: number; +} + +interface SessionSummary { + sessionId: string; + startedAt: number; + endedAt?: number; + model?: string; + toolCalls: number; + agentTurns: number; + errors: number; + blocked: number; + tokensIn: number; + tokensOut: number; + cost: number; + peakContextPercent: number; +} + +// ── Helpers ──────────────────────────────────────────────────────────── + +function fmtDuration(ms: number): string { + if (ms < 1000) return `${ms}ms`; + const secs = Math.floor(ms / 1000); + if (secs < 60) return `${secs}s`; + const mins = Math.floor(secs / 60); + const remSecs = secs % 60; + if (mins < 60) return `${mins}m ${remSecs}s`; + const hrs = Math.floor(mins / 60); + const remMins = mins % 60; + return `${hrs}h ${remMins}m`; +} + +function fmtTokens(n: number): string { + if (n < 1000) return `${n}`; + return `${(n / 1000).toFixed(1)}k`; +} + +function fmtCost(n: number): string { + return `$${n.toFixed(4)}`; +} + +function fmtTime(ts: number): string { + const d = new Date(ts); + return d.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", second: "2-digit" }); +} + +function fmtDate(ts: number): string { + const d = new Date(ts); + return d.toLocaleDateString([], { year: "numeric", month: "2-digit", day: "2-digit" }); +} + +function shortId(): string { + return Math.random().toString(36).slice(2, 8); +} + +function emptySummary(): ObsSummary { + return { + totalSessions: 0, + totalEvents: 0, + totalToolCalls: 0, + totalAgentTurns: 0, + totalErrors: 0, + totalBlocked: 0, + totalTokensIn: 0, + totalTokensOut: 0, + totalCost: 0, + toolCounts: {}, + toolDurations: {}, + toolBlocked: {}, + sessions: [], + lastUpdated: Date.now(), + }; +} + +function emptySessionSummary(sessionId: string, model?: string): SessionSummary { + return { + sessionId, + startedAt: Date.now(), + model, + toolCalls: 0, + agentTurns: 0, + errors: 0, + blocked: 0, + tokensIn: 0, + tokensOut: 0, + cost: 0, + peakContextPercent: 0, + }; +} + +// ── Token/Cost computation (follows tool-counter.ts pattern) ─────────── + +function computeTokensAndCost(ctx: ExtensionContext): { tokensIn: number; tokensOut: number; cost: number } { + let tokensIn = 0; + let tokensOut = 0; + let cost = 0; + try { + for (const entry of ctx.sessionManager.getBranch()) { + if (entry.type === "message" && entry.message.role === "assistant") { + const m = entry.message as AssistantMessage; + tokensIn += m.usage.input; + tokensOut += m.usage.output; + cost += m.usage.cost.total; + } + } + } catch { + // Session not yet ready — return zeros + } + return { tokensIn, tokensOut, cost }; +} + +// ── Extension ────────────────────────────────────────────────────────── + +export default function (pi: ExtensionAPI) { + // ── State ────────────────────────────────────────────────────────── + + let obsDir = ""; + let eventsPath = ""; + let summaryPath = ""; + + let sessionId = ""; + let sessionStartTs = 0; + let summary: ObsSummary = emptySummary(); + let currentSession: SessionSummary | null = null; + let sessionEvents: ObsEvent[] = []; + + let widgetCtx: ExtensionContext | null = null; + + // Tool call timing: Map — FIFO queue per tool + const toolTimers: Map = new Map(); + + // Agent turn tracking + let agentTurnCount = 0; + let agentTurnStartTs = 0; + + // Previous token/cost values for delta-based cross-session accumulation + let prevTokensIn = 0; + let prevTokensOut = 0; + let prevCost = 0; + + // Debounced summary flush + let summaryDirty = false; + let flushTimer: ReturnType | null = null; + + // ── Storage Layer ────────────────────────────────────────────────── + + function ensureDir() { + try { + if (!fs.existsSync(obsDir)) { + fs.mkdirSync(obsDir, { recursive: true }); + } + } catch {} + } + + function loadSummary() { + try { + if (fs.existsSync(summaryPath)) { + const raw = fs.readFileSync(summaryPath, "utf-8"); + const loaded = JSON.parse(raw) as ObsSummary; + // Merge loaded with defaults for any missing fields + summary = { ...emptySummary(), ...loaded }; + // Cap stored durations + for (const tool of Object.keys(summary.toolDurations)) { + if (summary.toolDurations[tool].length > 200) { + summary.toolDurations[tool] = summary.toolDurations[tool].slice(-200); + } + } + } + } catch { + summary = emptySummary(); + } + } + + function saveSummary() { + try { + summary.lastUpdated = Date.now(); + fs.writeFileSync(summaryPath, JSON.stringify(summary, null, 2), "utf-8"); + summaryDirty = false; + } catch {} + } + + function markDirty() { + summaryDirty = true; + } + + function startFlushTimer() { + if (flushTimer) return; + flushTimer = setInterval(() => { + if (summaryDirty) saveSummary(); + }, 5000); + } + + function stopFlushTimer() { + if (flushTimer) { + clearInterval(flushTimer); + flushTimer = null; + } + if (summaryDirty) saveSummary(); + } + + function appendEvent(evt: ObsEvent) { + try { + ensureDir(); + fs.appendFileSync(eventsPath, JSON.stringify(evt) + "\n", "utf-8"); + } catch {} + sessionEvents.push(evt); + // Keep in-memory events bounded + if (sessionEvents.length > 500) { + sessionEvents = sessionEvents.slice(-400); + } + summary.totalEvents++; + markDirty(); + } + + function clearAllData() { + try { + if (fs.existsSync(eventsPath)) fs.unlinkSync(eventsPath); + if (fs.existsSync(summaryPath)) fs.unlinkSync(summaryPath); + } catch {} + summary = emptySummary(); + sessionEvents = []; + toolTimers.clear(); + agentTurnCount = 0; + currentSession = emptySessionSummary(sessionId, widgetCtx?.model?.id); + summary.sessions.push(currentSession); + summary.totalSessions = summary.sessions.length; + markDirty(); + } + + // ── Context snapshot ─────────────────────────────────────────────── + + function getContextPercent(): number { + try { + const usage = widgetCtx?.getContextUsage(); + return usage ? Math.round(usage.percent ?? 0) : 0; + } catch { + return 0; + } + } + + // ── Widget rendering ─────────────────────────────────────────────── + + function updateWidget() { + if (!widgetCtx) return; + + try { + widgetCtx.ui.setWidget("observatory", (_tui, theme) => { + const container = new Container(); + const borderFn = (s: string) => theme.fg("accent", s); + + container.addChild(new DynamicBorder(borderFn)); + + const headerText = new Text("", 1, 0); + container.addChild(headerText); + + const liveText = new Text("", 1, 0); + container.addChild(liveText); + + const hintText = new Text("", 1, 0); + container.addChild(hintText); + + container.addChild(new DynamicBorder(borderFn)); + + return { + render(width: number): string[] { + const elapsed = fmtDuration(Date.now() - sessionStartTs); + const toolCount = currentSession?.toolCalls || 0; + const turns = currentSession?.agentTurns || 0; + const ctxPct = getContextPercent(); + + // Update peak context + if (currentSession && ctxPct > currentSession.peakContextPercent) { + currentSession.peakContextPercent = ctxPct; + } + + // Line 1: session info + const sid = theme.fg("accent", `#${sessionId}`); + const line1 = + theme.fg("dim", " SESSION ") + sid + + theme.fg("dim", " │ ⏱ ") + theme.fg("success", elapsed) + + theme.fg("dim", " │ 🔧 ") + theme.fg("accent", `${toolCount}`) + theme.fg("dim", " tools") + + theme.fg("dim", " │ 🔄 ") + theme.fg("accent", `${turns}`) + theme.fg("dim", " turns") + + theme.fg("dim", " │ 📊 ") + theme.fg(ctxPct > 80 ? "error" : ctxPct > 60 ? "warning" : "success", `${ctxPct}%`) + theme.fg("dim", " ctx"); + headerText.setText(truncateToWidth(line1, width - 4)); + + // Line 2: tool frequency bar (top 8 tools) + const tc = summary.toolCounts; + const sorted = Object.entries(tc).sort((a, b) => b[1] - a[1]).slice(0, 8); + const parts = sorted.map( + ([name, count]) => + theme.fg("accent", name) + theme.fg("dim", "(") + theme.fg("success", `${count}`) + theme.fg("dim", ")") + ); + const liveLine = parts.length > 0 + ? theme.fg("dim", " LIVE ") + theme.fg("success", "● ") + parts.join(theme.fg("dim", " ")) + : theme.fg("dim", " LIVE ● waiting for tools…"); + liveText.setText(truncateToWidth(liveLine, width - 4)); + + // Line 3: hint + tokens + cost + const { tokensIn, tokensOut, cost } = computeTokensAndCost(widgetCtx!); + const hintLine = + theme.fg("dim", " /obs") + theme.fg("muted", " — dashboard") + + theme.fg("dim", " │ tokens: ") + + theme.fg("success", fmtTokens(tokensIn)) + theme.fg("dim", " in · ") + + theme.fg("accent", fmtTokens(tokensOut)) + theme.fg("dim", " out") + + theme.fg("dim", " │ ") + theme.fg("warning", fmtCost(cost)); + hintText.setText(truncateToWidth(hintLine, width - 4)); + + return container.render(width); + }, + invalidate() { + container.invalidate(); + }, + }; + }); + } catch {} + } + + // ── Footer rendering ─────────────────────────────────────────────── + + function updateFooter(ctx: ExtensionContext) { + try { + ctx.ui.setFooter((_tui, theme) => ({ + dispose: () => {}, + invalidate() {}, + render(width: number): string[] { + const model = ctx.model?.id || "no-model"; + const ctxPct = getContextPercent(); + const evtCount = summary.totalEvents; + + const line = + theme.fg("accent", " 🔭 Observatory") + + theme.fg("dim", " │ ") + theme.fg("muted", model) + + theme.fg("dim", " │ ctx: ") + + theme.fg(ctxPct > 80 ? "error" : ctxPct > 60 ? "warning" : "success", `${ctxPct}%`) + + theme.fg("dim", " │ ") + theme.fg("success", `${evtCount}`) + theme.fg("dim", " events") + + theme.fg("dim", " │ /obs for dashboard "); + + return [truncateToWidth(line, width)]; + }, + })); + } catch {} + } + + // ── Dashboard Overlay ────────────────────────────────────────────── + + async function openOverlay(ctx: ExtensionContext, initialView: number = 0) { + if (!ctx.hasUI) return; + + let currentView = initialView; // 0=Feed, 1=Agents, 2=Tools, 3=Timeline + let scrollOffset = 0; + + const viewNames = ["1:Feed", "2:Agents", "3:Tools", "4:Timeline"]; + + await ctx.ui.custom((_tui, theme, _kb, done) => { + return { + render(width: number): string[] { + const lines: string[] = []; + const innerW = width - 2; + + // ── Header ── + lines.push(""); + const tabs = viewNames.map((name, i) => + i === currentView + ? theme.fg("accent", theme.bold(`[${name}]`)) + : theme.fg("dim", `[${name}]`) + ).join(" "); + lines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold("🔭 Observatory Dashboard")) + + " ".repeat(Math.max(1, innerW - 24 - viewNames.join(" ").length - 2)) + + tabs, + width, + )); + lines.push(theme.fg("dim", "─".repeat(width))); + + // ── View content ── + const contentLines = renderView(currentView, width, theme, scrollOffset); + lines.push(...contentLines); + + // ── Footer controls ── + lines.push(""); + lines.push(theme.fg("dim", "─".repeat(width))); + lines.push(truncateToWidth( + " " + theme.fg("dim", "1-4/Tab: views │ ↑↓/j/k: scroll │ PgUp/PgDn: page │ c: clear │ q/Esc: close"), + width, + )); + lines.push(""); + + return lines; + }, + handleInput(data: string) { + if (matchesKey(data, "escape") || data === "q") { + done(undefined); + return; + } + if (data === "1") { currentView = 0; scrollOffset = 0; } + else if (data === "2") { currentView = 1; scrollOffset = 0; } + else if (data === "3") { currentView = 2; scrollOffset = 0; } + else if (data === "4") { currentView = 3; scrollOffset = 0; } + else if (data === "\t") { currentView = (currentView + 1) % 4; scrollOffset = 0; } + else if (matchesKey(data, "up") || data === "k") { scrollOffset = Math.max(0, scrollOffset - 1); } + else if (matchesKey(data, "down") || data === "j") { scrollOffset++; } + else if (matchesKey(data, "pageUp")) { scrollOffset = Math.max(0, scrollOffset - 20); } + else if (matchesKey(data, "pageDown")) { scrollOffset += 20; } + else if (data === "c") { + clearAllData(); + scrollOffset = 0; + } + _tui.requestRender(); + }, + invalidate() {}, + }; + }, { + overlay: true, + overlayOptions: { width: "90%", anchor: "center" }, + }); + } + + // ── View Renderers ───────────────────────────────────────────────── + + function renderView(view: number, width: number, theme: any, offset: number): string[] { + switch (view) { + case 0: return renderFeedView(width, theme, offset); + case 1: return renderAgentsView(width, theme, offset); + case 2: return renderToolsView(width, theme, offset); + case 3: return renderTimelineView(width, theme, offset); + default: return []; + } + } + + // ── View 1: Live Feed ────────────────────────────────────────────── + + function renderFeedView(width: number, theme: any, offset: number): string[] { + const lines: string[] = []; + const events = sessionEvents.slice(-100); + + if (events.length === 0) { + lines.push(""); + lines.push(truncateToWidth(" " + theme.fg("dim", "No events yet. Start working and events will appear here."), width)); + return lines; + } + + lines.push(truncateToWidth( + " " + theme.fg("muted", `Showing last ${events.length} events from session #${sessionId}`), + width, + )); + lines.push(""); + + const iconMap: Record = { + session_start: "🚀", session_switch: "🔀", session_fork: "🔱", + tool_call: "🔧", tool_end: "✅", agent_start: "🤖", agent_end: "🏁", + dispatch: "📤", error: "❌", blocked: "🚫", + }; + const colorMap: Record = { + session_start: "success", session_switch: "accent", session_fork: "accent", + tool_call: "accent", tool_end: "success", agent_start: "warning", agent_end: "success", + dispatch: "accent", error: "error", blocked: "error", + }; + + const visible = events.slice(offset); + for (const evt of visible) { + const time = theme.fg("dim", `[${fmtTime(evt.ts)}]`); + const icon = iconMap[evt.type] || "●"; + const color = colorMap[evt.type] || "muted"; + let detail = ""; + + if (evt.type === "tool_call" && evt.tool) { + detail = theme.fg(color, `${evt.tool}`) + + (evt.contextPercent !== undefined ? theme.fg("dim", ` ctx:${evt.contextPercent}%`) : ""); + } else if (evt.type === "tool_end" && evt.tool) { + detail = theme.fg(color, `${evt.tool}`) + + (evt.durationMs !== undefined ? theme.fg("dim", ` ${fmtDuration(evt.durationMs)}`) : ""); + } else if (evt.type === "agent_start") { + detail = theme.fg(color, `turn #${evt.agentTurn || "?"}`) + + (evt.contextPercent !== undefined ? theme.fg("dim", ` ctx:${evt.contextPercent}%`) : ""); + } else if (evt.type === "agent_end") { + detail = theme.fg(color, `turn #${evt.agentTurn || "?"}`) + + (evt.durationMs !== undefined ? theme.fg("dim", ` ${fmtDuration(evt.durationMs)}`) : "") + + (evt.tokensIn !== undefined ? theme.fg("dim", ` tok:${fmtTokens(evt.tokensIn)}in`) : "") + + (evt.cost !== undefined ? theme.fg("dim", ` ${fmtCost(evt.cost)}`) : ""); + } else if (evt.type === "error") { + detail = theme.fg(color, evt.error || "unknown error"); + } else if (evt.type === "blocked") { + detail = theme.fg(color, `${evt.tool || "?"}: ${evt.blockReason || "blocked"}`); + } else { + detail = theme.fg(color, evt.type); + } + + lines.push(truncateToWidth(` ${time} ${icon} ${detail}`, width)); + } + + return lines; + } + + // ── View 2: Agent Performance ────────────────────────────────────── + + function renderAgentsView(width: number, theme: any, offset: number): string[] { + const lines: string[] = []; + + // Cross-session summary + lines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold("Cross-Session Summary")), + width, + )); + lines.push(truncateToWidth( + " " + + theme.fg("muted", "Total turns: ") + theme.fg("success", `${summary.totalAgentTurns}`) + + theme.fg("dim", " │ ") + + theme.fg("muted", "Total sessions: ") + theme.fg("success", `${summary.totalSessions}`) + + theme.fg("dim", " │ ") + + theme.fg("muted", "Total cost: ") + theme.fg("warning", fmtCost(summary.totalCost)), + width, + )); + lines.push(""); + + // Current session agent turns + lines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold("Current Session Turns")) + + theme.fg("dim", ` (#${sessionId})`), + width, + )); + lines.push(""); + + // Collect agent turn events + const turnStarts: ObsEvent[] = sessionEvents.filter(e => e.type === "agent_start"); + const turnEnds: ObsEvent[] = sessionEvents.filter(e => e.type === "agent_end"); + + if (turnStarts.length === 0) { + lines.push(truncateToWidth(" " + theme.fg("dim", "No agent turns recorded yet."), width)); + return lines; + } + + // Table header + const hdr = + theme.fg("accent", " Turn") + + theme.fg("accent", " │ Duration ") + + theme.fg("accent", " │ Tools ") + + theme.fg("accent", " │ Context ") + + theme.fg("accent", " │ Tokens In ") + + theme.fg("accent", " │ Cost "); + lines.push(truncateToWidth(hdr, width)); + lines.push(truncateToWidth(" " + theme.fg("dim", "─".repeat(Math.min(70, width - 4))), width)); + + // Build turn rows — pair starts with ends + const turnRows: string[] = []; + let prevCtx = 0; + for (let i = 0; i < turnStarts.length; i++) { + const start = turnStarts[i]; + const end = turnEnds[i]; // May be undefined if still running + const turn = start.agentTurn || (i + 1); + const dur = end?.durationMs !== undefined ? fmtDuration(end.durationMs) : "running…"; + + // Count tools between this turn start and end (or now) + const startTs = start.ts; + const endTs = end?.ts || Date.now(); + const toolsInTurn = sessionEvents.filter( + e => e.type === "tool_call" && e.ts >= startTs && e.ts <= endTs + ).length; + + const ctxNow = end?.contextPercent ?? start.contextPercent ?? 0; + const ctxDelta = ctxNow - prevCtx; + prevCtx = ctxNow; + + const tokIn = end?.tokensIn ?? 0; + const cost = end?.cost ?? 0; + + const row = + theme.fg("success", ` #${String(turn).padStart(2)}`) + + theme.fg("dim", " │ ") + theme.fg("muted", dur.padEnd(9)) + + theme.fg("dim", " │ ") + theme.fg("accent", String(toolsInTurn).padStart(5)) + " " + + theme.fg("dim", " │ ") + theme.fg(ctxDelta > 15 ? "warning" : "muted", `${ctxDelta >= 0 ? "+" : ""}${ctxDelta}%`.padStart(7)) + " " + + theme.fg("dim", " │ ") + theme.fg("muted", fmtTokens(tokIn).padStart(9)) + " " + + theme.fg("dim", " │ ") + theme.fg("warning", fmtCost(cost).padStart(8)); + turnRows.push(row); + } + + const visible = turnRows.slice(offset); + for (const row of visible) { + lines.push(truncateToWidth(row, width)); + } + + return lines; + } + + // ── View 3: Tool Analytics ───────────────────────────────────────── + + function renderToolsView(width: number, theme: any, offset: number): string[] { + const lines: string[] = []; + + lines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold("Tool Analytics")) + + theme.fg("dim", " (all sessions)"), + width, + )); + lines.push(""); + + const tc = summary.toolCounts; + const entries = Object.entries(tc).sort((a, b) => b[1] - a[1]); + + if (entries.length === 0) { + lines.push(truncateToWidth(" " + theme.fg("dim", "No tool usage recorded yet."), width)); + return lines; + } + + const maxCount = entries[0][1]; + const barWidth = Math.min(25, Math.floor(width * 0.3)); + const blocks = "▏▎▍▌▋▊▉█"; + + const visible = entries.slice(offset); + for (const [toolName, count] of visible) { + // Bar + const ratio = maxCount > 0 ? count / maxCount : 0; + const fullBlocks = Math.floor(ratio * barWidth); + const remainder = (ratio * barWidth) - fullBlocks; + const partialIdx = Math.floor(remainder * 8); + let bar = "█".repeat(fullBlocks); + if (fullBlocks < barWidth && partialIdx > 0) { + bar += blocks[partialIdx - 1]; + } + + // Duration stats + const durations = summary.toolDurations[toolName] || []; + let avgDur = "—"; + let minDur = "—"; + let maxDur = "—"; + if (durations.length > 0) { + const avg = durations.reduce((a, b) => a + b, 0) / durations.length; + const min = Math.min(...durations); + const max = Math.max(...durations); + avgDur = fmtDuration(Math.round(avg)); + minDur = fmtDuration(min); + maxDur = fmtDuration(max); + } + + const blocked = summary.toolBlocked[toolName] || 0; + + const namePad = toolName.padEnd(12); + const line = + " " + + theme.fg("accent", namePad) + " " + + theme.fg("success", bar.padEnd(barWidth)) + " " + + theme.fg("muted", String(count).padStart(5)) + + theme.fg("dim", " avg: ") + theme.fg("muted", avgDur.padEnd(6)) + + theme.fg("dim", " min: ") + theme.fg("muted", minDur.padEnd(6)) + + theme.fg("dim", " max: ") + theme.fg("muted", maxDur.padEnd(6)) + + (blocked > 0 + ? theme.fg("dim", " blocked: ") + theme.fg("error", `${blocked}`) + : theme.fg("dim", " blocked: ") + theme.fg("muted", "0")); + + lines.push(truncateToWidth(line, width)); + } + + return lines; + } + + // ── View 4: Timeline ─────────────────────────────────────────────── + + function renderTimelineView(width: number, theme: any, offset: number): string[] { + const lines: string[] = []; + + lines.push(truncateToWidth( + " " + theme.fg("accent", theme.bold("Session Timeline")) + + theme.fg("dim", ` (${summary.sessions.length} sessions)`), + width, + )); + lines.push(""); + + if (summary.sessions.length === 0) { + lines.push(truncateToWidth(" " + theme.fg("dim", "No sessions recorded yet."), width)); + return lines; + } + + // Show sessions newest first + const sessionsDesc = [...summary.sessions].reverse(); + const cardLines: string[] = []; + + for (const sess of sessionsDesc) { + const dur = sess.endedAt + ? fmtDuration(sess.endedAt - sess.startedAt) + : fmtDuration(Date.now() - sess.startedAt); + const date = fmtDate(sess.startedAt); + const time = fmtTime(sess.startedAt); + const isCurrent = sess.sessionId === sessionId; + + const topBorder = theme.fg("dim", " ┌─ ") + + theme.fg("accent", `Session ${sess.sessionId}`) + + (isCurrent ? theme.fg("success", " (current)") : "") + + theme.fg("dim", ` ─ ${date} ${time} `) + + theme.fg("dim", "─".repeat(Math.max(0, width - 50))); + cardLines.push(truncateToWidth(topBorder, width)); + + const line1 = + theme.fg("dim", " │ ") + + theme.fg("muted", "Duration: ") + theme.fg("success", dur) + + theme.fg("dim", " │ ") + + theme.fg("muted", "Model: ") + theme.fg("accent", sess.model || "?") + + theme.fg("dim", " │ ") + + theme.fg("muted", "Tools: ") + theme.fg("success", `${sess.toolCalls}`) + + theme.fg("dim", " │ ") + + theme.fg("muted", "Turns: ") + theme.fg("success", `${sess.agentTurns}`); + cardLines.push(truncateToWidth(line1, width)); + + const line2 = + theme.fg("dim", " │ ") + + theme.fg("muted", "Cost: ") + theme.fg("warning", fmtCost(sess.cost)) + + theme.fg("dim", " │ ") + + theme.fg("muted", "Peak Context: ") + theme.fg( + sess.peakContextPercent > 80 ? "error" : sess.peakContextPercent > 60 ? "warning" : "success", + `${sess.peakContextPercent}%`, + ) + + theme.fg("dim", " │ ") + + theme.fg("muted", "Errors: ") + theme.fg(sess.errors > 0 ? "error" : "muted", `${sess.errors}`) + + theme.fg("dim", " │ ") + + theme.fg("muted", "Tokens: ") + + theme.fg("success", fmtTokens(sess.tokensIn)) + theme.fg("dim", " in / ") + + theme.fg("accent", fmtTokens(sess.tokensOut)) + theme.fg("dim", " out"); + cardLines.push(truncateToWidth(line2, width)); + + const botBorder = theme.fg("dim", " └" + "─".repeat(Math.max(0, width - 5)) + "┘"); + cardLines.push(truncateToWidth(botBorder, width)); + cardLines.push(""); + } + + const visible = cardLines.slice(offset); + lines.push(...visible); + + return lines; + } + + // ── Export Report ────────────────────────────────────────────────── + + function exportReport(ctx: ExtensionContext) { + try { + ensureDir(); + const { tokensIn, tokensOut, cost } = computeTokensAndCost(ctx); + const elapsed = fmtDuration(Date.now() - sessionStartTs); + const model = ctx.model?.id || "unknown"; + + const toolRows = Object.entries(summary.toolCounts) + .sort((a, b) => b[1] - a[1]) + .map(([name, count]) => { + const durations = summary.toolDurations[name] || []; + const avg = durations.length > 0 + ? fmtDuration(Math.round(durations.reduce((a, b) => a + b, 0) / durations.length)) + : "—"; + const blocked = summary.toolBlocked[name] || 0; + return `| ${name} | ${count} | ${avg} | ${blocked} |`; + }) + .join("\n"); + + const sessionRows = summary.sessions.map(sess => { + const dur = sess.endedAt + ? fmtDuration(sess.endedAt - sess.startedAt) + : fmtDuration(Date.now() - sess.startedAt); + return `| ${sess.sessionId} | ${fmtDate(sess.startedAt)} | ${dur} | ${sess.model || "?"} | ${sess.toolCalls} | ${sess.agentTurns} | ${fmtCost(sess.cost)} | ${sess.peakContextPercent}% |`; + }).join("\n"); + + const report = `# 🔭 Observatory Report +Generated: ${new Date().toISOString()} + +## Current Session +- **ID:** ${sessionId} +- **Duration:** ${elapsed} +- **Model:** ${model} +- **Tool Calls:** ${currentSession?.toolCalls || 0} +- **Agent Turns:** ${currentSession?.agentTurns || 0} +- **Tokens:** ${fmtTokens(tokensIn)} in / ${fmtTokens(tokensOut)} out +- **Cost:** ${fmtCost(cost)} +- **Peak Context:** ${currentSession?.peakContextPercent || 0}% + +## Tool Usage +| Tool | Count | Avg Duration | Blocked | +|------|-------|-------------|---------| +${toolRows || "| (none) | — | — | — |"} + +## Cross-Session Summary +- **Total Sessions:** ${summary.totalSessions} +- **Total Events:** ${summary.totalEvents} +- **Total Tool Calls:** ${summary.totalToolCalls} +- **Total Agent Turns:** ${summary.totalAgentTurns} +- **Total Errors:** ${summary.totalErrors} +- **Total Blocked:** ${summary.totalBlocked} +- **Total Tokens In:** ${fmtTokens(summary.totalTokensIn)} +- **Total Tokens Out:** ${fmtTokens(summary.totalTokensOut)} +- **Total Cost:** ${fmtCost(summary.totalCost)} + +## Session History +| Session | Date | Duration | Model | Tools | Turns | Cost | Peak Ctx | +|---------|------|----------|-------|-------|-------|------|----------| +${sessionRows || "| (none) | — | — | — | — | — | — | — |"} +`; + + const reportPath = path.join(obsDir, "report.md"); + fs.writeFileSync(reportPath, report, "utf-8"); + ctx.ui.notify(`📄 Report exported to .pi/observatory/report.md`, "success"); + } catch (err) { + ctx.ui.notify(`Export failed: ${err instanceof Error ? err.message : String(err)}`, "error"); + } + } + + // ── Commands ─────────────────────────────────────────────────────── + + pi.registerCommand("obs", { + description: "Open Observatory dashboard. Args: clear | export | agents | tools | timeline", + handler: async (args, ctx) => { + widgetCtx = ctx; + const arg = (args || "").trim().toLowerCase(); + + if (arg === "clear") { + clearAllData(); + ctx.ui.notify("🔭 Observatory: All data cleared.", "info"); + updateWidget(); + return; + } + if (arg === "export") { + exportReport(ctx); + return; + } + + let view = 0; + if (arg === "agents") view = 1; + else if (arg === "tools") view = 2; + else if (arg === "timeline") view = 3; + + await openOverlay(ctx, view); + }, + }); + + pi.registerCommand("observatory", { + description: "Open Observatory dashboard (alias for /obs)", + handler: async (_args, ctx) => { + widgetCtx = ctx; + await openOverlay(ctx, 0); + }, + }); + + // ── Event Handlers ───────────────────────────────────────────────── + + pi.on("session_start", async (_event, ctx) => { + try { + applyExtensionDefaults(import.meta.url, ctx); + + widgetCtx = ctx; + sessionId = shortId(); + sessionStartTs = Date.now(); + agentTurnCount = 0; + sessionEvents = []; + toolTimers.clear(); + prevTokensIn = 0; + prevTokensOut = 0; + prevCost = 0; + + // Initialize storage + obsDir = path.join(ctx.cwd, ".pi", "observatory"); + eventsPath = path.join(obsDir, "events.jsonl"); + summaryPath = path.join(obsDir, "summary.json"); + ensureDir(); + loadSummary(); + + // Create session summary + currentSession = emptySessionSummary(sessionId, ctx.model?.id); + summary.sessions.push(currentSession); + summary.totalSessions = summary.sessions.length; + + // Log event + appendEvent({ + ts: Date.now(), + type: "session_start", + sessionId, + contextPercent: getContextPercent(), + meta: { model: ctx.model?.id }, + }); + + // Start flush timer + startFlushTimer(); + + // Set up UI + updateWidget(); + updateFooter(ctx); + } catch {} + }); + + pi.on("tool_call", async (event, _ctx) => { + try { + const toolName = event.toolName; + + // Record start time (FIFO queue per tool name) + if (!toolTimers.has(toolName)) { + toolTimers.set(toolName, []); + } + toolTimers.get(toolName)!.push(Date.now()); + + // Update counts + summary.toolCounts[toolName] = (summary.toolCounts[toolName] || 0) + 1; + summary.totalToolCalls++; + if (currentSession) currentSession.toolCalls++; + + // Log event + appendEvent({ + ts: Date.now(), + type: "tool_call", + sessionId, + tool: toolName, + contextPercent: getContextPercent(), + }); + + updateWidget(); + } catch {} + + // IMPORTANT: Never block — completely passive + return undefined; + }); + + pi.on("tool_execution_end", async (event) => { + try { + const toolName = event.toolName; + + // Calculate duration (pop earliest timer for this tool) + let durationMs: number | undefined; + const timers = toolTimers.get(toolName); + if (timers && timers.length > 0) { + const startTs = timers.shift()!; + durationMs = Date.now() - startTs; + + // Store duration (cap at 200 per tool) + if (!summary.toolDurations[toolName]) { + summary.toolDurations[toolName] = []; + } + summary.toolDurations[toolName].push(durationMs); + if (summary.toolDurations[toolName].length > 200) { + summary.toolDurations[toolName] = summary.toolDurations[toolName].slice(-200); + } + } + + // Log event + appendEvent({ + ts: Date.now(), + type: "tool_end", + sessionId, + tool: toolName, + durationMs, + }); + + updateWidget(); + } catch {} + }); + + pi.on("before_agent_start", async (_event, _ctx) => { + try { + agentTurnCount++; + agentTurnStartTs = Date.now(); + + summary.totalAgentTurns++; + if (currentSession) currentSession.agentTurns++; + + const ctxPct = getContextPercent(); + + appendEvent({ + ts: Date.now(), + type: "agent_start", + sessionId, + agentTurn: agentTurnCount, + contextPercent: ctxPct, + }); + + updateWidget(); + } catch {} + + // Don't modify the system prompt — return undefined + return undefined; + }); + + pi.on("agent_end", async (_event, ctx) => { + try { + widgetCtx = ctx; + const turnDuration = Date.now() - agentTurnStartTs; + const { tokensIn, tokensOut, cost } = computeTokensAndCost(ctx); + const ctxPct = getContextPercent(); + + // Update session summary + if (currentSession) { + currentSession.tokensIn = tokensIn; + currentSession.tokensOut = tokensOut; + currentSession.cost = cost; + if (ctxPct > currentSession.peakContextPercent) { + currentSession.peakContextPercent = ctxPct; + } + } + + // Update global summary totals using deltas (so cross-session values accumulate) + const deltaIn = tokensIn - prevTokensIn; + const deltaOut = tokensOut - prevTokensOut; + const deltaCost = cost - prevCost; + summary.totalTokensIn += deltaIn; + summary.totalTokensOut += deltaOut; + summary.totalCost += deltaCost; + prevTokensIn = tokensIn; + prevTokensOut = tokensOut; + prevCost = cost; + + appendEvent({ + ts: Date.now(), + type: "agent_end", + sessionId, + agentTurn: agentTurnCount, + durationMs: turnDuration, + contextPercent: ctxPct, + tokensIn, + tokensOut, + cost, + }); + + // Flush summary on every agent end + markDirty(); + saveSummary(); + + updateWidget(); + updateFooter(ctx); + } catch {} + }); + +} diff --git a/extensions/stop.ts b/extensions/stop.ts new file mode 100644 index 0000000..9afd325 --- /dev/null +++ b/extensions/stop.ts @@ -0,0 +1,41 @@ +/** + * Stop — Immediately interrupt the active chat session + * + * Registers a /stop slash command that aborts the current agent turn. + * Also supports /stop with a reason message for logging clarity. + * + * Usage: pi -e extensions/stop.ts + * + * Commands: + * /stop — abort the current agent turn immediately + * /stop — abort with a logged reason + */ + +import type { ExtensionAPI, ExtensionContext } from "@mariozechner/pi-coding-agent"; +import { applyExtensionDefaults } from "./themeMap.ts"; + +export default function (pi: ExtensionAPI) { + let activeCtx: ExtensionContext | undefined; + + pi.on("session_start", async (_event, ctx) => { + applyExtensionDefaults(import.meta.url, ctx); + activeCtx = ctx; + }); + + pi.on("session_switch", async (_event, ctx) => { + activeCtx = ctx; + }); + + pi.registerCommand("stop", { + description: "Immediately interrupt the active agent turn. Usage: /stop [reason]", + handler: async (args, ctx) => { + activeCtx = ctx; + const reason = (args || "").trim(); + ctx.abort(); + const msg = reason + ? `🛑 Session aborted: ${reason}` + : "🛑 Session aborted."; + ctx.ui.notify(msg, "warning"); + }, + }); +} diff --git a/extensions/themeMap.ts b/extensions/themeMap.ts index ce4e563..19adcfb 100644 --- a/extensions/themeMap.ts +++ b/extensions/themeMap.ts @@ -22,10 +22,12 @@ import { fileURLToPath } from "url"; // export const THEME_MAP: Record = { "agent-chain": "midnight-ocean", // deep sequential pipeline + "agent-dashboard": "tokyo-night", // unified monitoring hub "agent-team": "dracula", // rich orchestration palette "cross-agent": "ocean-breeze", // cross-boundary, connecting "damage-control": "gruvbox", // grounded, earthy safety "minimal": "synthwave", // synthwave by default now! + "observatory": "cyberpunk", // futuristic observation deck "pi-pi": "rose-pine", // warm creative meta-agent "pure-focus": "everforest", // calm, distraction-free "purpose-gate": "tokyo-night", // intentional, sharp focus diff --git a/justfile b/justfile index 2d69dfe..743cf2a 100644 --- a/justfile +++ b/justfile @@ -67,11 +67,19 @@ ext-pi-pi: #ext -# 15. Session Replay: scrollable timeline overlay of session history (legit) +# 15. Observatory: comprehensive observability dashboard with live widget, overlay, and export +ext-observatory: + pi -e extensions/observatory.ts -e extensions/theme-cycler.ts + +# 16. Agent Dashboard: unified observability across team, subagent, and chain interfaces +ext-agent-dashboard: + pi -e extensions/agent-dashboard.ts -e extensions/theme-cycler.ts + +# 17. Session Replay: scrollable timeline overlay of session history (legit) ext-session-replay: pi -e extensions/session-replay.ts -e extensions/minimal.ts -# 16. Theme cycler: Ctrl+X forward, Ctrl+Q backward, /theme picker +# 18. Theme cycler: Ctrl+X forward, Ctrl+Q backward, /theme picker ext-theme-cycler: pi -e extensions/theme-cycler.ts -e extensions/minimal.ts @@ -104,4 +112,6 @@ all: just open system-select minimal theme-cycler just open damage-control minimal theme-cycler just open agent-chain theme-cycler - just open pi-pi theme-cycler \ No newline at end of file + just open pi-pi theme-cycler + just open observatory theme-cycler + just open agent-dashboard theme-cycler \ No newline at end of file diff --git a/package.json b/package.json index ea5834f..c92ac68 100644 --- a/package.json +++ b/package.json @@ -5,5 +5,8 @@ "description": "Pi Coding Agent extension playground", "dependencies": { "yaml": "^2.8.0" + }, + "devDependencies": { + "@playwright/cli": "^0.1.1" } } diff --git a/pledge-now-pay-later/.env.example b/pledge-now-pay-later/.env.example new file mode 100644 index 0000000..fe12ac4 --- /dev/null +++ b/pledge-now-pay-later/.env.example @@ -0,0 +1,7 @@ +DATABASE_URL=postgresql://user:password@localhost:5432/dbname +NEXTAUTH_SECRET=your-secret-here +NEXTAUTH_URL=http://localhost:3000 +GOCARDLESS_ACCESS_TOKEN=your-gocardless-token +GOCARDLESS_ENVIRONMENT=sandbox +REDIS_URL=redis://localhost:6379 +BASE_URL=http://localhost:3000 diff --git a/pledge-now-pay-later/.eslintrc.json b/pledge-now-pay-later/.eslintrc.json new file mode 100644 index 0000000..3722418 --- /dev/null +++ b/pledge-now-pay-later/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": ["next/core-web-vitals", "next/typescript"] +} diff --git a/pledge-now-pay-later/.gitignore b/pledge-now-pay-later/.gitignore new file mode 100644 index 0000000..2db86ff --- /dev/null +++ b/pledge-now-pay-later/.gitignore @@ -0,0 +1,43 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js +.yarn/install-state.gz + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts + +/src/generated/prisma + +# SQLite dev database +*.db +*.db-journal diff --git a/pledge-now-pay-later/Dockerfile b/pledge-now-pay-later/Dockerfile new file mode 100644 index 0000000..eed254d --- /dev/null +++ b/pledge-now-pay-later/Dockerfile @@ -0,0 +1,27 @@ +FROM node:20-alpine AS base + +FROM base AS deps +WORKDIR /app +COPY package.json package-lock.json ./ +RUN npm ci + +FROM base AS builder +WORKDIR /app +COPY --from=deps /app/node_modules ./node_modules +COPY . . +RUN npx prisma generate +RUN npm run build + +FROM base AS runner +WORKDIR /app +ENV NODE_ENV=production +RUN addgroup --system --gid 1001 nodejs +RUN adduser --system --uid 1001 nextjs +COPY --from=builder /app/public ./public +COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ +COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static +COPY --from=builder /app/prisma ./prisma +USER nextjs +EXPOSE 3000 +ENV PORT=3000 +CMD ["node", "server.js"] diff --git a/pledge-now-pay-later/README.md b/pledge-now-pay-later/README.md new file mode 100644 index 0000000..e80a36f --- /dev/null +++ b/pledge-now-pay-later/README.md @@ -0,0 +1,139 @@ +# Pledge Now, Pay Later + +> Convert "I'll donate later" into tracked pledges with automatic payment follow-up. Free forever for UK charities. + +## Features + +- **15-Second Pledge Flow**: Mobile-first, 3-screen donor experience +- **QR Code Attribution**: Every pledge tied to event + volunteer/table +- **Pay by Bank Transfer**: Zero fees — unique reference for matching +- **Direct Debit**: GoCardless integration for automatic collection +- **Automated Reminders**: 4-step follow-up sequence (export/webhook) +- **Bank Statement Reconciliation**: Upload CSV, auto-match payments +- **CRM Export**: Full attribution data ready for import +- **Pipeline Dashboard**: Track pledges from new → paid + +## Quick Start + +### Prerequisites +- Node.js 18+ +- Docker & Docker Compose +- npm or pnpm + +### Setup + +```bash +# 1. Clone and install +cd pledge-now-pay-later +npm install + +# 2. Start database +docker compose up -d + +# 3. Run migrations +npx prisma migrate dev --name init + +# 4. Seed demo data +npx prisma db seed + +# 5. Start dev server +npm run dev +``` + +Visit [http://localhost:3000](http://localhost:3000) + +### Demo URLs +- **Landing**: http://localhost:3000 +- **Donor Flow**: http://localhost:3000/p/demo +- **Dashboard**: http://localhost:3000/dashboard + +## Tech Stack + +| Layer | Technology | +|-------|-----------| +| Frontend | Next.js 14 (App Router) | +| Language | TypeScript | +| Styling | Tailwind CSS + shadcn/ui | +| Database | PostgreSQL 16 | +| ORM | Prisma | +| QR Codes | qrcode (node) | +| CSV Parsing | PapaParse | +| Icons | Lucide React | +| Auth | NextAuth.js (ready) | + +## Architecture + +``` +src/ +├── app/ +│ ├── api/ # API routes +│ │ ├── analytics/ # Event tracking +│ │ ├── dashboard/ # Stats & pipeline +│ │ ├── events/ # CRUD + QR management +│ │ ├── exports/ # CRM pack CSV +│ │ ├── imports/ # Bank statement matching +│ │ ├── pledges/ # Create, update, mark paid +│ │ ├── qr/ # Resolve QR tokens +│ │ └── webhooks/ # Reminder event polling +│ ├── dashboard/ # Staff UI +│ │ ├── events/ # Event management + QR codes +│ │ ├── pledges/ # Pledge pipeline +│ │ ├── reconcile/ # Bank CSV import +│ │ ├── exports/ # Download CRM data +│ │ ├── settings/ # Org config +│ │ └── apply/ # Fractional CTO upsell +│ └── p/[token]/ # Donor pledge flow +│ └── steps/ # Amount → Payment → Identity → Instructions +├── components/ui/ # Reusable UI components +└── lib/ # Core utilities + ├── prisma.ts # DB client + ├── reference.ts # Bank-safe ref generator + ├── qr.ts # QR code generation + ├── matching.ts # Bank statement matching + ├── reminders.ts # Reminder sequences + ├── analytics.ts # Event tracking + ├── exports.ts # CRM export formatting + └── validators.ts # Zod schemas +``` + +## API Reference + +| Endpoint | Method | Purpose | +|----------|--------|---------| +| `/api/qr/{token}` | GET | Resolve QR code → event info | +| `/api/pledges` | POST | Create pledge | +| `/api/pledges/{id}` | PATCH | Update pledge status | +| `/api/pledges/{id}/mark-initiated` | POST | Donor "I've paid" | +| `/api/events` | GET/POST | List & create events | +| `/api/events/{id}/qr` | GET/POST | Manage QR sources | +| `/api/events/{id}/qr/{qrId}/download` | GET | Download QR PNG | +| `/api/dashboard` | GET | Dashboard stats | +| `/api/imports/bank-statement` | POST | Upload & match CSV | +| `/api/exports/crm-pack` | GET | Download CRM CSV | +| `/api/webhooks` | GET | Poll pending reminders | +| `/api/analytics` | POST | Track events | + +## Payment Reference Format + +References follow format: `PREFIX-XXXX-NN` +- **PREFIX**: Configurable per org (default: PNPL), max 4 chars +- **XXXX**: 4-char alphanumeric (human-safe: no 0/O, 1/I/l) +- **NN**: Amount in pounds (helps manual matching) +- Total max 18 chars (UK BACS limit) + +Example: `PNPL-7K4P-50` (£50 pledge) + +## Reminder Sequence + +| Step | Delay | Message | +|------|-------|---------| +| 0 | T+0 | Payment instructions with bank details | +| 1 | T+2 days | Gentle nudge | +| 2 | T+7 days | Impact story + urgency | +| 3 | T+14 days | Final reminder + easy cancel | + +Reminders auto-stop when pledge is marked paid. + +## License + +Proprietary — © Omair. All rights reserved. diff --git a/pledge-now-pay-later/bun.lock b/pledge-now-pay-later/bun.lock new file mode 100644 index 0000000..e105390 --- /dev/null +++ b/pledge-now-pay-later/bun.lock @@ -0,0 +1,1242 @@ +{ + "lockfileVersion": 1, + "configVersion": 0, + "workspaces": { + "": { + "name": "pledge-now-pay-later", + "dependencies": { + "@auth/prisma-adapter": "^2.11.1", + "@prisma/adapter-pg": "^7.4.2", + "@prisma/client": "^7.4.2", + "@types/bcryptjs": "^2.4.6", + "@types/qrcode": "^1.5.6", + "bcryptjs": "^3.0.3", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "date-fns": "^4.1.0", + "lucide-react": "^0.575.0", + "nanoid": "^5.1.6", + "next": "14.2.35", + "next-auth": "^4.24.13", + "papaparse": "^5.5.3", + "pg": "^8.19.0", + "prisma": "^7.4.2", + "qrcode": "^1.5.4", + "react": "^18", + "react-dom": "^18", + "tailwind-merge": "^3.5.0", + "zod": "^4.3.6", + }, + "devDependencies": { + "@types/node": "^20", + "@types/papaparse": "^5.5.2", + "@types/pg": "^8.18.0", + "@types/react": "^18", + "@types/react-dom": "^18", + "eslint": "^8", + "eslint-config-next": "14.2.35", + "postcss": "^8", + "tailwindcss": "^3.4.1", + "tsx": "^4.21.0", + "typescript": "^5", + }, + }, + }, + "packages": { + "@alloc/quick-lru": ["@alloc/quick-lru@5.2.0", "", {}, "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw=="], + + "@auth/core": ["@auth/core@0.41.1", "", { "dependencies": { "@panva/hkdf": "^1.2.1", "jose": "^6.0.6", "oauth4webapi": "^3.3.0", "preact": "10.24.3", "preact-render-to-string": "6.5.11" }, "peerDependencies": { "@simplewebauthn/browser": "^9.0.1", "@simplewebauthn/server": "^9.0.2", "nodemailer": "^7.0.7" }, "optionalPeers": ["@simplewebauthn/browser", "@simplewebauthn/server", "nodemailer"] }, "sha512-t9cJ2zNYAdWMacGRMT6+r4xr1uybIdmYa49calBPeTqwgAFPV/88ac9TEvCR85pvATiSPt8VaNf+Gt24JIT/uw=="], + + "@auth/prisma-adapter": ["@auth/prisma-adapter@2.11.1", "", { "dependencies": { "@auth/core": "0.41.1" }, "peerDependencies": { "@prisma/client": ">=2.26.0 || >=3 || >=4 || >=5 || >=6" } }, "sha512-Ke7DXP0Fy0Mlmjz/ZJLXwQash2UkA4621xCM0rMtEczr1kppLc/njCbUkHkIQ/PnmILjqSPEKeTjDPsYruvkug=="], + + "@babel/runtime": ["@babel/runtime@7.28.6", "", {}, "sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA=="], + + "@chevrotain/cst-dts-gen": ["@chevrotain/cst-dts-gen@10.5.0", "", { "dependencies": { "@chevrotain/gast": "10.5.0", "@chevrotain/types": "10.5.0", "lodash": "4.17.21" } }, "sha512-lhmC/FyqQ2o7pGK4Om+hzuDrm9rhFYIJ/AXoQBeongmn870Xeb0L6oGEiuR8nohFNL5sMaQEJWCxr1oIVIVXrw=="], + + "@chevrotain/gast": ["@chevrotain/gast@10.5.0", "", { "dependencies": { "@chevrotain/types": "10.5.0", "lodash": "4.17.21" } }, "sha512-pXdMJ9XeDAbgOWKuD1Fldz4ieCs6+nLNmyVhe2gZVqoO7v8HXuHYs5OV2EzUtbuai37TlOAQHrTDvxMnvMJz3A=="], + + "@chevrotain/types": ["@chevrotain/types@10.5.0", "", {}, "sha512-f1MAia0x/pAVPWH/T73BJVyO2XU5tI4/iE7cnxb7tqdNTNhQI3Uq3XkqcoteTmD4t1aM0LbHCJOhgIDn07kl2A=="], + + "@chevrotain/utils": ["@chevrotain/utils@10.5.0", "", {}, "sha512-hBzuU5+JjB2cqNZyszkDHZgOSrUUT8V3dhgRl8Q9Gp6dAj/H5+KILGjbhDpc3Iy9qmqlm/akuOI2ut9VUtzJxQ=="], + + "@electric-sql/pglite": ["@electric-sql/pglite@0.3.15", "", {}, "sha512-Cj++n1Mekf9ETfdc16TlDi+cDDQF0W7EcbyRHYOAeZdsAe8M/FJg18itDTSwyHfar2WIezawM9o0EKaRGVKygQ=="], + + "@electric-sql/pglite-socket": ["@electric-sql/pglite-socket@0.0.20", "", { "peerDependencies": { "@electric-sql/pglite": "0.3.15" }, "bin": { "pglite-server": "dist/scripts/server.js" } }, "sha512-J5nLGsicnD9wJHnno9r+DGxfcZWh+YJMCe0q/aCgtG6XOm9Z7fKeite8IZSNXgZeGltSigM9U/vAWZQWdgcSFg=="], + + "@electric-sql/pglite-tools": ["@electric-sql/pglite-tools@0.2.20", "", { "peerDependencies": { "@electric-sql/pglite": "0.3.15" } }, "sha512-BK50ZnYa3IG7ztXhtgYf0Q7zijV32Iw1cYS8C+ThdQlwx12V5VZ9KRJ42y82Hyb4PkTxZQklVQA9JHyUlex33A=="], + + "@emnapi/core": ["@emnapi/core@1.8.1", "", { "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" } }, "sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg=="], + + "@emnapi/runtime": ["@emnapi/runtime@1.8.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg=="], + + "@emnapi/wasi-threads": ["@emnapi/wasi-threads@1.1.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ=="], + + "@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.27.3", "", { "os": "aix", "cpu": "ppc64" }, "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg=="], + + "@esbuild/android-arm": ["@esbuild/android-arm@0.27.3", "", { "os": "android", "cpu": "arm" }, "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA=="], + + "@esbuild/android-arm64": ["@esbuild/android-arm64@0.27.3", "", { "os": "android", "cpu": "arm64" }, "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg=="], + + "@esbuild/android-x64": ["@esbuild/android-x64@0.27.3", "", { "os": "android", "cpu": "x64" }, "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ=="], + + "@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.27.3", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg=="], + + "@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.27.3", "", { "os": "darwin", "cpu": "x64" }, "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg=="], + + "@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.27.3", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w=="], + + "@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.27.3", "", { "os": "freebsd", "cpu": "x64" }, "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA=="], + + "@esbuild/linux-arm": ["@esbuild/linux-arm@0.27.3", "", { "os": "linux", "cpu": "arm" }, "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw=="], + + "@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.27.3", "", { "os": "linux", "cpu": "arm64" }, "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg=="], + + "@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.27.3", "", { "os": "linux", "cpu": "ia32" }, "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg=="], + + "@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.27.3", "", { "os": "linux", "cpu": "none" }, "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA=="], + + "@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.27.3", "", { "os": "linux", "cpu": "none" }, "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw=="], + + "@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.27.3", "", { "os": "linux", "cpu": "ppc64" }, "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA=="], + + "@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.27.3", "", { "os": "linux", "cpu": "none" }, "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ=="], + + "@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.27.3", "", { "os": "linux", "cpu": "s390x" }, "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw=="], + + "@esbuild/linux-x64": ["@esbuild/linux-x64@0.27.3", "", { "os": "linux", "cpu": "x64" }, "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA=="], + + "@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.27.3", "", { "os": "none", "cpu": "arm64" }, "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA=="], + + "@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.27.3", "", { "os": "none", "cpu": "x64" }, "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA=="], + + "@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.27.3", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw=="], + + "@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.27.3", "", { "os": "openbsd", "cpu": "x64" }, "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ=="], + + "@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.27.3", "", { "os": "none", "cpu": "arm64" }, "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g=="], + + "@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.27.3", "", { "os": "sunos", "cpu": "x64" }, "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA=="], + + "@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.27.3", "", { "os": "win32", "cpu": "arm64" }, "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA=="], + + "@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.27.3", "", { "os": "win32", "cpu": "ia32" }, "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q=="], + + "@esbuild/win32-x64": ["@esbuild/win32-x64@0.27.3", "", { "os": "win32", "cpu": "x64" }, "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA=="], + + "@eslint-community/eslint-utils": ["@eslint-community/eslint-utils@4.9.1", "", { "dependencies": { "eslint-visitor-keys": "^3.4.3" }, "peerDependencies": { "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ=="], + + "@eslint-community/regexpp": ["@eslint-community/regexpp@4.12.2", "", {}, "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew=="], + + "@eslint/eslintrc": ["@eslint/eslintrc@2.1.4", "", { "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", "espree": "^9.6.0", "globals": "^13.19.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", "minimatch": "^3.1.2", "strip-json-comments": "^3.1.1" } }, "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ=="], + + "@eslint/js": ["@eslint/js@8.57.1", "", {}, "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q=="], + + "@hono/node-server": ["@hono/node-server@1.19.9", "", { "peerDependencies": { "hono": "^4" } }, "sha512-vHL6w3ecZsky+8P5MD+eFfaGTyCeOHUIFYMGpQGbrBTSmNNoxv0if69rEZ5giu36weC5saFuznL411gRX7bJDw=="], + + "@humanwhocodes/config-array": ["@humanwhocodes/config-array@0.13.0", "", { "dependencies": { "@humanwhocodes/object-schema": "^2.0.3", "debug": "^4.3.1", "minimatch": "^3.0.5" } }, "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw=="], + + "@humanwhocodes/module-importer": ["@humanwhocodes/module-importer@1.0.1", "", {}, "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA=="], + + "@humanwhocodes/object-schema": ["@humanwhocodes/object-schema@2.0.3", "", {}, "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA=="], + + "@isaacs/cliui": ["@isaacs/cliui@8.0.2", "", { "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", "strip-ansi": "^7.0.1", "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", "wrap-ansi": "^8.1.0", "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" } }, "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA=="], + + "@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.13", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="], + + "@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="], + + "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="], + + "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.31", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="], + + "@mrleebo/prisma-ast": ["@mrleebo/prisma-ast@0.13.1", "", { "dependencies": { "chevrotain": "^10.5.0", "lilconfig": "^2.1.0" } }, "sha512-XyroGQXcHrZdvmrGJvsA9KNeOOgGMg1Vg9OlheUsBOSKznLMDl+YChxbkboRHvtFYJEMRYmlV3uoo/njCw05iw=="], + + "@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@0.2.12", "", { "dependencies": { "@emnapi/core": "^1.4.3", "@emnapi/runtime": "^1.4.3", "@tybys/wasm-util": "^0.10.0" } }, "sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ=="], + + "@next/env": ["@next/env@14.2.35", "", {}, "sha512-DuhvCtj4t9Gwrx80dmz2F4t/zKQ4ktN8WrMwOuVzkJfBilwAwGr6v16M5eI8yCuZ63H9TTuEU09Iu2HqkzFPVQ=="], + + "@next/eslint-plugin-next": ["@next/eslint-plugin-next@14.2.35", "", { "dependencies": { "glob": "10.3.10" } }, "sha512-Jw9A3ICz2183qSsqwi7fgq4SBPiNfmOLmTPXKvlnzstUwyvBrtySiY+8RXJweNAs9KThb1+bYhZh9XWcNOr2zQ=="], + + "@next/swc-darwin-arm64": ["@next/swc-darwin-arm64@14.2.33", "", { "os": "darwin", "cpu": "arm64" }, "sha512-HqYnb6pxlsshoSTubdXKu15g3iivcbsMXg4bYpjL2iS/V6aQot+iyF4BUc2qA/J/n55YtvE4PHMKWBKGCF/+wA=="], + + "@next/swc-darwin-x64": ["@next/swc-darwin-x64@14.2.33", "", { "os": "darwin", "cpu": "x64" }, "sha512-8HGBeAE5rX3jzKvF593XTTFg3gxeU4f+UWnswa6JPhzaR6+zblO5+fjltJWIZc4aUalqTclvN2QtTC37LxvZAA=="], + + "@next/swc-linux-arm64-gnu": ["@next/swc-linux-arm64-gnu@14.2.33", "", { "os": "linux", "cpu": "arm64" }, "sha512-JXMBka6lNNmqbkvcTtaX8Gu5by9547bukHQvPoLe9VRBx1gHwzf5tdt4AaezW85HAB3pikcvyqBToRTDA4DeLw=="], + + "@next/swc-linux-arm64-musl": ["@next/swc-linux-arm64-musl@14.2.33", "", { "os": "linux", "cpu": "arm64" }, "sha512-Bm+QulsAItD/x6Ih8wGIMfRJy4G73tu1HJsrccPW6AfqdZd0Sfm5Imhgkgq2+kly065rYMnCOxTBvmvFY1BKfg=="], + + "@next/swc-linux-x64-gnu": ["@next/swc-linux-x64-gnu@14.2.33", "", { "os": "linux", "cpu": "x64" }, "sha512-FnFn+ZBgsVMbGDsTqo8zsnRzydvsGV8vfiWwUo1LD8FTmPTdV+otGSWKc4LJec0oSexFnCYVO4hX8P8qQKaSlg=="], + + "@next/swc-linux-x64-musl": ["@next/swc-linux-x64-musl@14.2.33", "", { "os": "linux", "cpu": "x64" }, "sha512-345tsIWMzoXaQndUTDv1qypDRiebFxGYx9pYkhwY4hBRaOLt8UGfiWKr9FSSHs25dFIf8ZqIFaPdy5MljdoawA=="], + + "@next/swc-win32-arm64-msvc": ["@next/swc-win32-arm64-msvc@14.2.33", "", { "os": "win32", "cpu": "arm64" }, "sha512-nscpt0G6UCTkrT2ppnJnFsYbPDQwmum4GNXYTeoTIdsmMydSKFz9Iny2jpaRupTb+Wl298+Rh82WKzt9LCcqSQ=="], + + "@next/swc-win32-ia32-msvc": ["@next/swc-win32-ia32-msvc@14.2.33", "", { "os": "win32", "cpu": "ia32" }, "sha512-pc9LpGNKhJ0dXQhZ5QMmYxtARwwmWLpeocFmVG5Z0DzWq5Uf0izcI8tLc+qOpqxO1PWqZ5A7J1blrUIKrIFc7Q=="], + + "@next/swc-win32-x64-msvc": ["@next/swc-win32-x64-msvc@14.2.33", "", { "os": "win32", "cpu": "x64" }, "sha512-nOjfZMy8B94MdisuzZo9/57xuFVLHJaDj5e/xrduJp9CV2/HrfxTRH2fbyLe+K9QT41WBLUd4iXX3R7jBp0EUg=="], + + "@nodelib/fs.scandir": ["@nodelib/fs.scandir@2.1.5", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="], + + "@nodelib/fs.stat": ["@nodelib/fs.stat@2.0.5", "", {}, "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="], + + "@nodelib/fs.walk": ["@nodelib/fs.walk@1.2.8", "", { "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" } }, "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg=="], + + "@nolyfill/is-core-module": ["@nolyfill/is-core-module@1.0.39", "", {}, "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA=="], + + "@panva/hkdf": ["@panva/hkdf@1.2.1", "", {}, "sha512-6oclG6Y3PiDFcoyk8srjLfVKyMfVCKJ27JwNPViuXziFpmdz+MZnZN/aKY0JGXgYuO/VghU0jcOAZgWXZ1Dmrw=="], + + "@pkgjs/parseargs": ["@pkgjs/parseargs@0.11.0", "", {}, "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg=="], + + "@prisma/adapter-pg": ["@prisma/adapter-pg@7.4.2", "", { "dependencies": { "@prisma/driver-adapter-utils": "7.4.2", "pg": "^8.16.3", "postgres-array": "3.0.4" } }, "sha512-oUo2Zhe9Tf6YwVL8kLPuOLTK1Z2pwi/Ua77t2PuGyBan2w7shRKqHvYK+3XXmRH9RWhPJ4SMtHZKpNo6Ax/4bQ=="], + + "@prisma/client": ["@prisma/client@7.4.2", "", { "dependencies": { "@prisma/client-runtime-utils": "7.4.2" }, "peerDependencies": { "prisma": "*", "typescript": ">=5.4.0" } }, "sha512-ts2mu+cQHriAhSxngO3StcYubBGTWDtu/4juZhXCUKOwgh26l+s4KD3vT2kMUzFyrYnll9u/3qWrtzRv9CGWzA=="], + + "@prisma/client-runtime-utils": ["@prisma/client-runtime-utils@7.4.2", "", {}, "sha512-cID+rzOEb38VyMsx5LwJMEY4NGIrWCNpKu/0ImbeooQ2Px7TI+kOt7cm0NelxUzF2V41UVVXAmYjANZQtCu1/Q=="], + + "@prisma/config": ["@prisma/config@7.4.2", "", { "dependencies": { "c12": "3.1.0", "deepmerge-ts": "7.1.5", "effect": "3.18.4", "empathic": "2.0.0" } }, "sha512-CftBjWxav99lzY1Z4oDgomdb1gh9BJFAOmWF6P2v1xRfXqQb56DfBub+QKcERRdNoAzCb3HXy3Zii8Vb4AsXhg=="], + + "@prisma/debug": ["@prisma/debug@7.4.2", "", {}, "sha512-aP7qzu+g/JnbF6U69LMwHoUkELiserKmWsE2shYuEpNUJ4GrtxBCvZwCyCBHFSH2kLTF2l1goBlBh4wuvRq62w=="], + + "@prisma/dev": ["@prisma/dev@0.20.0", "", { "dependencies": { "@electric-sql/pglite": "0.3.15", "@electric-sql/pglite-socket": "0.0.20", "@electric-sql/pglite-tools": "0.2.20", "@hono/node-server": "1.19.9", "@mrleebo/prisma-ast": "0.13.1", "@prisma/get-platform": "7.2.0", "@prisma/query-plan-executor": "7.2.0", "foreground-child": "3.3.1", "get-port-please": "3.2.0", "hono": "4.11.4", "http-status-codes": "2.3.0", "pathe": "2.0.3", "proper-lockfile": "4.1.2", "remeda": "2.33.4", "std-env": "3.10.0", "valibot": "1.2.0", "zeptomatch": "2.1.0" } }, "sha512-ovlBYwWor0OzG+yH4J3Ot+AneD818BttLA+Ii7wjbcLHUrnC4tbUPVGyNd3c/+71KETPKZfjhkTSpdS15dmXNQ=="], + + "@prisma/driver-adapter-utils": ["@prisma/driver-adapter-utils@7.4.2", "", { "dependencies": { "@prisma/debug": "7.4.2" } }, "sha512-REdjFpT/ye9KdDs+CXAXPIbMQkVLhne9G5Pe97sNY4Ovx4r2DAbWM9hOFvvB1Oq8H8bOCdu0Ri3AoGALquQqVw=="], + + "@prisma/engines": ["@prisma/engines@7.4.2", "", { "dependencies": { "@prisma/debug": "7.4.2", "@prisma/engines-version": "7.5.0-10.94a226be1cf2967af2541cca5529f0f7ba866919", "@prisma/fetch-engine": "7.4.2", "@prisma/get-platform": "7.4.2" } }, "sha512-B+ZZhI4rXlzjVqRw/93AothEKOU5/x4oVyJFGo9RpHPnBwaPwk4Pi0Q4iGXipKxeXPs/dqljgNBjK0m8nocOJA=="], + + "@prisma/engines-version": ["@prisma/engines-version@7.5.0-10.94a226be1cf2967af2541cca5529f0f7ba866919", "", {}, "sha512-5FIKY3KoYQlBuZC2yc16EXfVRQ8HY+fLqgxkYfWCtKhRb3ajCRzP/rPeoSx11+NueJDANdh4hjY36mdmrTcGSg=="], + + "@prisma/fetch-engine": ["@prisma/fetch-engine@7.4.2", "", { "dependencies": { "@prisma/debug": "7.4.2", "@prisma/engines-version": "7.5.0-10.94a226be1cf2967af2541cca5529f0f7ba866919", "@prisma/get-platform": "7.4.2" } }, "sha512-f/c/MwYpdJO7taLETU8rahEstLeXfYgQGlz5fycG7Fbmva3iPdzGmjiSWHeSWIgNnlXnelUdCJqyZnFocurZuA=="], + + "@prisma/get-platform": ["@prisma/get-platform@7.2.0", "", { "dependencies": { "@prisma/debug": "7.2.0" } }, "sha512-k1V0l0Td1732EHpAfi2eySTezyllok9dXb6UQanajkJQzPUGi3vO2z7jdkz67SypFTdmbnyGYxvEvYZdZsMAVA=="], + + "@prisma/query-plan-executor": ["@prisma/query-plan-executor@7.2.0", "", {}, "sha512-EOZmNzcV8uJ0mae3DhTsiHgoNCuu1J9mULQpGCh62zN3PxPTd+qI9tJvk5jOst8WHKQNwJWR3b39t0XvfBB0WQ=="], + + "@prisma/studio-core": ["@prisma/studio-core@0.13.1", "", { "peerDependencies": { "@types/react": "^18.0.0 || ^19.0.0", "react": "^18.0.0 || ^19.0.0", "react-dom": "^18.0.0 || ^19.0.0" } }, "sha512-agdqaPEePRHcQ7CexEfkX1RvSH9uWDb6pXrZnhCRykhDFAV0/0P3d07WtfiY8hZWb7oRU4v+NkT4cGFHkQJIPg=="], + + "@rtsao/scc": ["@rtsao/scc@1.1.0", "", {}, "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g=="], + + "@rushstack/eslint-patch": ["@rushstack/eslint-patch@1.16.1", "", {}, "sha512-TvZbIpeKqGQQ7X0zSCvPH9riMSFQFSggnfBjFZ1mEoILW+UuXCKwOoPcgjMwiUtRqFZ8jWhPJc4um14vC6I4ag=="], + + "@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="], + + "@swc/counter": ["@swc/counter@0.1.3", "", {}, "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ=="], + + "@swc/helpers": ["@swc/helpers@0.5.5", "", { "dependencies": { "@swc/counter": "^0.1.3", "tslib": "^2.4.0" } }, "sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A=="], + + "@tybys/wasm-util": ["@tybys/wasm-util@0.10.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg=="], + + "@types/bcryptjs": ["@types/bcryptjs@2.4.6", "", {}, "sha512-9xlo6R2qDs5uixm0bcIqCeMCE6HiQsIyel9KQySStiyqNl2tnj2mP3DX1Nf56MD6KMenNNlBBsy3LJ7gUEQPXQ=="], + + "@types/json5": ["@types/json5@0.0.29", "", {}, "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ=="], + + "@types/node": ["@types/node@20.19.35", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-Uarfe6J91b9HAUXxjvSOdiO2UPOKLm07Q1oh0JHxoZ1y8HoqxDAu3gVrsrOHeiio0kSsoVBt4wFrKOm0dKxVPQ=="], + + "@types/papaparse": ["@types/papaparse@5.5.2", "", { "dependencies": { "@types/node": "*" } }, "sha512-gFnFp/JMzLHCwRf7tQHrNnfhN4eYBVYYI897CGX4MY1tzY9l2aLkVyx2IlKZ/SAqDbB3I1AOZW5gTMGGsqWliA=="], + + "@types/pg": ["@types/pg@8.18.0", "", { "dependencies": { "@types/node": "*", "pg-protocol": "*", "pg-types": "^2.2.0" } }, "sha512-gT+oueVQkqnj6ajGJXblFR4iavIXWsGAFCk3dP4Kki5+a9R4NMt0JARdk6s8cUKcfUoqP5dAtDSLU8xYUTFV+Q=="], + + "@types/prop-types": ["@types/prop-types@15.7.15", "", {}, "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw=="], + + "@types/qrcode": ["@types/qrcode@1.5.6", "", { "dependencies": { "@types/node": "*" } }, "sha512-te7NQcV2BOvdj2b1hCAHzAoMNuj65kNBMz0KBaxM6c3VGBOhU0dURQKOtH8CFNI/dsKkwlv32p26qYQTWoB5bw=="], + + "@types/react": ["@types/react@18.3.28", "", { "dependencies": { "@types/prop-types": "*", "csstype": "^3.2.2" } }, "sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw=="], + + "@types/react-dom": ["@types/react-dom@18.3.7", "", { "peerDependencies": { "@types/react": "^18.0.0" } }, "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ=="], + + "@typescript-eslint/eslint-plugin": ["@typescript-eslint/eslint-plugin@8.56.1", "", { "dependencies": { "@eslint-community/regexpp": "^4.12.2", "@typescript-eslint/scope-manager": "8.56.1", "@typescript-eslint/type-utils": "8.56.1", "@typescript-eslint/utils": "8.56.1", "@typescript-eslint/visitor-keys": "8.56.1", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.4.0" }, "peerDependencies": { "@typescript-eslint/parser": "^8.56.1", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-Jz9ZztpB37dNC+HU2HI28Bs9QXpzCz+y/twHOwhyrIRdbuVDxSytJNDl6z/aAKlaRIwC7y8wJdkBv7FxYGgi0A=="], + + "@typescript-eslint/parser": ["@typescript-eslint/parser@8.56.1", "", { "dependencies": { "@typescript-eslint/scope-manager": "8.56.1", "@typescript-eslint/types": "8.56.1", "@typescript-eslint/typescript-estree": "8.56.1", "@typescript-eslint/visitor-keys": "8.56.1", "debug": "^4.4.3" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-klQbnPAAiGYFyI02+znpBRLyjL4/BrBd0nyWkdC0s/6xFLkXYQ8OoRrSkqacS1ddVxf/LDyODIKbQ5TgKAf/Fg=="], + + "@typescript-eslint/project-service": ["@typescript-eslint/project-service@8.56.1", "", { "dependencies": { "@typescript-eslint/tsconfig-utils": "^8.56.1", "@typescript-eslint/types": "^8.56.1", "debug": "^4.4.3" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-TAdqQTzHNNvlVFfR+hu2PDJrURiwKsUvxFn1M0h95BB8ah5jejas08jUWG4dBA68jDMI988IvtfdAI53JzEHOQ=="], + + "@typescript-eslint/scope-manager": ["@typescript-eslint/scope-manager@8.56.1", "", { "dependencies": { "@typescript-eslint/types": "8.56.1", "@typescript-eslint/visitor-keys": "8.56.1" } }, "sha512-YAi4VDKcIZp0O4tz/haYKhmIDZFEUPOreKbfdAN3SzUDMcPhJ8QI99xQXqX+HoUVq8cs85eRKnD+rne2UAnj2w=="], + + "@typescript-eslint/tsconfig-utils": ["@typescript-eslint/tsconfig-utils@8.56.1", "", { "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-qOtCYzKEeyr3aR9f28mPJqBty7+DBqsdd63eO0yyDwc6vgThj2UjWfJIcsFeSucYydqcuudMOprZ+x1SpF3ZuQ=="], + + "@typescript-eslint/type-utils": ["@typescript-eslint/type-utils@8.56.1", "", { "dependencies": { "@typescript-eslint/types": "8.56.1", "@typescript-eslint/typescript-estree": "8.56.1", "@typescript-eslint/utils": "8.56.1", "debug": "^4.4.3", "ts-api-utils": "^2.4.0" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-yB/7dxi7MgTtGhZdaHCemf7PuwrHMenHjmzgUW1aJpO+bBU43OycnM3Wn+DdvDO/8zzA9HlhaJ0AUGuvri4oGg=="], + + "@typescript-eslint/types": ["@typescript-eslint/types@8.56.1", "", {}, "sha512-dbMkdIUkIkchgGDIv7KLUpa0Mda4IYjo4IAMJUZ+3xNoUXxMsk9YtKpTHSChRS85o+H9ftm51gsK1dZReY9CVw=="], + + "@typescript-eslint/typescript-estree": ["@typescript-eslint/typescript-estree@8.56.1", "", { "dependencies": { "@typescript-eslint/project-service": "8.56.1", "@typescript-eslint/tsconfig-utils": "8.56.1", "@typescript-eslint/types": "8.56.1", "@typescript-eslint/visitor-keys": "8.56.1", "debug": "^4.4.3", "minimatch": "^10.2.2", "semver": "^7.7.3", "tinyglobby": "^0.2.15", "ts-api-utils": "^2.4.0" }, "peerDependencies": { "typescript": ">=4.8.4 <6.0.0" } }, "sha512-qzUL1qgalIvKWAf9C1HpvBjif+Vm6rcT5wZd4VoMb9+Km3iS3Cv9DY6dMRMDtPnwRAFyAi7YXJpTIEXLvdfPxg=="], + + "@typescript-eslint/utils": ["@typescript-eslint/utils@8.56.1", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", "@typescript-eslint/scope-manager": "8.56.1", "@typescript-eslint/types": "8.56.1", "@typescript-eslint/typescript-estree": "8.56.1" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "sha512-HPAVNIME3tABJ61siYlHzSWCGtOoeP2RTIaHXFMPqjrQKCGB9OgUVdiNgH7TJS2JNIQ5qQ4RsAUDuGaGme/KOA=="], + + "@typescript-eslint/visitor-keys": ["@typescript-eslint/visitor-keys@8.56.1", "", { "dependencies": { "@typescript-eslint/types": "8.56.1", "eslint-visitor-keys": "^5.0.0" } }, "sha512-KiROIzYdEV85YygXw6BI/Dx4fnBlFQu6Mq4QE4MOH9fFnhohw6wX/OAvDY2/C+ut0I3RSPKenvZJIVYqJNkhEw=="], + + "@ungap/structured-clone": ["@ungap/structured-clone@1.3.0", "", {}, "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g=="], + + "@unrs/resolver-binding-android-arm-eabi": ["@unrs/resolver-binding-android-arm-eabi@1.11.1", "", { "os": "android", "cpu": "arm" }, "sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw=="], + + "@unrs/resolver-binding-android-arm64": ["@unrs/resolver-binding-android-arm64@1.11.1", "", { "os": "android", "cpu": "arm64" }, "sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g=="], + + "@unrs/resolver-binding-darwin-arm64": ["@unrs/resolver-binding-darwin-arm64@1.11.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g=="], + + "@unrs/resolver-binding-darwin-x64": ["@unrs/resolver-binding-darwin-x64@1.11.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ=="], + + "@unrs/resolver-binding-freebsd-x64": ["@unrs/resolver-binding-freebsd-x64@1.11.1", "", { "os": "freebsd", "cpu": "x64" }, "sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw=="], + + "@unrs/resolver-binding-linux-arm-gnueabihf": ["@unrs/resolver-binding-linux-arm-gnueabihf@1.11.1", "", { "os": "linux", "cpu": "arm" }, "sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw=="], + + "@unrs/resolver-binding-linux-arm-musleabihf": ["@unrs/resolver-binding-linux-arm-musleabihf@1.11.1", "", { "os": "linux", "cpu": "arm" }, "sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw=="], + + "@unrs/resolver-binding-linux-arm64-gnu": ["@unrs/resolver-binding-linux-arm64-gnu@1.11.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ=="], + + "@unrs/resolver-binding-linux-arm64-musl": ["@unrs/resolver-binding-linux-arm64-musl@1.11.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w=="], + + "@unrs/resolver-binding-linux-ppc64-gnu": ["@unrs/resolver-binding-linux-ppc64-gnu@1.11.1", "", { "os": "linux", "cpu": "ppc64" }, "sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA=="], + + "@unrs/resolver-binding-linux-riscv64-gnu": ["@unrs/resolver-binding-linux-riscv64-gnu@1.11.1", "", { "os": "linux", "cpu": "none" }, "sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ=="], + + "@unrs/resolver-binding-linux-riscv64-musl": ["@unrs/resolver-binding-linux-riscv64-musl@1.11.1", "", { "os": "linux", "cpu": "none" }, "sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew=="], + + "@unrs/resolver-binding-linux-s390x-gnu": ["@unrs/resolver-binding-linux-s390x-gnu@1.11.1", "", { "os": "linux", "cpu": "s390x" }, "sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg=="], + + "@unrs/resolver-binding-linux-x64-gnu": ["@unrs/resolver-binding-linux-x64-gnu@1.11.1", "", { "os": "linux", "cpu": "x64" }, "sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w=="], + + "@unrs/resolver-binding-linux-x64-musl": ["@unrs/resolver-binding-linux-x64-musl@1.11.1", "", { "os": "linux", "cpu": "x64" }, "sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA=="], + + "@unrs/resolver-binding-wasm32-wasi": ["@unrs/resolver-binding-wasm32-wasi@1.11.1", "", { "dependencies": { "@napi-rs/wasm-runtime": "^0.2.11" }, "cpu": "none" }, "sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ=="], + + "@unrs/resolver-binding-win32-arm64-msvc": ["@unrs/resolver-binding-win32-arm64-msvc@1.11.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw=="], + + "@unrs/resolver-binding-win32-ia32-msvc": ["@unrs/resolver-binding-win32-ia32-msvc@1.11.1", "", { "os": "win32", "cpu": "ia32" }, "sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ=="], + + "@unrs/resolver-binding-win32-x64-msvc": ["@unrs/resolver-binding-win32-x64-msvc@1.11.1", "", { "os": "win32", "cpu": "x64" }, "sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g=="], + + "acorn": ["acorn@8.16.0", "", { "bin": "bin/acorn" }, "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw=="], + + "acorn-jsx": ["acorn-jsx@5.3.2", "", { "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ=="], + + "ajv": ["ajv@6.14.0", "", { "dependencies": { "fast-deep-equal": "^3.1.1", "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" } }, "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw=="], + + "ansi-regex": ["ansi-regex@5.0.1", "", {}, "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="], + + "ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="], + + "any-promise": ["any-promise@1.3.0", "", {}, "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A=="], + + "anymatch": ["anymatch@3.1.3", "", { "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" } }, "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw=="], + + "arg": ["arg@5.0.2", "", {}, "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg=="], + + "argparse": ["argparse@2.0.1", "", {}, "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="], + + "aria-query": ["aria-query@5.3.2", "", {}, "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw=="], + + "array-buffer-byte-length": ["array-buffer-byte-length@1.0.2", "", { "dependencies": { "call-bound": "^1.0.3", "is-array-buffer": "^3.0.5" } }, "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw=="], + + "array-includes": ["array-includes@3.1.9", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.4", "define-properties": "^1.2.1", "es-abstract": "^1.24.0", "es-object-atoms": "^1.1.1", "get-intrinsic": "^1.3.0", "is-string": "^1.1.1", "math-intrinsics": "^1.1.0" } }, "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ=="], + + "array.prototype.findlast": ["array.prototype.findlast@1.2.5", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-abstract": "^1.23.2", "es-errors": "^1.3.0", "es-object-atoms": "^1.0.0", "es-shim-unscopables": "^1.0.2" } }, "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ=="], + + "array.prototype.findlastindex": ["array.prototype.findlastindex@1.2.6", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.4", "define-properties": "^1.2.1", "es-abstract": "^1.23.9", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "es-shim-unscopables": "^1.1.0" } }, "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ=="], + + "array.prototype.flat": ["array.prototype.flat@1.3.3", "", { "dependencies": { "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-abstract": "^1.23.5", "es-shim-unscopables": "^1.0.2" } }, "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg=="], + + "array.prototype.flatmap": ["array.prototype.flatmap@1.3.3", "", { "dependencies": { "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-abstract": "^1.23.5", "es-shim-unscopables": "^1.0.2" } }, "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg=="], + + "array.prototype.tosorted": ["array.prototype.tosorted@1.1.4", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-abstract": "^1.23.3", "es-errors": "^1.3.0", "es-shim-unscopables": "^1.0.2" } }, "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA=="], + + "arraybuffer.prototype.slice": ["arraybuffer.prototype.slice@1.0.4", "", { "dependencies": { "array-buffer-byte-length": "^1.0.1", "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-abstract": "^1.23.5", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6", "is-array-buffer": "^3.0.4" } }, "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ=="], + + "ast-types-flow": ["ast-types-flow@0.0.8", "", {}, "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ=="], + + "async-function": ["async-function@1.0.0", "", {}, "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA=="], + + "available-typed-arrays": ["available-typed-arrays@1.0.7", "", { "dependencies": { "possible-typed-array-names": "^1.0.0" } }, "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ=="], + + "aws-ssl-profiles": ["aws-ssl-profiles@1.1.2", "", {}, "sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g=="], + + "axe-core": ["axe-core@4.11.1", "", {}, "sha512-BASOg+YwO2C+346x3LZOeoovTIoTrRqEsqMa6fmfAV0P+U9mFr9NsyOEpiYvFjbc64NMrSswhV50WdXzdb/Z5A=="], + + "axobject-query": ["axobject-query@4.1.0", "", {}, "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ=="], + + "balanced-match": ["balanced-match@1.0.2", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="], + + "bcryptjs": ["bcryptjs@3.0.3", "", { "bin": { "bcrypt": "bin/bcrypt" } }, "sha512-GlF5wPWnSa/X5LKM1o0wz0suXIINz1iHRLvTS+sLyi7XPbe5ycmYI3DlZqVGZZtDgl4DmasFg7gOB3JYbphV5g=="], + + "binary-extensions": ["binary-extensions@2.3.0", "", {}, "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw=="], + + "brace-expansion": ["brace-expansion@1.1.12", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg=="], + + "braces": ["braces@3.0.3", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="], + + "busboy": ["busboy@1.6.0", "", { "dependencies": { "streamsearch": "^1.1.0" } }, "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA=="], + + "c12": ["c12@3.1.0", "", { "dependencies": { "chokidar": "^4.0.3", "confbox": "^0.2.2", "defu": "^6.1.4", "dotenv": "^16.6.1", "exsolve": "^1.0.7", "giget": "^2.0.0", "jiti": "^2.4.2", "ohash": "^2.0.11", "pathe": "^2.0.3", "perfect-debounce": "^1.0.0", "pkg-types": "^2.2.0", "rc9": "^2.1.2" }, "peerDependencies": { "magicast": "^0.3.5" }, "optionalPeers": ["magicast"] }, "sha512-uWoS8OU1MEIsOv8p/5a82c3H31LsWVR5qiyXVfBNOzfffjUWtPnhAb4BYI2uG2HfGmZmFjCtui5XNWaps+iFuw=="], + + "call-bind": ["call-bind@1.0.8", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.0", "es-define-property": "^1.0.0", "get-intrinsic": "^1.2.4", "set-function-length": "^1.2.2" } }, "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww=="], + + "call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="], + + "call-bound": ["call-bound@1.0.4", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" } }, "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg=="], + + "callsites": ["callsites@3.1.0", "", {}, "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ=="], + + "camelcase": ["camelcase@5.3.1", "", {}, "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="], + + "camelcase-css": ["camelcase-css@2.0.1", "", {}, "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA=="], + + "caniuse-lite": ["caniuse-lite@1.0.30001774", "", {}, "sha512-DDdwPGz99nmIEv216hKSgLD+D4ikHQHjBC/seF98N9CPqRX4M5mSxT9eTV6oyisnJcuzxtZy4n17yKKQYmYQOA=="], + + "chalk": ["chalk@4.1.2", "", { "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } }, "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA=="], + + "chevrotain": ["chevrotain@10.5.0", "", { "dependencies": { "@chevrotain/cst-dts-gen": "10.5.0", "@chevrotain/gast": "10.5.0", "@chevrotain/types": "10.5.0", "@chevrotain/utils": "10.5.0", "lodash": "4.17.21", "regexp-to-ast": "0.5.0" } }, "sha512-Pkv5rBY3+CsHOYfV5g/Vs5JY9WTHHDEKOlohI2XeygaZhUeqhAlldZ8Hz9cRmxu709bvS08YzxHdTPHhffc13A=="], + + "chokidar": ["chokidar@3.6.0", "", { "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" }, "optionalDependencies": { "fsevents": "~2.3.2" } }, "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw=="], + + "citty": ["citty@0.1.6", "", { "dependencies": { "consola": "^3.2.3" } }, "sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ=="], + + "class-variance-authority": ["class-variance-authority@0.7.1", "", { "dependencies": { "clsx": "^2.1.1" } }, "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg=="], + + "client-only": ["client-only@0.0.1", "", {}, "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA=="], + + "cliui": ["cliui@6.0.0", "", { "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", "wrap-ansi": "^6.2.0" } }, "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ=="], + + "clsx": ["clsx@2.1.1", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="], + + "color-convert": ["color-convert@2.0.1", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="], + + "color-name": ["color-name@1.1.4", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="], + + "commander": ["commander@4.1.1", "", {}, "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA=="], + + "concat-map": ["concat-map@0.0.1", "", {}, "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="], + + "confbox": ["confbox@0.2.4", "", {}, "sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ=="], + + "consola": ["consola@3.4.2", "", {}, "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA=="], + + "cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="], + + "cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="], + + "cssesc": ["cssesc@3.0.0", "", { "bin": "bin/cssesc" }, "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg=="], + + "csstype": ["csstype@3.2.3", "", {}, "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ=="], + + "damerau-levenshtein": ["damerau-levenshtein@1.0.8", "", {}, "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA=="], + + "data-view-buffer": ["data-view-buffer@1.0.2", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-data-view": "^1.0.2" } }, "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ=="], + + "data-view-byte-length": ["data-view-byte-length@1.0.2", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-data-view": "^1.0.2" } }, "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ=="], + + "data-view-byte-offset": ["data-view-byte-offset@1.0.1", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-data-view": "^1.0.1" } }, "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ=="], + + "date-fns": ["date-fns@4.1.0", "", {}, "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg=="], + + "debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="], + + "decamelize": ["decamelize@1.2.0", "", {}, "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA=="], + + "deep-is": ["deep-is@0.1.4", "", {}, "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ=="], + + "deepmerge-ts": ["deepmerge-ts@7.1.5", "", {}, "sha512-HOJkrhaYsweh+W+e74Yn7YStZOilkoPb6fycpwNLKzSPtruFs48nYis0zy5yJz1+ktUhHxoRDJ27RQAWLIJVJw=="], + + "define-data-property": ["define-data-property@1.1.4", "", { "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", "gopd": "^1.0.1" } }, "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A=="], + + "define-properties": ["define-properties@1.2.1", "", { "dependencies": { "define-data-property": "^1.0.1", "has-property-descriptors": "^1.0.0", "object-keys": "^1.1.1" } }, "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg=="], + + "defu": ["defu@6.1.4", "", {}, "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg=="], + + "denque": ["denque@2.1.0", "", {}, "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw=="], + + "destr": ["destr@2.0.5", "", {}, "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA=="], + + "didyoumean": ["didyoumean@1.2.2", "", {}, "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw=="], + + "dijkstrajs": ["dijkstrajs@1.0.3", "", {}, "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA=="], + + "dlv": ["dlv@1.1.3", "", {}, "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA=="], + + "doctrine": ["doctrine@3.0.0", "", { "dependencies": { "esutils": "^2.0.2" } }, "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w=="], + + "dotenv": ["dotenv@16.6.1", "", {}, "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow=="], + + "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="], + + "eastasianwidth": ["eastasianwidth@0.2.0", "", {}, "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="], + + "effect": ["effect@3.18.4", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "fast-check": "^3.23.1" } }, "sha512-b1LXQJLe9D11wfnOKAk3PKxuqYshQ0Heez+y5pnkd3jLj1yx9QhM72zZ9uUrOQyNvrs2GZZd/3maL0ZV18YuDA=="], + + "emoji-regex": ["emoji-regex@9.2.2", "", {}, "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg=="], + + "empathic": ["empathic@2.0.0", "", {}, "sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA=="], + + "es-abstract": ["es-abstract@1.24.1", "", { "dependencies": { "array-buffer-byte-length": "^1.0.2", "arraybuffer.prototype.slice": "^1.0.4", "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.8", "call-bound": "^1.0.4", "data-view-buffer": "^1.0.2", "data-view-byte-length": "^1.0.2", "data-view-byte-offset": "^1.0.1", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "es-set-tostringtag": "^2.1.0", "es-to-primitive": "^1.3.0", "function.prototype.name": "^1.1.8", "get-intrinsic": "^1.3.0", "get-proto": "^1.0.1", "get-symbol-description": "^1.1.0", "globalthis": "^1.0.4", "gopd": "^1.2.0", "has-property-descriptors": "^1.0.2", "has-proto": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "internal-slot": "^1.1.0", "is-array-buffer": "^3.0.5", "is-callable": "^1.2.7", "is-data-view": "^1.0.2", "is-negative-zero": "^2.0.3", "is-regex": "^1.2.1", "is-set": "^2.0.3", "is-shared-array-buffer": "^1.0.4", "is-string": "^1.1.1", "is-typed-array": "^1.1.15", "is-weakref": "^1.1.1", "math-intrinsics": "^1.1.0", "object-inspect": "^1.13.4", "object-keys": "^1.1.1", "object.assign": "^4.1.7", "own-keys": "^1.0.1", "regexp.prototype.flags": "^1.5.4", "safe-array-concat": "^1.1.3", "safe-push-apply": "^1.0.0", "safe-regex-test": "^1.1.0", "set-proto": "^1.0.0", "stop-iteration-iterator": "^1.1.0", "string.prototype.trim": "^1.2.10", "string.prototype.trimend": "^1.0.9", "string.prototype.trimstart": "^1.0.8", "typed-array-buffer": "^1.0.3", "typed-array-byte-length": "^1.0.3", "typed-array-byte-offset": "^1.0.4", "typed-array-length": "^1.0.7", "unbox-primitive": "^1.1.0", "which-typed-array": "^1.1.19" } }, "sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw=="], + + "es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="], + + "es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="], + + "es-iterator-helpers": ["es-iterator-helpers@1.2.2", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.4", "define-properties": "^1.2.1", "es-abstract": "^1.24.1", "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", "safe-array-concat": "^1.1.3" } }, "sha512-BrUQ0cPTB/IwXj23HtwHjS9n7O4h9FX94b4xc5zlTHxeLgTAdzYUDyy6KdExAl9lbN5rtfe44xpjpmj9grxs5w=="], + + "es-object-atoms": ["es-object-atoms@1.1.1", "", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA=="], + + "es-set-tostringtag": ["es-set-tostringtag@2.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" } }, "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA=="], + + "es-shim-unscopables": ["es-shim-unscopables@1.1.0", "", { "dependencies": { "hasown": "^2.0.2" } }, "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw=="], + + "es-to-primitive": ["es-to-primitive@1.3.0", "", { "dependencies": { "is-callable": "^1.2.7", "is-date-object": "^1.0.5", "is-symbol": "^1.0.4" } }, "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g=="], + + "esbuild": ["esbuild@0.27.3", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.27.3", "@esbuild/android-arm": "0.27.3", "@esbuild/android-arm64": "0.27.3", "@esbuild/android-x64": "0.27.3", "@esbuild/darwin-arm64": "0.27.3", "@esbuild/darwin-x64": "0.27.3", "@esbuild/freebsd-arm64": "0.27.3", "@esbuild/freebsd-x64": "0.27.3", "@esbuild/linux-arm": "0.27.3", "@esbuild/linux-arm64": "0.27.3", "@esbuild/linux-ia32": "0.27.3", "@esbuild/linux-loong64": "0.27.3", "@esbuild/linux-mips64el": "0.27.3", "@esbuild/linux-ppc64": "0.27.3", "@esbuild/linux-riscv64": "0.27.3", "@esbuild/linux-s390x": "0.27.3", "@esbuild/linux-x64": "0.27.3", "@esbuild/netbsd-arm64": "0.27.3", "@esbuild/netbsd-x64": "0.27.3", "@esbuild/openbsd-arm64": "0.27.3", "@esbuild/openbsd-x64": "0.27.3", "@esbuild/openharmony-arm64": "0.27.3", "@esbuild/sunos-x64": "0.27.3", "@esbuild/win32-arm64": "0.27.3", "@esbuild/win32-ia32": "0.27.3", "@esbuild/win32-x64": "0.27.3" }, "bin": "bin/esbuild" }, "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg=="], + + "escape-string-regexp": ["escape-string-regexp@4.0.0", "", {}, "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="], + + "eslint": ["eslint@8.57.1", "", { "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.4", "@eslint/js": "8.57.1", "@humanwhocodes/config-array": "^0.13.0", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", "@ungap/structured-clone": "^1.2.0", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", "eslint-scope": "^7.2.2", "eslint-visitor-keys": "^3.4.3", "espree": "^9.6.1", "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", "find-up": "^5.0.0", "glob-parent": "^6.0.2", "globals": "^13.19.0", "graphemer": "^1.4.0", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "is-path-inside": "^3.0.3", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", "optionator": "^0.9.3", "strip-ansi": "^6.0.1", "text-table": "^0.2.0" }, "bin": "bin/eslint.js" }, "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA=="], + + "eslint-config-next": ["eslint-config-next@14.2.35", "", { "dependencies": { "@next/eslint-plugin-next": "14.2.35", "@rushstack/eslint-patch": "^1.3.3", "@typescript-eslint/eslint-plugin": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0", "@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0", "eslint-import-resolver-node": "^0.3.6", "eslint-import-resolver-typescript": "^3.5.2", "eslint-plugin-import": "^2.28.1", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.5.0 || 5.0.0-canary-7118f5dd7-20230705" }, "peerDependencies": { "eslint": "^7.23.0 || ^8.0.0", "typescript": ">=3.3.1" } }, "sha512-BpLsv01UisH193WyT/1lpHqq5iJ/Orfz9h/NOOlAmTUq4GY349PextQ62K4XpnaM9supeiEn3TaOTeQO07gURg=="], + + "eslint-import-resolver-node": ["eslint-import-resolver-node@0.3.9", "", { "dependencies": { "debug": "^3.2.7", "is-core-module": "^2.13.0", "resolve": "^1.22.4" } }, "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g=="], + + "eslint-import-resolver-typescript": ["eslint-import-resolver-typescript@3.10.1", "", { "dependencies": { "@nolyfill/is-core-module": "1.0.39", "debug": "^4.4.0", "get-tsconfig": "^4.10.0", "is-bun-module": "^2.0.0", "stable-hash": "^0.0.5", "tinyglobby": "^0.2.13", "unrs-resolver": "^1.6.2" }, "peerDependencies": { "eslint": "*", "eslint-plugin-import": "*", "eslint-plugin-import-x": "*" }, "optionalPeers": ["eslint-plugin-import-x"] }, "sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ=="], + + "eslint-module-utils": ["eslint-module-utils@2.12.1", "", { "dependencies": { "debug": "^3.2.7" } }, "sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw=="], + + "eslint-plugin-import": ["eslint-plugin-import@2.32.0", "", { "dependencies": { "@rtsao/scc": "^1.1.0", "array-includes": "^3.1.9", "array.prototype.findlastindex": "^1.2.6", "array.prototype.flat": "^1.3.3", "array.prototype.flatmap": "^1.3.3", "debug": "^3.2.7", "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.9", "eslint-module-utils": "^2.12.1", "hasown": "^2.0.2", "is-core-module": "^2.16.1", "is-glob": "^4.0.3", "minimatch": "^3.1.2", "object.fromentries": "^2.0.8", "object.groupby": "^1.0.3", "object.values": "^1.2.1", "semver": "^6.3.1", "string.prototype.trimend": "^1.0.9", "tsconfig-paths": "^3.15.0" }, "peerDependencies": { "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" } }, "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA=="], + + "eslint-plugin-jsx-a11y": ["eslint-plugin-jsx-a11y@6.10.2", "", { "dependencies": { "aria-query": "^5.3.2", "array-includes": "^3.1.8", "array.prototype.flatmap": "^1.3.2", "ast-types-flow": "^0.0.8", "axe-core": "^4.10.0", "axobject-query": "^4.1.0", "damerau-levenshtein": "^1.0.8", "emoji-regex": "^9.2.2", "hasown": "^2.0.2", "jsx-ast-utils": "^3.3.5", "language-tags": "^1.0.9", "minimatch": "^3.1.2", "object.fromentries": "^2.0.8", "safe-regex-test": "^1.0.3", "string.prototype.includes": "^2.0.1" }, "peerDependencies": { "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9" } }, "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q=="], + + "eslint-plugin-react": ["eslint-plugin-react@7.37.5", "", { "dependencies": { "array-includes": "^3.1.8", "array.prototype.findlast": "^1.2.5", "array.prototype.flatmap": "^1.3.3", "array.prototype.tosorted": "^1.1.4", "doctrine": "^2.1.0", "es-iterator-helpers": "^1.2.1", "estraverse": "^5.3.0", "hasown": "^2.0.2", "jsx-ast-utils": "^2.4.1 || ^3.0.0", "minimatch": "^3.1.2", "object.entries": "^1.1.9", "object.fromentries": "^2.0.8", "object.values": "^1.2.1", "prop-types": "^15.8.1", "resolve": "^2.0.0-next.5", "semver": "^6.3.1", "string.prototype.matchall": "^4.0.12", "string.prototype.repeat": "^1.0.0" }, "peerDependencies": { "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" } }, "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA=="], + + "eslint-plugin-react-hooks": ["eslint-plugin-react-hooks@5.0.0-canary-7118f5dd7-20230705", "", { "peerDependencies": { "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" } }, "sha512-AZYbMo/NW9chdL7vk6HQzQhT+PvTAEVqWk9ziruUoW2kAOcN5qNyelv70e0F1VNQAbvutOC9oc+xfWycI9FxDw=="], + + "eslint-scope": ["eslint-scope@7.2.2", "", { "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" } }, "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg=="], + + "eslint-visitor-keys": ["eslint-visitor-keys@3.4.3", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="], + + "espree": ["espree@9.6.1", "", { "dependencies": { "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", "eslint-visitor-keys": "^3.4.1" } }, "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ=="], + + "esquery": ["esquery@1.7.0", "", { "dependencies": { "estraverse": "^5.1.0" } }, "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g=="], + + "esrecurse": ["esrecurse@4.3.0", "", { "dependencies": { "estraverse": "^5.2.0" } }, "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag=="], + + "estraverse": ["estraverse@5.3.0", "", {}, "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="], + + "esutils": ["esutils@2.0.3", "", {}, "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g=="], + + "exsolve": ["exsolve@1.0.8", "", {}, "sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA=="], + + "fast-check": ["fast-check@3.23.2", "", { "dependencies": { "pure-rand": "^6.1.0" } }, "sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A=="], + + "fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="], + + "fast-glob": ["fast-glob@3.3.3", "", { "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", "micromatch": "^4.0.8" } }, "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg=="], + + "fast-json-stable-stringify": ["fast-json-stable-stringify@2.1.0", "", {}, "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw=="], + + "fast-levenshtein": ["fast-levenshtein@2.0.6", "", {}, "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw=="], + + "fastq": ["fastq@1.20.1", "", { "dependencies": { "reusify": "^1.0.4" } }, "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw=="], + + "fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" } }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="], + + "file-entry-cache": ["file-entry-cache@6.0.1", "", { "dependencies": { "flat-cache": "^3.0.4" } }, "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg=="], + + "fill-range": ["fill-range@7.1.1", "", { "dependencies": { "to-regex-range": "^5.0.1" } }, "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg=="], + + "find-up": ["find-up@5.0.0", "", { "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" } }, "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng=="], + + "flat-cache": ["flat-cache@3.2.0", "", { "dependencies": { "flatted": "^3.2.9", "keyv": "^4.5.3", "rimraf": "^3.0.2" } }, "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw=="], + + "flatted": ["flatted@3.3.3", "", {}, "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg=="], + + "for-each": ["for-each@0.3.5", "", { "dependencies": { "is-callable": "^1.2.7" } }, "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg=="], + + "foreground-child": ["foreground-child@3.3.1", "", { "dependencies": { "cross-spawn": "^7.0.6", "signal-exit": "^4.0.1" } }, "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw=="], + + "fs.realpath": ["fs.realpath@1.0.0", "", {}, "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="], + + "fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="], + + "function-bind": ["function-bind@1.1.2", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="], + + "function.prototype.name": ["function.prototype.name@1.1.8", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "define-properties": "^1.2.1", "functions-have-names": "^1.2.3", "hasown": "^2.0.2", "is-callable": "^1.2.7" } }, "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q=="], + + "functions-have-names": ["functions-have-names@1.2.3", "", {}, "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ=="], + + "generate-function": ["generate-function@2.3.1", "", { "dependencies": { "is-property": "^1.0.2" } }, "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ=="], + + "generator-function": ["generator-function@2.0.1", "", {}, "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g=="], + + "get-caller-file": ["get-caller-file@2.0.5", "", {}, "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="], + + "get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="], + + "get-port-please": ["get-port-please@3.2.0", "", {}, "sha512-I9QVvBw5U/hw3RmWpYKRumUeaDgxTPd401x364rLmWBJcOQ753eov1eTgzDqRG9bqFIfDc7gfzcQEWrUri3o1A=="], + + "get-proto": ["get-proto@1.0.1", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="], + + "get-symbol-description": ["get-symbol-description@1.1.0", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6" } }, "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg=="], + + "get-tsconfig": ["get-tsconfig@4.13.6", "", { "dependencies": { "resolve-pkg-maps": "^1.0.0" } }, "sha512-shZT/QMiSHc/YBLxxOkMtgSid5HFoauqCE3/exfsEcwg1WkeqjG+V40yBbBrsD+jW2HDXcs28xOfcbm2jI8Ddw=="], + + "giget": ["giget@2.0.0", "", { "dependencies": { "citty": "^0.1.6", "consola": "^3.4.0", "defu": "^6.1.4", "node-fetch-native": "^1.6.6", "nypm": "^0.6.0", "pathe": "^2.0.3" }, "bin": "dist/cli.mjs" }, "sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA=="], + + "glob": ["glob@10.3.10", "", { "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^2.3.5", "minimatch": "^9.0.1", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", "path-scurry": "^1.10.1" }, "bin": "dist/esm/bin.mjs" }, "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g=="], + + "glob-parent": ["glob-parent@6.0.2", "", { "dependencies": { "is-glob": "^4.0.3" } }, "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A=="], + + "globals": ["globals@13.24.0", "", { "dependencies": { "type-fest": "^0.20.2" } }, "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ=="], + + "globalthis": ["globalthis@1.0.4", "", { "dependencies": { "define-properties": "^1.2.1", "gopd": "^1.0.1" } }, "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ=="], + + "gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="], + + "graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="], + + "grammex": ["grammex@3.1.12", "", {}, "sha512-6ufJOsSA7LcQehIJNCO7HIBykfM7DXQual0Ny780/DEcJIpBlHRvcqEBWGPYd7hrXL2GJ3oJI1MIhaXjWmLQOQ=="], + + "graphemer": ["graphemer@1.4.0", "", {}, "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag=="], + + "graphmatch": ["graphmatch@1.1.1", "", {}, "sha512-5ykVn/EXM1hF0XCaWh05VbYvEiOL2lY1kBxZtaYsyvjp7cmWOU1XsAdfQBwClraEofXDT197lFbXOEVMHpvQOg=="], + + "has-bigints": ["has-bigints@1.1.0", "", {}, "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg=="], + + "has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="], + + "has-property-descriptors": ["has-property-descriptors@1.0.2", "", { "dependencies": { "es-define-property": "^1.0.0" } }, "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg=="], + + "has-proto": ["has-proto@1.2.0", "", { "dependencies": { "dunder-proto": "^1.0.0" } }, "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ=="], + + "has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="], + + "has-tostringtag": ["has-tostringtag@1.0.2", "", { "dependencies": { "has-symbols": "^1.0.3" } }, "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw=="], + + "hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="], + + "hono": ["hono@4.11.4", "", {}, "sha512-U7tt8JsyrxSRKspfhtLET79pU8K+tInj5QZXs1jSugO1Vq5dFj3kmZsRldo29mTBfcjDRVRXrEZ6LS63Cog9ZA=="], + + "http-status-codes": ["http-status-codes@2.3.0", "", {}, "sha512-RJ8XvFvpPM/Dmc5SV+dC4y5PCeOhT3x1Hq0NU3rjGeg5a/CqlhZ7uudknPwZFz4aeAXDcbAyaeP7GAo9lvngtA=="], + + "iconv-lite": ["iconv-lite@0.7.2", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw=="], + + "ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="], + + "import-fresh": ["import-fresh@3.3.1", "", { "dependencies": { "parent-module": "^1.0.0", "resolve-from": "^4.0.0" } }, "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ=="], + + "imurmurhash": ["imurmurhash@0.1.4", "", {}, "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA=="], + + "inflight": ["inflight@1.0.6", "", { "dependencies": { "once": "^1.3.0", "wrappy": "1" } }, "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA=="], + + "inherits": ["inherits@2.0.4", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="], + + "internal-slot": ["internal-slot@1.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "hasown": "^2.0.2", "side-channel": "^1.1.0" } }, "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw=="], + + "is-array-buffer": ["is-array-buffer@3.0.5", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "get-intrinsic": "^1.2.6" } }, "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A=="], + + "is-async-function": ["is-async-function@2.1.1", "", { "dependencies": { "async-function": "^1.0.0", "call-bound": "^1.0.3", "get-proto": "^1.0.1", "has-tostringtag": "^1.0.2", "safe-regex-test": "^1.1.0" } }, "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ=="], + + "is-bigint": ["is-bigint@1.1.0", "", { "dependencies": { "has-bigints": "^1.0.2" } }, "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ=="], + + "is-binary-path": ["is-binary-path@2.1.0", "", { "dependencies": { "binary-extensions": "^2.0.0" } }, "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw=="], + + "is-boolean-object": ["is-boolean-object@1.2.2", "", { "dependencies": { "call-bound": "^1.0.3", "has-tostringtag": "^1.0.2" } }, "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A=="], + + "is-bun-module": ["is-bun-module@2.0.0", "", { "dependencies": { "semver": "^7.7.1" } }, "sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ=="], + + "is-callable": ["is-callable@1.2.7", "", {}, "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA=="], + + "is-core-module": ["is-core-module@2.16.1", "", { "dependencies": { "hasown": "^2.0.2" } }, "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w=="], + + "is-data-view": ["is-data-view@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "get-intrinsic": "^1.2.6", "is-typed-array": "^1.1.13" } }, "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw=="], + + "is-date-object": ["is-date-object@1.1.0", "", { "dependencies": { "call-bound": "^1.0.2", "has-tostringtag": "^1.0.2" } }, "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg=="], + + "is-extglob": ["is-extglob@2.1.1", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="], + + "is-finalizationregistry": ["is-finalizationregistry@1.1.1", "", { "dependencies": { "call-bound": "^1.0.3" } }, "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg=="], + + "is-fullwidth-code-point": ["is-fullwidth-code-point@3.0.0", "", {}, "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="], + + "is-generator-function": ["is-generator-function@1.1.2", "", { "dependencies": { "call-bound": "^1.0.4", "generator-function": "^2.0.0", "get-proto": "^1.0.1", "has-tostringtag": "^1.0.2", "safe-regex-test": "^1.1.0" } }, "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA=="], + + "is-glob": ["is-glob@4.0.3", "", { "dependencies": { "is-extglob": "^2.1.1" } }, "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="], + + "is-map": ["is-map@2.0.3", "", {}, "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw=="], + + "is-negative-zero": ["is-negative-zero@2.0.3", "", {}, "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw=="], + + "is-number": ["is-number@7.0.0", "", {}, "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="], + + "is-number-object": ["is-number-object@1.1.1", "", { "dependencies": { "call-bound": "^1.0.3", "has-tostringtag": "^1.0.2" } }, "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw=="], + + "is-path-inside": ["is-path-inside@3.0.3", "", {}, "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ=="], + + "is-property": ["is-property@1.0.2", "", {}, "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g=="], + + "is-regex": ["is-regex@1.2.1", "", { "dependencies": { "call-bound": "^1.0.2", "gopd": "^1.2.0", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" } }, "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g=="], + + "is-set": ["is-set@2.0.3", "", {}, "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg=="], + + "is-shared-array-buffer": ["is-shared-array-buffer@1.0.4", "", { "dependencies": { "call-bound": "^1.0.3" } }, "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A=="], + + "is-string": ["is-string@1.1.1", "", { "dependencies": { "call-bound": "^1.0.3", "has-tostringtag": "^1.0.2" } }, "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA=="], + + "is-symbol": ["is-symbol@1.1.1", "", { "dependencies": { "call-bound": "^1.0.2", "has-symbols": "^1.1.0", "safe-regex-test": "^1.1.0" } }, "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w=="], + + "is-typed-array": ["is-typed-array@1.1.15", "", { "dependencies": { "which-typed-array": "^1.1.16" } }, "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ=="], + + "is-weakmap": ["is-weakmap@2.0.2", "", {}, "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w=="], + + "is-weakref": ["is-weakref@1.1.1", "", { "dependencies": { "call-bound": "^1.0.3" } }, "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew=="], + + "is-weakset": ["is-weakset@2.0.4", "", { "dependencies": { "call-bound": "^1.0.3", "get-intrinsic": "^1.2.6" } }, "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ=="], + + "isarray": ["isarray@2.0.5", "", {}, "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw=="], + + "isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="], + + "iterator.prototype": ["iterator.prototype@1.1.5", "", { "dependencies": { "define-data-property": "^1.1.4", "es-object-atoms": "^1.0.0", "get-intrinsic": "^1.2.6", "get-proto": "^1.0.0", "has-symbols": "^1.1.0", "set-function-name": "^2.0.2" } }, "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g=="], + + "jackspeak": ["jackspeak@2.3.6", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ=="], + + "jiti": ["jiti@1.21.7", "", { "bin": "bin/jiti.js" }, "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A=="], + + "jose": ["jose@4.15.9", "", {}, "sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA=="], + + "js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="], + + "js-yaml": ["js-yaml@4.1.1", "", { "dependencies": { "argparse": "^2.0.1" }, "bin": "bin/js-yaml.js" }, "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA=="], + + "json-buffer": ["json-buffer@3.0.1", "", {}, "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ=="], + + "json-schema-traverse": ["json-schema-traverse@0.4.1", "", {}, "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg=="], + + "json-stable-stringify-without-jsonify": ["json-stable-stringify-without-jsonify@1.0.1", "", {}, "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw=="], + + "json5": ["json5@1.0.2", "", { "dependencies": { "minimist": "^1.2.0" }, "bin": "lib/cli.js" }, "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA=="], + + "jsx-ast-utils": ["jsx-ast-utils@3.3.5", "", { "dependencies": { "array-includes": "^3.1.6", "array.prototype.flat": "^1.3.1", "object.assign": "^4.1.4", "object.values": "^1.1.6" } }, "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ=="], + + "keyv": ["keyv@4.5.4", "", { "dependencies": { "json-buffer": "3.0.1" } }, "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw=="], + + "language-subtag-registry": ["language-subtag-registry@0.3.23", "", {}, "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ=="], + + "language-tags": ["language-tags@1.0.9", "", { "dependencies": { "language-subtag-registry": "^0.3.20" } }, "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA=="], + + "levn": ["levn@0.4.1", "", { "dependencies": { "prelude-ls": "^1.2.1", "type-check": "~0.4.0" } }, "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ=="], + + "lilconfig": ["lilconfig@3.1.3", "", {}, "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw=="], + + "lines-and-columns": ["lines-and-columns@1.2.4", "", {}, "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="], + + "locate-path": ["locate-path@6.0.0", "", { "dependencies": { "p-locate": "^5.0.0" } }, "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw=="], + + "lodash": ["lodash@4.17.21", "", {}, "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="], + + "lodash.merge": ["lodash.merge@4.6.2", "", {}, "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="], + + "long": ["long@5.3.2", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="], + + "loose-envify": ["loose-envify@1.4.0", "", { "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, "bin": "cli.js" }, "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q=="], + + "lru-cache": ["lru-cache@6.0.0", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA=="], + + "lru.min": ["lru.min@1.1.4", "", {}, "sha512-DqC6n3QQ77zdFpCMASA1a3Jlb64Hv2N2DciFGkO/4L9+q/IpIAuRlKOvCXabtRW6cQf8usbmM6BE/TOPysCdIA=="], + + "lucide-react": ["lucide-react@0.575.0", "", { "peerDependencies": { "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-VuXgKZrk0uiDlWjGGXmKV6MSk9Yy4l10qgVvzGn2AWBx1Ylt0iBexKOAoA6I7JO3m+M9oeovJd3yYENfkUbOeg=="], + + "math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="], + + "merge2": ["merge2@1.4.1", "", {}, "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg=="], + + "micromatch": ["micromatch@4.0.8", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="], + + "minimatch": ["minimatch@3.1.5", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w=="], + + "minimist": ["minimist@1.2.8", "", {}, "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="], + + "minipass": ["minipass@7.1.3", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="], + + "ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], + + "mysql2": ["mysql2@3.15.3", "", { "dependencies": { "aws-ssl-profiles": "^1.1.1", "denque": "^2.1.0", "generate-function": "^2.3.1", "iconv-lite": "^0.7.0", "long": "^5.2.1", "lru.min": "^1.0.0", "named-placeholders": "^1.1.3", "seq-queue": "^0.0.5", "sqlstring": "^2.3.2" } }, "sha512-FBrGau0IXmuqg4haEZRBfHNWB5mUARw6hNwPDXXGg0XzVJ50mr/9hb267lvpVMnhZ1FON3qNd4Xfcez1rbFwSg=="], + + "mz": ["mz@2.7.0", "", { "dependencies": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", "thenify-all": "^1.0.0" } }, "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q=="], + + "named-placeholders": ["named-placeholders@1.1.6", "", { "dependencies": { "lru.min": "^1.1.0" } }, "sha512-Tz09sEL2EEuv5fFowm419c1+a/jSMiBjI9gHxVLrVdbUkkNUUfjsVYs9pVZu5oCon/kmRh9TfLEObFtkVxmY0w=="], + + "nanoid": ["nanoid@5.1.6", "", { "bin": "bin/nanoid.js" }, "sha512-c7+7RQ+dMB5dPwwCp4ee1/iV/q2P6aK1mTZcfr1BTuVlyW9hJYiMPybJCcnBlQtuSmTIWNeazm/zqNoZSSElBg=="], + + "napi-postinstall": ["napi-postinstall@0.3.4", "", { "bin": "lib/cli.js" }, "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ=="], + + "natural-compare": ["natural-compare@1.4.0", "", {}, "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw=="], + + "next": ["next@14.2.35", "", { "dependencies": { "@next/env": "14.2.35", "@swc/helpers": "0.5.5", "busboy": "1.6.0", "caniuse-lite": "^1.0.30001579", "graceful-fs": "^4.2.11", "postcss": "8.4.31", "styled-jsx": "5.1.1" }, "optionalDependencies": { "@next/swc-darwin-arm64": "14.2.33", "@next/swc-darwin-x64": "14.2.33", "@next/swc-linux-arm64-gnu": "14.2.33", "@next/swc-linux-arm64-musl": "14.2.33", "@next/swc-linux-x64-gnu": "14.2.33", "@next/swc-linux-x64-musl": "14.2.33", "@next/swc-win32-arm64-msvc": "14.2.33", "@next/swc-win32-ia32-msvc": "14.2.33", "@next/swc-win32-x64-msvc": "14.2.33" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.41.2", "react": "^18.2.0", "react-dom": "^18.2.0", "sass": "^1.3.0" }, "optionalPeers": ["@opentelemetry/api", "@playwright/test", "sass"], "bin": "dist/bin/next" }, "sha512-KhYd2Hjt/O1/1aZVX3dCwGXM1QmOV4eNM2UTacK5gipDdPN/oHHK/4oVGy7X8GMfPMsUTUEmGlsy0EY1YGAkig=="], + + "next-auth": ["next-auth@4.24.13", "", { "dependencies": { "@babel/runtime": "^7.20.13", "@panva/hkdf": "^1.0.2", "cookie": "^0.7.0", "jose": "^4.15.5", "oauth": "^0.9.15", "openid-client": "^5.4.0", "preact": "^10.6.3", "preact-render-to-string": "^5.1.19", "uuid": "^8.3.2" }, "peerDependencies": { "@auth/core": "0.34.3", "next": "^12.2.5 || ^13 || ^14 || ^15 || ^16", "nodemailer": "^7.0.7", "react": "^17.0.2 || ^18 || ^19", "react-dom": "^17.0.2 || ^18 || ^19" }, "optionalPeers": ["@auth/core", "nodemailer"] }, "sha512-sgObCfcfL7BzIK76SS5TnQtc3yo2Oifp/yIpfv6fMfeBOiBJkDWF3A2y9+yqnmJ4JKc2C+nMjSjmgDeTwgN1rQ=="], + + "node-exports-info": ["node-exports-info@1.6.0", "", { "dependencies": { "array.prototype.flatmap": "^1.3.3", "es-errors": "^1.3.0", "object.entries": "^1.1.9", "semver": "^6.3.1" } }, "sha512-pyFS63ptit/P5WqUkt+UUfe+4oevH+bFeIiPPdfb0pFeYEu/1ELnJu5l+5EcTKYL5M7zaAa7S8ddywgXypqKCw=="], + + "node-fetch-native": ["node-fetch-native@1.6.7", "", {}, "sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q=="], + + "normalize-path": ["normalize-path@3.0.0", "", {}, "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA=="], + + "nypm": ["nypm@0.6.5", "", { "dependencies": { "citty": "^0.2.0", "pathe": "^2.0.3", "tinyexec": "^1.0.2" }, "bin": "dist/cli.mjs" }, "sha512-K6AJy1GMVyfyMXRVB88700BJqNUkByijGJM8kEHpLdcAt+vSQAVfkWWHYzuRXHSY6xA2sNc5RjTj0p9rE2izVQ=="], + + "oauth": ["oauth@0.9.15", "", {}, "sha512-a5ERWK1kh38ExDEfoO6qUHJb32rd7aYmPHuyCu3Fta/cnICvYmgd2uhuKXvPD+PXB+gCEYYEaQdIRAjCOwAKNA=="], + + "oauth4webapi": ["oauth4webapi@3.8.5", "", {}, "sha512-A8jmyUckVhRJj5lspguklcl90Ydqk61H3dcU0oLhH3Yv13KpAliKTt5hknpGGPZSSfOwGyraNEFmofDYH+1kSg=="], + + "object-assign": ["object-assign@4.1.1", "", {}, "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="], + + "object-hash": ["object-hash@3.0.0", "", {}, "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw=="], + + "object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="], + + "object-keys": ["object-keys@1.1.1", "", {}, "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA=="], + + "object.assign": ["object.assign@4.1.7", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0", "has-symbols": "^1.1.0", "object-keys": "^1.1.1" } }, "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw=="], + + "object.entries": ["object.entries@1.1.9", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.4", "define-properties": "^1.2.1", "es-object-atoms": "^1.1.1" } }, "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw=="], + + "object.fromentries": ["object.fromentries@2.0.8", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-abstract": "^1.23.2", "es-object-atoms": "^1.0.0" } }, "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ=="], + + "object.groupby": ["object.groupby@1.0.3", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-abstract": "^1.23.2" } }, "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ=="], + + "object.values": ["object.values@1.2.1", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0" } }, "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA=="], + + "ohash": ["ohash@2.0.11", "", {}, "sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ=="], + + "oidc-token-hash": ["oidc-token-hash@5.2.0", "", {}, "sha512-6gj2m8cJZ+iSW8bm0FXdGF0YhIQbKrfP4yWTNzxc31U6MOjfEmB1rHvlYvxI1B7t7BCi1F2vYTT6YhtQRG4hxw=="], + + "once": ["once@1.4.0", "", { "dependencies": { "wrappy": "1" } }, "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w=="], + + "openid-client": ["openid-client@5.7.1", "", { "dependencies": { "jose": "^4.15.9", "lru-cache": "^6.0.0", "object-hash": "^2.2.0", "oidc-token-hash": "^5.0.3" } }, "sha512-jDBPgSVfTnkIh71Hg9pRvtJc6wTwqjRkN88+gCFtYWrlP4Yx2Dsrow8uPi3qLr/aeymPF3o2+dS+wOpglK04ew=="], + + "optionator": ["optionator@0.9.4", "", { "dependencies": { "deep-is": "^0.1.3", "fast-levenshtein": "^2.0.6", "levn": "^0.4.1", "prelude-ls": "^1.2.1", "type-check": "^0.4.0", "word-wrap": "^1.2.5" } }, "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g=="], + + "own-keys": ["own-keys@1.0.1", "", { "dependencies": { "get-intrinsic": "^1.2.6", "object-keys": "^1.1.1", "safe-push-apply": "^1.0.0" } }, "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg=="], + + "p-limit": ["p-limit@3.1.0", "", { "dependencies": { "yocto-queue": "^0.1.0" } }, "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ=="], + + "p-locate": ["p-locate@5.0.0", "", { "dependencies": { "p-limit": "^3.0.2" } }, "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw=="], + + "p-try": ["p-try@2.2.0", "", {}, "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="], + + "papaparse": ["papaparse@5.5.3", "", {}, "sha512-5QvjGxYVjxO59MGU2lHVYpRWBBtKHnlIAcSe1uNFCkkptUh63NFRj0FJQm7nR67puEruUci/ZkjmEFrjCAyP4A=="], + + "parent-module": ["parent-module@1.0.1", "", { "dependencies": { "callsites": "^3.0.0" } }, "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g=="], + + "path-exists": ["path-exists@4.0.0", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="], + + "path-is-absolute": ["path-is-absolute@1.0.1", "", {}, "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg=="], + + "path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="], + + "path-parse": ["path-parse@1.0.7", "", {}, "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="], + + "path-scurry": ["path-scurry@1.11.1", "", { "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" } }, "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA=="], + + "pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="], + + "perfect-debounce": ["perfect-debounce@1.0.0", "", {}, "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA=="], + + "pg": ["pg@8.19.0", "", { "dependencies": { "pg-connection-string": "^2.11.0", "pg-pool": "^3.12.0", "pg-protocol": "^1.12.0", "pg-types": "2.2.0", "pgpass": "1.0.5" }, "optionalDependencies": { "pg-cloudflare": "^1.3.0" }, "peerDependencies": { "pg-native": ">=3.0.1" }, "optionalPeers": ["pg-native"] }, "sha512-QIcLGi508BAHkQ3pJNptsFz5WQMlpGbuBGBaIaXsWK8mel2kQ/rThYI+DbgjUvZrIr7MiuEuc9LcChJoEZK1xQ=="], + + "pg-cloudflare": ["pg-cloudflare@1.3.0", "", {}, "sha512-6lswVVSztmHiRtD6I8hw4qP/nDm1EJbKMRhf3HCYaqud7frGysPv7FYJ5noZQdhQtN2xJnimfMtvQq21pdbzyQ=="], + + "pg-connection-string": ["pg-connection-string@2.11.0", "", {}, "sha512-kecgoJwhOpxYU21rZjULrmrBJ698U2RxXofKVzOn5UDj61BPj/qMb7diYUR1nLScCDbrztQFl1TaQZT0t1EtzQ=="], + + "pg-int8": ["pg-int8@1.0.1", "", {}, "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw=="], + + "pg-pool": ["pg-pool@3.12.0", "", { "peerDependencies": { "pg": ">=8.0" } }, "sha512-eIJ0DES8BLaziFHW7VgJEBPi5hg3Nyng5iKpYtj3wbcAUV9A1wLgWiY7ajf/f/oO1wfxt83phXPY8Emztg7ITg=="], + + "pg-protocol": ["pg-protocol@1.12.0", "", {}, "sha512-uOANXNRACNdElMXJ0tPz6RBM0XQ61nONGAwlt8da5zs/iUOOCLBQOHSXnrC6fMsvtjxbOJrZZl5IScGv+7mpbg=="], + + "pg-types": ["pg-types@2.2.0", "", { "dependencies": { "pg-int8": "1.0.1", "postgres-array": "~2.0.0", "postgres-bytea": "~1.0.0", "postgres-date": "~1.0.4", "postgres-interval": "^1.1.0" } }, "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA=="], + + "pgpass": ["pgpass@1.0.5", "", { "dependencies": { "split2": "^4.1.0" } }, "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug=="], + + "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], + + "picomatch": ["picomatch@2.3.1", "", {}, "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="], + + "pify": ["pify@2.3.0", "", {}, "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog=="], + + "pirates": ["pirates@4.0.7", "", {}, "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA=="], + + "pkg-types": ["pkg-types@2.3.0", "", { "dependencies": { "confbox": "^0.2.2", "exsolve": "^1.0.7", "pathe": "^2.0.3" } }, "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig=="], + + "pngjs": ["pngjs@5.0.0", "", {}, "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw=="], + + "possible-typed-array-names": ["possible-typed-array-names@1.1.0", "", {}, "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg=="], + + "postcss": ["postcss@8.5.6", "", { "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg=="], + + "postcss-import": ["postcss-import@15.1.0", "", { "dependencies": { "postcss-value-parser": "^4.0.0", "read-cache": "^1.0.0", "resolve": "^1.1.7" }, "peerDependencies": { "postcss": "^8.0.0" } }, "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew=="], + + "postcss-js": ["postcss-js@4.1.0", "", { "dependencies": { "camelcase-css": "^2.0.1" }, "peerDependencies": { "postcss": "^8.4.21" } }, "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw=="], + + "postcss-load-config": ["postcss-load-config@6.0.1", "", { "dependencies": { "lilconfig": "^3.1.1" }, "peerDependencies": { "jiti": ">=1.21.0", "postcss": ">=8.0.9", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["yaml"] }, "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g=="], + + "postcss-nested": ["postcss-nested@6.2.0", "", { "dependencies": { "postcss-selector-parser": "^6.1.1" }, "peerDependencies": { "postcss": "^8.2.14" } }, "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ=="], + + "postcss-selector-parser": ["postcss-selector-parser@6.1.2", "", { "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" } }, "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg=="], + + "postcss-value-parser": ["postcss-value-parser@4.2.0", "", {}, "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="], + + "postgres": ["postgres@3.4.7", "", {}, "sha512-Jtc2612XINuBjIl/QTWsV5UvE8UHuNblcO3vVADSrKsrc6RqGX6lOW1cEo3CM2v0XG4Nat8nI+YM7/f26VxXLw=="], + + "postgres-array": ["postgres-array@3.0.4", "", {}, "sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ=="], + + "postgres-bytea": ["postgres-bytea@1.0.1", "", {}, "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ=="], + + "postgres-date": ["postgres-date@1.0.7", "", {}, "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q=="], + + "postgres-interval": ["postgres-interval@1.2.0", "", { "dependencies": { "xtend": "^4.0.0" } }, "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ=="], + + "preact": ["preact@10.24.3", "", {}, "sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA=="], + + "preact-render-to-string": ["preact-render-to-string@5.2.6", "", { "dependencies": { "pretty-format": "^3.8.0" }, "peerDependencies": { "preact": ">=10" } }, "sha512-JyhErpYOvBV1hEPwIxc/fHWXPfnEGdRKxc8gFdAZ7XV4tlzyzG847XAyEZqoDnynP88akM4eaHcSOzNcLWFguw=="], + + "prelude-ls": ["prelude-ls@1.2.1", "", {}, "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g=="], + + "pretty-format": ["pretty-format@3.8.0", "", {}, "sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew=="], + + "prisma": ["prisma@7.4.2", "", { "dependencies": { "@prisma/config": "7.4.2", "@prisma/dev": "0.20.0", "@prisma/engines": "7.4.2", "@prisma/studio-core": "0.13.1", "mysql2": "3.15.3", "postgres": "3.4.7" }, "peerDependencies": { "better-sqlite3": ">=9.0.0", "typescript": ">=5.4.0" }, "optionalPeers": ["better-sqlite3"], "bin": "build/index.js" }, "sha512-2bP8Ruww3Q95Z2eH4Yqh4KAENRsj/SxbdknIVBfd6DmjPwmpsC4OVFMLOeHt6tM3Amh8ebjvstrUz3V/hOe1dA=="], + + "prop-types": ["prop-types@15.8.1", "", { "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", "react-is": "^16.13.1" } }, "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg=="], + + "proper-lockfile": ["proper-lockfile@4.1.2", "", { "dependencies": { "graceful-fs": "^4.2.4", "retry": "^0.12.0", "signal-exit": "^3.0.2" } }, "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA=="], + + "punycode": ["punycode@2.3.1", "", {}, "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg=="], + + "pure-rand": ["pure-rand@6.1.0", "", {}, "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA=="], + + "qrcode": ["qrcode@1.5.4", "", { "dependencies": { "dijkstrajs": "^1.0.1", "pngjs": "^5.0.0", "yargs": "^15.3.1" }, "bin": "bin/qrcode" }, "sha512-1ca71Zgiu6ORjHqFBDpnSMTR2ReToX4l1Au1VFLyVeBTFavzQnv5JxMFr3ukHVKpSrSA2MCk0lNJSykjUfz7Zg=="], + + "queue-microtask": ["queue-microtask@1.2.3", "", {}, "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="], + + "rc9": ["rc9@2.1.2", "", { "dependencies": { "defu": "^6.1.4", "destr": "^2.0.3" } }, "sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg=="], + + "react": ["react@18.3.1", "", { "dependencies": { "loose-envify": "^1.1.0" } }, "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ=="], + + "react-dom": ["react-dom@18.3.1", "", { "dependencies": { "loose-envify": "^1.1.0", "scheduler": "^0.23.2" }, "peerDependencies": { "react": "^18.3.1" } }, "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw=="], + + "react-is": ["react-is@16.13.1", "", {}, "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="], + + "read-cache": ["read-cache@1.0.0", "", { "dependencies": { "pify": "^2.3.0" } }, "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA=="], + + "readdirp": ["readdirp@3.6.0", "", { "dependencies": { "picomatch": "^2.2.1" } }, "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA=="], + + "reflect.getprototypeof": ["reflect.getprototypeof@1.0.10", "", { "dependencies": { "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-abstract": "^1.23.9", "es-errors": "^1.3.0", "es-object-atoms": "^1.0.0", "get-intrinsic": "^1.2.7", "get-proto": "^1.0.1", "which-builtin-type": "^1.2.1" } }, "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw=="], + + "regexp-to-ast": ["regexp-to-ast@0.5.0", "", {}, "sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw=="], + + "regexp.prototype.flags": ["regexp.prototype.flags@1.5.4", "", { "dependencies": { "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-errors": "^1.3.0", "get-proto": "^1.0.1", "gopd": "^1.2.0", "set-function-name": "^2.0.2" } }, "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA=="], + + "remeda": ["remeda@2.33.4", "", {}, "sha512-ygHswjlc/opg2VrtiYvUOPLjxjtdKvjGz1/plDhkG66hjNjFr1xmfrs2ClNFo/E6TyUFiwYNh53bKV26oBoMGQ=="], + + "require-directory": ["require-directory@2.1.1", "", {}, "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q=="], + + "require-main-filename": ["require-main-filename@2.0.0", "", {}, "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg=="], + + "resolve": ["resolve@1.22.11", "", { "dependencies": { "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": "bin/resolve" }, "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ=="], + + "resolve-from": ["resolve-from@4.0.0", "", {}, "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="], + + "resolve-pkg-maps": ["resolve-pkg-maps@1.0.0", "", {}, "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw=="], + + "retry": ["retry@0.12.0", "", {}, "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow=="], + + "reusify": ["reusify@1.1.0", "", {}, "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw=="], + + "rimraf": ["rimraf@3.0.2", "", { "dependencies": { "glob": "^7.1.3" }, "bin": "bin.js" }, "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA=="], + + "run-parallel": ["run-parallel@1.2.0", "", { "dependencies": { "queue-microtask": "^1.2.2" } }, "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA=="], + + "safe-array-concat": ["safe-array-concat@1.1.3", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.2", "get-intrinsic": "^1.2.6", "has-symbols": "^1.1.0", "isarray": "^2.0.5" } }, "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q=="], + + "safe-push-apply": ["safe-push-apply@1.0.0", "", { "dependencies": { "es-errors": "^1.3.0", "isarray": "^2.0.5" } }, "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA=="], + + "safe-regex-test": ["safe-regex-test@1.1.0", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-regex": "^1.2.1" } }, "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw=="], + + "safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="], + + "scheduler": ["scheduler@0.23.2", "", { "dependencies": { "loose-envify": "^1.1.0" } }, "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ=="], + + "semver": ["semver@6.3.1", "", { "bin": "bin/semver.js" }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="], + + "seq-queue": ["seq-queue@0.0.5", "", {}, "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q=="], + + "set-blocking": ["set-blocking@2.0.0", "", {}, "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="], + + "set-function-length": ["set-function-length@1.2.2", "", { "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", "function-bind": "^1.1.2", "get-intrinsic": "^1.2.4", "gopd": "^1.0.1", "has-property-descriptors": "^1.0.2" } }, "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg=="], + + "set-function-name": ["set-function-name@2.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" } }, "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ=="], + + "set-proto": ["set-proto@1.0.0", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.0.0" } }, "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw=="], + + "shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="], + + "shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="], + + "side-channel": ["side-channel@1.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3", "side-channel-list": "^1.0.0", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" } }, "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw=="], + + "side-channel-list": ["side-channel-list@1.0.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3" } }, "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA=="], + + "side-channel-map": ["side-channel-map@1.0.1", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3" } }, "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA=="], + + "side-channel-weakmap": ["side-channel-weakmap@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="], + + "signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], + + "source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="], + + "split2": ["split2@4.2.0", "", {}, "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg=="], + + "sqlstring": ["sqlstring@2.3.3", "", {}, "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg=="], + + "stable-hash": ["stable-hash@0.0.5", "", {}, "sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA=="], + + "std-env": ["std-env@3.10.0", "", {}, "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg=="], + + "stop-iteration-iterator": ["stop-iteration-iterator@1.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "internal-slot": "^1.1.0" } }, "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ=="], + + "streamsearch": ["streamsearch@1.1.0", "", {}, "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg=="], + + "string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + + "string-width-cjs": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + + "string.prototype.includes": ["string.prototype.includes@2.0.1", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-abstract": "^1.23.3" } }, "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg=="], + + "string.prototype.matchall": ["string.prototype.matchall@4.0.12", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "define-properties": "^1.2.1", "es-abstract": "^1.23.6", "es-errors": "^1.3.0", "es-object-atoms": "^1.0.0", "get-intrinsic": "^1.2.6", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "internal-slot": "^1.1.0", "regexp.prototype.flags": "^1.5.3", "set-function-name": "^2.0.2", "side-channel": "^1.1.0" } }, "sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA=="], + + "string.prototype.repeat": ["string.prototype.repeat@1.0.0", "", { "dependencies": { "define-properties": "^1.1.3", "es-abstract": "^1.17.5" } }, "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w=="], + + "string.prototype.trim": ["string.prototype.trim@1.2.10", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.2", "define-data-property": "^1.1.4", "define-properties": "^1.2.1", "es-abstract": "^1.23.5", "es-object-atoms": "^1.0.0", "has-property-descriptors": "^1.0.2" } }, "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA=="], + + "string.prototype.trimend": ["string.prototype.trimend@1.0.9", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.2", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0" } }, "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ=="], + + "string.prototype.trimstart": ["string.prototype.trimstart@1.0.8", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0" } }, "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg=="], + + "strip-ansi": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], + + "strip-ansi-cjs": ["strip-ansi@6.0.1", "", { "dependencies": { "ansi-regex": "^5.0.1" } }, "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A=="], + + "strip-bom": ["strip-bom@3.0.0", "", {}, "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA=="], + + "strip-json-comments": ["strip-json-comments@3.1.1", "", {}, "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig=="], + + "styled-jsx": ["styled-jsx@5.1.1", "", { "dependencies": { "client-only": "0.0.1" }, "peerDependencies": { "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0" } }, "sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw=="], + + "sucrase": ["sucrase@3.35.1", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.2", "commander": "^4.0.0", "lines-and-columns": "^1.1.6", "mz": "^2.7.0", "pirates": "^4.0.1", "tinyglobby": "^0.2.11", "ts-interface-checker": "^0.1.9" }, "bin": { "sucrase": "bin/sucrase", "sucrase-node": "bin/sucrase-node" } }, "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw=="], + + "supports-color": ["supports-color@7.2.0", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="], + + "supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="], + + "tailwind-merge": ["tailwind-merge@3.5.0", "", {}, "sha512-I8K9wewnVDkL1NTGoqWmVEIlUcB9gFriAEkXkfCjX5ib8ezGxtR3xD7iZIxrfArjEsH7F1CHD4RFUtxefdqV/A=="], + + "tailwindcss": ["tailwindcss@3.4.19", "", { "dependencies": { "@alloc/quick-lru": "^5.2.0", "arg": "^5.0.2", "chokidar": "^3.6.0", "didyoumean": "^1.2.2", "dlv": "^1.1.3", "fast-glob": "^3.3.2", "glob-parent": "^6.0.2", "is-glob": "^4.0.3", "jiti": "^1.21.7", "lilconfig": "^3.1.3", "micromatch": "^4.0.8", "normalize-path": "^3.0.0", "object-hash": "^3.0.0", "picocolors": "^1.1.1", "postcss": "^8.4.47", "postcss-import": "^15.1.0", "postcss-js": "^4.0.1", "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0", "postcss-nested": "^6.2.0", "postcss-selector-parser": "^6.1.2", "resolve": "^1.22.8", "sucrase": "^3.35.0" }, "bin": { "tailwind": "lib/cli.js", "tailwindcss": "lib/cli.js" } }, "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ=="], + + "text-table": ["text-table@0.2.0", "", {}, "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw=="], + + "thenify": ["thenify@3.3.1", "", { "dependencies": { "any-promise": "^1.0.0" } }, "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw=="], + + "thenify-all": ["thenify-all@1.6.0", "", { "dependencies": { "thenify": ">= 3.1.0 < 4" } }, "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA=="], + + "tinyexec": ["tinyexec@1.0.2", "", {}, "sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg=="], + + "tinyglobby": ["tinyglobby@0.2.15", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.3" } }, "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ=="], + + "to-regex-range": ["to-regex-range@5.0.1", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="], + + "ts-api-utils": ["ts-api-utils@2.4.0", "", { "peerDependencies": { "typescript": ">=4.8.4" } }, "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA=="], + + "ts-interface-checker": ["ts-interface-checker@0.1.13", "", {}, "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA=="], + + "tsconfig-paths": ["tsconfig-paths@3.15.0", "", { "dependencies": { "@types/json5": "^0.0.29", "json5": "^1.0.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } }, "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg=="], + + "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], + + "tsx": ["tsx@4.21.0", "", { "dependencies": { "esbuild": "~0.27.0", "get-tsconfig": "^4.7.5" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "bin": "dist/cli.mjs" }, "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw=="], + + "type-check": ["type-check@0.4.0", "", { "dependencies": { "prelude-ls": "^1.2.1" } }, "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew=="], + + "type-fest": ["type-fest@0.20.2", "", {}, "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ=="], + + "typed-array-buffer": ["typed-array-buffer@1.0.3", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-typed-array": "^1.1.14" } }, "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw=="], + + "typed-array-byte-length": ["typed-array-byte-length@1.0.3", "", { "dependencies": { "call-bind": "^1.0.8", "for-each": "^0.3.3", "gopd": "^1.2.0", "has-proto": "^1.2.0", "is-typed-array": "^1.1.14" } }, "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg=="], + + "typed-array-byte-offset": ["typed-array-byte-offset@1.0.4", "", { "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.8", "for-each": "^0.3.3", "gopd": "^1.2.0", "has-proto": "^1.2.0", "is-typed-array": "^1.1.15", "reflect.getprototypeof": "^1.0.9" } }, "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ=="], + + "typed-array-length": ["typed-array-length@1.0.7", "", { "dependencies": { "call-bind": "^1.0.7", "for-each": "^0.3.3", "gopd": "^1.0.1", "is-typed-array": "^1.1.13", "possible-typed-array-names": "^1.0.0", "reflect.getprototypeof": "^1.0.6" } }, "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg=="], + + "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], + + "unbox-primitive": ["unbox-primitive@1.1.0", "", { "dependencies": { "call-bound": "^1.0.3", "has-bigints": "^1.0.2", "has-symbols": "^1.1.0", "which-boxed-primitive": "^1.1.1" } }, "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw=="], + + "undici-types": ["undici-types@6.21.0", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="], + + "unrs-resolver": ["unrs-resolver@1.11.1", "", { "dependencies": { "napi-postinstall": "^0.3.0" }, "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" } }, "sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg=="], + + "uri-js": ["uri-js@4.4.1", "", { "dependencies": { "punycode": "^2.1.0" } }, "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg=="], + + "util-deprecate": ["util-deprecate@1.0.2", "", {}, "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="], + + "uuid": ["uuid@8.3.2", "", { "bin": "dist/bin/uuid" }, "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="], + + "valibot": ["valibot@1.2.0", "", { "peerDependencies": { "typescript": ">=5" } }, "sha512-mm1rxUsmOxzrwnX5arGS+U4T25RdvpPjPN4yR0u9pUBov9+zGVtO84tif1eY4r6zWxVxu3KzIyknJy3rxfRZZg=="], + + "which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="], + + "which-boxed-primitive": ["which-boxed-primitive@1.1.1", "", { "dependencies": { "is-bigint": "^1.1.0", "is-boolean-object": "^1.2.1", "is-number-object": "^1.1.1", "is-string": "^1.1.1", "is-symbol": "^1.1.1" } }, "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA=="], + + "which-builtin-type": ["which-builtin-type@1.2.1", "", { "dependencies": { "call-bound": "^1.0.2", "function.prototype.name": "^1.1.6", "has-tostringtag": "^1.0.2", "is-async-function": "^2.0.0", "is-date-object": "^1.1.0", "is-finalizationregistry": "^1.1.0", "is-generator-function": "^1.0.10", "is-regex": "^1.2.1", "is-weakref": "^1.0.2", "isarray": "^2.0.5", "which-boxed-primitive": "^1.1.0", "which-collection": "^1.0.2", "which-typed-array": "^1.1.16" } }, "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q=="], + + "which-collection": ["which-collection@1.0.2", "", { "dependencies": { "is-map": "^2.0.3", "is-set": "^2.0.3", "is-weakmap": "^2.0.2", "is-weakset": "^2.0.3" } }, "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw=="], + + "which-module": ["which-module@2.0.1", "", {}, "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ=="], + + "which-typed-array": ["which-typed-array@1.1.20", "", { "dependencies": { "available-typed-arrays": "^1.0.7", "call-bind": "^1.0.8", "call-bound": "^1.0.4", "for-each": "^0.3.5", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-tostringtag": "^1.0.2" } }, "sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg=="], + + "word-wrap": ["word-wrap@1.2.5", "", {}, "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA=="], + + "wrap-ansi": ["wrap-ansi@6.2.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA=="], + + "wrap-ansi-cjs": ["wrap-ansi@7.0.0", "", { "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", "strip-ansi": "^6.0.0" } }, "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q=="], + + "wrappy": ["wrappy@1.0.2", "", {}, "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="], + + "xtend": ["xtend@4.0.2", "", {}, "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="], + + "y18n": ["y18n@4.0.3", "", {}, "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ=="], + + "yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="], + + "yargs": ["yargs@15.4.1", "", { "dependencies": { "cliui": "^6.0.0", "decamelize": "^1.2.0", "find-up": "^4.1.0", "get-caller-file": "^2.0.1", "require-directory": "^2.1.1", "require-main-filename": "^2.0.0", "set-blocking": "^2.0.0", "string-width": "^4.2.0", "which-module": "^2.0.0", "y18n": "^4.0.0", "yargs-parser": "^18.1.2" } }, "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A=="], + + "yargs-parser": ["yargs-parser@18.1.3", "", { "dependencies": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" } }, "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ=="], + + "yocto-queue": ["yocto-queue@0.1.0", "", {}, "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q=="], + + "zeptomatch": ["zeptomatch@2.1.0", "", { "dependencies": { "grammex": "^3.1.11", "graphmatch": "^1.1.0" } }, "sha512-KiGErG2J0G82LSpniV0CtIzjlJ10E04j02VOudJsPyPwNZgGnRKQy7I1R7GMyg/QswnE4l7ohSGrQbQbjXPPDA=="], + + "zod": ["zod@4.3.6", "", {}, "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg=="], + + "@auth/core/jose": ["jose@6.1.3", "", {}, "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ=="], + + "@auth/core/preact-render-to-string": ["preact-render-to-string@6.5.11", "", { "peerDependencies": { "preact": ">=10" } }, "sha512-ubnauqoGczeGISiOh6RjX0/cdaF8v/oDXIjO85XALCQjwQP+SB4RDXXtvZ6yTYSjG+PC1QRP2AhPgCEsM2EvUw=="], + + "@isaacs/cliui/string-width": ["string-width@5.1.2", "", { "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", "strip-ansi": "^7.0.1" } }, "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA=="], + + "@isaacs/cliui/strip-ansi": ["strip-ansi@7.2.0", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="], + + "@isaacs/cliui/wrap-ansi": ["wrap-ansi@8.1.0", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="], + + "@mrleebo/prisma-ast/lilconfig": ["lilconfig@2.1.0", "", {}, "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ=="], + + "@prisma/engines/@prisma/get-platform": ["@prisma/get-platform@7.4.2", "", { "dependencies": { "@prisma/debug": "7.4.2" } }, "sha512-UTnChXRwiauzl/8wT4hhe7Xmixja9WE28oCnGpBtRejaHhvekx5kudr3R4Y9mLSA0kqGnAMeyTiKwDVMjaEVsw=="], + + "@prisma/fetch-engine/@prisma/get-platform": ["@prisma/get-platform@7.4.2", "", { "dependencies": { "@prisma/debug": "7.4.2" } }, "sha512-UTnChXRwiauzl/8wT4hhe7Xmixja9WE28oCnGpBtRejaHhvekx5kudr3R4Y9mLSA0kqGnAMeyTiKwDVMjaEVsw=="], + + "@prisma/get-platform/@prisma/debug": ["@prisma/debug@7.2.0", "", {}, "sha512-YSGTiSlBAVJPzX4ONZmMotL+ozJwQjRmZweQNIq/ER0tQJKJynNkRB3kyvt37eOfsbMCXk3gnLF6J9OJ4QWftw=="], + + "@typescript-eslint/eslint-plugin/ignore": ["ignore@7.0.5", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="], + + "@typescript-eslint/typescript-estree/minimatch": ["minimatch@10.2.4", "", { "dependencies": { "brace-expansion": "^5.0.2" } }, "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg=="], + + "@typescript-eslint/typescript-estree/semver": ["semver@7.7.4", "", { "bin": "bin/semver.js" }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="], + + "@typescript-eslint/visitor-keys/eslint-visitor-keys": ["eslint-visitor-keys@5.0.1", "", {}, "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA=="], + + "c12/chokidar": ["chokidar@4.0.3", "", { "dependencies": { "readdirp": "^4.0.1" } }, "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA=="], + + "c12/jiti": ["jiti@2.6.1", "", { "bin": "lib/jiti-cli.mjs" }, "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ=="], + + "chokidar/glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="], + + "cliui/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + + "eslint-import-resolver-node/debug": ["debug@3.2.7", "", { "dependencies": { "ms": "^2.1.1" } }, "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ=="], + + "eslint-module-utils/debug": ["debug@3.2.7", "", { "dependencies": { "ms": "^2.1.1" } }, "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ=="], + + "eslint-plugin-import/debug": ["debug@3.2.7", "", { "dependencies": { "ms": "^2.1.1" } }, "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ=="], + + "eslint-plugin-import/doctrine": ["doctrine@2.1.0", "", { "dependencies": { "esutils": "^2.0.2" } }, "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw=="], + + "eslint-plugin-react/doctrine": ["doctrine@2.1.0", "", { "dependencies": { "esutils": "^2.0.2" } }, "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw=="], + + "eslint-plugin-react/resolve": ["resolve@2.0.0-next.6", "", { "dependencies": { "es-errors": "^1.3.0", "is-core-module": "^2.16.1", "node-exports-info": "^1.6.0", "object-keys": "^1.1.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": "bin/resolve" }, "sha512-3JmVl5hMGtJ3kMmB3zi3DL25KfkCEyy3Tw7Gmw7z5w8M9WlwoPFnIvwChzu1+cF3iaK3sp18hhPz8ANeimdJfA=="], + + "eslint-plugin-react/semver": ["semver@6.3.1", "", { "bin": "bin/semver.js" }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="], + + "fast-glob/glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="], + + "fdir/picomatch": ["picomatch@4.0.3", "", {}, "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q=="], + + "glob/minimatch": ["minimatch@9.0.9", "", { "dependencies": { "brace-expansion": "^2.0.2" } }, "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg=="], + + "is-bun-module/semver": ["semver@7.7.4", "", { "bin": "bin/semver.js" }, "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA=="], + + "next/postcss": ["postcss@8.4.31", "", { "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" } }, "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ=="], + + "node-exports-info/semver": ["semver@6.3.1", "", { "bin": "bin/semver.js" }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="], + + "nypm/citty": ["citty@0.2.1", "", {}, "sha512-kEV95lFBhQgtogAPlQfJJ0WGVSokvLr/UEoFPiKKOXF7pl98HfUVUD0ejsuTCld/9xH9vogSywZ5KqHzXrZpqg=="], + + "openid-client/object-hash": ["object-hash@2.2.0", "", {}, "sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw=="], + + "path-scurry/lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="], + + "pg-types/postgres-array": ["postgres-array@2.0.0", "", {}, "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA=="], + + "postcss/nanoid": ["nanoid@3.3.11", "", { "bin": "bin/nanoid.cjs" }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="], + + "proper-lockfile/signal-exit": ["signal-exit@3.0.7", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="], + + "rimraf/glob": ["glob@7.2.3", "", { "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q=="], + + "string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], + + "string-width-cjs/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], + + "tinyglobby/picomatch": ["picomatch@4.0.3", "", {}, "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q=="], + + "wrap-ansi/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + + "wrap-ansi-cjs/string-width": ["string-width@4.2.3", "", { "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" } }, "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g=="], + + "yargs/find-up": ["find-up@4.1.0", "", { "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" } }, "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw=="], + + "@isaacs/cliui/string-width/strip-ansi": ["strip-ansi@7.2.0", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="], + + "@isaacs/cliui/strip-ansi/ansi-regex": ["ansi-regex@6.2.2", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="], + + "@isaacs/cliui/wrap-ansi/ansi-styles": ["ansi-styles@6.2.3", "", {}, "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg=="], + + "@isaacs/cliui/wrap-ansi/strip-ansi": ["strip-ansi@7.2.0", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="], + + "@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["brace-expansion@5.0.4", "", { "dependencies": { "balanced-match": "^4.0.2" } }, "sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg=="], + + "c12/chokidar/readdirp": ["readdirp@4.1.2", "", {}, "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg=="], + + "cliui/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], + + "glob/minimatch/brace-expansion": ["brace-expansion@2.0.2", "", { "dependencies": { "balanced-match": "^1.0.0" } }, "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ=="], + + "next/postcss/nanoid": ["nanoid@3.3.11", "", { "bin": "bin/nanoid.cjs" }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="], + + "wrap-ansi-cjs/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], + + "wrap-ansi/string-width/emoji-regex": ["emoji-regex@8.0.0", "", {}, "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="], + + "yargs/find-up/locate-path": ["locate-path@5.0.0", "", { "dependencies": { "p-locate": "^4.1.0" } }, "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="], + + "@isaacs/cliui/string-width/strip-ansi/ansi-regex": ["ansi-regex@6.2.2", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="], + + "@isaacs/cliui/wrap-ansi/strip-ansi/ansi-regex": ["ansi-regex@6.2.2", "", {}, "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg=="], + + "@typescript-eslint/typescript-estree/minimatch/brace-expansion/balanced-match": ["balanced-match@4.0.4", "", {}, "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA=="], + + "yargs/find-up/locate-path/p-locate": ["p-locate@4.1.0", "", { "dependencies": { "p-limit": "^2.2.0" } }, "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="], + + "yargs/find-up/locate-path/p-locate/p-limit": ["p-limit@2.3.0", "", { "dependencies": { "p-try": "^2.0.0" } }, "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="], + } +} diff --git a/pledge-now-pay-later/docker-compose.yml b/pledge-now-pay-later/docker-compose.yml new file mode 100644 index 0000000..7a6bc51 --- /dev/null +++ b/pledge-now-pay-later/docker-compose.yml @@ -0,0 +1,23 @@ +version: "3.8" + +services: + postgres: + image: postgres:16-alpine + restart: unless-stopped + ports: + - "5432:5432" + environment: + POSTGRES_DB: pnpl + POSTGRES_USER: pnpl + POSTGRES_PASSWORD: pnpl_dev + volumes: + - pgdata:/var/lib/postgresql/data + + redis: + image: redis:7-alpine + restart: unless-stopped + ports: + - "6379:6379" + +volumes: + pgdata: diff --git a/pledge-now-pay-later/docs/EMBED_GUIDE.md b/pledge-now-pay-later/docs/EMBED_GUIDE.md new file mode 100644 index 0000000..771163e --- /dev/null +++ b/pledge-now-pay-later/docs/EMBED_GUIDE.md @@ -0,0 +1,134 @@ +# Embed Guide — Add Pledge Now, Pay Later to Your Website + +## Option 1: QR Code + Direct Link (Recommended) + +The simplest way — just share your pledge page URL or print the QR code. + +### Get Your Link +Every QR source generates a unique link: +``` +https://your-domain.com/p/{code} +``` + +### Add a Button to Your Website +```html + + Pledge Now → + +``` + +### Embed as Full-Page iframe +```html + +``` + +## Option 2: QR Code for Print Materials + +1. Go to **Dashboard → Events → [Your Event] → QR Codes** +2. Click **Download PNG** for each QR code +3. Print on table cards, flyers, or banners + +### Recommended Sizes +- **Table cards**: 5cm × 5cm QR with label below +- **Banners**: 15cm × 15cm QR +- **Flyers**: 3cm × 3cm QR (still scannable) + +### Print Template (HTML) +```html +
+ +

Scan to Pledge

+

Table 5 · Ramadan Gala 2025

+
+``` + +## Option 3: Webhook Integration (Advanced) + +Connect reminders to your existing email/SMS tools: + +### Poll for Due Reminders +```bash +curl -X GET "https://your-domain.com/api/webhooks?since=2025-01-01T00:00:00Z" \ + -H "x-org-id: YOUR_ORG_ID" +``` + +### Response Format +```json +{ + "events": [ + { + "event": "reminder.due", + "timestamp": "2025-03-17T10:00:00Z", + "data": { + "reminderId": "clx...", + "pledgeId": "clx...", + "step": 1, + "channel": "email", + "donor": { + "name": "Sarah Khan", + "email": "sarah@example.com", + "phone": "07700900001" + }, + "pledge": { + "reference": "PNPL-7K4P-50", + "amount": 5000, + "rail": "bank" + }, + "event": "Ramadan Gala 2025" + } + } + ] +} +``` + +### Zapier / Make Setup +1. Create a scheduled trigger (every 15 minutes) +2. HTTP GET to `/api/webhooks?since={{last_run}}` +3. For each event, send email/SMS via your provider +4. Templates available in Dashboard → Exports + +## Option 4: CRM Integration + +### Export Pledge Data +```bash +curl -X GET "https://your-domain.com/api/exports/crm-pack" \ + -H "x-org-id: YOUR_ORG_ID" \ + -o pledges.csv +``` + +### CSV Fields +| Field | Description | +|-------|-------------| +| pledge_reference | Unique ref (PNPL-XXXX-NN) | +| donor_name | Donor's name | +| donor_email | Email address | +| donor_phone | Phone number | +| amount_gbp | Amount in pounds | +| payment_method | bank / gocardless / card | +| status | new / initiated / paid / overdue / cancelled | +| event_name | Source event | +| source_label | QR source label | +| volunteer_name | Assigned volunteer | +| table_name | Table assignment | +| gift_aid | Yes / No | +| pledged_at | ISO timestamp | +| paid_at | ISO timestamp (if paid) | +| days_to_collect | Number of days to payment | + +### Salesforce Import +1. Download CRM pack CSV +2. Salesforce → Setup → Data Import Wizard +3. Map fields: pledge_reference → External ID, amount_gbp → Amount, etc. + +### Beacon CRM Import +1. Download CRM pack CSV +2. Beacon → Contacts → Import +3. Map donor fields and donation amount diff --git a/pledge-now-pay-later/docs/PRODUCT_SPEC.md b/pledge-now-pay-later/docs/PRODUCT_SPEC.md new file mode 100644 index 0000000..3357b7c --- /dev/null +++ b/pledge-now-pay-later/docs/PRODUCT_SPEC.md @@ -0,0 +1,1364 @@ +# Pledge Now, Pay Later — Product Specification + +> **Version:** 1.0 +> **Last updated:** 2026-02-28 +> **Status:** Implementation in progress + +--- + +## Table of Contents + +1. [Overview](#1-overview) +2. [User Personas](#2-user-personas) +3. [Core Flows](#3-core-flows) +4. [Data Model](#4-data-model) +5. [API Contracts](#5-api-contracts) +6. [Payment Reference Design](#6-payment-reference-design) +7. [Analytics Events](#7-analytics-events) +8. [Lead Qualification](#8-lead-qualification) +9. [Integration Points](#9-integration-points) +10. [Non-Functional Requirements](#10-non-functional-requirements) + +--- + +## 1. Overview + +**Pledge Now, Pay Later** (PNPL) is a free-forever micro-SaaS that helps UK charities capture donation intent at live events — dinners, auctions, fun runs, Friday prayers — and follow through to actual payment. + +### The Problem + +At charity events, donors say "I'll donate later" and never do. Event teams lose 40–60% of pledged income because there's no system to: +- Capture pledges quickly on mobile +- Attribute donations to tables, volunteers, or campaigns +- Follow up automatically +- Reconcile bank payments against pledges + +### The Solution + +PNPL converts verbal intent into tracked, attributed digital pledges in **15 seconds**, then drives payment collection through the donor's preferred method: + +| Payment Rail | Fees | Collection | Best For | +|-----------------|-------|----------------|--------------------| +| Bank transfer | £0 | Manual + match | Most donors (UK) | +| Direct Debit | ~1% | Automatic | Recurring/high-value| +| Card | ~1.4% | Instant | Convenience | + +### Business Model + +``` +┌─────────────────────────────────────────────────────┐ +│ FREE FOREVER │ +│ Event setup · QR codes · Pledge flow · Reminders │ +│ Bank reconciliation · CRM export · Dashboard │ +└──────────────────────┬──────────────────────────────┘ + │ + Qualified Lead Signal + (events created + pledges collected) + │ + ▼ +┌─────────────────────────────────────────────────────┐ +│ FRACTIONAL HEAD OF TECHNOLOGY │ +│ Omair's consultancy — pre-filled application with │ +│ event performance metrics from PNPL usage │ +└─────────────────────────────────────────────────────┘ +``` + +The product is genuinely free. No tiered pricing, no feature gates. Revenue comes from qualifying charity organisations that need broader technology leadership — PNPL usage data pre-fills the consultancy application with proof of operational maturity. + +--- + +## 2. User Personas + +### 2.1 Event Lead / Fundraising Manager + +| Attribute | Detail | +|--------------|---------------------------------------------------------| +| **Role** | Creates events, manages QR codes, monitors pledge pipeline | +| **Goal** | Maximise pledge-to-payment conversion | +| **Pain** | Spreadsheets, lost pledges, no attribution | +| **Key screens** | Dashboard, Event setup, Reconciliation, CRM export | +| **Tech comfort** | Moderate — can upload CSVs, follow guided workflows | + +### 2.2 Donor + +| Attribute | Detail | +|--------------|---------------------------------------------------------| +| **Role** | Scans QR code at event, makes a pledge, pays later | +| **Goal** | Pledge quickly without friction, pay when convenient | +| **Pain** | Long forms, app installs, payment pressure at events | +| **Key screens** | 3-step pledge flow (Amount → Method → Identity) | +| **Tech comfort** | Any — mobile web only, no account required | + +### 2.3 Finance / Admin + +| Attribute | Detail | +|--------------|---------------------------------------------------------| +| **Role** | Reconciles bank statements, exports data for CRM/Gift Aid | +| **Goal** | Match bank payments to pledges, produce accurate records | +| **Pain** | Manual bank statement line-matching, Gift Aid declarations | +| **Key screens** | Reconciliation tool, CRM export, Pledge list | +| **Tech comfort** | Comfortable with CSV imports/exports | + +### 2.4 Volunteer + +| Attribute | Detail | +|--------------|---------------------------------------------------------| +| **Role** | Assigned a personal QR code, encourages table donations | +| **Goal** | Show QR, let donors pledge painlessly | +| **Pain** | Collecting cash, keeping track of who pledged what | +| **Key screens** | None — shows printed QR or phone screen to donors | +| **Tech comfort** | Low — just needs to hold up a QR code | + +--- + +## 3. Core Flows + +### 3.1 Event Setup Flow + +``` +┌──────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ +│ 1. Create │───▶│ 2. Add QR │───▶│ 3. Download │───▶│ 4. Share │ +│ Event │ │ Sources │ │ QR sheets │ │ Event Link │ +└──────────────┘ └──────────────┘ └──────────────┘ └──────────────┘ +``` + +**Step 1 — Create Event** +- Name (required), date, location, fundraising goal +- Auto-generates URL slug: `{name}-{timestamp_base36}` +- Status starts as `active` (also: `draft`, `closed`, `archived`) + +**Step 2 — Add QR Sources** +- Each QR source represents a table, volunteer, or campaign channel +- Label examples: `"Table 5"`, `"Volunteer: Ahmed"`, `"Instagram Story"` +- Each gets a unique 8-character code (human-safe alphabet) +- QR encodes: `{BASE_URL}/p/{code}` + +**Step 3 — Download QR Sheets** +- Individual PNG download per QR source (800×800px) +- QR colour: org primary colour (default `#1e40af`) +- Error correction: Level M (15% damage tolerance) + +**Step 4 — Share Event Link** +- Direct URL for digital channels (no QR needed) +- Attribution still tracked via `qrSourceId` + +--- + +### 3.2 Donor Pledge Flow (3 screens, 15 seconds) + +``` + ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────────┐ + │ Screen 1 │────▶│ Screen 2 │────▶│ Screen 3 │────▶│ Confirmation │ + │ Amount │ │ Method │ │ Identity │ │ + Instructions │ + └─────────────┘ └─────────────┘ └─────────────┘ └─────────────────┘ + + 6 presets + Bank (★) Email OR phone Bank → ref + copy + custom entry Direct Debit Name (optional) DD → mandate link + Card Gift Aid checkbox Card → checkout +``` + +**Screen 1 — Amount** +- Six preset buttons (e.g., £10, £25, £50, £100, £250, £500) +- Custom amount input (min £1, max £1,000,000) +- Analytics: `amount_selected` fires on tap + +**Screen 2 — Payment Method** +- **Bank Transfer** (recommended) — zero fees, donor sends manually +- **Direct Debit** — GoCardless mandate, auto-collected +- **Card** — Stripe checkout (future) +- Bank is visually highlighted as the recommended option +- Analytics: `rail_selected` fires on tap + +**Screen 3 — Identity** +- Email **or** phone required (at least one) +- Name optional +- Gift Aid checkbox with eligibility explainer +- Analytics: `identity_submitted` fires on submit + +**Confirmation — Payment Instructions** +- Varies by rail: + +| Rail | Confirmation Content | +|------|---------------------| +| **Bank** | Sort code, account number, account name, **unique reference** with one-tap copy button, "I've paid" button | +| **Direct Debit** | GoCardless mandate link (redirects to authorisation) | +| **Card** | Stripe payment link (future) | + +- Analytics: `pledge_completed` fires on render + +--- + +### 3.3 Payment Collection Flow + +#### Bank Transfer (Primary) + +``` + Donor Charity's Bank PNPL + │ │ │ + │ Transfer with ref │ │ + │ PNPL-7K4P-50 │ │ + │─────────────────────────────▶│ │ + │ │ │ + │ │ Export CSV │ + │ │──────────────────────▶│ + │ │ │ + │ │ │ Auto-match by + │ │ │ reference code + │ │ │ + │ │ Pledge marked "paid" │ + │ │◀──────────────────────│ + │ │ │ + │ Reminders stop │ │ + │◀─────────────────────────────────────────────────────│ +``` + +1. Donor transfers money using the unique reference +2. Charity exports bank statement as CSV +3. Uploads CSV to PNPL reconciliation tool +4. PNPL auto-matches references → marks pledges as paid +5. Remaining reminders are skipped + +#### GoCardless Direct Debit + +``` + Donor GoCardless PNPL + │ │ │ + │ Authorise mandate │ │ + │─────────────────────────────▶│ │ + │ │ │ + │ │ Payment collected │ + │ │──────────────────────▶│ + │ │ │ + │ │ Webhook: confirmed │ + │ │──────────────────────▶│ + │ │ │ + │ │ Pledge marked "paid" │ + │ │◀──────────────────────│ +``` + +#### Card (Future — Stripe) + +``` + Donor ──▶ Stripe Checkout ──▶ Webhook confirms ──▶ Pledge marked "paid" +``` + +--- + +### 3.4 Reminder Sequence + +| Step | Timing | Template Key | Subject | Description | +|------|--------|-------------------|----------------------------------|-------------------------------------------------------| +| 0 | T+0 | `instructions` | Payment details for your £X pledge | Bank details, reference, copy button | +| 1 | T+2d | `gentle_nudge` | Quick reminder about your pledge | Friendly — "if you've already paid, thank you!" | +| 2 | T+7d | `urgency_impact` | Your pledge is making a difference | Impact story + urgency framing | +| 3 | T+14d | `final_reminder` | Final reminder about your pledge | Clear options: pay now or cancel | + +**Stop Rules:** +- Auto-stop on payment match (bank reconciliation or webhook) +- Auto-stop on manual "mark as paid" by staff +- Auto-stop on pledge cancellation +- Donor can self-cancel via link in every reminder + +**Channel:** Email (default). SMS and WhatsApp channels are defined in the schema but not yet implemented. + +**Delivery:** Reminders are exposed via a polling webhook endpoint (`GET /api/webhooks`). External automation tools (Zapier, Make, n8n) poll for due reminders and handle actual email/SMS delivery. + +--- + +### 3.5 Reconciliation Flow + +``` + ┌────────────┐ ┌────────────┐ ┌────────────┐ ┌────────────┐ ┌────────────┐ + │ 1. Export │───▶│ 2. Upload │───▶│ 3. Map │───▶│ 4. Review │───▶│ 5. Confirm │ + │ Bank CSV │ │ to PNPL │ │ Columns │ │ Matches │ │ & Apply │ + └────────────┘ └────────────┘ └────────────┘ └────────────┘ └────────────┘ +``` + +**Step 1 — Export Bank Statement** +- Download CSV from online banking (any UK bank format) + +**Step 2 — Upload to PNPL** +- `POST /api/imports/bank-statement` with `multipart/form-data` +- Accepts `.csv` files, parsed with PapaParse + +**Step 3 — Configure Column Mapping** +- Map bank-specific column names: + - `dateCol` → transaction date + - `descriptionCol` → transaction description + - `amountCol` or `creditCol` → payment amount + - `referenceCol` → payment reference (optional — also searched in description) +- Only credit rows (positive amounts) are processed + +**Step 4 — Auto-Match** +Three matching strategies applied in order: + +| Priority | Strategy | Confidence | Description | +|----------|--------------------|-----------|--------------------------------------------| +| 1 | Exact reference | `exact` | Normalised ref matches `reference` column | +| 2 | Description search | `exact` | Normalised ref found within `description` | +| 3 | Partial code match | `partial` | 4-char code portion found in `description` | + +Normalisation: strip spaces, strip dashes, uppercase. e.g., `pnpl 7k4p 50` → `PNPL7K4P50` + +**Step 5 — Confirm & Apply** +- Exact matches are auto-confirmed: + - Pledge status → `paid`, `paidAt` set + - Payment record created (`matchedBy: "auto"`) + - Pending reminders → `skipped` +- Partial matches flagged for manual review +- Import record saved with stats (total rows, credits, matches, unmatched) + +--- + +### 3.6 CRM Export Flow + +**Endpoint:** `GET /api/exports/crm-pack` + +Downloads a CSV with full pledge attribution. Filterable by `?eventId=`. + +**Export Fields:** + +| Column | Description | Example | +|--------------------|------------------------------------------|-----------------------| +| `pledge_reference` | Unique bank-safe reference | `PNPL-7K4P-50` | +| `donor_name` | Donor's name (if provided) | `Sarah Ahmed` | +| `donor_email` | Donor's email | `sarah@example.com` | +| `donor_phone` | Donor's phone | `07700900123` | +| `amount_gbp` | Pledge amount in pounds | `50.00` | +| `payment_method` | Payment rail | `bank` | +| `status` | Current pledge status | `paid` | +| `event_name` | Source event | `Annual Gala 2026` | +| `source_label` | QR source label | `Table 5` | +| `volunteer_name` | Volunteer assigned to QR source | `Ahmed` | +| `table_name` | Table assigned to QR source | `VIP Table` | +| `gift_aid` | Gift Aid eligibility | `Yes` | +| `pledged_at` | Pledge creation timestamp (ISO 8601) | `2026-03-15T19:32:00Z`| +| `paid_at` | Payment confirmation timestamp | `2026-03-17T10:15:00Z`| +| `days_to_collect` | Days between pledge and payment | `2` | + +--- + +## 4. Data Model + +Ten tables in PostgreSQL 16, managed via Prisma ORM. + +### Entity Relationship Diagram + +``` +┌──────────────────┐ +│ Organization │ +│──────────────────│ +│ id │ +│ name │ ┌──────────────────┐ +│ slug (unique) │───────▶│ User │ +│ country │ 1:N │──────────────────│ +│ timezone │ │ id │ +│ bankName │ │ email (unique) │ +│ bankSortCode │ │ name │ +│ bankAccountNo │ │ hashedPassword │ +│ bankAccountName │ │ role │ +│ refPrefix │ │ organizationId │ +│ logo │ └──────────────────┘ +│ primaryColor │ +│ gcAccessToken │ +│ gcEnvironment │ +└────────┬─────────┘ + │ 1:N + ▼ +┌──────────────────┐ 1:N ┌──────────────────┐ +│ Event │───────▶│ QrSource │ +│──────────────────│ │──────────────────│ +│ id │ │ id │ +│ name │ │ label │ +│ slug │ │ code (unique) │ +│ description │ │ volunteerName │ +│ eventDate │ │ tableName │ +│ location │ │ eventId │ +│ goalAmount │ │ scanCount │ +│ currency │ └────────┬─────────┘ +│ status │ │ +│ organizationId │ │ 0:N +└────────┬─────────┘ │ + │ 1:N │ + ▼ │ +┌──────────────────┐◀────────────────┘ +│ Pledge │ +│──────────────────│ +│ id │ 1:1 ┌────────────────────────┐ +│ reference │───────▶│ PaymentInstruction │ +│ amountPence │ │────────────────────────│ +│ currency │ │ id │ +│ rail │ │ pledgeId (unique) │ +│ status │ │ bankReference │ +│ donorName │ │ bankDetails (JSON) │ +│ donorEmail │ │ gcMandateId │ +│ donorPhone │ │ gcMandateUrl │ +│ giftAid │ │ sentAt │ +│ iPaidClickedAt │ └────────────────────────┘ +│ eventId │ +│ qrSourceId │ 1:N ┌──────────────────┐ +│ organizationId │───────▶│ Payment │ +│ paidAt │ │──────────────────│ +│ cancelledAt │ │ id │ +└────────┬─────────┘ │ pledgeId │ + │ │ provider │ + │ │ providerRef │ + │ 1:N │ amountPence │ + ▼ │ status │ +┌──────────────────┐ │ matchedBy │ +│ Reminder │ │ receivedAt │ +│──────────────────│ │ importId │ +│ id │ └──────────────────┘ +│ pledgeId │ +│ step │ +│ channel │ +│ scheduledAt │ +│ sentAt │ +│ status │ +│ payload (JSON) │ +└──────────────────┘ + +┌──────────────────┐ 1:N ┌──────────────────┐ +│ Import │───────▶│ Payment │ +│──────────────────│ │ (via importId) │ +│ id │ └──────────────────┘ +│ organizationId │ +│ kind │ +│ fileName │ +│ rowCount │ ┌──────────────────┐ +│ matchedCount │ │ AnalyticsEvent │ +│ unmatchedCount │ │──────────────────│ +│ mappingConfig │ │ id │ +│ stats (JSON) │ │ eventType │ +│ status │ │ pledgeId │ +└──────────────────┘ │ eventId │ + │ qrSourceId │ + │ metadata (JSON) │ + │ createdAt │ + └──────────────────┘ +``` + +### Table Details + +#### 4.1 `Organization` + +The top-level tenant. All data is scoped to an organization. + +| Field | Type | Description | +|-----------------|----------|--------------------------------------------------| +| `id` | `cuid` | Primary key | +| `name` | `string` | Organisation display name | +| `slug` | `string` | URL-safe unique identifier | +| `country` | `string` | Default `"UK"` | +| `timezone` | `string` | Default `"Europe/London"` | +| `bankName` | `string?`| Bank name for payment instructions | +| `bankSortCode` | `string?`| 6-digit sort code | +| `bankAccountNo` | `string?`| 8-digit account number | +| `bankAccountName`| `string?`| Name on the bank account | +| `refPrefix` | `string` | Reference prefix, default `"PNPL"`, max 4 chars | +| `logo` | `string?`| Logo URL | +| `primaryColor` | `string` | Brand colour, default `"#1e40af"` | +| `gcAccessToken` | `string?`| GoCardless API token | +| `gcEnvironment` | `string` | `"sandbox"` or `"live"` | + +#### 4.2 `User` + +Staff/admin accounts for the dashboard. + +| Field | Type | Description | +|-----------------|----------|--------------------------------------------------| +| `id` | `cuid` | Primary key | +| `email` | `string` | Unique email address | +| `name` | `string?`| Display name | +| `hashedPassword`| `string?`| bcrypt hash (nullable for SSO) | +| `role` | `string` | `super_admin`, `org_admin`, `staff`, `volunteer` | +| `organizationId`| `string` | FK → Organization | + +#### 4.3 `Event` + +A fundraising event that donors pledge at. + +| Field | Type | Description | +|-----------------|------------|------------------------------------------------| +| `id` | `cuid` | Primary key | +| `name` | `string` | Event name (1–200 chars) | +| `slug` | `string` | URL-safe slug (auto-generated) | +| `description` | `string?` | Event description (max 2000 chars) | +| `eventDate` | `DateTime?`| When the event takes place | +| `location` | `string?` | Venue (max 500 chars) | +| `goalAmount` | `int?` | Fundraising target **in pence** | +| `currency` | `string` | Default `"GBP"` | +| `status` | `string` | `draft`, `active`, `closed`, `archived` | +| `organizationId`| `string` | FK → Organization | + +Unique constraint: `(organizationId, slug)` + +#### 4.4 `QrSource` + +An attribution source — a specific QR code tied to a table, volunteer, or channel. + +| Field | Type | Description | +|----------------|----------|---------------------------------------------------| +| `id` | `cuid` | Primary key | +| `label` | `string` | Human-readable label (1–100 chars) | +| `code` | `string` | Unique 8-char token for URLs | +| `volunteerName`| `string?`| Volunteer's name (for attribution) | +| `tableName` | `string?`| Table identifier (for attribution) | +| `eventId` | `string` | FK → Event | +| `scanCount` | `int` | Number of times QR was scanned (auto-incremented) | + +#### 4.5 `Pledge` + +The core entity — a donor's promise to pay. + +| Field | Type | Description | +|-----------------|------------|------------------------------------------------| +| `id` | `cuid` | Primary key | +| `reference` | `string` | Unique bank-safe reference (see §6) | +| `amountPence` | `int` | Pledge amount in pence (min 100 = £1) | +| `currency` | `string` | Default `"GBP"` | +| `rail` | `string` | `bank`, `gocardless`, `card` | +| `status` | `string` | `new`, `initiated`, `paid`, `overdue`, `cancelled` | +| `donorName` | `string?` | Donor's name | +| `donorEmail` | `string?` | Donor's email | +| `donorPhone` | `string?` | Donor's phone | +| `giftAid` | `boolean` | Gift Aid declaration (default `false`) | +| `iPaidClickedAt`| `DateTime?`| When donor clicked "I've paid" | +| `notes` | `string?` | Staff notes | +| `eventId` | `string` | FK → Event | +| `qrSourceId` | `string?` | FK → QrSource (null if direct link) | +| `organizationId`| `string` | FK → Organization | +| `paidAt` | `DateTime?`| When payment was confirmed | +| `cancelledAt` | `DateTime?`| When pledge was cancelled | + +Validation: `donorEmail` or `donorPhone` must be present (enforced by Zod schema). + +**Status State Machine:** + +``` + ┌──────────────────────┐ + ▼ │ + ┌───────┐ "I've paid" ┌──────────┐│ bank match / + │ new │─────────────────▶│initiated ││ webhook + │ │ │ ││ + └───┬───┘ └────┬─────┘│ + │ │ │ + │ bank match / webhook │ │ + │ │ │ + ▼ ▼ │ + ┌───────┐ ┌──────────┐│ + │ paid │◀─────────────────│ paid ││ + └───────┘ └──────────┘│ + ▲ │ + │ ┌──────────┐ │ + │ │ overdue │─────────────┘ + │ └────┬─────┘ + │ │ + │ ▼ + │ ┌──────────┐ + └─────────│cancelled │ + └──────────┘ +``` + +#### 4.6 `PaymentInstruction` + +Bank transfer details stored per pledge. Created automatically for `rail: "bank"`. + +| Field | Type | Description | +|----------------|----------|---------------------------------------------------| +| `id` | `cuid` | Primary key | +| `pledgeId` | `string` | FK → Pledge (unique — 1:1) | +| `bankReference`| `string` | The reference donor must use | +| `bankDetails` | `JSON` | `{sortCode, accountNo, accountName, bankName}` | +| `gcMandateId` | `string?`| GoCardless mandate ID | +| `gcMandateUrl` | `string?`| GoCardless mandate authorisation URL | +| `sentAt` | `DateTime?`| When instructions were first sent | + +#### 4.7 `Payment` + +A confirmed money movement against a pledge. + +| Field | Type | Description | +|--------------|------------|--------------------------------------------------| +| `id` | `cuid` | Primary key | +| `pledgeId` | `string` | FK → Pledge | +| `provider` | `string` | `bank`, `gocardless`, `stripe` | +| `providerRef`| `string?` | External payment/transaction ID | +| `amountPence`| `int` | Amount received in pence | +| `status` | `string` | `pending`, `confirmed`, `failed` | +| `matchedBy` | `string?` | `auto` (reconciliation) or `manual` (staff) | +| `receivedAt` | `DateTime?`| When money was received | +| `importId` | `string?` | FK → Import (if matched via bank statement) | + +#### 4.8 `Reminder` + +Scheduled follow-up messages for a pledge. + +| Field | Type | Description | +|--------------|------------|--------------------------------------------------| +| `id` | `cuid` | Primary key | +| `pledgeId` | `string` | FK → Pledge | +| `step` | `int` | Sequence number: `0`, `1`, `2`, `3` | +| `channel` | `string` | `email`, `sms`, `whatsapp` | +| `scheduledAt`| `DateTime` | When to send | +| `sentAt` | `DateTime?`| When actually sent | +| `status` | `string` | `pending`, `sent`, `skipped`, `failed` | +| `payload` | `JSON?` | Template key + subject line | + +#### 4.9 `Import` + +Record of a bank statement upload and its results. + +| Field | Type | Description | +|----------------|------------|------------------------------------------------| +| `id` | `cuid` | Primary key | +| `organizationId`| `string` | FK → Organization | +| `kind` | `string` | `bank_statement`, `gocardless_export`, `crm_export` | +| `fileName` | `string?` | Original upload filename | +| `rowCount` | `int` | Total rows in CSV | +| `matchedCount` | `int` | Rows matched to pledges | +| `unmatchedCount`| `int` | Rows that didn't match | +| `mappingConfig`| `JSON?` | Column mapping used | +| `stats` | `JSON?` | Detailed match statistics | +| `status` | `string` | `pending`, `processing`, `completed`, `failed` | + +#### 4.10 `AnalyticsEvent` + +Append-only event log for funnel tracking. + +| Field | Type | Description | +|-------------|------------|---------------------------------------------------| +| `id` | `cuid` | Primary key | +| `eventType` | `string` | Event name (see §7) | +| `pledgeId` | `string?` | FK → Pledge (if applicable) | +| `eventId` | `string?` | FK → Event (if applicable) | +| `qrSourceId`| `string?` | FK → QrSource (if applicable) | +| `metadata` | `JSON?` | Arbitrary key-value data | +| `createdAt` | `DateTime` | Timestamp | + +--- + +## 5. API Contracts + +All endpoints are Next.js API routes. Authentication is via `x-org-id` header (NextAuth.js integration ready but not yet enforced). + +### 5.1 `GET /api/qr/{token}` — Resolve QR Code + +Resolves a QR source token to event info. Increments `scanCount`. + +**Path params:** `token` — 8-char QR source code + +**Response `200`:** +```json +{ + "id": "clx...", + "name": "Annual Gala 2026", + "organizationName": "Hope Foundation", + "qrSourceId": "clx...", + "qrSourceLabel": "Table 5" +} +``` + +**Response `404`:** +```json +{ "error": "This pledge link is no longer active" } +``` + +--- + +### 5.2 `POST /api/pledges` — Create Pledge + +Creates a pledge with payment instruction and reminder schedule in a single transaction. + +**Request body:** +```json +{ + "amountPence": 5000, + "rail": "bank", + "donorName": "Sarah Ahmed", + "donorEmail": "sarah@example.com", + "donorPhone": "07700900123", + "giftAid": true, + "eventId": "clx...", + "qrSourceId": "clx..." +} +``` + +**Validation (Zod):** +- `amountPence`: int, 100–100,000,000 (£1–£1M) +- `rail`: `"bank" | "gocardless" | "card"` +- `donorEmail` or `donorPhone`: at least one required +- `eventId`: required + +**Response `201` (bank rail):** +```json +{ + "id": "clx...", + "reference": "PNPL-7K4P-50", + "bankDetails": { + "bankName": "Barclays", + "sortCode": "20-00-00", + "accountNo": "12345678", + "accountName": "Hope Foundation" + } +} +``` + +**Response `201` (other rails):** +```json +{ + "id": "clx...", + "reference": "PNPL-7K4P-50" +} +``` + +**Side effects:** +- Generates collision-resistant reference (up to 10 retries) +- Creates `PaymentInstruction` (bank rail) +- Creates 4 `Reminder` records (T+0, T+2d, T+7d, T+14d) +- Tracks `pledge_completed` analytics event + +--- + +### 5.3 `PATCH /api/pledges/{id}` — Update Pledge Status + +**Request body:** +```json +{ + "status": "paid", + "notes": "Confirmed via bank statement" +} +``` + +**Validation:** +- `status`: `"new" | "initiated" | "paid" | "overdue" | "cancelled"` +- `notes`: optional, max 1000 chars + +**Response `200`:** Full pledge object. + +**Side effects:** +- Sets `paidAt` when status → `paid` +- Sets `cancelledAt` when status → `cancelled` +- Skips all pending reminders when status → `paid` or `cancelled` + +--- + +### 5.4 `POST /api/pledges/{id}/mark-initiated` — Donor "I've Paid" + +Called when donor taps the "I've paid" button on the confirmation screen. + +**Request body:** None + +**Response `200`:** +```json +{ "ok": true } +``` + +**Side effects:** +- Sets `status` → `"initiated"`, `iPaidClickedAt` → now + +--- + +### 5.5 `GET /api/events` — List Events + +Returns all events for the organisation with pledge aggregates. + +**Headers:** `x-org-id` + +**Response `200`:** +```json +[ + { + "id": "clx...", + "name": "Annual Gala 2026", + "slug": "annual-gala-2026-m3k9a", + "eventDate": "2026-03-15T18:00:00.000Z", + "location": "Grand Hall, London", + "goalAmount": 5000000, + "status": "active", + "pledgeCount": 47, + "qrSourceCount": 12, + "totalPledged": 3750000, + "totalCollected": 2100000, + "createdAt": "2026-02-01T10:00:00.000Z" + } +] +``` + +Note: `goalAmount`, `totalPledged`, and `totalCollected` are in **pence**. + +--- + +### 5.6 `POST /api/events` — Create Event + +**Headers:** `x-org-id` + +**Request body:** +```json +{ + "name": "Annual Gala 2026", + "description": "Our biggest fundraiser of the year", + "eventDate": "2026-03-15T18:00:00.000Z", + "location": "Grand Hall, London", + "goalAmount": 5000000, + "currency": "GBP" +} +``` + +**Validation:** +- `name`: required, 1–200 chars +- `description`: optional, max 2000 chars +- `eventDate`: optional, ISO 8601 +- `location`: optional, max 500 chars +- `goalAmount`: optional, positive int (pence) + +**Response `201`:** Full event object. + +**Slug generation:** `{name_slugified}-{timestamp_base36}` + +--- + +### 5.7 `GET /api/events/{id}/qr` — List QR Sources + +Returns QR sources for an event with pledge stats. + +**Response `200`:** +```json +[ + { + "id": "clx...", + "label": "Table 5", + "code": "abc23def", + "volunteerName": "Ahmed", + "tableName": "VIP Table", + "scanCount": 23, + "pledgeCount": 8, + "totalPledged": 450000, + "createdAt": "2026-02-10T14:00:00.000Z" + } +] +``` + +--- + +### 5.8 `POST /api/events/{id}/qr` — Create QR Source + +**Request body:** +```json +{ + "label": "Table 5", + "volunteerName": "Ahmed", + "tableName": "VIP Table" +} +``` + +**Validation:** +- `label`: required, 1–100 chars +- `volunteerName`: optional, max 100 chars +- `tableName`: optional, max 100 chars + +**Response `201`:** Full QrSource object including generated `code`. + +--- + +### 5.9 `GET /api/events/{id}/qr/{qrId}/download` — Download QR PNG + +Returns an 800×800px PNG image of the QR code. + +**Query params:** `code` — QR source code (optional, falls back to `qrId`) + +**Response:** `image/png` binary with `Content-Disposition: attachment` + +--- + +### 5.10 `GET /api/dashboard` — Dashboard Stats + +Returns full pipeline data with funnel analytics. + +**Headers:** `x-org-id` +**Query params:** `eventId` (optional — filter to single event) + +**Response `200`:** +```json +{ + "summary": { + "totalPledges": 47, + "totalPledgedPence": 3750000, + "totalCollectedPence": 2100000, + "collectionRate": 56, + "overdueRate": 12 + }, + "byStatus": { + "new": 10, + "initiated": 5, + "paid": 25, + "overdue": 4, + "cancelled": 3 + }, + "byRail": { + "bank": 38, + "gocardless": 7, + "card": 2 + }, + "topSources": [ + { "label": "Table 5", "count": 8, "amount": 450000 } + ], + "funnel": { + "pledge_start": 120, + "amount_selected": 95, + "rail_selected": 80, + "identity_submitted": 55, + "pledge_completed": 47 + }, + "pledges": [ + { + "id": "clx...", + "reference": "PNPL-7K4P-50", + "amountPence": 5000, + "status": "paid", + "rail": "bank", + "donorName": "Sarah Ahmed", + "donorEmail": "sarah@example.com", + "donorPhone": null, + "eventName": "Annual Gala 2026", + "source": "Table 5", + "volunteerName": "Ahmed", + "giftAid": true, + "createdAt": "2026-03-15T19:32:00.000Z", + "paidAt": "2026-03-17T10:15:00.000Z", + "nextReminder": null, + "lastTouch": "2026-03-15T19:32:00.000Z" + } + ] +} +``` + +--- + +### 5.11 `POST /api/imports/bank-statement` — Upload & Match Bank CSV + +**Content-Type:** `multipart/form-data` + +**Form fields:** +- `file` — CSV file +- `mapping` — JSON string with column mapping + +**Mapping schema:** +```json +{ + "dateCol": "Date", + "descriptionCol": "Description", + "amountCol": "Amount", + "creditCol": "Credit", + "referenceCol": "Reference" +} +``` + +**Response `200`:** +```json +{ + "importId": "clx...", + "summary": { + "totalRows": 150, + "credits": 45, + "exactMatches": 12, + "partialMatches": 3, + "unmatched": 30, + "autoConfirmed": 12 + }, + "matches": [ + { + "bankRow": { + "date": "2026-03-17", + "description": "PNPL-7K4P-50 S AHMED", + "amount": 50.00, + "reference": "PNPL-7K4P-50" + }, + "pledgeId": "clx...", + "pledgeReference": "PNPL-7K4P-50", + "confidence": "exact", + "matchedAmount": 50.00, + "autoConfirmed": true + } + ] +} +``` + +**Side effects (exact matches):** +- Pledge status → `paid`, `paidAt` set +- Payment record created (`provider: "bank"`, `matchedBy: "auto"`) +- Pending reminders → `skipped` + +--- + +### 5.12 `GET /api/exports/crm-pack` — Download CRM CSV + +**Headers:** `x-org-id` +**Query params:** `eventId` (optional) + +**Response:** `text/csv` with `Content-Disposition: attachment; filename="crm-export-YYYY-MM-DD.csv"` + +See §3.6 for field definitions. + +--- + +### 5.13 `GET /api/webhooks` — Poll Pending Reminders + +Polling endpoint for external automation (Zapier, Make, n8n). + +**Query params:** +- `since` — ISO 8601 timestamp (only reminders scheduled after this time) +- `limit` — max results (default 50) + +**Response `200`:** +```json +{ + "events": [ + { + "event": "reminder.due", + "timestamp": "2026-03-17T10:00:00.000Z", + "data": { + "reminderId": "clx...", + "pledgeId": "clx...", + "step": 1, + "channel": "email", + "scheduledAt": "2026-03-17T19:32:00.000Z", + "donor": { + "name": "Sarah Ahmed", + "email": "sarah@example.com", + "phone": null + }, + "pledge": { + "reference": "PNPL-7K4P-50", + "amount": 5000, + "rail": "bank" + }, + "event": "Annual Gala 2026", + "organization": "Hope Foundation", + "payload": { + "templateKey": "gentle_nudge", + "subject": "Quick reminder about your pledge" + } + } + } + ], + "count": 1 +} +``` + +--- + +### 5.14 `POST /api/analytics` — Track Event + +Fire-and-forget analytics tracking. Never returns errors to avoid breaking donor flow. + +**Request body:** +```json +{ + "eventType": "amount_selected", + "pledgeId": null, + "eventId": "clx...", + "qrSourceId": "clx...", + "metadata": { "amount": 5000, "preset": true } +} +``` + +**Response `200`:** +```json +{ "ok": true } +``` + +--- + +## 6. Payment Reference Design + +The payment reference is the critical link between a pledge in PNPL and a transaction on a bank statement. It must be simultaneously human-readable, bank-compatible, and collision-resistant. + +### Format + +``` +┌────────┐ ┌──────┐ ┌─────┐ +│ PREFIX │─│ CODE │─│ AMT │ +└────────┘ └──────┘ └─────┘ + 1–4 ch 4 ch 1–3 ch + +Example: PNPL-7K4P-50 +``` + +| Segment | Length | Source | Purpose | +|----------|---------|-------------------------------------|----------------------------| +| `PREFIX` | 1–4 ch | Org `refPrefix` (default `"PNPL"`) | Identify the charity | +| `CODE` | 4 ch | Random (human-safe alphabet) | Unique pledge identifier | +| `AMT` | 1–3 ch | Last 3 digits of `£` amount | Aide manual matching | + +### Human-Safe Alphabet + +``` +2 3 4 5 6 7 8 9 +A B C D E F G H J K L M N P Q R S T U V W X Y Z +``` + +**Excluded:** `0` (confused with `O`), `1` (confused with `I`/`l`), `I`, `O`, `l` + +31 characters → 4-char code = 31⁴ = **923,521 combinations per prefix** + +### Constraints + +| Constraint | Limit | Reason | +|---------------------|----------------|---------------------------------------------| +| Max total length | 18 characters | UK BACS payment reference field limit | +| Unique per database | Enforced | Prisma `@unique` constraint on `reference` | +| Collision retry | Up to 10 times | Generate new code if collision detected | +| Overflow protection | Truncate prefix| If ref > 18 chars, prefix truncated to 4 | + +### Matching Normalisation + +When matching bank statement descriptions against references: + +``` +Input: "pnpl 7k4p 50" → Normalised: "PNPL7K4P50" +Input: "PNPL-7K4P-50" → Normalised: "PNPL7K4P50" +Input: " Pnpl 7K4P " → Normalised: "PNPL7K4P" (trimmed) +``` + +Algorithm: strip all whitespace and dashes, uppercase. + +--- + +## 7. Analytics Events + +### Event Types + +| Event | When Fired | Metadata | +|----------------------------|---------------------------------------------------|-------------------------------| +| `pledge_start` | Donor opens pledge flow (QR scanned) | `{eventId, qrSourceId}` | +| `amount_selected` | Donor selects/enters amount | `{amount, preset: boolean}` | +| `rail_selected` | Donor chooses payment method | `{rail}` | +| `identity_submitted` | Donor submits contact details | `{hasEmail, hasPhone, giftAid}` | +| `pledge_completed` | Pledge created successfully | `{amountPence, rail}` | +| `instruction_copy_clicked` | Donor copies bank reference | `{reference}` | +| `i_paid_clicked` | Donor clicks "I've paid" | `{pledgeId}` | +| `payment_matched` | Payment confirmed (reconciliation or webhook) | `{matchedBy, provider}` | + +### Dashboard Metrics + +**Pledge Funnel:** +``` +pledge_start ████████████████████████████████████ 120 +amount_selected ████████████████████████████ 95 (79%) +rail_selected ██████████████████████ 80 (67%) +identity_submitted ██████████████ 55 (46%) +pledge_completed ████████████ 47 (39%) +``` + +**Collection Pipeline:** +- **Collection rate:** `totalCollectedPence / totalPledgedPence` (percentage) +- **Overdue rate:** `overdueCount / totalPledges` (percentage) +- **Top sources:** QR sources ranked by total amount pledged +- **By status:** Breakdown across `new`, `initiated`, `paid`, `overdue`, `cancelled` +- **By rail:** Breakdown across `bank`, `gocardless`, `card` + +--- + +## 8. Lead Qualification + +PNPL's business model generates qualified leads for Omair's fractional Head of Technology consultancy. The qualification system is passive — it observes usage patterns rather than gating features. + +### Trigger Conditions + +A lead is qualified when **any** of the following are met: +- Organisation has created ≥2 events **and** received ≥20 pledges total +- Organisation has received ≥£5,000 in total pledged amount +- Organisation has used reconciliation (≥1 bank statement import) + +### Qualification Score + +Score is calculated from observable usage signals: + +| Signal | Weight | Description | +|--------------------------------|--------|------------------------------------------| +| Attribution usage | High | Multiple QR sources per event | +| Follow-up behaviour | High | Checking dashboard, updating pledge statuses | +| Reconciliation imports | High | Uploading bank statements = operational maturity | +| Event frequency | Medium | Creating events regularly | +| Collection rate | Medium | Higher rate = engaged with the tool | +| CRM exports | Low | Using export = integrating with other systems | + +### Application Flow + +When the qualification threshold is met, the dashboard shows an "Apply for Fractional CTO" link at `/dashboard/apply`. + +The application form is **pre-filled** with: +- Organisation name and size (from event data) +- Number of events run +- Total pledges collected +- Collection rate +- Payment rails used +- Whether reconciliation is active + +This gives Omair immediate context on the charity's operational maturity without the applicant needing to self-report. + +--- + +## 9. Integration Points + +### 9.1 Webhook Polling (Zapier / Make / n8n) + +PNPL does not push webhooks. Instead, external automation tools **poll** for pending events: + +``` +GET /api/webhooks?since=2026-03-17T00:00:00Z&limit=50 +``` + +**Typical Zapier workflow:** +1. Schedule: poll every 5 minutes +2. Trigger: new `reminder.due` events +3. Action: send email via SendGrid / Mailchimp +4. Action: mark reminder as sent (future endpoint) + +**Event format:** See §5.13. + +### 9.2 CSV Export + +`GET /api/exports/crm-pack` produces a standard CSV importable into: +- Salesforce +- HubSpot +- Beacon CRM +- Donorfy +- Any spreadsheet tool + +### 9.3 GoCardless (Direct Debit) + +| Setting | Storage | Notes | +|------------------|--------------------------------|-------------------------------| +| Access token | `Organization.gcAccessToken` | Encrypted at rest | +| Environment | `Organization.gcEnvironment` | `"sandbox"` or `"live"` | +| Mandate ID | `PaymentInstruction.gcMandateId` | Stored per pledge | +| Mandate URL | `PaymentInstruction.gcMandateUrl` | Redirect URL for donor | + +**Flow:** Pledge created → mandate URL generated → donor authorises → GoCardless collects → webhook confirms → pledge marked paid. + +### 9.4 Future Integrations + +| Integration | Priority | Description | +|-----------------|----------|--------------------------------------------------| +| Stripe | High | Card payments via Checkout Sessions | +| Open Banking | Medium | Real-time payment initiation (no reference needed)| +| SMS (Twilio) | Medium | Reminder delivery via SMS | +| WhatsApp | Low | Reminder delivery via WhatsApp Business API | +| Stripe Identity | Low | Gift Aid address verification | + +--- + +## 10. Non-Functional Requirements + +### 10.1 Performance + +| Metric | Target | Rationale | +|-------------------------|-------------------|----------------------------------------| +| API response time | < 200ms (p95) | Mobile users on 4G at events | +| Pledge flow completion | > 80% | 3 screens, 15 seconds | +| QR scan → first screen | < 1s | Instant feel on scan | +| Bank CSV import (500 rows) | < 5s | Blocking UI operation | + +### 10.2 Reliability + +| Requirement | Implementation | +|--------------------------|---------------------------------------------------| +| Idempotent pledge creation | Reference uniqueness check + retry loop (10 attempts) | +| Analytics never fails | `POST /api/analytics` always returns `200`, catches all errors | +| Transaction safety | Pledge + PaymentInstruction + Reminders created in `$transaction` | +| Reminder stop guarantee | Paid/cancelled status change skips all pending reminders atomically | + +### 10.3 Mobile-First Design + +- **No account required** for donors — scan QR, pledge, done +- **One-tap reference copy** — copy button on confirmation screen +- **6 preset amounts** — big tap targets, no typing needed +- **Progressive identity** — email OR phone, name optional +- **Responsive** — Tailwind CSS, mobile-first breakpoints + +### 10.4 Security + +| Concern | Mitigation | +|----------------------|-------------------------------------------------------| +| Org data isolation | All queries scoped by `organizationId` | +| PII handling | Donor email/phone stored, not exposed in QR codes | +| Bank credentials | Stored in DB (future: encrypt at rest, vault) | +| GoCardless tokens | `gcAccessToken` in DB (future: encrypted) | +| Auth | NextAuth.js ready, `x-org-id` header interim | +| Rate limiting | Not yet implemented (future: Redis-based) | +| CSRF | Next.js built-in protections | + +### 10.5 Deployment + +``` +┌─────────────────────────────────────────────┐ +│ Docker Compose Stack │ +│ │ +│ ┌───────────────┐ ┌───────────────────┐ │ +│ │ PostgreSQL │ │ Redis │ │ +│ │ 16-alpine │ │ 7-alpine │ │ +│ │ port: 5432 │ │ port: 6379 │ │ +│ └───────────────┘ └───────────────────┘ │ +│ │ +│ ┌───────────────────────────────────────┐ │ +│ │ Next.js App │ │ +│ │ Node 18+ · port: 3000 │ │ +│ │ Prisma ORM · App Router │ │ +│ └───────────────────────────────────────┘ │ +└─────────────────────────────────────────────┘ +``` + +**Single command:** +```bash +docker compose up -d +npx prisma migrate deploy +npm run build && npm start +``` + +**Environment variables** (see `.env.example`): +- `DATABASE_URL` — PostgreSQL connection string +- `BASE_URL` — Public URL for QR codes +- `NEXTAUTH_SECRET` — Auth session secret +- GoCardless credentials (when ready) + +### 10.6 Observability + +| Layer | Tool | Notes | +|---------------|-------------------------|------------------------------------| +| Error logging | `console.error` | Structured in API routes | +| Analytics | `AnalyticsEvent` table | Queryable funnel data | +| Import audits | `Import` table | Full history of reconciliation runs| +| Scan tracking | `QrSource.scanCount` | QR engagement metric | + +--- + +## Appendix A: Glossary + +| Term | Definition | +|--------------------|-------------------------------------------------------------------| +| **Pledge** | A donor's declared intent to pay a specific amount | +| **Rail** | Payment method — bank transfer, Direct Debit, or card | +| **Reference** | Human-safe, bank-compatible unique code for matching payments | +| **QR Source** | An attribution point (table, volunteer, channel) with a unique QR | +| **Reconciliation** | Process of matching bank statement transactions to pledges | +| **Collection rate** | Percentage of pledged amount that has been confirmed as paid | +| **Initiated** | Donor has clicked "I've paid" but payment not yet confirmed | + +## Appendix B: Tech Stack Summary + +| Layer | Technology | Version | +|------------|--------------------------|---------| +| Framework | Next.js (App Router) | 14 | +| Language | TypeScript | — | +| Styling | Tailwind CSS + shadcn/ui | — | +| Database | PostgreSQL | 16 | +| ORM | Prisma | — | +| Validation | Zod | — | +| QR Codes | `qrcode` (node) | — | +| CSV | PapaParse | — | +| ID Gen | `nanoid` | — | +| Icons | Lucide React | — | +| Auth | NextAuth.js (ready) | — | +| Cache | Redis | 7 | diff --git a/pledge-now-pay-later/next.config.mjs b/pledge-now-pay-later/next.config.mjs new file mode 100644 index 0000000..8c8bab6 --- /dev/null +++ b/pledge-now-pay-later/next.config.mjs @@ -0,0 +1,6 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + output: "standalone", +}; + +export default nextConfig; diff --git a/pledge-now-pay-later/package-lock.json b/pledge-now-pay-later/package-lock.json new file mode 100644 index 0000000..00ade23 --- /dev/null +++ b/pledge-now-pay-later/package-lock.json @@ -0,0 +1,8166 @@ +{ + "name": "pledge-now-pay-later", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "pledge-now-pay-later", + "version": "0.1.0", + "dependencies": { + "@auth/prisma-adapter": "^2.11.1", + "@prisma/adapter-pg": "^7.4.2", + "@prisma/client": "^7.4.2", + "@stripe/stripe-js": "^8.8.0", + "@types/bcryptjs": "^2.4.6", + "@types/qrcode": "^1.5.6", + "bcryptjs": "^3.0.3", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "date-fns": "^4.1.0", + "lucide-react": "^0.575.0", + "nanoid": "^5.1.6", + "next": "14.2.35", + "next-auth": "^4.24.13", + "papaparse": "^5.5.3", + "pg": "^8.19.0", + "prisma": "^7.4.2", + "qrcode": "^1.5.4", + "react": "^18", + "react-dom": "^18", + "stripe": "^20.4.0", + "tailwind-merge": "^3.5.0", + "zod": "^4.3.6" + }, + "devDependencies": { + "@types/node": "^20", + "@types/papaparse": "^5.5.2", + "@types/pg": "^8.18.0", + "@types/react": "^18", + "@types/react-dom": "^18", + "eslint": "^8", + "eslint-config-next": "14.2.35", + "postcss": "^8", + "tailwindcss": "^3.4.1", + "tsx": "^4.21.0", + "typescript": "^5" + } + }, + "node_modules/@alloc/quick-lru": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", + "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@auth/prisma-adapter": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@auth/prisma-adapter/-/prisma-adapter-2.11.1.tgz", + "integrity": "sha512-Ke7DXP0Fy0Mlmjz/ZJLXwQash2UkA4621xCM0rMtEczr1kppLc/njCbUkHkIQ/PnmILjqSPEKeTjDPsYruvkug==", + "license": "ISC", + "dependencies": { + "@auth/core": "0.41.1" + }, + "peerDependencies": { + "@prisma/client": ">=2.26.0 || >=3 || >=4 || >=5 || >=6" + } + }, + "node_modules/@auth/prisma-adapter/node_modules/@auth/core": { + "version": "0.41.1", + "resolved": "https://registry.npmjs.org/@auth/core/-/core-0.41.1.tgz", + "integrity": "sha512-t9cJ2zNYAdWMacGRMT6+r4xr1uybIdmYa49calBPeTqwgAFPV/88ac9TEvCR85pvATiSPt8VaNf+Gt24JIT/uw==", + "license": "ISC", + "dependencies": { + "@panva/hkdf": "^1.2.1", + "jose": "^6.0.6", + "oauth4webapi": "^3.3.0", + "preact": "10.24.3", + "preact-render-to-string": "6.5.11" + }, + "peerDependencies": { + "@simplewebauthn/browser": "^9.0.1", + "@simplewebauthn/server": "^9.0.2", + "nodemailer": "^7.0.7" + }, + "peerDependenciesMeta": { + "@simplewebauthn/browser": { + "optional": true + }, + "@simplewebauthn/server": { + "optional": true + }, + "nodemailer": { + "optional": true + } + } + }, + "node_modules/@auth/prisma-adapter/node_modules/jose": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.1.3.tgz", + "integrity": "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/@auth/prisma-adapter/node_modules/oauth4webapi": { + "version": "3.8.5", + "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.5.tgz", + "integrity": "sha512-A8jmyUckVhRJj5lspguklcl90Ydqk61H3dcU0oLhH3Yv13KpAliKTt5hknpGGPZSSfOwGyraNEFmofDYH+1kSg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/@auth/prisma-adapter/node_modules/preact-render-to-string": { + "version": "6.5.11", + "resolved": "https://registry.npmjs.org/preact-render-to-string/-/preact-render-to-string-6.5.11.tgz", + "integrity": "sha512-ubnauqoGczeGISiOh6RjX0/cdaF8v/oDXIjO85XALCQjwQP+SB4RDXXtvZ6yTYSjG+PC1QRP2AhPgCEsM2EvUw==", + "license": "MIT", + "peerDependencies": { + "preact": ">=10" + } + }, + "node_modules/@babel/runtime": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.6.tgz", + "integrity": "sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@chevrotain/cst-dts-gen": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/@chevrotain/cst-dts-gen/-/cst-dts-gen-10.5.0.tgz", + "integrity": "sha512-lhmC/FyqQ2o7pGK4Om+hzuDrm9rhFYIJ/AXoQBeongmn870Xeb0L6oGEiuR8nohFNL5sMaQEJWCxr1oIVIVXrw==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/gast": "10.5.0", + "@chevrotain/types": "10.5.0", + "lodash": "4.17.21" + } + }, + "node_modules/@chevrotain/gast": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/@chevrotain/gast/-/gast-10.5.0.tgz", + "integrity": "sha512-pXdMJ9XeDAbgOWKuD1Fldz4ieCs6+nLNmyVhe2gZVqoO7v8HXuHYs5OV2EzUtbuai37TlOAQHrTDvxMnvMJz3A==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/types": "10.5.0", + "lodash": "4.17.21" + } + }, + "node_modules/@chevrotain/types": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/@chevrotain/types/-/types-10.5.0.tgz", + "integrity": "sha512-f1MAia0x/pAVPWH/T73BJVyO2XU5tI4/iE7cnxb7tqdNTNhQI3Uq3XkqcoteTmD4t1aM0LbHCJOhgIDn07kl2A==", + "license": "Apache-2.0" + }, + "node_modules/@chevrotain/utils": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/@chevrotain/utils/-/utils-10.5.0.tgz", + "integrity": "sha512-hBzuU5+JjB2cqNZyszkDHZgOSrUUT8V3dhgRl8Q9Gp6dAj/H5+KILGjbhDpc3Iy9qmqlm/akuOI2ut9VUtzJxQ==", + "license": "Apache-2.0" + }, + "node_modules/@electric-sql/pglite": { + "version": "0.3.15", + "resolved": "https://registry.npmjs.org/@electric-sql/pglite/-/pglite-0.3.15.tgz", + "integrity": "sha512-Cj++n1Mekf9ETfdc16TlDi+cDDQF0W7EcbyRHYOAeZdsAe8M/FJg18itDTSwyHfar2WIezawM9o0EKaRGVKygQ==", + "license": "Apache-2.0" + }, + "node_modules/@electric-sql/pglite-socket": { + "version": "0.0.20", + "resolved": "https://registry.npmjs.org/@electric-sql/pglite-socket/-/pglite-socket-0.0.20.tgz", + "integrity": "sha512-J5nLGsicnD9wJHnno9r+DGxfcZWh+YJMCe0q/aCgtG6XOm9Z7fKeite8IZSNXgZeGltSigM9U/vAWZQWdgcSFg==", + "license": "Apache-2.0", + "bin": { + "pglite-server": "dist/scripts/server.js" + }, + "peerDependencies": { + "@electric-sql/pglite": "0.3.15" + } + }, + "node_modules/@electric-sql/pglite-tools": { + "version": "0.2.20", + "resolved": "https://registry.npmjs.org/@electric-sql/pglite-tools/-/pglite-tools-0.2.20.tgz", + "integrity": "sha512-BK50ZnYa3IG7ztXhtgYf0Q7zijV32Iw1cYS8C+ThdQlwx12V5VZ9KRJ42y82Hyb4PkTxZQklVQA9JHyUlex33A==", + "license": "Apache-2.0", + "peerDependencies": { + "@electric-sql/pglite": "0.3.15" + } + }, + "node_modules/@emnapi/core": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.8.1.tgz", + "integrity": "sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.1.0", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.8.1.tgz", + "integrity": "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.1.0.tgz", + "integrity": "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz", + "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz", + "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz", + "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz", + "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz", + "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz", + "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz", + "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz", + "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz", + "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz", + "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz", + "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz", + "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz", + "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz", + "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz", + "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz", + "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz", + "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz", + "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz", + "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz", + "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz", + "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz", + "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz", + "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz", + "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz", + "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz", + "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", + "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@hono/node-server": { + "version": "1.19.9", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.9.tgz", + "integrity": "sha512-vHL6w3ecZsky+8P5MD+eFfaGTyCeOHUIFYMGpQGbrBTSmNNoxv0if69rEZ5giu36weC5saFuznL411gRX7bJDw==", + "license": "MIT", + "engines": { + "node": ">=18.14.1" + }, + "peerDependencies": { + "hono": "^4" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", + "deprecated": "Use @eslint/config-array instead", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.3", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@mrleebo/prisma-ast": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/@mrleebo/prisma-ast/-/prisma-ast-0.13.1.tgz", + "integrity": "sha512-XyroGQXcHrZdvmrGJvsA9KNeOOgGMg1Vg9OlheUsBOSKznLMDl+YChxbkboRHvtFYJEMRYmlV3uoo/njCw05iw==", + "license": "MIT", + "dependencies": { + "chevrotain": "^10.5.0", + "lilconfig": "^2.1.0" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/@mrleebo/prisma-ast/node_modules/lilconfig": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", + "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.12.tgz", + "integrity": "sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.4.3", + "@emnapi/runtime": "^1.4.3", + "@tybys/wasm-util": "^0.10.0" + } + }, + "node_modules/@next/env": { + "version": "14.2.35", + "resolved": "https://registry.npmjs.org/@next/env/-/env-14.2.35.tgz", + "integrity": "sha512-DuhvCtj4t9Gwrx80dmz2F4t/zKQ4ktN8WrMwOuVzkJfBilwAwGr6v16M5eI8yCuZ63H9TTuEU09Iu2HqkzFPVQ==", + "license": "MIT" + }, + "node_modules/@next/eslint-plugin-next": { + "version": "14.2.35", + "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-14.2.35.tgz", + "integrity": "sha512-Jw9A3ICz2183qSsqwi7fgq4SBPiNfmOLmTPXKvlnzstUwyvBrtySiY+8RXJweNAs9KThb1+bYhZh9XWcNOr2zQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "glob": "10.3.10" + } + }, + "node_modules/@next/swc-darwin-arm64": { + "version": "14.2.33", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.33.tgz", + "integrity": "sha512-HqYnb6pxlsshoSTubdXKu15g3iivcbsMXg4bYpjL2iS/V6aQot+iyF4BUc2qA/J/n55YtvE4PHMKWBKGCF/+wA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-darwin-x64": { + "version": "14.2.33", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.33.tgz", + "integrity": "sha512-8HGBeAE5rX3jzKvF593XTTFg3gxeU4f+UWnswa6JPhzaR6+zblO5+fjltJWIZc4aUalqTclvN2QtTC37LxvZAA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-gnu": { + "version": "14.2.33", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.33.tgz", + "integrity": "sha512-JXMBka6lNNmqbkvcTtaX8Gu5by9547bukHQvPoLe9VRBx1gHwzf5tdt4AaezW85HAB3pikcvyqBToRTDA4DeLw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-musl": { + "version": "14.2.33", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.33.tgz", + "integrity": "sha512-Bm+QulsAItD/x6Ih8wGIMfRJy4G73tu1HJsrccPW6AfqdZd0Sfm5Imhgkgq2+kly065rYMnCOxTBvmvFY1BKfg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-gnu": { + "version": "14.2.33", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.33.tgz", + "integrity": "sha512-FnFn+ZBgsVMbGDsTqo8zsnRzydvsGV8vfiWwUo1LD8FTmPTdV+otGSWKc4LJec0oSexFnCYVO4hX8P8qQKaSlg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-musl": { + "version": "14.2.33", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.33.tgz", + "integrity": "sha512-345tsIWMzoXaQndUTDv1qypDRiebFxGYx9pYkhwY4hBRaOLt8UGfiWKr9FSSHs25dFIf8ZqIFaPdy5MljdoawA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-arm64-msvc": { + "version": "14.2.33", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.33.tgz", + "integrity": "sha512-nscpt0G6UCTkrT2ppnJnFsYbPDQwmum4GNXYTeoTIdsmMydSKFz9Iny2jpaRupTb+Wl298+Rh82WKzt9LCcqSQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-ia32-msvc": { + "version": "14.2.33", + "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.33.tgz", + "integrity": "sha512-pc9LpGNKhJ0dXQhZ5QMmYxtARwwmWLpeocFmVG5Z0DzWq5Uf0izcI8tLc+qOpqxO1PWqZ5A7J1blrUIKrIFc7Q==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-x64-msvc": { + "version": "14.2.33", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.33.tgz", + "integrity": "sha512-nOjfZMy8B94MdisuzZo9/57xuFVLHJaDj5e/xrduJp9CV2/HrfxTRH2fbyLe+K9QT41WBLUd4iXX3R7jBp0EUg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nolyfill/is-core-module": { + "version": "1.0.39", + "resolved": "https://registry.npmjs.org/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz", + "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.4.0" + } + }, + "node_modules/@panva/hkdf": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@panva/hkdf/-/hkdf-1.2.1.tgz", + "integrity": "sha512-6oclG6Y3PiDFcoyk8srjLfVKyMfVCKJ27JwNPViuXziFpmdz+MZnZN/aKY0JGXgYuO/VghU0jcOAZgWXZ1Dmrw==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@prisma/adapter-pg": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@prisma/adapter-pg/-/adapter-pg-7.4.2.tgz", + "integrity": "sha512-oUo2Zhe9Tf6YwVL8kLPuOLTK1Z2pwi/Ua77t2PuGyBan2w7shRKqHvYK+3XXmRH9RWhPJ4SMtHZKpNo6Ax/4bQ==", + "license": "Apache-2.0", + "dependencies": { + "@prisma/driver-adapter-utils": "7.4.2", + "pg": "^8.16.3", + "postgres-array": "3.0.4" + } + }, + "node_modules/@prisma/client": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@prisma/client/-/client-7.4.2.tgz", + "integrity": "sha512-ts2mu+cQHriAhSxngO3StcYubBGTWDtu/4juZhXCUKOwgh26l+s4KD3vT2kMUzFyrYnll9u/3qWrtzRv9CGWzA==", + "license": "Apache-2.0", + "dependencies": { + "@prisma/client-runtime-utils": "7.4.2" + }, + "engines": { + "node": "^20.19 || ^22.12 || >=24.0" + }, + "peerDependencies": { + "prisma": "*", + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "prisma": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/@prisma/client-runtime-utils": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@prisma/client-runtime-utils/-/client-runtime-utils-7.4.2.tgz", + "integrity": "sha512-cID+rzOEb38VyMsx5LwJMEY4NGIrWCNpKu/0ImbeooQ2Px7TI+kOt7cm0NelxUzF2V41UVVXAmYjANZQtCu1/Q==", + "license": "Apache-2.0" + }, + "node_modules/@prisma/config": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@prisma/config/-/config-7.4.2.tgz", + "integrity": "sha512-CftBjWxav99lzY1Z4oDgomdb1gh9BJFAOmWF6P2v1xRfXqQb56DfBub+QKcERRdNoAzCb3HXy3Zii8Vb4AsXhg==", + "license": "Apache-2.0", + "dependencies": { + "c12": "3.1.0", + "deepmerge-ts": "7.1.5", + "effect": "3.18.4", + "empathic": "2.0.0" + } + }, + "node_modules/@prisma/debug": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-7.4.2.tgz", + "integrity": "sha512-aP7qzu+g/JnbF6U69LMwHoUkELiserKmWsE2shYuEpNUJ4GrtxBCvZwCyCBHFSH2kLTF2l1goBlBh4wuvRq62w==", + "license": "Apache-2.0" + }, + "node_modules/@prisma/dev": { + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/@prisma/dev/-/dev-0.20.0.tgz", + "integrity": "sha512-ovlBYwWor0OzG+yH4J3Ot+AneD818BttLA+Ii7wjbcLHUrnC4tbUPVGyNd3c/+71KETPKZfjhkTSpdS15dmXNQ==", + "license": "ISC", + "dependencies": { + "@electric-sql/pglite": "0.3.15", + "@electric-sql/pglite-socket": "0.0.20", + "@electric-sql/pglite-tools": "0.2.20", + "@hono/node-server": "1.19.9", + "@mrleebo/prisma-ast": "0.13.1", + "@prisma/get-platform": "7.2.0", + "@prisma/query-plan-executor": "7.2.0", + "foreground-child": "3.3.1", + "get-port-please": "3.2.0", + "hono": "4.11.4", + "http-status-codes": "2.3.0", + "pathe": "2.0.3", + "proper-lockfile": "4.1.2", + "remeda": "2.33.4", + "std-env": "3.10.0", + "valibot": "1.2.0", + "zeptomatch": "2.1.0" + } + }, + "node_modules/@prisma/driver-adapter-utils": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@prisma/driver-adapter-utils/-/driver-adapter-utils-7.4.2.tgz", + "integrity": "sha512-REdjFpT/ye9KdDs+CXAXPIbMQkVLhne9G5Pe97sNY4Ovx4r2DAbWM9hOFvvB1Oq8H8bOCdu0Ri3AoGALquQqVw==", + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.4.2" + } + }, + "node_modules/@prisma/engines": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-7.4.2.tgz", + "integrity": "sha512-B+ZZhI4rXlzjVqRw/93AothEKOU5/x4oVyJFGo9RpHPnBwaPwk4Pi0Q4iGXipKxeXPs/dqljgNBjK0m8nocOJA==", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.4.2", + "@prisma/engines-version": "7.5.0-10.94a226be1cf2967af2541cca5529f0f7ba866919", + "@prisma/fetch-engine": "7.4.2", + "@prisma/get-platform": "7.4.2" + } + }, + "node_modules/@prisma/engines-version": { + "version": "7.5.0-10.94a226be1cf2967af2541cca5529f0f7ba866919", + "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-7.5.0-10.94a226be1cf2967af2541cca5529f0f7ba866919.tgz", + "integrity": "sha512-5FIKY3KoYQlBuZC2yc16EXfVRQ8HY+fLqgxkYfWCtKhRb3ajCRzP/rPeoSx11+NueJDANdh4hjY36mdmrTcGSg==", + "license": "Apache-2.0" + }, + "node_modules/@prisma/engines/node_modules/@prisma/get-platform": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-7.4.2.tgz", + "integrity": "sha512-UTnChXRwiauzl/8wT4hhe7Xmixja9WE28oCnGpBtRejaHhvekx5kudr3R4Y9mLSA0kqGnAMeyTiKwDVMjaEVsw==", + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.4.2" + } + }, + "node_modules/@prisma/fetch-engine": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@prisma/fetch-engine/-/fetch-engine-7.4.2.tgz", + "integrity": "sha512-f/c/MwYpdJO7taLETU8rahEstLeXfYgQGlz5fycG7Fbmva3iPdzGmjiSWHeSWIgNnlXnelUdCJqyZnFocurZuA==", + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.4.2", + "@prisma/engines-version": "7.5.0-10.94a226be1cf2967af2541cca5529f0f7ba866919", + "@prisma/get-platform": "7.4.2" + } + }, + "node_modules/@prisma/fetch-engine/node_modules/@prisma/get-platform": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-7.4.2.tgz", + "integrity": "sha512-UTnChXRwiauzl/8wT4hhe7Xmixja9WE28oCnGpBtRejaHhvekx5kudr3R4Y9mLSA0kqGnAMeyTiKwDVMjaEVsw==", + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.4.2" + } + }, + "node_modules/@prisma/get-platform": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/get-platform/-/get-platform-7.2.0.tgz", + "integrity": "sha512-k1V0l0Td1732EHpAfi2eySTezyllok9dXb6UQanajkJQzPUGi3vO2z7jdkz67SypFTdmbnyGYxvEvYZdZsMAVA==", + "license": "Apache-2.0", + "dependencies": { + "@prisma/debug": "7.2.0" + } + }, + "node_modules/@prisma/get-platform/node_modules/@prisma/debug": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/debug/-/debug-7.2.0.tgz", + "integrity": "sha512-YSGTiSlBAVJPzX4ONZmMotL+ozJwQjRmZweQNIq/ER0tQJKJynNkRB3kyvt37eOfsbMCXk3gnLF6J9OJ4QWftw==", + "license": "Apache-2.0" + }, + "node_modules/@prisma/query-plan-executor": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@prisma/query-plan-executor/-/query-plan-executor-7.2.0.tgz", + "integrity": "sha512-EOZmNzcV8uJ0mae3DhTsiHgoNCuu1J9mULQpGCh62zN3PxPTd+qI9tJvk5jOst8WHKQNwJWR3b39t0XvfBB0WQ==", + "license": "Apache-2.0" + }, + "node_modules/@prisma/studio-core": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/@prisma/studio-core/-/studio-core-0.13.1.tgz", + "integrity": "sha512-agdqaPEePRHcQ7CexEfkX1RvSH9uWDb6pXrZnhCRykhDFAV0/0P3d07WtfiY8hZWb7oRU4v+NkT4cGFHkQJIPg==", + "license": "Apache-2.0", + "peerDependencies": { + "@types/react": "^18.0.0 || ^19.0.0", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + } + }, + "node_modules/@rtsao/scc": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", + "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rushstack/eslint-patch": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.16.1.tgz", + "integrity": "sha512-TvZbIpeKqGQQ7X0zSCvPH9riMSFQFSggnfBjFZ1mEoILW+UuXCKwOoPcgjMwiUtRqFZ8jWhPJc4um14vC6I4ag==", + "dev": true, + "license": "MIT" + }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "license": "MIT" + }, + "node_modules/@stripe/stripe-js": { + "version": "8.8.0", + "resolved": "https://registry.npmjs.org/@stripe/stripe-js/-/stripe-js-8.8.0.tgz", + "integrity": "sha512-NNYuyW8qmLjyHnpyFgs/23wUrjB8k0xN9YIZFOMLewCa/pIkIji9e9aY/EgdNryEDDRptc6TcPIHRvG1R0ClFw==", + "license": "MIT", + "engines": { + "node": ">=12.16" + } + }, + "node_modules/@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==", + "license": "Apache-2.0" + }, + "node_modules/@swc/helpers": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.5.tgz", + "integrity": "sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==", + "license": "Apache-2.0", + "dependencies": { + "@swc/counter": "^0.1.3", + "tslib": "^2.4.0" + } + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", + "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/bcryptjs": { + "version": "2.4.6", + "resolved": "https://registry.npmjs.org/@types/bcryptjs/-/bcryptjs-2.4.6.tgz", + "integrity": "sha512-9xlo6R2qDs5uixm0bcIqCeMCE6HiQsIyel9KQySStiyqNl2tnj2mP3DX1Nf56MD6KMenNNlBBsy3LJ7gUEQPXQ==", + "license": "MIT" + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "20.19.35", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.35.tgz", + "integrity": "sha512-Uarfe6J91b9HAUXxjvSOdiO2UPOKLm07Q1oh0JHxoZ1y8HoqxDAu3gVrsrOHeiio0kSsoVBt4wFrKOm0dKxVPQ==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/papaparse": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/@types/papaparse/-/papaparse-5.5.2.tgz", + "integrity": "sha512-gFnFp/JMzLHCwRf7tQHrNnfhN4eYBVYYI897CGX4MY1tzY9l2aLkVyx2IlKZ/SAqDbB3I1AOZW5gTMGGsqWliA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/pg": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.18.0.tgz", + "integrity": "sha512-gT+oueVQkqnj6ajGJXblFR4iavIXWsGAFCk3dP4Kki5+a9R4NMt0JARdk6s8cUKcfUoqP5dAtDSLU8xYUTFV+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "pg-protocol": "*", + "pg-types": "^2.2.0" + } + }, + "node_modules/@types/prop-types": { + "version": "15.7.15", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz", + "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==", + "license": "MIT" + }, + "node_modules/@types/qrcode": { + "version": "1.5.6", + "resolved": "https://registry.npmjs.org/@types/qrcode/-/qrcode-1.5.6.tgz", + "integrity": "sha512-te7NQcV2BOvdj2b1hCAHzAoMNuj65kNBMz0KBaxM6c3VGBOhU0dURQKOtH8CFNI/dsKkwlv32p26qYQTWoB5bw==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/react": { + "version": "18.3.28", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.28.tgz", + "integrity": "sha512-z9VXpC7MWrhfWipitjNdgCauoMLRdIILQsAEV+ZesIzBq/oUlxk0m3ApZuMFCXdnS4U7KrI+l3WRUEGQ8K1QKw==", + "license": "MIT", + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.3.7", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz", + "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^18.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.56.1.tgz", + "integrity": "sha512-Jz9ZztpB37dNC+HU2HI28Bs9QXpzCz+y/twHOwhyrIRdbuVDxSytJNDl6z/aAKlaRIwC7y8wJdkBv7FxYGgi0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.56.1", + "@typescript-eslint/type-utils": "8.56.1", + "@typescript-eslint/utils": "8.56.1", + "@typescript-eslint/visitor-keys": "8.56.1", + "ignore": "^7.0.5", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.56.1", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.56.1.tgz", + "integrity": "sha512-klQbnPAAiGYFyI02+znpBRLyjL4/BrBd0nyWkdC0s/6xFLkXYQ8OoRrSkqacS1ddVxf/LDyODIKbQ5TgKAf/Fg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.56.1", + "@typescript-eslint/types": "8.56.1", + "@typescript-eslint/typescript-estree": "8.56.1", + "@typescript-eslint/visitor-keys": "8.56.1", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.56.1.tgz", + "integrity": "sha512-TAdqQTzHNNvlVFfR+hu2PDJrURiwKsUvxFn1M0h95BB8ah5jejas08jUWG4dBA68jDMI988IvtfdAI53JzEHOQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.56.1", + "@typescript-eslint/types": "^8.56.1", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.56.1.tgz", + "integrity": "sha512-YAi4VDKcIZp0O4tz/haYKhmIDZFEUPOreKbfdAN3SzUDMcPhJ8QI99xQXqX+HoUVq8cs85eRKnD+rne2UAnj2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.56.1", + "@typescript-eslint/visitor-keys": "8.56.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.56.1.tgz", + "integrity": "sha512-qOtCYzKEeyr3aR9f28mPJqBty7+DBqsdd63eO0yyDwc6vgThj2UjWfJIcsFeSucYydqcuudMOprZ+x1SpF3ZuQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.56.1.tgz", + "integrity": "sha512-yB/7dxi7MgTtGhZdaHCemf7PuwrHMenHjmzgUW1aJpO+bBU43OycnM3Wn+DdvDO/8zzA9HlhaJ0AUGuvri4oGg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.56.1", + "@typescript-eslint/typescript-estree": "8.56.1", + "@typescript-eslint/utils": "8.56.1", + "debug": "^4.4.3", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.56.1.tgz", + "integrity": "sha512-dbMkdIUkIkchgGDIv7KLUpa0Mda4IYjo4IAMJUZ+3xNoUXxMsk9YtKpTHSChRS85o+H9ftm51gsK1dZReY9CVw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.56.1.tgz", + "integrity": "sha512-qzUL1qgalIvKWAf9C1HpvBjif+Vm6rcT5wZd4VoMb9+Km3iS3Cv9DY6dMRMDtPnwRAFyAi7YXJpTIEXLvdfPxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.56.1", + "@typescript-eslint/tsconfig-utils": "8.56.1", + "@typescript-eslint/types": "8.56.1", + "@typescript-eslint/visitor-keys": "8.56.1", + "debug": "^4.4.3", + "minimatch": "^10.2.2", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.4.tgz", + "integrity": "sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "10.2.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz", + "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.56.1.tgz", + "integrity": "sha512-HPAVNIME3tABJ61siYlHzSWCGtOoeP2RTIaHXFMPqjrQKCGB9OgUVdiNgH7TJS2JNIQ5qQ4RsAUDuGaGme/KOA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.56.1", + "@typescript-eslint/types": "8.56.1", + "@typescript-eslint/typescript-estree": "8.56.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.56.1.tgz", + "integrity": "sha512-KiROIzYdEV85YygXw6BI/Dx4fnBlFQu6Mq4QE4MOH9fFnhohw6wX/OAvDY2/C+ut0I3RSPKenvZJIVYqJNkhEw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.56.1", + "eslint-visitor-keys": "^5.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", + "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "dev": true, + "license": "ISC" + }, + "node_modules/@unrs/resolver-binding-android-arm-eabi": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.11.1.tgz", + "integrity": "sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@unrs/resolver-binding-android-arm64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.11.1.tgz", + "integrity": "sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@unrs/resolver-binding-darwin-arm64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.11.1.tgz", + "integrity": "sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-darwin-x64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.11.1.tgz", + "integrity": "sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@unrs/resolver-binding-freebsd-x64": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.11.1.tgz", + "integrity": "sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.11.1.tgz", + "integrity": "sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.11.1.tgz", + "integrity": "sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.11.1.tgz", + "integrity": "sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-arm64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.11.1.tgz", + "integrity": "sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.11.1.tgz", + "integrity": "sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.11.1.tgz", + "integrity": "sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.11.1.tgz", + "integrity": "sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.11.1.tgz", + "integrity": "sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-gnu": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.11.1.tgz", + "integrity": "sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-linux-x64-musl": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.11.1.tgz", + "integrity": "sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@unrs/resolver-binding-wasm32-wasi": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.11.1.tgz", + "integrity": "sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@napi-rs/wasm-runtime": "^0.2.11" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.11.1.tgz", + "integrity": "sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.11.1.tgz", + "integrity": "sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@unrs/resolver-binding-win32-x64-msvc": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.11.1.tgz", + "integrity": "sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/acorn": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz", + "integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true, + "license": "MIT" + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true, + "license": "MIT" + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/aria-query": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", + "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", + "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "is-array-buffer": "^3.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-includes": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz", + "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.24.0", + "es-object-atoms": "^1.1.1", + "get-intrinsic": "^1.3.0", + "is-string": "^1.1.1", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlast": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", + "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.findlastindex": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", + "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "es-shim-unscopables": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", + "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", + "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", + "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3", + "es-errors": "^1.3.0", + "es-shim-unscopables": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/arraybuffer.prototype.slice": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", + "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.1", + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "is-array-buffer": "^3.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/ast-types-flow": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz", + "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/async-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", + "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", + "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "possible-typed-array-names": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/aws-ssl-profiles": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/aws-ssl-profiles/-/aws-ssl-profiles-1.1.2.tgz", + "integrity": "sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g==", + "license": "MIT", + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/axe-core": { + "version": "4.11.1", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.11.1.tgz", + "integrity": "sha512-BASOg+YwO2C+346x3LZOeoovTIoTrRqEsqMa6fmfAV0P+U9mFr9NsyOEpiYvFjbc64NMrSswhV50WdXzdb/Z5A==", + "dev": true, + "license": "MPL-2.0", + "engines": { + "node": ">=4" + } + }, + "node_modules/axobject-query": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", + "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/bcryptjs": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-3.0.3.tgz", + "integrity": "sha512-GlF5wPWnSa/X5LKM1o0wz0suXIINz1iHRLvTS+sLyi7XPbe5ycmYI3DlZqVGZZtDgl4DmasFg7gOB3JYbphV5g==", + "license": "BSD-3-Clause", + "bin": { + "bcrypt": "bin/bcrypt" + } + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/c12": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/c12/-/c12-3.1.0.tgz", + "integrity": "sha512-uWoS8OU1MEIsOv8p/5a82c3H31LsWVR5qiyXVfBNOzfffjUWtPnhAb4BYI2uG2HfGmZmFjCtui5XNWaps+iFuw==", + "license": "MIT", + "dependencies": { + "chokidar": "^4.0.3", + "confbox": "^0.2.2", + "defu": "^6.1.4", + "dotenv": "^16.6.1", + "exsolve": "^1.0.7", + "giget": "^2.0.0", + "jiti": "^2.4.2", + "ohash": "^2.0.11", + "pathe": "^2.0.3", + "perfect-debounce": "^1.0.0", + "pkg-types": "^2.2.0", + "rc9": "^2.1.2" + }, + "peerDependencies": { + "magicast": "^0.3.5" + }, + "peerDependenciesMeta": { + "magicast": { + "optional": true + } + } + }, + "node_modules/c12/node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/c12/node_modules/jiti": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", + "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/c12/node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/call-bind": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", + "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.0", + "es-define-property": "^1.0.0", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001774", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001774.tgz", + "integrity": "sha512-DDdwPGz99nmIEv216hKSgLD+D4ikHQHjBC/seF98N9CPqRX4M5mSxT9eTV6oyisnJcuzxtZy4n17yKKQYmYQOA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chevrotain": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-10.5.0.tgz", + "integrity": "sha512-Pkv5rBY3+CsHOYfV5g/Vs5JY9WTHHDEKOlohI2XeygaZhUeqhAlldZ8Hz9cRmxu709bvS08YzxHdTPHhffc13A==", + "license": "Apache-2.0", + "dependencies": { + "@chevrotain/cst-dts-gen": "10.5.0", + "@chevrotain/gast": "10.5.0", + "@chevrotain/types": "10.5.0", + "@chevrotain/utils": "10.5.0", + "lodash": "4.17.21", + "regexp-to-ast": "0.5.0" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/citty": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/citty/-/citty-0.1.6.tgz", + "integrity": "sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ==", + "license": "MIT", + "dependencies": { + "consola": "^3.2.3" + } + }, + "node_modules/class-variance-authority": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz", + "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==", + "license": "Apache-2.0", + "dependencies": { + "clsx": "^2.1.1" + }, + "funding": { + "url": "https://polar.sh/cva" + } + }, + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==", + "license": "MIT" + }, + "node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/cliui/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/confbox": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.4.tgz", + "integrity": "sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==", + "license": "MIT" + }, + "node_modules/consola": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz", + "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==", + "license": "MIT", + "engines": { + "node": "^14.18.0 || >=16.10.0" + } + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", + "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", + "dev": true, + "license": "BSD-2-Clause" + }, + "node_modules/data-view-buffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", + "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/data-view-byte-length": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", + "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/inspect-js" + } + }, + "node_modules/data-view-byte-offset": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", + "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-data-view": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/date-fns": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-4.1.0.tgz", + "integrity": "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/kossnocorp" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/deepmerge-ts": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/deepmerge-ts/-/deepmerge-ts-7.1.5.tgz", + "integrity": "sha512-HOJkrhaYsweh+W+e74Yn7YStZOilkoPb6fycpwNLKzSPtruFs48nYis0zy5yJz1+ktUhHxoRDJ27RQAWLIJVJw==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/define-properties": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", + "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.0.1", + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/defu": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz", + "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==", + "license": "MIT" + }, + "node_modules/denque": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", + "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", + "license": "Apache-2.0", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/destr": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.5.tgz", + "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==", + "license": "MIT" + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/dijkstrajs": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz", + "integrity": "sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==", + "license": "MIT" + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true, + "license": "MIT" + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dotenv": { + "version": "16.6.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz", + "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT" + }, + "node_modules/effect": { + "version": "3.18.4", + "resolved": "https://registry.npmjs.org/effect/-/effect-3.18.4.tgz", + "integrity": "sha512-b1LXQJLe9D11wfnOKAk3PKxuqYshQ0Heez+y5pnkd3jLj1yx9QhM72zZ9uUrOQyNvrs2GZZd/3maL0ZV18YuDA==", + "license": "MIT", + "dependencies": { + "@standard-schema/spec": "^1.0.0", + "fast-check": "^3.23.1" + } + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/empathic": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/empathic/-/empathic-2.0.0.tgz", + "integrity": "sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/es-abstract": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.1.tgz", + "integrity": "sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.2", + "arraybuffer.prototype.slice": "^1.0.4", + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "data-view-buffer": "^1.0.2", + "data-view-byte-length": "^1.0.2", + "data-view-byte-offset": "^1.0.1", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "es-set-tostringtag": "^2.1.0", + "es-to-primitive": "^1.3.0", + "function.prototype.name": "^1.1.8", + "get-intrinsic": "^1.3.0", + "get-proto": "^1.0.1", + "get-symbol-description": "^1.1.0", + "globalthis": "^1.0.4", + "gopd": "^1.2.0", + "has-property-descriptors": "^1.0.2", + "has-proto": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "internal-slot": "^1.1.0", + "is-array-buffer": "^3.0.5", + "is-callable": "^1.2.7", + "is-data-view": "^1.0.2", + "is-negative-zero": "^2.0.3", + "is-regex": "^1.2.1", + "is-set": "^2.0.3", + "is-shared-array-buffer": "^1.0.4", + "is-string": "^1.1.1", + "is-typed-array": "^1.1.15", + "is-weakref": "^1.1.1", + "math-intrinsics": "^1.1.0", + "object-inspect": "^1.13.4", + "object-keys": "^1.1.1", + "object.assign": "^4.1.7", + "own-keys": "^1.0.1", + "regexp.prototype.flags": "^1.5.4", + "safe-array-concat": "^1.1.3", + "safe-push-apply": "^1.0.0", + "safe-regex-test": "^1.1.0", + "set-proto": "^1.0.0", + "stop-iteration-iterator": "^1.1.0", + "string.prototype.trim": "^1.2.10", + "string.prototype.trimend": "^1.0.9", + "string.prototype.trimstart": "^1.0.8", + "typed-array-buffer": "^1.0.3", + "typed-array-byte-length": "^1.0.3", + "typed-array-byte-offset": "^1.0.4", + "typed-array-length": "^1.0.7", + "unbox-primitive": "^1.1.0", + "which-typed-array": "^1.1.19" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-iterator-helpers": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.2.tgz", + "integrity": "sha512-BrUQ0cPTB/IwXj23HtwHjS9n7O4h9FX94b4xc5zlTHxeLgTAdzYUDyy6KdExAl9lbN5rtfe44xpjpmj9grxs5w==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.24.1", + "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", + "safe-array-concat": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", + "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-to-primitive": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", + "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7", + "is-date-object": "^1.0.5", + "is-symbol": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/esbuild": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz", + "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.3", + "@esbuild/android-arm": "0.27.3", + "@esbuild/android-arm64": "0.27.3", + "@esbuild/android-x64": "0.27.3", + "@esbuild/darwin-arm64": "0.27.3", + "@esbuild/darwin-x64": "0.27.3", + "@esbuild/freebsd-arm64": "0.27.3", + "@esbuild/freebsd-x64": "0.27.3", + "@esbuild/linux-arm": "0.27.3", + "@esbuild/linux-arm64": "0.27.3", + "@esbuild/linux-ia32": "0.27.3", + "@esbuild/linux-loong64": "0.27.3", + "@esbuild/linux-mips64el": "0.27.3", + "@esbuild/linux-ppc64": "0.27.3", + "@esbuild/linux-riscv64": "0.27.3", + "@esbuild/linux-s390x": "0.27.3", + "@esbuild/linux-x64": "0.27.3", + "@esbuild/netbsd-arm64": "0.27.3", + "@esbuild/netbsd-x64": "0.27.3", + "@esbuild/openbsd-arm64": "0.27.3", + "@esbuild/openbsd-x64": "0.27.3", + "@esbuild/openharmony-arm64": "0.27.3", + "@esbuild/sunos-x64": "0.27.3", + "@esbuild/win32-arm64": "0.27.3", + "@esbuild/win32-ia32": "0.27.3", + "@esbuild/win32-x64": "0.27.3" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-next": { + "version": "14.2.35", + "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-14.2.35.tgz", + "integrity": "sha512-BpLsv01UisH193WyT/1lpHqq5iJ/Orfz9h/NOOlAmTUq4GY349PextQ62K4XpnaM9supeiEn3TaOTeQO07gURg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@next/eslint-plugin-next": "14.2.35", + "@rushstack/eslint-patch": "^1.3.3", + "@typescript-eslint/eslint-plugin": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "eslint-import-resolver-node": "^0.3.6", + "eslint-import-resolver-typescript": "^3.5.2", + "eslint-plugin-import": "^2.28.1", + "eslint-plugin-jsx-a11y": "^6.7.1", + "eslint-plugin-react": "^7.33.2", + "eslint-plugin-react-hooks": "^4.5.0 || 5.0.0-canary-7118f5dd7-20230705" + }, + "peerDependencies": { + "eslint": "^7.23.0 || ^8.0.0", + "typescript": ">=3.3.1" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", + "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.13.0", + "resolve": "^1.22.4" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-import-resolver-typescript": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.10.1.tgz", + "integrity": "sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "@nolyfill/is-core-module": "1.0.39", + "debug": "^4.4.0", + "get-tsconfig": "^4.10.0", + "is-bun-module": "^2.0.0", + "stable-hash": "^0.0.5", + "tinyglobby": "^0.2.13", + "unrs-resolver": "^1.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint-import-resolver-typescript" + }, + "peerDependencies": { + "eslint": "*", + "eslint-plugin-import": "*", + "eslint-plugin-import-x": "*" + }, + "peerDependenciesMeta": { + "eslint-plugin-import": { + "optional": true + }, + "eslint-plugin-import-x": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.1.tgz", + "integrity": "sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.32.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", + "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rtsao/scc": "^1.1.0", + "array-includes": "^3.1.9", + "array.prototype.findlastindex": "^1.2.6", + "array.prototype.flat": "^1.3.3", + "array.prototype.flatmap": "^1.3.3", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-module-utils": "^2.12.1", + "hasown": "^2.0.2", + "is-core-module": "^2.16.1", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.8", + "object.groupby": "^1.0.3", + "object.values": "^1.2.1", + "semver": "^6.3.1", + "string.prototype.trimend": "^1.0.9", + "tsconfig-paths": "^3.15.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-import/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.10.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz", + "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "aria-query": "^5.3.2", + "array-includes": "^3.1.8", + "array.prototype.flatmap": "^1.3.2", + "ast-types-flow": "^0.0.8", + "axe-core": "^4.10.0", + "axobject-query": "^4.1.0", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "hasown": "^2.0.2", + "jsx-ast-utils": "^3.3.5", + "language-tags": "^1.0.9", + "minimatch": "^3.1.2", + "object.fromentries": "^2.0.8", + "safe-regex-test": "^1.0.3", + "string.prototype.includes": "^2.0.1" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9" + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.37.5", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz", + "integrity": "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.8", + "array.prototype.findlast": "^1.2.5", + "array.prototype.flatmap": "^1.3.3", + "array.prototype.tosorted": "^1.1.4", + "doctrine": "^2.1.0", + "es-iterator-helpers": "^1.2.1", + "estraverse": "^5.3.0", + "hasown": "^2.0.2", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.9", + "object.fromentries": "^2.0.8", + "object.values": "^1.2.1", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.5", + "semver": "^6.3.1", + "string.prototype.matchall": "^4.0.12", + "string.prototype.repeat": "^1.0.0" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "5.0.0-canary-7118f5dd7-20230705", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.0.0-canary-7118f5dd7-20230705.tgz", + "integrity": "sha512-AZYbMo/NW9chdL7vk6HQzQhT+PvTAEVqWk9ziruUoW2kAOcN5qNyelv70e0F1VNQAbvutOC9oc+xfWycI9FxDw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/eslint-plugin-react/node_modules/doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.6", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.6.tgz", + "integrity": "sha512-3JmVl5hMGtJ3kMmB3zi3DL25KfkCEyy3Tw7Gmw7z5w8M9WlwoPFnIvwChzu1+cF3iaK3sp18hhPz8ANeimdJfA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "is-core-module": "^2.16.1", + "node-exports-info": "^1.6.0", + "object-keys": "^1.1.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/eslint-plugin-react/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/exsolve": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.8.tgz", + "integrity": "sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==", + "license": "MIT" + }, + "node_modules/fast-check": { + "version": "3.23.2", + "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-3.23.2.tgz", + "integrity": "sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT", + "dependencies": { + "pure-rand": "^6.1.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.20.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", + "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/for-each": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", + "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true, + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/function.prototype.name": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", + "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "functions-have-names": "^1.2.3", + "hasown": "^2.0.2", + "is-callable": "^1.2.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/generate-function": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz", + "integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==", + "license": "MIT", + "dependencies": { + "is-property": "^1.0.2" + } + }, + "node_modules/generator-function": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", + "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-port-please": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/get-port-please/-/get-port-please-3.2.0.tgz", + "integrity": "sha512-I9QVvBw5U/hw3RmWpYKRumUeaDgxTPd401x364rLmWBJcOQ753eov1eTgzDqRG9bqFIfDc7gfzcQEWrUri3o1A==", + "license": "MIT" + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-symbol-description": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", + "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-tsconfig": { + "version": "4.13.6", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.6.tgz", + "integrity": "sha512-shZT/QMiSHc/YBLxxOkMtgSid5HFoauqCE3/exfsEcwg1WkeqjG+V40yBbBrsD+jW2HDXcs28xOfcbm2jI8Ddw==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/giget": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/giget/-/giget-2.0.0.tgz", + "integrity": "sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA==", + "license": "MIT", + "dependencies": { + "citty": "^0.1.6", + "consola": "^3.4.0", + "defu": "^6.1.4", + "node-fetch-native": "^1.6.6", + "nypm": "^0.6.0", + "pathe": "^2.0.3" + }, + "bin": { + "giget": "dist/cli.mjs" + } + }, + "node_modules/glob": { + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "9.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.2" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globalthis": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", + "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.2.1", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, + "node_modules/grammex": { + "version": "3.1.12", + "resolved": "https://registry.npmjs.org/grammex/-/grammex-3.1.12.tgz", + "integrity": "sha512-6ufJOsSA7LcQehIJNCO7HIBykfM7DXQual0Ny780/DEcJIpBlHRvcqEBWGPYd7hrXL2GJ3oJI1MIhaXjWmLQOQ==", + "license": "MIT" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true, + "license": "MIT" + }, + "node_modules/graphmatch": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/graphmatch/-/graphmatch-1.1.1.tgz", + "integrity": "sha512-5ykVn/EXM1hF0XCaWh05VbYvEiOL2lY1kBxZtaYsyvjp7cmWOU1XsAdfQBwClraEofXDT197lFbXOEVMHpvQOg==", + "license": "MIT" + }, + "node_modules/has-bigints": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", + "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", + "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hono": { + "version": "4.11.4", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.11.4.tgz", + "integrity": "sha512-U7tt8JsyrxSRKspfhtLET79pU8K+tInj5QZXs1jSugO1Vq5dFj3kmZsRldo29mTBfcjDRVRXrEZ6LS63Cog9ZA==", + "license": "MIT", + "engines": { + "node": ">=16.9.0" + } + }, + "node_modules/http-status-codes": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/http-status-codes/-/http-status-codes-2.3.0.tgz", + "integrity": "sha512-RJ8XvFvpPM/Dmc5SV+dC4y5PCeOhT3x1Hq0NU3rjGeg5a/CqlhZ7uudknPwZFz4aeAXDcbAyaeP7GAo9lvngtA==", + "license": "MIT" + }, + "node_modules/iconv-lite": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", + "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/internal-slot": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", + "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "hasown": "^2.0.2", + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", + "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-async-function": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", + "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "async-function": "^1.0.0", + "call-bound": "^1.0.3", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bigint": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", + "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-bigints": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", + "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-bun-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-bun-module/-/is-bun-module-2.0.0.tgz", + "integrity": "sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.7.1" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", + "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-data-view": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", + "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "is-typed-array": "^1.1.13" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", + "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-finalizationregistry": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", + "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-function": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", + "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.4", + "generator-function": "^2.0.0", + "get-proto": "^1.0.1", + "has-tostringtag": "^1.0.2", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-map": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", + "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", + "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", + "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-property": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", + "integrity": "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==", + "license": "MIT" + }, + "node_modules/is-regex": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", + "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-set": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", + "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", + "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-string": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", + "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", + "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "has-symbols": "^1.1.0", + "safe-regex-test": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.15", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", + "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakmap": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", + "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", + "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", + "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "get-intrinsic": "^1.2.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true, + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "license": "ISC" + }, + "node_modules/iterator.prototype": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz", + "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.6", + "get-proto": "^1.0.0", + "has-symbols": "^1.1.0", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/jackspeak": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/jiti": { + "version": "1.21.7", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz", + "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/jose": { + "version": "4.15.9", + "resolved": "https://registry.npmjs.org/jose/-/jose-4.15.9.tgz", + "integrity": "sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", + "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "object.assign": "^4.1.4", + "object.values": "^1.1.6" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/language-subtag-registry": { + "version": "0.3.23", + "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz", + "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==", + "dev": true, + "license": "CC0-1.0" + }, + "node_modules/language-tags": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz", + "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==", + "dev": true, + "license": "MIT", + "dependencies": { + "language-subtag-registry": "^0.3.20" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lilconfig": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/lru.min": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/lru.min/-/lru.min-1.1.4.tgz", + "integrity": "sha512-DqC6n3QQ77zdFpCMASA1a3Jlb64Hv2N2DciFGkO/4L9+q/IpIAuRlKOvCXabtRW6cQf8usbmM6BE/TOPysCdIA==", + "license": "MIT", + "engines": { + "bun": ">=1.0.0", + "deno": ">=1.30.0", + "node": ">=8.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wellwelwel" + } + }, + "node_modules/lucide-react": { + "version": "0.575.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.575.0.tgz", + "integrity": "sha512-VuXgKZrk0uiDlWjGGXmKV6MSk9Yy4l10qgVvzGn2AWBx1Ylt0iBexKOAoA6I7JO3m+M9oeovJd3yYENfkUbOeg==", + "license": "ISC", + "peerDependencies": { + "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/mysql2": { + "version": "3.15.3", + "resolved": "https://registry.npmjs.org/mysql2/-/mysql2-3.15.3.tgz", + "integrity": "sha512-FBrGau0IXmuqg4haEZRBfHNWB5mUARw6hNwPDXXGg0XzVJ50mr/9hb267lvpVMnhZ1FON3qNd4Xfcez1rbFwSg==", + "license": "MIT", + "dependencies": { + "aws-ssl-profiles": "^1.1.1", + "denque": "^2.1.0", + "generate-function": "^2.3.1", + "iconv-lite": "^0.7.0", + "long": "^5.2.1", + "lru.min": "^1.0.0", + "named-placeholders": "^1.1.3", + "seq-queue": "^0.0.5", + "sqlstring": "^2.3.2" + }, + "engines": { + "node": ">= 8.0" + } + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/named-placeholders": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/named-placeholders/-/named-placeholders-1.1.6.tgz", + "integrity": "sha512-Tz09sEL2EEuv5fFowm419c1+a/jSMiBjI9gHxVLrVdbUkkNUUfjsVYs9pVZu5oCon/kmRh9TfLEObFtkVxmY0w==", + "license": "MIT", + "dependencies": { + "lru.min": "^1.1.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/nanoid": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.6.tgz", + "integrity": "sha512-c7+7RQ+dMB5dPwwCp4ee1/iV/q2P6aK1mTZcfr1BTuVlyW9hJYiMPybJCcnBlQtuSmTIWNeazm/zqNoZSSElBg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.js" + }, + "engines": { + "node": "^18 || >=20" + } + }, + "node_modules/napi-postinstall": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.4.tgz", + "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==", + "dev": true, + "license": "MIT", + "bin": { + "napi-postinstall": "lib/cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/napi-postinstall" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/next": { + "version": "14.2.35", + "resolved": "https://registry.npmjs.org/next/-/next-14.2.35.tgz", + "integrity": "sha512-KhYd2Hjt/O1/1aZVX3dCwGXM1QmOV4eNM2UTacK5gipDdPN/oHHK/4oVGy7X8GMfPMsUTUEmGlsy0EY1YGAkig==", + "license": "MIT", + "dependencies": { + "@next/env": "14.2.35", + "@swc/helpers": "0.5.5", + "busboy": "1.6.0", + "caniuse-lite": "^1.0.30001579", + "graceful-fs": "^4.2.11", + "postcss": "8.4.31", + "styled-jsx": "5.1.1" + }, + "bin": { + "next": "dist/bin/next" + }, + "engines": { + "node": ">=18.17.0" + }, + "optionalDependencies": { + "@next/swc-darwin-arm64": "14.2.33", + "@next/swc-darwin-x64": "14.2.33", + "@next/swc-linux-arm64-gnu": "14.2.33", + "@next/swc-linux-arm64-musl": "14.2.33", + "@next/swc-linux-x64-gnu": "14.2.33", + "@next/swc-linux-x64-musl": "14.2.33", + "@next/swc-win32-arm64-msvc": "14.2.33", + "@next/swc-win32-ia32-msvc": "14.2.33", + "@next/swc-win32-x64-msvc": "14.2.33" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.1.0", + "@playwright/test": "^1.41.2", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "sass": "^1.3.0" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + }, + "@playwright/test": { + "optional": true + }, + "sass": { + "optional": true + } + } + }, + "node_modules/next-auth": { + "version": "4.24.13", + "resolved": "https://registry.npmjs.org/next-auth/-/next-auth-4.24.13.tgz", + "integrity": "sha512-sgObCfcfL7BzIK76SS5TnQtc3yo2Oifp/yIpfv6fMfeBOiBJkDWF3A2y9+yqnmJ4JKc2C+nMjSjmgDeTwgN1rQ==", + "license": "ISC", + "dependencies": { + "@babel/runtime": "^7.20.13", + "@panva/hkdf": "^1.0.2", + "cookie": "^0.7.0", + "jose": "^4.15.5", + "oauth": "^0.9.15", + "openid-client": "^5.4.0", + "preact": "^10.6.3", + "preact-render-to-string": "^5.1.19", + "uuid": "^8.3.2" + }, + "peerDependencies": { + "@auth/core": "0.34.3", + "next": "^12.2.5 || ^13 || ^14 || ^15 || ^16", + "nodemailer": "^7.0.7", + "react": "^17.0.2 || ^18 || ^19", + "react-dom": "^17.0.2 || ^18 || ^19" + }, + "peerDependenciesMeta": { + "@auth/core": { + "optional": true + }, + "nodemailer": { + "optional": true + } + } + }, + "node_modules/next/node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/next/node_modules/postcss": { + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/node-exports-info": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/node-exports-info/-/node-exports-info-1.6.0.tgz", + "integrity": "sha512-pyFS63ptit/P5WqUkt+UUfe+4oevH+bFeIiPPdfb0pFeYEu/1ELnJu5l+5EcTKYL5M7zaAa7S8ddywgXypqKCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "array.prototype.flatmap": "^1.3.3", + "es-errors": "^1.3.0", + "object.entries": "^1.1.9", + "semver": "^6.3.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/node-exports-info/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/node-fetch-native": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.6.7.tgz", + "integrity": "sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==", + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/nypm": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/nypm/-/nypm-0.6.5.tgz", + "integrity": "sha512-K6AJy1GMVyfyMXRVB88700BJqNUkByijGJM8kEHpLdcAt+vSQAVfkWWHYzuRXHSY6xA2sNc5RjTj0p9rE2izVQ==", + "license": "MIT", + "dependencies": { + "citty": "^0.2.0", + "pathe": "^2.0.3", + "tinyexec": "^1.0.2" + }, + "bin": { + "nypm": "dist/cli.mjs" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/nypm/node_modules/citty": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/citty/-/citty-0.2.1.tgz", + "integrity": "sha512-kEV95lFBhQgtogAPlQfJJ0WGVSokvLr/UEoFPiKKOXF7pl98HfUVUD0ejsuTCld/9xH9vogSywZ5KqHzXrZpqg==", + "license": "MIT" + }, + "node_modules/oauth": { + "version": "0.9.15", + "resolved": "https://registry.npmjs.org/oauth/-/oauth-0.9.15.tgz", + "integrity": "sha512-a5ERWK1kh38ExDEfoO6qUHJb32rd7aYmPHuyCu3Fta/cnICvYmgd2uhuKXvPD+PXB+gCEYYEaQdIRAjCOwAKNA==", + "license": "MIT" + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", + "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0", + "has-symbols": "^1.1.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz", + "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", + "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.groupby": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", + "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.values": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", + "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/ohash": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.11.tgz", + "integrity": "sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==", + "license": "MIT" + }, + "node_modules/oidc-token-hash": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/oidc-token-hash/-/oidc-token-hash-5.2.0.tgz", + "integrity": "sha512-6gj2m8cJZ+iSW8bm0FXdGF0YhIQbKrfP4yWTNzxc31U6MOjfEmB1rHvlYvxI1B7t7BCi1F2vYTT6YhtQRG4hxw==", + "license": "MIT", + "engines": { + "node": "^10.13.0 || >=12.0.0" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/openid-client": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-5.7.1.tgz", + "integrity": "sha512-jDBPgSVfTnkIh71Hg9pRvtJc6wTwqjRkN88+gCFtYWrlP4Yx2Dsrow8uPi3qLr/aeymPF3o2+dS+wOpglK04ew==", + "license": "MIT", + "dependencies": { + "jose": "^4.15.9", + "lru-cache": "^6.0.0", + "object-hash": "^2.2.0", + "oidc-token-hash": "^5.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/openid-client/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/openid-client/node_modules/object-hash": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-2.2.0.tgz", + "integrity": "sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw==", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/own-keys": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", + "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.6", + "object-keys": "^1.1.1", + "safe-push-apply": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/papaparse": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.5.3.tgz", + "integrity": "sha512-5QvjGxYVjxO59MGU2lHVYpRWBBtKHnlIAcSe1uNFCkkptUh63NFRj0FJQm7nR67puEruUci/ZkjmEFrjCAyP4A==", + "license": "MIT" + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "license": "MIT" + }, + "node_modules/perfect-debounce": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz", + "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==", + "license": "MIT" + }, + "node_modules/pg": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/pg/-/pg-8.19.0.tgz", + "integrity": "sha512-QIcLGi508BAHkQ3pJNptsFz5WQMlpGbuBGBaIaXsWK8mel2kQ/rThYI+DbgjUvZrIr7MiuEuc9LcChJoEZK1xQ==", + "license": "MIT", + "dependencies": { + "pg-connection-string": "^2.11.0", + "pg-pool": "^3.12.0", + "pg-protocol": "^1.12.0", + "pg-types": "2.2.0", + "pgpass": "1.0.5" + }, + "engines": { + "node": ">= 16.0.0" + }, + "optionalDependencies": { + "pg-cloudflare": "^1.3.0" + }, + "peerDependencies": { + "pg-native": ">=3.0.1" + }, + "peerDependenciesMeta": { + "pg-native": { + "optional": true + } + } + }, + "node_modules/pg-cloudflare": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.3.0.tgz", + "integrity": "sha512-6lswVVSztmHiRtD6I8hw4qP/nDm1EJbKMRhf3HCYaqud7frGysPv7FYJ5noZQdhQtN2xJnimfMtvQq21pdbzyQ==", + "license": "MIT", + "optional": true + }, + "node_modules/pg-connection-string": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.11.0.tgz", + "integrity": "sha512-kecgoJwhOpxYU21rZjULrmrBJ698U2RxXofKVzOn5UDj61BPj/qMb7diYUR1nLScCDbrztQFl1TaQZT0t1EtzQ==", + "license": "MIT" + }, + "node_modules/pg-int8": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", + "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", + "license": "ISC", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/pg-pool": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.12.0.tgz", + "integrity": "sha512-eIJ0DES8BLaziFHW7VgJEBPi5hg3Nyng5iKpYtj3wbcAUV9A1wLgWiY7ajf/f/oO1wfxt83phXPY8Emztg7ITg==", + "license": "MIT", + "peerDependencies": { + "pg": ">=8.0" + } + }, + "node_modules/pg-protocol": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.12.0.tgz", + "integrity": "sha512-uOANXNRACNdElMXJ0tPz6RBM0XQ61nONGAwlt8da5zs/iUOOCLBQOHSXnrC6fMsvtjxbOJrZZl5IScGv+7mpbg==", + "license": "MIT" + }, + "node_modules/pg-types": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", + "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", + "license": "MIT", + "dependencies": { + "pg-int8": "1.0.1", + "postgres-array": "~2.0.0", + "postgres-bytea": "~1.0.0", + "postgres-date": "~1.0.4", + "postgres-interval": "^1.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/pg-types/node_modules/postgres-array": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", + "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/pgpass": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz", + "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==", + "license": "MIT", + "dependencies": { + "split2": "^4.1.0" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-types": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.0.tgz", + "integrity": "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==", + "license": "MIT", + "dependencies": { + "confbox": "^0.2.2", + "exsolve": "^1.0.7", + "pathe": "^2.0.3" + } + }, + "node_modules/pngjs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-5.0.0.tgz", + "integrity": "sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==", + "license": "MIT", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/possible-typed-array-names": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", + "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/postcss": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz", + "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-load-config": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz", + "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "lilconfig": "^3.1.1" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "jiti": ">=1.21.0", + "postcss": ">=8.0.9", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + }, + "postcss": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/postcss-nested": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz", + "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.1.1" + }, + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", + "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/postcss/node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/postgres": { + "version": "3.4.7", + "resolved": "https://registry.npmjs.org/postgres/-/postgres-3.4.7.tgz", + "integrity": "sha512-Jtc2612XINuBjIl/QTWsV5UvE8UHuNblcO3vVADSrKsrc6RqGX6lOW1cEo3CM2v0XG4Nat8nI+YM7/f26VxXLw==", + "license": "Unlicense", + "engines": { + "node": ">=12" + }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/porsager" + } + }, + "node_modules/postgres-array": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-3.0.4.tgz", + "integrity": "sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ==", + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/postgres-bytea": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.1.tgz", + "integrity": "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-date": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", + "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postgres-interval": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", + "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", + "license": "MIT", + "dependencies": { + "xtend": "^4.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/preact": { + "version": "10.24.3", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.24.3.tgz", + "integrity": "sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, + "node_modules/preact-render-to-string": { + "version": "5.2.6", + "resolved": "https://registry.npmjs.org/preact-render-to-string/-/preact-render-to-string-5.2.6.tgz", + "integrity": "sha512-JyhErpYOvBV1hEPwIxc/fHWXPfnEGdRKxc8gFdAZ7XV4tlzyzG847XAyEZqoDnynP88akM4eaHcSOzNcLWFguw==", + "license": "MIT", + "dependencies": { + "pretty-format": "^3.8.0" + }, + "peerDependencies": { + "preact": ">=10" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-format": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-3.8.0.tgz", + "integrity": "sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew==", + "license": "MIT" + }, + "node_modules/prisma": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/prisma/-/prisma-7.4.2.tgz", + "integrity": "sha512-2bP8Ruww3Q95Z2eH4Yqh4KAENRsj/SxbdknIVBfd6DmjPwmpsC4OVFMLOeHt6tM3Amh8ebjvstrUz3V/hOe1dA==", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@prisma/config": "7.4.2", + "@prisma/dev": "0.20.0", + "@prisma/engines": "7.4.2", + "@prisma/studio-core": "0.13.1", + "mysql2": "3.15.3", + "postgres": "3.4.7" + }, + "bin": { + "prisma": "build/index.js" + }, + "engines": { + "node": "^20.19 || ^22.12 || >=24.0" + }, + "peerDependencies": { + "better-sqlite3": ">=9.0.0", + "typescript": ">=5.4.0" + }, + "peerDependenciesMeta": { + "better-sqlite3": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", + "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", + "dev": true, + "license": "MIT", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/proper-lockfile": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz", + "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "retry": "^0.12.0", + "signal-exit": "^3.0.2" + } + }, + "node_modules/proper-lockfile/node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, + "node_modules/qrcode": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/qrcode/-/qrcode-1.5.4.tgz", + "integrity": "sha512-1ca71Zgiu6ORjHqFBDpnSMTR2ReToX4l1Au1VFLyVeBTFavzQnv5JxMFr3ukHVKpSrSA2MCk0lNJSykjUfz7Zg==", + "license": "MIT", + "dependencies": { + "dijkstrajs": "^1.0.1", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/rc9": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/rc9/-/rc9-2.1.2.tgz", + "integrity": "sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg==", + "license": "MIT", + "dependencies": { + "defu": "^6.1.4", + "destr": "^2.0.3" + } + }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/read-cache": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", + "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/reflect.getprototypeof": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", + "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.9", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.7", + "get-proto": "^1.0.1", + "which-builtin-type": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexp-to-ast": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/regexp-to-ast/-/regexp-to-ast-0.5.0.tgz", + "integrity": "sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw==", + "license": "MIT" + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", + "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "define-properties": "^1.2.1", + "es-errors": "^1.3.0", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "set-function-name": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/remeda": { + "version": "2.33.4", + "resolved": "https://registry.npmjs.org/remeda/-/remeda-2.33.4.tgz", + "integrity": "sha512-ygHswjlc/opg2VrtiYvUOPLjxjtdKvjGz1/plDhkG66hjNjFr1xmfrs2ClNFo/E6TyUFiwYNh53bKV26oBoMGQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/remeda" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", + "license": "ISC" + }, + "node_modules/resolve": { + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/safe-array-concat": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", + "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "get-intrinsic": "^1.2.6", + "has-symbols": "^1.1.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-push-apply": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", + "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-regex-test": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", + "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "is-regex": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/seq-queue": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/seq-queue/-/seq-queue-0.0.5.tgz", + "integrity": "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q==" + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "license": "ISC" + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-function-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", + "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "functions-have-names": "^1.2.3", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/set-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", + "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split2": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", + "license": "ISC", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/sqlstring": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.3.tgz", + "integrity": "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/stable-hash": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.5.tgz", + "integrity": "sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==", + "dev": true, + "license": "MIT" + }, + "node_modules/std-env": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz", + "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==", + "license": "MIT" + }, + "node_modules/stop-iteration-iterator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", + "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "internal-slot": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/string-width/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/string-width/node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/string.prototype.includes": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz", + "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.3" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.12", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz", + "integrity": "sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.3", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.6", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.0.0", + "get-intrinsic": "^1.2.6", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "internal-slot": "^1.1.0", + "regexp.prototype.flags": "^1.5.3", + "set-function-name": "^2.0.2", + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.repeat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz", + "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.10", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", + "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-data-property": "^1.1.4", + "define-properties": "^1.2.1", + "es-abstract": "^1.23.5", + "es-object-atoms": "^1.0.0", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", + "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "call-bound": "^1.0.2", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", + "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "define-properties": "^1.2.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/stripe": { + "version": "20.4.0", + "resolved": "https://registry.npmjs.org/stripe/-/stripe-20.4.0.tgz", + "integrity": "sha512-F/aN1IQ9vHmlyLNi3DkiIbyzQb6gyBG0uYFd/VrEVQSc9BLtlgknPUx0EvzZdBMRLFuRaPFIFd7Mxwtg7Pbwzw==", + "license": "MIT", + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@types/node": ">=16" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, + "node_modules/styled-jsx": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.1.tgz", + "integrity": "sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==", + "license": "MIT", + "dependencies": { + "client-only": "0.0.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "peerDependencies": { + "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/sucrase": { + "version": "3.35.1", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz", + "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "tinyglobby": "^0.2.11", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tailwind-merge": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.5.0.tgz", + "integrity": "sha512-I8K9wewnVDkL1NTGoqWmVEIlUcB9gFriAEkXkfCjX5ib8ezGxtR3xD7iZIxrfArjEsH7F1CHD4RFUtxefdqV/A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/dcastil" + } + }, + "node_modules/tailwindcss": { + "version": "3.4.19", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz", + "integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.6.0", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.3.2", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.21.7", + "lilconfig": "^3.1.3", + "micromatch": "^4.0.8", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.1.1", + "postcss": "^8.4.47", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0", + "postcss-nested": "^6.2.0", + "postcss-selector-parser": "^6.1.2", + "resolve": "^1.22.8", + "sucrase": "^3.35.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true, + "license": "MIT" + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tinyexec": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.2.tgz", + "integrity": "sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinyglobby/node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.4.0.tgz", + "integrity": "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/tsconfig-paths": { + "version": "3.15.0", + "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", + "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/tsx": { + "version": "4.21.0", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz", + "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "~0.27.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typed-array-buffer": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", + "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "es-errors": "^1.3.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/typed-array-byte-length": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", + "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.14" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-byte-offset": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", + "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "for-each": "^0.3.3", + "gopd": "^1.2.0", + "has-proto": "^1.2.0", + "is-typed-array": "^1.1.15", + "reflect.getprototypeof": "^1.0.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", + "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.7", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "is-typed-array": "^1.1.13", + "possible-typed-array-names": "^1.0.0", + "reflect.getprototypeof": "^1.0.6" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "devOptional": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/unbox-primitive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", + "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.3", + "has-bigints": "^1.0.2", + "has-symbols": "^1.1.0", + "which-boxed-primitive": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "license": "MIT" + }, + "node_modules/unrs-resolver": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.11.1.tgz", + "integrity": "sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "napi-postinstall": "^0.3.0" + }, + "funding": { + "url": "https://opencollective.com/unrs-resolver" + }, + "optionalDependencies": { + "@unrs/resolver-binding-android-arm-eabi": "1.11.1", + "@unrs/resolver-binding-android-arm64": "1.11.1", + "@unrs/resolver-binding-darwin-arm64": "1.11.1", + "@unrs/resolver-binding-darwin-x64": "1.11.1", + "@unrs/resolver-binding-freebsd-x64": "1.11.1", + "@unrs/resolver-binding-linux-arm-gnueabihf": "1.11.1", + "@unrs/resolver-binding-linux-arm-musleabihf": "1.11.1", + "@unrs/resolver-binding-linux-arm64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-arm64-musl": "1.11.1", + "@unrs/resolver-binding-linux-ppc64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-riscv64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-riscv64-musl": "1.11.1", + "@unrs/resolver-binding-linux-s390x-gnu": "1.11.1", + "@unrs/resolver-binding-linux-x64-gnu": "1.11.1", + "@unrs/resolver-binding-linux-x64-musl": "1.11.1", + "@unrs/resolver-binding-wasm32-wasi": "1.11.1", + "@unrs/resolver-binding-win32-arm64-msvc": "1.11.1", + "@unrs/resolver-binding-win32-ia32-msvc": "1.11.1", + "@unrs/resolver-binding-win32-x64-msvc": "1.11.1" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/valibot": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.2.0.tgz", + "integrity": "sha512-mm1rxUsmOxzrwnX5arGS+U4T25RdvpPjPN4yR0u9pUBov9+zGVtO84tif1eY4r6zWxVxu3KzIyknJy3rxfRZZg==", + "license": "MIT", + "peerDependencies": { + "typescript": ">=5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", + "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-bigint": "^1.1.0", + "is-boolean-object": "^1.2.1", + "is-number-object": "^1.1.1", + "is-string": "^1.1.1", + "is-symbol": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-builtin-type": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", + "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "function.prototype.name": "^1.1.6", + "has-tostringtag": "^1.0.2", + "is-async-function": "^2.0.0", + "is-date-object": "^1.1.0", + "is-finalizationregistry": "^1.1.0", + "is-generator-function": "^1.0.10", + "is-regex": "^1.2.1", + "is-weakref": "^1.0.2", + "isarray": "^2.0.5", + "which-boxed-primitive": "^1.1.0", + "which-collection": "^1.0.2", + "which-typed-array": "^1.1.16" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", + "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-map": "^2.0.3", + "is-set": "^2.0.3", + "is-weakmap": "^2.0.2", + "is-weakset": "^2.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-module": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", + "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", + "license": "ISC" + }, + "node_modules/which-typed-array": { + "version": "1.1.20", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.20.tgz", + "integrity": "sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg==", + "dev": true, + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.7", + "call-bind": "^1.0.8", + "call-bound": "^1.0.4", + "for-each": "^0.3.5", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-tostringtag": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", + "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "license": "MIT", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "license": "ISC" + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, + "node_modules/yargs": { + "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "license": "MIT", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs-parser": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", + "license": "ISC", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/yargs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/yargs/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yargs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zeptomatch": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/zeptomatch/-/zeptomatch-2.1.0.tgz", + "integrity": "sha512-KiGErG2J0G82LSpniV0CtIzjlJ10E04j02VOudJsPyPwNZgGnRKQy7I1R7GMyg/QswnE4l7ohSGrQbQbjXPPDA==", + "license": "MIT", + "dependencies": { + "grammex": "^3.1.11", + "graphmatch": "^1.1.0" + } + }, + "node_modules/zod": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz", + "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + } + } +} diff --git a/pledge-now-pay-later/package.json b/pledge-now-pay-later/package.json new file mode 100644 index 0000000..88cb47a --- /dev/null +++ b/pledge-now-pay-later/package.json @@ -0,0 +1,49 @@ +{ + "name": "pledge-now-pay-later", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint" + }, + "dependencies": { + "@auth/prisma-adapter": "^2.11.1", + "@prisma/adapter-pg": "^7.4.2", + "@prisma/client": "^7.4.2", + "@stripe/stripe-js": "^8.8.0", + "@types/bcryptjs": "^2.4.6", + "@types/qrcode": "^1.5.6", + "bcryptjs": "^3.0.3", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "date-fns": "^4.1.0", + "lucide-react": "^0.575.0", + "nanoid": "^5.1.6", + "next": "14.2.35", + "next-auth": "^4.24.13", + "papaparse": "^5.5.3", + "pg": "^8.19.0", + "prisma": "^7.4.2", + "qrcode": "^1.5.4", + "react": "^18", + "react-dom": "^18", + "stripe": "^20.4.0", + "tailwind-merge": "^3.5.0", + "zod": "^4.3.6" + }, + "devDependencies": { + "@types/node": "^20", + "@types/papaparse": "^5.5.2", + "@types/pg": "^8.18.0", + "@types/react": "^18", + "@types/react-dom": "^18", + "eslint": "^8", + "eslint-config-next": "14.2.35", + "postcss": "^8", + "tailwindcss": "^3.4.1", + "tsx": "^4.21.0", + "typescript": "^5" + } +} diff --git a/pledge-now-pay-later/postcss.config.mjs b/pledge-now-pay-later/postcss.config.mjs new file mode 100644 index 0000000..1a69fd2 --- /dev/null +++ b/pledge-now-pay-later/postcss.config.mjs @@ -0,0 +1,8 @@ +/** @type {import('postcss-load-config').Config} */ +const config = { + plugins: { + tailwindcss: {}, + }, +}; + +export default config; diff --git a/pledge-now-pay-later/prisma.config.ts b/pledge-now-pay-later/prisma.config.ts new file mode 100644 index 0000000..dfa9dc3 --- /dev/null +++ b/pledge-now-pay-later/prisma.config.ts @@ -0,0 +1,15 @@ +// This file was generated by Prisma, and assumes you have installed the following: +// npm install --save-dev prisma dotenv +import "dotenv/config"; +import { defineConfig } from "prisma/config"; + +export default defineConfig({ + schema: "prisma/schema.prisma", + migrations: { + path: "prisma/migrations", + seed: "bun prisma/seed.mts", + }, + datasource: { + url: process.env["DATABASE_URL"], + }, +}); diff --git a/pledge-now-pay-later/prisma/schema.prisma b/pledge-now-pay-later/prisma/schema.prisma new file mode 100644 index 0000000..7a7aafc --- /dev/null +++ b/pledge-now-pay-later/prisma/schema.prisma @@ -0,0 +1,208 @@ +generator client { + provider = "prisma-client" + output = "../src/generated/prisma" +} + +datasource db { + provider = "postgresql" +} + +model Organization { + id String @id @default(cuid()) + name String + slug String @unique + country String @default("UK") + timezone String @default("Europe/London") + bankName String? + bankSortCode String? + bankAccountNo String? + bankAccountName String? + refPrefix String @default("PNPL") + logo String? + primaryColor String @default("#1e40af") + gcAccessToken String? + gcEnvironment String @default("sandbox") + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + + users User[] + events Event[] + pledges Pledge[] + imports Import[] + + @@index([slug]) +} + +model User { + id String @id @default(cuid()) + email String @unique + name String? + hashedPassword String? + role String @default("staff") // super_admin, org_admin, staff, volunteer + organizationId String + organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + + @@index([organizationId]) +} + +model Event { + id String @id @default(cuid()) + name String + slug String + description String? + eventDate DateTime? + location String? + goalAmount Int? // in pence + currency String @default("GBP") + status String @default("active") // draft, active, closed, archived + organizationId String + organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade) + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + + qrSources QrSource[] + pledges Pledge[] + + @@unique([organizationId, slug]) + @@index([organizationId, status]) +} + +model QrSource { + id String @id @default(cuid()) + label String // "Table 5", "Volunteer: Ahmed" + code String @unique // short token for URL + volunteerName String? + tableName String? + eventId String + event Event @relation(fields: [eventId], references: [id], onDelete: Cascade) + scanCount Int @default(0) + createdAt DateTime @default(now()) + + pledges Pledge[] + + @@index([eventId]) + @@index([code]) +} + +model Pledge { + id String @id @default(cuid()) + reference String @unique // human-safe bank ref e.g. "PNPL-7K4P-50" + amountPence Int + currency String @default("GBP") + rail String // bank, gocardless, card + status String @default("new") // new, initiated, paid, overdue, cancelled + donorName String? + donorEmail String? + donorPhone String? + giftAid Boolean @default(false) + iPaidClickedAt DateTime? + notes String? + + eventId String + event Event @relation(fields: [eventId], references: [id]) + qrSourceId String? + qrSource QrSource? @relation(fields: [qrSourceId], references: [id]) + organizationId String + organization Organization @relation(fields: [organizationId], references: [id]) + + paymentInstruction PaymentInstruction? + payments Payment[] + reminders Reminder[] + + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + paidAt DateTime? + cancelledAt DateTime? + + @@index([organizationId, status]) + @@index([reference]) + @@index([eventId, status]) + @@index([donorEmail]) + @@index([donorPhone]) +} + +model PaymentInstruction { + id String @id @default(cuid()) + pledgeId String @unique + pledge Pledge @relation(fields: [pledgeId], references: [id], onDelete: Cascade) + bankReference String // the unique ref to use + bankDetails Json // {sortCode, accountNo, accountName, bankName} + gcMandateId String? + gcMandateUrl String? + sentAt DateTime? + createdAt DateTime @default(now()) + + @@index([bankReference]) +} + +model Payment { + id String @id @default(cuid()) + pledgeId String + pledge Pledge @relation(fields: [pledgeId], references: [id], onDelete: Cascade) + provider String // bank, gocardless, stripe + providerRef String? // external ID + amountPence Int + status String @default("pending") // pending, confirmed, failed + matchedBy String? // auto, manual + receivedAt DateTime? + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + + importId String? + import Import? @relation(fields: [importId], references: [id]) + + @@index([pledgeId]) + @@index([providerRef]) +} + +model Reminder { + id String @id @default(cuid()) + pledgeId String + pledge Pledge @relation(fields: [pledgeId], references: [id], onDelete: Cascade) + step Int // 0=instructions, 1=nudge, 2=urgency, 3=final + channel String @default("email") // email, sms, whatsapp + scheduledAt DateTime + sentAt DateTime? + status String @default("pending") // pending, sent, skipped, failed + payload Json? + createdAt DateTime @default(now()) + + @@index([pledgeId]) + @@index([scheduledAt, status]) +} + +model Import { + id String @id @default(cuid()) + organizationId String + organization Organization @relation(fields: [organizationId], references: [id]) + kind String // bank_statement, gocardless_export, crm_export + fileName String? + rowCount Int @default(0) + matchedCount Int @default(0) + unmatchedCount Int @default(0) + mappingConfig Json? + stats Json? + status String @default("pending") // pending, processing, completed, failed + uploadedAt DateTime @default(now()) + + payments Payment[] + + @@index([organizationId]) +} + +model AnalyticsEvent { + id String @id @default(cuid()) + eventType String // pledge_start, amount_selected, rail_selected, identity_submitted, pledge_completed, instruction_copy_clicked, i_paid_clicked, payment_matched + pledgeId String? + eventId String? + qrSourceId String? + metadata Json? + createdAt DateTime @default(now()) + + @@index([eventType]) + @@index([pledgeId]) + @@index([eventId]) + @@index([createdAt]) +} diff --git a/pledge-now-pay-later/prisma/seed.mts b/pledge-now-pay-later/prisma/seed.mts new file mode 100644 index 0000000..6cc4277 --- /dev/null +++ b/pledge-now-pay-later/prisma/seed.mts @@ -0,0 +1,306 @@ +import "dotenv/config" +import pg from "pg" +import { PrismaPg } from "@prisma/adapter-pg" +import { PrismaClient } from "../src/generated/prisma/client.ts" + +const pool = new pg.Pool({ connectionString: process.env.DATABASE_URL }) +const adapter = new PrismaPg(pool) +const prisma = new PrismaClient({ adapter }) + +function daysFromNow(days: number): Date { + return new Date(Date.now() + days * 86400000) +} + +function daysAgo(days: number): Date { + return new Date(Date.now() - days * 86400000) +} + +async function main() { + // ── Organisation ── + const org = await prisma.organization.upsert({ + where: { slug: "demo-charity" }, + update: { + bankName: "Barclays", + bankSortCode: "20-00-00", + bankAccountNo: "12345678", + bankAccountName: "Charity Right", + }, + create: { + name: "Charity Right", + slug: "demo-charity", + country: "UK", + timezone: "Europe/London", + bankName: "Barclays", + bankSortCode: "20-00-00", + bankAccountNo: "12345678", + bankAccountName: "Charity Right", + refPrefix: "DEMO", + primaryColor: "#1e40af", + }, + }) + + // ── Admin user ── + await prisma.user.upsert({ + where: { email: "admin@charityright.org" }, + update: {}, + create: { + email: "admin@charityright.org", + name: "Azreen Jamal", + role: "org_admin", + organizationId: org.id, + }, + }) + + // ── Events ── + const galaEvent = await prisma.event.upsert({ + where: { organizationId_slug: { organizationId: org.id, slug: "ramadan-gala-2026" } }, + update: { name: "Ramadan Gala 2026", eventDate: daysFromNow(14), goalAmount: 5000000 }, + create: { + name: "Ramadan Gala 2026", + slug: "ramadan-gala-2026", + description: "Annual fundraising gala dinner — all proceeds support orphan education in Bangladesh, Pakistan, and Syria.", + eventDate: daysFromNow(14), + location: "Bradford Hilton, Hall Lane, BD1 4QR", + goalAmount: 5000000, // £50,000 + currency: "GBP", + status: "active", + organizationId: org.id, + }, + }) + + const eidEvent = await prisma.event.upsert({ + where: { organizationId_slug: { organizationId: org.id, slug: "eid-community-lunch-2026" } }, + update: {}, + create: { + name: "Eid Community Lunch 2026", + slug: "eid-community-lunch-2026", + description: "Community lunch and fundraiser for local food bank programme.", + eventDate: daysFromNow(45), + location: "East London Mosque, Whitechapel Road, E1 1JX", + goalAmount: 1500000, // £15,000 + currency: "GBP", + status: "active", + organizationId: org.id, + }, + }) + + // ── QR Sources for Gala ── + const qrCodes = [ + { label: "Table 1 - Ahmed", volunteerName: "Ahmed Khan", tableName: "Table 1", code: "gala-tbl1" }, + { label: "Table 2 - Fatima", volunteerName: "Fatima Patel", tableName: "Table 2", code: "gala-tbl2" }, + { label: "Table 3 - Yusuf", volunteerName: "Yusuf Ali", tableName: "Table 3", code: "gala-tbl3" }, + { label: "Table 4 - Khadijah", volunteerName: "Khadijah Begum", tableName: "Table 4", code: "gala-tbl4" }, + { label: "Table 5 - Omar", volunteerName: "Omar Malik", tableName: "Table 5", code: "gala-tbl5" }, + { label: "Main Entrance", volunteerName: null, tableName: null, code: "gala-entrance" }, + { label: "Stage Banner", volunteerName: null, tableName: null, code: "gala-stage" }, + { label: "Online Link", volunteerName: null, tableName: null, code: "gala-online" }, + ] + + const qrSourceIds: Record = {} + for (const qr of qrCodes) { + const source = await prisma.qrSource.upsert({ + where: { code: qr.code }, + update: { label: qr.label, volunteerName: qr.volunteerName, scanCount: Math.floor(Math.random() * 40) + 5 }, + create: { + label: qr.label, + code: qr.code, + volunteerName: qr.volunteerName, + tableName: qr.tableName, + eventId: galaEvent.id, + scanCount: Math.floor(Math.random() * 40) + 5, + }, + }) + qrSourceIds[qr.code] = source.id + } + + // ── QR Sources for Eid ── + const eidQrs = [ + { label: "Registration Desk", volunteerName: "Ibrahim Hassan", tableName: null, code: "eid-reg" }, + { label: "Online Link", volunteerName: null, tableName: null, code: "eid-online" }, + ] + for (const qr of eidQrs) { + await prisma.qrSource.upsert({ + where: { code: qr.code }, + update: {}, + create: { + label: qr.label, + code: qr.code, + volunteerName: qr.volunteerName, + tableName: qr.tableName, + eventId: eidEvent.id, + scanCount: Math.floor(Math.random() * 10) + 2, + }, + }) + } + + // ── Sample Pledges ── + const samplePledges = [ + // Paid pledges + { name: "Sarah Khan", email: "sarah@example.com", phone: "07700900001", amount: 10000, rail: "bank", status: "paid", giftAid: true, qr: "gala-tbl1", daysAgo: 5 }, + { name: "Ali Hassan", email: "ali.hassan@gmail.com", phone: "07700900002", amount: 25000, rail: "bank", status: "paid", giftAid: false, qr: "gala-tbl1", daysAgo: 4 }, + { name: "Amina Begum", email: "amina.b@hotmail.com", phone: "", amount: 5000, rail: "card", status: "paid", giftAid: true, qr: "gala-tbl2", daysAgo: 3 }, + { name: "Mohammed Raza", email: "m.raza@outlook.com", phone: "07700900004", amount: 50000, rail: "gocardless", status: "paid", giftAid: true, qr: "gala-stage", daysAgo: 6 }, + { name: "Zainab Ahmed", email: "zainab@example.com", phone: "", amount: 10000, rail: "bank", status: "paid", giftAid: false, qr: "gala-tbl3", daysAgo: 7 }, + { name: "Hassan Malik", email: "hassan.malik@gmail.com", phone: "07700900006", amount: 20000, rail: "card", status: "paid", giftAid: true, qr: "gala-entrance", daysAgo: 2 }, + + // Initiated (payment in progress) + { name: "Ruqayyah Patel", email: "ruqayyah@example.com", phone: "07700900007", amount: 15000, rail: "bank", status: "initiated", giftAid: true, qr: "gala-tbl4", daysAgo: 1 }, + { name: "Ibrahim Shah", email: "ibrahim.shah@gmail.com", phone: "", amount: 10000, rail: "gocardless", status: "initiated", giftAid: false, qr: "gala-tbl5", daysAgo: 1 }, + + // New pledges (just created) + { name: "Maryam Siddiqui", email: "maryam.s@yahoo.com", phone: "07700900009", amount: 5000, rail: "bank", status: "new", giftAid: false, qr: "gala-tbl2", daysAgo: 0 }, + { name: "Usman Chaudhry", email: "usman.c@gmail.com", phone: "", amount: 100000, rail: "bank", status: "new", giftAid: true, qr: "gala-entrance", daysAgo: 0 }, + { name: "Aisha Rahman", email: "aisha.r@hotmail.com", phone: "07700900011", amount: 7500, rail: "card", status: "new", giftAid: true, qr: "gala-online", daysAgo: 0 }, + { name: null, email: "anon.donor@gmail.com", phone: "", amount: 20000, rail: "bank", status: "new", giftAid: false, qr: "gala-tbl3", daysAgo: 0 }, + + // Overdue + { name: "Tariq Hussain", email: "tariq.h@example.com", phone: "07700900013", amount: 25000, rail: "bank", status: "overdue", giftAid: true, qr: "gala-tbl1", daysAgo: 12 }, + { name: "Nadia Akhtar", email: "nadia.a@outlook.com", phone: "", amount: 10000, rail: "bank", status: "overdue", giftAid: false, qr: "gala-tbl5", daysAgo: 10 }, + + // Cancelled + { name: "Omar Farooq", email: "omar.f@gmail.com", phone: "07700900015", amount: 5000, rail: "card", status: "cancelled", giftAid: false, qr: "gala-tbl4", daysAgo: 8 }, + + // FPX pledge (Malaysian donor) + { name: "Ahmad bin Abdullah", email: "ahmad@example.my", phone: "+60123456789", amount: 50000, rail: "fpx", status: "paid", giftAid: false, qr: "gala-online", daysAgo: 3 }, + + // Eid event pledges + { name: "Hafsa Nawaz", email: "hafsa@example.com", phone: "07700900017", amount: 5000, rail: "bank", status: "new", giftAid: true, qr: null, daysAgo: 1 }, + { name: "Bilal Iqbal", email: "bilal.i@gmail.com", phone: "", amount: 10000, rail: "gocardless", status: "paid", giftAid: false, qr: null, daysAgo: 5 }, + ] + + let pledgeIndex = 0 + for (const p of samplePledges) { + pledgeIndex++ + const ref = `DEMO-SEED${String(pledgeIndex).padStart(2, "0")}-${Math.floor(p.amount / 100)}` + const isEid = p.qr === null + const eventId = isEid ? eidEvent.id : galaEvent.id + const createdAt = daysAgo(p.daysAgo) + const paidAt = p.status === "paid" ? daysAgo(Math.max(p.daysAgo - 1, 0)) : null + + // Skip if reference already exists + const existing = await prisma.pledge.findUnique({ where: { reference: ref } }) + if (existing) continue + + const pledge = await prisma.pledge.create({ + data: { + reference: ref, + amountPence: p.amount, + currency: "GBP", + rail: p.rail, + status: p.status, + donorName: p.name, + donorEmail: p.email || null, + donorPhone: p.phone || null, + giftAid: p.giftAid, + eventId, + qrSourceId: p.qr ? qrSourceIds[p.qr] || null : null, + organizationId: org.id, + createdAt, + paidAt, + cancelledAt: p.status === "cancelled" ? daysAgo(p.daysAgo - 1) : null, + }, + }) + + // Payment instruction for bank transfers + if (p.rail === "bank") { + await prisma.paymentInstruction.create({ + data: { + pledgeId: pledge.id, + bankReference: ref, + bankDetails: { + bankName: "Barclays", + sortCode: "20-00-00", + accountNo: "12345678", + accountName: "Charity Right", + }, + }, + }) + } + + // Payment record for paid pledges + if (p.status === "paid") { + await prisma.payment.create({ + data: { + pledgeId: pledge.id, + provider: p.rail === "gocardless" ? "gocardless" : p.rail === "card" || p.rail === "fpx" ? "stripe" : "bank", + providerRef: p.rail === "bank" ? null : `sim_${pledge.id.slice(0, 8)}`, + amountPence: p.amount, + status: "confirmed", + matchedBy: p.rail === "bank" ? "auto" : "webhook", + receivedAt: paidAt, + }, + }) + } + + // Reminders for non-paid pledges + if (["new", "initiated", "overdue"].includes(p.status)) { + const steps = [ + { step: 0, delayDays: 0, key: "instructions" }, + { step: 1, delayDays: 2, key: "gentle_nudge" }, + { step: 2, delayDays: 7, key: "urgency_impact" }, + { step: 3, delayDays: 14, key: "final_reminder" }, + ] + for (const s of steps) { + const scheduledAt = new Date(createdAt.getTime() + s.delayDays * 86400000) + const isSent = scheduledAt < new Date() && p.status !== "new" + await prisma.reminder.create({ + data: { + pledgeId: pledge.id, + step: s.step, + channel: "email", + scheduledAt, + status: p.status === "overdue" && s.step <= 2 ? "sent" : isSent ? "sent" : "pending", + sentAt: isSent ? scheduledAt : null, + payload: { templateKey: s.key }, + }, + }) + } + } + + // Analytics events + await prisma.analyticsEvent.create({ + data: { + eventType: "pledge_completed", + pledgeId: pledge.id, + eventId, + qrSourceId: p.qr ? qrSourceIds[p.qr] || null : null, + metadata: { amountPence: p.amount, rail: p.rail }, + createdAt, + }, + }) + } + + // ── Funnel analytics (scans → starts → completions) ── + const funnelEvents = [ + ...Array.from({ length: 45 }, () => ({ eventType: "pledge_start", eventId: galaEvent.id })), + ...Array.from({ length: 8 }, () => ({ eventType: "pledge_start", eventId: eidEvent.id })), + ...Array.from({ length: 12 }, () => ({ eventType: "instruction_copy_clicked", eventId: galaEvent.id })), + ...Array.from({ length: 6 }, () => ({ eventType: "i_paid_clicked", eventId: galaEvent.id })), + ] + for (const fe of funnelEvents) { + await prisma.analyticsEvent.create({ + data: { + eventType: fe.eventType, + eventId: fe.eventId, + createdAt: daysAgo(Math.floor(Math.random() * 7)), + }, + }) + } + + // Count totals + const pledgeCount = await prisma.pledge.count({ where: { organizationId: org.id } }) + const totalAmount = await prisma.pledge.aggregate({ where: { organizationId: org.id }, _sum: { amountPence: true } }) + + console.log("✅ Seed data created") + console.log(` Org: ${org.name} (${org.slug})`) + console.log(` Events: ${galaEvent.name}, ${eidEvent.name}`) + console.log(` QR Codes: ${qrCodes.length + eidQrs.length}`) + console.log(` Pledges: ${pledgeCount} (£${((totalAmount._sum.amountPence || 0) / 100).toLocaleString()})`) +} + +main() + .catch(console.error) + .finally(async () => { + await prisma.$disconnect() + await pool.end() + }) diff --git a/pledge-now-pay-later/src/app/api/analytics/route.ts b/pledge-now-pay-later/src/app/api/analytics/route.ts new file mode 100644 index 0000000..56706f5 --- /dev/null +++ b/pledge-now-pay-later/src/app/api/analytics/route.ts @@ -0,0 +1,33 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" + +export async function POST(request: NextRequest) { + try { + const body = await request.json() + const { eventType, pledgeId, eventId, qrSourceId, metadata } = body + + // Fire and forget - don't block on errors + if (pledgeId?.startsWith("demo-")) { + return NextResponse.json({ ok: true }) + } + + if (!prisma) { + return NextResponse.json({ ok: true }) + } + + await prisma.analyticsEvent.create({ + data: { + eventType: eventType || "unknown", + pledgeId: pledgeId || null, + eventId: eventId || null, + qrSourceId: qrSourceId || null, + metadata: metadata || {}, + }, + }) + + return NextResponse.json({ ok: true }) + } catch { + // Never fail analytics + return NextResponse.json({ ok: true }) + } +} diff --git a/pledge-now-pay-later/src/app/api/dashboard/route.ts b/pledge-now-pay-later/src/app/api/dashboard/route.ts new file mode 100644 index 0000000..25c0b46 --- /dev/null +++ b/pledge-now-pay-later/src/app/api/dashboard/route.ts @@ -0,0 +1,156 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" +import { resolveOrgId } from "@/lib/org" + +interface PledgeRow { + id: string + reference: string + amountPence: number + status: string + rail: string + donorName: string | null + donorEmail: string | null + donorPhone: string | null + giftAid: boolean + createdAt: Date + paidAt: Date | null + event: { name: string } + qrSource: { label: string; volunteerName: string | null; tableName: string | null } | null + reminders: Array<{ step: number; status: string; scheduledAt: Date }> +} + +interface AnalyticsRow { + eventType: string + _count: number +} + +interface ReminderRow { + step: number + status: string + scheduledAt: Date +} + +export async function GET(request: NextRequest) { + try { + if (!prisma) { + return NextResponse.json({ + summary: { + totalPledges: 12, + totalPledgedPence: 2450000, + totalCollectedPence: 1820000, + collectionRate: 74, + overdueRate: 8, + }, + byStatus: { paid: 8, pending: 2, overdue: 1, cancelled: 1 }, + byRail: { bank_transfer: 10, card: 2 }, + topSources: [ + { label: "Table 1 - Ahmed", count: 4, amount: 850000 }, + { label: "Table 2 - Fatima", count: 3, amount: 620000 }, + ], + funnel: { qr_scan: 45, pledge_started: 32, pledge_completed: 12 }, + pledges: [], + }) + } + + const orgId = await resolveOrgId(request.headers.get("x-org-id")) + if (!orgId) { + return NextResponse.json({ error: "Organization not found" }, { status: 404 }) + } + const eventId = request.nextUrl.searchParams.get("eventId") + + const where = { + organizationId: orgId, + ...(eventId ? { eventId } : {}), + } + + const [pledges, analytics] = await Promise.all([ + prisma.pledge.findMany({ + where, + include: { + event: { select: { name: true } }, + qrSource: { select: { label: true, volunteerName: true, tableName: true } }, + reminders: { select: { step: true, status: true, scheduledAt: true } }, + }, + orderBy: { createdAt: "desc" }, + }), + prisma.analyticsEvent.groupBy({ + by: ["eventType"], + where: eventId ? { eventId } : {}, + _count: true, + }), + ]) as [PledgeRow[], AnalyticsRow[]] + + const totalPledged = pledges.reduce((s: number, p: PledgeRow) => s + p.amountPence, 0) + const totalCollected = pledges + .filter((p: PledgeRow) => p.status === "paid") + .reduce((s: number, p: PledgeRow) => s + p.amountPence, 0) + const collectionRate = totalPledged > 0 ? totalCollected / totalPledged : 0 + const overdueCount = pledges.filter((p: PledgeRow) => p.status === "overdue").length + const overdueRate = pledges.length > 0 ? overdueCount / pledges.length : 0 + + // Status breakdown + const byStatus: Record = {} + pledges.forEach((p: PledgeRow) => { + byStatus[p.status] = (byStatus[p.status] || 0) + 1 + }) + + // Rail breakdown + const byRail: Record = {} + pledges.forEach((p: PledgeRow) => { + byRail[p.rail] = (byRail[p.rail] || 0) + 1 + }) + + // Top QR sources + const qrStats: Record = {} + pledges.forEach((p: PledgeRow) => { + if (p.qrSource) { + const key = p.qrSource.label + if (!qrStats[key]) qrStats[key] = { label: key, count: 0, amount: 0 } + qrStats[key].count++ + qrStats[key].amount += p.amountPence + } + }) + + // Funnel from analytics + const funnel = Object.fromEntries(analytics.map((a: AnalyticsRow) => [a.eventType, a._count])) + + return NextResponse.json({ + summary: { + totalPledges: pledges.length, + totalPledgedPence: totalPledged, + totalCollectedPence: totalCollected, + collectionRate: Math.round(collectionRate * 100), + overdueRate: Math.round(overdueRate * 100), + }, + byStatus, + byRail, + topSources: Object.values(qrStats).sort((a: { amount: number }, b: { amount: number }) => b.amount - a.amount).slice(0, 10), + funnel, + pledges: pledges.map((p: PledgeRow) => ({ + id: p.id, + reference: p.reference, + amountPence: p.amountPence, + status: p.status, + rail: p.rail, + donorName: p.donorName, + donorEmail: p.donorEmail, + donorPhone: p.donorPhone, + eventName: p.event.name, + source: p.qrSource?.label || null, + volunteerName: p.qrSource?.volunteerName || null, + giftAid: p.giftAid, + createdAt: p.createdAt, + paidAt: p.paidAt, + nextReminder: p.reminders + .filter((r: ReminderRow) => r.status === "pending") + .sort((a: ReminderRow, b: ReminderRow) => a.scheduledAt.getTime() - b.scheduledAt.getTime())[0]?.scheduledAt || null, + lastTouch: p.reminders + .filter((r: ReminderRow) => r.status === "sent") + .sort((a: ReminderRow, b: ReminderRow) => b.scheduledAt.getTime() - a.scheduledAt.getTime())[0]?.scheduledAt || null, + })), + }) + } catch (error) { + console.error("Dashboard error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/events/[id]/qr/[qrId]/download/route.ts b/pledge-now-pay-later/src/app/api/events/[id]/qr/[qrId]/download/route.ts new file mode 100644 index 0000000..22ae137 --- /dev/null +++ b/pledge-now-pay-later/src/app/api/events/[id]/qr/[qrId]/download/route.ts @@ -0,0 +1,32 @@ +import { NextRequest, NextResponse } from "next/server" +import { generateQrBuffer } from "@/lib/qr" + +export async function GET( + request: NextRequest, + { params }: { params: Promise<{ id: string; qrId: string }> } +) { + try { + const { qrId } = await params + const baseUrl = process.env.BASE_URL || "http://localhost:3000" + + // qrId is actually used to look up the code, but for simplicity use the code from query + const code = request.nextUrl.searchParams.get("code") || qrId + + const buffer = await generateQrBuffer({ + baseUrl, + code, + width: 800, + margin: 2, + }) + + return new NextResponse(new Uint8Array(buffer), { + headers: { + "Content-Type": "image/png", + "Content-Disposition": `attachment; filename="qr-${code}.png"`, + }, + }) + } catch (error) { + console.error("QR download error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/events/[id]/qr/route.ts b/pledge-now-pay-later/src/app/api/events/[id]/qr/route.ts new file mode 100644 index 0000000..68f008d --- /dev/null +++ b/pledge-now-pay-later/src/app/api/events/[id]/qr/route.ts @@ -0,0 +1,104 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" +import { createQrSourceSchema } from "@/lib/validators" +import { customAlphabet } from "nanoid" + +const generateCode = customAlphabet("23456789abcdefghjkmnpqrstuvwxyz", 8) + +interface QrPledge { + amountPence: number + status: string +} + +interface QrRow { + id: string + label: string + code: string + volunteerName: string | null + tableName: string | null + scanCount: number + createdAt: Date + _count: { pledges: number } + pledges: QrPledge[] +} + +// GET QR sources for event +export async function GET( + request: NextRequest, + { params }: { params: Promise<{ id: string }> } +) { + try { + const { id } = await params + if (!prisma) { + return NextResponse.json([]) + } + const sources = await prisma.qrSource.findMany({ + where: { eventId: id }, + include: { + _count: { select: { pledges: true } }, + pledges: { select: { amountPence: true, status: true } }, + }, + orderBy: { createdAt: "desc" }, + }) as QrRow[] + + return NextResponse.json( + sources.map((s: QrRow) => ({ + id: s.id, + label: s.label, + code: s.code, + volunteerName: s.volunteerName, + tableName: s.tableName, + scanCount: s.scanCount, + pledgeCount: s._count.pledges, + totalPledged: s.pledges.reduce((sum: number, p: QrPledge) => sum + p.amountPence, 0), + createdAt: s.createdAt, + })) + ) + } catch (error) { + console.error("QR sources GET error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} + +// POST create QR source +export async function POST( + request: NextRequest, + { params }: { params: Promise<{ id: string }> } +) { + try { + const { id } = await params + if (!prisma) { + return NextResponse.json({ error: "Database not configured" }, { status: 503 }) + } + const body = await request.json() + + const parsed = createQrSourceSchema.safeParse(body) + if (!parsed.success) { + return NextResponse.json({ error: "Invalid data", details: parsed.error.flatten() }, { status: 400 }) + } + + const event = await prisma.event.findUnique({ + where: { id }, + select: { id: true }, + }) + + if (!event) { + return NextResponse.json({ error: "Event not found" }, { status: 404 }) + } + + const code = generateCode() + + const qrSource = await prisma.qrSource.create({ + data: { + ...parsed.data, + code, + eventId: id, + }, + }) + + return NextResponse.json(qrSource, { status: 201 }) + } catch (error) { + console.error("QR source creation error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/events/route.ts b/pledge-now-pay-later/src/app/api/events/route.ts new file mode 100644 index 0000000..685ee77 --- /dev/null +++ b/pledge-now-pay-later/src/app/api/events/route.ts @@ -0,0 +1,107 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" +import { createEventSchema } from "@/lib/validators" +import { resolveOrgId } from "@/lib/org" + +interface PledgeSummary { + amountPence: number + status: string +} + +interface EventRow { + id: string + name: string + slug: string + eventDate: Date | null + location: string | null + goalAmount: number | null + status: string + createdAt: Date + _count: { pledges: number; qrSources: number } + pledges: PledgeSummary[] +} + +// GET all events for org (TODO: auth middleware) +export async function GET(request: NextRequest) { + try { + if (!prisma) { + return NextResponse.json([]) + } + const orgId = await resolveOrgId(request.headers.get("x-org-id")) + if (!orgId) { + return NextResponse.json({ error: "Organization not found" }, { status: 404 }) + } + + const events = await prisma.event.findMany({ + where: { organizationId: orgId }, + include: { + _count: { select: { pledges: true, qrSources: true } }, + pledges: { + select: { amountPence: true, status: true }, + }, + }, + orderBy: { createdAt: "desc" }, + }) as EventRow[] + + const formatted = events.map((e: EventRow) => ({ + id: e.id, + name: e.name, + slug: e.slug, + eventDate: e.eventDate, + location: e.location, + goalAmount: e.goalAmount, + status: e.status, + pledgeCount: e._count.pledges, + qrSourceCount: e._count.qrSources, + totalPledged: e.pledges.reduce((sum: number, p: PledgeSummary) => sum + p.amountPence, 0), + totalCollected: e.pledges + .filter((p: PledgeSummary) => p.status === "paid") + .reduce((sum: number, p: PledgeSummary) => sum + p.amountPence, 0), + createdAt: e.createdAt, + })) + + return NextResponse.json(formatted) + } catch (error) { + console.error("Events GET error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} + +// POST create event +export async function POST(request: NextRequest) { + try { + if (!prisma) { + return NextResponse.json({ error: "Database not configured" }, { status: 503 }) + } + const orgId = await resolveOrgId(request.headers.get("x-org-id")) + if (!orgId) { + return NextResponse.json({ error: "Organization not found" }, { status: 404 }) + } + const body = await request.json() + + const parsed = createEventSchema.safeParse(body) + if (!parsed.success) { + return NextResponse.json({ error: "Invalid data", details: parsed.error.flatten() }, { status: 400 }) + } + + const slug = parsed.data.name + .toLowerCase() + .replace(/[^a-z0-9]+/g, "-") + .replace(/^-|-$/g, "") + .slice(0, 50) + + const event = await prisma.event.create({ + data: { + ...parsed.data, + slug: slug + "-" + Date.now().toString(36), + eventDate: parsed.data.eventDate ? new Date(parsed.data.eventDate) : null, + organizationId: orgId, + }, + }) + + return NextResponse.json(event, { status: 201 }) + } catch (error) { + console.error("Event creation error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/exports/crm-pack/route.ts b/pledge-now-pay-later/src/app/api/exports/crm-pack/route.ts new file mode 100644 index 0000000..6a04421 --- /dev/null +++ b/pledge-now-pay-later/src/app/api/exports/crm-pack/route.ts @@ -0,0 +1,78 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" +import { formatCrmExportCsv, type CrmExportRow } from "@/lib/exports" +import { resolveOrgId } from "@/lib/org" + +interface ExportPledge { + reference: string + donorName: string | null + donorEmail: string | null + donorPhone: string | null + amountPence: number + rail: string + status: string + giftAid: boolean + createdAt: Date + paidAt: Date | null + event: { name: string } + qrSource: { label: string; volunteerName: string | null; tableName: string | null } | null +} + +export async function GET(request: NextRequest) { + try { + if (!prisma) { + return NextResponse.json({ error: "Database not configured" }, { status: 503 }) + } + const orgId = await resolveOrgId( + request.headers.get("x-org-id") || request.nextUrl.searchParams.get("orgId") || "demo" + ) + if (!orgId) { + return NextResponse.json({ error: "Organization not found" }, { status: 404 }) + } + const eventId = request.nextUrl.searchParams.get("eventId") + + const pledges = await prisma.pledge.findMany({ + where: { + organizationId: orgId, + ...(eventId ? { eventId } : {}), + }, + include: { + event: { select: { name: true } }, + qrSource: { select: { label: true, volunteerName: true, tableName: true } }, + }, + orderBy: { createdAt: "desc" }, + }) as ExportPledge[] + + const rows: CrmExportRow[] = pledges.map((p: ExportPledge) => ({ + pledge_reference: p.reference, + donor_name: p.donorName || "", + donor_email: p.donorEmail || "", + donor_phone: p.donorPhone || "", + amount_gbp: (p.amountPence / 100).toFixed(2), + payment_method: p.rail, + status: p.status, + event_name: p.event.name, + source_label: p.qrSource?.label || "", + volunteer_name: p.qrSource?.volunteerName || "", + table_name: p.qrSource?.tableName || "", + gift_aid: p.giftAid ? "Yes" : "No", + pledged_at: p.createdAt.toISOString(), + paid_at: p.paidAt?.toISOString() || "", + days_to_collect: p.paidAt + ? Math.ceil((p.paidAt.getTime() - p.createdAt.getTime()) / (1000 * 60 * 60 * 24)).toString() + : "", + })) + + const csv = formatCrmExportCsv(rows) + + return new NextResponse(csv, { + headers: { + "Content-Type": "text/csv", + "Content-Disposition": `attachment; filename="crm-export-${new Date().toISOString().slice(0, 10)}.csv"`, + }, + }) + } catch (error) { + console.error("CRM export error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/gocardless/callback/route.ts b/pledge-now-pay-later/src/app/api/gocardless/callback/route.ts new file mode 100644 index 0000000..d3b059a --- /dev/null +++ b/pledge-now-pay-later/src/app/api/gocardless/callback/route.ts @@ -0,0 +1,74 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" +import { completeRedirectFlow, createPayment } from "@/lib/gocardless" + +export async function GET(request: NextRequest) { + try { + const pledgeId = request.nextUrl.searchParams.get("pledge_id") + const redirectFlowId = request.nextUrl.searchParams.get("redirect_flow_id") + + if (!pledgeId) { + return NextResponse.redirect(new URL("/", request.url)) + } + + const pledge = await prisma.pledge.findUnique({ + where: { id: pledgeId }, + include: { event: true, paymentInstruction: true }, + }) + + if (!pledge) { + return NextResponse.redirect(new URL("/", request.url)) + } + + // If we have a redirect flow ID, complete the GoCardless flow + if (redirectFlowId) { + const result = await completeRedirectFlow(redirectFlowId, pledgeId) + + if (result) { + // Save mandate ID + if (pledge.paymentInstruction) { + await prisma.paymentInstruction.update({ + where: { id: pledge.paymentInstruction.id }, + data: { gcMandateId: result.mandateId }, + }) + } + + // Create the payment against the mandate + const payment = await createPayment({ + amountPence: pledge.amountPence, + mandateId: result.mandateId, + reference: pledge.reference, + pledgeId: pledge.id, + description: `${pledge.event.name} — ${pledge.reference}`, + }) + + if (payment) { + // Update pledge status + await prisma.pledge.update({ + where: { id: pledgeId }, + data: { status: "initiated" }, + }) + + // Record payment + await prisma.payment.create({ + data: { + pledgeId: pledge.id, + provider: "gocardless", + providerRef: payment.paymentId, + amountPence: pledge.amountPence, + status: "pending", + matchedBy: "auto", + }, + }) + } + } + } + + // Redirect to success page + const successUrl = `/p/success?pledge_id=${pledgeId}&rail=gocardless` + return NextResponse.redirect(new URL(successUrl, request.url)) + } catch (error) { + console.error("GoCardless callback error:", error) + return NextResponse.redirect(new URL("/", request.url)) + } +} diff --git a/pledge-now-pay-later/src/app/api/gocardless/create-flow/route.ts b/pledge-now-pay-later/src/app/api/gocardless/create-flow/route.ts new file mode 100644 index 0000000..5af611b --- /dev/null +++ b/pledge-now-pay-later/src/app/api/gocardless/create-flow/route.ts @@ -0,0 +1,135 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" +import { createRedirectFlow } from "@/lib/gocardless" +import { generateReference } from "@/lib/reference" + +export async function POST(request: NextRequest) { + try { + const body = await request.json() + const { amountPence, donorName, donorEmail, donorPhone, giftAid, eventId, qrSourceId } = body + + if (!prisma) { + return NextResponse.json({ error: "Database not configured" }, { status: 503 }) + } + + // Get event + org + const event = await prisma.event.findUnique({ + where: { id: eventId }, + include: { organization: true }, + }) + if (!event) { + return NextResponse.json({ error: "Event not found" }, { status: 404 }) + } + + const org = event.organization + + // Generate reference + let reference = "" + let attempts = 0 + while (attempts < 10) { + reference = generateReference(org.refPrefix || "PNPL", amountPence) + const exists = await prisma.pledge.findUnique({ where: { reference } }) + if (!exists) break + attempts++ + } + + // Create pledge in DB + const pledge = await prisma.pledge.create({ + data: { + reference, + amountPence, + currency: "GBP", + rail: "gocardless", + status: "new", + donorName: donorName || null, + donorEmail: donorEmail || null, + donorPhone: donorPhone || null, + giftAid: giftAid || false, + eventId, + qrSourceId: qrSourceId || null, + organizationId: org.id, + }, + }) + + // Create reminder schedule + const { calculateReminderSchedule } = await import("@/lib/reminders") + const schedule = calculateReminderSchedule(new Date()) + await prisma.reminder.createMany({ + data: schedule.map((s) => ({ + pledgeId: pledge.id, + step: s.step, + channel: s.channel, + scheduledAt: s.scheduledAt, + status: "pending", + payload: { templateKey: s.templateKey, subject: s.subject }, + })), + }) + + // Track analytics + await prisma.analyticsEvent.create({ + data: { + eventType: "pledge_completed", + pledgeId: pledge.id, + eventId, + qrSourceId: qrSourceId || null, + metadata: { amountPence, rail: "gocardless" }, + }, + }) + + // Try real GoCardless flow + // GoCardless live mode requires HTTPS redirect URLs + const baseUrl = process.env.BASE_URL || "http://localhost:3000" + const isHttps = baseUrl.startsWith("https://") + const redirectUrl = `${baseUrl}/api/gocardless/callback?pledge_id=${pledge.id}` + + if (!isHttps && process.env.GOCARDLESS_ENVIRONMENT === "live") { + // Can't use GC live with HTTP — return simulated mode + // Set BASE_URL to your HTTPS domain to enable live GoCardless + console.warn("GoCardless live mode requires HTTPS BASE_URL. Falling back to simulated.") + return NextResponse.json({ + mode: "simulated", + pledgeId: pledge.id, + reference, + id: pledge.id, + }) + } + + const flow = await createRedirectFlow({ + description: `${event.name} — ${reference}`, + reference, + pledgeId: pledge.id, + successRedirectUrl: redirectUrl, + }) + + if (flow) { + // Save the redirect flow ID for completion + await prisma.paymentInstruction.create({ + data: { + pledgeId: pledge.id, + bankReference: reference, + bankDetails: {}, + gcMandateUrl: flow.redirectUrl, + }, + }) + + return NextResponse.json({ + mode: "live", + pledgeId: pledge.id, + reference, + redirectUrl: flow.redirectUrl, + redirectFlowId: flow.redirectFlowId, + }) + } + + // Fallback: no GoCardless configured — return pledge for simulated flow + return NextResponse.json({ + mode: "simulated", + pledgeId: pledge.id, + reference, + id: pledge.id, + }) + } catch (error) { + console.error("GoCardless create flow error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/gocardless/webhook/route.ts b/pledge-now-pay-later/src/app/api/gocardless/webhook/route.ts new file mode 100644 index 0000000..798a792 --- /dev/null +++ b/pledge-now-pay-later/src/app/api/gocardless/webhook/route.ts @@ -0,0 +1,82 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" + +// GoCardless sends webhook events for payment status changes +export async function POST(request: NextRequest) { + try { + const body = await request.json() + const events = body.events || [] + + for (const event of events) { + const { resource_type, action, links } = event + + if (resource_type === "payments") { + const paymentId = links?.payment + + if (!paymentId) continue + + // Find our payment record + const payment = await prisma.payment.findFirst({ + where: { providerRef: paymentId, provider: "gocardless" }, + include: { pledge: true }, + }) + + if (!payment) continue + + switch (action) { + case "confirmed": + case "paid_out": + await prisma.pledge.update({ + where: { id: payment.pledgeId }, + data: { status: "paid", paidAt: new Date() }, + }) + await prisma.payment.update({ + where: { id: payment.id }, + data: { status: "confirmed", receivedAt: new Date() }, + }) + await prisma.analyticsEvent.create({ + data: { + eventType: "payment_matched", + pledgeId: payment.pledgeId, + metadata: { provider: "gocardless", action, paymentId }, + }, + }) + break + + case "failed": + case "cancelled": + await prisma.pledge.update({ + where: { id: payment.pledgeId }, + data: { status: action === "cancelled" ? "cancelled" : "overdue" }, + }) + await prisma.payment.update({ + where: { id: payment.id }, + data: { status: "failed" }, + }) + break + } + } + + if (resource_type === "mandates" && action === "cancelled") { + // Mandate cancelled by bank/customer + const mandateId = links?.mandate + if (mandateId) { + const instruction = await prisma.paymentInstruction.findFirst({ + where: { gcMandateId: mandateId }, + }) + if (instruction) { + await prisma.pledge.update({ + where: { id: instruction.pledgeId }, + data: { status: "cancelled", cancelledAt: new Date() }, + }) + } + } + } + } + + return NextResponse.json({ received: true }) + } catch (error) { + console.error("GoCardless webhook error:", error) + return NextResponse.json({ error: "Webhook handler failed" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/imports/bank-statement/route.ts b/pledge-now-pay-later/src/app/api/imports/bank-statement/route.ts new file mode 100644 index 0000000..d143d6a --- /dev/null +++ b/pledge-now-pay-later/src/app/api/imports/bank-statement/route.ts @@ -0,0 +1,133 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" +import Papa from "papaparse" +import { matchBankRow } from "@/lib/matching" +import { resolveOrgId } from "@/lib/org" + +export async function POST(request: NextRequest) { + try { + if (!prisma) { + return NextResponse.json({ error: "Database not configured" }, { status: 503 }) + } + const orgId = await resolveOrgId(request.headers.get("x-org-id")) + if (!orgId) { + return NextResponse.json({ error: "Organization not found" }, { status: 404 }) + } + const formData = await request.formData() + const file = formData.get("file") as File + const mappingJson = formData.get("mapping") as string + + if (!file) { + return NextResponse.json({ error: "No file uploaded" }, { status: 400 }) + } + + let mapping: Record = {} + try { + mapping = mappingJson ? JSON.parse(mappingJson) : {} + } catch { + return NextResponse.json({ error: "Invalid column mapping JSON" }, { status: 400 }) + } + const csvText = await file.text() + const parsed = Papa.parse(csvText, { header: true, skipEmptyLines: true }) + + if (parsed.errors.length > 0 && parsed.data.length === 0) { + return NextResponse.json({ error: "CSV parse error", details: parsed.errors }, { status: 400 }) + } + + // Get all unmatched pledges for this org + const openPledges = await prisma.pledge.findMany({ + where: { + organizationId: orgId, + status: { in: ["new", "initiated", "overdue"] }, + }, + select: { id: true, reference: true, amountPence: true }, + }) + + const pledgeMap = new Map( + openPledges.map((p: { id: string; reference: string; amountPence: number }) => [p.reference, { id: p.id, amountPence: p.amountPence }]) + ) + + // Convert rows and match + const rows = (parsed.data as Record[]).map((raw) => ({ + date: raw[mapping.dateCol || "Date"] || "", + description: raw[mapping.descriptionCol || "Description"] || "", + amount: parseFloat(raw[mapping.creditCol || mapping.amountCol || "Amount"] || "0"), + reference: raw[mapping.referenceCol || "Reference"] || "", + raw, + })) + + const results = rows + .filter((r) => r.amount > 0) // only credits + .map((r) => matchBankRow(r, pledgeMap)) + + // Create import record + const importRecord = await prisma.import.create({ + data: { + organizationId: orgId, + kind: "bank_statement", + fileName: file.name, + rowCount: rows.length, + matchedCount: results.filter((r) => r.confidence === "exact").length, + unmatchedCount: results.filter((r) => r.confidence === "none").length, + mappingConfig: mapping, + status: "completed", + stats: { + totalRows: rows.length, + credits: rows.filter((r) => r.amount > 0).length, + exactMatches: results.filter((r) => r.confidence === "exact").length, + partialMatches: results.filter((r) => r.confidence === "partial").length, + unmatched: results.filter((r) => r.confidence === "none").length, + }, + }, + }) + + // Auto-confirm exact matches + const confirmed: string[] = [] + for (const result of results) { + if (result.confidence === "exact" && result.pledgeId) { + await prisma.$transaction([ + prisma.pledge.update({ + where: { id: result.pledgeId }, + data: { status: "paid", paidAt: new Date() }, + }), + prisma.payment.create({ + data: { + pledgeId: result.pledgeId, + provider: "bank", + amountPence: Math.round(result.matchedAmount * 100), + status: "confirmed", + matchedBy: "auto", + receivedAt: new Date(result.bankRow.date) || new Date(), + importId: importRecord.id, + }, + }), + // Skip remaining reminders + prisma.reminder.updateMany({ + where: { pledgeId: result.pledgeId, status: "pending" }, + data: { status: "skipped" }, + }), + ]) + confirmed.push(result.pledgeId) + } + } + + return NextResponse.json({ + importId: importRecord.id, + summary: { + totalRows: rows.length, + credits: rows.filter((r) => r.amount > 0).length, + exactMatches: results.filter((r) => r.confidence === "exact").length, + partialMatches: results.filter((r) => r.confidence === "partial").length, + unmatched: results.filter((r) => r.confidence === "none").length, + autoConfirmed: confirmed.length, + }, + matches: results.map((r) => ({ + ...r, + autoConfirmed: r.pledgeId ? confirmed.includes(r.pledgeId) : false, + })), + }) + } catch (error) { + console.error("Bank import error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/pledges/[id]/mark-initiated/route.ts b/pledge-now-pay-later/src/app/api/pledges/[id]/mark-initiated/route.ts new file mode 100644 index 0000000..edc84a9 --- /dev/null +++ b/pledge-now-pay-later/src/app/api/pledges/[id]/mark-initiated/route.ts @@ -0,0 +1,31 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" + +export async function POST( + request: NextRequest, + { params }: { params: Promise<{ id: string }> } +) { + try { + if (!prisma) { + return NextResponse.json({ error: "Database not configured" }, { status: 503 }) + } + const { id } = await params + + if (id.startsWith("demo-")) { + return NextResponse.json({ ok: true }) + } + + await prisma.pledge.update({ + where: { id }, + data: { + status: "initiated", + iPaidClickedAt: new Date(), + }, + }) + + return NextResponse.json({ ok: true }) + } catch (error) { + console.error("Mark initiated error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/pledges/[id]/route.ts b/pledge-now-pay-later/src/app/api/pledges/[id]/route.ts new file mode 100644 index 0000000..196011a --- /dev/null +++ b/pledge-now-pay-later/src/app/api/pledges/[id]/route.ts @@ -0,0 +1,88 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" +import { updatePledgeStatusSchema } from "@/lib/validators" + +export async function GET( + request: NextRequest, + { params }: { params: Promise<{ id: string }> } +) { + try { + if (!prisma) { + return NextResponse.json({ error: "Database not configured" }, { status: 503 }) + } + const { id } = await params + const pledge = await prisma.pledge.findUnique({ + where: { id }, + include: { event: { select: { name: true } } }, + }) + if (!pledge) { + return NextResponse.json({ error: "Not found" }, { status: 404 }) + } + return NextResponse.json({ + id: pledge.id, + reference: pledge.reference, + amountPence: pledge.amountPence, + rail: pledge.rail, + status: pledge.status, + donorName: pledge.donorName, + donorEmail: pledge.donorEmail, + eventName: pledge.event.name, + }) + } catch (error) { + console.error("Pledge GET error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} + +export async function PATCH( + request: NextRequest, + { params }: { params: Promise<{ id: string }> } +) { + try { + if (!prisma) { + return NextResponse.json({ error: "Database not configured" }, { status: 503 }) + } + const { id } = await params + const body = await request.json() + + const parsed = updatePledgeStatusSchema.safeParse(body) + if (!parsed.success) { + return NextResponse.json({ error: "Invalid data" }, { status: 400 }) + } + + const existing = await prisma.pledge.findUnique({ where: { id } }) + if (!existing) { + return NextResponse.json({ error: "Pledge not found" }, { status: 404 }) + } + + const updateData: Record = { + status: parsed.data.status, + notes: parsed.data.notes, + } + + if (parsed.data.status === "paid") { + updateData.paidAt = new Date() + } + if (parsed.data.status === "cancelled") { + updateData.cancelledAt = new Date() + } + + const pledge = await prisma.pledge.update({ + where: { id }, + data: updateData, + }) + + // If paid or cancelled, skip remaining reminders + if (["paid", "cancelled"].includes(parsed.data.status)) { + await prisma.reminder.updateMany({ + where: { pledgeId: id, status: "pending" }, + data: { status: "skipped" }, + }) + } + + return NextResponse.json(pledge) + } catch (error) { + console.error("Pledge update error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/pledges/route.ts b/pledge-now-pay-later/src/app/api/pledges/route.ts new file mode 100644 index 0000000..c941fbd --- /dev/null +++ b/pledge-now-pay-later/src/app/api/pledges/route.ts @@ -0,0 +1,133 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" +import { createPledgeSchema } from "@/lib/validators" +import { generateReference } from "@/lib/reference" +import { calculateReminderSchedule } from "@/lib/reminders" + +export async function POST(request: NextRequest) { + try { + const body = await request.json() + + if (!prisma) { + return NextResponse.json({ error: "Database not configured" }, { status: 503 }) + } + + const parsed = createPledgeSchema.safeParse(body) + if (!parsed.success) { + return NextResponse.json( + { error: "Invalid data", details: parsed.error.flatten() }, + { status: 400 } + ) + } + + const { amountPence, rail, donorName, donorEmail, donorPhone, giftAid, eventId, qrSourceId } = parsed.data + + // Get event + org + const event = await prisma.event.findUnique({ + where: { id: eventId }, + include: { organization: true }, + }) + + if (!event) { + return NextResponse.json({ error: "Event not found" }, { status: 404 }) + } + + const org = event.organization + + // Generate unique reference (retry on collision) + let reference = "" + let attempts = 0 + while (attempts < 10) { + reference = generateReference(org.refPrefix || "PNPL", amountPence) + const exists = await prisma.pledge.findUnique({ where: { reference } }) + if (!exists) break + attempts++ + } + if (attempts >= 10) { + return NextResponse.json({ error: "Could not generate unique reference" }, { status: 500 }) + } + + // Create pledge + payment instruction + reminder schedule in transaction + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const pledge = await prisma.$transaction(async (tx: any) => { + const p = await tx.pledge.create({ + data: { + reference, + amountPence, + currency: "GBP", + rail, + status: "new", + donorName: donorName || null, + donorEmail: donorEmail || null, + donorPhone: donorPhone || null, + giftAid, + eventId, + qrSourceId: qrSourceId || null, + organizationId: org.id, + }, + }) + + // Create payment instruction for bank transfers + if (rail === "bank" && org.bankSortCode && org.bankAccountNo) { + await tx.paymentInstruction.create({ + data: { + pledgeId: p.id, + bankReference: reference, + bankDetails: { + bankName: org.bankName || "", + sortCode: org.bankSortCode, + accountNo: org.bankAccountNo, + accountName: org.bankAccountName || org.name, + }, + }, + }) + } + + // Create reminder schedule + const schedule = calculateReminderSchedule(new Date()) + await tx.reminder.createMany({ + data: schedule.map((s) => ({ + pledgeId: p.id, + step: s.step, + channel: s.channel, + scheduledAt: s.scheduledAt, + status: "pending", + payload: { templateKey: s.templateKey, subject: s.subject }, + })), + }) + + // Track analytics + await tx.analyticsEvent.create({ + data: { + eventType: "pledge_completed", + pledgeId: p.id, + eventId, + qrSourceId: qrSourceId || null, + metadata: { amountPence, rail }, + }, + }) + + return p + }) + + // Build response + const response: Record = { + id: pledge.id, + reference: pledge.reference, + } + + if (rail === "bank" && org.bankSortCode) { + response.bankDetails = { + bankName: org.bankName || "", + sortCode: org.bankSortCode, + accountNo: org.bankAccountNo || "", + accountName: org.bankAccountName || org.name, + } + } + + return NextResponse.json(response, { status: 201 }) + } catch (error) { + console.error("Pledge creation error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/qr/[token]/route.ts b/pledge-now-pay-later/src/app/api/qr/[token]/route.ts new file mode 100644 index 0000000..9e8cbaa --- /dev/null +++ b/pledge-now-pay-later/src/app/api/qr/[token]/route.ts @@ -0,0 +1,66 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" + +export async function GET( + request: NextRequest, + { params }: { params: Promise<{ token: string }> } +) { + try { + const { token } = await params + + if (!prisma) { + return NextResponse.json({ error: "Database not configured" }, { status: 503 }) + } + + // Handle "demo" token — resolve to the first active event + if (token === "demo") { + const event = await prisma.event.findFirst({ + where: { status: "active" }, + include: { organization: { select: { name: true } } }, + orderBy: { createdAt: "asc" }, + }) + if (!event) { + return NextResponse.json({ error: "No active events found" }, { status: 404 }) + } + return NextResponse.json({ + id: event.id, + name: event.name, + organizationName: event.organization.name, + qrSourceId: null, + qrSourceLabel: null, + }) + } + + const qrSource = await prisma.qrSource.findUnique({ + where: { code: token }, + include: { + event: { + include: { + organization: { select: { name: true } }, + }, + }, + }, + }) + + if (!qrSource || qrSource.event.status !== "active") { + return NextResponse.json({ error: "This pledge link is no longer active" }, { status: 404 }) + } + + // Increment scan count + await prisma.qrSource.update({ + where: { id: qrSource.id }, + data: { scanCount: { increment: 1 } }, + }) + + return NextResponse.json({ + id: qrSource.event.id, + name: qrSource.event.name, + organizationName: qrSource.event.organization.name, + qrSourceId: qrSource.id, + qrSourceLabel: qrSource.label, + }) + } catch (error) { + console.error("QR resolve error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/settings/route.ts b/pledge-now-pay-later/src/app/api/settings/route.ts new file mode 100644 index 0000000..37223c4 --- /dev/null +++ b/pledge-now-pay-later/src/app/api/settings/route.ts @@ -0,0 +1,60 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" +import { resolveOrgId } from "@/lib/org" + +export async function GET(request: NextRequest) { + try { + if (!prisma) return NextResponse.json({ error: "DB not configured" }, { status: 503 }) + const orgId = await resolveOrgId(request.headers.get("x-org-id") || "demo") + if (!orgId) return NextResponse.json({ error: "Org not found" }, { status: 404 }) + + const org = await prisma.organization.findUnique({ where: { id: orgId } }) + if (!org) return NextResponse.json({ error: "Org not found" }, { status: 404 }) + + return NextResponse.json({ + id: org.id, + name: org.name, + slug: org.slug, + country: org.country, + bankName: org.bankName || "", + bankSortCode: org.bankSortCode || "", + bankAccountNo: org.bankAccountNo || "", + bankAccountName: org.bankAccountName || "", + refPrefix: org.refPrefix, + logo: org.logo, + primaryColor: org.primaryColor, + gcAccessToken: org.gcAccessToken ? "••••••••" : "", + gcEnvironment: org.gcEnvironment, + }) + } catch (error) { + console.error("Settings GET error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} + +export async function PATCH(request: NextRequest) { + try { + if (!prisma) return NextResponse.json({ error: "DB not configured" }, { status: 503 }) + const orgId = await resolveOrgId(request.headers.get("x-org-id") || "demo") + if (!orgId) return NextResponse.json({ error: "Org not found" }, { status: 404 }) + + const body = await request.json() + const allowed = ["name", "bankName", "bankSortCode", "bankAccountNo", "bankAccountName", "refPrefix", "primaryColor", "logo", "gcAccessToken", "gcEnvironment"] + const data: Record = {} + for (const key of allowed) { + if (key in body && body[key] !== undefined && body[key] !== "••••••••") { + data[key] = body[key] + } + } + + const org = await prisma.organization.update({ + where: { id: orgId }, + data, + }) + + return NextResponse.json({ success: true, name: org.name }) + } catch (error) { + console.error("Settings PATCH error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/stripe/checkout/route.ts b/pledge-now-pay-later/src/app/api/stripe/checkout/route.ts new file mode 100644 index 0000000..8c9ec5d --- /dev/null +++ b/pledge-now-pay-later/src/app/api/stripe/checkout/route.ts @@ -0,0 +1,118 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" +import { createCheckoutSession } from "@/lib/stripe" +import { generateReference } from "@/lib/reference" + +export async function POST(request: NextRequest) { + try { + const body = await request.json() + const { amountPence, donorName, donorEmail, donorPhone, giftAid, eventId, qrSourceId } = body + + if (!prisma) { + return NextResponse.json({ error: "Database not configured" }, { status: 503 }) + } + + // Get event + org + const event = await prisma.event.findUnique({ + where: { id: eventId }, + include: { organization: true }, + }) + if (!event) { + return NextResponse.json({ error: "Event not found" }, { status: 404 }) + } + + const org = event.organization + + // Generate reference + let reference = "" + let attempts = 0 + while (attempts < 10) { + reference = generateReference(org.refPrefix || "PNPL", amountPence) + const exists = await prisma.pledge.findUnique({ where: { reference } }) + if (!exists) break + attempts++ + } + + // Create pledge in DB + const pledge = await prisma.pledge.create({ + data: { + reference, + amountPence, + currency: "GBP", + rail: "card", + status: "new", + donorName: donorName || null, + donorEmail: donorEmail || null, + donorPhone: donorPhone || null, + giftAid: giftAid || false, + eventId, + qrSourceId: qrSourceId || null, + organizationId: org.id, + }, + }) + + // Track analytics + await prisma.analyticsEvent.create({ + data: { + eventType: "pledge_completed", + pledgeId: pledge.id, + eventId, + qrSourceId: qrSourceId || null, + metadata: { amountPence, rail: "card" }, + }, + }) + + // Try real Stripe checkout + const baseUrl = process.env.BASE_URL || "http://localhost:3000" + + const session = await createCheckoutSession({ + amountPence, + currency: "GBP", + pledgeId: pledge.id, + reference, + eventName: event.name, + organizationName: org.name, + donorEmail: donorEmail || undefined, + successUrl: `${baseUrl}/p/success?pledge_id=${pledge.id}&rail=card&session_id={CHECKOUT_SESSION_ID}`, + cancelUrl: `${baseUrl}/p/success?pledge_id=${pledge.id}&rail=card&cancelled=true`, + }) + + if (session) { + // Save Stripe session reference + await prisma.payment.create({ + data: { + pledgeId: pledge.id, + provider: "stripe", + providerRef: session.sessionId, + amountPence, + status: "pending", + matchedBy: "auto", + }, + }) + + await prisma.pledge.update({ + where: { id: pledge.id }, + data: { status: "initiated" }, + }) + + return NextResponse.json({ + mode: "live", + pledgeId: pledge.id, + reference, + checkoutUrl: session.checkoutUrl, + sessionId: session.sessionId, + }) + } + + // Fallback: no Stripe configured — return pledge for simulated flow + return NextResponse.json({ + mode: "simulated", + pledgeId: pledge.id, + reference, + id: pledge.id, + }) + } catch (error) { + console.error("Stripe checkout error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/stripe/webhook/route.ts b/pledge-now-pay-later/src/app/api/stripe/webhook/route.ts new file mode 100644 index 0000000..7296b0d --- /dev/null +++ b/pledge-now-pay-later/src/app/api/stripe/webhook/route.ts @@ -0,0 +1,88 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" +import { constructWebhookEvent } from "@/lib/stripe" + +export async function POST(request: NextRequest) { + try { + const body = await request.text() + const signature = request.headers.get("stripe-signature") || "" + + const event = constructWebhookEvent(body, signature) + if (!event) { + return NextResponse.json({ error: "Invalid signature" }, { status: 400 }) + } + + switch (event.type) { + case "checkout.session.completed": { + const session = event.data.object as { id: string; metadata: Record; payment_status: string } + const pledgeId = session.metadata?.pledge_id + + if (pledgeId && session.payment_status === "paid") { + await prisma.pledge.update({ + where: { id: pledgeId }, + data: { + status: "paid", + paidAt: new Date(), + }, + }) + + // Update payment record + await prisma.payment.updateMany({ + where: { + pledgeId, + providerRef: session.id, + }, + data: { + status: "confirmed", + receivedAt: new Date(), + }, + }) + + // Track analytics + await prisma.analyticsEvent.create({ + data: { + eventType: "payment_matched", + pledgeId, + metadata: { provider: "stripe", sessionId: session.id }, + }, + }) + } + break + } + + case "payment_intent.succeeded": { + const pi = event.data.object as { id: string; metadata: Record } + const pledgeId = pi.metadata?.pledge_id + + if (pledgeId) { + await prisma.pledge.update({ + where: { id: pledgeId }, + data: { + status: "paid", + paidAt: new Date(), + }, + }) + } + break + } + + case "payment_intent.payment_failed": { + const pi = event.data.object as { id: string; metadata: Record } + const pledgeId = pi.metadata?.pledge_id + + if (pledgeId) { + await prisma.pledge.update({ + where: { id: pledgeId }, + data: { status: "overdue" }, + }) + } + break + } + } + + return NextResponse.json({ received: true }) + } catch (error) { + console.error("Stripe webhook error:", error) + return NextResponse.json({ error: "Webhook handler failed" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/api/webhooks/route.ts b/pledge-now-pay-later/src/app/api/webhooks/route.ts new file mode 100644 index 0000000..599782e --- /dev/null +++ b/pledge-now-pay-later/src/app/api/webhooks/route.ts @@ -0,0 +1,79 @@ +import { NextRequest, NextResponse } from "next/server" +import prisma from "@/lib/prisma" +import { formatWebhookPayload } from "@/lib/exports" + +interface ReminderWithPledge { + id: string + pledgeId: string + step: number + channel: string + scheduledAt: Date + payload: unknown + pledge: { + donorName: string | null + donorEmail: string | null + donorPhone: string | null + reference: string + amountPence: number + rail: string + event: { name: string } + organization: { name: string } + } +} + +// GET pending webhook events (for external polling) +export async function GET(request: NextRequest) { + try { + if (!prisma) { + return NextResponse.json([]) + } + const since = request.nextUrl.searchParams.get("since") + const limit = parseInt(request.nextUrl.searchParams.get("limit") || "50") + + const reminders = await prisma.reminder.findMany({ + where: { + status: "pending", + scheduledAt: { lte: new Date() }, + ...(since ? { scheduledAt: { gte: new Date(since) } } : {}), + }, + include: { + pledge: { + include: { + event: { select: { name: true } }, + organization: { select: { name: true } }, + }, + }, + }, + take: limit, + orderBy: { scheduledAt: "asc" }, + }) as ReminderWithPledge[] + + const events = reminders.map((r: ReminderWithPledge) => + formatWebhookPayload("reminder.due", { + reminderId: r.id, + pledgeId: r.pledgeId, + step: r.step, + channel: r.channel, + scheduledAt: r.scheduledAt, + donor: { + name: r.pledge.donorName, + email: r.pledge.donorEmail, + phone: r.pledge.donorPhone, + }, + pledge: { + reference: r.pledge.reference, + amount: r.pledge.amountPence, + rail: r.pledge.rail, + }, + event: r.pledge.event.name, + organization: r.pledge.organization.name, + payload: r.payload, + }) + ) + + return NextResponse.json({ events, count: events.length }) + } catch (error) { + console.error("Webhooks error:", error) + return NextResponse.json({ error: "Internal error" }, { status: 500 }) + } +} diff --git a/pledge-now-pay-later/src/app/dashboard/apply/page.tsx b/pledge-now-pay-later/src/app/dashboard/apply/page.tsx new file mode 100644 index 0000000..862ff58 --- /dev/null +++ b/pledge-now-pay-later/src/app/dashboard/apply/page.tsx @@ -0,0 +1,92 @@ +"use client" + +import { Card, CardContent, CardHeader, CardTitle, CardDescription } from "@/components/ui/card" +import { Button } from "@/components/ui/button" +import { Input } from "@/components/ui/input" +import { Label } from "@/components/ui/label" +import { Textarea } from "@/components/ui/textarea" +import { Select } from "@/components/ui/select" +import { TrendingUp, Shield, Zap } from "lucide-react" + +export default function ApplyPage() { + return ( +
+
+

+ Fractional Head of Technology +

+

+ Get expert technology leadership for your charity — without the full-time cost. +

+
+ + {/* Benefits */} +
+ {[ + { icon: TrendingUp, title: "Optimise Your Stack", desc: "Reduce costs, improve donor experience, integrate tools" }, + { icon: Shield, title: "Data & Compliance", desc: "GDPR, consent management, security best practices" }, + { icon: Zap, title: "Automate Everything", desc: "Connect your CRM, comms, payments, and reporting" }, + ].map((b, i) => ( + + + +

{b.title}

+

{b.desc}

+
+
+ ))} +
+ + {/* Application form */} + + + Apply + Tell us about your charity's tech needs + + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+ +