diff --git a/.dependency-cruiser.mjs b/.dependency-cruiser.mjs new file mode 100644 index 000000000..17aaa0589 --- /dev/null +++ b/.dependency-cruiser.mjs @@ -0,0 +1,233 @@ +/** @type {import('dependency-cruiser').IConfiguration} */ +// +// Architecture rules for github-stars. Defense-in-depth alongside +// eslint's no-restricted-imports + biome's noPrivateImports — three +// separate gates because each sees a different slice of the import +// graph (eslint resolves TS-typed imports; biome reads barrels; +// dependency-cruiser walks the runtime resolution tree including +// transitive package boundaries). +// +// Doctrine source: ../../juv2/.dependency-cruiser.mjs +// (rules ported verbatim where applicable; rule-scope `^packages` +// rewritten to `^src` because we are a flat single-package repo). +// +// Run: `bun run depcruise` (configured in package.json — invokes +// `dependency-cruiser --validate src`). + +const config = { + forbidden: [ + { + name: "no-circular", + severity: "error", + comment: + "This dependency is part of a circular relationship. You might want to revise " + + "your solution (i.e. use dependency inversion, make sure the modules have a single responsibility).", + from: {}, + to: { + circular: true, + }, + }, + { + name: "no-orphans", + comment: + "This is an orphan module — it's likely not used (anymore?). Either use it or " + + "remove it. If it's logical this module is an orphan (i.e. it's a config file), " + + "add an exception for it in your dependency-cruiser configuration. By default " + + "this rule does not scrutinize dot-files (e.g. .eslintrc.js), TypeScript declaration " + + "files (.d.ts), tsconfig.json and some of the babel and webpack configs.", + severity: "warn", + from: { + orphan: true, + pathNot: [ + "(^|/)[.][^/]+[.](?:js|cjs|mjs|ts|cts|mts|json)$", // dot files + "[.]d[.]ts$", // TypeScript declaration files + "(^|/)tsconfig[.]json$", // TypeScript config + "(^|/)(?:babel|webpack)[.]config[.](?:js|cjs|mjs|ts|cts|mts|json)$", + // CLI runners (no in-repo importer; entry from package.json scripts). + "(^|/)src/cli-(normalize|validate)[.]ts$", + "(^|/)src/(auth/setup-doctor|fetch/cli|sync/cli|gate/cli|gate/no-loose-zod-cli|contracts/paths-codegen)[.]ts$", + ], + }, + to: {}, + }, + { + name: "no-deprecated-core", + comment: + "A module depends on a node core module that has been deprecated. Find an alternative.", + severity: "warn", + from: {}, + to: { + dependencyTypes: ["core"], + path: [ + "^async_hooks$", + "^punycode$", + "^domain$", + "^constants$", + "^sys$", + "^_linklist$", + "^_stream_wrap$", + ], + }, + }, + { + name: "not-to-deprecated", + comment: + "This module uses a (version of an) npm module that has been deprecated. Either upgrade to a later " + + "version of that module, or find an alternative. Deprecated modules are a security risk.", + severity: "warn", + from: {}, + to: { + dependencyTypes: ["deprecated"], + }, + }, + { + name: "no-non-package-json", + severity: "error", + comment: + "This module depends on an npm package that isn't in the 'dependencies' section of your package.json. " + + "That's problematic as the package either (1) won't be available on live (2 — worse) will be " + + "available on live with an non-guaranteed version. Fix it by adding the package to the dependencies " + + "in your package.json.", + from: {}, + to: { + dependencyTypes: ["npm-no-pkg", "npm-unknown"], + // Bun's `.bun/@+/node_modules//...d.ts` + // resolution path makes type-only imports look like runtime + // deps to depcruise's classifier (the resolved path lives + // outside any package.json's `dependencies` section). Type- + // surface imports are not runtime debt — `.d.ts` is erased + // at compile time. + pathNot: ["[.]d[.](ts|cts|mts)$"], + }, + }, + { + name: "not-to-unresolvable", + comment: + "This module depends on a module that cannot be found ('resolved to disk'). If it's an npm " + + "module: add it to your package.json. In all other cases you likely already know what to do.", + severity: "error", + from: {}, + to: { + couldNotResolve: true, + }, + }, + { + name: "no-duplicate-dep-types", + comment: + "Likely this module depends on an external ('npm') package that occurs more than once " + + "in your package.json i.e. both as a devDependency and in dependencies. This will cause " + + "maintenance problems later on.", + severity: "warn", + from: {}, + to: { + moreThanOneDependencyType: true, + dependencyTypesNot: ["type-only"], + }, + }, + { + name: "not-to-spec", + comment: + "This module depends on a spec (test) file. The responsibility of a spec file is to test code. " + + "If there's something in a spec that's of use to other modules, it doesn't have that single " + + "responsibility anymore. Factor it out into (e.g.) a separate utility/helper.", + severity: "error", + from: {}, + to: { + path: "[.](?:spec|test)[.](?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$", + }, + }, + { + name: "not-to-dev-dep", + severity: "error", + comment: + "This module depends on an npm package from the 'devDependencies' section of your " + + "package.json. It looks like something that ships to production, though. To prevent problems " + + "with npm packages that aren't there on production declare it (only!) in the 'dependencies' " + + "section of your package.json. If this module is development only — add it to the " + + "from.pathNot re of the not-to-dev-dep rule in the dependency-cruiser configuration.", + from: { + path: "^src", + pathNot: "[.](?:spec|test)[.](?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$", + }, + to: { + dependencyTypes: ["npm-dev"], + dependencyTypesNot: ["type-only"], + pathNot: ["node_modules/@types/", "[.]d[.](ts|cts|mts)$"], + }, + }, + { + name: "optional-deps-used", + severity: "info", + comment: + "This module depends on an npm package that is declared as an optional dependency. " + + "As this makes sense in limited situations only, it's flagged here.", + from: {}, + to: { + dependencyTypes: ["npm-optional"], + }, + }, + { + name: "peer-deps-used", + comment: + "This module depends on an npm package that is declared as a peer dependency. " + + "This makes sense if your package is e.g. a plugin, but in other cases — maybe not so much.", + severity: "warn", + from: {}, + to: { + dependencyTypes: ["npm-peer"], + }, + }, + ], + options: { + doNotFollow: { + path: ["node_modules"], + }, + // Detect TS-only imports that get erased at compile time so the + // type-surface graph is visible alongside the runtime graph. + tsPreCompilationDeps: true, + // Detect process.getBuiltinModule calls as imports. + detectProcessBuiltinModuleCalls: true, + // Each consumer owns its own dependency ledger; root devDeps don't + // bleed into per-file classification. + combinedDependencies: false, + // JSDoc-style imports (e.g. `import("foo")` in TSDoc `{@link}` + // references) are scanned alongside real imports. + detectJSDocImports: true, + tsConfig: { + fileName: "tsconfig.json", + }, + skipAnalysisNotInRules: true, + builtInModules: { + add: [ + "bun", + "bun:ffi", + "bun:jsc", + "bun:sqlite", + "bun:test", + "bun:wrap", + "detect-libc", + "undici", + "ws", + ], + }, + enhancedResolveOptions: { + exportsFields: ["exports"], + conditionNames: ["import", "require", "node", "default", "types"], + mainFields: ["module", "main", "types", "typings"], + }, + reporterOptions: { + dot: { + collapsePattern: "node_modules/(?:@[^/]+/[^/]+|[^/]+)", + }, + archi: { + collapsePattern: + "^(?:src|lib(s?)|app(s?)|bin|test(s?)|spec(s?))/[^/]+|node_modules/(?:@[^/]+/[^/]+|[^/]+)", + }, + text: { + highlightFocused: true, + }, + }, + }, +}; + +export default config; diff --git a/.github-stars/control-plane/permissions.yml b/.github-stars/control-plane/permissions.yml new file mode 100644 index 000000000..89bdca9d4 --- /dev/null +++ b/.github-stars/control-plane/permissions.yml @@ -0,0 +1,176 @@ +# GitHub App permission capability ledger +# +# Every permission granted to the `primeinc-github-stars` GitHub App +# is enumerated here with: purpose, phase (when it's used), proof +# (how we know it's actually used), and prune rule (when to revoke +# or downgrade). +# +# Source issue: #73. Related: #69. +# +# Schema invariant: every permission entry has access, phase, +# capability, proof_required, and prune_rule. The exact field set may +# evolve; the discipline cannot. + +permissions: + contents: + access: write + phase: runtime + capability: | + Commit generated catalog artifacts (repos.yml, docs/data.json, + categories/*.md, tags/*.md) and update control-plane source via + the App-token-authenticated push step in 01-fetch-stars.yml, + 02-sync-stars.yml, 03-classify-repos.yml, and + 05-generate-readmes.yml. + proof_required: + - app-token checkout succeeds in workflows above + - direct push or PR created with App installation token + - workflow summary cites the commit SHA pushed under app identity + prune_rule: | + Keep while direct-write is the chosen path. Downgrade to read + only after the chain migrates to PR-only updates and + pages-build-deployment fires from a branch other than main. + + workflows: + access: write + phase: bootstrap + capability: | + Repair and migrate `.github/workflows/*.yml` during the + modernization sprint (PR #79 - chore/bun-modernization), including + the branch-governance workflows that keep ordinary PRs on `next` + and reserve `main` for repo-owned `next` release PRs. + proof_required: + - PR modifies .github/workflows/* through App-backed flow + - workflow-lint job in 00-ci.yml validates structural changes + - main-release-guard workflow exists and can be required by ruleset + prune_rule: | + Downgrade to read once PR #79 lands and the bun toolchain plus + branch-governance workflow migration stabilizes. After that, + workflow YAML changes should come through PR review, not App-direct. + + pull_requests: + access: write + phase: runtime + capability: | + 00d-auto-retarget-main-prs.yml retargets non-release pull + requests away from `main` and onto `next`. The only allowed release + path into `main` is a PR whose head branch is repo-owned `next`. + proof_required: + - app-token minted with permission-pull-requests: write + - pull_request_target event on a non-next PR to main updates base to next + - workflow log records base/head/head_repo/base_repo before mutation + prune_rule: | + Keep while auto-retargeting is preferred. Downgrade if the ruleset + plus required check alone is sufficient and maintainers prefer hard + failure over bot retargeting. + + issues: + access: write + phase: runtime + capability: | + 00d-auto-retarget-main-prs.yml comments on retargeted PRs so the + contributor sees the branch policy. 03-classify-repos.yml also sets + `issues: write` for future router work (#73-related, not yet + implemented) that can open issues for classifier failures or + model-output review queues. + proof_required: + - auto-retarget workflow comments on a retargeted PR + - future router proof: created issue URL tied to classifier failure + prune_rule: | + Keep only if retarget comments or router issue creation remain + active. Downgrade to none if both surfaces are removed. + + actions: + access: write + phase: runtime + capability: | + 03-classify-repos.yml self-dispatches additional batches + (`actions.createWorkflowDispatch`) when unclassified repos + remain after a batch run. + proof_required: + - 03-classify-repos summary shows `Self-dispatched next batch` + - corresponding workflow_dispatch event in Actions audit log + prune_rule: | + Required as long as the classifier uses self-dispatch for + multi-batch processing. Reconsider if the classifier moves to a + single long-running job or becomes purely event-driven. + + pages: + access: write + phase: runtime + capability: | + 04-Build and Deploy Site uses `actions/deploy-pages@v4` to + publish docs/ to GitHub Pages. + proof_required: + - 04-Build and Deploy Site `deploy` job succeeds + - https://primeinc.github.io/github-stars/ serves the build + prune_rule: | + Keep while GitHub Pages is the deploy target. Drop if the site + moves to a different host (Vercel/Cloudflare/etc.). + + id-token: + access: write + phase: runtime + capability: | + OIDC token minting for GitHub Pages deploy + (actions/deploy-pages@v4 requires id-token: write). + proof_required: + - 04-Build and Deploy Site `deploy` job succeeds without OIDC + errors + prune_rule: Tied to pages:write - drop with it. + + administration: + access: write + phase: bootstrap/self-config + capability: | + Configure repository branch rulesets that protect `next` and + reserve `main` for release PRs from repo-owned `next`. GitHub's + repository ruleset API requires Administration repository + permission (write) for GitHub App installation tokens. + proof_required: + - App installation grants Administration: write on this repository + - ruleset creation/update run records the ruleset ids or settings URL + - `protect-next` targets refs/heads/next + - `protect-main-release-only` targets refs/heads/main and requires main-release-guard + prune_rule: | + Downgrade to read or remove after rulesets are created and stable, + unless the repo intentionally keeps App-managed ruleset drift repair. + This is high-authority bootstrap/self-config permission, not a + runtime catalog permission. + + models: + access: read + phase: runtime + capability: | + 03-classify-repos.yml uses `actions/ai-inference@v2` to call + GitHub Models for AI classification. + proof_required: + - 03-classify-repos `AI classify` step returns a non-empty + response file + prune_rule: | + Required while AI classification runs through GitHub Models. + Revisit when #71 lands the typed/grounded classifier - if it + moves to a different model surface, this permission goes away. + +# Permissions deliberately NOT granted (least-privilege evidence): +# - checks: not granted; we don't currently use the Checks API +# - deployments: not granted; pages handles the deploy surface +# - metadata: implicit (read-only) per GitHub default +# - packages: not granted; we don't publish packages +# - secrets: not granted; setup-doctor reads env, not secrets API +# - statuses: not granted; we use Checks via workflow run conclusions + +# Bucket classification (per #73 acceptance criteria): +buckets: + runtime_core: + - contents + - models + - pages + - id-token + - actions + runtime_branch_governance: + - pull_requests + - issues + bootstrap_self_config: + - workflows + - administration + speculative_remove_unless_proven: [] diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 000000000..e5c2db714 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,75 @@ + + +## Summary + + + +## Read-the-room evidence + +### Local refs read + +- [ ] `AGENTS.md` +- [ ] Issue body and comments (not just title) +- [ ] Affected workflow / source / test files +- [ ] Relevant docs under `docs/` or `.github-stars/docs/` +- [ ] Relevant `.sisyphus/proofs/*` plans if present + +### Upstream canonical refs read + +- [ ] `../refs/*` first-party source / docs +- [ ] First-party documentation (link) +- [ ] First-party tests / fixtures / examples +- [ ] First-party rationale (changelog, design note, RFC) + +### Mapping table + +| Local change | Local refs read | Upstream canonical source | Upstream test/fixture | Local adaptation | Proof / gate | +|---|---|---|---|---|---| +| | | | | | | + +### Evidence labels + +- **Direct evidence:** +- **Weak inference:** +- **Unsupported:** +- **Blocked:** +- **Contradicted:** + +## Test plan + +- [ ] `bun run gate` passes locally (10/10 stages) +- [ ] New tests added for new behavior +- [ ] Manual verification (describe) +- [ ] CI required-checks pass on this PR + +## Path-based gates that must pass + + + +- [ ] `.github/workflows/**` — actionlint clean + workflow-lint job (issue #62) +- [ ] `src/auth/**` — auth resolver tests + setup-doctor diagnostics (issue #69) +- [ ] `src/manifest/**` — schema + taxonomy gates (existing) + Zod registry (PR #79) +- [ ] `src/telemetry/**` — quarantined imports per eslint config (PR #79) +- [ ] `src/host-io/**` — sole node:fs/path/os consumer (PR #79) +- [ ] `src/cli/**` or `src/cli-*.ts` — dual-write contract (PR #79) +- [ ] `web/**` — Web CI + tsc --noEmit + bun build +- [ ] `docs/security.md` — SDL controls (issues #27, #29, #30, #31) +- [ ] Privacy-affecting (when #74 lands) — sentinel leak tests +- [ ] AI classifier (when #71 lands) — typed parser + grounding tests +- [ ] AGENTS.md or repo doctrine — linked issue + canonical mapping + +## Doctrines that must hold + +- [ ] No deferrals — every commit lands green; no "Phase X handles it" +- [ ] No handrolling SDKs — first-party typed SDKs only (octokit etc.) +- [ ] Canonical refs first — `../refs` over blogs / LLM memory +- [ ] TSDoc on every new public export in `src/**` +- [ ] Zod metadata via `.register(reg, meta)` for new schemas +- [ ] Telemetry is observability ONLY (never auth signal) + +🤖 Generated with [Claude Code](https://claude.com/claude-code) when applicable diff --git a/.github/workflows/00-ci.yml b/.github/workflows/00-ci.yml index 18dc9bc4c..fcece61e2 100644 --- a/.github/workflows/00-ci.yml +++ b/.github/workflows/00-ci.yml @@ -4,47 +4,35 @@ on: pull_request: branches: - main + - next push: branches: - main + - next permissions: contents: read jobs: gate: - # `pnpm gate` is the single readiness command per issue #69 lesson 1. - # Sub-stages: typecheck, test, validate (taxonomy + schema), generated - # artifact registry presence, actionlint workflow lint. + # `bun run gate` is the single readiness command. Sub-stages: typecheck, + # lint (biome + eslint), test (bun:test), validate (taxonomy + schema), + # no-loose-zod, dependency-cruiser, knip, generated-artifacts registry, + # actionlint. runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '22' - - - name: Install pnpm - # Pin a known-good pnpm version that matches lockfileVersion 9.0 - # (pnpm-lock.yaml). `pnpm@latest` previously broke this step with a - # silent ~3s failure that left zero diagnostic output. - run: npm install -g pnpm@10.13.1 + - name: Setup Bun + # Bun version is auto-detected from package.json `packageManager` + # field (currently "bun@1.3.13") per setup-bun README L11-15. + uses: oven-sh/setup-bun@v2 - name: Install dependencies - # Retry up to 3 attempts on transient registry/network failures; - # the previous run failed in ~3s with no useful log. - run: | - set -euo pipefail - for attempt in 1 2 3; do - if pnpm install --prefer-offline; then - exit 0 - fi - echo "::warning::pnpm install attempt $attempt failed; retrying in 5s..." - sleep 5 - done - echo "::error::pnpm install failed after 3 attempts" - exit 1 + # `bun install --frozen-lockfile` per refs/oven-sh/bun/docs/cli/install.mdx + # — fails the run if bun.lock is out of date instead of silently + # mutating the lockfile. + run: bun install --frozen-lockfile - name: Install actionlint (used by gate) env: @@ -59,24 +47,28 @@ jobs: echo "$RUNNER_TEMP/actionlint-bin" >> "$GITHUB_PATH" "$RUNNER_TEMP/actionlint-bin/actionlint" -version - - name: pnpm gate - run: pnpm gate + - name: bun gate + run: bun run gate - name: CI summary if: always() run: | { - echo "# CI — pnpm gate" + echo "# CI — bun gate" echo "" echo "- Workflow: \`${{ github.workflow }}\`" echo "- Run ID: \`${{ github.run_id }}\`" echo "- Trigger: \`${{ github.event_name }}\`" echo "- Commit: \`${{ github.sha }}\`" echo "" - echo "## Gate stages (\`pnpm gate\`)" - echo "- \`typecheck\` (tsc --noEmit)" - echo "- \`test\` (vitest)" + echo "## Gate stages (\`bun run gate\`)" + echo "- \`typecheck\` (tsc -b --pretty false)" + echo "- \`lint\` (biome + eslint, --max-warnings=0)" + echo "- \`test\` (bun test)" echo "- \`validate\` (taxonomy + schema)" + echo "- \`no-loose-zod\` (bans z.any() / z.unknown() at call sites)" + echo "- \`dependency-cruiser\` (architecture rules)" + echo "- \`knip\` (unused files / exports / deps)" echo "- generated-artifacts registry presence" echo "- \`actionlint\` workflow lint" echo "" @@ -85,7 +77,7 @@ jobs: } >> "$GITHUB_STEP_SUMMARY" workflow-lint: - # Cheap structural guards that pnpm gate's actionlint stage cannot + # Cheap structural guards that `bun run gate`'s actionlint stage cannot # express. See `.sisyphus/proofs/02M-mode-correction.md`. runs-on: ubuntu-latest steps: @@ -215,6 +207,6 @@ jobs: echo "- mixed-credential laundering guard (rejects \`STARS_TOKEN || GITHUB_TOKEN\` and \`app-token || secrets.\` patterns)" echo "- blocked-org name leakage guard (rejects \`blocked_orgs\` output / \`BLOCKED_ORGS\` env in workflow YAML)" echo "" - echo "actionlint runs inside \`pnpm gate\` (CI / gate job)." + echo "actionlint runs inside \`bun run gate\` (CI / gate job)." echo "Tracking issue for richer dry-run gates: #62" } >> "$GITHUB_STEP_SUMMARY" diff --git a/.github/workflows/00b-web-ci.yml b/.github/workflows/00b-web-ci.yml index a5a3ae422..14eefbee0 100644 --- a/.github/workflows/00b-web-ci.yml +++ b/.github/workflows/00b-web-ci.yml @@ -2,15 +2,18 @@ name: 'Web CI' on: - # Run on EVERY PR to main (no paths filter) so this can be a required - # status check without leaving non-web PRs stuck on "pending". The - # build is ~15s; the cost is negligible. See `.sisyphus/proofs/02-AUDIT-on-main.md` G2. + # Run on EVERY PR to main/next (no paths filter) so this can be a + # required status check without leaving non-web PRs stuck on "pending". + # The build is ~15s; the cost is negligible. See + # `.sisyphus/proofs/02-AUDIT-on-main.md` G2. pull_request: branches: - main + - next push: branches: - main + - next paths: - 'web/**' - 'repos.yml' @@ -32,12 +35,8 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - cache: 'npm' - cache-dependency-path: web/package-lock.json + - name: Setup Bun + uses: oven-sh/setup-bun@v2 # yq (mikefarah) is preinstalled on ubuntu-latest. Regenerate # web/public/data.json from repos.yml on every run so a malformed @@ -52,33 +51,37 @@ jobs: - name: Install dependencies working-directory: web - run: npm ci + run: bun install --frozen-lockfile - name: Lint id: lint working-directory: web - run: npm run lint + run: bun run lint - name: Build id: build working-directory: web - run: npm run build + run: bun run build - name: Verify build output + # TanStack Start emits dist/client/_shell.html as the SPA fallback; + # the deploy workflow renames it to index.html for the GH Pages + # publish step. The PR gate verifies the canonical artifact set + # before that rename. id: verify run: | set -euo pipefail missing=0 - for f in docs/index.html docs/data.json; do + for f in web/dist/client/_shell.html web/dist/client/data.json; do if [ ! -f "$f" ]; then echo "::error::Build output missing: $f" missing=1 fi done if [ "$missing" = "1" ]; then exit 1; fi - file_count=$(find docs -type f | wc -l | tr -d ' ') + file_count=$(find web/dist/client -type f | wc -l | tr -d ' ') echo "docs_files=$file_count" >> "$GITHUB_OUTPUT" - echo "docs/ contains $file_count files" + echo "web/dist/client/ contains $file_count files" - name: Web CI summary if: always() @@ -98,9 +101,9 @@ jobs: echo "- Commit: \`${{ github.sha }}\`" echo "" echo "## Gates" - echo "- \`npm ci\` (web)" - echo "- \`npm run lint\` (web): \`${LINT_OUTCOME:-skipped}\`" - echo "- \`npm run build\` (web): \`${BUILD_OUTCOME:-skipped}\`" + echo "- \`bun install --frozen-lockfile\` (web)" + echo "- \`bun run lint\` (web): \`${LINT_OUTCOME:-skipped}\`" + echo "- \`bun run build\` (web): \`${BUILD_OUTCOME:-skipped}\`" echo "- Build output verification: \`${VERIFY_OUTCOME:-skipped}\`" echo "" echo "## Outputs" diff --git a/.github/workflows/00c-main-release-guard.yml b/.github/workflows/00c-main-release-guard.yml new file mode 100644 index 000000000..504ad121a --- /dev/null +++ b/.github/workflows/00c-main-release-guard.yml @@ -0,0 +1,40 @@ +name: main-release-guard + +on: + pull_request: + branches: + - main + types: + - opened + - reopened + - synchronize + - edited + - ready_for_review + +permissions: + contents: read + +jobs: + main-release-guard: + name: main-release-guard + runs-on: ubuntu-latest + steps: + - name: Require repo-owned next as source branch for main + env: + BASE_REF: ${{ github.event.pull_request.base.ref }} + HEAD_REF: ${{ github.event.pull_request.head.ref }} + HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }} + BASE_REPO: ${{ github.repository }} + run: | + set -euo pipefail + echo "base=$BASE_REF" + echo "head=$HEAD_REF" + echo "head_repo=$HEAD_REPO" + echo "base_repo=$BASE_REPO" + + if [ "$BASE_REF" = "main" ] && { [ "$HEAD_REF" != "next" ] || [ "$HEAD_REPO" != "$BASE_REPO" ]; }; then + echo "::error::PRs into main must come from the repo-owned next branch. Retarget feature/chore/fork PRs to next first." + exit 1 + fi + + echo "main release guard passed: repo-owned next is the source branch." diff --git a/.github/workflows/00d-auto-retarget-main-prs.yml b/.github/workflows/00d-auto-retarget-main-prs.yml new file mode 100644 index 000000000..11042243b --- /dev/null +++ b/.github/workflows/00d-auto-retarget-main-prs.yml @@ -0,0 +1,59 @@ +name: auto-retarget-main-prs + +on: + pull_request_target: + branches: + - main + types: + - opened + - reopened + - edited + - ready_for_review + +permissions: + contents: read + +jobs: + retarget: + name: retarget-main-prs-to-next + runs-on: ubuntu-latest + steps: + - name: Create GitHub App token + id: app-token + uses: actions/create-github-app-token@v3 + with: + app-id: ${{ vars.GH_APP_CLIENT_ID }} + private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} + owner: ${{ github.repository_owner }} + repositories: ${{ github.event.repository.name }} + permission-pull-requests: write + permission-issues: write + + - name: Retarget non-release PRs away from main + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + REPO: ${{ github.repository }} + PR_NUMBER: ${{ github.event.pull_request.number }} + BASE_REF: ${{ github.event.pull_request.base.ref }} + HEAD_REF: ${{ github.event.pull_request.head.ref }} + HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }} + BASE_REPO: ${{ github.repository }} + run: | + set -euo pipefail + echo "base=$BASE_REF" + echo "head=$HEAD_REF" + echo "head_repo=$HEAD_REPO" + echo "base_repo=$BASE_REPO" + + if [ "$BASE_REF" != "main" ]; then + echo "PR does not target main; no retarget needed." + exit 0 + fi + + if [ "$HEAD_REF" = "next" ] && [ "$HEAD_REPO" = "$BASE_REPO" ]; then + echo "PR is the repo-owned next -> main release path; no retarget needed." + exit 0 + fi + + gh pr edit "$PR_NUMBER" --repo "$REPO" --base next + gh pr comment "$PR_NUMBER" --repo "$REPO" --body "Retargeted to \`next\`. Branch policy is feature/chore/fork PRs -> \`next\`, then repo-owned \`next\` -> \`main\` for release." diff --git a/.github/workflows/00e-bootstrap-branch-rulesets.yml b/.github/workflows/00e-bootstrap-branch-rulesets.yml new file mode 100644 index 000000000..ada839fc4 --- /dev/null +++ b/.github/workflows/00e-bootstrap-branch-rulesets.yml @@ -0,0 +1,168 @@ +name: bootstrap-branch-rulesets + +on: + workflow_dispatch: + inputs: + enforcement: + description: 'Ruleset enforcement mode: evaluate first, active when verified' + required: true + default: evaluate + type: choice + options: + - evaluate + - active + - disabled + +permissions: + contents: read + +jobs: + bootstrap: + name: bootstrap-branch-rulesets + runs-on: ubuntu-latest + steps: + - name: Create GitHub App token + id: app-token + uses: actions/create-github-app-token@v3 + with: + app-id: ${{ vars.GH_APP_CLIENT_ID }} + private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} + owner: ${{ github.repository_owner }} + repositories: ${{ github.event.repository.name }} + permission-administration: write + + - name: Upsert branch rulesets + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + REPO: ${{ github.repository }} + ENFORCEMENT: ${{ inputs.enforcement }} + run: | + set -euo pipefail + + upsert_ruleset() { + local name="$1" + local payload="$2" + local id + id=$(gh api "/repos/${REPO}/rulesets?includes_parents=false" --jq ".[] | select(.name == \"${name}\") | .id" | head -n 1 || true) + + if [ -n "${id}" ]; then + echo "Updating ruleset ${name} (${id})" + gh api \ + --method PUT \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + "/repos/${REPO}/rulesets/${id}" \ + --input "${payload}" \ + --jq '{id, name, enforcement, html_url: ._links.html.href}' + else + echo "Creating ruleset ${name}" + gh api \ + --method POST \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + "/repos/${REPO}/rulesets" \ + --input "${payload}" \ + --jq '{id, name, enforcement, html_url: ._links.html.href}' + fi + } + + cat > /tmp/protect-next.json < /tmp/protect-main-release-only.json <> "$GITHUB_STEP_SUMMARY" diff --git a/.github/workflows/01-fetch-stars.yml b/.github/workflows/01-fetch-stars.yml index db81aba46..ee966e22c 100644 --- a/.github/workflows/01-fetch-stars.yml +++ b/.github/workflows/01-fetch-stars.yml @@ -69,24 +69,16 @@ jobs: - name: Checkout repository uses: actions/checkout@v6 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '22' - - - name: Install pnpm - run: npm install -g pnpm@10.13.1 + - name: Setup Bun + # Bun version is auto-detected from package.json `packageManager` + # field (currently "bun@1.3.13") per setup-bun README L11-15. + uses: oven-sh/setup-bun@v2 - name: Install dependencies - run: | - set -euo pipefail - for attempt in 1 2 3; do - if pnpm install --prefer-offline; then exit 0; fi - echo "::warning::pnpm install attempt $attempt failed; retrying in 5s..." - sleep 5 - done - echo "::error::pnpm install failed after 3 attempts" - exit 1 + # `bun install --frozen-lockfile` per refs/oven-sh/bun/docs/cli/install.mdx + # — fails the run if bun.lock is out of date instead of silently + # mutating the lockfile. + run: bun install --frozen-lockfile - name: Resolve auth mode (setup-doctor) id: doctor @@ -98,7 +90,7 @@ jobs: STARS_TOKEN: ${{ secrets.STARS_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PAT_FALLBACK_TO_GITHUB_TOKEN: ${{ inputs.pat_fallback_to_github_token || 'true' }} - run: pnpm auth:doctor + run: bun run auth:doctor # Mint a GitHub App installation token ONLY when the resolver # selected github_app mode. Keeps the credential boundary clean — @@ -132,7 +124,7 @@ jobs: # Fallback target for runtime-state.ts; empty when not in pat mode. GITHUB_TOKEN_FALLBACK: ${{ steps.doctor.outputs.selected_mode == 'pat' && secrets.GITHUB_TOKEN || '' }} RESUME_CURSOR: ${{ inputs.resume_cursor }} - run: pnpm fetch:stars + run: bun run fetch:stars - name: Upload results # Upload on success and on partial-failure so the forensic JSON is preserved. diff --git a/.github/workflows/02-sync-stars.yml b/.github/workflows/02-sync-stars.yml index 9f123848e..74d642862 100644 --- a/.github/workflows/02-sync-stars.yml +++ b/.github/workflows/02-sync-stars.yml @@ -58,24 +58,16 @@ jobs: fetch-depth: 0 ref: main - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '22' - - - name: Install pnpm - run: npm install -g pnpm@10.13.1 + - name: Setup Bun + # Bun version is auto-detected from package.json `packageManager` + # field (currently "bun@1.3.13") per setup-bun README L11-15. + uses: oven-sh/setup-bun@v2 - name: Install dependencies - run: | - set -euo pipefail - for attempt in 1 2 3; do - if pnpm install --prefer-offline; then exit 0; fi - echo "::warning::pnpm install attempt $attempt failed; retrying in 5s..." - sleep 5 - done - echo "::error::pnpm install failed after 3 attempts" - exit 1 + # `bun install --frozen-lockfile` per refs/oven-sh/bun/docs/cli/install.mdx + # — fails the run if bun.lock is out of date instead of silently + # mutating the lockfile. + run: bun install --frozen-lockfile - name: Resolve auth mode (setup-doctor) id: doctor @@ -87,7 +79,7 @@ jobs: STARS_TOKEN: ${{ secrets.STARS_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PAT_FALLBACK_TO_GITHUB_TOKEN: ${{ inputs.pat_fallback_to_github_token || 'true' }} - run: pnpm auth:doctor + run: bun run auth:doctor - name: Mint GitHub App token (selected_mode=github_app only) id: app-token @@ -180,7 +172,7 @@ jobs: env: GITHUB_USER: ${{ github.repository_owner }} MANIFEST_REMOVAL_OVERRIDE: ${{ inputs.removal_override }} - run: pnpm sync:stars + run: bun run sync:stars - name: Validate manifest (schema gate, blocks commit) if: steps.diff.outputs.changed == 'true' diff --git a/.github/workflows/03-classify-repos.yml b/.github/workflows/03-classify-repos.yml index 1a0c87b72..1104ed06b 100644 --- a/.github/workflows/03-classify-repos.yml +++ b/.github/workflows/03-classify-repos.yml @@ -42,19 +42,16 @@ jobs: fetch-depth: 0 ref: main - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '22' - - - name: Install pnpm - # Pinned to match 00-ci.yml. `pnpm@latest` (v11+) is stricter on - # ignored build scripts and exits 1 even when the script is allowed - # via onlyBuiltDependencies (esbuild has multiple versions in lock). - run: npm install -g pnpm@10.13.1 + - name: Setup Bun + # Bun version is auto-detected from package.json `packageManager` + # field (currently "bun@1.3.13") per setup-bun README L11-15. + uses: oven-sh/setup-bun@v2 - name: Install dependencies - run: pnpm install + # `bun install --frozen-lockfile` per refs/oven-sh/bun/docs/cli/install.mdx + # — fails the run if bun.lock is out of date instead of silently + # mutating the lockfile. + run: bun install --frozen-lockfile - run: | for i in 1 2 3; do @@ -170,9 +167,22 @@ jobs: EXAMPLE: [{"repo":"microsoft/vscode","categories":["dev-tools"],"tags":["code-editor","lang:ts"],"framework":null}]`; fs.writeFileSync('.github-stars/data/system-prompt.txt', systemPrompt); - fs.writeFileSync('.github-stars/data/user-prompt.txt', + fs.writeFileSync('.github-stars/data/user-prompt.txt', 'Classify these repositories:\n\n' + JSON.stringify(repoData, null, 2)); + // Write batch-meta for the typed validator (#71). The TS + // gate consumes this + the AI response to produce a typed + // ClassifierValidationResult before any manifest mutation. + const batchMeta = { + batchRepos: repoData.map(r => r.repo), + taxonomy: { + categories_allowed: allowedCategories, + frameworks_allowed: allowedFrameworks, + }, + evidence: repoData.map(r => ({ repo: r.repo, language: r.language })), + }; + fs.writeFileSync('.github-stars/data/batch-meta.json', JSON.stringify(batchMeta)); + core.setOutput('has_repos', 'true'); core.setOutput('repo_count', batch.length); @@ -186,133 +196,87 @@ jobs: system-prompt-file: .github-stars/data/system-prompt.txt prompt-file: .github-stars/data/user-prompt.txt + # Typed validation gate per #71. The AI response file is parsed + # and validated against the canonical taxonomy + per-repo + # evidence BEFORE the apply step touches the manifest. Rows that + # fail validation never reach reconciliation; rows whose + # `lang:X` tags contradict gathered metadata are downgraded to + # `needs_review` and surface for human eyes. See + # `src/classifier/validator.ts` for the validation pipeline and + # `src/classifier/validator.test.ts` for the 9 failure-mode + # fixtures. + - name: Validate AI output (typed gate) + id: validate-ai + if: steps.prep.outputs.has_repos == 'true' + env: + AI_RESPONSE_FILE: ${{ steps.ai.outputs.response-file }} + run: | + set -euo pipefail + bun run classify:apply \ + "$AI_RESPONSE_FILE" \ + .github-stars/data/batch-meta.json \ + .github-stars/data/classifier-result.json + + # Apply step now consumes the TYPED validation result from the + # validate-ai step (#71 / src/classifier/cli.ts). Raw model + # output never reaches manifest mutation — every row that + # mutates `data.repositories[idx]` is a `decision: "accept"` or + # `decision: "needs_review"` row from + # `ClassifierValidationResult`. Rejected rows are dropped with + # their structured reason surfaced in the workflow summary. - name: Apply id: apply if: steps.prep.outputs.has_repos == 'true' uses: actions/github-script@v8 - env: - AI_RESPONSE_FILE: ${{ steps.ai.outputs.response-file }} with: script: | const fs = require('fs'); const { execSync } = require('child_process'); - - // Read from file to avoid template literal escaping issues - const responseFile = process.env.AI_RESPONSE_FILE; - let result = fs.readFileSync(responseFile, 'utf8').trim() - .replace(/^```json\s*/i, '').replace(/\s*```$/i, ''); - - // Try to fix common JSON issues - // Remove trailing commas before ] or } - result = result.replace(/,(\s*[\]}])/g, '$1'); - // Fix unescaped newlines in strings - result = result.replace(/:\s*"([^"]*)\n([^"]*)"/g, (m, a, b) => `: "${a}\\n${b}"`); - - let classifications; - try { - // Basic cleaning of common AI artifacts - let cleanedResult = result; - if (cleanedResult.includes('```')) { - const jsonMatch = cleanedResult.match(/```(?:json)?\s*([\s\S]*?)\s*```/); - if (jsonMatch) cleanedResult = jsonMatch[1]; - } - - // Handle potential truncated JSON - if (cleanedResult.endsWith('...')) { - cleanedResult = cleanedResult.substring(0, cleanedResult.lastIndexOf('}') + 1); - if (!cleanedResult.endsWith(']')) cleanedResult += ']'; - } - - classifications = JSON.parse(cleanedResult); - } catch (e) { - console.log('JSON parse failed, attempting fallback extraction:', e.message); - // Try to extract valid JSON array if wrapped in other content - const match = result.match(/\[[\s\S]*\]/); - if (match) { - try { - classifications = JSON.parse(match[0]); - } catch (e2) { - console.log('Fallback extraction failed, will retry workflow'); - core.setOutput('retry', 'true'); - core.setOutput('count', 0); - return; - } - } else { - console.log('No JSON array found, will retry workflow'); - core.setOutput('retry', 'true'); - core.setOutput('count', 0); - return; - } - } - - if (!Array.isArray(classifications)) { - console.log('Not an array, will retry workflow'); - core.setOutput('retry', 'true'); - core.setOutput('count', 0); - return; - } + const validation = JSON.parse(fs.readFileSync('.github-stars/data/classifier-result.json', 'utf8')); const yaml = fs.readFileSync('repos.yml', 'utf8'); const json = execSync('yq eval -o=json -', { input: yaml, encoding: 'utf8', maxBuffer: 50*1024*1024 }); const data = JSON.parse(json); - // SECURITY: Extract taxonomy and create canonical sets for validation - const allowedCategories = new Set((data.taxonomy?.categories_allowed || []).map(c => c.trim().toLowerCase())); - const allowedFrameworks = new Set((data.taxonomy?.frameworks_allowed || []).map(f => f.trim().toLowerCase())); - - console.log(`Loaded taxonomy: ${allowedCategories.size} categories, ${allowedFrameworks.size} frameworks`); + // Every row in `accepted` and `needs_review` already passed the + // TS validator (taxonomy + framework + tag-pattern + lang + // cross-check). Rejected rows are not visible here at all. + const apply = (row, needsReview) => { + const idx = data.repositories.findIndex(r => r.repo === row.repo); + if (idx === -1) return false; + data.repositories[idx].categories = row.categories.length > 0 ? row.categories : ["unclassified"]; + data.repositories[idx].tags = row.tags; + data.repositories[idx].framework = row.framework; + data.repositories[idx].needs_review = needsReview; + data.repositories[idx].ai_classification = { + model: "gpt-4o", + classified_at: new Date().toISOString(), + prompt_version: "v4-typed", + }; + return true; + }; let count = 0; - const tagPattern = /^([a-z]+:)?[a-z0-9][a-z0-9-]*$/; - - for (const c of classifications) { - const idx = data.repositories.findIndex(r => r.repo === c.repo); - if (idx !== -1) { - // SECURITY: Validate categories against taxonomy with canonicalization - const safeCategories = (c.categories || []) - .filter(cat => typeof cat === 'string' && /^[a-z][a-z0-9-]*$/.test(cat)) - .map(cat => cat.trim().toLowerCase()) - .filter(cat => allowedCategories.has(cat)) - .slice(0, 5); - - if (safeCategories.length === 0 && (c.categories || []).length > 0) { - console.log(`Warning: All categories rejected for ${c.repo}, invalid: ${(c.categories || []).join(', ')}`); - } - - // Sanitize tags: lowercase, replace space with dash, filter by pattern - const safeTags = (c.tags || []) - .map(t => String(t).toLowerCase().replace(/[^a-z0-9-:]/g, '-').replace(/-+/g, '-').replace(/^-|-$/g, '')) - .filter(t => tagPattern.test(t)) - .slice(0, 20); - - // SECURITY: Validate framework against taxonomy with canonicalization - let validFramework = null; - if (c.framework && typeof c.framework === 'string') { - const canonicalFramework = c.framework.trim().toLowerCase(); - validFramework = allowedFrameworks.has(canonicalFramework) ? canonicalFramework : null; - if (!validFramework && c.framework) { - console.log(`Warning: Framework "${c.framework}" not in taxonomy for ${c.repo}`); - } - } - - const allCategoriesRejected = safeCategories.length === 0 && (c.categories || []).length > 0; - data.repositories[idx].categories = safeCategories.length > 0 ? safeCategories : ["unclassified"]; - data.repositories[idx].tags = safeTags; - data.repositories[idx].framework = validFramework; - // Keep needs_review=true if all AI categories were rejected, so it can be retried - data.repositories[idx].needs_review = allCategoriesRejected; - data.repositories[idx].ai_classification = { - model: "gpt-4o", - classified_at: new Date().toISOString(), - prompt_version: "v3" - }; - count++; - } + for (const row of validation.accepted) { + if (apply(row, false)) count++; + } + for (const row of validation.needsReview) { + if (apply(row, true)) count++; + } + + // Surface rejected reasons in workflow log (sample first 5). + for (const row of validation.rejected.slice(0, 5)) { + console.log(`::warning::classifier rejected ${row.repo}: ${row.reason}`); } data.manifest_metadata.manifest_updated_at = new Date().toISOString(); fs.writeFileSync('.github-stars/data/manifest.json', JSON.stringify(data, null, 2)); core.setOutput('count', count); + core.setOutput('accepted', validation.summary.acceptedCount); + core.setOutput('needs_review', validation.summary.needsReviewCount); + core.setOutput('rejected', validation.summary.rejectedCount); + core.setOutput('missing', validation.summary.missingFromResponse.length); + core.setOutput('extra', validation.summary.extraInResponse.length); - name: Convert to YAML if: steps.apply.outputs.count > 0 @@ -330,7 +294,7 @@ jobs: if: steps.apply.outputs.count > 0 run: | echo "Running taxonomy normalization..." - pnpm normalize + bun run normalize echo "Normalization complete" # HARD GATE: structural JSON Schema check on the normalized manifest. @@ -355,7 +319,7 @@ jobs: if: steps.apply.outputs.count > 0 run: | echo "Running strict taxonomy validation..." - pnpm validate + bun run validate echo "Validation passed" - name: Commit @@ -388,7 +352,11 @@ jobs: core.setOutput('has_more', remaining > 0); - name: Trigger next - if: steps.remaining.outputs.has_more == 'true' || steps.apply.outputs.retry == 'true' + # Self-dispatch when there are still unclassified repos. The + # legacy `apply.outputs.retry` signal is gone — model output + # parse failures now fail the validate-ai step (#71), which + # fails the workflow. The operator re-dispatches. + if: steps.remaining.outputs.has_more == 'true' uses: actions/github-script@v8 with: script: | @@ -406,7 +374,11 @@ jobs: HAS_REPOS: ${{ steps.prep.outputs.has_repos }} PREP_COUNT: ${{ steps.prep.outputs.repo_count }} APPLY_COUNT: ${{ steps.apply.outputs.count }} - APPLY_RETRY: ${{ steps.apply.outputs.retry }} + APPLY_ACCEPTED: ${{ steps.apply.outputs.accepted }} + APPLY_NEEDS_REVIEW: ${{ steps.apply.outputs.needs_review }} + APPLY_REJECTED: ${{ steps.apply.outputs.rejected }} + APPLY_MISSING: ${{ steps.apply.outputs.missing }} + APPLY_EXTRA: ${{ steps.apply.outputs.extra }} REMAINING: ${{ steps.remaining.outputs.count }} HAS_MORE: ${{ steps.remaining.outputs.has_more }} run: | @@ -423,18 +395,23 @@ jobs: echo "- Has unclassified repos: \`${HAS_REPOS:-unknown}\`" echo "- Batch size submitted: \`${PREP_COUNT:-0}\`" echo "" + echo "## Typed validation (#71 — bun run classify:apply)" + echo "- Accepted: \`${APPLY_ACCEPTED:-0}\`" + echo "- Needs review: \`${APPLY_NEEDS_REVIEW:-0}\` _(lang tag contradicted by metadata)_" + echo "- Rejected: \`${APPLY_REJECTED:-0}\` _(unknown categories, extra rows, malformed)_" + echo "- Missing from response: \`${APPLY_MISSING:-0}\` _(model dropped a row)_" + echo "- Extra in response: \`${APPLY_EXTRA:-0}\` _(model returned a repo not in batch)_" + echo "" echo "## Outputs" - echo "- Classified this run: \`${APPLY_COUNT:-0}\`" - echo "- AI parse retry needed: \`${APPLY_RETRY:-false}\`" + echo "- Classified this run: \`${APPLY_COUNT:-0}\` _(accepted + needs_review)_" echo "- Remaining unclassified: \`${REMAINING:-n/a}\`" echo "- Self-dispatched next batch: \`${HAS_MORE:-false}\`" echo "" echo "## Gates (in order)" - echo "- AI categories filtered against \`taxonomy.categories_allowed\`" - echo "- AI framework filtered against \`taxonomy.frameworks_allowed\`" - echo "- \`pnpm normalize\` (in-place canonicalization of AI output)" + echo "- \`bun run classify:apply\` (typed schema + taxonomy + framework + lang-tag evidence; \`src/classifier/validator.ts\`)" + echo "- \`bun run normalize\` (in-place canonicalization of accepted rows)" echo "- \`cardinalby/schema-validator-action@v3\` (mode: default) against \`schemas/repos-schema.json\` — blocks commit" - echo "- \`pnpm validate\` (taxonomy strict via \`src/cli-validate.ts\`) — blocks commit" + echo "- \`bun run validate\` (taxonomy strict via \`src/cli-validate.ts\`) — blocks commit" echo "" echo "## Next stage" if [ "${HAS_MORE:-false}" = "true" ]; then diff --git a/.github/workflows/04-build-site.yml b/.github/workflows/04-build-site.yml index 594a4d0bd..ff4b01225 100644 --- a/.github/workflows/04-build-site.yml +++ b/.github/workflows/04-build-site.yml @@ -44,29 +44,42 @@ jobs: yq eval -o=json '.' repos.yml > web/public/data.json echo "Generated web/public/data.json" - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - cache: 'npm' - cache-dependency-path: web/package-lock.json + - name: Setup Bun + # Bun version is auto-detected from package.json `packageManager` + # (currently bun@1.3.13 in the repo root) per setup-bun README. + uses: oven-sh/setup-bun@v2 - name: Install Dependencies working-directory: web - run: npm ci + run: bun install --frozen-lockfile - name: Lint Code working-directory: web - run: npm run lint + run: bun run lint - name: Build React App working-directory: web - run: npm run build - - - name: Ensure data.json exists in build output + run: bun run build + + - name: Stage build output to docs/ for GH Pages + # TanStack Start emits dist/client/_shell.html as the SPA fallback. + # GitHub Pages serves index.html at /, so we rename on stage. The + # whole dist/client/ tree carries the assets/ + data.json copy + # vite produced from public/. + # + # Hand-authored docs/ files (e.g. docs/security.md) are + # additive — we sweep only the build-managed paths so the + # deploy never trashes content the build doesn't own. run: | + set -euo pipefail + rm -rf docs/assets docs/_shell.html docs/index.html docs/data.json + mkdir -p docs + cp -r web/dist/client/. docs/ + mv docs/_shell.html docs/index.html + # Re-write data.json from the latest repos.yml so a manifest + # change between checkout and build doesn't ship stale data. yq eval -o=json '.' repos.yml > docs/data.json - echo "Regenerated docs/data.json after build" + echo "Staged docs/ from web/dist/client/" - name: Upload Pages artifact id: upload @@ -97,9 +110,9 @@ jobs: fi echo "" echo "## Gates" - echo "- \`npm ci\` (web)" - echo "- \`npm run lint\` (web)" - echo "- \`npm run build\` (web → \`docs/\`)" + echo "- \`bun install --frozen-lockfile\` (web)" + echo "- \`bun run lint\` (web)" + echo "- \`bun run build\` (web → \`web/dist/client/\` → \`docs/\`)" echo "" echo "## Outputs" if [ -d docs ]; then @@ -138,14 +151,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' + - name: Setup Bun + uses: oven-sh/setup-bun@v2 - name: Install Dependencies working-directory: web - run: npm ci + run: bun install --frozen-lockfile - name: Wait for Pages CDN propagation shell: bash @@ -167,7 +178,7 @@ jobs: - name: Run Playwright tests working-directory: web - run: npx playwright test + run: bun x playwright test - name: Upload verification screenshot uses: actions/upload-artifact@v4 diff --git a/.gitignore b/.gitignore index c37284759..f342fc213 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,15 @@ yq # Local one-shot reproduction sandboxes (never committed). .tmp-repro/ .tmp-*.log + +# Agent / tooling local state — never committed. +.claude/ +.serena/ +.sisyphus/ + +# Generated outputs (TS incremental cache, paths.json projection, +# coverage, reports, dependency-cruiser SVG, etc.). +generated/ +coverage/ +reports/ +*.tsbuildinfo diff --git a/AGENTS.md b/AGENTS.md index 502306ab3..8fc54260c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,6 +2,53 @@ This file contains instructions for AI agents (and human contributors) working on this codebase. +## 0. Read-the-room rule (mandatory before writing code) + +**No implementation begins without first-party canonical evidence.** + +Required sequence on every implementation surface: + +```text +read local refs (this file, the issue body+comments, the affected + workflow/source/test files, .github-stars/docs/* if relevant) + -> find upstream canonical implementation shape (../refs/* first; + first-party docs second; first-party source third; first-party + tests/fixtures fourth) + -> understand why upstream chose the shape (read the rationale, + not just the code) + -> map upstream shape to local constraints (host-io boundary, Zod + registry, telemetry doctrine, no-loose-zod, no-handrolling-SDKs) + -> write the smallest coherent patch + -> prove it with `bun run gate` (10 stages must pass) + targeted + tests +``` + +**Forbidden as primary authority:** blog posts, StackOverflow answers, +LLM memory, unread search-result snippets, "I've done this before" in +another repo. Practitioner sources are usable only after first-party +sources are exhausted. + +**Every PR must include the read-the-room evidence block** specified +in `.github/PULL_REQUEST_TEMPLATE.md`. No block, no merge. + +**Evidence labels** (use in PR body and completion comments): + +```text +Direct evidence: exact local file, issue, upstream doc/source/test, + command output, workflow run, or artifact. +Weak inference: plausible mapping from direct evidence but not + literally proven. +Unsupported: claim not grounded in read evidence. +Blocked: required source/file/tool unavailable. +Contradicted: direct evidence conflicts with the implementation claim. +``` + +Source: issue #75. Doctrine: PRs that skip this rule produce YAML +taxidermy and fake architecture; the rule is enforceable governance, +not aspiration. + + + ## 1. Project Overview This is a **TypeScript control plane orchestrated by GitHub Actions** for curating starred repositories. Per issue #69, runtime policy lives in typed modules under `src/`; workflow YAML is orchestration only. - **Core logic**: typed modules under `src/auth/`, `src/fetch/`, `src/sync/`, `src/diagnostics/`, `src/generated/`, `src/gate/`, plus the existing `src/manifest/`. Workflows under `.github/workflows/` invoke these via `pnpm - - diff --git a/web/package-lock.json b/web/package-lock.json deleted file mode 100644 index 9837d9211..000000000 --- a/web/package-lock.json +++ /dev/null @@ -1,3001 +0,0 @@ -{ - "name": "web", - "version": "0.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "web", - "version": "0.0.0", - "dependencies": { - "fuse.js": "^7.1.0", - "lucide-react": "^0.562.0", - "react": "^19.2.0", - "react-dom": "^19.2.0" - }, - "devDependencies": { - "@eslint/js": "^9.39.1", - "@playwright/test": "1.57.0", - "@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": "^17.0.0", - "vite": "^7.3.2" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", - "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.27.1", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.5.tgz", - "integrity": "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.5.tgz", - "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.5", - "@babel/helper-compilation-targets": "^7.27.2", - "@babel/helper-module-transforms": "^7.28.3", - "@babel/helpers": "^7.28.4", - "@babel/parser": "^7.28.5", - "@babel/template": "^7.27.2", - "@babel/traverse": "^7.28.5", - "@babel/types": "^7.28.5", - "@jridgewell/remapping": "^2.3.5", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/generator": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.5.tgz", - "integrity": "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.28.5", - "@babel/types": "^7.28.5", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", - "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.27.2", - "@babel/helper-validator-option": "^7.27.1", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-globals": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", - "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", - "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.27.1", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.28.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", - "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1", - "@babel/traverse": "^7.28.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", - "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", - "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", - "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz", - "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.27.2", - "@babel/types": "^7.28.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz", - "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.5" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-self": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz", - "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-source": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz", - "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/template": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", - "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/parser": "^7.27.2", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.5.tgz", - "integrity": "sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.28.5", - "@babel/helper-globals": "^7.28.0", - "@babel/parser": "^7.28.5", - "@babel/template": "^7.27.2", - "@babel/types": "^7.28.5", - "debug": "^4.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.28.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz", - "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.28.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.2.tgz", - "integrity": "sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.2.tgz", - "integrity": "sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.2.tgz", - "integrity": "sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.2.tgz", - "integrity": "sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.2.tgz", - "integrity": "sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.2.tgz", - "integrity": "sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.2.tgz", - "integrity": "sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.2.tgz", - "integrity": "sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.2.tgz", - "integrity": "sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.2.tgz", - "integrity": "sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.2.tgz", - "integrity": "sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.2.tgz", - "integrity": "sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.2.tgz", - "integrity": "sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.2.tgz", - "integrity": "sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.2.tgz", - "integrity": "sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.2.tgz", - "integrity": "sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.2.tgz", - "integrity": "sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.2.tgz", - "integrity": "sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.2.tgz", - "integrity": "sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.2.tgz", - "integrity": "sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.2.tgz", - "integrity": "sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.2.tgz", - "integrity": "sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.2.tgz", - "integrity": "sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.2.tgz", - "integrity": "sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.2.tgz", - "integrity": "sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.2.tgz", - "integrity": "sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", - "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", - "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/config-array": { - "version": "0.21.1", - "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz", - "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/object-schema": "^2.1.7", - "debug": "^4.3.1", - "minimatch": "^3.1.2" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/config-helpers": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", - "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/core": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", - "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@types/json-schema": "^7.0.15" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz", - "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.1", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@eslint/js": { - "version": "9.39.2", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz", - "integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - } - }, - "node_modules/@eslint/object-schema": { - "version": "2.1.7", - "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", - "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@eslint/plugin-kit": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", - "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@eslint/core": "^0.17.0", - "levn": "^0.4.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/@humanfs/core": { - "version": "0.19.1", - "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", - "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanfs/node": { - "version": "0.16.7", - "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", - "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@humanfs/core": "^0.19.1", - "@humanwhocodes/retry": "^0.4.0" - }, - "engines": { - "node": ">=18.18.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/retry": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", - "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=18.18" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", - "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/remapping": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", - "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@playwright/test": { - "version": "1.57.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.57.0.tgz", - "integrity": "sha512-6TyEnHgd6SArQO8UO2OMTxshln3QMWBtPGrOCgs3wVEmQmwyuNtB10IZMfmYDE0riwNR1cu4q+pPcxMVtaG3TA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "playwright": "1.57.0" - }, - "bin": { - "playwright": "cli.js" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@rolldown/pluginutils": { - "version": "1.0.0-beta.53", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.53.tgz", - "integrity": "sha512-vENRlFU4YbrwVqNDZ7fLvy+JR1CRkyr01jhSiDpE1u6py3OMzQfztQU2jxykW3ALNxO4kSlqIDeYyD0Y9RcQeQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz", - "integrity": "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz", - "integrity": "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz", - "integrity": "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz", - "integrity": "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz", - "integrity": "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz", - "integrity": "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz", - "integrity": "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz", - "integrity": "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz", - "integrity": "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz", - "integrity": "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz", - "integrity": "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz", - "integrity": "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz", - "integrity": "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz", - "integrity": "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz", - "integrity": "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz", - "integrity": "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz", - "integrity": "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz", - "integrity": "sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.59.0.tgz", - "integrity": "sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.59.0.tgz", - "integrity": "sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ] - }, - "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.59.0.tgz", - "integrity": "sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.59.0.tgz", - "integrity": "sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.59.0.tgz", - "integrity": "sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.59.0.tgz", - "integrity": "sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.59.0.tgz", - "integrity": "sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", - "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", - "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.2" - } - }, - "node_modules/@types/estree": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", - "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/react": { - "version": "19.2.8", - "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.8.tgz", - "integrity": "sha512-3MbSL37jEchWZz2p2mjntRZtPt837ij10ApxKfgmXCTuHWagYg7iA5bqPw6C8BMPfwidlvfPI/fxOc42HLhcyg==", - "dev": true, - "license": "MIT", - "dependencies": { - "csstype": "^3.2.2" - } - }, - "node_modules/@types/react-dom": { - "version": "19.2.3", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", - "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "@types/react": "^19.2.0" - } - }, - "node_modules/@vitejs/plugin-react": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.1.2.tgz", - "integrity": "sha512-EcA07pHJouywpzsoTUqNh5NwGayl2PPVEJKUSinGGSxFGYn+shYbqMGBg6FXDqgXum9Ou/ecb+411ssw8HImJQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.28.5", - "@babel/plugin-transform-react-jsx-self": "^7.27.1", - "@babel/plugin-transform-react-jsx-source": "^7.27.1", - "@rolldown/pluginutils": "1.0.0-beta.53", - "@types/babel__core": "^7.20.5", - "react-refresh": "^0.18.0" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "peerDependencies": { - "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" - } - }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/baseline-browser-mapping": { - "version": "2.9.14", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.14.tgz", - "integrity": "sha512-B0xUquLkiGLgHhpPBqvl7GWegWBUNuujQ6kXd/r1U38ElPT6Ok8KZ8e+FpUGEc2ZoRQUzq/aUnaKFc/svWUGSg==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "baseline-browser-mapping": "dist/cli.js" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/browserslist": { - "version": "4.28.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", - "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "baseline-browser-mapping": "^2.9.0", - "caniuse-lite": "^1.0.30001759", - "electron-to-chromium": "^1.5.263", - "node-releases": "^2.0.27", - "update-browserslist-db": "^1.2.0" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001764", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001764.tgz", - "integrity": "sha512-9JGuzl2M+vPL+pz70gtMF9sHdMFbY9FJaQBi186cHKH3pSzDvzoUJUPV6fqiKIMyXbud9ZLg4F3Yza1vJ1+93g==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "CC-BY-4.0" - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/csstype": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", - "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/electron-to-chromium": { - "version": "1.5.267", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", - "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==", - "dev": true, - "license": "ISC" - }, - "node_modules/esbuild": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.2.tgz", - "integrity": "sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.27.2", - "@esbuild/android-arm": "0.27.2", - "@esbuild/android-arm64": "0.27.2", - "@esbuild/android-x64": "0.27.2", - "@esbuild/darwin-arm64": "0.27.2", - "@esbuild/darwin-x64": "0.27.2", - "@esbuild/freebsd-arm64": "0.27.2", - "@esbuild/freebsd-x64": "0.27.2", - "@esbuild/linux-arm": "0.27.2", - "@esbuild/linux-arm64": "0.27.2", - "@esbuild/linux-ia32": "0.27.2", - "@esbuild/linux-loong64": "0.27.2", - "@esbuild/linux-mips64el": "0.27.2", - "@esbuild/linux-ppc64": "0.27.2", - "@esbuild/linux-riscv64": "0.27.2", - "@esbuild/linux-s390x": "0.27.2", - "@esbuild/linux-x64": "0.27.2", - "@esbuild/netbsd-arm64": "0.27.2", - "@esbuild/netbsd-x64": "0.27.2", - "@esbuild/openbsd-arm64": "0.27.2", - "@esbuild/openbsd-x64": "0.27.2", - "@esbuild/openharmony-arm64": "0.27.2", - "@esbuild/sunos-x64": "0.27.2", - "@esbuild/win32-arm64": "0.27.2", - "@esbuild/win32-ia32": "0.27.2", - "@esbuild/win32-x64": "0.27.2" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "9.39.2", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz", - "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.1", - "@eslint/config-helpers": "^0.4.2", - "@eslint/core": "^0.17.0", - "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "9.39.2", - "@eslint/plugin-kit": "^0.4.1", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.4.0", - "eslint-visitor-keys": "^4.2.1", - "espree": "^10.4.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } - } - }, - "node_modules/eslint-plugin-react-hooks": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz", - "integrity": "sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/core": "^7.24.4", - "@babel/parser": "^7.24.4", - "hermes-parser": "^0.25.1", - "zod": "^3.25.0 || ^4.0.0", - "zod-validation-error": "^3.5.0 || ^4.0.0" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" - } - }, - "node_modules/eslint-plugin-react-refresh": { - "version": "0.4.26", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.26.tgz", - "integrity": "sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "eslint": ">=8.40" - } - }, - "node_modules/eslint-scope": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", - "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", - "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", - "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT" - }, - "node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/file-entry-cache": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", - "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "flat-cache": "^4.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", - "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.4" - }, - "engines": { - "node": ">=16" - } - }, - "node_modules/flatted": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", - "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", - "dev": true, - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/fuse.js": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/fuse.js/-/fuse.js-7.1.0.tgz", - "integrity": "sha512-trLf4SzuuUxfusZADLINj+dE8clK1frKdmqiJNb1Es75fmI5oY6X2mxLVUciLLjxqw/xr72Dhy+lER6dGd02FQ==", - "license": "Apache-2.0", - "engines": { - "node": ">=10" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "17.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-17.0.0.tgz", - "integrity": "sha512-gv5BeD2EssA793rlFWVPMMCqefTlpusw6/2TbAVMy0FzcG8wKJn4O+NqJ4+XWmmwrayJgw5TzrmWjFgmz1XPqw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/hermes-estree": { - "version": "0.25.1", - "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", - "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", - "dev": true, - "license": "MIT" - }, - "node_modules/hermes-parser": { - "version": "0.25.1", - "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", - "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "hermes-estree": "0.25.1" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", - "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/lucide-react": { - "version": "0.562.0", - "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.562.0.tgz", - "integrity": "sha512-82hOAu7y0dbVuFfmO4bYF1XEwYk/mEbM5E+b1jgci/udUBEE/R7LF5Ip0CCEmXe8AybRM8L+04eP+LGZeDvkiw==", - "license": "ISC", - "peerDependencies": { - "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" - } - }, - "node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/node-releases": { - "version": "2.0.27", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", - "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", - "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/playwright": { - "version": "1.57.0", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.57.0.tgz", - "integrity": "sha512-ilYQj1s8sr2ppEJ2YVadYBN0Mb3mdo9J0wQ+UuDhzYqURwSoW4n1Xs5vs7ORwgDGmyEh33tRMeS8KhdkMoLXQw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "playwright-core": "1.57.0" - }, - "bin": { - "playwright": "cli.js" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "fsevents": "2.3.2" - } - }, - "node_modules/playwright-core": { - "version": "1.57.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.57.0.tgz", - "integrity": "sha512-agTcKlMw/mjBWOnD6kFZttAAGHgi/Nw0CZ2o6JqWSbMlI219lAFLZZCyqByTsvVAJq5XA5H8cA6PrvBRpBWEuQ==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "playwright-core": "cli.js" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/postcss": { - "version": "8.5.14", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz", - "integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.11", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/react": { - "version": "19.2.3", - "resolved": "https://registry.npmjs.org/react/-/react-19.2.3.tgz", - "integrity": "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dom": { - "version": "19.2.3", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.3.tgz", - "integrity": "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==", - "license": "MIT", - "dependencies": { - "scheduler": "^0.27.0" - }, - "peerDependencies": { - "react": "^19.2.3" - } - }, - "node_modules/react-refresh": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz", - "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/rollup": { - "version": "4.59.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz", - "integrity": "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "1.0.8" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.59.0", - "@rollup/rollup-android-arm64": "4.59.0", - "@rollup/rollup-darwin-arm64": "4.59.0", - "@rollup/rollup-darwin-x64": "4.59.0", - "@rollup/rollup-freebsd-arm64": "4.59.0", - "@rollup/rollup-freebsd-x64": "4.59.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.59.0", - "@rollup/rollup-linux-arm-musleabihf": "4.59.0", - "@rollup/rollup-linux-arm64-gnu": "4.59.0", - "@rollup/rollup-linux-arm64-musl": "4.59.0", - "@rollup/rollup-linux-loong64-gnu": "4.59.0", - "@rollup/rollup-linux-loong64-musl": "4.59.0", - "@rollup/rollup-linux-ppc64-gnu": "4.59.0", - "@rollup/rollup-linux-ppc64-musl": "4.59.0", - "@rollup/rollup-linux-riscv64-gnu": "4.59.0", - "@rollup/rollup-linux-riscv64-musl": "4.59.0", - "@rollup/rollup-linux-s390x-gnu": "4.59.0", - "@rollup/rollup-linux-x64-gnu": "4.59.0", - "@rollup/rollup-linux-x64-musl": "4.59.0", - "@rollup/rollup-openbsd-x64": "4.59.0", - "@rollup/rollup-openharmony-arm64": "4.59.0", - "@rollup/rollup-win32-arm64-msvc": "4.59.0", - "@rollup/rollup-win32-ia32-msvc": "4.59.0", - "@rollup/rollup-win32-x64-gnu": "4.59.0", - "@rollup/rollup-win32-x64-msvc": "4.59.0", - "fsevents": "~2.3.2" - } - }, - "node_modules/scheduler": { - "version": "0.27.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", - "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", - "license": "MIT" - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tinyglobby": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", - "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.3" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", - "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/vite": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.2.tgz", - "integrity": "sha512-Bby3NOsna2jsjfLVOHKes8sGwgl4TT0E6vvpYgnAYDIF/tie7MRaFthmKuHx1NSXjiTueXH3do80FMQgvEktRg==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "^0.27.0", - "fdir": "^6.5.0", - "picomatch": "^4.0.3", - "postcss": "^8.5.6", - "rollup": "^4.43.0", - "tinyglobby": "^0.2.15" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "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 - } - } - }, - "node_modules/vite/node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zod": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.5.tgz", - "integrity": "sha512-k7Nwx6vuWx1IJ9Bjuf4Zt1PEllcwe7cls3VNzm4CQ1/hgtFUK2bRNG3rvnpPUhFjmqJKAKtjV576KnUkHocg/g==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/zod-validation-error": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", - "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "zod": "^3.25.0 || ^4.0.0" - } - } - } -} diff --git a/web/package.json b/web/package.json index 84a1e410e..8f683cf96 100644 --- a/web/package.json +++ b/web/package.json @@ -1,30 +1,41 @@ { - "name": "web", - "private": true, - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "vite", - "build": "vite build", - "lint": "eslint .", - "preview": "vite preview" - }, - "dependencies": { - "fuse.js": "^7.1.0", - "lucide-react": "^0.562.0", - "react": "^19.2.0", - "react-dom": "^19.2.0" - }, - "devDependencies": { - "@eslint/js": "^9.39.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": "^17.0.0", - "vite": "^7.3.2", - "@playwright/test": "1.57.0" - } + "name": "web", + "private": true, + "sideEffects": false, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite dev --port 3000", + "build": "vite build && tsc --noEmit", + "preview": "vite preview", + "lint": "eslint ." + }, + "dependencies": { + "@tanstack/react-router": "^1.169.2", + "@tanstack/react-router-devtools": "^1.166.13", + "@tanstack/react-start": "^1.167.64", + "@tanstack/start-static-server-functions": "^1.166.41", + "fuse.js": "^7.1.0", + "lucide-react": "^0.562.0", + "react": "^19.2.0", + "react-dom": "^19.2.0" + }, + "devDependencies": { + "@eslint/js": "^9.39.1", + "@playwright/test": "1.57.0", + "@tailwindcss/vite": "^4.2.2", + "@tanstack/router-plugin": "^1.167.34", + "@types/node": "^25.6.2", + "@types/react": "^19.2.5", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^6.0.1", + "eslint": "^9.39.1", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^17.0.0", + "tailwindcss": "^4.2.2", + "typescript": "~6.0.3", + "typescript-eslint": "^8.59.2", + "vite": "^8.0.0" + } } diff --git a/web/src/App.jsx b/web/src/App.jsx deleted file mode 100644 index cae814fb2..000000000 --- a/web/src/App.jsx +++ /dev/null @@ -1,221 +0,0 @@ -import { useEffect, useState, useMemo, useCallback } from 'react'; -import Fuse from 'fuse.js'; -import { ThemeProvider } from './contexts/ThemeContext'; -import { Layout } from './components/Layout'; -import { RepoCard } from './components/RepoCard'; -import styles from './App.module.css'; - -function AppContent() { - const [repos, setRepos] = useState([]); - const [loading, setLoading] = useState(true); - const [filters, setFilters] = useState({ - search: '', - category: null, - language: null, - topic: null, - archived: false, - template: false - }); - const [sortBy, setSortBy] = useState('starred'); // starred, stars, pushed, name - - useEffect(() => { - fetch('data.json') - .then(res => res.json()) - .then(data => { - const normalized = (data.repositories || []).map(repo => ({ - ...repo, - html_url: repo.github_metadata?.html_url || `https://github.com/${repo.repo}`, - homepage_url: repo.github_metadata?.homepage_url || null, - stars: repo.github_metadata?.stargazers_count || 0, - forks: repo.github_metadata?.forks_count || 0, - language: repo.github_metadata?.language || 'Unknown', - topics: repo.github_metadata?.topics || [], - pushed_at: repo.github_metadata?.repo_pushed_at || null, - is_template: repo.github_metadata?.is_template || false, - avatar: repo.github_metadata?.owner_avatar - })); - setRepos(normalized); - setLoading(false); - }) - .catch(err => { - console.error(err); - setLoading(false); - }); - }, []); - - const fuse = useMemo(() => { - return new Fuse(repos, { - keys: ['repo', 'summary', 'categories', 'language', 'topics'], - threshold: 0.3 - }); - }, [repos]); - - const getFilteredRepos = useCallback((excludeKey = null) => { - let result = repos; - - if (filters.search) { - result = fuse.search(filters.search).map(r => r.item); - } - - return result.filter(repo => { - if (excludeKey !== 'archived' && !filters.archived && repo.archived) return false; - if (excludeKey !== 'template' && filters.template && !repo.is_template) return false; - if (excludeKey !== 'category' && filters.category && !repo.categories?.includes(filters.category)) return false; - if (excludeKey !== 'language' && filters.language && repo.language !== filters.language) return false; - if (excludeKey !== 'topic' && filters.topic && !repo.topics?.includes(filters.topic)) return false; - return true; - }); - }, [repos, filters, fuse]); - - const filteredRepos = useMemo(() => { - const filtered = getFilteredRepos(); - return [...filtered].sort((a, b) => { - switch (sortBy) { - case 'starred': { - const aTime = a.user_starred_at ? new Date(a.user_starred_at).getTime() : Number.NEGATIVE_INFINITY; - const bTime = b.user_starred_at ? new Date(b.user_starred_at).getTime() : Number.NEGATIVE_INFINITY; - return bTime - aTime; - } - case 'stars': - return b.stars - a.stars; - case 'pushed': - return new Date(b.pushed_at || 0) - new Date(a.pushed_at || 0); - case 'name': - return a.repo.localeCompare(b.repo); - default: - return 0; - } - }); - }, [getFilteredRepos, sortBy]); - - const facets = useMemo(() => { - const getCounts = (items, key, isArray = false) => { - const counts = {}; - items.forEach(item => { - const val = item[key]; - if (isArray && Array.isArray(val)) { - val.forEach(v => { counts[v] = (counts[v] || 0) + 1; }); - } else if (val) { - counts[val] = (counts[val] || 0) + 1; - } - }); - return Object.entries(counts).sort((a,b) => b[1] - a[1]); - }; - - return { - categories: getCounts(getFilteredRepos('category'), 'categories', true).slice(0, 15), - languages: getCounts(getFilteredRepos('language'), 'language', false).slice(0, 10), - topics: getCounts(getFilteredRepos('topic'), 'topics', true).slice(0, 15), - }; - }, [getFilteredRepos]); - - const Sidebar = ( -
-
- - -
- -
-
- Categories - {filters.category && } -
-
- {facets.categories.map(([cat, count]) => ( - - ))} -
-
- -
-
- Languages - {filters.language && } -
-
- {facets.languages.map(([lang, count]) => ( - - ))} -
-
-
- ); - - return ( - -
- setFilters(f => ({...f, search: e.target.value}))} - style={{ flex: 1 }} - /> - -
- - {loading ? ( -
Loading repositories...
- ) : ( -
- {filteredRepos.map((repo) => ( - - ))} -
- )} - {!loading && filteredRepos.length === 0 && ( -
No repositories found matching filters.
- )} -
- ); -} - -export default function App() { - return ( - - - - ); -} diff --git a/web/src/App.module.css b/web/src/App.module.css deleted file mode 100644 index 2909a1186..000000000 --- a/web/src/App.module.css +++ /dev/null @@ -1,113 +0,0 @@ -.grid { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); - gap: 1rem; - padding-bottom: 2rem; -} - -.filters { - display: flex; - flex-direction: column; - gap: 1.5rem; -} - -.filterGroup { - display: flex; - flex-direction: column; - gap: 0.5rem; -} - -.filterHeader { - font-size: 0.75rem; - font-weight: 700; - text-transform: uppercase; - color: var(--text-muted); - letter-spacing: 0.05em; - display: flex; - justify-content: space-between; -} - -.checkbox { - display: flex; - align-items: center; - gap: 0.5rem; - color: var(--text-secondary); - font-size: 0.875rem; - cursor: pointer; - user-select: none; -} - -.checkbox:hover { - color: var(--text-primary); -} - -.searchInput { - width: 100%; - max-width: 400px; - padding: 0.5rem 1rem; - border: 1px solid var(--border-default); - border-radius: var(--radius-md); - background: var(--bg-surface); - color: var(--text-primary); - font-size: 0.9rem; -} - -.searchInput:focus { - outline: none; - border-color: var(--color-primary-500); - box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1); -} - -.facetList { - display: flex; - flex-direction: column; - gap: 0.25rem; - max-height: 300px; - overflow-y: auto; -} - -.facetBtn { - text-align: left; - background: transparent; - border: none; - padding: 0.25rem 0.5rem; - border-radius: var(--radius-sm); - color: var(--text-secondary); - font-size: 0.875rem; - cursor: pointer; - display: flex; - justify-content: space-between; - align-items: center; - width: 100%; -} - -.facetBtn:hover { - background: var(--bg-card-hover); - color: var(--text-primary); -} - -.facetBtn.active { - background: var(--color-primary-500); - color: white; -} - -.count { - font-size: 0.75rem; - opacity: 0.7; -} - -.clearBtn { - background: none; - border: none; - color: var(--color-primary-600); - font-size: 0.75rem; - cursor: pointer; - padding: 0; -} - -.loading { - display: flex; - justify-content: center; - padding: 2rem; - color: var(--text-muted); -} diff --git a/web/src/components/Layout.jsx b/web/src/components/Layout.jsx deleted file mode 100644 index aefd5a3b3..000000000 --- a/web/src/components/Layout.jsx +++ /dev/null @@ -1,36 +0,0 @@ -import { useTheme } from '../contexts/ThemeContext'; -import { Sun, Moon, Github } from 'lucide-react'; -import styles from './Layout.module.css'; - -export function Layout({ children, sidebar }) { - const { theme, toggleTheme } = useTheme(); - - return ( -
- -
-
-
- {/* Search slot or title */} -
-
- -
-
-
- {children} -
-
-
- ); -} diff --git a/web/src/components/Layout.module.css b/web/src/components/Layout.module.css deleted file mode 100644 index c579c554d..000000000 --- a/web/src/components/Layout.module.css +++ /dev/null @@ -1,90 +0,0 @@ -.layout { - display: grid; - grid-template-columns: 280px 1fr; - min-height: 100vh; - background-color: var(--bg-background); -} - -.sidebar { - background-color: var(--bg-surface); - border-right: 1px solid var(--border-default); - display: flex; - flex-direction: column; - height: 100vh; - position: sticky; - top: 0; -} - -.brand { - padding: 1.5rem; - display: flex; - align-items: center; - gap: 0.75rem; - font-weight: 700; - font-size: 1.25rem; - color: var(--text-primary); - border-bottom: 1px solid var(--border-default); -} - -.sidebarContent { - flex: 1; - overflow-y: auto; - padding: 1rem; -} - -.main { - display: flex; - flex-direction: column; - height: 100vh; - overflow-y: auto; -} - -.header { - height: 64px; - border-bottom: 1px solid var(--border-default); - display: flex; - align-items: center; - justify-content: space-between; - padding: 0 2rem; - position: sticky; - top: 0; - background-color: var(--bg-background); - z-index: 10; -} - -.content { - padding: 2rem; - flex: 1; -} - -.actions { - display: flex; - gap: 0.5rem; -} - -.iconBtn { - background: transparent; - border: none; - color: var(--text-secondary); - cursor: pointer; - padding: 0.5rem; - border-radius: var(--radius-md); - transition: all 0.2s; - display: flex; - align-items: center; - justify-content: center; -} - -.iconBtn:hover { - background-color: var(--bg-surface); - color: var(--text-primary); -} - -@media (max-width: 768px) { - .layout { - grid-template-columns: 1fr; - } - .sidebar { - display: none; - } -} diff --git a/web/src/components/RepoCard.jsx b/web/src/components/RepoCard.jsx deleted file mode 100644 index 47d9896f6..000000000 --- a/web/src/components/RepoCard.jsx +++ /dev/null @@ -1,61 +0,0 @@ -import { Star, GitFork } from 'lucide-react'; -import styles from './RepoCard.module.css'; - -export function RepoCard({ repo }) { - const formatNumber = (num) => { - if (num >= 1000000) return (num / 1000000).toFixed(1) + 'M'; - if (num >= 1000) return (num / 1000).toFixed(1) + 'k'; - return num; - }; - - const getLangColor = (lang) => { - const colors = { - 'JavaScript': '#f1e05a', 'TypeScript': '#3178c6', 'Python': '#3572A5', - 'Java': '#b07219', 'Go': '#00ADD8', 'Rust': '#dea584', 'C++': '#f34b7d', - 'C': '#555555', 'Shell': '#89e051', 'HTML': '#e34c26', 'CSS': '#563d7c', - 'Vue': '#41b883', 'Ruby': '#701516', 'C#': '#178600', 'PHP': '#4F5D95', - 'Kotlin': '#A97BFF', 'Swift': '#F05138', 'Dart': '#00B4AB' - }; - return colors[lang] || '#ccc'; - }; - - return ( -
-
- { e.target.src = 'data:image/svg+xml,'; }} - /> - - {repo.repo} - -
-

- {repo.summary || 'No description provided.'} -

-
-
- - {formatNumber(repo.stars)} -
-
- - {formatNumber(repo.forks)} -
- {repo.language && ( -
- - {repo.language} -
- )} -
-
- ); -} diff --git a/web/src/components/RepoCard.module.css b/web/src/components/RepoCard.module.css deleted file mode 100644 index 8f1bc767f..000000000 --- a/web/src/components/RepoCard.module.css +++ /dev/null @@ -1,74 +0,0 @@ -.card { - background-color: var(--bg-card); - border: 1px solid var(--border-default); - border-radius: var(--radius-md); - padding: 1rem; - display: flex; - flex-direction: column; - gap: 0.5rem; - transition: all 0.2s; - height: 100%; -} - -.card:hover { - border-color: var(--border-hover); - background-color: var(--bg-card-hover); - transform: translateY(-2px); - box-shadow: var(--shadow-sm); -} - -.header { - display: flex; - align-items: center; - gap: 0.75rem; -} - -.avatar { - width: 32px; - height: 32px; - border-radius: 50%; - border: 1px solid var(--border-default); - background-color: var(--bg-surface); -} - -.name { - font-weight: 600; - font-size: 1rem; - color: var(--text-primary); - text-decoration: none; - word-break: break-all; -} - -.name:hover { - text-decoration: underline; - color: var(--color-primary-600); -} - -.description { - color: var(--text-secondary); - font-size: 0.875rem; - line-height: 1.5; - display: -webkit-box; - -webkit-line-clamp: 3; - -webkit-box-orient: vertical; - overflow: hidden; - flex: 1; - margin: 0; -} - -.footer { - display: flex; - align-items: center; - gap: 1rem; - font-size: 0.75rem; - color: var(--text-muted); - margin-top: auto; - padding-top: 0.75rem; - border-top: 1px solid var(--border-default); -} - -.stat { - display: flex; - align-items: center; - gap: 0.25rem; -} diff --git a/web/src/components/RepoCard.tsx b/web/src/components/RepoCard.tsx new file mode 100644 index 000000000..09038f233 --- /dev/null +++ b/web/src/components/RepoCard.tsx @@ -0,0 +1,87 @@ +// Single-card presenter. Class `repository-card` is preserved as a +// playwright selector hook (web/tests/smoke.spec.ts). + +import { GitFork, Star } from "lucide-react"; +import type { Repo } from "../types"; + +const LANG_COLORS: Record = { + JavaScript: "#f1e05a", + TypeScript: "#3178c6", + Python: "#3572A5", + Java: "#b07219", + Go: "#00ADD8", + Rust: "#dea584", + "C++": "#f34b7d", + C: "#555555", + Shell: "#89e051", + HTML: "#e34c26", + CSS: "#563d7c", + Vue: "#41b883", + Ruby: "#701516", + "C#": "#178600", + PHP: "#4F5D95", + Kotlin: "#A97BFF", + Swift: "#F05138", + Dart: "#00B4AB", +}; + +function formatNumber(num: number): string { + if (num >= 1_000_000) return `${(num / 1_000_000).toFixed(1)}M`; + if (num >= 1_000) return `${(num / 1_000).toFixed(1)}k`; + return String(num); +} + +const FALLBACK_AVATAR = + 'data:image/svg+xml,'; + +export function RepoCard({ repo }: { repo: Repo }) { + const fallbackAvatar = `https://github.com/${repo.repo.split("/")[0]}.png`; + return ( +
+
+ { + (e.currentTarget as HTMLImageElement).src = FALLBACK_AVATAR; + }} + /> + + {repo.repo} + +
+

+ {repo.summary || "No description provided."} +

+
+ + + {formatNumber(repo.stars)} + + + + {formatNumber(repo.forks)} + + {repo.language ? ( + + + {repo.language} + + ) : null} +
+
+ ); +} diff --git a/web/src/contexts/ThemeContext.jsx b/web/src/contexts/ThemeContext.jsx deleted file mode 100644 index ee872b11d..000000000 --- a/web/src/contexts/ThemeContext.jsx +++ /dev/null @@ -1,37 +0,0 @@ -/* eslint-disable react-refresh/only-export-components */ -import { createContext, useContext, useEffect, useState } from 'react'; - -const ThemeContext = createContext(); - -export function ThemeProvider({ children }) { - const [theme, setTheme] = useState(() => { - // Check local storage or system preference - if (typeof window !== 'undefined' && localStorage.getItem('theme')) { - return localStorage.getItem('theme'); - } - if (window.matchMedia('(prefers-color-scheme: dark)').matches) { - return 'dark'; - } - return 'light'; - }); - - useEffect(() => { - const root = window.document.documentElement; - root.setAttribute('data-theme', theme); - localStorage.setItem('theme', theme); - }, [theme]); - - const toggleTheme = () => { - setTheme(prev => (prev === 'light' ? 'dark' : 'light')); - }; - - return ( - - {children} - - ); -} - -export function useTheme() { - return useContext(ThemeContext); -} diff --git a/web/src/index.css b/web/src/index.css deleted file mode 100644 index b0026c93a..000000000 --- a/web/src/index.css +++ /dev/null @@ -1,95 +0,0 @@ -:root { - /* Primitives - Zinc Palette */ - --color-white: #ffffff; - --color-black: #09090b; - --color-gray-50: #fafafa; - --color-gray-100: #f4f4f5; - --color-gray-200: #e4e4e7; - --color-gray-300: #d4d4d8; - --color-gray-400: #a1a1aa; - --color-gray-500: #71717a; - --color-gray-600: #52525b; - --color-gray-700: #3f3f46; - --color-gray-800: #27272a; - --color-gray-900: #18181b; - --color-gray-950: #09090b; - - --color-primary-500: #2563eb; - --color-primary-600: #1d4ed8; - - /* Semantic Tokens (Light Mode Default) */ - --bg-background: var(--color-white); - --bg-surface: var(--color-gray-50); - --bg-card: var(--color-white); - --bg-card-hover: var(--color-gray-50); - - --text-primary: var(--color-gray-900); - --text-secondary: var(--color-gray-500); - --text-muted: var(--color-gray-400); - --text-inverse: var(--color-white); - - --border-default: var(--color-gray-200); - --border-hover: var(--color-gray-300); - - --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); - --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); - - --radius-sm: 0.375rem; - --radius-md: 0.5rem; - --radius-lg: 0.75rem; - - --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -} - -[data-theme="dark"] { - --bg-background: var(--color-gray-950); - --bg-surface: var(--color-gray-900); - --bg-card: var(--color-gray-900); - --bg-card-hover: var(--color-gray-800); - - --text-primary: var(--color-gray-50); - --text-secondary: var(--color-gray-400); - --text-muted: var(--color-gray-500); - --text-inverse: var(--color-black); - - --border-default: var(--color-gray-800); - --border-hover: var(--color-gray-700); -} - -* { - box-sizing: border-box; -} - -body { - background-color: var(--bg-background); - color: var(--text-primary); - font-family: var(--font-sans); - margin: 0; - line-height: 1.5; - -webkit-font-smoothing: antialiased; - transition: background-color 0.2s, color 0.2s; -} - -button { - font-family: inherit; -} - -a { - color: inherit; - text-decoration: none; -} - -/* Utility classes (since we aren't using Tailwind, we define a few helpers) */ -.container { - max-width: 1280px; - margin: 0 auto; - padding: 0 1rem; -} - -.flex { display: flex; } -.flex-col { flex-direction: column; } -.items-center { align-items: center; } -.justify-between { justify-content: space-between; } -.gap-2 { gap: 0.5rem; } -.gap-4 { gap: 1rem; } -.hidden { display: none; } diff --git a/web/src/main.jsx b/web/src/main.jsx deleted file mode 100644 index b9a1a6dea..000000000 --- a/web/src/main.jsx +++ /dev/null @@ -1,10 +0,0 @@ -import { StrictMode } from 'react' -import { createRoot } from 'react-dom/client' -import './index.css' -import App from './App.jsx' - -createRoot(document.getElementById('root')).render( - - - , -) diff --git a/web/src/routeTree.gen.ts b/web/src/routeTree.gen.ts new file mode 100644 index 000000000..dceedffdc --- /dev/null +++ b/web/src/routeTree.gen.ts @@ -0,0 +1,68 @@ +/* eslint-disable */ + +// @ts-nocheck + +// noinspection JSUnusedGlobalSymbols + +// This file was automatically generated by TanStack Router. +// You should NOT make any changes in this file as it will be overwritten. +// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. + +import { Route as rootRouteImport } from './routes/__root' +import { Route as IndexRouteImport } from './routes/index' + +const IndexRoute = IndexRouteImport.update({ + id: '/', + path: '/', + getParentRoute: () => rootRouteImport, +} as any) + +export interface FileRoutesByFullPath { + '/': typeof IndexRoute +} +export interface FileRoutesByTo { + '/': typeof IndexRoute +} +export interface FileRoutesById { + __root__: typeof rootRouteImport + '/': typeof IndexRoute +} +export interface FileRouteTypes { + fileRoutesByFullPath: FileRoutesByFullPath + fullPaths: '/' + fileRoutesByTo: FileRoutesByTo + to: '/' + id: '__root__' | '/' + fileRoutesById: FileRoutesById +} +export interface RootRouteChildren { + IndexRoute: typeof IndexRoute +} + +declare module '@tanstack/react-router' { + interface FileRoutesByPath { + '/': { + id: '/' + path: '/' + fullPath: '/' + preLoaderRoute: typeof IndexRouteImport + parentRoute: typeof rootRouteImport + } + } +} + +const rootRouteChildren: RootRouteChildren = { + IndexRoute: IndexRoute, +} +export const routeTree = rootRouteImport + ._addFileChildren(rootRouteChildren) + ._addFileTypes() + +import type { getRouter } from './router.tsx' +import type { createStart } from '@tanstack/react-start' +declare module '@tanstack/react-start' { + interface Register { + ssr: true + router: Awaited> + } +} diff --git a/web/src/router.tsx b/web/src/router.tsx new file mode 100644 index 000000000..e8385d788 --- /dev/null +++ b/web/src/router.tsx @@ -0,0 +1,17 @@ +// Router factory consumed by TanStack Start. The `basepath` matches +// the GH Pages subpath; `scrollRestoration` keeps the browser's +// position after route transitions. + +import { createRouter } from "@tanstack/react-router"; +import { routeTree } from "./routeTree.gen"; + +export function getRouter() { + const router = createRouter({ + routeTree, + basepath: "/github-stars/", + defaultPreload: "intent", + scrollRestoration: true, + }); + + return router; +} diff --git a/web/src/routes/__root.tsx b/web/src/routes/__root.tsx new file mode 100644 index 000000000..10aa7dac9 --- /dev/null +++ b/web/src/routes/__root.tsx @@ -0,0 +1,54 @@ +// Root document for the github-stars site. TanStack Start owns the +// `` shell so the prerender step can flush static markup. +// +// The route declares head() metadata (title, viewport, charset, css +// link) and a RootComponent that renders the `` for child +// routes (currently only `/`). + +/// + +import { + HeadContent, + Outlet, + Scripts, + createRootRoute, +} from "@tanstack/react-router"; +import * as React from "react"; +import appCss from "../styles/app.css?url"; + +export const Route = createRootRoute({ + head: () => ({ + meta: [ + { charSet: "utf-8" }, + { + name: "viewport", + content: "width=device-width, initial-scale=1", + }, + { title: "web" }, + ], + links: [{ rel: "stylesheet", href: appCss }], + }), + component: RootComponent, +}); + +function RootComponent() { + return ( + + + + ); +} + +function RootDocument({ children }: { children: React.ReactNode }) { + return ( + + + + + + {children} + + + + ); +} diff --git a/web/src/routes/index.tsx b/web/src/routes/index.tsx new file mode 100644 index 000000000..cf378348c --- /dev/null +++ b/web/src/routes/index.tsx @@ -0,0 +1,321 @@ +// Single-route SPA index — port of the previous web/src/App.jsx. +// All filtering, sorting, and faceting happens client-side against +// `data.json` (committed to docs/ alongside the static build by +// .github/workflows/04-build-site.yml). + +import { createFileRoute } from "@tanstack/react-router"; +import Fuse from "fuse.js"; +import { Github } from "lucide-react"; +import { useCallback, useEffect, useMemo, useState } from "react"; +import { RepoCard } from "../components/RepoCard"; +import type { + Filters, + ManifestData, + ManifestRepoEntry, + Repo, + SortKey, +} from "../types"; + +export const Route = createFileRoute("/")({ + component: IndexPage, +}); + +function normalize(entries: ManifestRepoEntry[]): Repo[] { + return entries.map((repo) => ({ + repo: repo.repo, + summary: repo.summary ?? "", + categories: repo.categories ?? [], + archived: Boolean(repo.archived), + html_url: + repo.github_metadata?.html_url ?? `https://github.com/${repo.repo}`, + homepage_url: repo.github_metadata?.homepage_url ?? null, + stars: repo.github_metadata?.stargazers_count ?? 0, + forks: repo.github_metadata?.forks_count ?? 0, + language: repo.github_metadata?.language ?? "Unknown", + topics: repo.github_metadata?.topics ?? [], + user_starred_at: repo.user_starred_at ?? null, + pushed_at: repo.github_metadata?.repo_pushed_at ?? null, + is_template: Boolean(repo.github_metadata?.is_template), + avatar: repo.github_metadata?.owner_avatar ?? null, + })); +} + +type FilterKey = "category" | "language" | "topic"; + +function IndexPage() { + const [repos, setRepos] = useState([]); + const [loading, setLoading] = useState(true); + const [filters, setFilters] = useState({ + search: "", + category: null, + language: null, + topic: null, + archived: false, + template: false, + }); + const [sortBy, setSortBy] = useState("starred"); + + useEffect(() => { + fetch("data.json") + .then((res) => res.json() as Promise) + .then((data) => { + setRepos(normalize(data.repositories ?? [])); + setLoading(false); + }) + .catch((err: unknown) => { + console.error(err); + setLoading(false); + }); + }, []); + + const fuse = useMemo( + () => + new Fuse(repos, { + keys: ["repo", "summary", "categories", "language", "topics"], + threshold: 0.3, + }), + [repos], + ); + + const getFilteredRepos = useCallback( + (excludeKey: FilterKey | "archived" | "template" | null = null) => { + let result = repos; + if (filters.search) { + result = fuse.search(filters.search).map((r) => r.item); + } + return result.filter((repo) => { + if (excludeKey !== "archived" && !filters.archived && repo.archived) + return false; + if (excludeKey !== "template" && filters.template && !repo.is_template) + return false; + if ( + excludeKey !== "category" && + filters.category && + !repo.categories.includes(filters.category) + ) + return false; + if ( + excludeKey !== "language" && + filters.language && + repo.language !== filters.language + ) + return false; + if ( + excludeKey !== "topic" && + filters.topic && + !repo.topics.includes(filters.topic) + ) + return false; + return true; + }); + }, + [repos, filters, fuse], + ); + + const filteredRepos = useMemo(() => { + const filtered = getFilteredRepos(); + const list = [...filtered]; + switch (sortBy) { + case "starred": + return list.sort((a, b) => { + const at = a.user_starred_at + ? new Date(a.user_starred_at).getTime() + : Number.NEGATIVE_INFINITY; + const bt = b.user_starred_at + ? new Date(b.user_starred_at).getTime() + : Number.NEGATIVE_INFINITY; + return bt - at; + }); + case "stars": + return list.sort((a, b) => b.stars - a.stars); + case "pushed": + return list.sort( + (a, b) => + new Date(b.pushed_at ?? 0).getTime() - + new Date(a.pushed_at ?? 0).getTime(), + ); + case "name": + return list.sort((a, b) => a.repo.localeCompare(b.repo)); + } + }, [getFilteredRepos, sortBy]); + + const facets = useMemo(() => { + const getCounts = ( + items: Repo[], + key: keyof Repo, + isArray: boolean, + ): Array<[string, number]> => { + const counts = new Map(); + for (const item of items) { + const val = item[key]; + if (isArray && Array.isArray(val)) { + for (const v of val as string[]) { + counts.set(v, (counts.get(v) ?? 0) + 1); + } + } else if (typeof val === "string" && val) { + counts.set(val, (counts.get(val) ?? 0) + 1); + } + } + return Array.from(counts.entries()).sort((a, b) => b[1] - a[1]); + }; + return { + categories: getCounts(getFilteredRepos("category"), "categories", true).slice( + 0, + 15, + ), + languages: getCounts(getFilteredRepos("language"), "language", false).slice( + 0, + 10, + ), + topics: getCounts(getFilteredRepos("topic"), "topics", true).slice(0, 15), + }; + }, [getFilteredRepos]); + + return ( +
+ + +
+
+ + setFilters((f) => ({ ...f, search: e.target.value })) + } + /> + +
+ + {loading ? ( +
+ Loading repositories... +
+ ) : filteredRepos.length === 0 ? ( +
+ No repositories found matching filters. +
+ ) : ( +
+ {filteredRepos.map((repo) => ( + + ))} +
+ )} +
+
+ ); +} + +function FacetSection({ + title, + active, + items, + onPick, + onClear, +}: { + title: string; + active: string | null; + items: Array<[string, number]>; + onPick: (value: string) => void; + onClear: () => void; +}) { + return ( +
+
+ {title} + {active ? ( + + ) : null} +
+
+ {items.map(([value, count]) => ( + + ))} +
+
+ ); +} diff --git a/web/src/styles/app.css b/web/src/styles/app.css new file mode 100644 index 000000000..1df8d6541 --- /dev/null +++ b/web/src/styles/app.css @@ -0,0 +1,16 @@ +@import "tailwindcss" source("../"); + +@layer base { + html { + color-scheme: light dark; + } + + * { + @apply border-gray-200 dark:border-gray-800; + } + + html, + body { + @apply text-gray-900 bg-gray-50 dark:bg-gray-950 dark:text-gray-200; + } +} diff --git a/web/src/types.ts b/web/src/types.ts new file mode 100644 index 000000000..54e579465 --- /dev/null +++ b/web/src/types.ts @@ -0,0 +1,58 @@ +// Repository shape consumed by the static site. Must stay aligned +// with the manifest entries written by the server-side pipeline +// (src/manifest/schema.zod.ts → RepositoryEntrySchema). Kept as a +// hand-written interface here because the web/ workspace is +// dependency-isolated from the kernel; importing the Zod schema +// would cross the workspace boundary. + +export interface ManifestRepoEntry { + repo: string; + summary?: string; + categories?: string[]; + user_starred_at?: string; + archived?: boolean; + github_metadata?: { + html_url?: string; + homepage_url?: string | null; + stargazers_count?: number; + forks_count?: number; + language?: string | null; + topics?: string[]; + repo_pushed_at?: string | null; + is_template?: boolean; + owner_avatar?: string | null; + }; +} + +export interface ManifestData { + repositories?: ManifestRepoEntry[]; +} + +/** Flattened, presentation-ready repo shape. */ +export interface Repo { + repo: string; + summary: string; + categories: string[]; + html_url: string; + homepage_url: string | null; + stars: number; + forks: number; + language: string; + topics: string[]; + user_starred_at: string | null; + pushed_at: string | null; + is_template: boolean; + archived: boolean; + avatar: string | null; +} + +export type SortKey = "starred" | "stars" | "pushed" | "name"; + +export interface Filters { + search: string; + category: string | null; + language: string | null; + topic: string | null; + archived: boolean; + template: boolean; +} diff --git a/web/tsconfig.json b/web/tsconfig.json new file mode 100644 index 000000000..1985ce0a4 --- /dev/null +++ b/web/tsconfig.json @@ -0,0 +1,22 @@ +{ + "include": ["**/*.ts", "**/*.tsx"], + "exclude": ["node_modules", "tests", "../docs"], + "compilerOptions": { + "strict": true, + "esModuleInterop": true, + "jsx": "react-jsx", + "module": "ESNext", + "moduleResolution": "Bundler", + "lib": ["DOM", "DOM.Iterable", "ES2022"], + "isolatedModules": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "target": "ES2022", + "allowJs": false, + "forceConsistentCasingInFileNames": true, + "paths": { + "~/*": ["./src/*"] + }, + "noEmit": true + } +} diff --git a/web/vite.config.js b/web/vite.config.js deleted file mode 100644 index 6c19d5ad4..000000000 --- a/web/vite.config.js +++ /dev/null @@ -1,12 +0,0 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' - -// https://vite.dev/config/ -export default defineConfig({ - plugins: [react()], - base: './', - build: { - outDir: '../docs', - emptyOutDir: true - } -}) diff --git a/web/vite.config.ts b/web/vite.config.ts new file mode 100644 index 000000000..48098e6af --- /dev/null +++ b/web/vite.config.ts @@ -0,0 +1,46 @@ +// TanStack Start static-prerender configuration for the github-stars +// site. Build target: GitHub Pages at +// https://primeinc.github.io/github-stars/. +// +// Doctrine sources (canonical, from refs/TanStack/router/examples/react/): +// - start-basic-static/vite.config.ts — SPA + prerender shape +// - start-tailwind-v4/vite.config.ts — @tailwindcss/vite plugin +// +// Build output stays at web/dist (the TanStack-canonical layout) +// so the SSR prerender step can resolve `react` from +// web/node_modules. The 04-build-site.yml workflow copies +// `web/dist/client/*` → `docs/` for the GH Pages artifact. + +import tailwindcss from "@tailwindcss/vite"; +import { tanstackStart } from "@tanstack/react-start/plugin/vite"; +import viteReact from "@vitejs/plugin-react"; +import { defineConfig } from "vite"; + +export default defineConfig({ + base: "/github-stars/", + server: { + port: 3000, + }, + resolve: { + tsconfigPaths: true, + }, + // Build output stays inside web/dist (default) so the SSR + // prerender step can resolve `react` from web/node_modules. + // The deploy workflow (04-build-site.yml) copies dist/client/* to + // docs/ for the GitHub Pages publish artifact. + plugins: [ + tailwindcss(), + tanstackStart({ + spa: { + enabled: true, + prerender: { + crawlLinks: true, + }, + }, + prerender: { + failOnError: true, + }, + }), + viteReact(), + ], +});