diff --git a/.github/assets/ui/web-dashboard-demo.png b/.github/assets/ui/web-dashboard-demo.png new file mode 100644 index 000000000..34cb17382 Binary files /dev/null and b/.github/assets/ui/web-dashboard-demo.png differ diff --git a/.github/assets/ui/web-install-demo.png b/.github/assets/ui/web-install-demo.png new file mode 100644 index 000000000..c6f489796 Binary files /dev/null and b/.github/assets/ui/web-install-demo.png differ diff --git a/.github/assets/ui/web-search-skills-demo.png b/.github/assets/ui/web-search-skills-demo.png new file mode 100644 index 000000000..02e8b5691 Binary files /dev/null and b/.github/assets/ui/web-search-skills-demo.png differ diff --git a/.github/assets/ui/web-skill-detail-demo.png b/.github/assets/ui/web-skill-detail-demo.png new file mode 100644 index 000000000..dcd33b56d Binary files /dev/null and b/.github/assets/ui/web-skill-detail-demo.png differ diff --git a/.github/assets/ui/web-skills-demo.png b/.github/assets/ui/web-skills-demo.png new file mode 100644 index 000000000..6a39d56dd Binary files /dev/null and b/.github/assets/ui/web-skills-demo.png differ diff --git a/.github/assets/ui/web-sync-demo.png b/.github/assets/ui/web-sync-demo.png new file mode 100644 index 000000000..0fbc878ff Binary files /dev/null and b/.github/assets/ui/web-sync-demo.png differ diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d6cc1f33a..9ab8e8570 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,11 +26,31 @@ jobs: with: go-version: "1.23" + - name: Set up pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "22" + cache: "pnpm" + cache-dependency-path: ui/pnpm-lock.yaml + + - name: Build UI assets + run: make ui-build + + - name: Verify embedded UI assets exist + run: | + test -f internal/server/dist/index.html + test -n "$(find internal/server/dist/assets -maxdepth 1 -type f | head -n 1)" + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: version: latest - args: release --clean + args: release --clean --skip=validate env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4acc50c60..985636777 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -8,8 +8,45 @@ on: workflow_call: jobs: + ui-embed-check: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "22" + cache: "pnpm" + cache-dependency-path: ui/pnpm-lock.yaml + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: "1.23" + + - name: Build UI assets + run: make ui-build + + - name: Verify embedded dist assets exist + run: | + test -f internal/server/dist/index.html + test -n "$(find internal/server/dist/assets -maxdepth 1 -type f | head -n 1)" + + - name: Build binary with embedded UI + run: | + mkdir -p bin + go build -o bin/skillshare ./cmd/skillshare + unit-test: runs-on: ubuntu-latest + needs: ui-embed-check steps: - name: Checkout uses: actions/checkout@v4 @@ -27,6 +64,7 @@ jobs: integration-test: runs-on: ${{ matrix.os }} + needs: ui-embed-check strategy: matrix: os: [ubuntu-latest, macos-latest] diff --git a/.gitignore b/.gitignore index a12a0c77a..5b9b392a2 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,8 @@ docs/plans/ .worktrees/ video/node_modules/ + +# Web UI +ui/node_modules/ +ui/dist/ +internal/server/dist/assets/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d3ff38bd0..277690329 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -5,6 +5,8 @@ project_name: skillshare before: hooks: - go mod tidy + - test -f internal/server/dist/index.html + - 'test -n "$(find internal/server/dist/assets -maxdepth 1 -type f | head -n 1)"' builds: - main: ./cmd/skillshare diff --git a/CHANGELOG.md b/CHANGELOG.md index 15e7984b6..6c63487f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,37 @@ # Changelog +## [0.10.0] - 2026-02-08 + +### Added +- **Web Dashboard** — `skillshare ui` launches a full-featured React SPA embedded in the binary + - Dashboard overview with skill/target counts, sync mode, and version check + - Skills browser with search, filter, SKILL.md viewer, and uninstall + - Targets page with status badges, add/remove targets + - Sync controls with dry-run/force toggles and diff preview + - Collect page to scan and pick skills from targets back to source + - GitHub skill search with one-click install and batch install + - Config editor with YAML validation + - Backup/restore management with cleanup + - Git sync page with push/pull, dirty-file detection, and force-pull + - Install page supporting path, git URL, and GitHub shorthand inputs + - Update tracked repos from the UI with commit/diff details +- **REST API** at `/api/*` — Go `net/http` backend (30+ endpoints) powering the dashboard +- **Single-binary distribution** — React frontend embedded via `go:embed`, no Node.js required at runtime +- **Dev mode** — `go build -tags dev` serves placeholder SPA; use Vite on `:5173` with `/api` proxy for hot reload +- **`internal/git/info.go`** — git operations library (pull with change info, force-pull, dirty detection, stage/commit/push) +- **`internal/version/skill.go`** — local and remote skill version checking +- **Bitbucket/GitLab URL support** — `install` now strips branch prefixes from Bitbucket (`src/{branch}/`) and GitLab (`-/tree/{branch}/`) web URLs +- **`internal/utils/frontmatter.go`** — `ParseFrontmatterField()` utility for reading SKILL.md metadata +- Integration tests for `skillshare ui` server startup +- Docker sandbox support for web UI (`--host 0.0.0.0`, port 19420 mapping) +- CI: frontend build step in release and test workflows +- Website documentation for `ui` command + +### Changed +- Makefile updated with `ui-build`, `build-ui`, `ui-dev` targets +- `.goreleaser.yaml` updated to include frontend build in release pipeline +- Docker sandbox Dockerfile uses multi-stage build with Node.js for frontend assets + ## [0.9.0] - 2026-02-05 ### Added diff --git a/Makefile b/Makefile index 1d90a506e..41a5e030c 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help build build-meta run test test-unit test-int test-cover test-install test-docker test-docker-online sandbox-up sandbox-shell sandbox-down lint fmt fmt-check check install clean +.PHONY: help build build-meta run test test-unit test-int test-cover test-install test-docker test-docker-online sandbox-up sandbox-shell sandbox-down lint fmt fmt-check check install clean ui-install ui-build ui-dev build-ui help: @echo "Common tasks:" @@ -18,7 +18,11 @@ help: @echo " make fmt # format Go files" @echo " make fmt-check # verify formatting only" @echo " make check # fmt-check + lint + test" - @echo " make clean # remove build artifacts" + @echo " make ui-install # install frontend dependencies" + @echo " make ui-build # build frontend + copy to embed" + @echo " make ui-dev # Go API server + Vite dev server" + @echo " make build-ui # ui-build + build (full binary)" + @echo " make clean # remove build artifacts" build: mkdir -p bin && go build -o bin/skillshare ./cmd/skillshare @@ -73,5 +77,20 @@ check: fmt-check lint test install: go install ./cmd/skillshare +ui-install: + cd ui && pnpm install + +ui-build: ui-install + cd ui && pnpm run build + rm -rf internal/server/dist + cp -r ui/dist internal/server/dist + +ui-dev: + @trap 'kill 0' EXIT; \ + go run -tags dev ./cmd/skillshare ui --no-open & \ + cd ui && pnpm run dev + +build-ui: ui-build build + clean: rm -rf bin coverage.out diff --git a/README.md b/README.md index 2cb652fb3..64881b30a 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Install • Quick Start • Commands • + Web UI • Project Skills • Organization Skills • Docs @@ -41,9 +42,9 @@ > **Recent Updates** > | Version | Highlights | > |---------|------------| +> | [0.10.0](https://github.com/runkids/skillshare/releases/tag/v0.10.0) | Web Dashboard — visual skill management via `skillshare ui` | > | [0.9.0](https://github.com/runkids/skillshare/releases/tag/v0.9.0) | Project-level skills — scope skills to a single repo, share via git | > | [0.8.0](https://github.com/runkids/skillshare/releases/tag/v0.8.0) | `pull` → `collect` rename, clearer command symmetry, refactoring | -> | [0.7.0](https://github.com/runkids/skillshare/releases/tag/v0.7.0) | Windows support, GitHub skill search | ## Why skillshare? @@ -58,6 +59,7 @@ Install tools get skills onto agents. **Skillshare keeps them in sync.** | 👥 **Organization Skills** | Install shared repos once, update anytime with git pull. Changes sync to all agents instantly. | | 📁 **Project Skills** | Scope skills to a repo, share via git. Auto-detected when you `cd` into the project. | | ✨ **AI-Native** | Built-in skill lets AI operate skillshare directly. No manual CLI needed. | +| 🖥️ **Web Dashboard** | Visual skill browsing, sync status, and management. Run `skillshare ui` — single binary, no setup. | ## Installation @@ -134,13 +136,28 @@ Done. Your skills are now synced across all AI CLI tools. Windows init demo

+## Documentation + +📖 **Full documentation at [skillshare.runkids.cc](https://skillshare.runkids.cc/docs/intro)** + +| Guide | Description | +|-------|-------------| +| [Getting Started](https://skillshare.runkids.cc/docs/intro) | Quick start guide | +| [Commands](https://skillshare.runkids.cc/docs/commands/init) | All CLI commands | +| [Web Dashboard](https://skillshare.runkids.cc/docs/commands/ui) | Visual skill management via browser | +| [Project Skills](https://skillshare.runkids.cc/docs/guides/project-setup) | Project-level skills setup | +| [Organization Skills](https://skillshare.runkids.cc/docs/guides/organization-sharing) | Organization-wide sharing with tracked repos | +| [Cross-machine](https://skillshare.runkids.cc/docs/guides/cross-machine-sync) | Multi-machine sync | +| [Docker Sandbox](https://skillshare.runkids.cc/docs/guides/docker-sandbox) | Test sandbox and interactive playground | +| [FAQ](https://skillshare.runkids.cc/docs/troubleshooting/faq) | FAQ & troubleshooting | + ## Commands | Command | Description | |---------|-------------| | `init` | Initialize, auto-detect CLIs, setup git | | `new ` | Create a new skill with SKILL.md template | -| `search ` | [Search GitHub for skills](#search-skills) | +| `search ` | Search GitHub for skills | | `sync` | Sync skills to all targets | | `collect ` | Collect skills from target back to source | | `push` | Push to git remote (cross-machine) | @@ -152,6 +169,48 @@ Done. Your skills are now synced across all AI CLI tools. | `status` | Show sync state | | `doctor` | Diagnose issues | | `upgrade` | Upgrade CLI and skill | +| `ui` | [Launch web dashboard](#web-dashboard) | + +## Web Dashboard + +Launch a visual dashboard to browse skills, manage targets, sync, search, and edit config — all from your browser. + +```bash +skillshare ui +``` + +Opens `http://localhost:19420` with a full-featured React dashboard embedded in the binary. No Node.js or extra setup required. + +| Page | What you can do | +|------|----------------| +| Dashboard | Overview of skills, targets, sync mode, version | +| Skills | Browse and filter skills, view SKILL.md content, uninstall | +| Install | Install from local path, git URL, or GitHub shorthand | +| Targets | View status, add/remove targets | +| Sync | Run sync with dry-run/force toggles, preview diffs | +| Collect | Collect skills from targets back to source with picker flow | +| Backup | Browse backups, restore, and clean up old snapshots | +| Git Sync | Push/pull source repo, check dirty state, force pull when needed | +| Search | Search GitHub for skills, one-click install | +| Config | Edit config.yaml with validation | + +### UI Preview + +| Install Flow | Dashboard Overview | +|---|---| +| web install flow | web dashboard overview | + +| Skills Browser | Skill Detail | +|---|---| +| web skills browser | web skill detail | + +| Sync Controls | Search Skills | +|---|---| +| web sync controls | web search skills | + +Also works in Docker: `skillshare ui --host 0.0.0.0 --no-open` (port 19420 is mapped). + +--- ## Docker Sandbox Testing @@ -219,6 +278,7 @@ Inside the container you can run directly (no manual build needed): skillshare --help ss --help skillshare init --dry-run +skillshare ui --host 0.0.0.0 --no-open # Web UI at http://localhost:19420 ``` Stop the playground when done: @@ -235,22 +295,6 @@ With `make`: make sandbox-down ``` -## Documentation - -📖 **Full documentation at [skillshare.runkids.cc](https://skillshare.runkids.cc/docs/intro)** - -| Guide | Description | -|-------|-------------| -| [Getting Started](https://skillshare.runkids.cc/docs/intro) | Quick start guide | -| [Commands](https://skillshare.runkids.cc/docs/commands/init) | All CLI commands | -| [Project Skills](https://skillshare.runkids.cc/docs/guides/project-setup) | Project-level skills setup | -| [Organization Skills](https://skillshare.runkids.cc/docs/guides/organization-sharing) | Organization-wide sharing with tracked repos | -| [Cross-machine](https://skillshare.runkids.cc/docs/guides/cross-machine-sync) | Multi-machine sync | -| [Docker Sandbox](https://skillshare.runkids.cc/docs/guides/docker-sandbox) | Test sandbox and interactive playground | -| [FAQ](https://skillshare.runkids.cc/docs/troubleshooting/faq) | FAQ & troubleshooting | - ---- - ### Target Management ```bash diff --git a/cmd/skillshare/main.go b/cmd/skillshare/main.go index 33a4ef0b7..a67f07471 100644 --- a/cmd/skillshare/main.go +++ b/cmd/skillshare/main.go @@ -32,6 +32,7 @@ var commands = map[string]func([]string) error{ "update": cmdUpdate, "new": cmdNew, "search": cmdSearch, + "ui": cmdUI, } func main() { @@ -167,6 +168,7 @@ func printUsage() { // Utilities fmt.Println("UTILITIES") + cmd("ui", "", "Launch web dashboard") cmd("doctor", "", "Check environment and diagnose issues") cmd("version", "", "Show version") cmd("help", "", "Show this help") diff --git a/cmd/skillshare/status_project.go b/cmd/skillshare/status_project.go index d51cae5e6..101917a42 100644 --- a/cmd/skillshare/status_project.go +++ b/cmd/skillshare/status_project.go @@ -96,4 +96,3 @@ func printProjectTargetsStatus(runtime *projectRuntime) { ui.Status(entry.Name, statusStr, detail) } } - diff --git a/cmd/skillshare/ui.go b/cmd/skillshare/ui.go new file mode 100644 index 000000000..d20d84237 --- /dev/null +++ b/cmd/skillshare/ui.go @@ -0,0 +1,98 @@ +package main + +import ( + "fmt" + "os" + "os/exec" + "runtime" + "strings" + + "skillshare/internal/config" + "skillshare/internal/server" + "skillshare/internal/ui" +) + +func cmdUI(args []string) error { + port := "19420" + host := "127.0.0.1" + noOpen := false + + for i := 0; i < len(args); i++ { + switch args[i] { + case "--port": + if i+1 < len(args) { + i++ + port = args[i] + } else { + return fmt.Errorf("--port requires a value") + } + case "--host": + if i+1 < len(args) { + i++ + host = args[i] + } else { + return fmt.Errorf("--host requires a value") + } + case "--no-open": + noOpen = true + default: + return fmt.Errorf("unknown flag: %s", args[i]) + } + } + + cfg, err := loadUIConfig() + if err != nil { + return err + } + + addr := host + ":" + port + url := "http://" + addr + + if !noOpen { + ui.Success("Opening %s in your browser...", url) + openBrowser(url) + } + + srv := server.New(cfg, addr) + return srv.Start() +} + +func loadUIConfig() (*config.Config, error) { + cfg, err := config.Load() + if err != nil { + return nil, fmt.Errorf("skillshare is not initialized: run 'skillshare init' first") + } + + source := strings.TrimSpace(cfg.Source) + if source == "" { + return nil, fmt.Errorf("invalid config: source is empty (run 'skillshare init' first)") + } + + info, err := os.Stat(source) + if err != nil { + if os.IsNotExist(err) { + return nil, fmt.Errorf("source directory not found: %s (run 'skillshare init' first)", source) + } + return nil, fmt.Errorf("failed to access source directory %s: %w", source, err) + } + if !info.IsDir() { + return nil, fmt.Errorf("source path is not a directory: %s (run 'skillshare init' first)", source) + } + + return cfg, nil +} + +func openBrowser(url string) { + var cmd *exec.Cmd + switch runtime.GOOS { + case "darwin": + cmd = exec.Command("open", url) + case "linux": + cmd = exec.Command("xdg-open", url) + case "windows": + cmd = exec.Command("rundll32", "url.dll,FileProtocolHandler", url) + default: + return + } + cmd.Start() +} diff --git a/docker-compose.sandbox.yml b/docker-compose.sandbox.yml index d68a84e3c..92f8fedaf 100644 --- a/docker-compose.sandbox.yml +++ b/docker-compose.sandbox.yml @@ -44,6 +44,8 @@ services: command: - sleep - infinity + ports: + - "19420:19420" environment: HOME: /sandbox-home GOCACHE: /go/build-cache diff --git a/docker/sandbox/Dockerfile b/docker/sandbox/Dockerfile index 658ab2dbc..c4c09900d 100644 --- a/docker/sandbox/Dockerfile +++ b/docker/sandbox/Dockerfile @@ -1,9 +1,22 @@ +# Stage 1: Build frontend assets +FROM node:22-bookworm-slim AS ui-builder +RUN npm install -g pnpm@latest +WORKDIR /ui +COPY ui/package.json ui/pnpm-lock.yaml ./ +RUN pnpm install --frozen-lockfile +COPY ui/ ./ +RUN pnpm run build + +# Stage 2: Go sandbox with pre-built frontend FROM golang:1.25.5-bookworm RUN apt-get update \ && apt-get install -y --no-install-recommends bash git ca-certificates \ && rm -rf /var/lib/apt/lists/* +# Copy pre-built frontend for go:embed at build time +COPY --from=ui-builder /ui/dist /ui-dist + WORKDIR /workspace COPY go.mod go.sum ./ diff --git a/internal/git/info.go b/internal/git/info.go index de33c86bd..53a20a6ca 100644 --- a/internal/git/info.go +++ b/internal/git/info.go @@ -1,6 +1,7 @@ package git import ( + "fmt" "os/exec" "strconv" "strings" @@ -199,6 +200,64 @@ func Restore(repoPath string) error { return cmd.Run() } +// IsRepo checks if the directory is a git repository +func IsRepo(dir string) bool { + cmd := exec.Command("git", "rev-parse", "--git-dir") + cmd.Dir = dir + return cmd.Run() == nil +} + +// HasRemote checks if the repo has at least one remote configured +func HasRemote(dir string) bool { + cmd := exec.Command("git", "remote") + cmd.Dir = dir + out, err := cmd.Output() + if err != nil { + return false + } + return strings.TrimSpace(string(out)) != "" +} + +// StageAll stages all changes (git add -A) +func StageAll(dir string) error { + cmd := exec.Command("git", "add", "-A") + cmd.Dir = dir + return cmd.Run() +} + +// Commit creates a commit with the given message +func Commit(dir, msg string) error { + cmd := exec.Command("git", "commit", "-m", msg) + cmd.Dir = dir + out, err := cmd.CombinedOutput() + if err != nil { + return fmt.Errorf("git commit failed: %s", strings.TrimSpace(string(out))) + } + return nil +} + +// PushRemote pushes to the default remote +func PushRemote(dir string) error { + cmd := exec.Command("git", "push") + cmd.Dir = dir + out, err := cmd.CombinedOutput() + if err != nil { + return fmt.Errorf("git push failed: %s", strings.TrimSpace(string(out))) + } + return nil +} + +// GetStatus returns git status --porcelain output +func GetStatus(dir string) (string, error) { + cmd := exec.Command("git", "status", "--porcelain") + cmd.Dir = dir + out, err := cmd.Output() + if err != nil { + return "", err + } + return strings.TrimSpace(string(out)), nil +} + // GetCurrentBranch returns the current branch name func GetCurrentBranch(repoPath string) (string, error) { cmd := exec.Command("git", "rev-parse", "--abbrev-ref", "HEAD") diff --git a/internal/git/info_test.go b/internal/git/info_test.go new file mode 100644 index 000000000..8d2c40abe --- /dev/null +++ b/internal/git/info_test.go @@ -0,0 +1,161 @@ +package git + +import ( + "os" + "os/exec" + "path/filepath" + "testing" +) + +// initTestRepo creates a temporary git repo with one commit +func initTestRepo(t *testing.T) string { + t.Helper() + dir := t.TempDir() + + run := func(args ...string) { + t.Helper() + cmd := exec.Command("git", args...) + cmd.Dir = dir + cmd.Env = append(os.Environ(), + "GIT_AUTHOR_NAME=test", + "GIT_AUTHOR_EMAIL=test@test.com", + "GIT_COMMITTER_NAME=test", + "GIT_COMMITTER_EMAIL=test@test.com", + ) + out, err := cmd.CombinedOutput() + if err != nil { + t.Fatalf("git %v failed: %s\n%s", args, err, out) + } + } + + run("init") + run("config", "user.email", "test@test.com") + run("config", "user.name", "test") + os.WriteFile(filepath.Join(dir, "README.md"), []byte("# test"), 0644) + run("add", "-A") + run("commit", "-m", "initial") + + return dir +} + +func TestIsRepo(t *testing.T) { + repo := initTestRepo(t) + if !IsRepo(repo) { + t.Error("expected IsRepo to return true for a git repo") + } + + notRepo := t.TempDir() + if IsRepo(notRepo) { + t.Error("expected IsRepo to return false for a non-repo dir") + } +} + +func TestHasRemote(t *testing.T) { + repo := initTestRepo(t) + if HasRemote(repo) { + t.Error("expected HasRemote to return false for repo without remote") + } + + // Add a remote + cmd := exec.Command("git", "remote", "add", "origin", "https://example.com/repo.git") + cmd.Dir = repo + if err := cmd.Run(); err != nil { + t.Fatal(err) + } + + if !HasRemote(repo) { + t.Error("expected HasRemote to return true after adding remote") + } +} + +func TestGetCurrentBranch(t *testing.T) { + repo := initTestRepo(t) + branch, err := GetCurrentBranch(repo) + if err != nil { + t.Fatal(err) + } + // Default branch could be main or master depending on git config + if branch != "main" && branch != "master" { + t.Errorf("unexpected branch name: %s", branch) + } +} + +func TestStageAndCommit(t *testing.T) { + repo := initTestRepo(t) + + // Create a new file + os.WriteFile(filepath.Join(repo, "new.txt"), []byte("hello"), 0644) + + // Stage all + if err := StageAll(repo); err != nil { + t.Fatalf("StageAll failed: %v", err) + } + + // Commit + if err := Commit(repo, "add new file"); err != nil { + t.Fatalf("Commit failed: %v", err) + } + + // Should be clean now + dirty, err := IsDirty(repo) + if err != nil { + t.Fatal(err) + } + if dirty { + t.Error("expected repo to be clean after commit") + } +} + +func TestGetStatus(t *testing.T) { + repo := initTestRepo(t) + + // Clean repo + status, err := GetStatus(repo) + if err != nil { + t.Fatal(err) + } + if status != "" { + t.Errorf("expected empty status for clean repo, got: %q", status) + } + + // Create untracked file + os.WriteFile(filepath.Join(repo, "untracked.txt"), []byte("x"), 0644) + status, err = GetStatus(repo) + if err != nil { + t.Fatal(err) + } + if status == "" { + t.Error("expected non-empty status after adding untracked file") + } +} + +func TestIsDirtyAndGetDirtyFiles(t *testing.T) { + repo := initTestRepo(t) + + dirty, err := IsDirty(repo) + if err != nil { + t.Fatal(err) + } + if dirty { + t.Error("expected clean repo") + } + + // Modify a file + os.WriteFile(filepath.Join(repo, "README.md"), []byte("# modified"), 0644) + + dirty, err = IsDirty(repo) + if err != nil { + t.Fatal(err) + } + if !dirty { + t.Error("expected dirty repo") + } + + files, err := GetDirtyFiles(repo) + if err != nil { + t.Fatal(err) + } + if len(files) == 0 { + t.Error("expected at least one dirty file") + } +} diff --git a/internal/install/install.go b/internal/install/install.go index 8e506768f..10e49e05f 100644 --- a/internal/install/install.go +++ b/internal/install/install.go @@ -1,12 +1,15 @@ package install import ( + "bytes" + "context" "fmt" "io" "os" "os/exec" "path/filepath" "strings" + "time" ) // InstallOptions configures the install behavior @@ -525,6 +528,54 @@ func isGitRepo(path string) bool { return IsGitRepo(path) } +// gitCommandTimeout is the maximum time for a git network operation. +const gitCommandTimeout = 60 * time.Second + +// gitCommand creates an exec.Cmd for git with GIT_TERMINAL_PROMPT=0 +// to prevent interactive credential prompts that hang CLI spinners and web UI. +func gitCommand(ctx context.Context, args ...string) *exec.Cmd { + cmd := exec.CommandContext(ctx, "git", args...) + cmd.Env = append(os.Environ(), + "GIT_TERMINAL_PROMPT=0", + "GIT_ASKPASS=", + "SSH_ASKPASS=", + ) + return cmd +} + +// runGitCommand runs a git command with timeout, captures stderr for error messages. +func runGitCommand(args []string, dir string) error { + ctx, cancel := context.WithTimeout(context.Background(), gitCommandTimeout) + defer cancel() + + cmd := gitCommand(ctx, args...) + if dir != "" { + cmd.Dir = dir + } + var stderr bytes.Buffer + cmd.Stderr = &stderr + + err := cmd.Run() + if err != nil { + return wrapGitError(stderr.String(), err) + } + return nil +} + +// wrapGitError inspects stderr output to produce actionable error messages. +func wrapGitError(stderr string, err error) error { + s := strings.TrimSpace(stderr) + if strings.Contains(s, "Authentication failed") || + strings.Contains(s, "could not read Username") || + strings.Contains(s, "terminal prompts disabled") { + return fmt.Errorf("authentication required — for private repos use SSH URL:\n git@:/.git\n %s", s) + } + if s != "" { + return fmt.Errorf("%s", s) + } + return err +} + // cloneRepo performs a git clone (quiet mode for cleaner output) func cloneRepo(url, destPath string, shallow bool) error { args := []string{"clone", "--quiet"} @@ -532,16 +583,12 @@ func cloneRepo(url, destPath string, shallow bool) error { args = append(args, "--depth", "1") } args = append(args, url, destPath) - - cmd := exec.Command("git", args...) - return cmd.Run() + return runGitCommand(args, "") } // gitPull performs a git pull (quiet mode) func gitPull(repoPath string) error { - cmd := exec.Command("git", "pull", "--quiet") - cmd.Dir = repoPath - return cmd.Run() + return runGitCommand([]string{"pull", "--quiet"}, repoPath) } // getGitCommit returns the current HEAD commit hash @@ -717,8 +764,7 @@ func updateTrackedRepo(repoPath string, result *TrackedRepoResult, opts InstallO // cloneRepoFull performs a full git clone (quiet mode for cleaner output) func cloneRepoFull(url, destPath string) error { - cmd := exec.Command("git", "clone", "--quiet", url, destPath) - return cmd.Run() + return runGitCommand([]string{"clone", "--quiet", url, destPath}, "") } // GetTrackedRepos returns a list of tracked repositories in the source directory diff --git a/internal/install/install_test.go b/internal/install/install_test.go index 424c90086..34f01ea9a 100644 --- a/internal/install/install_test.go +++ b/internal/install/install_test.go @@ -1,8 +1,11 @@ package install import ( + "context" + "errors" "os" "path/filepath" + "strings" "testing" ) @@ -124,3 +127,72 @@ func TestDiscoverSkills_SkipsHiddenDirs(t *testing.T) { t.Errorf("expected 0 skills (hidden dirs skipped), got %d", len(skills)) } } + +func TestWrapGitError(t *testing.T) { + tests := []struct { + name string + stderr string + err error + wantSubstr string + }{ + { + name: "authentication failed", + stderr: "fatal: Authentication failed for 'https://bitbucket.org/team/repo.git/'", + err: errors.New("exit status 128"), + wantSubstr: "git@:/.git", + }, + { + name: "could not read Username", + stderr: "fatal: could not read Username for 'https://bitbucket.org': terminal prompts disabled", + err: errors.New("exit status 128"), + wantSubstr: "git@:/.git", + }, + { + name: "terminal prompts disabled", + stderr: "fatal: terminal prompts disabled", + err: errors.New("exit status 128"), + wantSubstr: "authentication required", + }, + { + name: "other stderr", + stderr: "fatal: repository not found", + err: errors.New("exit status 128"), + wantSubstr: "repository not found", + }, + { + name: "empty stderr falls back to err", + stderr: "", + err: errors.New("exit status 1"), + wantSubstr: "exit status 1", + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got := wrapGitError(tt.stderr, tt.err) + if !strings.Contains(got.Error(), tt.wantSubstr) { + t.Errorf("wrapGitError() = %q, want substring %q", got.Error(), tt.wantSubstr) + } + }) + } +} + +func TestGitCommand_SetsEnv(t *testing.T) { + ctx := context.Background() + cmd := gitCommand(ctx, "version") + + want := map[string]bool{ + "GIT_TERMINAL_PROMPT=0": false, + "GIT_ASKPASS=": false, + "SSH_ASKPASS=": false, + } + for _, env := range cmd.Env { + if _, ok := want[env]; ok { + want[env] = true + } + } + for k, found := range want { + if !found { + t.Errorf("gitCommand() missing env %q", k) + } + } +} diff --git a/internal/install/source.go b/internal/install/source.go index 49127a5e2..5165cab0f 100644 --- a/internal/install/source.go +++ b/internal/install/source.go @@ -238,6 +238,9 @@ func parseGitHTTPS(matches []string, source *Source) (*Source, error) { subdir = matches[4] } + // Strip platform-specific branch prefixes from web URLs + subdir = stripGitBranchPrefix(host, subdir) + // Normalize "." subdir (explicit root) to empty string if subdir == "." { subdir = "" @@ -256,6 +259,46 @@ func parseGitHTTPS(matches []string, source *Source) (*Source, error) { return source, nil } +// stripGitBranchPrefix removes platform-specific branch path segments from web URLs. +// Bitbucket: src/{branch}/path → path +// GitLab: -/tree/{branch}/path → path, -/blob/{branch}/path → path +func stripGitBranchPrefix(host, subdir string) string { + if subdir == "" { + return "" + } + + subdir = strings.TrimRight(subdir, "/") + parts := strings.SplitN(subdir, "/", 3) + + // Bitbucket: src/{branch}/path + if strings.Contains(host, "bitbucket") && len(parts) >= 2 && parts[0] == "src" { + if len(parts) == 3 { + return parts[2] + } + return "" + } + + // GitLab: -/tree/{branch}/path or -/blob/{branch}/path + if parts[0] == "-" && len(parts) >= 2 { + rest := strings.SplitN(parts[1], "/", 2) + if rest[0] == "tree" || rest[0] == "blob" { + // subdir is "-/tree/{branch}/path" or "-/blob/{branch}/path" + // After SplitN(subdir, "/", 3): parts = ["-", "tree", "{branch}/path"] + // Need to further split parts[2] to get past branch + if len(parts) == 3 { + inner := strings.SplitN(parts[2], "/", 2) + // inner[0] = branch, inner[1] = actual path + if len(inner) == 2 { + return inner[1] + } + } + return "" + } + } + + return subdir +} + // HasSubdir returns true if this source requires subdirectory extraction func (s *Source) HasSubdir() bool { return s.Subdir != "" diff --git a/internal/install/source_test.go b/internal/install/source_test.go index 78f019131..334f1266f 100644 --- a/internal/install/source_test.go +++ b/internal/install/source_test.go @@ -206,6 +206,7 @@ func TestParseSource_GitHTTPS(t *testing.T) { name string input string wantCloneURL string + wantSubdir string wantName string }{ { @@ -226,6 +227,53 @@ func TestParseSource_GitHTTPS(t *testing.T) { wantCloneURL: "https://gitlab.com/user/repo.git", wantName: "repo", }, + { + name: "bitbucket web URL with src/main", + input: "https://bitbucket.org/team/skills/src/main/learn-and-update", + wantCloneURL: "https://bitbucket.org/team/skills.git", + wantSubdir: "learn-and-update", + wantName: "learn-and-update", + }, + { + name: "bitbucket web URL with src/main trailing slash", + input: "https://bitbucket.org/team/skills/src/main/learn-and-update/", + wantCloneURL: "https://bitbucket.org/team/skills.git", + wantSubdir: "learn-and-update", + wantName: "learn-and-update", + }, + { + name: "bitbucket web URL src/branch only (no subdir)", + input: "https://bitbucket.org/team/skills/src/main", + wantCloneURL: "https://bitbucket.org/team/skills.git", + wantName: "skills", + }, + { + name: "bitbucket web URL nested subdir", + input: "https://bitbucket.org/team/skills/src/develop/frontend/react", + wantCloneURL: "https://bitbucket.org/team/skills.git", + wantSubdir: "frontend/react", + wantName: "react", + }, + { + name: "gitlab web URL with -/tree/main", + input: "https://gitlab.com/user/repo/-/tree/main/path/to/skill", + wantCloneURL: "https://gitlab.com/user/repo.git", + wantSubdir: "path/to/skill", + wantName: "skill", + }, + { + name: "gitlab web URL with -/blob/main", + input: "https://gitlab.com/user/repo/-/blob/main/path/to/skill", + wantCloneURL: "https://gitlab.com/user/repo.git", + wantSubdir: "path/to/skill", + wantName: "skill", + }, + { + name: "gitlab web URL -/tree/branch only", + input: "https://gitlab.com/user/repo/-/tree/main", + wantCloneURL: "https://gitlab.com/user/repo.git", + wantName: "repo", + }, } for _, tt := range tests { @@ -240,6 +288,9 @@ func TestParseSource_GitHTTPS(t *testing.T) { if source.CloneURL != tt.wantCloneURL { t.Errorf("CloneURL = %v, want %v", source.CloneURL, tt.wantCloneURL) } + if source.Subdir != tt.wantSubdir { + t.Errorf("Subdir = %v, want %v", source.Subdir, tt.wantSubdir) + } if source.Name != tt.wantName { t.Errorf("Name = %v, want %v", source.Name, tt.wantName) } @@ -370,6 +421,34 @@ func TestSource_MetaType(t *testing.T) { } } +func TestStripGitBranchPrefix(t *testing.T) { + tests := []struct { + name string + host string + subdir string + want string + }{ + {"empty", "bitbucket.org", "", ""}, + {"bitbucket src/main/path", "bitbucket.org", "src/main/learn-and-update", "learn-and-update"}, + {"bitbucket src/main/nested", "bitbucket.org", "src/develop/a/b/c", "a/b/c"}, + {"bitbucket src/branch only", "bitbucket.org", "src/main", ""}, + {"bitbucket trailing slash", "bitbucket.org", "src/main/skill/", "skill"}, + {"gitlab -/tree/main/path", "gitlab.com", "-/tree/main/path/to/skill", "path/to/skill"}, + {"gitlab -/blob/main/path", "gitlab.com", "-/blob/main/path/to/skill", "path/to/skill"}, + {"gitlab -/tree/branch only", "gitlab.com", "-/tree/main", ""}, + {"non-platform passthrough", "example.com", "some/path", "some/path"}, + {"bitbucket host variant", "bitbucket.mycompany.com", "src/main/skill", "skill"}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + got := stripGitBranchPrefix(tt.host, tt.subdir) + if got != tt.want { + t.Errorf("stripGitBranchPrefix(%q, %q) = %q, want %q", tt.host, tt.subdir, got, tt.want) + } + }) + } +} + func TestParseSource_GeminiCLIMonorepo(t *testing.T) { // Real-world test case from the plan input := "github.com/google-gemini/gemini-cli/packages/core/src/skills/builtin/skill-creator" diff --git a/internal/server/dist/favicon.ico b/internal/server/dist/favicon.ico new file mode 100644 index 000000000..c01d54bcd Binary files /dev/null and b/internal/server/dist/favicon.ico differ diff --git a/internal/server/dist/index.html b/internal/server/dist/index.html new file mode 100644 index 000000000..e20954c54 --- /dev/null +++ b/internal/server/dist/index.html @@ -0,0 +1,22 @@ + + + + + + + + Skillshare Web Dashboard + + + + + + + + +
+ + diff --git a/internal/server/dist/logo.png b/internal/server/dist/logo.png new file mode 100644 index 000000000..3f7c09a86 Binary files /dev/null and b/internal/server/dist/logo.png differ diff --git a/internal/server/dist/logo.svg b/internal/server/dist/logo.svg new file mode 100644 index 000000000..9db6d0d06 --- /dev/null +++ b/internal/server/dist/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/internal/server/embed.go b/internal/server/embed.go new file mode 100644 index 000000000..047c9d650 --- /dev/null +++ b/internal/server/embed.go @@ -0,0 +1,50 @@ +//go:build !dev + +package server + +import ( + "embed" + "io/fs" + "net/http" + "os" + "strings" +) + +//go:embed all:dist +var distFS embed.FS + +// spaHandler returns a handler that serves the embedded SPA. +// Unknown paths fall back to index.html for client-side routing. +func spaHandler() http.Handler { + sub, err := fs.Sub(distFS, "dist") + if err != nil { + panic("embed: " + err.Error()) + } + fileServer := http.FileServer(http.FS(sub)) + + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + // Try to serve the file directly + path := strings.TrimPrefix(r.URL.Path, "/") + if path == "" { + path = "index.html" + } + + if _, err := fs.Stat(sub, path); err == nil { + fileServer.ServeHTTP(w, r) + return + } + + // SPA fallback: serve index.html for unknown paths + index, err := fs.ReadFile(sub, "index.html") + if err != nil { + if os.IsNotExist(err) { + http.Error(w, "UI not built. Run: make ui-build", http.StatusNotFound) + return + } + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } + w.Header().Set("Content-Type", "text/html; charset=utf-8") + w.Write(index) + }) +} diff --git a/internal/server/embed_dev.go b/internal/server/embed_dev.go new file mode 100644 index 000000000..324a1e16f --- /dev/null +++ b/internal/server/embed_dev.go @@ -0,0 +1,24 @@ +//go:build dev + +package server + +import ( + "net/http" +) + +// spaHandler returns a placeholder handler when building with -tags dev. +// In dev mode, use the Vite dev server on :5173 instead. +func spaHandler() http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.Header().Set("Content-Type", "text/html; charset=utf-8") + w.Write([]byte(` + +Skillshare UI (dev) + +

Skillshare UI — Dev Mode

+

The frontend is served by Vite at localhost:5173.

+

Or run make ui-build to embed the built frontend.

+ +`)) + }) +} diff --git a/internal/server/handler_backup.go b/internal/server/handler_backup.go new file mode 100644 index 000000000..9c1cbf972 --- /dev/null +++ b/internal/server/handler_backup.go @@ -0,0 +1,161 @@ +package server + +import ( + "encoding/json" + "net/http" + + "skillshare/internal/backup" +) + +type backupInfoJSON struct { + Timestamp string `json:"timestamp"` + Path string `json:"path"` + Targets []string `json:"targets"` + Date string `json:"date"` + SizeMB float64 `json:"sizeMB"` +} + +func toBackupJSON(b backup.BackupInfo) backupInfoJSON { + return backupInfoJSON{ + Timestamp: b.Timestamp, + Path: b.Path, + Targets: b.Targets, + Date: b.Date.Format("2006-01-02T15:04:05Z07:00"), + SizeMB: float64(backup.Size(b.Path)) / 1024 / 1024, + } +} + +// handleListBackups returns all backups +func (s *Server) handleListBackups(w http.ResponseWriter, r *http.Request) { + backups, err := backup.List() + if err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + + items := make([]backupInfoJSON, 0, len(backups)) + for _, b := range backups { + items = append(items, toBackupJSON(b)) + } + + total, _ := backup.TotalSize() + writeJSON(w, map[string]any{ + "backups": items, + "totalSizeMB": float64(total) / 1024 / 1024, + }) +} + +// handleCreateBackup creates a backup of target(s) +func (s *Server) handleCreateBackup(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + var body struct { + Target string `json:"target"` // empty = all targets + } + json.NewDecoder(r.Body).Decode(&body) + + targets := make(map[string]string) + if body.Target != "" { + t, ok := s.cfg.Targets[body.Target] + if !ok { + writeError(w, http.StatusBadRequest, "target not found: "+body.Target) + return + } + targets[body.Target] = t.Path + } else { + for name, t := range s.cfg.Targets { + targets[name] = t.Path + } + } + + var created []string + for name, path := range targets { + bp, err := backup.Create(name, path) + if err != nil { + writeError(w, http.StatusInternalServerError, "backup failed for "+name+": "+err.Error()) + return + } + if bp != "" { + created = append(created, name) + } + } + + writeJSON(w, map[string]any{ + "success": true, + "backedUpTargets": created, + }) +} + +// handleCleanupBackups removes old backups +func (s *Server) handleCleanupBackups(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + cfg := backup.DefaultCleanupConfig() + removed, err := backup.Cleanup(cfg) + if err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + + writeJSON(w, map[string]any{ + "success": true, + "removed": removed, + }) +} + +// handleRestore restores a backup to a target +func (s *Server) handleRestore(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + var body struct { + Timestamp string `json:"timestamp"` + Target string `json:"target"` + Force bool `json:"force"` + } + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + writeError(w, http.StatusBadRequest, "invalid JSON body") + return + } + + if body.Timestamp == "" || body.Target == "" { + writeError(w, http.StatusBadRequest, "timestamp and target are required") + return + } + + // Verify target exists in config + t, ok := s.cfg.Targets[body.Target] + if !ok { + writeError(w, http.StatusBadRequest, "target not found: "+body.Target) + return + } + + // Find backup + bk, err := backup.GetBackupByTimestamp(body.Timestamp) + if err != nil { + writeError(w, http.StatusNotFound, "backup not found: "+err.Error()) + return + } + + opts := backup.RestoreOptions{Force: body.Force} + + // Validate first + if err := backup.ValidateRestore(bk.Path, body.Target, t.Path, opts); err != nil { + writeError(w, http.StatusConflict, err.Error()) + return + } + + // Restore + if err := backup.RestoreToPath(bk.Path, body.Target, t.Path, opts); err != nil { + writeError(w, http.StatusInternalServerError, "restore failed: "+err.Error()) + return + } + + writeJSON(w, map[string]any{ + "success": true, + "target": body.Target, + "timestamp": body.Timestamp, + }) +} diff --git a/internal/server/handler_collect.go b/internal/server/handler_collect.go new file mode 100644 index 000000000..fa58538f9 --- /dev/null +++ b/internal/server/handler_collect.go @@ -0,0 +1,152 @@ +package server + +import ( + "encoding/json" + "net/http" + "os" + "path/filepath" + "time" + + ssync "skillshare/internal/sync" +) + +// --- Scan types --- + +type localSkillItem struct { + Name string `json:"name"` + Path string `json:"path"` + TargetName string `json:"targetName"` + Size int64 `json:"size"` + ModTime string `json:"modTime"` +} + +type scanTarget struct { + TargetName string `json:"targetName"` + Skills []localSkillItem `json:"skills"` +} + +// --- Collect types --- + +type collectSkillRef struct { + Name string `json:"name"` + TargetName string `json:"targetName"` +} + +// handleCollectScan scans targets for local (non-symlinked) skills. +// GET /api/collect/scan?target= (optional filter) +func (s *Server) handleCollectScan(w http.ResponseWriter, r *http.Request) { + filterTarget := r.URL.Query().Get("target") + + var scanTargets []scanTarget + totalCount := 0 + + for name, target := range s.cfg.Targets { + if filterTarget != "" && filterTarget != name { + continue + } + + locals, err := ssync.FindLocalSkills(target.Path, s.cfg.Source) + if err != nil { + writeError(w, http.StatusInternalServerError, "scan failed for "+name+": "+err.Error()) + return + } + + items := make([]localSkillItem, 0, len(locals)) + for _, sk := range locals { + items = append(items, localSkillItem{ + Name: sk.Name, + Path: sk.Path, + TargetName: name, + Size: sk.Size, + ModTime: sk.ModTime.Format(time.RFC3339), + }) + } + + totalCount += len(items) + scanTargets = append(scanTargets, scanTarget{ + TargetName: name, + Skills: items, + }) + } + + if scanTargets == nil { + scanTargets = []scanTarget{} + } + + writeJSON(w, map[string]any{ + "targets": scanTargets, + "totalCount": totalCount, + }) +} + +// handleCollect pulls selected local skills from targets to source. +// POST /api/collect { skills: [{name, targetName}], force: bool } +func (s *Server) handleCollect(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + var body struct { + Skills []collectSkillRef `json:"skills"` + Force bool `json:"force"` + } + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + writeError(w, http.StatusBadRequest, "invalid request body: "+err.Error()) + return + } + + if len(body.Skills) == 0 { + writeError(w, http.StatusBadRequest, "no skills specified") + return + } + + // Resolve each skill ref to a LocalSkillInfo + var resolved []ssync.LocalSkillInfo + for _, ref := range body.Skills { + target, ok := s.cfg.Targets[ref.TargetName] + if !ok { + writeError(w, http.StatusBadRequest, "unknown target: "+ref.TargetName) + return + } + + skillPath := filepath.Join(target.Path, ref.Name) + info, err := os.Lstat(skillPath) + if err != nil { + writeError(w, http.StatusBadRequest, "skill not found: "+ref.Name+" in "+ref.TargetName) + return + } + if info.Mode()&os.ModeSymlink != 0 { + writeError(w, http.StatusBadRequest, "skill is a symlink (not local): "+ref.Name) + return + } + if !info.IsDir() { + writeError(w, http.StatusBadRequest, "skill is not a directory: "+ref.Name) + return + } + + resolved = append(resolved, ssync.LocalSkillInfo{ + Name: ref.Name, + Path: skillPath, + TargetName: ref.TargetName, + }) + } + + result, err := ssync.PullSkills(resolved, s.cfg.Source, ssync.PullOptions{ + Force: body.Force, + }) + if err != nil { + writeError(w, http.StatusInternalServerError, "collect failed: "+err.Error()) + return + } + + // Convert Failed map to string values for JSON + failed := make(map[string]string, len(result.Failed)) + for k, v := range result.Failed { + failed[k] = v.Error() + } + + writeJSON(w, map[string]any{ + "pulled": result.Pulled, + "skipped": result.Skipped, + "failed": failed, + }) +} diff --git a/internal/server/handler_config.go b/internal/server/handler_config.go new file mode 100644 index 000000000..9cb7ac935 --- /dev/null +++ b/internal/server/handler_config.go @@ -0,0 +1,92 @@ +package server + +import ( + "encoding/json" + "net/http" + "os" + "path/filepath" + + "gopkg.in/yaml.v3" + "skillshare/internal/config" +) + +func (s *Server) handleGetConfig(w http.ResponseWriter, r *http.Request) { + // Read raw YAML + raw, err := os.ReadFile(config.ConfigPath()) + if err != nil { + writeError(w, http.StatusInternalServerError, "failed to read config: "+err.Error()) + return + } + + writeJSON(w, map[string]any{ + "config": s.cfg, + "raw": string(raw), + }) +} + +func (s *Server) handlePutConfig(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + var body struct { + Raw string `json:"raw"` + } + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + writeError(w, http.StatusBadRequest, "invalid JSON body") + return + } + + // Validate YAML before saving + var testCfg config.Config + if err := yaml.Unmarshal([]byte(body.Raw), &testCfg); err != nil { + writeError(w, http.StatusBadRequest, "invalid YAML: "+err.Error()) + return + } + + if err := os.WriteFile(config.ConfigPath(), []byte(body.Raw), 0644); err != nil { + writeError(w, http.StatusInternalServerError, "failed to write config: "+err.Error()) + return + } + + // Reload config + newCfg, err := config.Load() + if err != nil { + writeError(w, http.StatusInternalServerError, "config saved but failed to reload: "+err.Error()) + return + } + s.cfg = newCfg + + writeJSON(w, map[string]any{"success": true}) +} + +func (s *Server) handleAvailableTargets(w http.ResponseWriter, r *http.Request) { + defaults := config.DefaultTargets() + + type availTarget struct { + Name string `json:"name"` + Path string `json:"path"` + Installed bool `json:"installed"` + Detected bool `json:"detected"` + } + + items := make([]availTarget, 0, len(defaults)) + for name, tc := range defaults { + _, installed := s.cfg.Targets[name] + // Check if the tool's config directory exists (parent of skills path) + detected := false + if !installed { + parentDir := filepath.Dir(tc.Path) + if _, err := os.Stat(parentDir); err == nil { + detected = true + } + } + items = append(items, availTarget{ + Name: name, + Path: tc.Path, + Installed: installed, + Detected: detected, + }) + } + + writeJSON(w, map[string]any{"targets": items}) +} diff --git a/internal/server/handler_git.go b/internal/server/handler_git.go new file mode 100644 index 000000000..39ae0f373 --- /dev/null +++ b/internal/server/handler_git.go @@ -0,0 +1,236 @@ +package server + +import ( + "encoding/json" + "net/http" + + "skillshare/internal/git" + ssync "skillshare/internal/sync" +) + +type gitStatusResponse struct { + IsRepo bool `json:"isRepo"` + HasRemote bool `json:"hasRemote"` + Branch string `json:"branch"` + IsDirty bool `json:"isDirty"` + Files []string `json:"files"` + SourceDir string `json:"sourceDir"` +} + +// handleGitStatus returns the git status of the source directory +func (s *Server) handleGitStatus(w http.ResponseWriter, r *http.Request) { + src := s.cfg.Source + resp := gitStatusResponse{ + SourceDir: src, + Files: make([]string, 0), + } + + resp.IsRepo = git.IsRepo(src) + if !resp.IsRepo { + writeJSON(w, resp) + return + } + + resp.HasRemote = git.HasRemote(src) + + if branch, err := git.GetCurrentBranch(src); err == nil { + resp.Branch = branch + } + + if dirty, err := git.IsDirty(src); err == nil { + resp.IsDirty = dirty + } + + if files, err := git.GetDirtyFiles(src); err == nil { + resp.Files = files + } + + writeJSON(w, resp) +} + +type pushRequest struct { + Message string `json:"message"` + DryRun bool `json:"dryRun"` +} + +type pushResponse struct { + Success bool `json:"success"` + Message string `json:"message"` + DryRun bool `json:"dryRun"` +} + +// handlePush stages, commits, and pushes changes +func (s *Server) handlePush(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + var body pushRequest + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + writeError(w, http.StatusBadRequest, "invalid JSON body") + return + } + + src := s.cfg.Source + + if !git.IsRepo(src) { + writeError(w, http.StatusBadRequest, "source directory is not a git repository") + return + } + if !git.HasRemote(src) { + writeError(w, http.StatusBadRequest, "no git remote configured") + return + } + + // Check for changes + status, err := git.GetStatus(src) + if err != nil { + writeError(w, http.StatusInternalServerError, "failed to get git status: "+err.Error()) + return + } + if status == "" { + writeJSON(w, pushResponse{Success: true, Message: "nothing to push (working tree clean)", DryRun: body.DryRun}) + return + } + + if body.DryRun { + writeJSON(w, pushResponse{Success: true, Message: "dry run: would stage, commit, and push changes", DryRun: true}) + return + } + + // Stage all + if err := git.StageAll(src); err != nil { + writeError(w, http.StatusInternalServerError, "failed to stage changes: "+err.Error()) + return + } + + // Commit + msg := body.Message + if msg == "" { + msg = "Update skills" + } + if err := git.Commit(src, msg); err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + + // Push + if err := git.PushRemote(src); err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + + writeJSON(w, pushResponse{Success: true, Message: "pushed successfully"}) +} + +type pullResponse struct { + Success bool `json:"success"` + UpToDate bool `json:"upToDate"` + Commits []git.CommitInfo `json:"commits"` + Stats git.DiffStats `json:"stats"` + SyncResults []syncTargetResult `json:"syncResults"` + DryRun bool `json:"dryRun"` + Message string `json:"message,omitempty"` +} + +// handlePull pulls changes and syncs to targets +func (s *Server) handlePull(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + var body struct { + DryRun bool `json:"dryRun"` + } + json.NewDecoder(r.Body).Decode(&body) + + src := s.cfg.Source + + if !git.IsRepo(src) { + writeError(w, http.StatusBadRequest, "source directory is not a git repository") + return + } + if !git.HasRemote(src) { + writeError(w, http.StatusBadRequest, "no git remote configured") + return + } + + // Check dirty + dirty, err := git.IsDirty(src) + if err != nil { + writeError(w, http.StatusInternalServerError, "failed to check git status: "+err.Error()) + return + } + if dirty { + writeError(w, http.StatusBadRequest, "working tree has uncommitted changes — commit or stash before pulling") + return + } + + if body.DryRun { + writeJSON(w, pullResponse{Success: true, DryRun: true, Message: "dry run: would pull and sync"}) + return + } + + // Pull + info, err := git.Pull(src) + if err != nil { + writeError(w, http.StatusInternalServerError, "git pull failed: "+err.Error()) + return + } + + resp := pullResponse{ + Success: true, + UpToDate: info.UpToDate, + Commits: info.Commits, + Stats: info.Stats, + } + + if resp.Commits == nil { + resp.Commits = make([]git.CommitInfo, 0) + } + + // Auto-sync to targets (same logic as handleSync) + if !info.UpToDate { + globalMode := s.cfg.Mode + if globalMode == "" { + globalMode = "merge" + } + + for name, target := range s.cfg.Targets { + mode := target.Mode + if mode == "" { + mode = globalMode + } + + res := syncTargetResult{ + Target: name, + Linked: make([]string, 0), + Updated: make([]string, 0), + Skipped: make([]string, 0), + Pruned: make([]string, 0), + } + + if mode == "merge" { + mergeResult, err := ssync.SyncTargetMerge(name, target, src, false, false) + if err == nil { + res.Linked = mergeResult.Linked + res.Updated = mergeResult.Updated + res.Skipped = mergeResult.Skipped + } + pruneResult, err := ssync.PruneOrphanLinks(target.Path, src, false) + if err == nil { + res.Pruned = pruneResult.Removed + } + } else { + ssync.SyncTarget(name, target, src, false) + res.Linked = []string{"(symlink mode)"} + } + + resp.SyncResults = append(resp.SyncResults, res) + } + } + + if resp.SyncResults == nil { + resp.SyncResults = make([]syncTargetResult, 0) + } + + writeJSON(w, resp) +} diff --git a/internal/server/handler_install.go b/internal/server/handler_install.go new file mode 100644 index 000000000..a10c98780 --- /dev/null +++ b/internal/server/handler_install.go @@ -0,0 +1,211 @@ +package server + +import ( + "encoding/json" + "fmt" + "net/http" + "path/filepath" + + "skillshare/internal/install" +) + +// handleDiscover clones a git repo to a temp dir, discovers skills, then cleans up. +// Returns whether the caller needs to present a selection UI. +func (s *Server) handleDiscover(w http.ResponseWriter, r *http.Request) { + var body struct { + Source string `json:"source"` + } + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + writeError(w, http.StatusBadRequest, "invalid JSON body") + return + } + if body.Source == "" { + writeError(w, http.StatusBadRequest, "source is required") + return + } + + source, err := install.ParseSource(body.Source) + if err != nil { + writeError(w, http.StatusBadRequest, "invalid source: "+err.Error()) + return + } + + // Only git sources without a subdir can contain multiple skills + if !source.IsGit() || source.HasSubdir() { + writeJSON(w, map[string]any{ + "needsSelection": false, + "skills": []any{}, + }) + return + } + + discovery, err := install.DiscoverFromGit(source) + if err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + defer install.CleanupDiscovery(discovery) + + skills := make([]map[string]string, len(discovery.Skills)) + for i, sk := range discovery.Skills { + skills[i] = map[string]string{"name": sk.Name, "path": sk.Path} + } + + writeJSON(w, map[string]any{ + "needsSelection": len(discovery.Skills) > 1, + "skills": skills, + }) +} + +// handleInstallBatch re-clones a repo and installs each selected skill. +func (s *Server) handleInstallBatch(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + var body struct { + Source string `json:"source"` + Skills []struct { + Name string `json:"name"` + Path string `json:"path"` + } `json:"skills"` + Force bool `json:"force"` + } + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + writeError(w, http.StatusBadRequest, "invalid JSON body") + return + } + if body.Source == "" || len(body.Skills) == 0 { + writeError(w, http.StatusBadRequest, "source and skills are required") + return + } + + source, err := install.ParseSource(body.Source) + if err != nil { + writeError(w, http.StatusBadRequest, "invalid source: "+err.Error()) + return + } + + discovery, err := install.DiscoverFromGit(source) + if err != nil { + writeError(w, http.StatusInternalServerError, "discovery failed: "+err.Error()) + return + } + defer install.CleanupDiscovery(discovery) + + type batchResultItem struct { + Name string `json:"name"` + Action string `json:"action,omitempty"` + Warnings []string `json:"warnings,omitempty"` + Error string `json:"error,omitempty"` + } + + results := make([]batchResultItem, 0, len(body.Skills)) + for _, sel := range body.Skills { + destPath := filepath.Join(s.cfg.Source, sel.Name) + res, err := install.InstallFromDiscovery(discovery, install.SkillInfo{ + Name: sel.Name, + Path: sel.Path, + }, destPath, install.InstallOptions{Force: body.Force}) + if err != nil { + results = append(results, batchResultItem{ + Name: sel.Name, + Error: err.Error(), + }) + continue + } + results = append(results, batchResultItem{ + Name: sel.Name, + Action: res.Action, + Warnings: res.Warnings, + }) + } + + // Summary for toast + installed := 0 + var firstErr string + for _, r := range results { + if r.Error == "" { + installed++ + } else if firstErr == "" { + firstErr = r.Error + } + } + summary := fmt.Sprintf("Installed %d of %d skills", installed, len(body.Skills)) + if firstErr != "" { + summary += " (some errors)" + } + + writeJSON(w, map[string]any{ + "results": results, + "summary": summary, + }) +} + +func (s *Server) handleInstall(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + var body struct { + Source string `json:"source"` + Name string `json:"name"` + Force bool `json:"force"` + Track bool `json:"track"` + } + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + writeError(w, http.StatusBadRequest, "invalid JSON body") + return + } + + if body.Source == "" { + writeError(w, http.StatusBadRequest, "source is required") + return + } + + source, err := install.ParseSource(body.Source) + if err != nil { + writeError(w, http.StatusBadRequest, "invalid source: "+err.Error()) + return + } + + if body.Name != "" { + source.Name = body.Name + } + + // Tracked repo install + if body.Track { + result, err := install.InstallTrackedRepo(source, s.cfg.Source, install.InstallOptions{ + Name: body.Name, + Force: body.Force, + }) + if err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + writeJSON(w, map[string]any{ + "repoName": result.RepoName, + "skillCount": result.SkillCount, + "skills": result.Skills, + "action": result.Action, + "warnings": result.Warnings, + }) + return + } + + // Regular install + destPath := filepath.Join(s.cfg.Source, source.Name) + + result, err := install.Install(source, destPath, install.InstallOptions{ + Name: body.Name, + Force: body.Force, + }) + if err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + + writeJSON(w, map[string]any{ + "skillName": result.SkillName, + "action": result.Action, + "warnings": result.Warnings, + }) +} diff --git a/internal/server/handler_overview.go b/internal/server/handler_overview.go new file mode 100644 index 000000000..8252d4504 --- /dev/null +++ b/internal/server/handler_overview.go @@ -0,0 +1,86 @@ +package server + +import ( + "net/http" + "os" + "path/filepath" + "strings" + + "skillshare/internal/git" + "skillshare/internal/install" + "skillshare/internal/sync" + "skillshare/internal/utils" + versioncheck "skillshare/internal/version" +) + +type trackedRepoItem struct { + Name string `json:"name"` + SkillCount int `json:"skillCount"` + Dirty bool `json:"dirty"` +} + +func (s *Server) handleOverview(w http.ResponseWriter, r *http.Request) { + // Count skills + skills, err := sync.DiscoverSourceSkills(s.cfg.Source) + if err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + + // Count top-level source entries (for display) + topLevelCount := 0 + entries, _ := os.ReadDir(s.cfg.Source) + for _, e := range entries { + if e.IsDir() && !utils.IsHidden(e.Name()) { + topLevelCount++ + } + } + + mode := s.cfg.Mode + if mode == "" { + mode = "merge" + } + + // Tracked repos + trackedRepos := buildTrackedRepos(s.cfg.Source, skills) + + writeJSON(w, map[string]any{ + "source": s.cfg.Source, + "skillCount": len(skills), + "topLevelCount": topLevelCount, + "targetCount": len(s.cfg.Targets), + "mode": mode, + "version": versioncheck.Version, + "trackedRepos": trackedRepos, + }) +} + +func buildTrackedRepos(sourceDir string, skills []sync.DiscoveredSkill) []trackedRepoItem { + repoNames, err := install.GetTrackedRepos(sourceDir) + if err != nil || len(repoNames) == 0 { + return []trackedRepoItem{} + } + + items := make([]trackedRepoItem, 0, len(repoNames)) + for _, repoName := range repoNames { + repoPath := filepath.Join(sourceDir, repoName) + + // Count skills belonging to this repo + skillCount := 0 + for _, sk := range skills { + if sk.IsInRepo && strings.HasPrefix(sk.RelPath, repoName+"/") { + skillCount++ + } + } + + // Check git dirty status + dirty, _ := git.IsDirty(repoPath) + + items = append(items, trackedRepoItem{ + Name: repoName, + SkillCount: skillCount, + Dirty: dirty, + }) + } + return items +} diff --git a/internal/server/handler_search.go b/internal/server/handler_search.go new file mode 100644 index 000000000..c5d963472 --- /dev/null +++ b/internal/server/handler_search.go @@ -0,0 +1,52 @@ +package server + +import ( + "net/http" + "strconv" + + "skillshare/internal/search" +) + +func (s *Server) handleSearch(w http.ResponseWriter, r *http.Request) { + query := r.URL.Query().Get("q") + if query == "" { + writeError(w, http.StatusBadRequest, "query parameter 'q' is required") + return + } + + limit := 20 + if l := r.URL.Query().Get("limit"); l != "" { + if parsed, err := strconv.Atoi(l); err == nil { + limit = parsed + } + } + + results, err := search.Search(query, limit) + if err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + + type resultItem struct { + Name string `json:"name"` + Description string `json:"description"` + Source string `json:"source"` + Stars int `json:"stars"` + Owner string `json:"owner"` + Repo string `json:"repo"` + } + + items := make([]resultItem, 0, len(results)) + for _, r := range results { + items = append(items, resultItem{ + Name: r.Name, + Description: r.Description, + Source: r.Source, + Stars: r.Stars, + Owner: r.Owner, + Repo: r.Repo, + }) + } + + writeJSON(w, map[string]any{"results": items}) +} diff --git a/internal/server/handler_skills.go b/internal/server/handler_skills.go new file mode 100644 index 000000000..a518d7a87 --- /dev/null +++ b/internal/server/handler_skills.go @@ -0,0 +1,256 @@ +package server + +import ( + "net/http" + "os" + "path/filepath" + "strings" + + "skillshare/internal/install" + "skillshare/internal/sync" + "skillshare/internal/utils" +) + +type skillItem struct { + Name string `json:"name"` + FlatName string `json:"flatName"` + RelPath string `json:"relPath"` + SourcePath string `json:"sourcePath"` + IsInRepo bool `json:"isInRepo"` + InstalledAt string `json:"installedAt,omitempty"` + Source string `json:"source,omitempty"` + Type string `json:"type,omitempty"` + RepoURL string `json:"repoUrl,omitempty"` + Version string `json:"version,omitempty"` +} + +func (s *Server) handleListSkills(w http.ResponseWriter, r *http.Request) { + discovered, err := sync.DiscoverSourceSkills(s.cfg.Source) + if err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + + items := make([]skillItem, 0, len(discovered)) + for _, d := range discovered { + item := skillItem{ + Name: filepath.Base(d.SourcePath), + FlatName: d.FlatName, + RelPath: d.RelPath, + SourcePath: d.SourcePath, + IsInRepo: d.IsInRepo, + } + + // Enrich with metadata if available + if meta, _ := install.ReadMeta(d.SourcePath); meta != nil { + item.InstalledAt = meta.InstalledAt.Format("2006-01-02T15:04:05Z") + item.Source = meta.Source + item.Type = meta.Type + item.RepoURL = meta.RepoURL + item.Version = meta.Version + } + + items = append(items, item) + } + + writeJSON(w, map[string]any{"skills": items}) +} + +func (s *Server) handleGetSkill(w http.ResponseWriter, r *http.Request) { + name := r.PathValue("name") + + // Find the skill by flat name or base name + discovered, err := sync.DiscoverSourceSkills(s.cfg.Source) + if err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + + for _, d := range discovered { + baseName := filepath.Base(d.SourcePath) + if d.FlatName != name && baseName != name { + continue + } + + item := skillItem{ + Name: baseName, + FlatName: d.FlatName, + RelPath: d.RelPath, + SourcePath: d.SourcePath, + IsInRepo: d.IsInRepo, + } + + if meta, _ := install.ReadMeta(d.SourcePath); meta != nil { + item.InstalledAt = meta.InstalledAt.Format("2006-01-02T15:04:05Z") + item.Source = meta.Source + item.Type = meta.Type + item.RepoURL = meta.RepoURL + item.Version = meta.Version + } + + // Read SKILL.md content + skillMdContent := "" + skillMdPath := filepath.Join(d.SourcePath, "SKILL.md") + if data, err := os.ReadFile(skillMdPath); err == nil { + skillMdContent = string(data) + } + + // List all files in the skill directory + files := make([]string, 0) + filepath.Walk(d.SourcePath, func(path string, info os.FileInfo, err error) error { + if err != nil { + return nil + } + if info.IsDir() && utils.IsHidden(info.Name()) { + return filepath.SkipDir + } + if !info.IsDir() { + rel, _ := filepath.Rel(d.SourcePath, path) + // Normalize separators + rel = strings.ReplaceAll(rel, "\\", "/") + files = append(files, rel) + } + return nil + }) + + writeJSON(w, map[string]any{ + "skill": item, + "skillMdContent": skillMdContent, + "files": files, + }) + return + } + + writeError(w, http.StatusNotFound, "skill not found: "+name) +} + +func (s *Server) handleGetSkillFile(w http.ResponseWriter, r *http.Request) { + name := r.PathValue("name") + fp := r.PathValue("filepath") + + // Reject path traversal attempts + if strings.Contains(fp, "..") { + writeError(w, http.StatusBadRequest, "invalid file path") + return + } + + // Find the skill + discovered, err := sync.DiscoverSourceSkills(s.cfg.Source) + if err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + + for _, d := range discovered { + baseName := filepath.Base(d.SourcePath) + if d.FlatName != name && baseName != name { + continue + } + + // Resolve and verify the file is within the skill directory + absPath := filepath.Join(d.SourcePath, filepath.FromSlash(fp)) + absPath = filepath.Clean(absPath) + skillDir := filepath.Clean(d.SourcePath) + string(filepath.Separator) + if !strings.HasPrefix(absPath, skillDir) { + writeError(w, http.StatusBadRequest, "invalid file path") + return + } + + data, err := os.ReadFile(absPath) + if err != nil { + if os.IsNotExist(err) { + writeError(w, http.StatusNotFound, "file not found: "+fp) + } else { + writeError(w, http.StatusInternalServerError, "failed to read file: "+err.Error()) + } + return + } + + // Determine content type from extension + ct := "text/plain" + switch strings.ToLower(filepath.Ext(absPath)) { + case ".md": + ct = "text/markdown" + case ".json": + ct = "application/json" + case ".yaml", ".yml": + ct = "text/yaml" + } + + writeJSON(w, map[string]any{ + "content": string(data), + "contentType": ct, + "filename": filepath.Base(absPath), + }) + return + } + + writeError(w, http.StatusNotFound, "skill not found: "+name) +} + +func (s *Server) handleUninstallRepo(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + name := r.PathValue("name") + + // Normalize: ensure _ prefix + repoName := name + if !strings.HasPrefix(repoName, "_") { + repoName = "_" + name + } + repoPath := filepath.Join(s.cfg.Source, repoName) + + if !install.IsGitRepo(repoPath) { + writeError(w, http.StatusBadRequest, "not a tracked repository: "+name) + return + } + + // Remove from .gitignore + install.RemoveFromGitIgnore(s.cfg.Source, repoName) + + // Remove directory + if err := os.RemoveAll(repoPath); err != nil { + writeError(w, http.StatusInternalServerError, "failed to remove repo: "+err.Error()) + return + } + + writeJSON(w, map[string]any{"success": true, "name": repoName}) +} + +func (s *Server) handleUninstallSkill(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + name := r.PathValue("name") + + // Find skill path + discovered, err := sync.DiscoverSourceSkills(s.cfg.Source) + if err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + + for _, d := range discovered { + baseName := filepath.Base(d.SourcePath) + if d.FlatName != name && baseName != name { + continue + } + + // Don't allow removing skills inside tracked repos + if d.IsInRepo { + writeError(w, http.StatusBadRequest, "cannot uninstall skill from tracked repo; use 'skillshare uninstall' for the whole repo") + return + } + + if err := os.RemoveAll(d.SourcePath); err != nil { + writeError(w, http.StatusInternalServerError, "failed to remove skill: "+err.Error()) + return + } + + writeJSON(w, map[string]any{"success": true, "name": name}) + return + } + + writeError(w, http.StatusNotFound, "skill not found: "+name) +} diff --git a/internal/server/handler_sync.go b/internal/server/handler_sync.go new file mode 100644 index 000000000..144caf481 --- /dev/null +++ b/internal/server/handler_sync.go @@ -0,0 +1,189 @@ +package server + +import ( + "encoding/json" + "net/http" + "os" + "path/filepath" + "strings" + + ssync "skillshare/internal/sync" + "skillshare/internal/utils" +) + +type syncTargetResult struct { + Target string `json:"target"` + Linked []string `json:"linked"` + Updated []string `json:"updated"` + Skipped []string `json:"skipped"` + Pruned []string `json:"pruned"` +} + +func (s *Server) handleSync(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + var body struct { + DryRun bool `json:"dryRun"` + Force bool `json:"force"` + } + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + // Default to non-dry-run, non-force + } + + globalMode := s.cfg.Mode + if globalMode == "" { + globalMode = "merge" + } + + results := make([]syncTargetResult, 0) + + for name, target := range s.cfg.Targets { + mode := target.Mode + if mode == "" { + mode = globalMode + } + + res := syncTargetResult{ + Target: name, + Linked: make([]string, 0), + Updated: make([]string, 0), + Skipped: make([]string, 0), + Pruned: make([]string, 0), + } + + if mode == "merge" { + mergeResult, err := ssync.SyncTargetMerge(name, target, s.cfg.Source, body.DryRun, body.Force) + if err != nil { + writeError(w, http.StatusInternalServerError, "sync failed for "+name+": "+err.Error()) + return + } + res.Linked = mergeResult.Linked + res.Updated = mergeResult.Updated + res.Skipped = mergeResult.Skipped + + // Prune orphans + pruneResult, err := ssync.PruneOrphanLinks(target.Path, s.cfg.Source, body.DryRun) + if err == nil { + res.Pruned = pruneResult.Removed + } + } else { + err := ssync.SyncTarget(name, target, s.cfg.Source, body.DryRun) + if err != nil { + writeError(w, http.StatusInternalServerError, "sync failed for "+name+": "+err.Error()) + return + } + res.Linked = []string{"(symlink mode)"} + } + + results = append(results, res) + } + + writeJSON(w, map[string]any{"results": results}) +} + +type diffItem struct { + Skill string `json:"skill"` + Action string `json:"action"` // "link", "update", "skip", "prune", "local" + Reason string `json:"reason"` // human-readable description +} + +type diffTarget struct { + Target string `json:"target"` + Items []diffItem `json:"items"` +} + +func (s *Server) handleDiff(w http.ResponseWriter, r *http.Request) { + filterTarget := r.URL.Query().Get("target") + + globalMode := s.cfg.Mode + if globalMode == "" { + globalMode = "merge" + } + + discovered, err := ssync.DiscoverSourceSkills(s.cfg.Source) + if err != nil { + writeError(w, http.StatusInternalServerError, err.Error()) + return + } + + diffs := make([]diffTarget, 0) + + for name, target := range s.cfg.Targets { + if filterTarget != "" && filterTarget != name { + continue + } + + mode := target.Mode + if mode == "" { + mode = globalMode + } + + dt := diffTarget{Target: name, Items: make([]diffItem, 0)} + + if mode != "merge" { + status := ssync.CheckStatus(target.Path, s.cfg.Source) + if status != ssync.StatusLinked { + dt.Items = append(dt.Items, diffItem{Skill: "(entire directory)", Action: "link", Reason: "missing"}) + } + diffs = append(diffs, dt) + continue + } + + // Merge mode: check each skill + for _, skill := range discovered { + targetSkillPath := filepath.Join(target.Path, skill.FlatName) + info, err := os.Lstat(targetSkillPath) + if err != nil { + if os.IsNotExist(err) { + dt.Items = append(dt.Items, diffItem{Skill: skill.FlatName, Action: "link", Reason: "missing"}) + } + continue + } + + if info.Mode()&os.ModeSymlink != 0 { + link, _ := os.Readlink(targetSkillPath) + absLink, _ := filepath.Abs(link) + absSource, _ := filepath.Abs(skill.SourcePath) + if !utils.PathsEqual(absLink, absSource) { + dt.Items = append(dt.Items, diffItem{Skill: skill.FlatName, Action: "update", Reason: "symlink points elsewhere"}) + } + } else { + dt.Items = append(dt.Items, diffItem{Skill: skill.FlatName, Action: "skip", Reason: "local copy (sync --force to replace)"}) + } + } + + // Check for orphans + entries, _ := os.ReadDir(target.Path) + validNames := make(map[string]bool) + for _, skill := range discovered { + validNames[skill.FlatName] = true + } + for _, entry := range entries { + eName := entry.Name() + if utils.IsHidden(eName) { + continue + } + if !validNames[eName] { + info, err := os.Lstat(filepath.Join(target.Path, eName)) + if err != nil { + continue + } + if info.Mode()&os.ModeSymlink != 0 { + link, _ := os.Readlink(filepath.Join(target.Path, eName)) + absLink, _ := filepath.Abs(link) + absSource, _ := filepath.Abs(s.cfg.Source) + if strings.HasPrefix(absLink, absSource+string(filepath.Separator)) { + dt.Items = append(dt.Items, diffItem{Skill: eName, Action: "prune", Reason: "orphan symlink"}) + } + } else { + dt.Items = append(dt.Items, diffItem{Skill: eName, Action: "local", Reason: "local only"}) + } + } + } + + diffs = append(diffs, dt) + } + + writeJSON(w, map[string]any{"diffs": diffs}) +} diff --git a/internal/server/handler_targets.go b/internal/server/handler_targets.go new file mode 100644 index 000000000..71f7c7de2 --- /dev/null +++ b/internal/server/handler_targets.go @@ -0,0 +1,114 @@ +package server + +import ( + "encoding/json" + "net/http" + "os" + + "skillshare/internal/config" + ssync "skillshare/internal/sync" +) + +type targetItem struct { + Name string `json:"name"` + Path string `json:"path"` + Mode string `json:"mode"` + Status string `json:"status"` + LinkedCount int `json:"linkedCount"` + LocalCount int `json:"localCount"` +} + +func (s *Server) handleListTargets(w http.ResponseWriter, r *http.Request) { + items := make([]targetItem, 0, len(s.cfg.Targets)) + + globalMode := s.cfg.Mode + if globalMode == "" { + globalMode = "merge" + } + + for name, target := range s.cfg.Targets { + mode := target.Mode + if mode == "" { + mode = globalMode + } + + item := targetItem{ + Name: name, + Path: target.Path, + Mode: mode, + } + + if mode == "merge" { + status, linked, local := ssync.CheckStatusMerge(target.Path, s.cfg.Source) + item.Status = status.String() + item.LinkedCount = linked + item.LocalCount = local + } else { + status := ssync.CheckStatus(target.Path, s.cfg.Source) + item.Status = status.String() + } + + items = append(items, item) + } + + writeJSON(w, map[string]any{"targets": items}) +} + +func (s *Server) handleAddTarget(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + var body struct { + Name string `json:"name"` + Path string `json:"path"` + } + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + writeError(w, http.StatusBadRequest, "invalid JSON body") + return + } + + if body.Name == "" || body.Path == "" { + writeError(w, http.StatusBadRequest, "name and path are required") + return + } + + if _, exists := s.cfg.Targets[body.Name]; exists { + writeError(w, http.StatusConflict, "target already exists: "+body.Name) + return + } + + s.cfg.Targets[body.Name] = config.TargetConfig{Path: body.Path} + if err := s.cfg.Save(); err != nil { + writeError(w, http.StatusInternalServerError, "failed to save config: "+err.Error()) + return + } + + writeJSON(w, map[string]any{"success": true}) +} + +func (s *Server) handleRemoveTarget(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + name := r.PathValue("name") + + target, exists := s.cfg.Targets[name] + if !exists { + writeError(w, http.StatusNotFound, "target not found: "+name) + return + } + + // Remove symlinks from the target before deleting from config + info, err := os.Lstat(target.Path) + if err == nil && info.Mode()&os.ModeSymlink != 0 { + os.Remove(target.Path) + } + + delete(s.cfg.Targets, name) + if err := s.cfg.Save(); err != nil { + writeError(w, http.StatusInternalServerError, "failed to save config: "+err.Error()) + return + } + + writeJSON(w, map[string]any{"success": true, "name": name}) +} diff --git a/internal/server/handler_update.go b/internal/server/handler_update.go new file mode 100644 index 000000000..87a0c5861 --- /dev/null +++ b/internal/server/handler_update.go @@ -0,0 +1,204 @@ +package server + +import ( + "encoding/json" + "fmt" + "net/http" + "os" + "path/filepath" + "strings" + + "skillshare/internal/git" + "skillshare/internal/install" +) + +type updateRequest struct { + Name string `json:"name"` + Force bool `json:"force"` + All bool `json:"all"` +} + +type updateResultItem struct { + Name string `json:"name"` + Action string `json:"action"` // "updated", "up-to-date", "skipped", "error" + Message string `json:"message,omitempty"` + IsRepo bool `json:"isRepo"` +} + +func (s *Server) handleUpdate(w http.ResponseWriter, r *http.Request) { + s.mu.Lock() + defer s.mu.Unlock() + + var body updateRequest + if err := json.NewDecoder(r.Body).Decode(&body); err != nil { + writeError(w, http.StatusBadRequest, "invalid JSON body") + return + } + + if body.All { + results := s.updateAll(body.Force) + writeJSON(w, map[string]any{"results": results}) + return + } + + if body.Name == "" { + writeError(w, http.StatusBadRequest, "name is required (or use all: true)") + return + } + + result := s.updateSingle(body.Name, body.Force) + writeJSON(w, map[string]any{"results": []updateResultItem{result}}) +} + +func (s *Server) updateSingle(name string, force bool) updateResultItem { + // Try tracked repo first (with _ prefix) + repoName := name + if !strings.HasPrefix(repoName, "_") { + repoName = "_" + name + } + repoPath := filepath.Join(s.cfg.Source, repoName) + + if install.IsGitRepo(repoPath) { + return s.updateTrackedRepo(repoName, repoPath, force) + } + + // Try as regular skill + skillPath := filepath.Join(s.cfg.Source, name) + if meta, _ := install.ReadMeta(skillPath); meta != nil && meta.Source != "" { + return s.updateRegularSkill(name, skillPath) + } + + // Try original name as git repo path + origPath := filepath.Join(s.cfg.Source, name) + if install.IsGitRepo(origPath) { + return s.updateTrackedRepo(name, origPath, force) + } + + return updateResultItem{ + Name: name, + Action: "error", + Message: fmt.Sprintf("'%s' not found as tracked repo or updatable skill", name), + } +} + +func (s *Server) updateTrackedRepo(name, repoPath string, force bool) updateResultItem { + // Check for uncommitted changes + if isDirty, _ := git.IsDirty(repoPath); isDirty { + if !force { + return updateResultItem{ + Name: name, + Action: "skipped", + Message: "has uncommitted changes (use force to discard)", + IsRepo: true, + } + } + if err := git.Restore(repoPath); err != nil { + return updateResultItem{ + Name: name, + Action: "error", + Message: "failed to discard changes: " + err.Error(), + IsRepo: true, + } + } + } + + var info *git.UpdateInfo + var err error + if force { + info, err = git.ForcePull(repoPath) + } else { + info, err = git.Pull(repoPath) + } + if err != nil { + return updateResultItem{ + Name: name, + Action: "error", + Message: err.Error(), + IsRepo: true, + } + } + + if info.UpToDate { + return updateResultItem{Name: name, Action: "up-to-date", IsRepo: true} + } + + return updateResultItem{ + Name: name, + Action: "updated", + Message: fmt.Sprintf("%d commits, %d files changed", len(info.Commits), info.Stats.FilesChanged), + IsRepo: true, + } +} + +func (s *Server) updateRegularSkill(name, skillPath string) updateResultItem { + meta, _ := install.ReadMeta(skillPath) + source, err := install.ParseSource(meta.Source) + if err != nil { + return updateResultItem{ + Name: name, + Action: "error", + Message: "invalid source: " + err.Error(), + } + } + + opts := install.InstallOptions{Force: true, Update: true} + if _, err = install.Install(source, skillPath, opts); err != nil { + return updateResultItem{ + Name: name, + Action: "error", + Message: err.Error(), + } + } + + return updateResultItem{ + Name: name, + Action: "updated", + Message: "reinstalled from source", + } +} + +func (s *Server) updateAll(force bool) []updateResultItem { + var results []updateResultItem + + // Update tracked repos + repos, err := install.GetTrackedRepos(s.cfg.Source) + if err == nil { + for _, repo := range repos { + repoPath := filepath.Join(s.cfg.Source, repo) + results = append(results, s.updateTrackedRepo(repo, repoPath, force)) + } + } + + // Update regular skills with source metadata + skills, err := getServerUpdatableSkills(s.cfg.Source) + if err == nil { + for _, skill := range skills { + skillPath := filepath.Join(s.cfg.Source, skill) + results = append(results, s.updateRegularSkill(skill, skillPath)) + } + } + + return results +} + +// getServerUpdatableSkills returns skill names that have metadata with a remote source +func getServerUpdatableSkills(sourceDir string) ([]string, error) { + entries, err := os.ReadDir(sourceDir) + if err != nil { + return nil, err + } + + var skills []string + for _, entry := range entries { + if !entry.IsDir() || (len(entry.Name()) > 0 && entry.Name()[0] == '_') { + continue + } + skillPath := filepath.Join(sourceDir, entry.Name()) + meta, err := install.ReadMeta(skillPath) + if err != nil || meta == nil || meta.Source == "" { + continue + } + skills = append(skills, entry.Name()) + } + return skills, nil +} diff --git a/internal/server/handler_version.go b/internal/server/handler_version.go new file mode 100644 index 000000000..c5524b633 --- /dev/null +++ b/internal/server/handler_version.go @@ -0,0 +1,41 @@ +package server + +import ( + "net/http" + + versioncheck "skillshare/internal/version" +) + +func (s *Server) handleVersionCheck(w http.ResponseWriter, r *http.Request) { + cliVersion := versioncheck.Version + cliUpdateAvailable := false + var cliLatest *string + + // CLI version check (uses 24h cache) + if result := versioncheck.Check(cliVersion); result != nil { + cliUpdateAvailable = result.UpdateAvailable + cliLatest = &result.LatestVersion + } + + // Skill version (local) + skillVersion := versioncheck.ReadLocalSkillVersion(s.cfg.Source) + + // Skill version (remote) — network call with 3s timeout + var skillLatest *string + skillUpdateAvailable := false + if skillVersion != "" { + if remote := versioncheck.FetchRemoteSkillVersion(); remote != "" { + skillLatest = &remote + skillUpdateAvailable = remote != skillVersion + } + } + + writeJSON(w, map[string]any{ + "cliVersion": cliVersion, + "cliLatest": cliLatest, + "cliUpdateAvailable": cliUpdateAvailable, + "skillVersion": skillVersion, + "skillLatest": skillLatest, + "skillUpdateAvailable": skillUpdateAvailable, + }) +} diff --git a/internal/server/middleware.go b/internal/server/middleware.go new file mode 100644 index 000000000..b43c712ac --- /dev/null +++ b/internal/server/middleware.go @@ -0,0 +1,19 @@ +package server + +import ( + "encoding/json" + "net/http" +) + +// writeJSON writes a JSON response with 200 status +func writeJSON(w http.ResponseWriter, data any) { + w.Header().Set("Content-Type", "application/json") + json.NewEncoder(w).Encode(data) +} + +// writeError writes a JSON error response +func writeError(w http.ResponseWriter, code int, msg string) { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(code) + json.NewEncoder(w).Encode(map[string]string{"error": msg}) +} diff --git a/internal/server/server.go b/internal/server/server.go new file mode 100644 index 000000000..c585bf1e4 --- /dev/null +++ b/internal/server/server.go @@ -0,0 +1,101 @@ +package server + +import ( + "fmt" + "net/http" + "sync" + + "skillshare/internal/config" +) + +// Server holds the HTTP server state +type Server struct { + cfg *config.Config + addr string + mux *http.ServeMux + mu sync.Mutex // protects write operations (sync, install, uninstall, config) +} + +// New creates a new Server +func New(cfg *config.Config, addr string) *Server { + s := &Server{ + cfg: cfg, + addr: addr, + mux: http.NewServeMux(), + } + s.registerRoutes() + return s +} + +// Start starts the HTTP server (blocking) +func (s *Server) Start() error { + fmt.Printf("Skillshare UI running at http://%s\n", s.addr) + return http.ListenAndServe(s.addr, s.mux) +} + +// registerRoutes sets up all API and static file routes +func (s *Server) registerRoutes() { + // Health check + s.mux.HandleFunc("GET /api/health", s.handleHealth) + + // Overview + s.mux.HandleFunc("GET /api/overview", s.handleOverview) + + // Skills + s.mux.HandleFunc("GET /api/skills", s.handleListSkills) + s.mux.HandleFunc("GET /api/skills/{name}", s.handleGetSkill) + s.mux.HandleFunc("GET /api/skills/{name}/files/{filepath...}", s.handleGetSkillFile) + s.mux.HandleFunc("DELETE /api/skills/{name}", s.handleUninstallSkill) + + // Targets + s.mux.HandleFunc("GET /api/targets", s.handleListTargets) + s.mux.HandleFunc("POST /api/targets", s.handleAddTarget) + s.mux.HandleFunc("DELETE /api/targets/{name}", s.handleRemoveTarget) + + // Sync + s.mux.HandleFunc("POST /api/sync", s.handleSync) + s.mux.HandleFunc("GET /api/diff", s.handleDiff) + + // Collect + s.mux.HandleFunc("GET /api/collect/scan", s.handleCollectScan) + s.mux.HandleFunc("POST /api/collect", s.handleCollect) + + // Search & Install + s.mux.HandleFunc("GET /api/search", s.handleSearch) + s.mux.HandleFunc("POST /api/discover", s.handleDiscover) + s.mux.HandleFunc("POST /api/install", s.handleInstall) + s.mux.HandleFunc("POST /api/install/batch", s.handleInstallBatch) + + // Update + s.mux.HandleFunc("POST /api/update", s.handleUpdate) + + // Repo uninstall + s.mux.HandleFunc("DELETE /api/repos/{name}", s.handleUninstallRepo) + + // Version check + s.mux.HandleFunc("GET /api/version", s.handleVersionCheck) + + // Backups + s.mux.HandleFunc("GET /api/backups", s.handleListBackups) + s.mux.HandleFunc("POST /api/backup", s.handleCreateBackup) + s.mux.HandleFunc("POST /api/backup/cleanup", s.handleCleanupBackups) + s.mux.HandleFunc("POST /api/restore", s.handleRestore) + + // Git + s.mux.HandleFunc("GET /api/git/status", s.handleGitStatus) + s.mux.HandleFunc("POST /api/push", s.handlePush) + s.mux.HandleFunc("POST /api/pull", s.handlePull) + + // Config + s.mux.HandleFunc("GET /api/config", s.handleGetConfig) + s.mux.HandleFunc("PUT /api/config", s.handlePutConfig) + s.mux.HandleFunc("GET /api/config/available-targets", s.handleAvailableTargets) + + // SPA fallback — must be last + s.mux.Handle("/", spaHandler()) +} + +// handleHealth responds with a simple OK +func (s *Server) handleHealth(w http.ResponseWriter, r *http.Request) { + writeJSON(w, map[string]string{"status": "ok"}) +} diff --git a/internal/utils/frontmatter.go b/internal/utils/frontmatter.go index 6030a29a5..a2b64691d 100644 --- a/internal/utils/frontmatter.go +++ b/internal/utils/frontmatter.go @@ -47,3 +47,39 @@ func ParseSkillName(skillPath string) (string, error) { return "", nil // Name not found } + +// ParseFrontmatterField reads a SKILL.md file and extracts the value of a given frontmatter field. +func ParseFrontmatterField(filePath, field string) string { + file, err := os.Open(filePath) + if err != nil { + return "" + } + defer file.Close() + + scanner := bufio.NewScanner(file) + inFrontmatter := false + prefix := field + ":" + + for scanner.Scan() { + line := strings.TrimSpace(scanner.Text()) + + if line == "---" { + if inFrontmatter { + break + } + inFrontmatter = true + continue + } + + if inFrontmatter && strings.HasPrefix(line, prefix) { + parts := strings.SplitN(line, ":", 2) + if len(parts) == 2 { + val := strings.TrimSpace(parts[1]) + val = strings.Trim(val, `"'`) + return val + } + } + } + + return "" +} diff --git a/internal/utils/frontmatter_test.go b/internal/utils/frontmatter_test.go new file mode 100644 index 000000000..b5220e661 --- /dev/null +++ b/internal/utils/frontmatter_test.go @@ -0,0 +1,103 @@ +package utils + +import ( + "os" + "path/filepath" + "testing" +) + +func TestParseFrontmatterField(t *testing.T) { + tests := []struct { + name string + content string + field string + expected string + }{ + { + name: "extracts name field", + content: `--- +name: my-skill +version: 1.0.0 +--- +# Content`, + field: "name", + expected: "my-skill", + }, + { + name: "extracts version field", + content: `--- +name: my-skill +version: 2.3.1 +--- +# Content`, + field: "version", + expected: "2.3.1", + }, + { + name: "handles quoted values", + content: `--- +name: "quoted-skill" +--- +# Content`, + field: "name", + expected: "quoted-skill", + }, + { + name: "handles single-quoted values", + content: `--- +name: 'single-quoted' +--- +# Content`, + field: "name", + expected: "single-quoted", + }, + { + name: "returns empty for missing field", + content: "---\nname: my-skill\n---\n# Content", + field: "version", + expected: "", + }, + { + name: "returns empty for no frontmatter", + content: "# Just content\nNo frontmatter here", + field: "name", + expected: "", + }, + { + name: "returns empty for empty file", + content: "", + field: "name", + expected: "", + }, + { + name: "handles extra spaces", + content: `--- +name: spaced-value +---`, + field: "name", + expected: "spaced-value", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + dir := t.TempDir() + filePath := filepath.Join(dir, "SKILL.md") + if err := os.WriteFile(filePath, []byte(tt.content), 0644); err != nil { + t.Fatal(err) + } + + got := ParseFrontmatterField(filePath, tt.field) + if got != tt.expected { + t.Errorf("ParseFrontmatterField(%q) = %q, want %q", tt.field, got, tt.expected) + } + }) + } +} + +func TestParseFrontmatterField_FileNotExist(t *testing.T) { + got := ParseFrontmatterField("/nonexistent/path/SKILL.md", "name") + if got != "" { + t.Errorf("expected empty string for non-existent file, got %q", got) + } +} diff --git a/internal/version/skill.go b/internal/version/skill.go new file mode 100644 index 000000000..566b186d5 --- /dev/null +++ b/internal/version/skill.go @@ -0,0 +1,58 @@ +package version + +import ( + "bufio" + "net/http" + "path/filepath" + "strings" + "time" + + "skillshare/internal/utils" +) + +// SkillSourceURL is the raw URL to the official skillshare skill's SKILL.md. +const SkillSourceURL = "https://raw.githubusercontent.com/runkids/skillshare/main/skills/skillshare/SKILL.md" + +// ReadLocalSkillVersion reads the "version" field from source/skillshare/SKILL.md. +func ReadLocalSkillVersion(sourceDir string) string { + skillFile := filepath.Join(sourceDir, "skillshare", "SKILL.md") + return utils.ParseFrontmatterField(skillFile, "version") +} + +// FetchRemoteSkillVersion fetches the latest skill version from GitHub (3s timeout). +func FetchRemoteSkillVersion() string { + client := &http.Client{Timeout: 3 * time.Second} + resp, err := client.Get(SkillSourceURL) + if err != nil { + return "" + } + defer resp.Body.Close() + + if resp.StatusCode != http.StatusOK { + return "" + } + + scanner := bufio.NewScanner(resp.Body) + inFrontmatter := false + + for scanner.Scan() { + line := scanner.Text() + + if line == "---" { + if !inFrontmatter { + inFrontmatter = true + continue + } + break + } + + if inFrontmatter && strings.HasPrefix(line, "version:") { + parts := strings.SplitN(line, ":", 2) + if len(parts) == 2 { + return strings.TrimSpace(parts[1]) + } + } + } + + return "" +} diff --git a/internal/version/skill_test.go b/internal/version/skill_test.go new file mode 100644 index 000000000..98873fa79 --- /dev/null +++ b/internal/version/skill_test.go @@ -0,0 +1,65 @@ +package version + +import ( + "os" + "path/filepath" + "testing" +) + +func TestReadLocalSkillVersion(t *testing.T) { + tests := []struct { + name string + content string + expected string + }{ + { + name: "reads version from SKILL.md", + content: `--- +name: skillshare +version: 0.4.5 +--- +# Skillshare Skill`, + expected: "0.4.5", + }, + { + name: "returns empty when no version field", + content: `--- +name: skillshare +--- +# Skillshare Skill`, + expected: "", + }, + { + name: "returns empty for empty file", + content: "", + expected: "", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + // Create source/skillshare/SKILL.md structure + sourceDir := t.TempDir() + skillDir := filepath.Join(sourceDir, "skillshare") + if err := os.MkdirAll(skillDir, 0755); err != nil { + t.Fatal(err) + } + if err := os.WriteFile(filepath.Join(skillDir, "SKILL.md"), []byte(tt.content), 0644); err != nil { + t.Fatal(err) + } + + got := ReadLocalSkillVersion(sourceDir) + if got != tt.expected { + t.Errorf("ReadLocalSkillVersion() = %q, want %q", got, tt.expected) + } + }) + } +} + +func TestReadLocalSkillVersion_NoSkillDir(t *testing.T) { + sourceDir := t.TempDir() + got := ReadLocalSkillVersion(sourceDir) + if got != "" { + t.Errorf("expected empty string for missing skillshare dir, got %q", got) + } +} diff --git a/mise.toml b/mise.toml index 4ee922fa3..df645e6af 100644 --- a/mise.toml +++ b/mise.toml @@ -21,6 +21,10 @@ echo " mise run lint # go vet" echo " mise run fmt # format Go files" echo " mise run fmt:check # verify formatting only" echo " mise run check # fmt:check + lint + test" +echo " mise run ui:install # install frontend dependencies" +echo " mise run ui:build # build frontend + copy to embed" +echo " mise run ui:dev # Go API server + Vite dev server" +echo " mise run build:ui # ui:build + build (full binary)" echo " mise run clean # remove build artifacts" """ @@ -97,6 +101,31 @@ depends = ["fmt:check", "lint", "test"] description = "Install skillshare to GOPATH/bin" run = "go install ./cmd/skillshare" +[tasks."ui:install"] +description = "Install frontend dependencies" +run = "cd ui && pnpm install" + +[tasks."ui:build"] +description = "Build frontend and copy to embed directory" +depends = ["ui:install"] +run = """ +cd ui && pnpm run build +rm -rf internal/server/dist +cp -r ui/dist internal/server/dist +""" + +[tasks."ui:dev"] +description = "Go API server + Vite dev server" +run = """ +trap 'kill 0' EXIT +go run -tags dev ./cmd/skillshare ui --no-open & +cd ui && pnpm run dev +""" + +[tasks."build:ui"] +description = "Build frontend + Go binary (full build)" +depends = ["ui:build", "build"] + [tasks.clean] description = "Clean build artifacts" run = "rm -rf bin coverage.out" diff --git a/scripts/sandbox_playground_up.sh b/scripts/sandbox_playground_up.sh index 40abe3651..6b33ea657 100755 --- a/scripts/sandbox_playground_up.sh +++ b/scripts/sandbox_playground_up.sh @@ -27,10 +27,11 @@ docker compose -f "$COMPOSE_FILE" --profile playground run --rm --user "0:0" "$S docker compose -f "$COMPOSE_FILE" --profile playground up -d "$SERVICE" -# Build skillshare binary into playground PATH and configure ss alias. +# Copy pre-built frontend assets for go:embed, then build skillshare binary. docker compose -f "$COMPOSE_FILE" --profile playground exec --user "$(id -u):$(id -g)" "$SERVICE" \ - bash -c "mkdir -p /sandbox-home/.local/bin && go build -o /sandbox-home/.local/bin/skillshare ./cmd/skillshare && ln -sf /sandbox-home/.local/bin/skillshare /sandbox-home/.local/bin/ss && touch /sandbox-home/.bashrc && { grep -qxF \"alias ss='skillshare'\" /sandbox-home/.bashrc || echo \"alias ss='skillshare'\" >> /sandbox-home/.bashrc; }" + bash -c "rm -rf internal/server/dist && cp -r /ui-dist internal/server/dist && mkdir -p /sandbox-home/.local/bin && go build -o /sandbox-home/.local/bin/skillshare ./cmd/skillshare && ln -sf /sandbox-home/.local/bin/skillshare /sandbox-home/.local/bin/ss && touch /sandbox-home/.bashrc && { grep -qxF \"alias ss='skillshare'\" /sandbox-home/.bashrc || echo \"alias ss='skillshare'\" >> /sandbox-home/.bashrc; }" echo "Playground is running." echo "Enter it with: ./scripts/sandbox_playground_shell.sh" echo "Inside playground you can directly run: skillshare (and alias: ss)" +echo " skillshare ui --no-open # start web dashboard (port 19420)" diff --git a/tests/integration/ui_test.go b/tests/integration/ui_test.go new file mode 100644 index 000000000..79ca207f1 --- /dev/null +++ b/tests/integration/ui_test.go @@ -0,0 +1,33 @@ +package integration + +import ( + "path/filepath" + "testing" + + "skillshare/internal/testutil" +) + +func TestUI_NoConfig_ReturnsInitError(t *testing.T) { + sb := testutil.NewSandbox(t) + defer sb.Cleanup() + + result := sb.RunCLI("ui", "--no-open") + + result.AssertFailure(t) + result.AssertAnyOutputContains(t, "run 'skillshare init' first") +} + +func TestUI_SourceMissing_ReturnsInitError(t *testing.T) { + sb := testutil.NewSandbox(t) + defer sb.Cleanup() + + missingSource := filepath.Join(sb.Root, "missing-source") + sb.WriteConfig(`source: ` + missingSource + ` +targets: {} +`) + + result := sb.RunCLI("ui", "--no-open") + + result.AssertFailure(t) + result.AssertAnyOutputContains(t, "run 'skillshare init' first") +} diff --git a/ui/.gitignore b/ui/.gitignore new file mode 100644 index 000000000..a547bf36d --- /dev/null +++ b/ui/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/ui/README.md b/ui/README.md new file mode 100644 index 000000000..d2e77611f --- /dev/null +++ b/ui/README.md @@ -0,0 +1,73 @@ +# React + TypeScript + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh + +## React Compiler + +The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules: + +```js +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + + // Remove tseslint.configs.recommended and replace with this + tseslint.configs.recommendedTypeChecked, + // Alternatively, use this for stricter rules + tseslint.configs.strictTypeChecked, + // Optionally, add this for stylistic rules + tseslint.configs.stylisticTypeChecked, + + // Other configs... + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` + +You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules: + +```js +// eslint.config.js +import reactX from 'eslint-plugin-react-x' +import reactDom from 'eslint-plugin-react-dom' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + // Enable lint rules for React + reactX.configs['recommended-typescript'], + // Enable lint rules for React DOM + reactDom.configs.recommended, + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` diff --git a/ui/eslint.config.js b/ui/eslint.config.js new file mode 100644 index 000000000..5e6b472f5 --- /dev/null +++ b/ui/eslint.config.js @@ -0,0 +1,23 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + js.configs.recommended, + tseslint.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + }, +]) diff --git a/ui/index.html b/ui/index.html new file mode 100644 index 000000000..7493cebcb --- /dev/null +++ b/ui/index.html @@ -0,0 +1,20 @@ + + + + + + + + Skillshare Web Dashboard + + + + + +
+ + + diff --git a/ui/package.json b/ui/package.json new file mode 100644 index 000000000..1632f58dc --- /dev/null +++ b/ui/package.json @@ -0,0 +1,40 @@ +{ + "name": "ui", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc -b && vite build", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "@codemirror/lang-json": "^6.0.2", + "@codemirror/lang-yaml": "^6.1.2", + "@codemirror/view": "^6.39.12", + "@tailwindcss/vite": "^4.1.18", + "@uiw/react-codemirror": "^4.25.4", + "lucide-react": "^0.563.0", + "react": "^19.2.0", + "react-dom": "^19.2.0", + "react-markdown": "^10.1.0", + "react-router-dom": "^7.13.0", + "remark-gfm": "^4.0.1", + "tailwindcss": "^4.1.18" + }, + "devDependencies": { + "@eslint/js": "^9.39.1", + "@types/node": "^24.10.1", + "@types/react": "^19.2.5", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^5.1.1", + "eslint": "^9.39.1", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^16.5.0", + "typescript": "~5.9.3", + "typescript-eslint": "^8.46.4", + "vite": "^7.2.4" + } +} diff --git a/ui/pnpm-lock.yaml b/ui/pnpm-lock.yaml new file mode 100644 index 000000000..74450c414 --- /dev/null +++ b/ui/pnpm-lock.yaml @@ -0,0 +1,3546 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@codemirror/lang-json': + specifier: ^6.0.2 + version: 6.0.2 + '@codemirror/lang-yaml': + specifier: ^6.1.2 + version: 6.1.2 + '@codemirror/view': + specifier: ^6.39.12 + version: 6.39.12 + '@tailwindcss/vite': + specifier: ^4.1.18 + version: 4.1.18(vite@7.3.1(@types/node@24.10.11)(jiti@2.6.1)(lightningcss@1.30.2)) + '@uiw/react-codemirror': + specifier: ^4.25.4 + version: 4.25.4(@babel/runtime@7.28.6)(@codemirror/autocomplete@6.20.0)(@codemirror/language@6.12.1)(@codemirror/lint@6.9.3)(@codemirror/search@6.6.0)(@codemirror/state@6.5.4)(@codemirror/theme-one-dark@6.1.3)(@codemirror/view@6.39.12)(codemirror@6.0.2)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + lucide-react: + specifier: ^0.563.0 + version: 0.563.0(react@19.2.4) + react: + specifier: ^19.2.0 + version: 19.2.4 + react-dom: + specifier: ^19.2.0 + version: 19.2.4(react@19.2.4) + react-markdown: + specifier: ^10.1.0 + version: 10.1.0(@types/react@19.2.13)(react@19.2.4) + react-router-dom: + specifier: ^7.13.0 + version: 7.13.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + remark-gfm: + specifier: ^4.0.1 + version: 4.0.1 + tailwindcss: + specifier: ^4.1.18 + version: 4.1.18 + devDependencies: + '@eslint/js': + specifier: ^9.39.1 + version: 9.39.2 + '@types/node': + specifier: ^24.10.1 + version: 24.10.11 + '@types/react': + specifier: ^19.2.5 + version: 19.2.13 + '@types/react-dom': + specifier: ^19.2.3 + version: 19.2.3(@types/react@19.2.13) + '@vitejs/plugin-react': + specifier: ^5.1.1 + version: 5.1.3(vite@7.3.1(@types/node@24.10.11)(jiti@2.6.1)(lightningcss@1.30.2)) + eslint: + specifier: ^9.39.1 + version: 9.39.2(jiti@2.6.1) + eslint-plugin-react-hooks: + specifier: ^7.0.1 + version: 7.0.1(eslint@9.39.2(jiti@2.6.1)) + eslint-plugin-react-refresh: + specifier: ^0.4.24 + version: 0.4.26(eslint@9.39.2(jiti@2.6.1)) + globals: + specifier: ^16.5.0 + version: 16.5.0 + typescript: + specifier: ~5.9.3 + version: 5.9.3 + typescript-eslint: + specifier: ^8.46.4 + version: 8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3) + vite: + specifier: ^7.2.4 + version: 7.3.1(@types/node@24.10.11)(jiti@2.6.1)(lightningcss@1.30.2) + +packages: + + '@babel/code-frame@7.29.0': + resolution: {integrity: sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==} + engines: {node: '>=6.9.0'} + + '@babel/compat-data@7.29.0': + resolution: {integrity: sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==} + engines: {node: '>=6.9.0'} + + '@babel/core@7.29.0': + resolution: {integrity: sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==} + engines: {node: '>=6.9.0'} + + '@babel/generator@7.29.1': + resolution: {integrity: sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-compilation-targets@7.28.6': + resolution: {integrity: sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-globals@7.28.0': + resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-imports@7.28.6': + resolution: {integrity: sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==} + engines: {node: '>=6.9.0'} + + '@babel/helper-module-transforms@7.28.6': + resolution: {integrity: sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + + '@babel/helper-plugin-utils@7.28.6': + resolution: {integrity: sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==} + engines: {node: '>=6.9.0'} + + '@babel/helper-string-parser@7.27.1': + resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.28.5': + resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-option@7.27.1': + resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==} + engines: {node: '>=6.9.0'} + + '@babel/helpers@7.28.6': + resolution: {integrity: sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.29.0': + resolution: {integrity: sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/plugin-transform-react-jsx-self@7.27.1': + resolution: {integrity: sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/plugin-transform-react-jsx-source@7.27.1': + resolution: {integrity: sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + + '@babel/runtime@7.28.6': + resolution: {integrity: sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==} + engines: {node: '>=6.9.0'} + + '@babel/template@7.28.6': + resolution: {integrity: sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==} + engines: {node: '>=6.9.0'} + + '@babel/traverse@7.29.0': + resolution: {integrity: sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==} + engines: {node: '>=6.9.0'} + + '@babel/types@7.29.0': + resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==} + engines: {node: '>=6.9.0'} + + '@codemirror/autocomplete@6.20.0': + resolution: {integrity: sha512-bOwvTOIJcG5FVo5gUUupiwYh8MioPLQ4UcqbcRf7UQ98X90tCa9E1kZ3Z7tqwpZxYyOvh1YTYbmZE9RTfTp5hg==} + + '@codemirror/commands@6.10.2': + resolution: {integrity: sha512-vvX1fsih9HledO1c9zdotZYUZnE4xV0m6i3m25s5DIfXofuprk6cRcLUZvSk3CASUbwjQX21tOGbkY2BH8TpnQ==} + + '@codemirror/lang-json@6.0.2': + resolution: {integrity: sha512-x2OtO+AvwEHrEwR0FyyPtfDUiloG3rnVTSZV1W8UteaLL8/MajQd8DpvUb2YVzC+/T18aSDv0H9mu+xw0EStoQ==} + + '@codemirror/lang-yaml@6.1.2': + resolution: {integrity: sha512-dxrfG8w5Ce/QbT7YID7mWZFKhdhsaTNOYjOkSIMt1qmC4VQnXSDSYVHHHn8k6kJUfIhtLo8t1JJgltlxWdsITw==} + + '@codemirror/language@6.12.1': + resolution: {integrity: sha512-Fa6xkSiuGKc8XC8Cn96T+TQHYj4ZZ7RdFmXA3i9xe/3hLHfwPZdM+dqfX0Cp0zQklBKhVD8Yzc8LS45rkqcwpQ==} + + '@codemirror/lint@6.9.3': + resolution: {integrity: sha512-y3YkYhdnhjDBAe0VIA0c4wVoFOvnp8CnAvfLqi0TqotIv92wIlAAP7HELOpLBsKwjAX6W92rSflA6an/2zBvXw==} + + '@codemirror/search@6.6.0': + resolution: {integrity: sha512-koFuNXcDvyyotWcgOnZGmY7LZqEOXZaaxD/j6n18TCLx2/9HieZJ5H6hs1g8FiRxBD0DNfs0nXn17g872RmYdw==} + + '@codemirror/state@6.5.4': + resolution: {integrity: sha512-8y7xqG/hpB53l25CIoit9/ngxdfoG+fx+V3SHBrinnhOtLvKHRyAJJuHzkWrR4YXXLX8eXBsejgAAxHUOdW1yw==} + + '@codemirror/theme-one-dark@6.1.3': + resolution: {integrity: sha512-NzBdIvEJmx6fjeremiGp3t/okrLPYT0d9orIc7AFun8oZcRk58aejkqhv6spnz4MLAevrKNPMQYXEWMg4s+sKA==} + + '@codemirror/view@6.39.12': + resolution: {integrity: sha512-f+/VsHVn/kOA9lltk/GFzuYwVVAKmOnNjxbrhkk3tPHntFqjWeI2TbIXx006YkBkqC10wZ4NsnWXCQiFPeAISQ==} + + '@esbuild/aix-ppc64@0.27.3': + resolution: {integrity: sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.27.3': + resolution: {integrity: sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.27.3': + resolution: {integrity: sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.27.3': + resolution: {integrity: sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.27.3': + resolution: {integrity: sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.27.3': + resolution: {integrity: sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.27.3': + resolution: {integrity: sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.27.3': + resolution: {integrity: sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.27.3': + resolution: {integrity: sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.27.3': + resolution: {integrity: sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.27.3': + resolution: {integrity: sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.27.3': + resolution: {integrity: sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.27.3': + resolution: {integrity: sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.27.3': + resolution: {integrity: sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.27.3': + resolution: {integrity: sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.27.3': + resolution: {integrity: sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.27.3': + resolution: {integrity: sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.27.3': + resolution: {integrity: sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.27.3': + resolution: {integrity: sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.27.3': + resolution: {integrity: sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.27.3': + resolution: {integrity: sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.27.3': + resolution: {integrity: sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/sunos-x64@0.27.3': + resolution: {integrity: sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.27.3': + resolution: {integrity: sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.27.3': + resolution: {integrity: sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.27.3': + resolution: {integrity: sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@eslint-community/eslint-utils@4.9.1': + resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + + '@eslint-community/regexpp@4.12.2': + resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + + '@eslint/config-array@0.21.1': + resolution: {integrity: sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/config-helpers@0.4.2': + resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/core@0.17.0': + resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/eslintrc@3.3.3': + resolution: {integrity: sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/js@9.39.2': + resolution: {integrity: sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/object-schema@2.1.7': + resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@eslint/plugin-kit@0.4.1': + resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@humanfs/core@0.19.1': + resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==} + engines: {node: '>=18.18.0'} + + '@humanfs/node@0.16.7': + resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==} + engines: {node: '>=18.18.0'} + + '@humanwhocodes/module-importer@1.0.1': + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} + engines: {node: '>=12.22'} + + '@humanwhocodes/retry@0.4.3': + resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} + engines: {node: '>=18.18'} + + '@jridgewell/gen-mapping@0.3.13': + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.5': + resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + + '@lezer/common@1.5.1': + resolution: {integrity: sha512-6YRVG9vBkaY7p1IVxL4s44n5nUnaNnGM2/AckNgYOnxTG2kWh1vR8BMxPseWPjRNpb5VtXnMpeYAEAADoRV1Iw==} + + '@lezer/highlight@1.2.3': + resolution: {integrity: sha512-qXdH7UqTvGfdVBINrgKhDsVTJTxactNNxLk7+UMwZhU13lMHaOBlJe9Vqp907ya56Y3+ed2tlqzys7jDkTmW0g==} + + '@lezer/json@1.0.3': + resolution: {integrity: sha512-BP9KzdF9Y35PDpv04r0VeSTKDeox5vVr3efE7eBbx3r4s3oNLfunchejZhjArmeieBH+nVOpgIiBJpEAv8ilqQ==} + + '@lezer/lr@1.4.8': + resolution: {integrity: sha512-bPWa0Pgx69ylNlMlPvBPryqeLYQjyJjqPx+Aupm5zydLIF3NE+6MMLT8Yi23Bd9cif9VS00aUebn+6fDIGBcDA==} + + '@lezer/yaml@1.0.4': + resolution: {integrity: sha512-2lrrHqxalACEbxIbsjhqGpSW8kWpUKuY6RHgnSAFZa6qK62wvnPxA8hGOwOoDbwHcOFs5M4o27mjGu+P7TvBmw==} + + '@marijn/find-cluster-break@1.0.2': + resolution: {integrity: sha512-l0h88YhZFyKdXIFNfSWpyjStDjGHwZ/U7iobcK1cQQD8sejsONdQtTVU+1wVN1PBw40PiiHB1vA5S7VTfQiP9g==} + + '@rolldown/pluginutils@1.0.0-rc.2': + resolution: {integrity: sha512-izyXV/v+cHiRfozX62W9htOAvwMo4/bXKDrQ+vom1L1qRuexPock/7VZDAhnpHCLNejd3NJ6hiab+tO0D44Rgw==} + + '@rollup/rollup-android-arm-eabi@4.57.1': + resolution: {integrity: sha512-A6ehUVSiSaaliTxai040ZpZ2zTevHYbvu/lDoeAteHI8QnaosIzm4qwtezfRg1jOYaUmnzLX1AOD6Z+UJjtifg==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.57.1': + resolution: {integrity: sha512-dQaAddCY9YgkFHZcFNS/606Exo8vcLHwArFZ7vxXq4rigo2bb494/xKMMwRRQW6ug7Js6yXmBZhSBRuBvCCQ3w==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.57.1': + resolution: {integrity: sha512-crNPrwJOrRxagUYeMn/DZwqN88SDmwaJ8Cvi/TN1HnWBU7GwknckyosC2gd0IqYRsHDEnXf328o9/HC6OkPgOg==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.57.1': + resolution: {integrity: sha512-Ji8g8ChVbKrhFtig5QBV7iMaJrGtpHelkB3lsaKzadFBe58gmjfGXAOfI5FV0lYMH8wiqsxKQ1C9B0YTRXVy4w==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.57.1': + resolution: {integrity: sha512-R+/WwhsjmwodAcz65guCGFRkMb4gKWTcIeLy60JJQbXrJ97BOXHxnkPFrP+YwFlaS0m+uWJTstrUA9o+UchFug==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.57.1': + resolution: {integrity: sha512-IEQTCHeiTOnAUC3IDQdzRAGj3jOAYNr9kBguI7MQAAZK3caezRrg0GxAb6Hchg4lxdZEI5Oq3iov/w/hnFWY9Q==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.57.1': + resolution: {integrity: sha512-F8sWbhZ7tyuEfsmOxwc2giKDQzN3+kuBLPwwZGyVkLlKGdV1nvnNwYD0fKQ8+XS6hp9nY7B+ZeK01EBUE7aHaw==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.57.1': + resolution: {integrity: sha512-rGfNUfn0GIeXtBP1wL5MnzSj98+PZe/AXaGBCRmT0ts80lU5CATYGxXukeTX39XBKsxzFpEeK+Mrp9faXOlmrw==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm64-gnu@4.57.1': + resolution: {integrity: sha512-MMtej3YHWeg/0klK2Qodf3yrNzz6CGjo2UntLvk2RSPlhzgLvYEB3frRvbEF2wRKh1Z2fDIg9KRPe1fawv7C+g==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-arm64-musl@4.57.1': + resolution: {integrity: sha512-1a/qhaaOXhqXGpMFMET9VqwZakkljWHLmZOX48R0I/YLbhdxr1m4gtG1Hq7++VhVUmf+L3sTAf9op4JlhQ5u1Q==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-loong64-gnu@4.57.1': + resolution: {integrity: sha512-QWO6RQTZ/cqYtJMtxhkRkidoNGXc7ERPbZN7dVW5SdURuLeVU7lwKMpo18XdcmpWYd0qsP1bwKPf7DNSUinhvA==} + cpu: [loong64] + os: [linux] + + '@rollup/rollup-linux-loong64-musl@4.57.1': + resolution: {integrity: sha512-xpObYIf+8gprgWaPP32xiN5RVTi/s5FCR+XMXSKmhfoJjrpRAjCuuqQXyxUa/eJTdAE6eJ+KDKaoEqjZQxh3Gw==} + cpu: [loong64] + os: [linux] + + '@rollup/rollup-linux-ppc64-gnu@4.57.1': + resolution: {integrity: sha512-4BrCgrpZo4hvzMDKRqEaW1zeecScDCR+2nZ86ATLhAoJ5FQ+lbHVD3ttKe74/c7tNT9c6F2viwB3ufwp01Oh2w==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-ppc64-musl@4.57.1': + resolution: {integrity: sha512-NOlUuzesGauESAyEYFSe3QTUguL+lvrN1HtwEEsU2rOwdUDeTMJdO5dUYl/2hKf9jWydJrO9OL/XSSf65R5+Xw==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.57.1': + resolution: {integrity: sha512-ptA88htVp0AwUUqhVghwDIKlvJMD/fmL/wrQj99PRHFRAG6Z5nbWoWG4o81Nt9FT+IuqUQi+L31ZKAFeJ5Is+A==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-riscv64-musl@4.57.1': + resolution: {integrity: sha512-S51t7aMMTNdmAMPpBg7OOsTdn4tySRQvklmL3RpDRyknk87+Sp3xaumlatU+ppQ+5raY7sSTcC2beGgvhENfuw==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-s390x-gnu@4.57.1': + resolution: {integrity: sha512-Bl00OFnVFkL82FHbEqy3k5CUCKH6OEJL54KCyx2oqsmZnFTR8IoNqBF+mjQVcRCT5sB6yOvK8A37LNm/kPJiZg==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.57.1': + resolution: {integrity: sha512-ABca4ceT4N+Tv/GtotnWAeXZUZuM/9AQyCyKYyKnpk4yoA7QIAuBt6Hkgpw8kActYlew2mvckXkvx0FfoInnLg==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-linux-x64-musl@4.57.1': + resolution: {integrity: sha512-HFps0JeGtuOR2convgRRkHCekD7j+gdAuXM+/i6kGzQtFhlCtQkpwtNzkNj6QhCDp7DRJ7+qC/1Vg2jt5iSOFw==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-openbsd-x64@4.57.1': + resolution: {integrity: sha512-H+hXEv9gdVQuDTgnqD+SQffoWoc0Of59AStSzTEj/feWTBAnSfSD3+Dql1ZruJQxmykT/JVY0dE8Ka7z0DH1hw==} + cpu: [x64] + os: [openbsd] + + '@rollup/rollup-openharmony-arm64@4.57.1': + resolution: {integrity: sha512-4wYoDpNg6o/oPximyc/NG+mYUejZrCU2q+2w6YZqrAs2UcNUChIZXjtafAiiZSUc7On8v5NyNj34Kzj/Ltk6dQ==} + cpu: [arm64] + os: [openharmony] + + '@rollup/rollup-win32-arm64-msvc@4.57.1': + resolution: {integrity: sha512-O54mtsV/6LW3P8qdTcamQmuC990HDfR71lo44oZMZlXU4tzLrbvTii87Ni9opq60ds0YzuAlEr/GNwuNluZyMQ==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.57.1': + resolution: {integrity: sha512-P3dLS+IerxCT/7D2q2FYcRdWRl22dNbrbBEtxdWhXrfIMPP9lQhb5h4Du04mdl5Woq05jVCDPCMF7Ub0NAjIew==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-gnu@4.57.1': + resolution: {integrity: sha512-VMBH2eOOaKGtIJYleXsi2B8CPVADrh+TyNxJ4mWPnKfLB/DBUmzW+5m1xUrcwWoMfSLagIRpjUFeW5CO5hyciQ==} + cpu: [x64] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.57.1': + resolution: {integrity: sha512-mxRFDdHIWRxg3UfIIAwCm6NzvxG0jDX/wBN6KsQFTvKFqqg9vTrWUE68qEjHt19A5wwx5X5aUi2zuZT7YR0jrA==} + cpu: [x64] + os: [win32] + + '@tailwindcss/node@4.1.18': + resolution: {integrity: sha512-DoR7U1P7iYhw16qJ49fgXUlry1t4CpXeErJHnQ44JgTSKMaZUdf17cfn5mHchfJ4KRBZRFA/Coo+MUF5+gOaCQ==} + + '@tailwindcss/oxide-android-arm64@4.1.18': + resolution: {integrity: sha512-dJHz7+Ugr9U/diKJA0W6N/6/cjI+ZTAoxPf9Iz9BFRF2GzEX8IvXxFIi/dZBloVJX/MZGvRuFA9rqwdiIEZQ0Q==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [android] + + '@tailwindcss/oxide-darwin-arm64@4.1.18': + resolution: {integrity: sha512-Gc2q4Qhs660bhjyBSKgq6BYvwDz4G+BuyJ5H1xfhmDR3D8HnHCmT/BSkvSL0vQLy/nkMLY20PQ2OoYMO15Jd0A==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + + '@tailwindcss/oxide-darwin-x64@4.1.18': + resolution: {integrity: sha512-FL5oxr2xQsFrc3X9o1fjHKBYBMD1QZNyc1Xzw/h5Qu4XnEBi3dZn96HcHm41c/euGV+GRiXFfh2hUCyKi/e+yw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + + '@tailwindcss/oxide-freebsd-x64@4.1.18': + resolution: {integrity: sha512-Fj+RHgu5bDodmV1dM9yAxlfJwkkWvLiRjbhuO2LEtwtlYlBgiAT4x/j5wQr1tC3SANAgD+0YcmWVrj8R9trVMA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [freebsd] + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.1.18': + resolution: {integrity: sha512-Fp+Wzk/Ws4dZn+LV2Nqx3IilnhH51YZoRaYHQsVq3RQvEl+71VGKFpkfHrLM/Li+kt5c0DJe/bHXK1eHgDmdiA==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + + '@tailwindcss/oxide-linux-arm64-gnu@4.1.18': + resolution: {integrity: sha512-S0n3jboLysNbh55Vrt7pk9wgpyTTPD0fdQeh7wQfMqLPM/Hrxi+dVsLsPrycQjGKEQk85Kgbx+6+QnYNiHalnw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + + '@tailwindcss/oxide-linux-arm64-musl@4.1.18': + resolution: {integrity: sha512-1px92582HkPQlaaCkdRcio71p8bc8i/ap5807tPRDK/uw953cauQBT8c5tVGkOwrHMfc2Yh6UuxaH4vtTjGvHg==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + + '@tailwindcss/oxide-linux-x64-gnu@4.1.18': + resolution: {integrity: sha512-v3gyT0ivkfBLoZGF9LyHmts0Isc8jHZyVcbzio6Wpzifg/+5ZJpDiRiUhDLkcr7f/r38SWNe7ucxmGW3j3Kb/g==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + + '@tailwindcss/oxide-linux-x64-musl@4.1.18': + resolution: {integrity: sha512-bhJ2y2OQNlcRwwgOAGMY0xTFStt4/wyU6pvI6LSuZpRgKQwxTec0/3Scu91O8ir7qCR3AuepQKLU/kX99FouqQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + + '@tailwindcss/oxide-wasm32-wasi@4.1.18': + resolution: {integrity: sha512-LffYTvPjODiP6PT16oNeUQJzNVyJl1cjIebq/rWWBF+3eDst5JGEFSc5cWxyRCJ0Mxl+KyIkqRxk1XPEs9x8TA==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + bundledDependencies: + - '@napi-rs/wasm-runtime' + - '@emnapi/core' + - '@emnapi/runtime' + - '@tybys/wasm-util' + - '@emnapi/wasi-threads' + - tslib + + '@tailwindcss/oxide-win32-arm64-msvc@4.1.18': + resolution: {integrity: sha512-HjSA7mr9HmC8fu6bdsZvZ+dhjyGCLdotjVOgLA2vEqxEBZaQo9YTX4kwgEvPCpRh8o4uWc4J/wEoFzhEmjvPbA==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + + '@tailwindcss/oxide-win32-x64-msvc@4.1.18': + resolution: {integrity: sha512-bJWbyYpUlqamC8dpR7pfjA0I7vdF6t5VpUGMWRkXVE3AXgIZjYUYAK7II1GNaxR8J1SSrSrppRar8G++JekE3Q==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + + '@tailwindcss/oxide@4.1.18': + resolution: {integrity: sha512-EgCR5tTS5bUSKQgzeMClT6iCY3ToqE1y+ZB0AKldj809QXk1Y+3jB0upOYZrn9aGIzPtUsP7sX4QQ4XtjBB95A==} + engines: {node: '>= 10'} + + '@tailwindcss/vite@4.1.18': + resolution: {integrity: sha512-jVA+/UpKL1vRLg6Hkao5jldawNmRo7mQYrZtNHMIVpLfLhDml5nMRUo/8MwoX2vNXvnaXNNMedrMfMugAVX1nA==} + peerDependencies: + vite: ^5.2.0 || ^6 || ^7 + + '@types/babel__core@7.20.5': + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} + + '@types/babel__generator@7.27.0': + resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==} + + '@types/babel__template@7.4.4': + resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} + + '@types/babel__traverse@7.28.0': + resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==} + + '@types/debug@4.1.12': + resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} + + '@types/estree-jsx@1.0.5': + resolution: {integrity: sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==} + + '@types/estree@1.0.8': + resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} + + '@types/hast@3.0.4': + resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==} + + '@types/json-schema@7.0.15': + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + + '@types/mdast@4.0.4': + resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} + + '@types/ms@2.1.0': + resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} + + '@types/node@24.10.11': + resolution: {integrity: sha512-/Af7O8r1frCVgOz0I62jWUtMohJ0/ZQU/ZoketltOJPZpnb17yoNc9BSoVuV9qlaIXJiPNOpsfq4ByFajSArNQ==} + + '@types/react-dom@19.2.3': + resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==} + peerDependencies: + '@types/react': ^19.2.0 + + '@types/react@19.2.13': + resolution: {integrity: sha512-KkiJeU6VbYbUOp5ITMIc7kBfqlYkKA5KhEHVrGMmUUMt7NeaZg65ojdPk+FtNrBAOXNVM5QM72jnADjM+XVRAQ==} + + '@types/unist@2.0.11': + resolution: {integrity: sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==} + + '@types/unist@3.0.3': + resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} + + '@typescript-eslint/eslint-plugin@8.54.0': + resolution: {integrity: sha512-hAAP5io/7csFStuOmR782YmTthKBJ9ND3WVL60hcOjvtGFb+HJxH4O5huAcmcZ9v9G8P+JETiZ/G1B8MALnWZQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + '@typescript-eslint/parser': ^8.54.0 + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/parser@8.54.0': + resolution: {integrity: sha512-BtE0k6cjwjLZoZixN0t5AKP0kSzlGu7FctRXYuPAm//aaiZhmfq1JwdYpYr1brzEspYyFeF+8XF5j2VK6oalrA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/project-service@8.54.0': + resolution: {integrity: sha512-YPf+rvJ1s7MyiWM4uTRhE4DvBXrEV+d8oC3P9Y2eT7S+HBS0clybdMIPnhiATi9vZOYDc7OQ1L/i6ga6NFYK/g==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/scope-manager@8.54.0': + resolution: {integrity: sha512-27rYVQku26j/PbHYcVfRPonmOlVI6gihHtXFbTdB5sb6qA0wdAQAbyXFVarQ5t4HRojIz64IV90YtsjQSSGlQg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@typescript-eslint/tsconfig-utils@8.54.0': + resolution: {integrity: sha512-dRgOyT2hPk/JwxNMZDsIXDgyl9axdJI3ogZ2XWhBPsnZUv+hPesa5iuhdYt2gzwA9t8RE5ytOJ6xB0moV0Ujvw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/type-utils@8.54.0': + resolution: {integrity: sha512-hiLguxJWHjjwL6xMBwD903ciAwd7DmK30Y9Axs/etOkftC3ZNN9K44IuRD/EB08amu+Zw6W37x9RecLkOo3pMA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/types@8.54.0': + resolution: {integrity: sha512-PDUI9R1BVjqu7AUDsRBbKMtwmjWcn4J3le+5LpcFgWULN3LvHC5rkc9gCVxbrsrGmO1jfPybN5s6h4Jy+OnkAA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@typescript-eslint/typescript-estree@8.54.0': + resolution: {integrity: sha512-BUwcskRaPvTk6fzVWgDPdUndLjB87KYDrN5EYGetnktoeAvPtO4ONHlAZDnj5VFnUANg0Sjm7j4usBlnoVMHwA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/utils@8.54.0': + resolution: {integrity: sha512-9Cnda8GS57AQakvRyG0PTejJNlA2xhvyNtEVIMlDWOOeEyBkYWhGPnfrIAnqxLMTSTo6q8g12XVjjev5l1NvMA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + + '@typescript-eslint/visitor-keys@8.54.0': + resolution: {integrity: sha512-VFlhGSl4opC0bprJiItPQ1RfUhGDIBokcPwaFH4yiBCaNPeld/9VeXbiPO1cLyorQi1G1vL+ecBk1x8o1axORA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@uiw/codemirror-extensions-basic-setup@4.25.4': + resolution: {integrity: sha512-YzNwkm0AbPv1EXhCHYR5v0nqfemG2jEB0Z3Att4rBYqKrlG7AA9Rhjc3IyBaOzsBu18wtrp9/+uhTyu7TXSRng==} + peerDependencies: + '@codemirror/autocomplete': '>=6.0.0' + '@codemirror/commands': '>=6.0.0' + '@codemirror/language': '>=6.0.0' + '@codemirror/lint': '>=6.0.0' + '@codemirror/search': '>=6.0.0' + '@codemirror/state': '>=6.0.0' + '@codemirror/view': '>=6.0.0' + + '@uiw/react-codemirror@4.25.4': + resolution: {integrity: sha512-ipO067oyfUw+DVaXhQCxkB0ZD9b7RnY+ByrprSYSKCHaULvJ3sqWYC/Zen6zVQ8/XC4o5EPBfatGiX20kC7XGA==} + peerDependencies: + '@babel/runtime': '>=7.11.0' + '@codemirror/state': '>=6.0.0' + '@codemirror/theme-one-dark': '>=6.0.0' + '@codemirror/view': '>=6.0.0' + codemirror: '>=6.0.0' + react: '>=17.0.0' + react-dom: '>=17.0.0' + + '@ungap/structured-clone@1.3.0': + resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==} + + '@vitejs/plugin-react@5.1.3': + resolution: {integrity: sha512-NVUnA6gQCl8jfoYqKqQU5Clv0aPw14KkZYCsX6T9Lfu9slI0LOU10OTwFHS/WmptsMMpshNd/1tuWsHQ2Uk+cg==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 + + acorn-jsx@5.3.2: + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + + acorn@8.15.0: + resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==} + engines: {node: '>=0.4.0'} + hasBin: true + + ajv@6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + + bail@2.0.2: + resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + baseline-browser-mapping@2.9.19: + resolution: {integrity: sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==} + hasBin: true + + brace-expansion@1.1.12: + resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==} + + brace-expansion@2.0.2: + resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==} + + browserslist@4.28.1: + resolution: {integrity: sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + + callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} + engines: {node: '>=6'} + + caniuse-lite@1.0.30001769: + resolution: {integrity: sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==} + + ccount@2.0.1: + resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} + + chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} + engines: {node: '>=10'} + + character-entities-html4@2.1.0: + resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==} + + character-entities-legacy@3.0.0: + resolution: {integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==} + + character-entities@2.0.2: + resolution: {integrity: sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==} + + character-reference-invalid@2.0.1: + resolution: {integrity: sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==} + + codemirror@6.0.2: + resolution: {integrity: sha512-VhydHotNW5w1UGK0Qj96BwSk/Zqbp9WbnyK2W/eVMv4QyF41INRGpjUhFJY7/uDNuudSc33a/PKr4iDqRduvHw==} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + comma-separated-tokens@2.0.3: + resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==} + + concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + cookie@1.1.1: + resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==} + engines: {node: '>=18'} + + crelt@1.0.6: + resolution: {integrity: sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==} + + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + + csstype@3.2.3: + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + decode-named-character-reference@1.3.0: + resolution: {integrity: sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==} + + deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + + dequal@2.0.3: + resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} + engines: {node: '>=6'} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + devlop@1.1.0: + resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} + + electron-to-chromium@1.5.286: + resolution: {integrity: sha512-9tfDXhJ4RKFNerfjdCcZfufu49vg620741MNs26a9+bhLThdB+plgMeou98CAaHu/WATj2iHOOHTp1hWtABj2A==} + + enhanced-resolve@5.19.0: + resolution: {integrity: sha512-phv3E1Xl4tQOShqSte26C7Fl84EwUdZsyOuSSk9qtAGyyQs2s3jJzComh+Abf4g187lUUAvH+H26omrqia2aGg==} + engines: {node: '>=10.13.0'} + + esbuild@0.27.3: + resolution: {integrity: sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==} + engines: {node: '>=18'} + hasBin: true + + escalade@3.2.0: + resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} + engines: {node: '>=6'} + + escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + + escape-string-regexp@5.0.0: + resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} + engines: {node: '>=12'} + + eslint-plugin-react-hooks@7.0.1: + resolution: {integrity: sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==} + engines: {node: '>=18'} + peerDependencies: + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 + + eslint-plugin-react-refresh@0.4.26: + resolution: {integrity: sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ==} + peerDependencies: + eslint: '>=8.40' + + eslint-scope@8.4.0: + resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint-visitor-keys@4.2.1: + resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + eslint@9.39.2: + resolution: {integrity: sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + hasBin: true + peerDependencies: + jiti: '*' + peerDependenciesMeta: + jiti: + optional: true + + espree@10.4.0: + resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + esquery@1.7.0: + resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} + engines: {node: '>=0.10'} + + esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + + estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + + estree-util-is-identifier-name@3.0.0: + resolution: {integrity: sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + extend@3.0.2: + resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + + fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + file-entry-cache@8.0.0: + resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} + engines: {node: '>=16.0.0'} + + find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + + flat-cache@4.0.1: + resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} + engines: {node: '>=16'} + + flatted@3.3.3: + resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} + engines: {node: '>=6.9.0'} + + glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} + + globals@14.0.0: + resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} + engines: {node: '>=18'} + + globals@16.5.0: + resolution: {integrity: sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==} + engines: {node: '>=18'} + + graceful-fs@4.2.11: + resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + hast-util-to-jsx-runtime@2.3.6: + resolution: {integrity: sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==} + + hast-util-whitespace@3.0.0: + resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==} + + hermes-estree@0.25.1: + resolution: {integrity: sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==} + + hermes-parser@0.25.1: + resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==} + + html-url-attributes@3.0.1: + resolution: {integrity: sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==} + + ignore@5.3.2: + resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} + engines: {node: '>= 4'} + + ignore@7.0.5: + resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==} + engines: {node: '>= 4'} + + import-fresh@3.3.1: + resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==} + engines: {node: '>=6'} + + imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} + engines: {node: '>=0.8.19'} + + inline-style-parser@0.2.7: + resolution: {integrity: sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==} + + is-alphabetical@2.0.1: + resolution: {integrity: sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==} + + is-alphanumerical@2.0.1: + resolution: {integrity: sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==} + + is-decimal@2.0.1: + resolution: {integrity: sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==} + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-hexadecimal@2.0.1: + resolution: {integrity: sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==} + + is-plain-obj@4.1.0: + resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==} + engines: {node: '>=12'} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + jiti@2.6.1: + resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==} + hasBin: true + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + js-yaml@4.1.1: + resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==} + hasBin: true + + jsesc@3.1.0: + resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} + engines: {node: '>=6'} + hasBin: true + + json-buffer@3.0.1: + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} + + json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + + json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + + json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} + hasBin: true + + keyv@4.5.4: + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} + + levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + + lightningcss-android-arm64@1.30.2: + resolution: {integrity: sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.30.2: + resolution: {integrity: sha512-ylTcDJBN3Hp21TdhRT5zBOIi73P6/W0qwvlFEk22fkdXchtNTOU4Qc37SkzV+EKYxLouZ6M4LG9NfZ1qkhhBWA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.30.2: + resolution: {integrity: sha512-oBZgKchomuDYxr7ilwLcyms6BCyLn0z8J0+ZZmfpjwg9fRVZIR5/GMXd7r9RH94iDhld3UmSjBM6nXWM2TfZTQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.30.2: + resolution: {integrity: sha512-c2bH6xTrf4BDpK8MoGG4Bd6zAMZDAXS569UxCAGcA7IKbHNMlhGQ89eRmvpIUGfKWNVdbhSbkQaWhEoMGmGslA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.30.2: + resolution: {integrity: sha512-eVdpxh4wYcm0PofJIZVuYuLiqBIakQ9uFZmipf6LF/HRj5Bgm0eb3qL/mr1smyXIS1twwOxNWndd8z0E374hiA==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.30.2: + resolution: {integrity: sha512-UK65WJAbwIJbiBFXpxrbTNArtfuznvxAJw4Q2ZGlU8kPeDIWEX1dg3rn2veBVUylA2Ezg89ktszWbaQnxD/e3A==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + + lightningcss-linux-arm64-musl@1.30.2: + resolution: {integrity: sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + + lightningcss-linux-x64-gnu@1.30.2: + resolution: {integrity: sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + + lightningcss-linux-x64-musl@1.30.2: + resolution: {integrity: sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + + lightningcss-win32-arm64-msvc@1.30.2: + resolution: {integrity: sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.30.2: + resolution: {integrity: sha512-5g1yc73p+iAkid5phb4oVFMB45417DkRevRbt/El/gKXJk4jid+vPFF/AXbxn05Aky8PapwzZrdJShv5C0avjw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.30.2: + resolution: {integrity: sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ==} + engines: {node: '>= 12.0.0'} + + locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + + lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} + + longest-streak@3.1.0: + resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} + + lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + + lucide-react@0.563.0: + resolution: {integrity: sha512-8dXPB2GI4dI8jV4MgUDGBeLdGk8ekfqVZ0BdLcrRzocGgG75ltNEmWS+gE7uokKF/0oSUuczNDT+g9hFJ23FkA==} + peerDependencies: + react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 + + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + + markdown-table@3.0.4: + resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==} + + mdast-util-find-and-replace@3.0.2: + resolution: {integrity: sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==} + + mdast-util-from-markdown@2.0.2: + resolution: {integrity: sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA==} + + mdast-util-gfm-autolink-literal@2.0.1: + resolution: {integrity: sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==} + + mdast-util-gfm-footnote@2.1.0: + resolution: {integrity: sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==} + + mdast-util-gfm-strikethrough@2.0.0: + resolution: {integrity: sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==} + + mdast-util-gfm-table@2.0.0: + resolution: {integrity: sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==} + + mdast-util-gfm-task-list-item@2.0.0: + resolution: {integrity: sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==} + + mdast-util-gfm@3.1.0: + resolution: {integrity: sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==} + + mdast-util-mdx-expression@2.0.1: + resolution: {integrity: sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==} + + mdast-util-mdx-jsx@3.2.0: + resolution: {integrity: sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==} + + mdast-util-mdxjs-esm@2.0.1: + resolution: {integrity: sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==} + + mdast-util-phrasing@4.1.0: + resolution: {integrity: sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==} + + mdast-util-to-hast@13.2.1: + resolution: {integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==} + + mdast-util-to-markdown@2.1.2: + resolution: {integrity: sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==} + + mdast-util-to-string@4.0.0: + resolution: {integrity: sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==} + + micromark-core-commonmark@2.0.3: + resolution: {integrity: sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==} + + micromark-extension-gfm-autolink-literal@2.1.0: + resolution: {integrity: sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==} + + micromark-extension-gfm-footnote@2.1.0: + resolution: {integrity: sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==} + + micromark-extension-gfm-strikethrough@2.1.0: + resolution: {integrity: sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==} + + micromark-extension-gfm-table@2.1.1: + resolution: {integrity: sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==} + + micromark-extension-gfm-tagfilter@2.0.0: + resolution: {integrity: sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==} + + micromark-extension-gfm-task-list-item@2.1.0: + resolution: {integrity: sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==} + + micromark-extension-gfm@3.0.0: + resolution: {integrity: sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==} + + micromark-factory-destination@2.0.1: + resolution: {integrity: sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==} + + micromark-factory-label@2.0.1: + resolution: {integrity: sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==} + + micromark-factory-space@2.0.1: + resolution: {integrity: sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==} + + micromark-factory-title@2.0.1: + resolution: {integrity: sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==} + + micromark-factory-whitespace@2.0.1: + resolution: {integrity: sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==} + + micromark-util-character@2.1.1: + resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==} + + micromark-util-chunked@2.0.1: + resolution: {integrity: sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==} + + micromark-util-classify-character@2.0.1: + resolution: {integrity: sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==} + + micromark-util-combine-extensions@2.0.1: + resolution: {integrity: sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==} + + micromark-util-decode-numeric-character-reference@2.0.2: + resolution: {integrity: sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==} + + micromark-util-decode-string@2.0.1: + resolution: {integrity: sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==} + + micromark-util-encode@2.0.1: + resolution: {integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==} + + micromark-util-html-tag-name@2.0.1: + resolution: {integrity: sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==} + + micromark-util-normalize-identifier@2.0.1: + resolution: {integrity: sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==} + + micromark-util-resolve-all@2.0.1: + resolution: {integrity: sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==} + + micromark-util-sanitize-uri@2.0.1: + resolution: {integrity: sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==} + + micromark-util-subtokenize@2.1.0: + resolution: {integrity: sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==} + + micromark-util-symbol@2.0.1: + resolution: {integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==} + + micromark-util-types@2.0.2: + resolution: {integrity: sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==} + + micromark@4.0.2: + resolution: {integrity: sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==} + + minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + + minimatch@9.0.5: + resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} + engines: {node: '>=16 || 14 >=14.17'} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + nanoid@3.3.11: + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + + node-releases@2.0.27: + resolution: {integrity: sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==} + + optionator@0.9.4: + resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} + engines: {node: '>= 0.8.0'} + + p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + + p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + + parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} + engines: {node: '>=6'} + + parse-entities@4.0.2: + resolution: {integrity: sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==} + + path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.3: + resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==} + engines: {node: '>=12'} + + postcss@8.5.6: + resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} + engines: {node: ^10 || ^12 || >=14} + + prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + + property-information@7.1.0: + resolution: {integrity: sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==} + + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + + react-dom@19.2.4: + resolution: {integrity: sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==} + peerDependencies: + react: ^19.2.4 + + react-markdown@10.1.0: + resolution: {integrity: sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==} + peerDependencies: + '@types/react': '>=18' + react: '>=18' + + react-refresh@0.18.0: + resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==} + engines: {node: '>=0.10.0'} + + react-router-dom@7.13.0: + resolution: {integrity: sha512-5CO/l5Yahi2SKC6rGZ+HDEjpjkGaG/ncEP7eWFTvFxbHP8yeeI0PxTDjimtpXYlR3b3i9/WIL4VJttPrESIf2g==} + engines: {node: '>=20.0.0'} + peerDependencies: + react: '>=18' + react-dom: '>=18' + + react-router@7.13.0: + resolution: {integrity: sha512-PZgus8ETambRT17BUm/LL8lX3Of+oiLaPuVTRH3l1eLvSPpKO3AvhAEb5N7ihAFZQrYDqkvvWfFh9p0z9VsjLw==} + engines: {node: '>=20.0.0'} + peerDependencies: + react: '>=18' + react-dom: '>=18' + peerDependenciesMeta: + react-dom: + optional: true + + react@19.2.4: + resolution: {integrity: sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==} + engines: {node: '>=0.10.0'} + + remark-gfm@4.0.1: + resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==} + + remark-parse@11.0.0: + resolution: {integrity: sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==} + + remark-rehype@11.1.2: + resolution: {integrity: sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==} + + remark-stringify@11.0.0: + resolution: {integrity: sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==} + + resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} + engines: {node: '>=4'} + + rollup@4.57.1: + resolution: {integrity: sha512-oQL6lgK3e2QZeQ7gcgIkS2YZPg5slw37hYufJ3edKlfQSGGm8ICoxswK15ntSzF/a8+h7ekRy7k7oWc3BQ7y8A==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + scheduler@0.27.0: + resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==} + + semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} + hasBin: true + + semver@7.7.4: + resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==} + engines: {node: '>=10'} + hasBin: true + + set-cookie-parser@2.7.2: + resolution: {integrity: sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==} + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + space-separated-tokens@2.0.2: + resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} + + stringify-entities@4.0.4: + resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==} + + strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} + engines: {node: '>=8'} + + style-mod@4.1.3: + resolution: {integrity: sha512-i/n8VsZydrugj3Iuzll8+x/00GH2vnYsk1eomD8QiRrSAeW6ItbCQDtfXCeJHd0iwiNagqjQkvpvREEPtW3IoQ==} + + style-to-js@1.1.21: + resolution: {integrity: sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ==} + + style-to-object@1.0.14: + resolution: {integrity: sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==} + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + tailwindcss@4.1.18: + resolution: {integrity: sha512-4+Z+0yiYyEtUVCScyfHCxOYP06L5Ne+JiHhY2IjR2KWMIWhJOYZKLSGZaP5HkZ8+bY0cxfzwDE5uOmzFXyIwxw==} + + tapable@2.3.0: + resolution: {integrity: sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==} + engines: {node: '>=6'} + + tinyglobby@0.2.15: + resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} + engines: {node: '>=12.0.0'} + + trim-lines@3.0.1: + resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==} + + trough@2.2.0: + resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==} + + ts-api-utils@2.4.0: + resolution: {integrity: sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==} + engines: {node: '>=18.12'} + peerDependencies: + typescript: '>=4.8.4' + + type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + + typescript-eslint@8.54.0: + resolution: {integrity: sha512-CKsJ+g53QpsNPqbzUsfKVgd3Lny4yKZ1pP4qN3jdMOg/sisIDLGyDMezycquXLE5JsEU0wp3dGNdzig0/fmSVQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@7.16.0: + resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} + + unified@11.0.5: + resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==} + + unist-util-is@6.0.1: + resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==} + + unist-util-position@5.0.0: + resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==} + + unist-util-stringify-position@4.0.0: + resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==} + + unist-util-visit-parents@6.0.2: + resolution: {integrity: sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==} + + unist-util-visit@5.1.0: + resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==} + + update-browserslist-db@1.2.3: + resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + + uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + + vfile-message@4.0.3: + resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==} + + vfile@6.0.3: + resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} + + vite@7.3.1: + resolution: {integrity: sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + jiti: '>=1.21.0' + less: ^4.0.0 + lightningcss: ^1.21.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + w3c-keyname@2.2.8: + resolution: {integrity: sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==} + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + word-wrap@1.2.5: + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} + engines: {node: '>=0.10.0'} + + yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} + + yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + + zod-validation-error@4.0.2: + resolution: {integrity: sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==} + engines: {node: '>=18.0.0'} + peerDependencies: + zod: ^3.25.0 || ^4.0.0 + + zod@4.3.6: + resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==} + + zwitch@2.0.4: + resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} + +snapshots: + + '@babel/code-frame@7.29.0': + dependencies: + '@babel/helper-validator-identifier': 7.28.5 + js-tokens: 4.0.0 + picocolors: 1.1.1 + + '@babel/compat-data@7.29.0': {} + + '@babel/core@7.29.0': + dependencies: + '@babel/code-frame': 7.29.0 + '@babel/generator': 7.29.1 + '@babel/helper-compilation-targets': 7.28.6 + '@babel/helper-module-transforms': 7.28.6(@babel/core@7.29.0) + '@babel/helpers': 7.28.6 + '@babel/parser': 7.29.0 + '@babel/template': 7.28.6 + '@babel/traverse': 7.29.0 + '@babel/types': 7.29.0 + '@jridgewell/remapping': 2.3.5 + convert-source-map: 2.0.0 + debug: 4.4.3 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + + '@babel/generator@7.29.1': + dependencies: + '@babel/parser': 7.29.0 + '@babel/types': 7.29.0 + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + jsesc: 3.1.0 + + '@babel/helper-compilation-targets@7.28.6': + dependencies: + '@babel/compat-data': 7.29.0 + '@babel/helper-validator-option': 7.27.1 + browserslist: 4.28.1 + lru-cache: 5.1.1 + semver: 6.3.1 + + '@babel/helper-globals@7.28.0': {} + + '@babel/helper-module-imports@7.28.6': + dependencies: + '@babel/traverse': 7.29.0 + '@babel/types': 7.29.0 + transitivePeerDependencies: + - supports-color + + '@babel/helper-module-transforms@7.28.6(@babel/core@7.29.0)': + dependencies: + '@babel/core': 7.29.0 + '@babel/helper-module-imports': 7.28.6 + '@babel/helper-validator-identifier': 7.28.5 + '@babel/traverse': 7.29.0 + transitivePeerDependencies: + - supports-color + + '@babel/helper-plugin-utils@7.28.6': {} + + '@babel/helper-string-parser@7.27.1': {} + + '@babel/helper-validator-identifier@7.28.5': {} + + '@babel/helper-validator-option@7.27.1': {} + + '@babel/helpers@7.28.6': + dependencies: + '@babel/template': 7.28.6 + '@babel/types': 7.29.0 + + '@babel/parser@7.29.0': + dependencies: + '@babel/types': 7.29.0 + + '@babel/plugin-transform-react-jsx-self@7.27.1(@babel/core@7.29.0)': + dependencies: + '@babel/core': 7.29.0 + '@babel/helper-plugin-utils': 7.28.6 + + '@babel/plugin-transform-react-jsx-source@7.27.1(@babel/core@7.29.0)': + dependencies: + '@babel/core': 7.29.0 + '@babel/helper-plugin-utils': 7.28.6 + + '@babel/runtime@7.28.6': {} + + '@babel/template@7.28.6': + dependencies: + '@babel/code-frame': 7.29.0 + '@babel/parser': 7.29.0 + '@babel/types': 7.29.0 + + '@babel/traverse@7.29.0': + dependencies: + '@babel/code-frame': 7.29.0 + '@babel/generator': 7.29.1 + '@babel/helper-globals': 7.28.0 + '@babel/parser': 7.29.0 + '@babel/template': 7.28.6 + '@babel/types': 7.29.0 + debug: 4.4.3 + transitivePeerDependencies: + - supports-color + + '@babel/types@7.29.0': + dependencies: + '@babel/helper-string-parser': 7.27.1 + '@babel/helper-validator-identifier': 7.28.5 + + '@codemirror/autocomplete@6.20.0': + dependencies: + '@codemirror/language': 6.12.1 + '@codemirror/state': 6.5.4 + '@codemirror/view': 6.39.12 + '@lezer/common': 1.5.1 + + '@codemirror/commands@6.10.2': + dependencies: + '@codemirror/language': 6.12.1 + '@codemirror/state': 6.5.4 + '@codemirror/view': 6.39.12 + '@lezer/common': 1.5.1 + + '@codemirror/lang-json@6.0.2': + dependencies: + '@codemirror/language': 6.12.1 + '@lezer/json': 1.0.3 + + '@codemirror/lang-yaml@6.1.2': + dependencies: + '@codemirror/autocomplete': 6.20.0 + '@codemirror/language': 6.12.1 + '@codemirror/state': 6.5.4 + '@lezer/common': 1.5.1 + '@lezer/highlight': 1.2.3 + '@lezer/lr': 1.4.8 + '@lezer/yaml': 1.0.4 + + '@codemirror/language@6.12.1': + dependencies: + '@codemirror/state': 6.5.4 + '@codemirror/view': 6.39.12 + '@lezer/common': 1.5.1 + '@lezer/highlight': 1.2.3 + '@lezer/lr': 1.4.8 + style-mod: 4.1.3 + + '@codemirror/lint@6.9.3': + dependencies: + '@codemirror/state': 6.5.4 + '@codemirror/view': 6.39.12 + crelt: 1.0.6 + + '@codemirror/search@6.6.0': + dependencies: + '@codemirror/state': 6.5.4 + '@codemirror/view': 6.39.12 + crelt: 1.0.6 + + '@codemirror/state@6.5.4': + dependencies: + '@marijn/find-cluster-break': 1.0.2 + + '@codemirror/theme-one-dark@6.1.3': + dependencies: + '@codemirror/language': 6.12.1 + '@codemirror/state': 6.5.4 + '@codemirror/view': 6.39.12 + '@lezer/highlight': 1.2.3 + + '@codemirror/view@6.39.12': + dependencies: + '@codemirror/state': 6.5.4 + crelt: 1.0.6 + style-mod: 4.1.3 + w3c-keyname: 2.2.8 + + '@esbuild/aix-ppc64@0.27.3': + optional: true + + '@esbuild/android-arm64@0.27.3': + optional: true + + '@esbuild/android-arm@0.27.3': + optional: true + + '@esbuild/android-x64@0.27.3': + optional: true + + '@esbuild/darwin-arm64@0.27.3': + optional: true + + '@esbuild/darwin-x64@0.27.3': + optional: true + + '@esbuild/freebsd-arm64@0.27.3': + optional: true + + '@esbuild/freebsd-x64@0.27.3': + optional: true + + '@esbuild/linux-arm64@0.27.3': + optional: true + + '@esbuild/linux-arm@0.27.3': + optional: true + + '@esbuild/linux-ia32@0.27.3': + optional: true + + '@esbuild/linux-loong64@0.27.3': + optional: true + + '@esbuild/linux-mips64el@0.27.3': + optional: true + + '@esbuild/linux-ppc64@0.27.3': + optional: true + + '@esbuild/linux-riscv64@0.27.3': + optional: true + + '@esbuild/linux-s390x@0.27.3': + optional: true + + '@esbuild/linux-x64@0.27.3': + optional: true + + '@esbuild/netbsd-arm64@0.27.3': + optional: true + + '@esbuild/netbsd-x64@0.27.3': + optional: true + + '@esbuild/openbsd-arm64@0.27.3': + optional: true + + '@esbuild/openbsd-x64@0.27.3': + optional: true + + '@esbuild/openharmony-arm64@0.27.3': + optional: true + + '@esbuild/sunos-x64@0.27.3': + optional: true + + '@esbuild/win32-arm64@0.27.3': + optional: true + + '@esbuild/win32-ia32@0.27.3': + optional: true + + '@esbuild/win32-x64@0.27.3': + optional: true + + '@eslint-community/eslint-utils@4.9.1(eslint@9.39.2(jiti@2.6.1))': + dependencies: + eslint: 9.39.2(jiti@2.6.1) + eslint-visitor-keys: 3.4.3 + + '@eslint-community/regexpp@4.12.2': {} + + '@eslint/config-array@0.21.1': + dependencies: + '@eslint/object-schema': 2.1.7 + debug: 4.4.3 + minimatch: 3.1.2 + transitivePeerDependencies: + - supports-color + + '@eslint/config-helpers@0.4.2': + dependencies: + '@eslint/core': 0.17.0 + + '@eslint/core@0.17.0': + dependencies: + '@types/json-schema': 7.0.15 + + '@eslint/eslintrc@3.3.3': + dependencies: + ajv: 6.12.6 + debug: 4.4.3 + espree: 10.4.0 + globals: 14.0.0 + ignore: 5.3.2 + import-fresh: 3.3.1 + js-yaml: 4.1.1 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color + + '@eslint/js@9.39.2': {} + + '@eslint/object-schema@2.1.7': {} + + '@eslint/plugin-kit@0.4.1': + dependencies: + '@eslint/core': 0.17.0 + levn: 0.4.1 + + '@humanfs/core@0.19.1': {} + + '@humanfs/node@0.16.7': + dependencies: + '@humanfs/core': 0.19.1 + '@humanwhocodes/retry': 0.4.3 + + '@humanwhocodes/module-importer@1.0.1': {} + + '@humanwhocodes/retry@0.4.3': {} + + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/sourcemap-codec@1.5.5': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.5 + + '@lezer/common@1.5.1': {} + + '@lezer/highlight@1.2.3': + dependencies: + '@lezer/common': 1.5.1 + + '@lezer/json@1.0.3': + dependencies: + '@lezer/common': 1.5.1 + '@lezer/highlight': 1.2.3 + '@lezer/lr': 1.4.8 + + '@lezer/lr@1.4.8': + dependencies: + '@lezer/common': 1.5.1 + + '@lezer/yaml@1.0.4': + dependencies: + '@lezer/common': 1.5.1 + '@lezer/highlight': 1.2.3 + '@lezer/lr': 1.4.8 + + '@marijn/find-cluster-break@1.0.2': {} + + '@rolldown/pluginutils@1.0.0-rc.2': {} + + '@rollup/rollup-android-arm-eabi@4.57.1': + optional: true + + '@rollup/rollup-android-arm64@4.57.1': + optional: true + + '@rollup/rollup-darwin-arm64@4.57.1': + optional: true + + '@rollup/rollup-darwin-x64@4.57.1': + optional: true + + '@rollup/rollup-freebsd-arm64@4.57.1': + optional: true + + '@rollup/rollup-freebsd-x64@4.57.1': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.57.1': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.57.1': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.57.1': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.57.1': + optional: true + + '@rollup/rollup-linux-loong64-gnu@4.57.1': + optional: true + + '@rollup/rollup-linux-loong64-musl@4.57.1': + optional: true + + '@rollup/rollup-linux-ppc64-gnu@4.57.1': + optional: true + + '@rollup/rollup-linux-ppc64-musl@4.57.1': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.57.1': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.57.1': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.57.1': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.57.1': + optional: true + + '@rollup/rollup-linux-x64-musl@4.57.1': + optional: true + + '@rollup/rollup-openbsd-x64@4.57.1': + optional: true + + '@rollup/rollup-openharmony-arm64@4.57.1': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.57.1': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.57.1': + optional: true + + '@rollup/rollup-win32-x64-gnu@4.57.1': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.57.1': + optional: true + + '@tailwindcss/node@4.1.18': + dependencies: + '@jridgewell/remapping': 2.3.5 + enhanced-resolve: 5.19.0 + jiti: 2.6.1 + lightningcss: 1.30.2 + magic-string: 0.30.21 + source-map-js: 1.2.1 + tailwindcss: 4.1.18 + + '@tailwindcss/oxide-android-arm64@4.1.18': + optional: true + + '@tailwindcss/oxide-darwin-arm64@4.1.18': + optional: true + + '@tailwindcss/oxide-darwin-x64@4.1.18': + optional: true + + '@tailwindcss/oxide-freebsd-x64@4.1.18': + optional: true + + '@tailwindcss/oxide-linux-arm-gnueabihf@4.1.18': + optional: true + + '@tailwindcss/oxide-linux-arm64-gnu@4.1.18': + optional: true + + '@tailwindcss/oxide-linux-arm64-musl@4.1.18': + optional: true + + '@tailwindcss/oxide-linux-x64-gnu@4.1.18': + optional: true + + '@tailwindcss/oxide-linux-x64-musl@4.1.18': + optional: true + + '@tailwindcss/oxide-wasm32-wasi@4.1.18': + optional: true + + '@tailwindcss/oxide-win32-arm64-msvc@4.1.18': + optional: true + + '@tailwindcss/oxide-win32-x64-msvc@4.1.18': + optional: true + + '@tailwindcss/oxide@4.1.18': + optionalDependencies: + '@tailwindcss/oxide-android-arm64': 4.1.18 + '@tailwindcss/oxide-darwin-arm64': 4.1.18 + '@tailwindcss/oxide-darwin-x64': 4.1.18 + '@tailwindcss/oxide-freebsd-x64': 4.1.18 + '@tailwindcss/oxide-linux-arm-gnueabihf': 4.1.18 + '@tailwindcss/oxide-linux-arm64-gnu': 4.1.18 + '@tailwindcss/oxide-linux-arm64-musl': 4.1.18 + '@tailwindcss/oxide-linux-x64-gnu': 4.1.18 + '@tailwindcss/oxide-linux-x64-musl': 4.1.18 + '@tailwindcss/oxide-wasm32-wasi': 4.1.18 + '@tailwindcss/oxide-win32-arm64-msvc': 4.1.18 + '@tailwindcss/oxide-win32-x64-msvc': 4.1.18 + + '@tailwindcss/vite@4.1.18(vite@7.3.1(@types/node@24.10.11)(jiti@2.6.1)(lightningcss@1.30.2))': + dependencies: + '@tailwindcss/node': 4.1.18 + '@tailwindcss/oxide': 4.1.18 + tailwindcss: 4.1.18 + vite: 7.3.1(@types/node@24.10.11)(jiti@2.6.1)(lightningcss@1.30.2) + + '@types/babel__core@7.20.5': + dependencies: + '@babel/parser': 7.29.0 + '@babel/types': 7.29.0 + '@types/babel__generator': 7.27.0 + '@types/babel__template': 7.4.4 + '@types/babel__traverse': 7.28.0 + + '@types/babel__generator@7.27.0': + dependencies: + '@babel/types': 7.29.0 + + '@types/babel__template@7.4.4': + dependencies: + '@babel/parser': 7.29.0 + '@babel/types': 7.29.0 + + '@types/babel__traverse@7.28.0': + dependencies: + '@babel/types': 7.29.0 + + '@types/debug@4.1.12': + dependencies: + '@types/ms': 2.1.0 + + '@types/estree-jsx@1.0.5': + dependencies: + '@types/estree': 1.0.8 + + '@types/estree@1.0.8': {} + + '@types/hast@3.0.4': + dependencies: + '@types/unist': 3.0.3 + + '@types/json-schema@7.0.15': {} + + '@types/mdast@4.0.4': + dependencies: + '@types/unist': 3.0.3 + + '@types/ms@2.1.0': {} + + '@types/node@24.10.11': + dependencies: + undici-types: 7.16.0 + + '@types/react-dom@19.2.3(@types/react@19.2.13)': + dependencies: + '@types/react': 19.2.13 + + '@types/react@19.2.13': + dependencies: + csstype: 3.2.3 + + '@types/unist@2.0.11': {} + + '@types/unist@3.0.3': {} + + '@typescript-eslint/eslint-plugin@8.54.0(@typescript-eslint/parser@8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)': + dependencies: + '@eslint-community/regexpp': 4.12.2 + '@typescript-eslint/parser': 8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3) + '@typescript-eslint/scope-manager': 8.54.0 + '@typescript-eslint/type-utils': 8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3) + '@typescript-eslint/utils': 8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3) + '@typescript-eslint/visitor-keys': 8.54.0 + eslint: 9.39.2(jiti@2.6.1) + ignore: 7.0.5 + natural-compare: 1.4.0 + ts-api-utils: 2.4.0(typescript@5.9.3) + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/parser@8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)': + dependencies: + '@typescript-eslint/scope-manager': 8.54.0 + '@typescript-eslint/types': 8.54.0 + '@typescript-eslint/typescript-estree': 8.54.0(typescript@5.9.3) + '@typescript-eslint/visitor-keys': 8.54.0 + debug: 4.4.3 + eslint: 9.39.2(jiti@2.6.1) + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/project-service@8.54.0(typescript@5.9.3)': + dependencies: + '@typescript-eslint/tsconfig-utils': 8.54.0(typescript@5.9.3) + '@typescript-eslint/types': 8.54.0 + debug: 4.4.3 + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/scope-manager@8.54.0': + dependencies: + '@typescript-eslint/types': 8.54.0 + '@typescript-eslint/visitor-keys': 8.54.0 + + '@typescript-eslint/tsconfig-utils@8.54.0(typescript@5.9.3)': + dependencies: + typescript: 5.9.3 + + '@typescript-eslint/type-utils@8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)': + dependencies: + '@typescript-eslint/types': 8.54.0 + '@typescript-eslint/typescript-estree': 8.54.0(typescript@5.9.3) + '@typescript-eslint/utils': 8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3) + debug: 4.4.3 + eslint: 9.39.2(jiti@2.6.1) + ts-api-utils: 2.4.0(typescript@5.9.3) + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/types@8.54.0': {} + + '@typescript-eslint/typescript-estree@8.54.0(typescript@5.9.3)': + dependencies: + '@typescript-eslint/project-service': 8.54.0(typescript@5.9.3) + '@typescript-eslint/tsconfig-utils': 8.54.0(typescript@5.9.3) + '@typescript-eslint/types': 8.54.0 + '@typescript-eslint/visitor-keys': 8.54.0 + debug: 4.4.3 + minimatch: 9.0.5 + semver: 7.7.4 + tinyglobby: 0.2.15 + ts-api-utils: 2.4.0(typescript@5.9.3) + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/utils@8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)': + dependencies: + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@2.6.1)) + '@typescript-eslint/scope-manager': 8.54.0 + '@typescript-eslint/types': 8.54.0 + '@typescript-eslint/typescript-estree': 8.54.0(typescript@5.9.3) + eslint: 9.39.2(jiti@2.6.1) + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/visitor-keys@8.54.0': + dependencies: + '@typescript-eslint/types': 8.54.0 + eslint-visitor-keys: 4.2.1 + + '@uiw/codemirror-extensions-basic-setup@4.25.4(@codemirror/autocomplete@6.20.0)(@codemirror/commands@6.10.2)(@codemirror/language@6.12.1)(@codemirror/lint@6.9.3)(@codemirror/search@6.6.0)(@codemirror/state@6.5.4)(@codemirror/view@6.39.12)': + dependencies: + '@codemirror/autocomplete': 6.20.0 + '@codemirror/commands': 6.10.2 + '@codemirror/language': 6.12.1 + '@codemirror/lint': 6.9.3 + '@codemirror/search': 6.6.0 + '@codemirror/state': 6.5.4 + '@codemirror/view': 6.39.12 + + '@uiw/react-codemirror@4.25.4(@babel/runtime@7.28.6)(@codemirror/autocomplete@6.20.0)(@codemirror/language@6.12.1)(@codemirror/lint@6.9.3)(@codemirror/search@6.6.0)(@codemirror/state@6.5.4)(@codemirror/theme-one-dark@6.1.3)(@codemirror/view@6.39.12)(codemirror@6.0.2)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + dependencies: + '@babel/runtime': 7.28.6 + '@codemirror/commands': 6.10.2 + '@codemirror/state': 6.5.4 + '@codemirror/theme-one-dark': 6.1.3 + '@codemirror/view': 6.39.12 + '@uiw/codemirror-extensions-basic-setup': 4.25.4(@codemirror/autocomplete@6.20.0)(@codemirror/commands@6.10.2)(@codemirror/language@6.12.1)(@codemirror/lint@6.9.3)(@codemirror/search@6.6.0)(@codemirror/state@6.5.4)(@codemirror/view@6.39.12) + codemirror: 6.0.2 + react: 19.2.4 + react-dom: 19.2.4(react@19.2.4) + transitivePeerDependencies: + - '@codemirror/autocomplete' + - '@codemirror/language' + - '@codemirror/lint' + - '@codemirror/search' + + '@ungap/structured-clone@1.3.0': {} + + '@vitejs/plugin-react@5.1.3(vite@7.3.1(@types/node@24.10.11)(jiti@2.6.1)(lightningcss@1.30.2))': + dependencies: + '@babel/core': 7.29.0 + '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.29.0) + '@babel/plugin-transform-react-jsx-source': 7.27.1(@babel/core@7.29.0) + '@rolldown/pluginutils': 1.0.0-rc.2 + '@types/babel__core': 7.20.5 + react-refresh: 0.18.0 + vite: 7.3.1(@types/node@24.10.11)(jiti@2.6.1)(lightningcss@1.30.2) + transitivePeerDependencies: + - supports-color + + acorn-jsx@5.3.2(acorn@8.15.0): + dependencies: + acorn: 8.15.0 + + acorn@8.15.0: {} + + ajv@6.12.6: + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + argparse@2.0.1: {} + + bail@2.0.2: {} + + balanced-match@1.0.2: {} + + baseline-browser-mapping@2.9.19: {} + + brace-expansion@1.1.12: + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + brace-expansion@2.0.2: + dependencies: + balanced-match: 1.0.2 + + browserslist@4.28.1: + dependencies: + baseline-browser-mapping: 2.9.19 + caniuse-lite: 1.0.30001769 + electron-to-chromium: 1.5.286 + node-releases: 2.0.27 + update-browserslist-db: 1.2.3(browserslist@4.28.1) + + callsites@3.1.0: {} + + caniuse-lite@1.0.30001769: {} + + ccount@2.0.1: {} + + chalk@4.1.2: + dependencies: + ansi-styles: 4.3.0 + supports-color: 7.2.0 + + character-entities-html4@2.1.0: {} + + character-entities-legacy@3.0.0: {} + + character-entities@2.0.2: {} + + character-reference-invalid@2.0.1: {} + + codemirror@6.0.2: + dependencies: + '@codemirror/autocomplete': 6.20.0 + '@codemirror/commands': 6.10.2 + '@codemirror/language': 6.12.1 + '@codemirror/lint': 6.9.3 + '@codemirror/search': 6.6.0 + '@codemirror/state': 6.5.4 + '@codemirror/view': 6.39.12 + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + comma-separated-tokens@2.0.3: {} + + concat-map@0.0.1: {} + + convert-source-map@2.0.0: {} + + cookie@1.1.1: {} + + crelt@1.0.6: {} + + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + csstype@3.2.3: {} + + debug@4.4.3: + dependencies: + ms: 2.1.3 + + decode-named-character-reference@1.3.0: + dependencies: + character-entities: 2.0.2 + + deep-is@0.1.4: {} + + dequal@2.0.3: {} + + detect-libc@2.1.2: {} + + devlop@1.1.0: + dependencies: + dequal: 2.0.3 + + electron-to-chromium@1.5.286: {} + + enhanced-resolve@5.19.0: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.3.0 + + 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 + + escalade@3.2.0: {} + + escape-string-regexp@4.0.0: {} + + escape-string-regexp@5.0.0: {} + + eslint-plugin-react-hooks@7.0.1(eslint@9.39.2(jiti@2.6.1)): + dependencies: + '@babel/core': 7.29.0 + '@babel/parser': 7.29.0 + eslint: 9.39.2(jiti@2.6.1) + hermes-parser: 0.25.1 + zod: 4.3.6 + zod-validation-error: 4.0.2(zod@4.3.6) + transitivePeerDependencies: + - supports-color + + eslint-plugin-react-refresh@0.4.26(eslint@9.39.2(jiti@2.6.1)): + dependencies: + eslint: 9.39.2(jiti@2.6.1) + + eslint-scope@8.4.0: + dependencies: + esrecurse: 4.3.0 + estraverse: 5.3.0 + + eslint-visitor-keys@3.4.3: {} + + eslint-visitor-keys@4.2.1: {} + + eslint@9.39.2(jiti@2.6.1): + dependencies: + '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@2.6.1)) + '@eslint-community/regexpp': 4.12.2 + '@eslint/config-array': 0.21.1 + '@eslint/config-helpers': 0.4.2 + '@eslint/core': 0.17.0 + '@eslint/eslintrc': 3.3.3 + '@eslint/js': 9.39.2 + '@eslint/plugin-kit': 0.4.1 + '@humanfs/node': 0.16.7 + '@humanwhocodes/module-importer': 1.0.1 + '@humanwhocodes/retry': 0.4.3 + '@types/estree': 1.0.8 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.6 + debug: 4.4.3 + escape-string-regexp: 4.0.0 + eslint-scope: 8.4.0 + eslint-visitor-keys: 4.2.1 + espree: 10.4.0 + esquery: 1.7.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 8.0.0 + find-up: 5.0.0 + glob-parent: 6.0.2 + ignore: 5.3.2 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + json-stable-stringify-without-jsonify: 1.0.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.4 + optionalDependencies: + jiti: 2.6.1 + transitivePeerDependencies: + - supports-color + + espree@10.4.0: + dependencies: + acorn: 8.15.0 + acorn-jsx: 5.3.2(acorn@8.15.0) + eslint-visitor-keys: 4.2.1 + + esquery@1.7.0: + dependencies: + estraverse: 5.3.0 + + esrecurse@4.3.0: + dependencies: + estraverse: 5.3.0 + + estraverse@5.3.0: {} + + estree-util-is-identifier-name@3.0.0: {} + + esutils@2.0.3: {} + + extend@3.0.2: {} + + fast-deep-equal@3.1.3: {} + + fast-json-stable-stringify@2.1.0: {} + + fast-levenshtein@2.0.6: {} + + fdir@6.5.0(picomatch@4.0.3): + optionalDependencies: + picomatch: 4.0.3 + + file-entry-cache@8.0.0: + dependencies: + flat-cache: 4.0.1 + + find-up@5.0.0: + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + + flat-cache@4.0.1: + dependencies: + flatted: 3.3.3 + keyv: 4.5.4 + + flatted@3.3.3: {} + + fsevents@2.3.3: + optional: true + + gensync@1.0.0-beta.2: {} + + glob-parent@6.0.2: + dependencies: + is-glob: 4.0.3 + + globals@14.0.0: {} + + globals@16.5.0: {} + + graceful-fs@4.2.11: {} + + has-flag@4.0.0: {} + + hast-util-to-jsx-runtime@2.3.6: + dependencies: + '@types/estree': 1.0.8 + '@types/hast': 3.0.4 + '@types/unist': 3.0.3 + comma-separated-tokens: 2.0.3 + devlop: 1.1.0 + estree-util-is-identifier-name: 3.0.0 + hast-util-whitespace: 3.0.0 + mdast-util-mdx-expression: 2.0.1 + mdast-util-mdx-jsx: 3.2.0 + mdast-util-mdxjs-esm: 2.0.1 + property-information: 7.1.0 + space-separated-tokens: 2.0.2 + style-to-js: 1.1.21 + unist-util-position: 5.0.0 + vfile-message: 4.0.3 + transitivePeerDependencies: + - supports-color + + hast-util-whitespace@3.0.0: + dependencies: + '@types/hast': 3.0.4 + + hermes-estree@0.25.1: {} + + hermes-parser@0.25.1: + dependencies: + hermes-estree: 0.25.1 + + html-url-attributes@3.0.1: {} + + ignore@5.3.2: {} + + ignore@7.0.5: {} + + import-fresh@3.3.1: + dependencies: + parent-module: 1.0.1 + resolve-from: 4.0.0 + + imurmurhash@0.1.4: {} + + inline-style-parser@0.2.7: {} + + is-alphabetical@2.0.1: {} + + is-alphanumerical@2.0.1: + dependencies: + is-alphabetical: 2.0.1 + is-decimal: 2.0.1 + + is-decimal@2.0.1: {} + + is-extglob@2.1.1: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-hexadecimal@2.0.1: {} + + is-plain-obj@4.1.0: {} + + isexe@2.0.0: {} + + jiti@2.6.1: {} + + js-tokens@4.0.0: {} + + js-yaml@4.1.1: + dependencies: + argparse: 2.0.1 + + jsesc@3.1.0: {} + + json-buffer@3.0.1: {} + + json-schema-traverse@0.4.1: {} + + json-stable-stringify-without-jsonify@1.0.1: {} + + json5@2.2.3: {} + + keyv@4.5.4: + dependencies: + json-buffer: 3.0.1 + + levn@0.4.1: + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + + lightningcss-android-arm64@1.30.2: + optional: true + + lightningcss-darwin-arm64@1.30.2: + optional: true + + lightningcss-darwin-x64@1.30.2: + optional: true + + lightningcss-freebsd-x64@1.30.2: + optional: true + + lightningcss-linux-arm-gnueabihf@1.30.2: + optional: true + + lightningcss-linux-arm64-gnu@1.30.2: + optional: true + + lightningcss-linux-arm64-musl@1.30.2: + optional: true + + lightningcss-linux-x64-gnu@1.30.2: + optional: true + + lightningcss-linux-x64-musl@1.30.2: + optional: true + + lightningcss-win32-arm64-msvc@1.30.2: + optional: true + + lightningcss-win32-x64-msvc@1.30.2: + optional: true + + lightningcss@1.30.2: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.30.2 + lightningcss-darwin-arm64: 1.30.2 + lightningcss-darwin-x64: 1.30.2 + lightningcss-freebsd-x64: 1.30.2 + lightningcss-linux-arm-gnueabihf: 1.30.2 + lightningcss-linux-arm64-gnu: 1.30.2 + lightningcss-linux-arm64-musl: 1.30.2 + lightningcss-linux-x64-gnu: 1.30.2 + lightningcss-linux-x64-musl: 1.30.2 + lightningcss-win32-arm64-msvc: 1.30.2 + lightningcss-win32-x64-msvc: 1.30.2 + + locate-path@6.0.0: + dependencies: + p-locate: 5.0.0 + + lodash.merge@4.6.2: {} + + longest-streak@3.1.0: {} + + lru-cache@5.1.1: + dependencies: + yallist: 3.1.1 + + lucide-react@0.563.0(react@19.2.4): + dependencies: + react: 19.2.4 + + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + + markdown-table@3.0.4: {} + + mdast-util-find-and-replace@3.0.2: + dependencies: + '@types/mdast': 4.0.4 + escape-string-regexp: 5.0.0 + unist-util-is: 6.0.1 + unist-util-visit-parents: 6.0.2 + + mdast-util-from-markdown@2.0.2: + dependencies: + '@types/mdast': 4.0.4 + '@types/unist': 3.0.3 + decode-named-character-reference: 1.3.0 + devlop: 1.1.0 + mdast-util-to-string: 4.0.0 + micromark: 4.0.2 + micromark-util-decode-numeric-character-reference: 2.0.2 + micromark-util-decode-string: 2.0.1 + micromark-util-normalize-identifier: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + unist-util-stringify-position: 4.0.0 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-autolink-literal@2.0.1: + dependencies: + '@types/mdast': 4.0.4 + ccount: 2.0.1 + devlop: 1.1.0 + mdast-util-find-and-replace: 3.0.2 + micromark-util-character: 2.1.1 + + mdast-util-gfm-footnote@2.1.0: + dependencies: + '@types/mdast': 4.0.4 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.2 + mdast-util-to-markdown: 2.1.2 + micromark-util-normalize-identifier: 2.0.1 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-strikethrough@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + mdast-util-from-markdown: 2.0.2 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-table@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + devlop: 1.1.0 + markdown-table: 3.0.4 + mdast-util-from-markdown: 2.0.2 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-task-list-item@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.2 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm@3.1.0: + dependencies: + mdast-util-from-markdown: 2.0.2 + mdast-util-gfm-autolink-literal: 2.0.1 + mdast-util-gfm-footnote: 2.1.0 + mdast-util-gfm-strikethrough: 2.0.0 + mdast-util-gfm-table: 2.0.0 + mdast-util-gfm-task-list-item: 2.0.0 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-mdx-expression@2.0.1: + dependencies: + '@types/estree-jsx': 1.0.5 + '@types/hast': 3.0.4 + '@types/mdast': 4.0.4 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.2 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-mdx-jsx@3.2.0: + dependencies: + '@types/estree-jsx': 1.0.5 + '@types/hast': 3.0.4 + '@types/mdast': 4.0.4 + '@types/unist': 3.0.3 + ccount: 2.0.1 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.2 + mdast-util-to-markdown: 2.1.2 + parse-entities: 4.0.2 + stringify-entities: 4.0.4 + unist-util-stringify-position: 4.0.0 + vfile-message: 4.0.3 + transitivePeerDependencies: + - supports-color + + mdast-util-mdxjs-esm@2.0.1: + dependencies: + '@types/estree-jsx': 1.0.5 + '@types/hast': 3.0.4 + '@types/mdast': 4.0.4 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.2 + mdast-util-to-markdown: 2.1.2 + transitivePeerDependencies: + - supports-color + + mdast-util-phrasing@4.1.0: + dependencies: + '@types/mdast': 4.0.4 + unist-util-is: 6.0.1 + + mdast-util-to-hast@13.2.1: + dependencies: + '@types/hast': 3.0.4 + '@types/mdast': 4.0.4 + '@ungap/structured-clone': 1.3.0 + devlop: 1.1.0 + micromark-util-sanitize-uri: 2.0.1 + trim-lines: 3.0.1 + unist-util-position: 5.0.0 + unist-util-visit: 5.1.0 + vfile: 6.0.3 + + mdast-util-to-markdown@2.1.2: + dependencies: + '@types/mdast': 4.0.4 + '@types/unist': 3.0.3 + longest-streak: 3.1.0 + mdast-util-phrasing: 4.1.0 + mdast-util-to-string: 4.0.0 + micromark-util-classify-character: 2.0.1 + micromark-util-decode-string: 2.0.1 + unist-util-visit: 5.1.0 + zwitch: 2.0.4 + + mdast-util-to-string@4.0.0: + dependencies: + '@types/mdast': 4.0.4 + + micromark-core-commonmark@2.0.3: + dependencies: + decode-named-character-reference: 1.3.0 + devlop: 1.1.0 + micromark-factory-destination: 2.0.1 + micromark-factory-label: 2.0.1 + micromark-factory-space: 2.0.1 + micromark-factory-title: 2.0.1 + micromark-factory-whitespace: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-chunked: 2.0.1 + micromark-util-classify-character: 2.0.1 + micromark-util-html-tag-name: 2.0.1 + micromark-util-normalize-identifier: 2.0.1 + micromark-util-resolve-all: 2.0.1 + micromark-util-subtokenize: 2.1.0 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-autolink-literal@2.1.0: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-sanitize-uri: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-footnote@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-core-commonmark: 2.0.3 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-normalize-identifier: 2.0.1 + micromark-util-sanitize-uri: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-strikethrough@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-util-chunked: 2.0.1 + micromark-util-classify-character: 2.0.1 + micromark-util-resolve-all: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-table@2.1.1: + dependencies: + devlop: 1.1.0 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm-tagfilter@2.0.0: + dependencies: + micromark-util-types: 2.0.2 + + micromark-extension-gfm-task-list-item@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-extension-gfm@3.0.0: + dependencies: + micromark-extension-gfm-autolink-literal: 2.1.0 + micromark-extension-gfm-footnote: 2.1.0 + micromark-extension-gfm-strikethrough: 2.1.0 + micromark-extension-gfm-table: 2.1.1 + micromark-extension-gfm-tagfilter: 2.0.0 + micromark-extension-gfm-task-list-item: 2.1.0 + micromark-util-combine-extensions: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-factory-destination@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-factory-label@2.0.1: + dependencies: + devlop: 1.1.0 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-factory-space@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-types: 2.0.2 + + micromark-factory-title@2.0.1: + dependencies: + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-factory-whitespace@2.0.1: + dependencies: + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-character@2.1.1: + dependencies: + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-chunked@2.0.1: + dependencies: + micromark-util-symbol: 2.0.1 + + micromark-util-classify-character@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-combine-extensions@2.0.1: + dependencies: + micromark-util-chunked: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-decode-numeric-character-reference@2.0.2: + dependencies: + micromark-util-symbol: 2.0.1 + + micromark-util-decode-string@2.0.1: + dependencies: + decode-named-character-reference: 1.3.0 + micromark-util-character: 2.1.1 + micromark-util-decode-numeric-character-reference: 2.0.2 + micromark-util-symbol: 2.0.1 + + micromark-util-encode@2.0.1: {} + + micromark-util-html-tag-name@2.0.1: {} + + micromark-util-normalize-identifier@2.0.1: + dependencies: + micromark-util-symbol: 2.0.1 + + micromark-util-resolve-all@2.0.1: + dependencies: + micromark-util-types: 2.0.2 + + micromark-util-sanitize-uri@2.0.1: + dependencies: + micromark-util-character: 2.1.1 + micromark-util-encode: 2.0.1 + micromark-util-symbol: 2.0.1 + + micromark-util-subtokenize@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-util-chunked: 2.0.1 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + + micromark-util-symbol@2.0.1: {} + + micromark-util-types@2.0.2: {} + + micromark@4.0.2: + dependencies: + '@types/debug': 4.1.12 + debug: 4.4.3 + decode-named-character-reference: 1.3.0 + devlop: 1.1.0 + micromark-core-commonmark: 2.0.3 + micromark-factory-space: 2.0.1 + micromark-util-character: 2.1.1 + micromark-util-chunked: 2.0.1 + micromark-util-combine-extensions: 2.0.1 + micromark-util-decode-numeric-character-reference: 2.0.2 + micromark-util-encode: 2.0.1 + micromark-util-normalize-identifier: 2.0.1 + micromark-util-resolve-all: 2.0.1 + micromark-util-sanitize-uri: 2.0.1 + micromark-util-subtokenize: 2.1.0 + micromark-util-symbol: 2.0.1 + micromark-util-types: 2.0.2 + transitivePeerDependencies: + - supports-color + + minimatch@3.1.2: + dependencies: + brace-expansion: 1.1.12 + + minimatch@9.0.5: + dependencies: + brace-expansion: 2.0.2 + + ms@2.1.3: {} + + nanoid@3.3.11: {} + + natural-compare@1.4.0: {} + + node-releases@2.0.27: {} + + optionator@0.9.4: + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + word-wrap: 1.2.5 + + p-limit@3.1.0: + dependencies: + yocto-queue: 0.1.0 + + p-locate@5.0.0: + dependencies: + p-limit: 3.1.0 + + parent-module@1.0.1: + dependencies: + callsites: 3.1.0 + + parse-entities@4.0.2: + dependencies: + '@types/unist': 2.0.11 + character-entities-legacy: 3.0.0 + character-reference-invalid: 2.0.1 + decode-named-character-reference: 1.3.0 + is-alphanumerical: 2.0.1 + is-decimal: 2.0.1 + is-hexadecimal: 2.0.1 + + path-exists@4.0.0: {} + + path-key@3.1.1: {} + + picocolors@1.1.1: {} + + picomatch@4.0.3: {} + + postcss@8.5.6: + dependencies: + nanoid: 3.3.11 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + prelude-ls@1.2.1: {} + + property-information@7.1.0: {} + + punycode@2.3.1: {} + + react-dom@19.2.4(react@19.2.4): + dependencies: + react: 19.2.4 + scheduler: 0.27.0 + + react-markdown@10.1.0(@types/react@19.2.13)(react@19.2.4): + dependencies: + '@types/hast': 3.0.4 + '@types/mdast': 4.0.4 + '@types/react': 19.2.13 + devlop: 1.1.0 + hast-util-to-jsx-runtime: 2.3.6 + html-url-attributes: 3.0.1 + mdast-util-to-hast: 13.2.1 + react: 19.2.4 + remark-parse: 11.0.0 + remark-rehype: 11.1.2 + unified: 11.0.5 + unist-util-visit: 5.1.0 + vfile: 6.0.3 + transitivePeerDependencies: + - supports-color + + react-refresh@0.18.0: {} + + react-router-dom@7.13.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4): + dependencies: + react: 19.2.4 + react-dom: 19.2.4(react@19.2.4) + react-router: 7.13.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + + react-router@7.13.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4): + dependencies: + cookie: 1.1.1 + react: 19.2.4 + set-cookie-parser: 2.7.2 + optionalDependencies: + react-dom: 19.2.4(react@19.2.4) + + react@19.2.4: {} + + remark-gfm@4.0.1: + dependencies: + '@types/mdast': 4.0.4 + mdast-util-gfm: 3.1.0 + micromark-extension-gfm: 3.0.0 + remark-parse: 11.0.0 + remark-stringify: 11.0.0 + unified: 11.0.5 + transitivePeerDependencies: + - supports-color + + remark-parse@11.0.0: + dependencies: + '@types/mdast': 4.0.4 + mdast-util-from-markdown: 2.0.2 + micromark-util-types: 2.0.2 + unified: 11.0.5 + transitivePeerDependencies: + - supports-color + + remark-rehype@11.1.2: + dependencies: + '@types/hast': 3.0.4 + '@types/mdast': 4.0.4 + mdast-util-to-hast: 13.2.1 + unified: 11.0.5 + vfile: 6.0.3 + + remark-stringify@11.0.0: + dependencies: + '@types/mdast': 4.0.4 + mdast-util-to-markdown: 2.1.2 + unified: 11.0.5 + + resolve-from@4.0.0: {} + + rollup@4.57.1: + dependencies: + '@types/estree': 1.0.8 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.57.1 + '@rollup/rollup-android-arm64': 4.57.1 + '@rollup/rollup-darwin-arm64': 4.57.1 + '@rollup/rollup-darwin-x64': 4.57.1 + '@rollup/rollup-freebsd-arm64': 4.57.1 + '@rollup/rollup-freebsd-x64': 4.57.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.57.1 + '@rollup/rollup-linux-arm-musleabihf': 4.57.1 + '@rollup/rollup-linux-arm64-gnu': 4.57.1 + '@rollup/rollup-linux-arm64-musl': 4.57.1 + '@rollup/rollup-linux-loong64-gnu': 4.57.1 + '@rollup/rollup-linux-loong64-musl': 4.57.1 + '@rollup/rollup-linux-ppc64-gnu': 4.57.1 + '@rollup/rollup-linux-ppc64-musl': 4.57.1 + '@rollup/rollup-linux-riscv64-gnu': 4.57.1 + '@rollup/rollup-linux-riscv64-musl': 4.57.1 + '@rollup/rollup-linux-s390x-gnu': 4.57.1 + '@rollup/rollup-linux-x64-gnu': 4.57.1 + '@rollup/rollup-linux-x64-musl': 4.57.1 + '@rollup/rollup-openbsd-x64': 4.57.1 + '@rollup/rollup-openharmony-arm64': 4.57.1 + '@rollup/rollup-win32-arm64-msvc': 4.57.1 + '@rollup/rollup-win32-ia32-msvc': 4.57.1 + '@rollup/rollup-win32-x64-gnu': 4.57.1 + '@rollup/rollup-win32-x64-msvc': 4.57.1 + fsevents: 2.3.3 + + scheduler@0.27.0: {} + + semver@6.3.1: {} + + semver@7.7.4: {} + + set-cookie-parser@2.7.2: {} + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + source-map-js@1.2.1: {} + + space-separated-tokens@2.0.2: {} + + stringify-entities@4.0.4: + dependencies: + character-entities-html4: 2.1.0 + character-entities-legacy: 3.0.0 + + strip-json-comments@3.1.1: {} + + style-mod@4.1.3: {} + + style-to-js@1.1.21: + dependencies: + style-to-object: 1.0.14 + + style-to-object@1.0.14: + dependencies: + inline-style-parser: 0.2.7 + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + tailwindcss@4.1.18: {} + + tapable@2.3.0: {} + + tinyglobby@0.2.15: + dependencies: + fdir: 6.5.0(picomatch@4.0.3) + picomatch: 4.0.3 + + trim-lines@3.0.1: {} + + trough@2.2.0: {} + + ts-api-utils@2.4.0(typescript@5.9.3): + dependencies: + typescript: 5.9.3 + + type-check@0.4.0: + dependencies: + prelude-ls: 1.2.1 + + typescript-eslint@8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3): + dependencies: + '@typescript-eslint/eslint-plugin': 8.54.0(@typescript-eslint/parser@8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3) + '@typescript-eslint/parser': 8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3) + '@typescript-eslint/typescript-estree': 8.54.0(typescript@5.9.3) + '@typescript-eslint/utils': 8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3) + eslint: 9.39.2(jiti@2.6.1) + typescript: 5.9.3 + transitivePeerDependencies: + - supports-color + + typescript@5.9.3: {} + + undici-types@7.16.0: {} + + unified@11.0.5: + dependencies: + '@types/unist': 3.0.3 + bail: 2.0.2 + devlop: 1.1.0 + extend: 3.0.2 + is-plain-obj: 4.1.0 + trough: 2.2.0 + vfile: 6.0.3 + + unist-util-is@6.0.1: + dependencies: + '@types/unist': 3.0.3 + + unist-util-position@5.0.0: + dependencies: + '@types/unist': 3.0.3 + + unist-util-stringify-position@4.0.0: + dependencies: + '@types/unist': 3.0.3 + + unist-util-visit-parents@6.0.2: + dependencies: + '@types/unist': 3.0.3 + unist-util-is: 6.0.1 + + unist-util-visit@5.1.0: + dependencies: + '@types/unist': 3.0.3 + unist-util-is: 6.0.1 + unist-util-visit-parents: 6.0.2 + + update-browserslist-db@1.2.3(browserslist@4.28.1): + dependencies: + browserslist: 4.28.1 + escalade: 3.2.0 + picocolors: 1.1.1 + + uri-js@4.4.1: + dependencies: + punycode: 2.3.1 + + vfile-message@4.0.3: + dependencies: + '@types/unist': 3.0.3 + unist-util-stringify-position: 4.0.0 + + vfile@6.0.3: + dependencies: + '@types/unist': 3.0.3 + vfile-message: 4.0.3 + + vite@7.3.1(@types/node@24.10.11)(jiti@2.6.1)(lightningcss@1.30.2): + dependencies: + esbuild: 0.27.3 + fdir: 6.5.0(picomatch@4.0.3) + picomatch: 4.0.3 + postcss: 8.5.6 + rollup: 4.57.1 + tinyglobby: 0.2.15 + optionalDependencies: + '@types/node': 24.10.11 + fsevents: 2.3.3 + jiti: 2.6.1 + lightningcss: 1.30.2 + + w3c-keyname@2.2.8: {} + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + word-wrap@1.2.5: {} + + yallist@3.1.1: {} + + yocto-queue@0.1.0: {} + + zod-validation-error@4.0.2(zod@4.3.6): + dependencies: + zod: 4.3.6 + + zod@4.3.6: {} + + zwitch@2.0.4: {} diff --git a/ui/public/favicon.ico b/ui/public/favicon.ico new file mode 100644 index 000000000..c01d54bcd Binary files /dev/null and b/ui/public/favicon.ico differ diff --git a/ui/public/logo.png b/ui/public/logo.png new file mode 100644 index 000000000..3f7c09a86 Binary files /dev/null and b/ui/public/logo.png differ diff --git a/ui/public/logo.svg b/ui/public/logo.svg new file mode 100644 index 000000000..9db6d0d06 --- /dev/null +++ b/ui/public/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ui/src/App.tsx b/ui/src/App.tsx new file mode 100644 index 000000000..cdd4b4082 --- /dev/null +++ b/ui/src/App.tsx @@ -0,0 +1,45 @@ +import { lazy, Suspense } from 'react'; +import { BrowserRouter, Routes, Route } from 'react-router-dom'; +import { ToastProvider } from './components/Toast'; +import { PageSkeleton } from './components/Skeleton'; +import Layout from './components/Layout'; +import DashboardPage from './pages/DashboardPage'; + +const SkillsPage = lazy(() => import('./pages/SkillsPage')); +const SkillDetailPage = lazy(() => import('./pages/SkillDetailPage')); +const TargetsPage = lazy(() => import('./pages/TargetsPage')); +const SyncPage = lazy(() => import('./pages/SyncPage')); +const CollectPage = lazy(() => import('./pages/CollectPage')); +const BackupPage = lazy(() => import('./pages/BackupPage')); +const GitSyncPage = lazy(() => import('./pages/GitSyncPage')); +const SearchPage = lazy(() => import('./pages/SearchPage')); +const InstallPage = lazy(() => import('./pages/InstallPage')); +const ConfigPage = lazy(() => import('./pages/ConfigPage')); + +function Lazy({ children }: { children: React.ReactNode }) { + return }>{children}; +} + +export default function App() { + return ( + + + + }> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + + + + + ); +} diff --git a/ui/src/api/client.ts b/ui/src/api/client.ts new file mode 100644 index 000000000..d8236a1c0 --- /dev/null +++ b/ui/src/api/client.ts @@ -0,0 +1,321 @@ +const BASE = '/api'; + +export class ApiError extends Error { + status: number; + constructor(status: number, message: string) { + super(message); + this.status = status; + } +} + +export async function apiFetch(path: string, init?: RequestInit): Promise { + const res = await fetch(BASE + path, { + headers: { 'Content-Type': 'application/json' }, + ...init, + }); + const data = await res.json(); + if (!res.ok) { + throw new ApiError(res.status, data.error ?? res.statusText); + } + return data as T; +} + +// Typed API helpers +export const api = { + // Overview + getOverview: () => apiFetch('/overview'), + + // Skills + listSkills: () => apiFetch<{ skills: Skill[] }>('/skills'), + getSkill: (name: string) => + apiFetch<{ skill: Skill; skillMdContent: string; files: string[] }>(`/skills/${encodeURIComponent(name)}`), + deleteSkill: (name: string) => + apiFetch<{ success: boolean }>(`/skills/${encodeURIComponent(name)}`, { method: 'DELETE' }), + + // Targets + listTargets: () => apiFetch<{ targets: Target[] }>('/targets'), + addTarget: (name: string, path: string) => + apiFetch<{ success: boolean }>('/targets', { + method: 'POST', + body: JSON.stringify({ name, path }), + }), + removeTarget: (name: string) => + apiFetch<{ success: boolean }>(`/targets/${encodeURIComponent(name)}`, { method: 'DELETE' }), + + // Sync + sync: (opts: { dryRun?: boolean; force?: boolean }) => + apiFetch<{ results: SyncResult[] }>('/sync', { + method: 'POST', + body: JSON.stringify(opts), + }), + diff: (target?: string) => + apiFetch<{ diffs: DiffTarget[] }>(`/diff${target ? '?target=' + encodeURIComponent(target) : ''}`), + + // Search & Install + search: (q: string, limit = 20) => + apiFetch<{ results: SearchResult[] }>(`/search?q=${encodeURIComponent(q)}&limit=${limit}`), + discover: (source: string) => + apiFetch('/discover', { + method: 'POST', + body: JSON.stringify({ source }), + }), + install: (opts: { source: string; name?: string; force?: boolean; track?: boolean }) => + apiFetch('/install', { + method: 'POST', + body: JSON.stringify(opts), + }), + installBatch: (opts: { source: string; skills: DiscoveredSkill[]; force?: boolean }) => + apiFetch('/install/batch', { + method: 'POST', + body: JSON.stringify(opts), + }), + + // Update + update: (opts: { name?: string; force?: boolean; all?: boolean }) => + apiFetch<{ results: UpdateResultItem[] }>('/update', { + method: 'POST', + body: JSON.stringify(opts), + }), + + // Repo uninstall + deleteRepo: (name: string) => + apiFetch<{ success: boolean; name: string }>(`/repos/${encodeURIComponent(name)}`, { method: 'DELETE' }), + + // Skill file content + getSkillFile: (skillName: string, filepath: string) => + apiFetch(`/skills/${encodeURIComponent(skillName)}/files/${filepath}`), + + // Collect + collectScan: (target?: string) => + apiFetch(`/collect/scan${target ? '?target=' + encodeURIComponent(target) : ''}`), + collect: (opts: { skills: { name: string; targetName: string }[]; force?: boolean }) => + apiFetch('/collect', { + method: 'POST', + body: JSON.stringify(opts), + }), + + // Version check + getVersionCheck: () => apiFetch('/version'), + + // Config + getConfig: () => apiFetch<{ config: unknown; raw: string }>('/config'), + putConfig: (raw: string) => + apiFetch<{ success: boolean }>('/config', { + method: 'PUT', + body: JSON.stringify({ raw }), + }), + availableTargets: () => apiFetch<{ targets: AvailableTarget[] }>('/config/available-targets'), + + // Backups + listBackups: () => apiFetch('/backups'), + createBackup: (target?: string) => + apiFetch<{ success: boolean; backedUpTargets: string[] }>('/backup', { + method: 'POST', + body: JSON.stringify({ target: target ?? '' }), + }), + cleanupBackups: () => + apiFetch<{ success: boolean; removed: number }>('/backup/cleanup', { method: 'POST' }), + restore: (opts: { timestamp: string; target: string; force?: boolean }) => + apiFetch<{ success: boolean; target: string; timestamp: string }>('/restore', { + method: 'POST', + body: JSON.stringify(opts), + }), + + // Git + gitStatus: () => apiFetch('/git/status'), + push: (opts: { message?: string; dryRun?: boolean }) => + apiFetch('/push', { + method: 'POST', + body: JSON.stringify(opts), + }), + pull: (opts?: { dryRun?: boolean }) => + apiFetch('/pull', { + method: 'POST', + body: JSON.stringify(opts ?? {}), + }), +}; + +// Types +export interface TrackedRepo { + name: string; + skillCount: number; + dirty: boolean; +} + +export interface Overview { + source: string; + skillCount: number; + topLevelCount: number; + targetCount: number; + mode: string; + version: string; + trackedRepos: TrackedRepo[]; +} + +export interface VersionCheck { + cliVersion: string; + cliLatest?: string; + cliUpdateAvailable: boolean; + skillVersion: string; + skillLatest?: string; + skillUpdateAvailable: boolean; +} + +export interface Skill { + name: string; + flatName: string; + relPath: string; + sourcePath: string; + isInRepo: boolean; + installedAt?: string; + source?: string; + type?: string; + repoUrl?: string; + version?: string; +} + +export interface Target { + name: string; + path: string; + mode: string; + status: string; + linkedCount: number; + localCount: number; +} + +export interface SyncResult { + target: string; + linked: string[]; + updated: string[]; + skipped: string[]; + pruned: string[]; +} + +export interface DiffTarget { + target: string; + items: { skill: string; action: string; reason?: string }[]; +} + +export interface SearchResult { + name: string; + description: string; + source: string; + stars: number; + owner: string; + repo: string; +} + +export interface InstallResult { + skillName?: string; + repoName?: string; + action: string; + warnings: string[]; + skillCount?: number; + skills?: string[]; +} + +export interface UpdateResultItem { + name: string; + action: string; // "updated", "up-to-date", "skipped", "error" + message?: string; + isRepo: boolean; +} + +export interface AvailableTarget { + name: string; + path: string; + installed: boolean; + detected: boolean; +} + +export interface SkillFileContent { + content: string; + contentType: string; + filename: string; +} + +export interface DiscoveredSkill { + name: string; + path: string; +} + +export interface DiscoverResult { + needsSelection: boolean; + skills: DiscoveredSkill[]; +} + +export interface BatchInstallResultItem { + name: string; + action?: string; + warnings?: string[]; + error?: string; +} + +export interface BatchInstallResult { + results: BatchInstallResultItem[]; + summary: string; +} + +export interface LocalSkillInfo { + name: string; + path: string; + targetName: string; + size: number; + modTime: string; +} + +export interface CollectScanTarget { + targetName: string; + skills: LocalSkillInfo[]; +} + +export interface CollectScanResult { + targets: CollectScanTarget[]; + totalCount: number; +} + +export interface CollectResult { + pulled: string[]; + skipped: string[]; + failed: Record; +} + +// Backup types +export interface BackupInfo { + timestamp: string; + path: string; + targets: string[]; + date: string; + sizeMB: number; +} + +export interface BackupListResponse { + backups: BackupInfo[]; + totalSizeMB: number; +} + +// Git types +export interface GitStatus { + isRepo: boolean; + hasRemote: boolean; + branch: string; + isDirty: boolean; + files: string[]; + sourceDir: string; +} + +export interface PushResponse { + success: boolean; + message: string; + dryRun?: boolean; +} + +export interface PullResponse { + success: boolean; + upToDate: boolean; + commits: { hash: string; message: string }[]; + stats: { filesChanged: number; insertions: number; deletions: number }; + syncResults: SyncResult[]; + dryRun?: boolean; + message?: string; +} diff --git a/ui/src/components/Badge.tsx b/ui/src/components/Badge.tsx new file mode 100644 index 000000000..11daaa547 --- /dev/null +++ b/ui/src/components/Badge.tsx @@ -0,0 +1,29 @@ +import { wobbly } from '../design'; + +interface BadgeProps { + children: React.ReactNode; + variant?: 'default' | 'success' | 'warning' | 'danger' | 'info' | 'accent'; +} + +const variants: Record = { + default: 'bg-muted text-pencil-light border-pencil-light', + success: 'bg-success-light text-success border-success', + warning: 'bg-warning-light text-warning border-warning', + danger: 'bg-danger-light text-danger border-danger', + info: 'bg-info-light text-blue border-blue', + accent: 'bg-accent/10 text-accent border-accent', +}; + +export default function Badge({ children, variant = 'default' }: BadgeProps) { + return ( + + {children} + + ); +} diff --git a/ui/src/components/Card.tsx b/ui/src/components/Card.tsx new file mode 100644 index 000000000..23a45835d --- /dev/null +++ b/ui/src/components/Card.tsx @@ -0,0 +1,76 @@ +import type { ReactNode, CSSProperties } from 'react'; +import { wobbly, shadows } from '../design'; + +interface CardProps { + children: ReactNode; + className?: string; + variant?: 'default' | 'postit' | 'accent' | 'outlined'; + decoration?: 'none' | 'tape' | 'tack'; + hover?: boolean; + style?: CSSProperties; +} + +const variantStyles = { + default: 'bg-white border-2 border-pencil', + postit: 'bg-postit border-2 border-pencil', + accent: 'bg-white border-[3px] border-accent', + outlined: 'bg-transparent border-2 border-dashed border-pencil-light', +}; + +export default function Card({ + children, + className = '', + variant = 'default', + decoration = 'none', + hover = false, + style, +}: CardProps) { + return ( +
{ + (e.currentTarget as HTMLDivElement).style.boxShadow = shadows.hover; + } + : undefined + } + onMouseLeave={ + hover + ? (e) => { + (e.currentTarget as HTMLDivElement).style.boxShadow = shadows.md; + } + : undefined + } + > + {/* Tape decoration */} + {decoration === 'tape' && ( +
+ )} + + {/* Tack decoration */} + {decoration === 'tack' && ( +
+
+
+ )} + + {children} +
+ ); +} diff --git a/ui/src/components/ConfirmDialog.tsx b/ui/src/components/ConfirmDialog.tsx new file mode 100644 index 000000000..26e323182 --- /dev/null +++ b/ui/src/components/ConfirmDialog.tsx @@ -0,0 +1,91 @@ +import { useEffect, type ReactNode } from 'react'; +import Card from './Card'; +import HandButton from './HandButton'; +import { wobbly } from '../design'; + +interface ConfirmDialogProps { + open: boolean; + onConfirm: () => void; + onCancel: () => void; + title: string; + message: ReactNode; + confirmText?: string; + cancelText?: string; + variant?: 'default' | 'danger'; + loading?: boolean; +} + +export default function ConfirmDialog({ + open, + onConfirm, + onCancel, + title, + message, + confirmText = 'Confirm', + cancelText = 'Cancel', + variant = 'default', + loading = false, +}: ConfirmDialogProps) { + // Close on Escape + useEffect(() => { + if (!open) return; + const handleKey = (e: KeyboardEvent) => { + if (e.key === 'Escape' && !loading) onCancel(); + }; + document.addEventListener('keydown', handleKey); + return () => document.removeEventListener('keydown', handleKey); + }, [open, loading, onCancel]); + + if (!open) return null; + + return ( +
{ + if (e.target === e.currentTarget && !loading) onCancel(); + }} + > + {/* Backdrop */} +
+ + {/* Dialog */} +
+ +

+ {title} +

+
+ {message} +
+
+ + {cancelText} + + + {loading ? 'Working...' : confirmText} + +
+
+
+
+ ); +} diff --git a/ui/src/components/EmptyState.tsx b/ui/src/components/EmptyState.tsx new file mode 100644 index 000000000..b552172e0 --- /dev/null +++ b/ui/src/components/EmptyState.tsx @@ -0,0 +1,31 @@ +import type { ReactNode } from 'react'; +import type { LucideIcon } from 'lucide-react'; + +interface EmptyStateProps { + icon: LucideIcon; + title: string; + description?: string; + action?: ReactNode; +} + +export default function EmptyState({ icon: Icon, title, description, action }: EmptyStateProps) { + return ( +
+
+ +
+

+ {title} +

+ {description && ( +

{description}

+ )} + {action &&
{action}
} +
+ ); +} diff --git a/ui/src/components/FileViewerModal.tsx b/ui/src/components/FileViewerModal.tsx new file mode 100644 index 000000000..783360284 --- /dev/null +++ b/ui/src/components/FileViewerModal.tsx @@ -0,0 +1,139 @@ +import { useEffect, useMemo, useState } from 'react'; +import { X } from 'lucide-react'; +import Markdown from 'react-markdown'; +import remarkGfm from 'remark-gfm'; +import CodeMirror from '@uiw/react-codemirror'; +import { json } from '@codemirror/lang-json'; +import { yaml } from '@codemirror/lang-yaml'; +import { EditorView } from '@codemirror/view'; +import Card from './Card'; +import HandButton from './HandButton'; +import { api, type SkillFileContent } from '../api/client'; +import { handTheme } from '../lib/codemirror-theme'; +import { wobbly } from '../design'; + +interface FileViewerModalProps { + skillName: string; + filepath: string; + onClose: () => void; +} + +export default function FileViewerModal({ skillName, filepath, onClose }: FileViewerModalProps) { + const [data, setData] = useState(null); + const [loading, setLoading] = useState(true); + const [error, setError] = useState(null); + + useEffect(() => { + setLoading(true); + setError(null); + api + .getSkillFile(skillName, filepath) + .then(setData) + .catch((e: Error) => setError(e.message)) + .finally(() => setLoading(false)); + }, [skillName, filepath]); + + // Close on Escape + useEffect(() => { + const handleKey = (e: KeyboardEvent) => { + if (e.key === 'Escape') onClose(); + }; + document.addEventListener('keydown', handleKey); + return () => document.removeEventListener('keydown', handleKey); + }, [onClose]); + + const cmExtensions = useMemo(() => { + if (!data) return []; + const exts = [EditorView.lineWrapping, EditorView.editable.of(false)]; + if (data.contentType === 'application/json') exts.push(json()); + else if (data.contentType === 'text/yaml') exts.push(yaml()); + return exts; + }, [data]); + + return ( +
{ + if (e.target === e.currentTarget) onClose(); + }} + > + {/* Backdrop */} +
+ + {/* Modal */} +
+ + {/* Header */} +
+

+ {filepath} +

+ + + +
+ + {/* Content */} +
+ {loading && ( +
+

+ Loading... +

+
+ )} + + {error && ( +
+

+ {error} +

+
+ )} + + {data && !loading && ( + <> + {data.contentType === 'text/markdown' ? ( +
+ {data.content} +
+ ) : data.contentType === 'application/json' || data.contentType === 'text/yaml' ? ( + + ) : ( +
+                    {data.content}
+                  
+ )} + + )} +
+
+
+
+ ); +} diff --git a/ui/src/components/HandButton.tsx b/ui/src/components/HandButton.tsx new file mode 100644 index 000000000..3486d0e82 --- /dev/null +++ b/ui/src/components/HandButton.tsx @@ -0,0 +1,82 @@ +import type { ReactNode, ButtonHTMLAttributes } from 'react'; +import { wobbly, shadows } from '../design'; + +interface HandButtonProps extends ButtonHTMLAttributes { + children: ReactNode; + variant?: 'primary' | 'secondary' | 'danger' | 'ghost'; + size?: 'sm' | 'md' | 'lg'; +} + +const variantClasses = { + primary: + 'bg-white border-[3px] border-pencil text-pencil hover:bg-accent hover:text-white hover:border-accent', + secondary: + 'bg-muted border-2 border-pencil-light text-pencil hover:bg-blue hover:text-white hover:border-blue', + danger: + 'bg-white border-2 border-danger text-danger hover:bg-danger hover:text-white', + ghost: + 'bg-transparent border-2 border-dashed border-pencil-light text-pencil-light hover:border-pencil hover:text-pencil', +}; + +const sizeClasses = { + sm: 'px-3 py-1.5 text-base', + md: 'px-5 py-2.5 text-base', + lg: 'px-8 py-3.5 text-lg', +}; + +export default function HandButton({ + children, + variant = 'primary', + size = 'md', + className = '', + disabled, + style, + ...props +}: HandButtonProps) { + return ( + + ); +} diff --git a/ui/src/components/HandInput.tsx b/ui/src/components/HandInput.tsx new file mode 100644 index 000000000..f6a15851d --- /dev/null +++ b/ui/src/components/HandInput.tsx @@ -0,0 +1,146 @@ +import type { InputHTMLAttributes, TextareaHTMLAttributes } from 'react'; +import { Check } from 'lucide-react'; +import { wobbly } from '../design'; + +interface HandInputProps extends InputHTMLAttributes { + label?: string; +} + +export function HandInput({ label, className = '', style, ...props }: HandInputProps) { + return ( +
+ {label && ( + + )} + +
+ ); +} + +interface HandTextareaProps extends TextareaHTMLAttributes { + label?: string; +} + +export function HandTextarea({ label, className = '', style, ...props }: HandTextareaProps) { + return ( +
+ {label && ( + + )} +