From 580d5b6a37889fdf360959688dac761109e6e853 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 08:51:25 +0000 Subject: [PATCH 01/81] spike(bun): Bun runtime/bundler feasibility probes and report --- spike/.gitignore | 1 + spike/Marker.tsx | 7 ++ spike/REPORT.md | 96 +++++++++++++++++++++++++ spike/access-probe.mjs | 7 ++ spike/build.ts | 28 ++++++++ spike/bunfig.toml | 3 + spike/client.tsx | 16 +++++ spike/compile.ts | 21 ++++++ spike/dev.ts | 15 ++++ spike/env.sh | 6 ++ spike/gen-routes.ts | 10 +++ spike/import-all.ts | 19 +++++ spike/index.html | 15 ++++ spike/probe-dispatcher.ts | 31 ++++++++ spike/probe-libs.ts | 41 +++++++++++ spike/routes.gen.ts | 142 +++++++++++++++++++++++++++++++++++++ spike/server-full.ts | 6 ++ spike/server.ts | 82 +++++++++++++++++++++ spike/sharp-compiled.ts | 7 ++ spike/sharp-direct.ts | 3 + spike/shim-plugin.ts | 11 +++ spike/shims/dynamic.tsx | 19 +++++ spike/shims/navigation.tsx | 27 +++++++ spike/sse-probe.ts | 42 +++++++++++ spike/ws-probe.mjs | 64 +++++++++++++++++ 25 files changed, 719 insertions(+) create mode 100644 spike/.gitignore create mode 100644 spike/Marker.tsx create mode 100644 spike/REPORT.md create mode 100644 spike/access-probe.mjs create mode 100644 spike/build.ts create mode 100644 spike/bunfig.toml create mode 100644 spike/client.tsx create mode 100644 spike/compile.ts create mode 100644 spike/dev.ts create mode 100644 spike/env.sh create mode 100644 spike/gen-routes.ts create mode 100644 spike/import-all.ts create mode 100644 spike/index.html create mode 100644 spike/probe-dispatcher.ts create mode 100644 spike/probe-libs.ts create mode 100644 spike/routes.gen.ts create mode 100644 spike/server-full.ts create mode 100644 spike/server.ts create mode 100644 spike/sharp-compiled.ts create mode 100644 spike/sharp-direct.ts create mode 100644 spike/shim-plugin.ts create mode 100644 spike/shims/dynamic.tsx create mode 100644 spike/shims/navigation.tsx create mode 100644 spike/sse-probe.ts create mode 100644 spike/ws-probe.mjs diff --git a/spike/.gitignore b/spike/.gitignore new file mode 100644 index 000000000..849ddff3b --- /dev/null +++ b/spike/.gitignore @@ -0,0 +1 @@ +dist/ diff --git a/spike/Marker.tsx b/spike/Marker.tsx new file mode 100644 index 000000000..ccb283651 --- /dev/null +++ b/spike/Marker.tsx @@ -0,0 +1,7 @@ +// HMR probe: a leaf component edited during the dev-server test (React Fast Refresh keeps state if it works). +import { useState } from "react"; + +export function Marker() { + const [count] = useState(() => Math.random()); + return ; +} diff --git a/spike/REPORT.md b/spike/REPORT.md new file mode 100644 index 000000000..83784265d --- /dev/null +++ b/spike/REPORT.md @@ -0,0 +1,96 @@ +# Spike: omp-web on Bun instead of Next.js + +Base: `8e639641` (branch `spike/bun`). Bun 1.4.4, Node v26.8.1, Linux x64. +Every run used `spike/env.sh`: `HOME` and `PI_CODING_AGENT_DIR` point at `/tmp/bunspike/home` (one copied fixture session) and `OMP_WEB_OMP_BIN=/nonexistent/omp`, so no real `~/.omp` and no real `omp` was touched. +Extra packages (`bun-plugin-tailwind@0.1.2`) were installed into `/tmp/bunspike/deps`, not into `node_modules`. + +**Overall result: no hard blocker.** All 70 API route modules, the SSE stream, the daemon link, the password gate, `node:sqlite`, `sharp`, `web-push` and the React app run on Bun. The work is replacing what Next did implicitly: the router, the HTML shell, fonts, static serving, the launcher and service scripts. A compiled single binary also works, but `sharp`, the self-update path and the service scripts need separate work. + +## Results + +| # | Probe | Verdict | Evidence (command → deciding output) | Work implied | +|---|---|---|---|---| +| 1 | API routes under `Bun.serve` | PASS-WITH-WORK | `bun spike/import-all.ts` → `imported 70 route modules in 222ms; failed 0`. `bun spike/server.ts` (Bun native router, `[id]`→`:id`, `[...path]`→`*`, generated by `spike/gen-routes.ts`) + curl: `/api/sessions` 200, `/api/hosts` 200, `/api/files/?type=list` 200 with the fixture, `/api/files/etc` 403 `access_denied`, cross-origin POST 403. `bun spike/sse-probe.ts` with `SPIKE_HEARTBEAT=1` → `hello after 1ms`, `POST subscribe 200`, `live hosts frame after 0ms`, `heartbeat received, stream still open at 30.0s`, `POST subscribe after client abort 404 unknown_connection` (cleanup works). `next/server` imports **unchanged** under Bun (no shim). `@/` paths resolve natively from tsconfig. A Node daemon (`node bin/omp-web.js host`) linked to the Bun server over the existing NDJSON link: `/api/hosts` then reported `platform: linux, status: omp-missing`. | Router codegen + adapter (~80 lines in `spike/server.ts`): wrap each request in `NextRequest` (14 handlers read `.nextUrl`), pass `params` as a Promise. **`idleTimeout: 0` is mandatory**: Bun's default 10 s idle timeout cuts SSE and the daemon link between 30 s heartbeats. To drop the `next` package: codemod 60 files (`NextResponse.json` 381 sites → `Response.json`, `new NextResponse` 5, `.redirect` 3, `.next()` 4, `.nextUrl` 18, `NextRequest` 15, `.cookies` 2). | +| 2 | WebSocket link | PASS | `bun spike/ws-probe.mjs`, `node spike/ws-probe.mjs`, `node spike/ws-probe.mjs undici` against `/spike-link` (401 unless `Authorization: Bearer x`, checked before upgrade; `curl` upgrade without a token → `HTTP/1.1 401`). Bun client: no-token refused, header auth ok, text→string and binary→ArrayBuffer echoed, **1000 RTT mean 55 µs**, **20 MiB echo intact in 263 ms**. Node 26 global WebSocket: **accepts `{ headers }`** (it is undici's), RTT 169 µs, 20 MiB in 142 ms. Node + `undici.WebSocket`: RTT 97 µs, 20 MiB in 108 ms. | None for the current link: it is NDJSON over HTTP and already works (probe 1). A WebSocket link is possible later; the daemon needs no change on Node 26. Node 24 (the engines floor) was not checked. | +| 3 | `node:sqlite` | PASS | `bun spike/probe-libs.ts` → `3 node:sqlite store: OK {"vapidPublicLen":87,"devices":1,"history":["s1:test"]}` (real `lib/notification-store.ts` open/WAL/insert/query). Also OK inside a `--compile` binary. | None; no `bun:sqlite` port needed. | +| 4 | `sharp` | PASS (runtime) / FAIL (in binary) | `bun spike/probe-libs.ts` → `4 sharp thumbnail: OK {"inputBytes":6037,"webpBytes":1130,"riff":"RIFF"}` via `lib/media-cache.ts` `createThumbnail`. In a compiled binary (`spike/sharp-direct.ts`): `Could not load the "sharp" module using the linux-x64 runtime`; `createThumbnail` returns `null`. | None on the Bun runtime. A single binary must ship `sharp` + libvips beside it, or drop thumbnails. | +| 5 | `web-push` | PASS | `bun spike/probe-libs.ts` → `5 web-push signed request: OK {"method":"POST","auth":"vapid t=eyJ0","encoding":"aes128gcm","bodyBytes":120}`. Also OK in a compiled binary. | None. | +| 6 | undici dispatcher / proxy | PASS-WITH-WORK | `bun spike/probe-dispatcher.ts dispatcher` → `globalThis.fetch replaced by undici: false`; `bun -e 'import("undici")'` → `install: undefined`, `import.meta.resolve("undici")` → `undici` (Bun's built-in stub). So `lib/http-dispatcher.ts` is a silent no-op under Bun. Bun's own fetch honors the env: `[native] fetch http://spike.invalid/x with HTTP_PROXY set: 200 via-proxy`, `NO_PROXY bypass: 200`, `HTTPS_PROXY` dead proxy → `ECONNREFUSED`. | Delete `lib/http-dispatcher.ts`, the `undici` dependency and the `serverExternalPackages` entry. The configurable idle timeout (`DEFAULT_HTTP_IDLE_TIMEOUT_MS`) has no equivalent; use a per-call `AbortSignal.timeout` where it matters. | +| 7 | `instrumentation.node.ts` `register()` | PASS | Called unchanged after `Bun.serve` in `spike/server.ts` → `[omp-web] starting (agent-dir /tmp/bunspike/home/.omp/agent)`, the warm-up failure line (expected with the fake bin), and with `OMP_WEB_PORT` set it wrote `omp-web/host.json` for the local daemon. | Call it from the new entry point. | +| 8 | `proxy.ts` password gate | PASS | `spike/server.ts` runs `proxy(new NextRequest(req))` before every route and treats `x-middleware-next: 1` as "continue". With `OMP_WEB_PASSWORD_HASH` set: no cookie `/api/hosts` 401; `/?session=x` 307 → `/login?next=%2F%3Fsession%3Dx`; wrong password 401; right password 200 + `set-cookie: omp_web_session=…`; cookie `/api/hosts` 200; cookie `/login` 307 → `/`; `/api/hosts/link` ungated (route's own bearer check, 401). | Port the `config.matcher` exclusions to a regex (done in the spike). The response leaks an internal `x-middleware-set-cookie` header, so strip it or rewrite `proxy()` without `NextResponse`. The 10 MB middleware body cap disappears, which is better for host uploads but changes behavior. | +| 9 | Front end (bundle + Tailwind 4 + browser) | PASS-WITH-WORK | `SPIKE_SHIMS=1 bun spike/build.ts` → `build OK in ~1s`, 99 outputs. Entry JS 1.76 MB (525 KB gz). Entry CSS 1.58 MB (980 KB gz), of which 144 KB is the app's own CSS. Headless Chromium against `spike/server.ts`: **sidebar shell renders** (workspaces, hosts, Settings, New Session) in 14 ms. Clicking a session sets `?session=` and loads `/api/sessions/:id`, `/context`, `/state` and `/subagents`. Settings dialog tabs load through the `next/dynamic` shim. A host created with curl appeared in the UI 20 ms later through the SharedWorker SSE, with no reload. Only browser error: `POST /api/notifications/presence net::ERR_ABORTED` (the same request is also logged with 204). `bun spike/dev.ts` (HTML-import dev server, plugins from `spike/bunfig.toml`): shell in 59–106 ms; **React Fast Refresh** on a leaf component in 216 ms with state kept; `globals.css` hot swap in 239 ms; an entry-file edit reloads the whole page. Errors by category below. | See the "Front-end work" list. | +| 10 | Tests | PASS-WITH-WORK | 5 named files, `bun test `: link-protocol 18/18, hub 51/51 (jiti works). HostsConfig 0/4, or 4/4 with `--preload ./tests/setup-dom.mjs` (Bun evaluates the CJS Testing Library before the side-effect import). rpc-manager 152/155; with `--timeout 30000` (Bun's default per-test limit is 5 s, Node has none) 153/155. session-reader 42/48. `bun run `: **0/5**, `Cannot use test outside of the test runner` (Bun's `node:test` exists only inside `bun test`). Whole suite: Node `node --test` 1958 pass / 0 fail / 12 skip (158 s). `bun test` in one process: 1312 pass / 258 fail, because `setup-dom.mjs`'s `after()` deletes the DOM globals for every later file. One process per file: **1909 pass / 37 fail / 12 skip**. | The 37 failures are all in test infrastructure: 22 DOM-global differences (`window.matchMedia` stub, jsdom `Event` vs Bun `EventTarget`, missing `KeyboardEvent`); 7 builtin `fs` mocks (`t.mock.method(fs, …)` + `syncBuiltinESMExports` do not reach the module under test); 8 that assume `process.execPath` is Node or that `accessSync` returns `undefined`. That last check found **one real runtime bug**: `fs.accessSync` returns `null` on Bun, so `isExecutableFile()` in `bin/omp-web-systemd.js:81` and `bin/linux-tray.js:573` (`=== undefined`) rejects every file. Choose one: keep `node --test` for the runtime-neutral lib tests (they pass today), or move to `bun test` with a preload that never tears down and file-level isolation. | +| 11 | `bun build --compile` | PASS-WITH-WORK | `bun build --compile spike/server.ts` → `bundle 611 modules`, `compile` in 0.3 s, **112 MB** (the bun binary alone is 107 MB). Starting from `/tmp` crashes: `ENOENT … '/tmp/public/icon-192.png'`, because `app/api/manifest/route.ts:9` reads `public/` from `process.cwd()` at import time. Started from the package dir: `/api/hosts` 200, `/api/sessions` 200, `/api/manifest` 200, cold start to listening **122 ms**, RSS 46 MB. With the SPA embedded through an HTML import (`bun spike/compile.ts`, `spike/server-full.ts`, Tailwind + shims applied at compile time): **122 MB**, and the UI renders from the binary (`/` 200, chunks 200). `public/` files (`event-stream-worker.js`, `favicon.ico`) are not embedded (404). `sharp` cannot load (probe 4); `node:sqlite` and `web-push` work. | Embed `public/` and the manifest PNGs (`with { type: "file" }`); stop reading from `process.cwd()`/`__dirname` (`app/api/manifest/route.ts`, `lib/windows-service.ts:73-77`, `lib/self-update.ts:348/412/477`, `lib/npm-update.ts:40`). Ship `sharp` as a sidecar. Rewrite self-update for binaries (it is npm/bun-global based today). One binary per OS/arch (~115–125 MB each). | +| 12 | Windows (read-only) | PASS-WITH-WORK | Grep of the worktree, listed below. `bun bin/omp-web-systemd.js --help` and `bun bin/omp-web-tray.js --help` run on Bun (`process.version` is `v26.3.0`, so the Node version gate passes). | Estimated M for a Bun runtime, L for a compiled binary. | + +### Front end: errors by category (probe 9) + +1. **`next/dynamic`** (3 files, 9 call sites: `AppShell`, `CommandPaletteMount`, `SettingsConfig`). The build compiles, but Next's client internals fail at runtime. Fixed with a 19-line `React.lazy` + `Suspense` shim (`spike/shims/dynamic.tsx`); every Settings tab loaded. +2. **`next/navigation`** (1 file: `AppShell`, `useRouter().replace` ×8 + `useSearchParams`). Without a shim the page fails with `ReferenceError: process is not defined` (`process.env.__NEXT_CACHE_COMPONENTS`), then `invariant expected app router to be mounted`, and renders nothing. Fixed with a 27-line `history` + `useSyncExternalStore` shim (`spike/shims/navigation.tsx`). With both shims the `window.process` stub is no longer needed. +3. **`next/font/google`** (`app/layout.tsx`: Geist, JetBrains Mono, Noto Sans Mono, Source Serif 4). This only works inside Next. The SPA renders with `--font-geist`, `--font-jb-mono`, `--font-noto-mono` and `--font-source-serif` empty, so text falls back to default fonts. Fix: self-host the woff2 files with `@font-face` in `globals.css`. +4. **Server-only Next APIs** (`next/headers`, `next/script`, `Metadata`/`Viewport` in `app/layout.tsx` and `app/page.tsx`). Replaced by a static `spike/index.html`. Still to carry over: the theme, language and font-size inline scripts (only theme is ported), `SIDEBAR_HISTORY_BRIDGE_SCRIPT` before React, the install name in `` (`getInstallName(headers)`, which the server must inject into the HTML; the spike hard-codes "omp web"), and the `/login` page. +5. **CSS.** Tailwind 4 through `bun-plugin-tailwind` compiles `app/globals.css` (4634 lines; `@source`, `@theme`, `@font-face`) without errors, and the computed styles are right. Two build errors were fixed by config: `<link rel="manifest" href="/api/manifest">` gives `Could not resolve` (the bundler tries to bundle it; add the link outside the bundler), and `Multiple files share the same output path` (KaTeX CSS) is fixed by `naming: "[name]-[hash]"`. Still open: the KaTeX CSS from `lib/markdown.ts`'s dynamic import is merged into the entry CSS, with all 60 KaTeX fonts inlined as base64 (ttf/woff/woff2), and is emitted twice. +6. **Other.** `NEXT_PUBLIC_*` (3 vars) needs `define`. 6 duplicate-key warnings in `lib/i18n/locales/{en,ja,zh-CN}.json` (`agentsConfig.scopeUser/scopeProject`) are an existing data bug that Bun reports. `public/event-stream-worker.js` needs its content-hash URL (done today in `next.config.ts`). `@types/bun` is missing, so the LSP flags `Bun`/`import.meta.dir`. + +### Windows and service scripts: every `node` / `.next` assumption (probe 12) + +- `scripts/windows/omp-web-service.ps1`: `:33-37` falls back to dev mode when `.next` is missing; `:75-87` `Find-NodeExecutable` (node.exe on PATH, Program Files, `~/.bun/bin/node.exe`); `:128-129` `"$NodeExe" bin\omp-web.js`; `:131-132` dev mode runs `node_modules\next\dist\bin\next dev`. +- `scripts/windows/omp-web-tray.ps1`: the same four spots at `:79-84`, `:187-204`, `:246-247` and `:249-250`. +- `scripts/windows/omp-web-host.ps1`: `:16` `bin\omp-web.js`; `:30-42` `Find-NodeExecutable`; `:49` `"$NodeExe" omp-web.js host`. +- `lib/windows-service.ts`: `:661` kills orphaned servers on the port only when the process name is `like "node*"` (a `bun.exe` or compiled binary would be left running); `:73-77` finds the repo root from `__dirname`/`process.cwd()` and `package.json`; `:350` comment about `node bin/omp-web.js`. +- `bin/omp-web-tray.js`: `:1` `#!/usr/bin/env node`; `:5` `exitIfUnsupportedNode()` (passes on Bun); `:17` usage text. +- `bin/omp-web-systemd.js`: `:1` shebang; `:5` version gate; `:204` looks for `ompweb` next to `process.execPath` (works for `bun add -g`, since both live in `~/.bun/bin`); `:239` adds `dirname(process.execPath)` to the unit's PATH; `:81` `accessSync(...) === undefined` (**broken on Bun**, see probe 10). +- Not in the list but on the same path: `bin/omp-web.js:157-164,255,517,525,600` spawns `next start` from `.next` through `process.execPath`; `bin/linux-tray.js:573` has the same `accessSync` bug. +- `scripts/windows/install-tray.ps1`, `uninstall-tray.ps1` and `launch-tray.vbs` have no `node`/`.next` reference. + +**Estimate.** Bun runtime: replace the three `Find-NodeExecutable` copies with a bun lookup, drop the `.next` checks and `next dev`, widen the process-name filter, and point everything at the new launcher. About 2–3 days plus a Windows test pass. Compiled binary: every script becomes "run `omp-web.exe`", the repo-root logic and self-update are replaced, and the binary is signed. About 1–2 weeks. + +## Migration estimate + +S = up to 1 day, M = 2–5 days, L = 1–2+ weeks. + +| Work item | Size | +|---|---| +| Server entry: route codegen (70 routes), `NextRequest`/params adapter, gate, `idleTimeout: 0`, static serving with cache headers, compression and SPA fallback, `register()` at boot, dev server that mounts the API in-process | M | +| Remove `next/server`: codemod across 60 files + rewrite `proxy.ts` (or keep `next` only for `next/server` as an interim step: S) | M | +| HTML shell + client entry: port `layout.tsx` scripts and metadata, server-injected title, `/login` route, manifest link, `NEXT_PUBLIC_*` defines, worker hash | M | +| Replace `next/dynamic` (3 files) and `next/navigation` (1 file) with the spike shims or plain `React.lazy`/history code | S | +| Self-host 4 fonts (`next/font` replacement) | S | +| Build config: `bun-plugin-tailwind` dev dependency, chunk naming, KaTeX CSS out of the entry chunk | S | +| Launcher `bin/omp-web.js`: spawn the Bun server instead of `next start`, the restart protocol, `.next` checks, package.json scripts/engines/bin | M | +| Bun incompatibilities found: `accessSync === undefined` (2 sites), delete `lib/http-dispatcher.ts` + `undici` | S | +| Tests: keep `node --test`, or move to `bun test` (preload without teardown, per-file isolation, fix 37 test-infra failures) | S (keep) / M (move) | +| Windows + systemd + tray scripts for a Bun runtime | M | +| Types/lint/docs: `@types/bun`, drop `eslint-config-next` and the tsconfig `next` plugin, README/CHANGELOG | S | +| *Optional:* single-binary distribution: embed `public/`, `sharp` sidecar, binary self-update, per-platform release pipeline, service scripts | L | + +Total: about **3–4 engineer-weeks** for Bun runtime + Bun bundler. Add **2–3 weeks** for compiled single-binary distribution. + +## Blocking risks + +No hard blocker found. Ranked risks: + +1. **Distribution.** Today users need only Node. On Bun they need Bun installed (`bun add -g`), or we ship 115–125 MB binaries per platform. The binary path breaks `sharp` (the native addon cannot be embedded), npm-based self-update, and every service script. +2. **Silent behavior loss when Next goes away.** + - Bun's 10 s default `idleTimeout` kills SSE and the daemon link unless it is disabled. + - `undici` resolves to a Bun stub, so the dispatcher is a quiet no-op. + - `fs.accessSync` returns `null`, which breaks the systemd/tray executable checks. + - Static asset caching/compression, the middleware matcher and body cap, `x-middleware-*` headers, fonts and the worker URL hash must all be rebuilt by hand. + - Each of these failed silently, not with an error. +3. **Windows is unverified.** Nothing ran on Windows. The PowerShell supervisors and `windows-service.ts` hard-code `node.exe`, `.next` and `next dev`, and Bun on Windows under Task Scheduler and the tray was not exercised. +4. **Tests.** `bun run` cannot execute `node:test` files at all. `bun test` needs infrastructure changes (37 failures, 258 when run in one process). Two runtimes (Node for tests, Bun for the app) remain an option. + +## Could not check + +- Windows and macOS: no runs, scripts only read. +- Node 24 (the engines floor): whether its built-in `WebSocket` accepts `{ headers }`. +- Real `omp` sessions: the binary was faked, so no live RPC streaming, prompts or tool events went through the Bun server. Only the read paths and the fixture session were exercised. +- About 20 of the 70 routes were hit (UI load + curl). The rest were only imported. +- An HTTPS proxy doing `CONNECT`: only a dead proxy (`ECONNREFUSED`) showed the env is honored. +- Push delivery end to end, the service worker (`sw.js`), the PWA install, and the login page UI in the SPA. +- Whether the `POST /api/notifications/presence net::ERR_ABORTED` browser error also happens under Next. +- Load, memory over time, and build/bundle size compared with `next build`. + +## Files + +`spike/server.ts` (Bun server + gate + WS probe endpoint), `gen-routes.ts` → `routes.gen.ts`, `import-all.ts`, `sse-probe.ts`, `ws-probe.mjs`, `probe-libs.ts`, `probe-dispatcher.ts`, `client.tsx` + `Marker.tsx` + `index.html` (SPA entry), `shims/` + `shim-plugin.ts`, `build.ts`, `dev.ts` + `bunfig.toml` (HTML-import dev server), `server-full.ts` + `compile.ts` (binary with embedded UI), `sharp-compiled.ts` / `sharp-direct.ts` (sharp in binary), `access-probe.mjs` (`node` → `accessSync(X_OK) returned undefined`, `bun` → `returned null`), `env.sh` (isolated env). Build output `spike/dist/` is git-ignored. diff --git a/spike/access-probe.mjs b/spike/access-probe.mjs new file mode 100644 index 000000000..838e79292 --- /dev/null +++ b/spike/access-probe.mjs @@ -0,0 +1,7 @@ +import fs from "node:fs"; +const f = "/tmp/bunspike/xprobe.sh"; +fs.rmSync(f, { force: true }); +fs.writeFileSync(f, "#!/bin/sh\n", { mode: 0o755 }); +let access; +try { access = fs.accessSync(f, fs.constants.X_OK); } catch (e) { access = e.code; } +console.log(`${typeof Bun !== "undefined" ? "bun" : "node"}: mode=${(fs.statSync(f).mode & 0o777).toString(8)} accessSync(X_OK) returned ${JSON.stringify(access)} (=== undefined: ${access === undefined})`); diff --git a/spike/build.ts b/spike/build.ts new file mode 100644 index 000000000..93c4a81d4 --- /dev/null +++ b/spike/build.ts @@ -0,0 +1,28 @@ +// Probe 9: bundle the SPA with Bun's bundler + Tailwind 4 plugin. SPIKE_SHIMS=1 aliases next/* to spike/shims. +import tailwind from "/tmp/bunspike/deps/node_modules/bun-plugin-tailwind/index.mjs"; +import path from "path"; +import shimPlugin from "./shim-plugin"; + +const shims = process.env.SPIKE_SHIMS === "1"; +const t0 = performance.now(); +const result = await Bun.build({ + entrypoints: [path.join(import.meta.dir, "index.html")], + outdir: path.join(import.meta.dir, "dist"), + minify: true, + splitting: true, + naming: { chunk: "[name]-[hash].[ext]", asset: "[name]-[hash].[ext]" }, + sourcemap: "none", + throw: false, + plugins: [tailwind, ...(shims ? [shimPlugin] : [])], + define: { + "process.env.NODE_ENV": JSON.stringify("production"), + "process.env.NEXT_PUBLIC_APP_VERSION": JSON.stringify("spike"), + "process.env.NEXT_PUBLIC_OMP_WEB_VERSION": JSON.stringify("spike"), + "process.env.NEXT_PUBLIC_EVENT_STREAM_WORKER_VERSION": JSON.stringify("spike"), + }, +}); +console.log(`build ${result.success ? "OK" : "FAILED"} in ${(performance.now() - t0).toFixed(0)}ms, ${result.logs.length} log entries`); +for (const log of result.logs) console.log(` [${log.level}] ${log.message}${log.position ? ` @ ${log.position.file}:${log.position.line}` : ""}`); +const byKind: Record<string, number> = {}; +for (const o of result.outputs) byKind[o.kind + ":" + path.extname(o.path)] = (byKind[o.kind + ":" + path.extname(o.path)] ?? 0) + o.size; +console.log("outputs:", result.outputs.length, Object.fromEntries(Object.entries(byKind).map(([k, v]) => [k, `${(v / 1024).toFixed(0)} KiB`]))); diff --git a/spike/bunfig.toml b/spike/bunfig.toml new file mode 100644 index 000000000..b8a5eb3a5 --- /dev/null +++ b/spike/bunfig.toml @@ -0,0 +1,3 @@ +[serve.static] +plugins = ["/tmp/bunspike/deps/node_modules/bun-plugin-tailwind/index.mjs", "./shim-plugin.ts"] +env = "NEXT_PUBLIC_*" diff --git a/spike/client.tsx b/spike/client.tsx new file mode 100644 index 000000000..0efcc83c5 --- /dev/null +++ b/spike/client.tsx @@ -0,0 +1,16 @@ +// Spike SPA entry: renders the existing AppShell without Next. +import { Suspense } from "react"; +import { createRoot } from "react-dom/client"; +import { AppShell } from "@/components/AppShell"; +import { Marker } from "./Marker"; + +function Root() { + return ( + <Suspense fallback={<div role="status">Loading omp web</div>}> + <Marker /> + <AppShell appName="omp web" /> + </Suspense> + ); +} + +createRoot(document.getElementById("root")!).render(<Root />); diff --git a/spike/compile.ts b/spike/compile.ts new file mode 100644 index 000000000..f71ffdaf8 --- /dev/null +++ b/spike/compile.ts @@ -0,0 +1,21 @@ +// Probe 11b: one binary with API + embedded SPA (Tailwind + next/* shims applied at compile time). +import tailwind from "/tmp/bunspike/deps/node_modules/bun-plugin-tailwind/index.mjs"; +import path from "path"; +import shimPlugin from "./shim-plugin"; + +const t0 = performance.now(); +const result = await Bun.build({ + entrypoints: [path.join(import.meta.dir, "server-full.ts")], + compile: { outfile: "/tmp/bunspike/omp-web-full" }, + target: "bun", + minify: true, + throw: false, + plugins: [tailwind, shimPlugin], + define: { + "process.env.NEXT_PUBLIC_APP_VERSION": JSON.stringify("spike"), + "process.env.NEXT_PUBLIC_OMP_WEB_VERSION": JSON.stringify("spike"), + "process.env.NEXT_PUBLIC_EVENT_STREAM_WORKER_VERSION": JSON.stringify("spike"), + }, +}); +console.log(`compile ${result.success ? "OK" : "FAILED"} in ${(performance.now() - t0).toFixed(0)}ms`); +for (const log of result.logs) if (!log.message.startsWith("Duplicate key")) console.log(` [${log.level}] ${log.message}`); diff --git a/spike/dev.ts b/spike/dev.ts new file mode 100644 index 000000000..c385ac58e --- /dev/null +++ b/spike/dev.ts @@ -0,0 +1,15 @@ +// Probe 9b: Bun's HTML-import dev server (on-demand bundling + HMR) for the SPA. API calls proxy to the spike server. +import index from "./index.html"; + +const api = `http://127.0.0.1:${process.env.SPIKE_PORT ?? 30311}`; +const server = Bun.serve({ + port: Number(process.env.SPIKE_DEV_PORT ?? 30313), + hostname: "127.0.0.1", + development: { hmr: true, console: true }, + routes: { "/": index }, + fetch: (req) => { + const url = new URL(req.url); + return fetch(api + url.pathname + url.search, { method: req.method, headers: req.headers, body: req.body, redirect: "manual" }); + }, +}); +console.log(`spike dev server on ${server.url}`); diff --git a/spike/env.sh b/spike/env.sh new file mode 100644 index 000000000..3caeaa62d --- /dev/null +++ b/spike/env.sh @@ -0,0 +1,6 @@ +# Isolated env for every spike run: never touch the real ~/.omp or spawn the real omp. +export HOME=/tmp/bunspike/home +export PI_CODING_AGENT_DIR=/tmp/bunspike/home/.omp/agent +export OMP_WEB_OMP_BIN=/nonexistent/omp +unset OMP_WEB_PORT OMP_WEB_PASSWORD OMP_WEB_PASSWORD_HASH +export BUN=/root/.bun/bin/bun diff --git a/spike/gen-routes.ts b/spike/gen-routes.ts new file mode 100644 index 000000000..4c6686cb7 --- /dev/null +++ b/spike/gen-routes.ts @@ -0,0 +1,10 @@ +// Generates spike/routes.gen.ts: static imports of every route module so +// `bun build --compile` can bundle them (a runtime glob import cannot be). +import { Glob } from "bun"; +import path from "path"; +const root = path.resolve(import.meta.dir, ".."); +const files = [...new Glob("app/api/**/route.ts").scanSync(root)].sort(); +const lines = files.map((f, i) => `import * as r${i} from "../${f.replace(/\.ts$/, "")}";`); +const entries = files.map((f, i) => ` ${JSON.stringify(path.dirname(f).slice("app/".length))}: r${i},`); +await Bun.write(path.join(import.meta.dir, "routes.gen.ts"), `${lines.join("\n")}\nexport default {\n${entries.join("\n")}\n};\n`); +console.log(`wrote ${files.length} routes`); diff --git a/spike/import-all.ts b/spike/import-all.ts new file mode 100644 index 000000000..757e2164a --- /dev/null +++ b/spike/import-all.ts @@ -0,0 +1,19 @@ +// Probe 1a: does every app/api/**/route.ts module import under Bun? +import { Glob } from "bun"; +import path from "path"; +const root = path.resolve(import.meta.dir, ".."); +let ok = 0; +const failed: string[] = []; +const t0 = performance.now(); +for (const file of new Glob("app/api/**/route.ts").scanSync(root)) { + try { + const mod = await import(path.join(root, file)); + if (!["GET", "POST", "PUT", "PATCH", "DELETE"].some((m) => typeof mod[m] === "function")) throw new Error("no handlers"); + ok++; + } catch (e) { + failed.push(`${file}: ${e instanceof Error ? e.message : e}`); + } +} +console.log(`imported ${ok} route modules in ${(performance.now() - t0).toFixed(0)}ms; failed ${failed.length}`); +for (const f of failed) console.log(" FAIL", f); +process.exit(0); diff --git a/spike/index.html b/spike/index.html new file mode 100644 index 000000000..a80af369d --- /dev/null +++ b/spike/index.html @@ -0,0 +1,15 @@ +<!doctype html> +<html lang="en" translate="no" class="notranslate"> + <head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content" /> + <meta name="google" content="notranslate" /> + <title>omp web + + + + +
+ + + diff --git a/spike/probe-dispatcher.ts b/spike/probe-dispatcher.ts new file mode 100644 index 000000000..e017621da --- /dev/null +++ b/spike/probe-dispatcher.ts @@ -0,0 +1,31 @@ +// Probe 6: lib/http-dispatcher.ts (undici EnvHttpProxyAgent + undici.install) under Bun, +// and whether Bun's own fetch honors HTTP_PROXY. Mode = argv[2]: "dispatcher" | "native". +const mode = process.argv[2] ?? "dispatcher"; +const upstream = `http://127.0.0.1:${process.env.SPIKE_PORT ?? 30311}/spike-upstream`; +const proxyHits: string[] = []; +// Minimal forward proxy: answers absolute-form requests itself and records them. +const proxy = Bun.serve({ port: 0, hostname: "127.0.0.1", fetch: (req) => { proxyHits.push(req.url); return new Response(`via-proxy ${req.url}`); } }); +const bunFetch = globalThis.fetch; +if (mode === "dispatcher") { + const { configureHttpDispatcher } = await import("../lib/http-dispatcher"); + configureHttpDispatcher(); + console.log(`globalThis.fetch replaced by undici: ${globalThis.fetch !== bunFetch}`); +} +const direct = await fetch(upstream); +console.log(`[${mode}] direct fetch ${upstream}: ${direct.status} ${await direct.text()}`); +process.env.HTTP_PROXY = `http://127.0.0.1:${proxy.port}`; +process.env.NO_PROXY = ""; +if (mode === "dispatcher") { + // EnvHttpProxyAgent reads env at construction: rebuild it with the proxy env set. + (globalThis as { __ompWebHttpDispatcherConfigured?: boolean }).__ompWebHttpDispatcherConfigured = false; + const { configureHttpDispatcher } = await import("../lib/http-dispatcher"); + configureHttpDispatcher(); +} +try { + const viaEnv = await fetch("http://spike.invalid/x"); + console.log(`[${mode}] fetch http://spike.invalid/x with HTTP_PROXY set: ${viaEnv.status} ${await viaEnv.text()}`); +} catch (e) { + console.log(`[${mode}] fetch with HTTP_PROXY set: FAIL ${e instanceof Error ? e.message : e}`); +} +console.log(`[${mode}] proxy saw: ${JSON.stringify(proxyHits)}`); +proxy.stop(true); diff --git a/spike/probe-libs.ts b/spike/probe-libs.ts new file mode 100644 index 000000000..284a26d40 --- /dev/null +++ b/spike/probe-libs.ts @@ -0,0 +1,41 @@ +// Probes 3-5: node:sqlite notification store, sharp thumbnails, web-push signing — under Bun. +import { createECDH, randomBytes } from "node:crypto"; +import { readFileSync } from "node:fs"; +import webpush from "web-push"; +import { getVapidKeys, listHistory, recordHistory, saveDevice, listDevices } from "../lib/notification-store"; +import { createThumbnail } from "../lib/media-cache"; + +const step = async (name: string, fn: () => unknown) => { + try { + console.log(`${name}: OK ${JSON.stringify(await fn())}`); + } catch (e) { + console.log(`${name}: FAIL ${e instanceof Error ? `${e.name}: ${e.message}` : e}`); + } +}; + +await step("3 node:sqlite store", () => { + const vapid = getVapidKeys(webpush.generateVAPIDKeys); + saveDevice("spike-device-1", { enabled: true } as never); + recordHistory({ type: "test", sessionId: "s1", sessionName: "spike" }); + return { vapidPublicLen: vapid.publicKey.length, devices: listDevices().length, history: listHistory().map((h) => h.id) }; +}); + +await step("4 sharp thumbnail", async () => { + const png = readFileSync(new URL("../public/icon-192.png", import.meta.url)); + const thumb = await createThumbnail("spikehash0000000000000000000000000000000000000000000000000000000", png); + return { inputBytes: png.length, webpBytes: thumb?.length ?? null, riff: thumb?.subarray(0, 4).toString() ?? null }; +}); + +await step("5 web-push signed request", () => { + const keys = webpush.generateVAPIDKeys(); + const ecdh = createECDH("prime256v1"); + ecdh.generateKeys(); + const subscription = { + endpoint: "https://push.example.invalid/send/abc", + keys: { p256dh: ecdh.getPublicKey().toString("base64url"), auth: randomBytes(16).toString("base64url") }, + }; + const req = webpush.generateRequestDetails(subscription, JSON.stringify({ title: "spike" }), { + vapidDetails: { subject: "mailto:spike@example.invalid", publicKey: keys.publicKey, privateKey: keys.privateKey }, + }); + return { method: req.method, auth: String(req.headers.Authorization).slice(0, 12), encoding: req.headers["Content-Encoding"], bodyBytes: (req.body as Buffer).length }; +}); diff --git a/spike/routes.gen.ts b/spike/routes.gen.ts new file mode 100644 index 000000000..65e5a2205 --- /dev/null +++ b/spike/routes.gen.ts @@ -0,0 +1,142 @@ +import * as r0 from "../app/api/agent/[id]/bash-output/route"; +import * as r1 from "../app/api/agent/[id]/route"; +import * as r2 from "../app/api/agent/new/route"; +import * as r3 from "../app/api/agents/route"; +import * as r4 from "../app/api/app-update/notes/route"; +import * as r5 from "../app/api/app-update/route"; +import * as r6 from "../app/api/auth/accounts/[provider]/route"; +import * as r7 from "../app/api/auth/all-providers/route"; +import * as r8 from "../app/api/auth/api-key/[provider]/route"; +import * as r9 from "../app/api/auth/login/[provider]/route"; +import * as r10 from "../app/api/auth/providers/route"; +import * as r11 from "../app/api/cwd/browse/route"; +import * as r12 from "../app/api/cwd/validate/route"; +import * as r13 from "../app/api/default-cwd/route"; +import * as r14 from "../app/api/events/route"; +import * as r15 from "../app/api/file-index/route"; +import * as r16 from "../app/api/files/[...path]/route"; +import * as r17 from "../app/api/git/diff/route"; +import * as r18 from "../app/api/git/status/route"; +import * as r19 from "../app/api/github-repo/route"; +import * as r20 from "../app/api/home/route"; +import * as r21 from "../app/api/hosts/link/blob/[reqId]/route"; +import * as r22 from "../app/api/hosts/link/route"; +import * as r23 from "../app/api/hosts/route"; +import * as r24 from "../app/api/manifest/route"; +import * as r25 from "../app/api/mcp/route"; +import * as r26 from "../app/api/media/[hash]/route"; +import * as r27 from "../app/api/model-roles/route"; +import * as r28 from "../app/api/models-config/catalog/route"; +import * as r29 from "../app/api/models-config/route"; +import * as r30 from "../app/api/models-config/test/route"; +import * as r31 from "../app/api/models/route"; +import * as r32 from "../app/api/notifications/devices/route"; +import * as r33 from "../app/api/notifications/history/route"; +import * as r34 from "../app/api/notifications/presence/route"; +import * as r35 from "../app/api/notifications/test/route"; +import * as r36 from "../app/api/omp-settings/route"; +import * as r37 from "../app/api/omp-update/route"; +import * as r38 from "../app/api/omp-version/route"; +import * as r39 from "../app/api/plugins/route"; +import * as r40 from "../app/api/projects/clone/route"; +import * as r41 from "../app/api/projects/route"; +import * as r42 from "../app/api/provider-usage/route"; +import * as r43 from "../app/api/providers/enable/route"; +import * as r44 from "../app/api/sessions/[id]/archive/route"; +import * as r45 from "../app/api/sessions/[id]/auto-name/route"; +import * as r46 from "../app/api/sessions/[id]/context/route"; +import * as r47 from "../app/api/sessions/[id]/entries/[entryId]/thinking/route"; +import * as r48 from "../app/api/sessions/[id]/export/route"; +import * as r49 from "../app/api/sessions/[id]/route"; +import * as r50 from "../app/api/sessions/[id]/state/route"; +import * as r51 from "../app/api/sessions/[id]/subagents/[subagentId]/route"; +import * as r52 from "../app/api/sessions/[id]/subagents/route"; +import * as r53 from "../app/api/sessions/archive/route"; +import * as r54 from "../app/api/sessions/import/route"; +import * as r55 from "../app/api/sessions/route"; +import * as r56 from "../app/api/sessions/search/route"; +import * as r57 from "../app/api/skills/check/route"; +import * as r58 from "../app/api/skills/install/route"; +import * as r59 from "../app/api/skills/route"; +import * as r60 from "../app/api/skills/search/route"; +import * as r61 from "../app/api/skills/update/route"; +import * as r62 from "../app/api/stt/[jobId]/audio/route"; +import * as r63 from "../app/api/stt/[jobId]/route"; +import * as r64 from "../app/api/stt/route"; +import * as r65 from "../app/api/usage/route"; +import * as r66 from "../app/api/web-auth/session/route"; +import * as r67 from "../app/api/web-settings/route"; +import * as r68 from "../app/api/windows-service/route"; +import * as r69 from "../app/api/worktrees/route"; +export default { + "api/agent/[id]/bash-output": r0, + "api/agent/[id]": r1, + "api/agent/new": r2, + "api/agents": r3, + "api/app-update/notes": r4, + "api/app-update": r5, + "api/auth/accounts/[provider]": r6, + "api/auth/all-providers": r7, + "api/auth/api-key/[provider]": r8, + "api/auth/login/[provider]": r9, + "api/auth/providers": r10, + "api/cwd/browse": r11, + "api/cwd/validate": r12, + "api/default-cwd": r13, + "api/events": r14, + "api/file-index": r15, + "api/files/[...path]": r16, + "api/git/diff": r17, + "api/git/status": r18, + "api/github-repo": r19, + "api/home": r20, + "api/hosts/link/blob/[reqId]": r21, + "api/hosts/link": r22, + "api/hosts": r23, + "api/manifest": r24, + "api/mcp": r25, + "api/media/[hash]": r26, + "api/model-roles": r27, + "api/models-config/catalog": r28, + "api/models-config": r29, + "api/models-config/test": r30, + "api/models": r31, + "api/notifications/devices": r32, + "api/notifications/history": r33, + "api/notifications/presence": r34, + "api/notifications/test": r35, + "api/omp-settings": r36, + "api/omp-update": r37, + "api/omp-version": r38, + "api/plugins": r39, + "api/projects/clone": r40, + "api/projects": r41, + "api/provider-usage": r42, + "api/providers/enable": r43, + "api/sessions/[id]/archive": r44, + "api/sessions/[id]/auto-name": r45, + "api/sessions/[id]/context": r46, + "api/sessions/[id]/entries/[entryId]/thinking": r47, + "api/sessions/[id]/export": r48, + "api/sessions/[id]": r49, + "api/sessions/[id]/state": r50, + "api/sessions/[id]/subagents/[subagentId]": r51, + "api/sessions/[id]/subagents": r52, + "api/sessions/archive": r53, + "api/sessions/import": r54, + "api/sessions": r55, + "api/sessions/search": r56, + "api/skills/check": r57, + "api/skills/install": r58, + "api/skills": r59, + "api/skills/search": r60, + "api/skills/update": r61, + "api/stt/[jobId]/audio": r62, + "api/stt/[jobId]": r63, + "api/stt": r64, + "api/usage": r65, + "api/web-auth/session": r66, + "api/web-settings": r67, + "api/windows-service": r68, + "api/worktrees": r69, +}; diff --git a/spike/server-full.ts b/spike/server-full.ts new file mode 100644 index 000000000..93181d8d3 --- /dev/null +++ b/spike/server-full.ts @@ -0,0 +1,6 @@ +// Probe 11b: same server, plus the SPA as a Bun HTML import so `bun build --compile` embeds the UI. +import index from "./index.html"; + +(globalThis as { __spikeIndex?: Bun.HTMLBundle }).__spikeIndex = index; +// Dynamic: server.ts reads the global at top level, so it must evaluate after the assignment above. +await import("./server"); diff --git a/spike/server.ts b/spike/server.ts new file mode 100644 index 000000000..7bac3120f --- /dev/null +++ b/spike/server.ts @@ -0,0 +1,82 @@ +// Spike: omp-web API on Bun.serve. Maps app/api/**/route.ts onto Bun's native +// router (`[id]` → `:id`, `[...path]` → `*`), runs proxy.ts in front, serves a +// bearer-gated WebSocket on /spike-link. Throwaway. +import path from "path"; +import { NextRequest } from "next/server"; +import { proxy } from "../proxy"; +import { register } from "../instrumentation.node"; +import routeModules from "./routes.gen"; + +const METHODS = ["GET", "POST", "PUT", "PATCH", "DELETE"] as const; +// proxy.ts `config.matcher` exclusions, minus the Next asset paths that no longer exist. +const UNGATED = /^\/(?:favicon\.ico|icon\.svg|icon\.png|icon-192\.png|badge-96\.png|sw\.js|api\/hosts\/link(?:\/|$))/; + +type Handler = (req: Request, ctx: { params: Promise> }) => Response | Promise; + +async function gate(req: Request): Promise { + if (UNGATED.test(new URL(req.url).pathname)) return null; + const res = await proxy(new NextRequest(req)); + return res.headers.get("x-middleware-next") === "1" ? null : res; +} + +const routes: Record Promise>> = {}; +for (const [dir, mod] of Object.entries(routeModules)) { + const segs = dir.split("/"); + const restIdx = segs.findIndex((s) => s.startsWith("[...")); + const pattern = "/" + segs.map((s) => (s.startsWith("[...") ? "*" : s.replace(/^\[(\w+)\]$/, ":$1"))).join("/"); + const restName = restIdx >= 0 ? segs[restIdx].slice(4, -1) : null; + const byMethod: Record Promise> = {}; + for (const m of METHODS) { + const fn = (mod as Record)[m] as Handler | undefined; + if (!fn) continue; + byMethod[m] = async (req) => { + const blocked = await gate(req); + if (blocked) return blocked; + const params: Record = { ...(req.params as Record) }; + if (restName) { + const parts = new URL(req.url).pathname.split("/").slice(restIdx + 1); + params[restName] = parts.filter(Boolean).map(decodeURIComponent); + } + // Route handlers type the request as NextRequest and read .nextUrl (14 sites). + return fn(new NextRequest(req), { params: Promise.resolve(params) }); + }; + } + routes[pattern] = byMethod; +} + +const port = Number(process.env.SPIKE_PORT ?? 30311); +const server = Bun.serve({ + port, + hostname: "127.0.0.1", + idleTimeout: 0, // SSE: Bun's default 10s idle timeout would cut the stream between heartbeats. + routes: { + ...routes, + // Set by server-full.ts (HTML import, embedded by `bun build --compile`). + ...((globalThis as { __spikeIndex?: Bun.HTMLBundle }).__spikeIndex ? { "/": (globalThis as { __spikeIndex?: Bun.HTMLBundle }).__spikeIndex! } : {}), + "/spike-upstream": () => new Response("upstream-ok"), + "/spike-link": (req, srv) => { + if (req.headers.get("authorization") !== "Bearer x") return new Response("unauthorized", { status: 401 }); + return srv.upgrade(req, { data: undefined }) ? undefined : new Response("upgrade failed", { status: 400 }); + }, + }, + websocket: { + maxPayloadLength: 64 * 1024 * 1024, + message(ws, msg) { + ws.send(msg); // echo text as text, binary as binary + }, + }, + fetch: async (req) => { + const blocked = await gate(req); + if (blocked) return blocked; + // shortcut: static dist serving with no cache headers or compression; a real cutover needs both. + const { pathname } = new URL(req.url); + const file = Bun.file(path.join(import.meta.dir, "dist", pathname === "/" ? "index.html" : pathname.slice(1))); + if (!pathname.includes("..") && (await file.exists())) return new Response(file); + const pub = Bun.file(path.join(import.meta.dir, "..", "public", pathname.slice(1))); + if (!pathname.includes("..") && pathname !== "/" && (await pub.exists())) return new Response(pub); + return new Response("not found", { status: 404 }); + }, +}); + +await register(); +console.log(`spike server on ${server.url} (${Object.keys(routes).length} routes)`); diff --git a/spike/sharp-compiled.ts b/spike/sharp-compiled.ts new file mode 100644 index 000000000..c20b46669 --- /dev/null +++ b/spike/sharp-compiled.ts @@ -0,0 +1,7 @@ +// Probe 11c: does sharp's native addon load inside a `bun build --compile` binary? +import { readFileSync } from "node:fs"; +import { createThumbnail } from "../lib/media-cache"; + +const png = readFileSync(process.argv[2]!); +const thumb = await createThumbnail("spikehash1111111111111111111111111111111111111111111111111111111", png); +console.log(`thumbnail: ${thumb ? `${thumb.length}B ${thumb.subarray(0, 4).toString()}` : "null (sharp unavailable)"}`); diff --git a/spike/sharp-direct.ts b/spike/sharp-direct.ts new file mode 100644 index 000000000..fd8f7d307 --- /dev/null +++ b/spike/sharp-direct.ts @@ -0,0 +1,3 @@ +import sharp from "sharp"; +const b = await sharp(process.argv[2]).webp().toBuffer(); +console.log("sharp ok", b.length); diff --git a/spike/shim-plugin.ts b/spike/shim-plugin.ts new file mode 100644 index 000000000..a0e3e9e66 --- /dev/null +++ b/spike/shim-plugin.ts @@ -0,0 +1,11 @@ +// Aliases next/dynamic and next/navigation to spike/shims (used by build.ts and the HTML-import dev server). +import path from "path"; +import type { BunPlugin } from "bun"; + +const shimPlugin: BunPlugin = { + name: "next-shims", + setup(build) { + build.onResolve({ filter: /^next\/(dynamic|navigation)$/ }, (args) => ({ path: path.join(import.meta.dir, "shims", `${args.path.slice(5)}.tsx`) })); + }, +}; +export default shimPlugin; diff --git a/spike/shims/dynamic.tsx b/spike/shims/dynamic.tsx new file mode 100644 index 000000000..957f7897b --- /dev/null +++ b/spike/shims/dynamic.tsx @@ -0,0 +1,19 @@ +// Spike shim for next/dynamic: React.lazy + Suspense (client-only app, `ssr` is moot). +import { lazy, Suspense, type ComponentType } from "react"; + +type Loader

= () => Promise | { default: ComponentType

}>; + +export default function dynamic

(loader: Loader

, options?: { loading?: ComponentType; ssr?: boolean }) { + const Lazy = lazy(async () => { + const loaded = await loader(); + return { default: "default" in loaded ? loaded.default : loaded }; + }); + const Loading = options?.loading; + return function DynamicComponent(props: P) { + return ( + : null}> + + + ); + }; +} diff --git a/spike/shims/navigation.tsx b/spike/shims/navigation.tsx new file mode 100644 index 000000000..42213316b --- /dev/null +++ b/spike/shims/navigation.tsx @@ -0,0 +1,27 @@ +// Spike shim for the two next/navigation hooks AppShell uses (useRouter().replace, useSearchParams). +import { useMemo, useSyncExternalStore } from "react"; + +const EVENT = "spike:navigate"; +const subscribe = (notify: () => void) => { + addEventListener("popstate", notify); + addEventListener(EVENT, notify); + return () => { + removeEventListener("popstate", notify); + removeEventListener(EVENT, notify); + }; +}; + +export function useSearchParams(): URLSearchParams { + const search = useSyncExternalStore(subscribe, () => location.search); + return useMemo(() => new URLSearchParams(search), [search]); +} + +const navigate = (method: "pushState" | "replaceState") => (url: string) => { + history[method](history.state, "", url); + dispatchEvent(new Event(EVENT)); +}; +const router = { replace: navigate("replaceState"), push: navigate("pushState"), back: () => history.back(), refresh: () => location.reload() }; + +export function useRouter() { + return router; +} diff --git a/spike/sse-probe.ts b/spike/sse-probe.ts new file mode 100644 index 000000000..03dfa29ec --- /dev/null +++ b/spike/sse-probe.ts @@ -0,0 +1,42 @@ +// Probe 1d: /api/events SSE on Bun — hello, subscribe, live delivery, heartbeat past +// Bun's 10s idle default, and server-side cleanup when the client aborts. +const B = `http://127.0.0.1:${process.env.SPIKE_PORT ?? 30311}`; +const ac = new AbortController(); +const res = await fetch(`${B}/api/events`, { signal: ac.signal }); +console.log("GET /api/events", res.status, res.headers.get("content-type")); +const reader = res.body!.getReader(); +const dec = new TextDecoder(); +let buf = ""; +const t0 = Date.now(); +async function next(match: RegExp, timeoutMs: number): Promise { + const deadline = Date.now() + timeoutMs; + while (!match.test(buf)) { + if (Date.now() > deadline) throw new Error(`timeout waiting for ${match}; got ${JSON.stringify(buf.slice(-300))}`); + const { value, done } = await reader.read(); + if (done) throw new Error("stream ended"); + buf += dec.decode(value); + } + const m = buf.match(match)!; + buf = buf.slice(m.index! + m[0].length); + return m[0]; +} +const hello = await next(/event: mux\ndata: (.*)\n\n/, 5000); +const connectionId = JSON.parse(hello.split("data: ")[1]).connectionId; +console.log(`hello after ${Date.now() - t0}ms connectionId=${connectionId}`); +const post = (body: unknown) => fetch(`${B}/api/events`, { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify(body) }); +const sub = await post({ connectionId, subscribe: { id: "s1", channel: { kind: "hosts" } } }); +console.log("POST subscribe", sub.status, await sub.text()); +console.log("first s1 frame:", (await next(/event: s1\ndata: .*\n\n/, 5000)).slice(0, 120).replace(/\n/g, "\\n")); +const created = await fetch(`${B}/api/hosts`, { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ label: "spike-host" }) }); +const t1 = Date.now(); +console.log("POST /api/hosts", created.status); +const live = await next(/event: s1\ndata: .*spike-host.*\n\n/, 5000); +console.log(`live hosts frame after ${Date.now() - t1}ms (${live.length}B)`); +if (process.env.SPIKE_HEARTBEAT) { + await next(/^:\n\n|\n:\n\n/, 40_000); + console.log(`heartbeat received, stream still open at ${((Date.now() - t0) / 1000).toFixed(1)}s`); +} +ac.abort(); +await Bun.sleep(300); +const after = await post({ connectionId, subscribe: { id: "s2", channel: { kind: "hosts" } } }); +console.log("POST subscribe after client abort", after.status, await after.text()); diff --git a/spike/ws-probe.mjs b/spike/ws-probe.mjs new file mode 100644 index 000000000..8ea40fe93 --- /dev/null +++ b/spike/ws-probe.mjs @@ -0,0 +1,64 @@ +// Probe 2: bearer-gated WebSocket on /spike-link. Runs unchanged under Bun and Node. +// bun spike/ws-probe.mjs | node spike/ws-probe.mjs | node spike/ws-probe.mjs undici +const url = `ws://127.0.0.1:${process.env.SPIKE_PORT ?? 30311}/spike-link`; +const runtime = typeof Bun !== "undefined" ? `bun ${Bun.version}` : `node ${process.version}`; +const WS = process.argv[2] === "undici" ? (await import("undici")).WebSocket : globalThis.WebSocket; +const label = `${runtime}${process.argv[2] === "undici" ? " (undici WebSocket)" : " (global WebSocket)"}`; + +function open(init) { + return new Promise((resolve, reject) => { + const ws = new WS(url, init); + ws.binaryType = "arraybuffer"; + ws.onopen = () => resolve(ws); + ws.onerror = (e) => reject(new Error(`error: ${e.message ?? e.type}`)); + ws.onclose = (e) => reject(new Error(`closed ${e.code}`)); + }); +} +const nextMessage = (ws) => new Promise((resolve) => { ws.onmessage = (e) => resolve(e.data); }); + +// 1. No token: must be refused before the upgrade. +try { + (await open(undefined)).close(); + console.log(`${label}: UNAUTHENTICATED CONNECT SUCCEEDED (bad)`); +} catch (e) { + console.log(`${label}: no-token connect refused (${e.message})`); +} + +// 2. Token in the Authorization header (non-standard WebSocket init). +let ws; +try { + ws = await open({ headers: { Authorization: "Bearer x" } }); +} catch (e) { + console.log(`${label}: header-auth connect FAILED (${e.message}) — this WebSocket cannot send headers`); + process.exit(0); +} +ws.onclose = null; +ws.onerror = null; +console.log(`${label}: header-auth connect ok`); + +ws.send("hello"); +const text = await nextMessage(ws); +ws.send(new Uint8Array([1, 2, 3])); +const bin = await nextMessage(ws); +console.log(`${label}: text echo ${JSON.stringify(text)} (${typeof text}), binary echo ${bin instanceof ArrayBuffer ? `ArrayBuffer[${new Uint8Array(bin)}]` : typeof bin}`); + +const N = 1000; +let t = performance.now(); +for (let i = 0; i < N; i++) { + const p = nextMessage(ws); + ws.send(`{"seq":${i}}`); + await p; +} +const rtt = (performance.now() - t) / N; +console.log(`${label}: ${N} sequential round-trips, mean RTT ${(rtt * 1000).toFixed(0)}µs`); + +const big = new Uint8Array(20 * 1024 * 1024); +for (let i = 0; i < big.length; i += 4096) big[i] = i & 0xff; +t = performance.now(); +const p = nextMessage(ws); +ws.send(big); +const back = new Uint8Array(await p); +const ms = performance.now() - t; +const ok = back.length === big.length && back[4096 * 7] === big[4096 * 7]; +console.log(`${label}: 20 MiB binary echo ${ok ? "intact" : "CORRUPT"} in ${ms.toFixed(0)}ms (${((2 * 20) / (ms / 1000)).toFixed(0)} MiB/s both directions)`); +ws.close(); From 6d9da58269d343f759e3cde3a4081c7102d0fa78 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 10:01:49 +0000 Subject: [PATCH 02/81] docs: Bun runtime migration spec and plan --- docs/plans/2026-10-30-bun-runtime.md | 549 ++++++++++++++++++++ docs/specs/2026-10-30-bun-runtime-design.md | 107 ++++ 2 files changed, 656 insertions(+) create mode 100644 docs/plans/2026-10-30-bun-runtime.md create mode 100644 docs/specs/2026-10-30-bun-runtime-design.md diff --git a/docs/plans/2026-10-30-bun-runtime.md b/docs/plans/2026-10-30-bun-runtime.md new file mode 100644 index 000000000..187e6ad8b --- /dev/null +++ b/docs/plans/2026-10-30-bun-runtime.md @@ -0,0 +1,549 @@ +# Bun Runtime Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** omp-web runs on one `Bun.serve` process (API, static files, SPA) built by Bun's bundler, with Next.js removed and no user-visible change. + +**Architecture:** The Node launcher `bin/omp-web.js` resolves the Bun binary from the package's pinned `bun` dependency and spawns `server/main.ts`. The server routes `app/api/**/route.ts` through a hand-written table (`server/routes.ts`) into `Bun.serve` `routes`, runs `proxy.ts` as its gate, and serves `dist/` (built by `scripts/build-client.ts`). `ompweb host`, the tray and the service helpers stay on Node. + +**Tech Stack:** Bun 1.4.4 (`Bun.serve`, `Bun.build`, `bun:sqlite`, `Bun.Image`, `bun test`), React 19, Tailwind 4 via `bun-plugin-tailwind`, Node ≥ 24 for the launcher, npm + `package-lock.json`. + +**Spec:** `docs/specs/2026-10-30-bun-runtime-design.md` (requirements R1–R12, invariants 1–10, acceptance criteria). Read it first. Spike evidence: `spike/REPORT.md`, `spike/server.ts`, `spike/build.ts`, `spike/shims/`. + +## Global Constraints + +- Work only in `/root/git/.ompweb_worktrees/bun-runtime` on `feat/bun-runtime`. One commit per task, using the message given in that task. +- Bun is pinned exactly: dependency `"bun": "1.4.4"`, devDependency `"@types/bun": "1.4.4"`, devDependency `"bun-plugin-tailwind": "0.1.2"`. Node ≥ 24 stays in `engines` (the launcher, `ompweb host`, tray and service helpers run on Node). +- npm only: `npm install`/`npm ci` and `package-lock.json`. Never run `bun install` or `bun add`, and never commit a `bun.lock`. +- `node_modules` in this worktree is a symlink to another worktree's (`../local-daemon/node_modules`). Task 1 replaces it with a real `npm ci` (`rm node_modules` removes only the link). Never install through the symlink. +- Ports: verification uses port 0 or 30300–30399. Never use 30177–30195. Never start, stop or restart a systemd/launchd/tray service. Never touch the real `~/.omp`: servers started for checks get `HOME`, `PI_CODING_AGENT_DIR` (temp dirs) and `OMP_WEB_OMP_BIN=/nonexistent/omp`, as `spike/env.sh` does. +- **Bun built-ins first (user rule):** whenever a dependency or Node-specific pattern is a problem or a cost under Bun, first check Bun's built-in alternatives (`Bun.*` APIs, `bun:*` modules, Bun.serve/bundler/test features) and use one if it fits. Only after that, assess whether keeping the Node dependency is viable. Do not churn working code just to use a Bun API. The decisions already made are in "Bun built-ins check" below; a new case gets a row there in the same commit. +- Modules loaded by the Node-run daemon and tray (`lib/hosts/**` and what they import, `lib/windows-service.ts`, `bin/*.js`) never use `Bun.*` or `bun:*`. They keep loading through `jiti`. +- Server runtime code resolves files from `const root = process.env.OMP_WEB_PACKAGE_DIR ?? process.cwd()`, never from `import.meta.dir`/`__dirname` (spec R11). Build scripts and tests may use `import.meta.dir`. +- Client code never uses `AbortSignal.timeout/any` or `Promise.withResolvers`. Every new UI string exists in all `lib/i18n/locales/*.json` (this plan adds none). +- No feature or behavior change: spec invariants 1–10 are the contract. No new `eslint-disable` comments. +- From Task 2 on, every task ends with `npm run typecheck && npm run lint && npm test` green. +- Line numbers are hints. Locate code by symbol. + +## Review Focus + +1. **SSE and host link through an idle gap longer than Bun's 10 s default:** `/api/events` stays open and keeps delivering (Task 5 `server/app.test.ts` idle test, Task 8 smoke step). +2. **Sign-in over the new server:** with a password set, `/?session=x` → 307 `/login?next=%2F%3Fsession%3Dx`. The login page's `/assets/*` load without a cookie, `/api/hosts/link` answers its own 401, and no `x-middleware-*` header appears (Task 5 `lib/web-auth.test.mjs` + `server/app.test.ts`). +3. **Static path traversal:** `/..%2Fpackage.json`, `/%2e%2e/package.json`, `/assets/..%5C..%5Cpackage.json` and a NUL byte all answer 404 and never a file outside `dist/`, `public/` or the KaTeX dir (Task 5 `server/http.test.ts`). +4. **Windows in-app update:** no process runs from the package's `bun.exe` while `npm install -g` replaces it. The update worker command is `OMP_WEB_NODE_BIN`, and the worker stops the server first (Task 7 `lib/self-update.test.mjs`). +5. **Installs where Bun's postinstall did not run** (`--ignore-scripts`, `bun add -g` without trusted deps, npm blocking scripts): the launcher uses the `@oven/bun--` binary (Task 1 `bin/bun-runtime.test.mjs`, Task 8 packed smoke). + +## Inventory (completeness checks; counts at `ae868dc1`) + +| Surface | Count | Where | Task | +|---|---|---|---| +| `next/server` importers | 64 + 1 | 60 route files, `lib/api-utils.ts`, `proxy.ts`, `lib/file-access.test.mjs`, `lib/file-index-route.test.mjs`; `lib/web-auth.test.mjs` imports `next/server.js` | 3 (proxy and web-auth test: 5) | +| `NextResponse.json(` | 381 sites / 61 files | 377 outside `proxy.ts` (60 files) | 3 / 5 | +| `new NextResponse(` | 5 | `notifications/presence`, `notifications/test`, `sessions` routes (4), `proxy.ts` (1) | 3 / 5 | +| `NextResponse.redirect(` / `.next(` | 3 / 4 | `proxy.ts` only | 5 | +| `.nextUrl` | 19 | 14 in `cwd/browse`, `file-index`, `files/[...path]`, `git/diff`, `git/status`, `github-repo`; 5 in `proxy.ts` | 3 / 5 | +| `NextRequest` | 28 | 26 in 6 routes + 3 tests; 2 in `proxy.ts` | 3 / 5 | +| `.cookies` | 2 | `app/api/web-auth/session/route.ts` (response), `proxy.ts` (request) | 5 | +| Other `next*` imports | 10 files | type `next` (`app/layout.tsx`, `app/api/manifest/route.ts`, `next.config.ts`); `next/constants`, `next/dist/.../path-match` (`lib/security-headers.test.mjs`); `next/experimental/testing/server.js` (`lib/web-auth.test.mjs`); `next/dynamic` (`AppShell`, `CommandPaletteMount`, `SettingsConfig`: 9 call sites); `next/navigation` (`AppShell`); `next/font/google`, `next/script` (`layout.tsx`); `next/headers` (`layout.tsx`, `page.tsx`) | 3–5 | +| Route files / `export const dynamic` / `runtime` | 70 / 38 / 2 | `runtime`: `sessions/[id]/export`, `sessions/archive` | 5 | +| `.next` / `next` CLI in code and config | — | `bin/omp-web.js` (`nextDir`, `resolveNextBin`, `nextArgs`, `main` check); `bin/omp-web-security.test.mjs:22-26`; `package.json` (`files`: 8 `.next` entries + `next.config.ts`; scripts: 5 `next` commands); `tsconfig.json` (plugin + 3 `.next` includes + `next-env.d.ts`); `.gitignore` (`/.next/`, `/.next-dev*.log` ×2, `next-env.d.ts`); `scripts/windows/omp-web-service.ps1:33,131`; `scripts/windows/omp-web-tray.ps1:79-80,249`; `nix/package.nix` (fonts patch, fileset); comments in `lib/directory-browser.ts:62`, `lib/rpc-manager.test.mjs:1524`. **Keep:** the `".next"` entries in the ignore lists of `app/api/file-index/route.ts:21` and `app/api/files/[...path]/route.ts:28`, and `lib/worktree.ts:109` (they are about user projects) | 5, 7, 8 | +| jiti | 121 test files + 2 bins | 120 `createJiti`; 18 with `alias` (17 only `"@/"`; 1 real mock: toast stub in `hooks/useAgentSession.rpc.test.mjs`); 6 `moduleCache: false`; 7 call-style `jiti(…)`. **Kept:** `bin/omp-web-host.js`, `bin/omp-web-tray.js` (Node) | 2 | +| `--experimental-strip-types` / `syncBuiltinESMExports` | 3 / 3 | `package.json`, `lib/draft-store.test.mjs`, `lib/github-repo.test.mjs` / `lib/rpc-manager.test.mjs`, `lib/session-reader.test.mjs`, `lib/session-routes.test.mjs` | 2 | +| Tests importing `app/api` modules | 16 | 14 through jiti; `lib/api-contract.test.mjs` reads source text | 2–3 | +| `process.execPath` in tests | 11 files | `bin/{node-version-gate,omp-web-hash-password,omp-web-security,omp-web-systemd}.test.mjs`, `lib/{draft-store,instrumentation-crash-policy,notification-store,rpc-manager,session-resume,skills-service,stt-omp-gateway}.test.mjs` | 2 | +| DOM tests (`tests/setup-dom.mjs` importers) | 30 | 29 import Testing Library statically | 2 | +| `node:sqlite` | 4 files | `lib/notification-store.ts`, `lib/usage-db.ts`, `lib/usage-db.test.mjs`, `lib/notification-hub.test.mjs` | 6 | +| `sharp` / `undici` | 3 / 4 files | `lib/media-cache.ts`, `lib/media-route.test.mjs`, `package.json` (+ comment in `app/api/media/[hash]/route.ts:8`) / `lib/http-dispatcher.ts`, `next.config.ts`, `package.json` (+ comment in `lib/stt-jobs.ts:47`) | 6 | +| `accessSync(...) === undefined` | 2 | `bin/omp-web-systemd.js` `isExecutableFile`, `bin/linux-tray.js` `isExecutable` | 2 | +| `NEXT_PUBLIC_*` | 3 vars, 3 sites | `components/ChatWindow.tsx`, `components/SessionSidebar-chrome.tsx`, `lib/event-stream.ts`. The generic `NEXT_PUBLIC_FOO` env-stripping tests stay | 4 | +| `@next/next/no-img-element` disables | 5 | grep | 5 | +| `"use client"` | 85 files | harmless directive; **kept** (removal is churn) | — | + +## Bun built-ins check (user rule) + +| Node dependency / pattern | Bun built-in checked | Choice | +|---|---|---| +| `next` (router, server, bundler, fonts) | `Bun.serve` `routes`, `Bun.build` HTML entry, HTML import + HMR | Replace | +| `sharp` (thumbnails) | `Bun.Image` (applies EXIF orientation; resize/webp verified) | Replace | +| `undici` + `lib/http-dispatcher.ts` | Bun `fetch` honors `HTTP(S)_PROXY`/`NO_PROXY` | Remove | +| `node:sqlite` `DatabaseSync` | `bun:sqlite` `Database` (sync, prepared statements, WAL, `busy_timeout`, `inTransaction`); `Bun.SQL` assessed below | Replace with `bun:sqlite` | +| jiti in tests | `bun test` loads TS and tsconfig paths natively; `mock.module`; `?fresh=N` imports | Replace | +| jiti in `bin/omp-web-host.js`, `bin/omp-web-tray.js` | Running them under Bun would drop jiti, but every supervisor-started daemon would need a Node→Bun hop (SIGTERM must reach the daemon) | Keep (Node) | +| `node:test` / `node:assert` imports in tests | `bun test` runs them as they are | Keep; use `bun:test` only for `mock.module`/`spyOn` | +| `jsdom` | No DOM built into Bun | Keep | +| `@tailwindcss/postcss` + `postcss` | Bun CSS bundler + official `bun-plugin-tailwind` | Replace | +| `NextRequest.cookies` / `NextResponse.cookies` | `Bun.CookieMap` / `Bun.Cookie` | Replace | +| Next's built-in gzip | `CompressionStream("gzip")` (web standard, built in) | Replace | +| `node:child_process` (45 files) incl. IPC to the Node launcher | `Bun.spawn`; Node's API works under Bun, including Node↔Bun IPC | Keep (no problem) | +| `web-push` (VAPID, aes128gcm) | No built-in; works under Bun (spike probe 5) | Keep | +| `fs.accessSync` returns `null` on Bun | — (semantics bug) | try/catch | +| `eslint-config-next` / `tsc` | Bun has no linter or typechecker | `typescript-eslint` + `eslint-plugin-react-hooks`; `tsc` with `@types/bun` | + +**Bun.SQL (async) vs bun:sqlite for the notification store — assessment.** `lib/notification-hub.ts` calls the store synchronously on hot paths: +- `publishNotification` (sync, called from session event handling) runs `listDevices` and `recordHistory`; +- `getVapidPublicKey` and `stillSubscribed` are sync; +- only `sendPush`/`sendTestPush` are already async. + +The two notification routes are async, but every query is a microsecond-scale local lookup. Bun.SQL's sqlite adapter wraps the same in-process SQLite in promises. That gives no I/O concurrency, while `publishNotification` would become async and its history-then-broadcast ordering would need awaiting. **Verdict:** bun:sqlite is the better long-run fit, so no GitHub issue is needed. + +## File map + +- **Create:** + - `bin/bun-runtime.js` and `bin/bun-runtime.test.mjs`; + - `server/routes.ts`, `server/http.ts`, `server/app.ts`, `server/main.ts`, `server/dev.ts`, `server/client-env.ts` and their tests `server/{routes,http,app,client-env}.test.ts`; + - `app/index.html`, `app/client.tsx`, `app/boot.ts`; + - `components/AppErrorBoundary.tsx`, `lib/dynamic.tsx`, `lib/navigation.ts`; + - `scripts/build-client.ts`, `scripts/smoke.ts`, `bunfig.toml`; + - `app/fonts/*.woff2` and their OFL licenses. +- **Delete:** + - Next files: `next.config.ts`, `instrumentation.ts`, `postcss.config.mjs`; + - Next app files: `app/layout.tsx`, `app/page.tsx`, `app/login/page.tsx`, `app/error.tsx`, `app/global-error.tsx`; + - Code replaced by Bun: `lib/http-dispatcher.ts`, `lib/security-headers.test.mjs` (ported); + - The spike: `spike/`. +- **Move:** `app/icon.svg` → `public/icon.svg`. + +--- + +### Task 1: Prove the distribution and runtime assumptions; add the Bun resolver + +**Files:** +- Modify: `package.json`, `package-lock.json` (add `bun`, `@types/bun`), `docs/specs/2026-10-30-bun-runtime-design.md` ("Verified assumptions" rows) +- Create: `bin/bun-runtime.js`, `bin/bun-runtime.test.mjs` + +**Interfaces:** +- Produces (CommonJS, Node-compatible, no Bun APIs): + ```js + const MIN_BUN_VERSION = "1.4.4"; + /** Absolute path of the Bun that runs the server, or "bun" when only PATH has one. Throws Error("Bun runtime not found: …") naming the reinstall command. */ + function resolveBunBinary(packageDir, env = process.env) // → string + module.exports = { MIN_BUN_VERSION, resolveBunBinary }; + // CLI: `node bin/bun-runtime.js ` runs Bun with , inherits stdio, exits with its status (used by the Windows dev fallback, Task 7). + ``` + Order: (1) `require.resolve("bun/package.json", { paths: [packageDir] })` → `

/bin/bun.exe` if it is a file > 1 MiB (the 450-byte placeholder means the postinstall did not run). (2) The first existing `@oven/bun--{,-musl,-baseline}/bin/bun[.exe]`, resolved from the `bun` package dir: os `darwin|linux|windows` (from `process.platform`, win32 → windows), arch `aarch64|x64`. (3) `bun` on `env.PATH` whose `--version` is ≥ `MIN_BUN_VERSION`, returned as `"bun"`. + +- [ ] **Step 1: Real install.** `rm node_modules && npm ci`. Expected: `test -d node_modules && ! test -L node_modules` succeeds. +- [ ] **Step 2: Add Bun.** `npm install --save-exact bun@1.4.4 && npm install --save-dev --save-exact @types/bun@1.4.4`. Expected: `node_modules/.bin/bun --version` → `1.4.4`. +- [ ] **Step 3: Failing tests** in `bin/bun-runtime.test.mjs` (`node:test`; runs under `node --test` now and `bun test` after Task 2): + - `resolves the package's own Bun`: `resolveBunBinary(repoRoot)` is an existing file, and running it with `--version` prints `require("../package.json").dependencies.bun`. + - `falls back to the platform package when the postinstall did not run`: a temp dir with `node_modules/bun/package.json` (`{"name":"bun","version":"1.4.4"}`), a 450-byte `node_modules/bun/bin/bun.exe` and `node_modules/@oven/bun--/{package.json,bin/bun[.exe]}` → returns that `@oven` path. + - `uses bun on PATH last and refuses an old one` (skip on win32): a temp `PATH` dir whose `bun` script prints `1.3.0` → throws matching `/1\.4\.4/`; printing `1.4.4` → returns `"bun"`. + - `no Bun anywhere`: `resolveBunBinary(emptyDir, { PATH: "" })` throws `/Bun runtime not found/`. +- [ ] **Step 4: Run** `node --test bin/bun-runtime.test.mjs` → FAIL (module missing). +- [ ] **Step 5: Implement** `bin/bun-runtime.js` (version compare: split on `.`, numeric). +- [ ] **Step 6: Run** → PASS. +- [ ] **Step 7: Probes** (throwaway files in `/tmp/bunplan-t1`, not committed). Add one row per probe to the spec's "Verified assumptions" table (command → deciding output): + 1. Packed global install: `npm pack --ignore-scripts` (skips `prepack`, which still runs `next build`), then `npm install -g --prefix /tmp/bunplan-t1/prefix ./kahme247-ompweb-0.6.0.tgz`. `node -e` calling `resolveBunBinary(/lib/node_modules/@kahme247/ompweb)` → a path whose `--version` is `1.4.4`. Repeat with `npm install -g --ignore-scripts` → the `@oven/bun-linux-x64` path. + 2. NO_PROXY: one `bun -e` script with a `Bun.serve({ port: 0 })` answering `ok`. `HTTP_PROXY=http://127.0.0.1:9 NO_PROXY=127.0.0.1` → fetch to it gives 200 `ok`. Without `NO_PROXY` → `ECONNREFUSED`. + 3. Launcher IPC: a Node script spawns ` child.ts` with `stdio: ["inherit","inherit","inherit","ipc"]`, and messages go both ways (planner pre-check: works). + 4. Store compatibility: under **Node**, create real stores with the current code: `node -e 'const j=require("jiti")(__filename,{alias:{"@/":process.cwd()+"/"}}); …'` with `PI_CODING_AGENT_DIR=/tmp/bunplan-t1/agent`. That runs `getVapidKeys(...)`, `saveDevice(...)` and `recordHistory(...)` from `lib/notification-store.ts`, plus `getUsageDatabase()` from `lib/usage-db.ts`. Then, with `bun -e` and `bun:sqlite`: + - rows read back; + - `PRAGMA journal_mode` → `wal`; + - `stat -c %a notifications.db` → `600`; + - a second `bun` process doing `BEGIN IMMEDIATE` while the first holds a write transaction waits (`busy_timeout = 5000`), then succeeds after the first commits. + 5. Body cap: a streamed 150 MiB POST to `Bun.serve` → 413 by default, 200 with `maxRequestBodySize: Number.MAX_SAFE_INTEGER` (pre-checked; re-run and record). + 6. Add rows marked "pending: user's Mac (Task 8 packed smoke)" and "pending: Windows CI (Task 8)". +- [ ] **Step 8: Verify** `npm test` (still `node --test`) and `npm run typecheck` → pass. +- [ ] **Step 9: Commit** `build(bun): pin the Bun runtime and add its resolver`. + +### Task 2: Tests run under `bun test` + +**Files:** +- Modify: `package.json` (`test`), `tests/setup-dom.mjs`, the 121 jiti test files, the 3 strip-types and 3 `syncBuiltinESMExports` files, the 11 `process.execPath` tests as needed, the 29 DOM test files, `bin/omp-web-systemd.js` (`isExecutableFile`), `bin/linux-tray.js` (`isExecutable`) + +**Interfaces:** +- Produces: `npm test` = `bun test --parallel --timeout 30000` (no path filter; Bun finds every `*.test.{mjs,ts}` outside `node_modules`). Later tasks add `server/*.test.ts`. + +- [ ] **Step 1: Baseline.** Run the current `npm test`. Record pass/fail/skip in the commit body (the spike measured 1958/0/12 at `8e639641`). +- [ ] **Step 2: Switch the script** to `bun test --parallel --timeout 30000`. Run it and save the failure list. +- [ ] **Step 3: jiti codemod** (a one-off script, not committed), then a manual pass: + - delete `import { createJiti } from "jiti"` and every `const = createJiti(…)`; + - `await .import("

")` → `await import("

")`; `("

")` → `await import("

.ts")` (keep the extension the file has); + - `alias: { "@/": … }` → nothing (Bun reads the tsconfig paths); + - the toast alias in `hooks/useAgentSession.rpc.test.mjs` → `mock.module("@/components/ui/toast", () => import("./__fixtures__/toast-stub.mjs"))` from `bun:test`, before the hook's import; + - `moduleCache: false` re-imports → `await import(\`./rpc-manager.ts?fresh=${n}\`)` with a per-call counter; + - `{ default: true }` → `.default`. +- [ ] **Step 4: Builtin mocks.** Replace `t.mock.method(fs|childProcess, …)` + `syncBuiltinESMExports()` with `mock.module("node:fs" | "node:child_process", () => ({ ...real, default: { ...real, : fake }, : fake }))` from `bun:test`. Then import the module under test fresh (`?fresh=N`), and restore with `mock.restore()` in `t.after`. +- [ ] **Step 5: DOM tests.** + - In `tests/setup-dom.mjs`, delete the `after()` teardown (`--parallel` gives every file a fresh global). Add every DOM global a failing test names (expected at least `KeyboardEvent`, `MouseEvent`, `FocusEvent`, `InputEvent`, `HTMLInputElement`, `HTMLTextAreaElement`, `EventTarget`, and a `matchMedia` stub returning `{ matches: false, addEventListener() {}, removeEventListener() {} }`), all from `dom.window` so `instanceof` checks agree. + - In the 29 files, move the Testing Library imports below the setup import as dynamic imports: `const { render, screen } = await import("@testing-library/react");`. Bun evaluates CommonJS dependencies before an ESM side-effect import. +- [ ] **Step 6: Runtime assumptions in tests.** + - Tests that run a `bin/*.js` script (production runs them on Node) spawn `"node"`, not `process.execPath`. + - Tests that run a TS module in a child spawn `process.execPath` (Bun) without `--experimental-strip-types`. + - Fix the code bug the run exposes: `isExecutableFile` in `bin/omp-web-systemd.js` and `isExecutable` in `bin/linux-tray.js` become `fs.accessSync(candidate, fs.constants.X_OK); return fs.statSync(candidate).isFile();` inside the existing try/catch, matching `bin/omp-web-launchd.js`. +- [ ] **Step 7: Verify.** + - `npm test` → 0 fail, pass + skip ≥ baseline pass + skip, and no test file deleted or skipped wholesale. + - `rg -l "createJiti|from \"jiti\"" --glob '*.test.*'` → no output. + - `rg -n "experimental-strip-types|syncBuiltinESMExports" lib bin hooks components package.json` → no output. + - `npm run typecheck && npm run lint` → pass. +- [ ] **Step 8: Commit** `test: run the suite under bun test`. + +### Task 3: Route handlers use Web `Request`/`Response` + +**Files:** +- Modify: the 60 route files that import `next/server`, `lib/api-utils.ts`, `app/api/manifest/route.ts`, `lib/file-access.test.mjs`, `lib/file-index-route.test.mjs`. Not `proxy.ts` and not `lib/web-auth.test.mjs` (both in Task 5). + +**Interfaces:** +- Produces: handlers typed `(request: Request, context: { params: Promise<…> })` that return `Response`; `lib/api-utils.ts` helpers return `Response` (`resolveSessionHostOr404`, `hostOfflineResponse`, `resolveHostOrError`, `opErrorResponse`, `apiErrorResponse`). + +- [ ] **Step 1: Codemod** (a one-off script, not committed): + - delete `import { NextResponse } from "next/server";` and `import { NextRequest, NextResponse } from "next/server";`; + - `NextResponse.json(` → `Response.json(` (377); + - `new NextResponse(` → `new Response(` (4); + - type `NextResponse` → `Response`; + - `NextRequest` → `Request` (26); + - `.nextUrl` → `new URL(.url)` (14), hoisting `const url = new URL(request.url)` when a handler reads it more than once. + - In `app/api/manifest/route.ts`, delete `import type { MetadataRoute } from "next"` and the annotation. +- [ ] **Step 2: Verify the counts.** + - `rg -n "NextResponse|NextRequest|nextUrl|from \"next" app/api lib --glob '!lib/web-auth.test.mjs'` → no output (`app/layout.tsx`/`app/page.tsx` keep their Next imports until Task 5). + - `npm run typecheck && npm run lint && npm test` → pass. + - `npm run build` (still `next build`; Next accepts Web `Response`) → succeeds. +- [ ] **Step 3: Commit** `refactor(api): route handlers use Web Request and Response`. + +### Task 4: React SPA entry built by Bun + +**Files:** +- Create: + - entry and shell: `app/index.html`, `app/client.tsx`, `app/boot.ts`, `components/AppErrorBoundary.tsx`; + - Next replacements: `lib/dynamic.tsx`, `lib/navigation.ts`, `lib/navigation.test.mjs`; + - build: `server/client-env.ts`, `server/client-env.test.ts`, `scripts/build-client.ts`; + - fonts: `app/fonts/{geist-latin-wght-normal,jetbrains-mono-latin-wght-normal,noto-sans-mono-latin-wght-normal,noto-sans-mono-cyrillic-wght-normal,source-serif-4-latin-wght-normal}.woff2`, `app/fonts/{Geist,JetBrainsMono,NotoSansMono,SourceSerif4}-OFL.txt`. +- Modify: + - `app/globals.css`, `app/layout.tsx` (drop `next/font`), `app/error.tsx` (re-export); + - imports: `components/AppShell.tsx`, `components/CommandPaletteMount.tsx`, `components/SettingsConfig.tsx`; + - client env: `components/ChatWindow.tsx`, `components/SessionSidebar-chrome.tsx`, `lib/event-stream.ts`, `next.config.ts` (`env` keys renamed, values unchanged); + - `lib/markdown.ts`, `package.json` (devDependency `bun-plugin-tailwind@0.1.2`). + +**Interfaces:** +- Produces: + ```ts + // server/client-env.ts — build and dev use the same values + export function clientEnv(root: string): { OMP_WEB_PUBLIC_APP_VERSION: string; OMP_WEB_PUBLIC_EVENT_STREAM_WORKER_VERSION: string }; + // version from package.json; worker = sha256(public/event-stream-worker.js) hex, first 12 chars (moved from next.config.ts) + // lib/navigation.ts + export function useSearchParams(): URLSearchParams; + export function useRouter(): { replace(url: string): void; push(url: string): void; back(): void; refresh(): void }; + // lib/dynamic.tsx — same call shape as next/dynamic + export default function dynamic

(loader: () => Promise | { default: ComponentType

}>, options?: { loading?: ComponentType; ssr?: boolean }): ComponentType

; + // components/AppErrorBoundary.tsx + export function AppCrashScreen(props: { error: Error; reset: () => void }): JSX.Element; // the UI moved from app/error.tsx, unchanged + export class AppErrorBoundary extends Component<{ children: ReactNode }, { error: Error | null }>; // renders AppCrashScreen; reset = setState({ error: null }) + ``` +- Build output contract (consumed by Task 5): `dist/index.html`, plus every other output under `dist/assets/-.`, referenced by absolute `/assets/…` URLs. + +- [ ] **Step 1: Failing tests.** + - `lib/navigation.test.mjs` (with setup-dom): `replace("/?session=b")` updates `useSearchParams().get("session")` and leaves `history.length` unchanged; `push` adds an entry; a `popstate` re-renders with the new search. + - `server/client-env.test.ts`: the version equals `package.json` `version`, and the worker version equals the first 12 hex chars of the sha256 of `public/event-stream-worker.js`. +- [ ] **Step 2: Run** `bun test lib/navigation.test.mjs server/client-env.test.ts` → FAIL. +- [ ] **Step 3: Implement.** `lib/navigation.ts` and `lib/dynamic.tsx` come from `spike/shims/` (rename the event to `omp:navigate`). Then change the import lines: `next/dynamic` → `@/lib/dynamic` (3 files) and `next/navigation` → `@/lib/navigation` (AppShell). +- [ ] **Step 4: Fonts.** + - `npm pack @fontsource-variable/{geist,jetbrains-mono,noto-sans-mono,source-serif-4}`. From each tarball, copy the listed `files/*-wght-normal.woff2` and `LICENSE` into `app/fonts/`. + - In `app/globals.css`, next to the existing `@font-face` blocks, paste the matching blocks from each package's `wght.css` (keep their `font-family` name and `unicode-range`; `url("./fonts/")`; `font-display: swap`). Add `:root { --font-geist: ""; --font-jb-mono: …; --font-noto-mono: …; --font-source-serif: … }`. + - Remove the four `next/font/google` calls and their class names from `app/layout.tsx`. Next keeps rendering until Task 5, now from these faces. +- [ ] **Step 5: Client env rename.** + - `process.env.NEXT_PUBLIC_APP_VERSION` and `NEXT_PUBLIC_OMP_WEB_VERSION` → `process.env.OMP_WEB_PUBLIC_APP_VERSION`. + - `NEXT_PUBLIC_EVENT_STREAM_WORKER_VERSION` → `OMP_WEB_PUBLIC_EVENT_STREAM_WORKER_VERSION`. + - `next.config.ts` `env` renames its three keys to the two new names (same values, its own hash code) until Task 5 deletes it. +- [ ] **Step 6: KaTeX out of the entry chunk.** In `loadMathMarkdownPlugins` (`lib/markdown.ts`), replace `await import("katex/dist/katex.min.css")` with: when `typeof document !== "undefined"` and there is no `link[data-katex]`, append `` to `document.head`. Task 5 serves `/katex/`; until then math is unstyled under Next. +- [ ] **Step 7: Shell.** + - **`app/index.html`:** ``. The `` holds: + - `charset` and the viewport `width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content`; + - `omp web` and description `Web UI for the oh-my-pi (omp) coding agent`; + - `mobile-web-app-capable=yes`, `apple-mobile-web-app-title=omp web`, `apple-mobile-web-app-status-bar-style=default` and `format-detection=telephone=no` (cross-check against `git show ae868dc1:app/layout.tsx` `generateMetadata`); + - `` and ``; + - the five inline scripts copied verbatim from `app/layout.tsx` (theme, lang, font-size, ui-scale, touch-targets); + - ``. + + The `` keeps the layout's attributes and style and holds `

` and `"; await link("Hostile", { listSessions: () => [entry(OTHER)], exportSession: () => ({ ok: true, value: { html, fileName: "x.html" } }) }); - const routeJiti = createJiti(import.meta.url, { tryNative: false, alias: { "@/": fileURLToPath(new URL("../../", import.meta.url)) } }); - const { GET } = await routeJiti.import("../../app/api/sessions/[id]/export/route.ts"); + const { GET } = await import("../../app/api/sessions/[id]/export/route.ts"); const response = await GET(new Request(`http://main.test/api/sessions/${OTHER}/export?inline=1`), { params: Promise.resolve({ id: OTHER }) }); assert.equal(response.status, 200); assert.match(response.headers.get("content-disposition"), /^attachment;/); diff --git a/lib/hosts/session-ops.test.mjs b/lib/hosts/session-ops.test.mjs index 865d61899..db6a886b1 100644 --- a/lib/hosts/session-ops.test.mjs +++ b/lib/hosts/session-ops.test.mjs @@ -3,11 +3,9 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { sessionOps } = await jiti.import("./session-ops.ts"); -const { invalidateSessionListCache } = await jiti.import("../session-reader.ts"); +const { sessionOps } = await import("./session-ops.ts"); +const { invalidateSessionListCache } = await import("../session-reader.ts"); const SESSION_ID = "11111111-2222-4333-8444-555555555555"; diff --git a/lib/instrumentation-crash-policy.test.mjs b/lib/instrumentation-crash-policy.test.mjs index 39f566e7e..e41c73b09 100644 --- a/lib/instrumentation-crash-policy.test.mjs +++ b/lib/instrumentation-crash-policy.test.mjs @@ -23,14 +23,12 @@ function throwAfterRegister(errorExpr, { agentDir = "agent" } = {}) { const home = mkdtempSync(join(tmpdir(), "omp-web-crash-policy-")); try { const script = ` - const { createJiti } = await import("jiti"); - const jiti = createJiti(${JSON.stringify(join(root, "lib/"))}, { tsconfigPaths: true }); - const { register } = await jiti.import(${JSON.stringify(join(root, "instrumentation.node.ts"))}); + const { register } = await import(${JSON.stringify(join(root, "instrumentation.node.ts"))}); await register(); setTimeout(() => { throw ${errorExpr}; }, 0); setTimeout(() => process.exit(0), 300); `; - const result = spawnSync(process.execPath, ["--input-type=module", "-e", script], { + const result = spawnSync(process.execPath, ["-e", script], { cwd: root, env: { ...process.env, diff --git a/lib/media-route.test.mjs b/lib/media-route.test.mjs index 32958a5f6..7670982f9 100644 --- a/lib/media-route.test.mjs +++ b/lib/media-route.test.mjs @@ -4,8 +4,6 @@ import { existsSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node: import { tmpdir } from "node:os"; import { join } from "node:path"; import test, { after } from "node:test"; -import { fileURLToPath } from "node:url"; -import { createJiti } from "jiti"; import sharp from "sharp"; // Real GET /api/media/[hash] against a throwaway agent dir. @@ -18,12 +16,8 @@ after(() => { rmSync(agentDir, { recursive: true, force: true }); }); -const jiti = createJiti(import.meta.url, { - tryNative: false, - alias: { "@/": fileURLToPath(new URL("../", import.meta.url)) }, -}); -const route = await jiti.import("../app/api/media/[hash]/route.ts"); -const { eventWithToolResultImageUrls } = await jiti.import("./media-cache.ts"); +const route = await import("../app/api/media/[hash]/route.ts"); +const { eventWithToolResultImageUrls } = await import("./media-cache.ts"); const blobs = join(agentDir, "blobs"); const media = join(agentDir, "omp-web", "media"); diff --git a/lib/message-overflow.test.mjs b/lib/message-overflow.test.mjs index 2e60d2b72..6a193b94c 100644 --- a/lib/message-overflow.test.mjs +++ b/lib/message-overflow.test.mjs @@ -1,9 +1,7 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); -const { isMessageOverflowing } = await jiti.import("./message-overflow.ts"); +const { isMessageOverflowing } = await import("./message-overflow.ts"); test("does not mark a message as overflowing at the capped height", () => { assert.equal(isMessageOverflowing({ scrollHeight: 300, clientHeight: 300 }), false); diff --git a/lib/model-catalog.test.mjs b/lib/model-catalog.test.mjs index 44cc5f6ee..c91a2e002 100644 --- a/lib/model-catalog.test.mjs +++ b/lib/model-catalog.test.mjs @@ -1,10 +1,8 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); async function loadSubject() { - return jiti.import("./model-catalog.ts"); + return import("./model-catalog.ts"); } // Minimal models.dev/api.json-shaped fixture. diff --git a/lib/notification-events.test.mjs b/lib/notification-events.test.mjs index 440480bc6..1fbd8fcf8 100644 --- a/lib/notification-events.test.mjs +++ b/lib/notification-events.test.mjs @@ -1,9 +1,7 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); -const { createNotificationDetector, parseNotificationPrefs, renderNotification } = await jiti.import("./notification-events.ts"); +const { createNotificationDetector, parseNotificationPrefs, renderNotification } = await import("./notification-events.ts"); const session = { sessionId: "s1", sessionName: "Refactor auth" }; diff --git a/lib/notification-history-route.test.mjs b/lib/notification-history-route.test.mjs index 23e3c7f94..22dee8cc1 100644 --- a/lib/notification-history-route.test.mjs +++ b/lib/notification-history-route.test.mjs @@ -3,8 +3,6 @@ import { mkdtempSync, rmSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import test, { after, beforeEach } from "node:test"; -import { fileURLToPath } from "node:url"; -import { createJiti } from "jiti"; // Real /api/notifications/history against a throwaway agent dir. const agentDir = mkdtempSync(join(tmpdir(), "omp-web-history-route-")); @@ -18,12 +16,8 @@ after(() => { rmSync(agentDir, { recursive: true, force: true }); }); -const jiti = createJiti(import.meta.url, { - tryNative: false, - alias: { "@/": fileURLToPath(new URL("../", import.meta.url)) }, -}); -const route = await jiti.import("../app/api/notifications/history/route.ts"); -const store = await jiti.import("./notification-store.ts"); +const route = await import("../app/api/notifications/history/route.ts"); +const store = await import("./notification-store.ts"); const URL_ = "http://localhost/api/notifications/history"; const patch = (body) => route.PATCH(new Request(URL_, { method: "PATCH", headers: { "content-type": "application/json" }, body: typeof body === "string" ? body : JSON.stringify(body) })); diff --git a/lib/notification-history.test.mjs b/lib/notification-history.test.mjs index 37eb29e1f..b1aef7474 100644 --- a/lib/notification-history.test.mjs +++ b/lib/notification-history.test.mjs @@ -1,9 +1,7 @@ import assert from "node:assert/strict"; import test, { beforeEach } from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); -const { notificationHistory } = await jiti.import("./notification-history.ts"); +const { notificationHistory } = await import("./notification-history.ts"); const event = (sessionId, type = "completed") => ({ type, sessionId, sessionName: sessionId }); const entry = (sessionId, read = false) => ({ id: `${sessionId}:completed`, event: event(sessionId), at: 1, read }); diff --git a/lib/notification-hub.test.mjs b/lib/notification-hub.test.mjs index 98e654eff..c0c481bf4 100644 --- a/lib/notification-hub.test.mjs +++ b/lib/notification-hub.test.mjs @@ -4,13 +4,11 @@ import { tmpdir } from "node:os"; import { join } from "node:path"; import { DatabaseSync } from "node:sqlite"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); -const hub = await jiti.import("./notification-hub.ts"); -const { DEFAULT_NOTIFICATION_PREFS } = await jiti.import("./notification-events.ts"); -const store = await jiti.import("./notification-store.ts"); -const webpush = (await jiti.import("web-push")).default; +const hub = await import("./notification-hub.ts"); +const { DEFAULT_NOTIFICATION_PREFS } = await import("./notification-events.ts"); +const store = await import("./notification-store.ts"); +const webpush = (await import("web-push")).default; const event = { type: "completed", sessionId: "s1", sessionName: "Session" }; const prefs = (patch = {}) => ({ ...DEFAULT_NOTIFICATION_PREFS, enabled: true, ...patch }); diff --git a/lib/notification-store.test.mjs b/lib/notification-store.test.mjs index 4222495df..e0bfc896b 100644 --- a/lib/notification-store.test.mjs +++ b/lib/notification-store.test.mjs @@ -5,12 +5,10 @@ import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; import { promisify } from "node:util"; -import { createJiti } from "jiti"; const run = promisify(execFile); -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); -const store = await jiti.import("./notification-store.ts"); -const { DEFAULT_NOTIFICATION_PREFS } = await jiti.import("./notification-events.ts"); +const store = await import("./notification-store.ts"); +const { DEFAULT_NOTIFICATION_PREFS } = await import("./notification-events.ts"); const prefs = (patch = {}) => ({ ...DEFAULT_NOTIFICATION_PREFS, enabled: true, ...patch }); const subscription = (id = "abc") => ({ endpoint: `https://push.example/${id}`, keys: { p256dh: `B${"A".repeat(86)}`, auth: "A".repeat(22) } }); @@ -192,8 +190,7 @@ test("a corrupt notifications.json stays in place and the store starts empty", ( // An installed omp-web and `npm run dev` can open a fresh agent dir at the same moment. test("processes racing to open a fresh store all succeed and share one key pair", async () => { - const opener = `const { createJiti } = await import("jiti"); - const store = await createJiti(${JSON.stringify(import.meta.url)}, { tsconfigPaths: true }).import("./notification-store.ts"); + const opener = `const store = await import(${JSON.stringify(new URL("./notification-store.ts", import.meta.url).href)}); const at = Number(process.argv[1]); while (Date.now() < at); process.stdout.write(store.getVapidKeys(() => ({ publicKey: "pub-" + process.pid, privateKey: "x" })).publicKey);`; @@ -202,7 +199,7 @@ test("processes racing to open a fresh store all succeed and share one key pair" try { const at = String(Date.now() + 1500); const results = await Promise.allSettled(Array.from({ length: 8 }, () => - run(process.execPath, ["--input-type=module", "-e", opener, at], { env: { ...process.env, PI_CODING_AGENT_DIR: dir } }))); + run(process.execPath, ["-e", opener, at], { env: { ...process.env, PI_CODING_AGENT_DIR: dir } }))); for (const result of results) assert.equal(result.status, "fulfilled", `round ${round}: ${result.reason?.stderr ?? ""}`); assert.equal(new Set(results.map((result) => result.value.stdout)).size, 1, `round ${round}: one key pair`); } finally { diff --git a/lib/npm-update.test.mjs b/lib/npm-update.test.mjs index ba27ed607..eab46098d 100644 --- a/lib/npm-update.test.mjs +++ b/lib/npm-update.test.mjs @@ -1,9 +1,7 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { isNewerVersion, detectInstallMethod } = jiti("./npm-update.ts"); +const { isNewerVersion, detectInstallMethod } = await import("./npm-update.ts"); test("recognizes newer npm package versions", () => { assert.equal(isNewerVersion("0.2.1", "0.2.0"), true); diff --git a/lib/omp/agent-env.test.mjs b/lib/omp/agent-env.test.mjs index c169db6b8..9c86cb327 100644 --- a/lib/omp/agent-env.test.mjs +++ b/lib/omp/agent-env.test.mjs @@ -3,11 +3,9 @@ import { mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); const { formatAgentEnvText, getAgentEnvOverrides, isDeniedAgentEnvName, parseAgentEnvText, sanitizeAgentEnvValues } = - await jiti.import("./agent-env.ts"); + await import("./agent-env.ts"); /** Points getAgentDir() (and therefore the settings file) at a throwaway directory. */ function withAgentDir(run) { diff --git a/lib/omp/agents-service.test.mjs b/lib/omp/agents-service.test.mjs index 351d82ea8..3b4b3a20f 100644 --- a/lib/omp/agents-service.test.mjs +++ b/lib/omp/agents-service.test.mjs @@ -3,10 +3,8 @@ import { link, mkdtemp, readdir, realpath, rm } from "node:fs/promises"; import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { parseAgentFrontmatter, writeAgent } = await jiti.import("./agents-service.ts"); +const { parseAgentFrontmatter, writeAgent } = await import("./agents-service.ts"); const payload = { description: "A test agent", body: "Do the task." }; diff --git a/lib/omp/archive.test.mjs b/lib/omp/archive.test.mjs index db68d493f..a34cd6af6 100644 --- a/lib/omp/archive.test.mjs +++ b/lib/omp/archive.test.mjs @@ -4,10 +4,8 @@ import { tmpdir } from "node:os"; import { join } from "node:path"; import { gzipSync } from "node:zlib"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { listArchivedSessions, restoreArchivedSession } = await jiti.import("./archive.ts"); +const { listArchivedSessions, restoreArchivedSession } = await import("./archive.ts"); function sessionBody(id = "archived-id") { return [ diff --git a/lib/omp/mcp-config.test.mjs b/lib/omp/mcp-config.test.mjs index 49c0df2dc..8b1afc4f5 100644 --- a/lib/omp/mcp-config.test.mjs +++ b/lib/omp/mcp-config.test.mjs @@ -3,10 +3,8 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync, openSync, closeSync, uti import { tmpdir } from "node:os"; import { dirname, join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { deleteMcpServer, parseMcpListOutput, readMcpConfig, readUserMcpConfig, redactMcpServer, validateMcpServer, writeMcpServer } = await jiti.import("./mcp-config.ts"); +const { deleteMcpServer, parseMcpListOutput, readMcpConfig, readUserMcpConfig, redactMcpServer, validateMcpServer, writeMcpServer } = await import("./mcp-config.ts"); function withWorkspace(run) { const dir = mkdtempSync(join(tmpdir(), "omp-web-mcp-config-")); diff --git a/lib/omp/models-config.test.mjs b/lib/omp/models-config.test.mjs index 9e907d969..c3cd4e0bc 100644 --- a/lib/omp/models-config.test.mjs +++ b/lib/omp/models-config.test.mjs @@ -3,16 +3,14 @@ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "nod import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); const { ModelsConfigParseError, readModelsConfigFile, serializeModelsConfig, validateModelsConfig, writeModelsConfig, -} = await jiti.import("./models-config.ts"); +} = await import("./models-config.ts"); // A hand-edited models.yml: comments, blank lines and quoting that a // parse+stringify round trip would silently throw away. diff --git a/lib/omp/omp-cli.test.mjs b/lib/omp/omp-cli.test.mjs index 42bcdada0..b1c1eff24 100644 --- a/lib/omp/omp-cli.test.mjs +++ b/lib/omp/omp-cli.test.mjs @@ -1,12 +1,14 @@ import assert from "node:assert/strict"; -import childProcess from "node:child_process"; import { mkdtempSync, readFileSync, renameSync, rmSync, statSync, symlinkSync, mkdirSync, utimesSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; +import { mockBuiltin } from "../../tests/mock-builtin.mjs"; -function setup(t, execute) { +// Each setup imports omp-cli fresh so it binds the mocked child_process and starts with an empty version cache. +let freshImport = 0; + +async function setup(t, execute) { const dir = mkdtempSync(join(tmpdir(), "omp-version-")); const bin = join(dir, "omp"); writeFileSync(bin, "omp/18.1.19\n"); @@ -17,18 +19,17 @@ function setup(t, execute) { else process.env.OMP_WEB_OMP_BIN = previousBin; rmSync(dir, { recursive: true, force: true }); }); - t.mock.method(childProcess, "execFile", (path, _args, _options, callback) => { + await mockBuiltin(t, "node:child_process", { execFile: (path, _args, _options, callback) => { if (execute) execute(callback); else callback(null, readFileSync(path, "utf8")); - }); - // Keep builtin mocks on the same CJS path across supported Node versions. - const jiti = createJiti(import.meta.url, { moduleCache: false, tryNative: false }); - return { dir, bin, getOmpVersion: jiti("./omp-cli.ts").getOmpVersion }; + } }); + const { getOmpVersion } = await import(`./omp-cli.ts?fresh=${freshImport++}`); + return { dir, bin, getOmpVersion }; } test("unchanged executables reuse the version without launching another process", async (t) => { let launches = 0; - const { bin, getOmpVersion } = setup(t, (callback) => { + const { bin, getOmpVersion } = await setup(t, (callback) => { launches++; callback(null, readFileSync(bin, "utf8")); }); @@ -41,7 +42,7 @@ test("unchanged executables reuse the version without launching another process" }); test("atomic replacement invalidates even with the same size and modification time", async (t) => { - const { dir, bin, getOmpVersion } = setup(t); + const { dir, bin, getOmpVersion } = await setup(t); const original = statSync(bin); // Normalize both mtimes to the same precision before taking the cache snapshot. utimesSync(bin, original.atime, original.mtime); @@ -55,7 +56,7 @@ test("atomic replacement invalidates even with the same size and modification ti }); test("retargeting the release directory invalidates the cached version", async (t) => { - const { dir, bin, getOmpVersion } = setup(t); + const { dir, bin, getOmpVersion } = await setup(t); const first = join(dir, "first"); const second = join(dir, "second"); mkdirSync(first); @@ -75,7 +76,7 @@ test("unchanged launchers are re-probed after the five-minute safety expiry", as let now = Date.now(); t.mock.method(Date, "now", () => now); let installedVersion = "omp/18.1.19\n"; - const { getOmpVersion } = setup(t, (callback) => callback(null, installedVersion)); + const { getOmpVersion } = await setup(t, (callback) => callback(null, installedVersion)); assert.equal(await getOmpVersion(), "omp/18.1.19"); installedVersion = "omp/18.1.21\n"; now += 5 * 60_000 - 1; @@ -86,7 +87,7 @@ test("unchanged launchers are re-probed after the five-minute safety expiry", as test("overlapping version lookups share a result instead of racing failure backoff", async (t) => { const callbacks = []; - const { bin, getOmpVersion } = setup(t, (callback) => callbacks.push(callback)); + const { bin, getOmpVersion } = await setup(t, (callback) => callbacks.push(callback)); const first = getOmpVersion(); const second = getOmpVersion(); if (callbacks.length > 1) { @@ -105,7 +106,7 @@ test("overlapping version lookups share a result instead of racing failure backo test("an update during a probe does not cache its old result", async (t) => { const callbacks = []; - const { bin, getOmpVersion } = setup(t, (callback) => callbacks.push(callback)); + const { bin, getOmpVersion } = await setup(t, (callback) => callbacks.push(callback)); const first = getOmpVersion(); writeFileSync(bin, "omp/18.1.210\n"); callbacks[0](null, "omp/18.1.19\n"); @@ -117,7 +118,7 @@ test("an update during a probe does not cache its old result", async (t) => { test("changed executables recover immediately from a failed-probe backoff", async (t) => { let fail = true; - const { bin, getOmpVersion } = setup(t, (callback) => { + const { bin, getOmpVersion } = await setup(t, (callback) => { callback(fail ? new Error("update in progress") : null, "omp/18.1.21\n"); }); assert.equal(await getOmpVersion(), null); @@ -127,7 +128,7 @@ test("changed executables recover immediately from a failed-probe backoff", asyn }); test("removing an executable never serves its cached version", async (t) => { - const { bin, getOmpVersion } = setup(t); + const { bin, getOmpVersion } = await setup(t); assert.equal(await getOmpVersion(), "omp/18.1.19"); rmSync(bin); assert.equal(await getOmpVersion(), null); diff --git a/lib/omp/rpc-frame.test.mjs b/lib/omp/rpc-frame.test.mjs index 7a1182d74..cce770f19 100644 --- a/lib/omp/rpc-frame.test.mjs +++ b/lib/omp/rpc-frame.test.mjs @@ -1,14 +1,12 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); const { encodeRpcCommand, MAX_INBOUND_COMMAND_BYTES, MAX_RPC_FRAME_BYTES, RpcFrameDecoder, -} = await jiti.import("./rpc-frame.ts"); +} = await import("./rpc-frame.ts"); /** Outbound v2 chunk records exactly as OMP emits them. */ function chunkRecords(frame, chunkId, payloadBytes = 256 * 1024) { diff --git a/lib/omp/rpc-process-runtime.test.mjs b/lib/omp/rpc-process-runtime.test.mjs index bd36717fa..66fe46bc6 100644 --- a/lib/omp/rpc-process-runtime.test.mjs +++ b/lib/omp/rpc-process-runtime.test.mjs @@ -2,11 +2,9 @@ import assert from "node:assert/strict"; import { EventEmitter } from "node:events"; import { PassThrough } from "node:stream"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { RpcProcess, RpcCommandTimeoutError } = jiti("./rpc-process.ts"); -const { AgentSessionWrapper } = jiti("../rpc-manager.ts"); +const { RpcProcess, RpcCommandTimeoutError } = await import("./rpc-process.ts"); +const { AgentSessionWrapper } = await import("../rpc-manager.ts"); // Wrappers built directly need an online host; this one never spawns or reads files. const onlineHost = { id: "local", @@ -388,7 +386,7 @@ test("a response naming another command does not settle a command with its id", }); test("an adopted RpcProcess whose output outgrows the hold cap fails its commands and its replay", async () => { - const { LINK_LIMITS } = jiti("../hosts/link-protocol.ts"); + const { LINK_LIMITS } = await import("../hosts/link-protocol.ts"); const saved = LINK_LIMITS.channelBufferBytes; LINK_LIMITS.channelBufferBytes = 1_000; try { diff --git a/lib/omp/session-archive.test.mjs b/lib/omp/session-archive.test.mjs index 12c18c007..14c0a0700 100644 --- a/lib/omp/session-archive.test.mjs +++ b/lib/omp/session-archive.test.mjs @@ -4,10 +4,8 @@ import { tmpdir } from "node:os"; import { join } from "node:path"; import { gunzipSync } from "node:zlib"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { archiveSessionFileWithArtifacts } = await jiti.import("./session-files.ts"); +const { archiveSessionFileWithArtifacts } = await import("./session-files.ts"); test("archives native JSONL and sibling artifacts with an exact gzip round trip", () => { const root = mkdtempSync(join(tmpdir(), "omp-web-archive-test-")); diff --git a/lib/omp/session-edit.native.test.mjs b/lib/omp/session-edit.native.test.mjs index 4209126e5..373a24eb8 100644 --- a/lib/omp/session-edit.native.test.mjs +++ b/lib/omp/session-edit.native.test.mjs @@ -7,16 +7,14 @@ import { tmpdir } from "node:os"; import { dirname, join, resolve } from "node:path"; import test from "node:test"; import { fileURLToPath } from "node:url"; -import { createJiti } from "jiti"; import { SESSION_EDIT_COMMAND, SESSION_EDIT_RESPONSE_PREFIX } from "./session-edit-extension.mjs"; -const jiti = createJiti(import.meta.url); -const { editSessionHistory } = await jiti.import("./session-edit.ts"); +const { editSessionHistory } = await import("./session-edit.ts"); const SESSION_EDIT_EXTENSION_PATH = fileURLToPath(new URL("./session-edit-extension.mjs", import.meta.url)); -const { RpcProcess, RpcCommandTimeoutError } = await jiti.import("./rpc-process.ts"); -const { resolveOmpBin } = await jiti.import("./omp-cli.ts"); -const { buildSessionContext } = await jiti.import("../session-reader.ts"); -const { loadSessionFile } = await jiti.import("./session-files.ts"); +const { RpcProcess, RpcCommandTimeoutError } = await import("./rpc-process.ts"); +const { resolveOmpBin } = await import("./omp-cli.ts"); +const { buildSessionContext } = await import("../session-reader.ts"); +const { loadSessionFile } = await import("./session-files.ts"); // Deliberately opt-in: the normal npm test glob discovers this file without // launching an installed executable or inspecting the user's credentials. diff --git a/lib/omp/session-edit.test.mjs b/lib/omp/session-edit.test.mjs index 87f3f0a94..71da8f586 100644 --- a/lib/omp/session-edit.test.mjs +++ b/lib/omp/session-edit.test.mjs @@ -1,11 +1,9 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; import registerSessionEdit, { SESSION_EDIT_COMMAND, SESSION_EDIT_RESPONSE_PREFIX } from "./session-edit-extension.mjs"; -const jiti = createJiti(import.meta.url); -const { editSessionHistory } = await jiti.import("./session-edit.ts"); -const { RpcCommandTimeoutError } = await jiti.import("./rpc-process.ts"); +const { editSessionHistory } = await import("./session-edit.ts"); +const { RpcCommandTimeoutError } = await import("./rpc-process.ts"); const immediate = () => new Promise((resolve) => setImmediate(resolve)); const editReply = (result) => ({ diff --git a/lib/omp/settings-config.test.mjs b/lib/omp/settings-config.test.mjs index ee78887e8..f4b5a874f 100644 --- a/lib/omp/settings-config.test.mjs +++ b/lib/omp/settings-config.test.mjs @@ -3,10 +3,8 @@ import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "no import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { readNativeSettings, writeNativeSettings } = await jiti.import("./settings-config.ts"); +const { readNativeSettings, writeNativeSettings } = await import("./settings-config.ts"); function withAgentDir(run) { const dir = mkdtempSync(join(tmpdir(), "omp-web-settings-config-")); diff --git a/lib/omp/updates.test.mjs b/lib/omp/updates.test.mjs index db82847e3..3a2c3b184 100644 --- a/lib/omp/updates.test.mjs +++ b/lib/omp/updates.test.mjs @@ -1,13 +1,11 @@ import assert from "node:assert/strict"; -import childProcess from "node:child_process"; import { mkdtempSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; -import { join } from "node:path"; +import { dirname, join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; +import { mockBuiltin } from "../../tests/mock-builtin.mjs"; -const jiti = createJiti(import.meta.url); -const { parseOmpUpdateStatus, createCachedOmpUpdateCheck, OMP_UPDATE_CHECK_TTL_MS } = jiti("./updates.ts"); +const { parseOmpUpdateStatus, createCachedOmpUpdateCheck, OMP_UPDATE_CHECK_TTL_MS } = await import("./updates.ts"); test("parses OMP update availability without assuming an update exists", () => { assert.deepEqual(parseOmpUpdateStatus("Current version: 17.2.11\nNew version available: 17.2.12"), { currentVersion: "17.2.11", @@ -103,9 +101,8 @@ test("createCachedOmpUpdateCheck does not cache failures and allows retry", asyn // win32 cmd-wrap coverage for runOmpUpdate (third spawn site — see D5) // ============================================================================ -// moduleCache:false + tryNative:false keep t.mock.method(childProcess, ...) on -// the same CJS module instance the TypeScript import resolves (see omp-cli.test.mjs). -const mockSafeJiti = createJiti(import.meta.url, { moduleCache: false, tryNative: false }); +// Each test imports updates.ts fresh so it binds the mocked child_process. +let freshImport = 0; function withPlatform(t, platform) { const original = process.platform; @@ -119,6 +116,8 @@ function withOmpBin(t, bin) { t.after(() => { if (previousBin === undefined) delete process.env.OMP_WEB_OMP_BIN; else process.env.OMP_WEB_OMP_BIN = previousBin; + // omp-cli keeps the resolved path while it exists; ./updates.ts shares that module across fresh imports. + rmSync(dirname(bin), { recursive: true, force: true }); }); } @@ -129,11 +128,11 @@ test("runOmpUpdate routes .cmd launchers through cmd.exe on win32", async (t) => writeFileSync(bin, "stub\n"); withOmpBin(t, bin); let captured = null; - t.mock.method(childProcess, "execFile", (file, args, options, callback) => { + await mockBuiltin(t, "node:child_process", { execFile: (file, args, options, callback) => { captured = { file, args, options }; queueMicrotask(() => callback(null, "Current version: 18.2.7\nOMP is up to date")); - }); - const { runOmpUpdate } = mockSafeJiti("./updates.ts"); + } }); + const { runOmpUpdate } = await import(`./updates.ts?fresh=${freshImport++}`); const output = await runOmpUpdate(["--check"]); assert.match(output, /Current version: 18\.2\.7/); assert.equal(captured.file, "cmd.exe"); @@ -147,11 +146,11 @@ test("runOmpUpdate leaves .exe binaries untouched", async (t) => { writeFileSync(bin, "stub\n"); withOmpBin(t, bin); let captured = null; - t.mock.method(childProcess, "execFile", (file, args, options, callback) => { + await mockBuiltin(t, "node:child_process", { execFile: (file, args, options, callback) => { captured = { file, args, options }; queueMicrotask(() => callback(null, "Current version: 18.2.7\nOMP is up to date")); - }); - const { runOmpUpdate } = mockSafeJiti("./updates.ts"); + } }); + const { runOmpUpdate } = await import(`./updates.ts?fresh=${freshImport++}`); await runOmpUpdate(["--check"]); assert.equal(captured.file, bin); assert.deepEqual(captured.args, ["update", "--check"]); @@ -164,11 +163,11 @@ test("runOmpUpdate never wraps .cmd on non-win32 platforms", async (t) => { writeFileSync(bin, "stub\n"); withOmpBin(t, bin); let captured = null; - t.mock.method(childProcess, "execFile", (file, args, options, callback) => { + await mockBuiltin(t, "node:child_process", { execFile: (file, args, options, callback) => { captured = { file, args, options }; queueMicrotask(() => callback(null, "Current version: 18.2.7\nOMP is up to date")); - }); - const { runOmpUpdate } = mockSafeJiti("./updates.ts"); + } }); + const { runOmpUpdate } = await import(`./updates.ts?fresh=${freshImport++}`); await runOmpUpdate(["--check"]); assert.equal(captured.file, bin); assert.deepEqual(captured.args, ["update", "--check"]); @@ -185,7 +184,7 @@ test("real .cmd launcher through the real update path returns its stdout", { ski "", ].join("\r\n")); withOmpBin(t, bin); - const { runOmpUpdate, parseOmpUpdateStatus } = mockSafeJiti("./updates.ts"); + const { runOmpUpdate, parseOmpUpdateStatus } = await import(`./updates.ts?fresh=${freshImport++}`); const output = await runOmpUpdate(["--check"]); assert.match(output, /OMP is up to date/); const status = parseOmpUpdateStatus(output); diff --git a/lib/omp/win32-spawn.test.mjs b/lib/omp/win32-spawn.test.mjs index 9cce24929..e0386ae75 100644 --- a/lib/omp/win32-spawn.test.mjs +++ b/lib/omp/win32-spawn.test.mjs @@ -1,16 +1,15 @@ import assert from "node:assert/strict"; -import childProcess from "node:child_process"; import { EventEmitter } from "node:events"; import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; +import { mockBuiltin } from "../../tests/mock-builtin.mjs"; import { PassThrough } from "node:stream"; -import { createJiti } from "jiti"; -// moduleCache:false + tryNative:false keep t.mock.method(childProcess, ...) on -// the same CJS module instance the TypeScript import resolves (see omp-cli.test.mjs). -const jiti = createJiti(import.meta.url, { moduleCache: false, tryNative: false }); +// Each test that mocks child_process imports omp-cli fresh so it binds the fake. +let freshImport = 0; +const { RpcProcess } = await import("./rpc-process.ts"); /** Replace process.platform for the duration of one test (helper reads it at call time). */ function withPlatform(t, platform) { @@ -39,7 +38,7 @@ function makeSpawnHarness() { function startProcess(bin, cwd, extraArgs = []) { const harness = makeSpawnHarness(); - const proc = new (jiti("./rpc-process.ts").RpcProcess)({ + const proc = new RpcProcess({ cwd, extraArgs, dependencies: { resolveOmpBin: () => bin, spawn: harness.spawn }, @@ -119,11 +118,11 @@ test("probeOmpVersion routes .cmd launchers through cmd.exe on win32", async (t) rmSync(dir, { recursive: true, force: true }); }); let captured = null; - t.mock.method(childProcess, "execFile", (file, args, options, callback) => { + await mockBuiltin(t, "node:child_process", { execFile: (file, args, options, callback) => { captured = { file, args, options }; queueMicrotask(() => callback(null, "omp/18.2.4\n")); - }); - const { getOmpVersion } = jiti("./omp-cli.ts"); + } }); + const { getOmpVersion } = await import(`./omp-cli.ts?fresh=${freshImport++}`); assert.equal(await getOmpVersion(), "omp/18.2.4"); assert.equal(captured.file, "cmd.exe"); assert.deepEqual(captured.args, ["/c", bin, "--version"]); @@ -142,11 +141,11 @@ test("probeOmpVersion leaves .exe binaries untouched", async (t) => { rmSync(dir, { recursive: true, force: true }); }); let captured = null; - t.mock.method(childProcess, "execFile", (file, args, options, callback) => { + await mockBuiltin(t, "node:child_process", { execFile: (file, args, options, callback) => { captured = { file, args, options }; queueMicrotask(() => callback(null, "omp/18.2.4\n")); - }); - const { getOmpVersion } = jiti("./omp-cli.ts"); + } }); + const { getOmpVersion } = await import(`./omp-cli.ts?fresh=${freshImport++}`); assert.equal(await getOmpVersion(), "omp/18.2.4"); assert.equal(captured.file, bin); assert.deepEqual(captured.args, ["--version"]); @@ -165,11 +164,11 @@ test("probeOmpVersion never wraps .cmd on non-win32 platforms", async (t) => { rmSync(dir, { recursive: true, force: true }); }); let captured = null; - t.mock.method(childProcess, "execFile", (file, args, options, callback) => { + await mockBuiltin(t, "node:child_process", { execFile: (file, args, options, callback) => { captured = { file, args, options }; queueMicrotask(() => callback(null, "omp/18.2.4\n")); - }); - const { getOmpVersion } = jiti("./omp-cli.ts"); + } }); + const { getOmpVersion } = await import(`./omp-cli.ts?fresh=${freshImport++}`); assert.equal(await getOmpVersion(), "omp/18.2.4"); assert.equal(captured.file, bin); assert.deepEqual(captured.args, ["--version"]); @@ -194,7 +193,7 @@ test("real .cmd launcher through the real spawn path receives spaced arguments i mkdirSync(spacedCwd); const { promise: exited, resolve: resolveExit } = Promise.withResolvers(); - new (jiti("./rpc-process.ts").RpcProcess)({ + new RpcProcess({ cwd: spacedCwd, dependencies: { resolveOmpBin: () => bin }, // real child_process.spawn — no seam onExit: (info) => resolveExit(info), @@ -225,7 +224,7 @@ test("real .cmd launcher through the real version probe returns its stdout", { s if (previousBin === undefined) delete process.env.OMP_WEB_OMP_BIN; else process.env.OMP_WEB_OMP_BIN = previousBin; }); - const { getOmpVersion } = jiti("./omp-cli.ts"); + const { getOmpVersion } = await import(`./omp-cli.ts?fresh=${freshImport++}`); assert.equal(await getOmpVersion(), "omp/99.9.9-win"); const rawArgs = readFileSync(argsFile, "utf8").replace(/\r\n/g, "\n").trim(); assert.equal(rawArgs, "--version"); diff --git a/lib/paths.test.mjs b/lib/paths.test.mjs index 78dafb7ba..60aefad23 100644 --- a/lib/paths.test.mjs +++ b/lib/paths.test.mjs @@ -1,10 +1,8 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { isWindowsAbsolutePath, normalizeForComparison, samePath } = await jiti.import("./paths.ts"); -const { projectIdentityKey } = await jiti.import("./paths.ts"); +const { isWindowsAbsolutePath, normalizeForComparison, samePath } = await import("./paths.ts"); +const { projectIdentityKey } = await import("./paths.ts"); test("detects Windows absolute paths and UNC paths", () => { assert.equal(isWindowsAbsolutePath("C:\\Users\\me"), true); diff --git a/lib/project-command-env.test.mjs b/lib/project-command-env.test.mjs index e04540017..ee270595c 100644 --- a/lib/project-command-env.test.mjs +++ b/lib/project-command-env.test.mjs @@ -1,15 +1,13 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); const { createChildProcessEnvironment, isHostRuntimeVariable, isOmpWebSecretVariable, sanitizeProjectCommandEnvironment, OMP_WEB_SECRET_ENV_VARS, -} = await jiti.import("./project-command-env.ts"); +} = await import("./project-command-env.ts"); test("strips the Next.js host runtime variables", () => { assert.equal(isHostRuntimeVariable("PORT", "linux"), true); diff --git a/lib/project-ordering.test.mjs b/lib/project-ordering.test.mjs index eb3f5cd53..04e0ae534 100644 --- a/lib/project-ordering.test.mjs +++ b/lib/project-ordering.test.mjs @@ -1,8 +1,6 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); const { foldedHostProjectKey, groupProjectsByHost, @@ -12,8 +10,8 @@ const { nextPinOrder, orderProjects, sortManagedProjects, -} = await jiti.import("./project-ordering.ts"); -const { comparableProjectPath } = await jiti.import("./comparable-path.ts"); +} = await import("./project-ordering.ts"); +const { comparableProjectPath } = await import("./comparable-path.ts"); function session(id, overrides = {}) { return { diff --git a/lib/project-registry.test.mjs b/lib/project-registry.test.mjs index 6db188b74..e399e91f8 100644 --- a/lib/project-registry.test.mjs +++ b/lib/project-registry.test.mjs @@ -4,10 +4,8 @@ import { existsSync, mkdtempSync, mkdirSync, readdirSync, rmSync, writeFileSync import { tmpdir } from "node:os"; import { join, resolve } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { comparableProjectPath } = await jiti.import("./comparable-path.ts"); +const { comparableProjectPath } = await import("./comparable-path.ts"); const { hideProject, isReservedLaunchArg, @@ -18,8 +16,8 @@ const { upsertProject, updateProjectsPresentation, validateProjectPath, -} = await jiti.import("./project-registry.ts"); -const { resolveProject, addWorktree } = await jiti.import("./worktree.ts"); +} = await import("./project-registry.ts"); +const { resolveProject, addWorktree } = await import("./worktree.ts"); /** Absolute POSIX-looking test paths become platform-native via resolve(). */ const P = (p) => resolve(p); diff --git a/lib/provider-accounts.test.mjs b/lib/provider-accounts.test.mjs index 37c095a80..073be1b0b 100644 --- a/lib/provider-accounts.test.mjs +++ b/lib/provider-accounts.test.mjs @@ -1,9 +1,7 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { summarizeProviderAccounts, planForStoredAccount } = await jiti.import("./provider-accounts.ts"); +const { summarizeProviderAccounts, planForStoredAccount } = await import("./provider-accounts.ts"); test("distinct accounts are listed once even when usage is split per model/tier", () => { const reports = [ diff --git a/lib/provider-usage.test.mjs b/lib/provider-usage.test.mjs index 32bb2fadc..0ba8147c3 100644 --- a/lib/provider-usage.test.mjs +++ b/lib/provider-usage.test.mjs @@ -1,12 +1,10 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; import { mkdtemp, writeFile, rm } from "node:fs/promises"; import { tmpdir } from "node:os"; import { join } from "node:path"; -const jiti = createJiti(import.meta.url); -const { parseProviderUsageOutput, getProviderUsage } = await jiti.import("./provider-usage.ts"); +const { parseProviderUsageOutput, getProviderUsage } = await import("./provider-usage.ts"); test("parseProviderUsageOutput selects matching model windows", () => { const now = Date.UTC(2026, 7, 27, 12, 0, 0); const output = JSON.stringify({ diff --git a/lib/reconcile-guard.test.mjs b/lib/reconcile-guard.test.mjs index cc01ef877..2571569aa 100644 --- a/lib/reconcile-guard.test.mjs +++ b/lib/reconcile-guard.test.mjs @@ -1,9 +1,7 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { createReconcileGuard } = await jiti.import("./reconcile-guard.ts"); +const { createReconcileGuard } = await import("./reconcile-guard.ts"); test("first acquire wins, concurrent acquires coalesce into one re-issue", async () => { const guard = createReconcileGuard(); diff --git a/lib/rpc-manager.test.mjs b/lib/rpc-manager.test.mjs index 7411e9226..9d49ef9dc 100644 --- a/lib/rpc-manager.test.mjs +++ b/lib/rpc-manager.test.mjs @@ -4,12 +4,12 @@ import { mkdtempSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; import childProcess from "node:child_process"; -import { syncBuiltinESMExports } from "node:module"; +import { mockBuiltin } from "../tests/mock-builtin.mjs"; import { fileURLToPath } from "node:url"; import { EventEmitter } from "node:events"; import { PassThrough } from "node:stream"; +let isolatedFresh = 0; // Wrappers publish notifications, which the notification store records: never in the real agent dir. const isolatedAgentDir = mkdtempSync(join(tmpdir(), "omp-rpc-manager-test-")); @@ -20,10 +20,9 @@ test.after(() => { rmSync(isolatedAgentDir, { recursive: true, force: true }); }); -const runtimeJiti = createJiti(import.meta.url); -const { AgentSessionWrapper: SnapshotWrapper, subscribeHostToolCalls } = await runtimeJiti.import("./rpc-manager.ts"); +const { AgentSessionWrapper: SnapshotWrapper, subscribeHostToolCalls } = await import("./rpc-manager.ts"); // Wrappers built directly need an online host; the daemon's machine host is one. -const { localHost } = await runtimeJiti.import("./hosts/local-host.ts"); +const { localHost } = await import("./hosts/local-host.ts"); function snapshotSession(t, sendCommand = async () => ({}), Wrapper = SnapshotWrapper, sessionId = "", disconnectDestroyMs) { const frameListeners = new Set(); @@ -314,9 +313,7 @@ test("auto-compaction results carry the same estimatedTokensAfter as manual comp test("resolveSpawnCwd uses the recorded directory when it exists, falls back otherwise", async () => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { resolveSpawnCwd, resolveSpawnCwdResult } = jiti("./hosts/local-host.ts"); + const { resolveSpawnCwd, resolveSpawnCwdResult } = await import("./hosts/local-host.ts"); const { existsSync } = await import("node:fs"); // A live recorded cwd is used verbatim — no fallback. @@ -345,9 +342,7 @@ test("resolveSpawnCwd uses the recorded directory when it exists, falls back oth }); test("missing terminal agent_end clears isPromptRunning on raw idle get_state", async () => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { AgentSessionWrapper } = jiti("./rpc-manager.ts"); + const { AgentSessionWrapper } = await import("./rpc-manager.ts"); let frameListener = null; const fakeProc = { @@ -387,9 +382,7 @@ test("missing terminal agent_end clears isPromptRunning on raw idle get_state", }); test("prompt ack pending does not let raw idle get_state clear promptRunning", async () => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { AgentSessionWrapper } = jiti("./rpc-manager.ts"); + const { AgentSessionWrapper } = await import("./rpc-manager.ts"); let resolvePromptAck; const fakeProc = { @@ -429,9 +422,7 @@ test("prompt ack pending does not let raw idle get_state clear promptRunning", a }); test("isTerminal:false respects 2-second grace period before raw idle can clear prompt", async () => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { AgentSessionWrapper } = jiti("./rpc-manager.ts"); + const { AgentSessionWrapper } = await import("./rpc-manager.ts"); let frameListener = null; const fakeProc = { @@ -480,9 +471,7 @@ test("isTerminal:false respects 2-second grace period before raw idle can clear }); test("abort_and_prompt images go through the same server-side validation as prompt", async () => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { AgentSessionWrapper } = jiti("./rpc-manager.ts"); + const { AgentSessionWrapper } = await import("./rpc-manager.ts"); let forwarded = false; const fakeProc = { @@ -505,10 +494,8 @@ test("abort_and_prompt images go through the same server-side validation as prom }); test("get_state timeout preserves the process and reports a transient status error", async () => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { AgentSessionWrapper, WebRpcError } = jiti("./rpc-manager.ts"); - const { RpcCommandTimeoutError } = jiti("./omp/rpc-process.ts"); + const { AgentSessionWrapper, WebRpcError } = await import("./rpc-manager.ts"); + const { RpcCommandTimeoutError } = await import("./omp/rpc-process.ts"); let disposed = false; const fakeProc = { @@ -543,8 +530,7 @@ test("get_state timeout preserves the process and reports a transient status err }); test("a running task survives a slow status query and later state reads recover", async (t) => { - const jiti = createJiti(import.meta.url); - const { RpcCommandTimeoutError } = jiti("./omp/rpc-process.ts"); + const { RpcCommandTimeoutError } = await import("./omp/rpc-process.ts"); let reads = 0; let running = true; const { wrapper, emit } = snapshotSession(t, async (command) => { @@ -567,10 +553,8 @@ test("a running task survives a slow status query and later state reads recover" }); test("prompt ack timeout recycles a child that accepts the frame but withholds its response", async (t) => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { AgentSessionWrapper, WebRpcError } = jiti("./rpc-manager.ts"); - const { RpcCommandTimeoutError } = jiti("./omp/rpc-process.ts"); + const { AgentSessionWrapper, WebRpcError } = await import("./rpc-manager.ts"); + const { RpcCommandTimeoutError } = await import("./omp/rpc-process.ts"); t.mock.timers.enable({ apis: ["setTimeout"] }); let acceptedPrompt = null; @@ -618,9 +602,7 @@ test("prompt ack timeout recycles a child that accepts the frame but withholds i }); test("getRunningRpcSessions and getRunningRpcSessionIds export running sessions with their originating cwd", async () => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { getRunningRpcSessions, getRunningRpcSessionIds } = jiti("./rpc-manager.ts"); + const { getRunningRpcSessions, getRunningRpcSessionIds } = await import("./rpc-manager.ts"); assert.equal(typeof getRunningRpcSessions, "function"); assert.equal(typeof getRunningRpcSessionIds, "function"); @@ -632,13 +614,11 @@ test("getRunningRpcSessions and getRunningRpcSessionIds export running sessions }); test("unexpected child exit is retained until a replacement session clears it", async (t) => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); const { AgentSessionWrapper, clearExitedRpcSession, getExitedRpcSession, - } = jiti("./rpc-manager.ts"); + } = await import("./rpc-manager.ts"); globalThis.__ompExitedSessions = new Map(); t.after(() => { delete globalThis.__ompExitedSessions; }); @@ -689,9 +669,7 @@ test("unexpected child exit is retained until a replacement session clears it", }); test("a resumed session crash is retained before its initial handshake", async (t) => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { AgentSessionWrapper, getExitedRpcSession } = jiti("./rpc-manager.ts"); + const { AgentSessionWrapper, getExitedRpcSession } = await import("./rpc-manager.ts"); globalThis.__ompExitedSessions = new Map(); t.after(() => { delete globalThis.__ompExitedSessions; }); @@ -714,7 +692,7 @@ async function notifyingSession(t) { const { mkdtempSync, rmSync } = await import("node:fs"); const { tmpdir } = await import("node:os"); const { join } = await import("node:path"); - const { saveDevice } = await runtimeJiti.import("./notification-store.ts"); + const { saveDevice } = await import("./notification-store.ts"); const previousHub = globalThis.__ompNotificationHub; const previousExited = globalThis.__ompExitedSessions; const previousDir = process.env.PI_CODING_AGENT_DIR; @@ -814,9 +792,7 @@ test("a crash of an idle session does not notify", async (t) => { }); test("buildSessionSpawnArgs maps tool presets to spawn flags", async () => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { buildSessionSpawnArgs } = jiti("./hosts/local-host.ts"); + const { buildSessionSpawnArgs } = await import("./hosts/local-host.ts"); // "full" must omit --tools entirely so omp keeps its complete default // toolset (task/hub included); any other list becomes an explicit --tools @@ -831,9 +807,7 @@ test("buildSessionSpawnArgs maps tool presets to spawn flags", async () => { ); }); test("buildSessionSpawnArgs applies workspace launch config safely", async () => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { buildSessionSpawnArgs } = jiti("./hosts/local-host.ts"); + const { buildSessionSpawnArgs } = await import("./hosts/local-host.ts"); assert.deepEqual( buildSessionSpawnArgs("", undefined, false, { profile: "work", advisor: true, extraArgs: ["--verbose"] }), @@ -849,9 +823,7 @@ test("buildSessionSpawnArgs applies workspace launch config safely", async () => }); test("buildSessionSpawnArgs binds an explicit model on resume only (#277)", async () => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { buildSessionSpawnArgs } = jiti("./hosts/local-host.ts"); + const { buildSessionSpawnArgs } = await import("./hosts/local-host.ts"); // A cold set_model must reach omp before the saved model is restored, so // the spawn carries --model alongside --resume. @@ -906,10 +878,8 @@ test("fresh spawns force a new session when omp resumes the cwd's latest session }); test("mcp list ack timeout recycles a child that accepts the frame but withholds its response", async (t) => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { AgentSessionWrapper, WebRpcError } = jiti("./rpc-manager.ts"); - const { RpcCommandTimeoutError } = jiti("./omp/rpc-process.ts"); + const { AgentSessionWrapper, WebRpcError } = await import("./rpc-manager.ts"); + const { RpcCommandTimeoutError } = await import("./omp/rpc-process.ts"); t.mock.timers.enable({ apis: ["setTimeout"] }); let acceptedFrame = null; @@ -954,10 +924,8 @@ test("mcp list ack timeout recycles a child that accepts the frame but withholds }); test("mcp list ack timeout clears the waiter so a retry is not blocked as busy", async (t) => { - const { createJiti } = await import("jiti"); - const jiti = createJiti(import.meta.url); - const { AgentSessionWrapper } = jiti("./rpc-manager.ts"); - const { RpcCommandTimeoutError } = jiti("./omp/rpc-process.ts"); + const { AgentSessionWrapper } = await import("./rpc-manager.ts"); + const { RpcCommandTimeoutError } = await import("./omp/rpc-process.ts"); t.mock.timers.enable({ apis: ["setTimeout"] }); const fakeProc = { @@ -1165,12 +1133,8 @@ test("reload replaces the native stream epoch and subscribes to replacement even queueMicrotask(() => child.stdout.write('{"type":"ready"}\n')); return child; }; - // Builtins bypass jiti virtual modules; synchronize Node's ESM bindings. - const spawnMock = t.mock.method(childProcess, "spawn", spawnReplacement); - syncBuiltinESMExports(); - t.after(() => { spawnMock.mock.restore(); syncBuiltinESMExports(); }); - const isolated = createJiti(import.meta.url, { moduleCache: false, tryNative: false }); - const { AgentSessionWrapper: ReloadWrapper } = await isolated.import("./rpc-manager.ts"); + await mockBuiltin(t, "node:child_process", { spawn: spawnReplacement }); + const { AgentSessionWrapper: ReloadWrapper } = await import(`./rpc-manager.ts?fresh=${isolatedFresh++}`); const { wrapper, emit } = snapshotSession(t, undefined, ReloadWrapper); emit({ type: "agent_start" }); emit({ type: "message_update", message: { role: "assistant", content: [{ type: "text", text: "old child" }] } }); @@ -1631,8 +1595,7 @@ test("neither cleanup timer keeps the event loop alive", async () => { // process that has nothing else pending for the full window. const moduleUrl = new URL("./rpc-manager.ts", import.meta.url).href; const script = ` - import { createJiti } from "jiti"; - const { AgentSessionWrapper } = await createJiti(import.meta.url).import(${JSON.stringify(moduleUrl)}); + const { AgentSessionWrapper } = await import(${JSON.stringify(moduleUrl)}); const wrapper = new AgentSessionWrapper( { isAlive: true, onFrame: () => () => {}, sendCommand: async () => ({}), sendFrame: () => {}, dispose: async () => {} }, process.cwd(), null, false, "", 10 * 60 * 1000, @@ -2009,8 +1972,8 @@ async function editableSession(t, onEdit) { } test("same-ID edit clears live evidence, invalidates only its own history, and refreshes all observers", async (t) => { - const { sessionPathKey } = await runtimeJiti.import("./paths.ts"); - const { subscribeRunningSessions } = await runtimeJiti.import("./rpc-manager.ts"); + const { sessionPathKey } = await import("./paths.ts"); + const { subscribeRunningSessions } = await import("./rpc-manager.ts"); const { wrapper, emit, state, commands } = await editableSession(t); const observed = [[], []]; for (const events of observed) wrapper.onEvent((event) => events.push(event)); @@ -2467,7 +2430,7 @@ test("a timed-out navigation disposes the old child before releasing the edit fe for (const timeoutAt of ["prompt-ack", "handler-result"]) { test(`a persistence notice cannot release Edit before timed-out child teardown (${timeoutAt})`, async (t) => { - const { RpcCommandTimeoutError } = await runtimeJiti.import("./omp/rpc-process.ts"); + const { RpcCommandTimeoutError } = await import("./omp/rpc-process.ts"); const notice = { type: "notice", source: "session-persistence", level: "error", message: "Native append failed before edit handler completion" }; const { promise: disposal, resolve: finishDisposal } = Promise.withResolvers(); t.after(finishDisposal); @@ -2554,7 +2517,7 @@ test("initial spawn and reload both keep same-session editing available through const sessionFile = join(isolatedAgentDir, "edit-spawn-and-reload.jsonl"); writeFileSync(sessionFile, JSON.stringify({ type: "session", version: 3, id: sessionId, cwd: isolatedAgentDir }) + "\n"); t.after(() => rmSync(sessionFile, { force: true })); - const { SESSION_EDIT_EXTENSION_PATH } = await runtimeJiti.import("./hosts/local-host.ts"); + const { SESSION_EDIT_EXTENSION_PATH } = await import("./hosts/local-host.ts"); const spawns = []; let editCount = 0; const spawnReplacement = (file, args) => { @@ -2592,13 +2555,10 @@ test("initial spawn and reload both keep same-session editing available through queueMicrotask(() => child.stdout.write('{"type":"ready"}\n')); return child; }; - const spawnMock = t.mock.method(childProcess, "spawn", spawnReplacement); - syncBuiltinESMExports(); - t.after(() => { spawnMock.mock.restore(); syncBuiltinESMExports(); }); - const isolated = createJiti(import.meta.url, { moduleCache: false, tryNative: false }); - const { startRpcSession } = await isolated.import("./rpc-manager.ts"); + await mockBuiltin(t, "node:child_process", { spawn: spawnReplacement }); + const { startRpcSession } = await import(`./rpc-manager.ts?fresh=${isolatedFresh++}`); // The daemon's machine host spawns the (mocked) omp in this process. - const { localHost: spawningHost } = await isolated.import("./hosts/local-host.ts"); + const { localHost: spawningHost } = await import(`./hosts/local-host.ts?fresh=${isolatedFresh++}`); const { session, realSessionId } = await startRpcSession(sessionId, sessionFile, isolatedAgentDir, undefined, undefined, undefined, undefined, spawningHost); t.after(() => session.destroyAndWait()); const events = []; @@ -2697,7 +2657,7 @@ test("waitForTurnEnd resolves on terminal agent_end and rejects on timeout (#275 }); test("wrapper spawns through its host", async (t) => { - const { startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { startRpcSession } = await import("./rpc-manager.ts"); const requests = []; const invalidated = []; let emitLine; @@ -2741,7 +2701,7 @@ test("wrapper spawns through its host", async (t) => { }); test("reload keeps the live child when its host cannot check the session file", async (t) => { - const { startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { startRpcSession } = await import("./rpc-manager.ts"); let emitLine; let stopped = false; const transport = { @@ -2789,7 +2749,7 @@ test("reload keeps the live child when its host cannot check the session file", }); test("a session whose host is offline refuses sends with host_offline and reports the link state", async () => { - const { startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { startRpcSession } = await import("./rpc-manager.ts"); let emitLine; const transport = { write(line, callback) { @@ -2839,7 +2799,7 @@ test("a session whose host is offline refuses sends with host_offline and report }); test("a running remote session is listed with its host, so the sidebar groups its placeholder there", async () => { - const { getRunningRpcSessions, startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { getRunningRpcSessions, startRpcSession } = await import("./rpc-manager.ts"); let emitLine; const transport = { write(line, callback) { @@ -2871,7 +2831,7 @@ test("a running remote session is listed with its host, so the sidebar groups it }); test("a reload whose host drops while the old child exits fails host_offline and spawns nothing beside it", async () => { - const { getRpcSession, startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { getRpcSession, startRpcSession } = await import("./rpc-manager.ts"); let emitLine; const transport = { write(line, callback) { @@ -2929,8 +2889,8 @@ test("a reload whose host drops while the old child exits fails host_offline and }); test("a command written before the host link dropped resolves once the link returns", async (t) => { - const { startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); - const hub = await runtimeJiti.import("./hosts/hub.ts"); + const { startRpcSession } = await import("./rpc-manager.ts"); + const hub = await import("./hosts/hub.ts"); const { linkHost, until } = await import("./hosts/link-driver.test-helper.mjs"); const timings = { ...hub.linkTimings }; const link = await linkHost("Flaky box"); @@ -2999,10 +2959,10 @@ test("a command written before the host link dropped resolves once the link retu }); test("a run whose remote child vanished while the link was down resumes on that host", async (t) => { - const { getRpcSession, startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); - const { RESUME_PROMPT } = await runtimeJiti.import("./session-resume.ts"); - const { saveWebServerSettings } = await runtimeJiti.import("./web-settings.ts"); - const hub = await runtimeJiti.import("./hosts/hub.ts"); + const { getRpcSession, startRpcSession } = await import("./rpc-manager.ts"); + const { RESUME_PROMPT } = await import("./session-resume.ts"); + const { saveWebServerSettings } = await import("./web-settings.ts"); + const hub = await import("./hosts/hub.ts"); const { linkHost, until } = await import("./hosts/link-driver.test-helper.mjs"); const id = "11111111-2222-4333-8444-777777777777"; const sessionFile = `/remote/sessions/${id}.jsonl`; @@ -3086,8 +3046,8 @@ function spawnOverLink(link, spawns = []) { } test("a session the host still runs an orphan child for spawns only after the orphan exits", async (t) => { - const { startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); - const hub = await runtimeJiti.import("./hosts/hub.ts"); + const { startRpcSession } = await import("./rpc-manager.ts"); + const hub = await import("./hosts/hub.ts"); const { linkHost } = await import("./hosts/link-driver.test-helper.mjs"); const id = "11111111-2222-4333-8444-888888888888"; const sessionFile = `/remote/sessions/${id}.jsonl`; @@ -3110,8 +3070,8 @@ test("a session the host still runs an orphan child for spawns only after the or }); test("a prompt whose ack is lost to a quiet link answers host_offline and keeps the child", async (t) => { - const { startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); - const hub = await runtimeJiti.import("./hosts/hub.ts"); + const { startRpcSession } = await import("./rpc-manager.ts"); + const hub = await import("./hosts/hub.ts"); const { linkHost } = await import("./hosts/link-driver.test-helper.mjs"); const link = await linkHost("Lidded laptop"); let session; @@ -3155,8 +3115,8 @@ test("a prompt whose ack is lost to a quiet link answers host_offline and keeps }); test("an edit that times out with no uplink since dispatch answers host_offline and sends no kill", async (t) => { - const { startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); - const hub = await runtimeJiti.import("./hosts/hub.ts"); + const { startRpcSession } = await import("./rpc-manager.ts"); + const hub = await import("./hosts/hub.ts"); const { linkHost } = await import("./hosts/link-driver.test-helper.mjs"); const link = await linkHost("Editing box"); let session; @@ -3189,8 +3149,8 @@ test("an edit that times out with no uplink since dispatch answers host_offline }); test("a prompt that times out after the host sent uplink traffic is recycled as before", async (t) => { - const { startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); - const hub = await runtimeJiti.import("./hosts/hub.ts"); + const { startRpcSession } = await import("./rpc-manager.ts"); + const hub = await import("./hosts/hub.ts"); const { linkHost } = await import("./hosts/link-driver.test-helper.mjs"); const link = await linkHost("Wedged omp box"); let session; @@ -3228,7 +3188,7 @@ test("a prompt that times out after the host sent uplink traffic is recycled as /** A wrapper whose host link starts down; `linkReturns()` brings it back. */ async function wrapperBehindDownLink(sessionId, disconnectDestroyMs) { - const { AgentSessionWrapper } = await runtimeJiti.import("./rpc-manager.ts"); + const { AgentSessionWrapper } = await import("./rpc-manager.ts"); let status = "offline"; let statusChanged; const host = { @@ -3274,7 +3234,7 @@ test("the disconnect reaper waits while the host link is down and runs once it r }); test("the idle timer waits while the host link is down and runs once it returns", async (t) => { - await runtimeJiti.import("./rpc-manager.ts"); + await import("./rpc-manager.ts"); t.mock.timers.enable({ apis: ["setTimeout", "Date"], now: Date.now() }); // Reaping off (0): only the idle timer (IDLE_DESTROY_MS, 10 minutes) can dispose it. const { wrapper, linkReturns } = await wrapperBehindDownLink("s-idle", 0); @@ -3334,7 +3294,7 @@ function scriptedHost(id, transport) { /** A running session on `host`; `events` collects the types it emits. */ async function runningRemoteSession(t, sessionId, transport, host) { - const { startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { startRpcSession } = await import("./rpc-manager.ts"); const { until } = await import("./hosts/link-driver.test-helper.mjs"); const { session } = await startRpcSession(sessionId, "", "/w", undefined, false, null, undefined, host); t.after(() => session.destroyAndWait()); @@ -3373,7 +3333,7 @@ test("a resync from the host reconciles the session", async (t) => { }); test("restartAllRpcSessions restarts only this machine's sessions", async (t) => { - const { restartAllRpcSessions, startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { restartAllRpcSessions, startRpcSession } = await import("./rpc-manager.ts"); const localTransport = scriptedTransport("s-restart-local"); const remoteTransport = scriptedTransport("s-restart-remote"); const local = await startRpcSession("s-restart-local", "", "/w", undefined, false, null, undefined, scriptedHost("local", localTransport)); @@ -3385,7 +3345,7 @@ test("restartAllRpcSessions restarts only this machine's sessions", async (t) => }); test("disposing a session whose host goes offline mid-wait returns instead of waiting for the link", async (t) => { - const { startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { startRpcSession } = await import("./rpc-manager.ts"); const transport = scriptedTransport("s-bounded"); // The kill waits in the link outbox: the child exits only once the link returns. transport.endInput = () => {}; @@ -3402,7 +3362,7 @@ test("disposing a session whose host goes offline mid-wait returns instead of wa }); test("a resume that failed while its host went offline blocks a retry until its child exits", async (t) => { - const { startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { startRpcSession } = await import("./rpc-manager.ts"); const id = "11111111-2222-4333-8444-aaaaaaaaaaaa"; const sessionFile = `/remote/sessions/${id}.jsonl`; const first = scriptedTransport(id); @@ -3505,7 +3465,7 @@ const hostToolResults = (transport) => transport.frames.filter((frame) => frame. const flushWrites = () => new Promise((resolve) => setImmediate(resolve)); test("adoptRpcSession re-syncs a live child with no spawn and no ready wait", async (t) => { - const { adoptRpcSession, getExitedRpcSession, getRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { adoptRpcSession, getExitedRpcSession, getRpcSession } = await import("./rpc-manager.ts"); const id = "11111111-2222-4333-8444-adadadadad01"; // A crash record from before the restart. globalThis.__ompExitedSessions ??= new Map(); @@ -3526,7 +3486,7 @@ test("adoptRpcSession re-syncs a live child with no spawn and no ready wait", as }); test("an adopted child's open requests come back: an ask for the next tab, a host tool call for an open tab", async (t) => { - const { adoptRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { adoptRpcSession } = await import("./rpc-manager.ts"); const id = "11111111-2222-4333-8444-adadadadad02"; const transport = adoptedTransport(id); const calls = []; @@ -3556,7 +3516,7 @@ test("an adopted child's open requests come back: an ask for the next tab, a hos }); test("with no tab open at hello, host tool calls wait for the first tab to attach until a tab registers its tools", async (t) => { - const { adoptRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { adoptRpcSession } = await import("./rpc-manager.ts"); const id = "11111111-2222-4333-8444-adadadadad04"; const transport = adoptedTransport(id); const call = { type: "host_tool_call", id: "h1", toolName: "open_url", arguments: { url: "https://a.test" } }; @@ -3589,7 +3549,7 @@ test("with no tab open at hello, host tool calls wait for the first tab to attac }); test("a replayed host tool call no tab comes back for is settled after the disconnect window", async (t) => { - const { adoptRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { adoptRpcSession } = await import("./rpc-manager.ts"); const id = "11111111-2222-4333-8444-adadadadad05"; const transport = adoptedTransport(id); t.mock.timers.enable({ apis: ["setTimeout", "Date"], now: Date.now() }); @@ -3606,7 +3566,7 @@ test("a replayed host tool call no tab comes back for is settled after the disco }); test("replayed server agent tools that change things are not run twice; list_sessions is", async (t) => { - const { adoptRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { adoptRpcSession } = await import("./rpc-manager.ts"); const { until } = await import("./hosts/link-driver.test-helper.mjs"); globalThis.__ompWebSettingsCache = undefined; const settingsPath = join(isolatedAgentDir, "omp-web-settings.json"); @@ -3634,7 +3594,7 @@ test("replayed server agent tools that change things are not run twice; list_ses }); test("an agent tool omp called during the adoption handshake is live, not replayed", async (t) => { - const { adoptRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { adoptRpcSession } = await import("./rpc-manager.ts"); // The gate is off: a live call gets the gate's answer, a replayed one "outcome unknown". globalThis.__ompWebSettingsCache = undefined; t.after(() => { globalThis.__ompWebSettingsCache = undefined; }); @@ -3652,7 +3612,7 @@ test("an agent tool omp called during the adoption handshake is live, not replay }); test("an internal turn waiter neither takes an adopted session's parked host calls nor settles them", async (t) => { - const { adoptRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { adoptRpcSession } = await import("./rpc-manager.ts"); const id = "11111111-2222-4333-8444-adadadadad0b"; const transport = adoptedTransport(id); const call = { type: "host_tool_call", id: "h1", toolName: "open_url", arguments: {} }; @@ -3672,7 +3632,7 @@ test("an internal turn waiter neither takes an adopted session's parked host cal }); test("a start during adoption joins it; an adopted child is not replaced over --advisor, and a second child is refused", async (t) => { - const { adoptRpcSession, getRpcSession, startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { adoptRpcSession, getRpcSession, startRpcSession } = await import("./rpc-manager.ts"); const { until } = await import("./hosts/link-driver.test-helper.mjs"); const id = "11111111-2222-4333-8444-adadadadad07"; const sessionFile = `/nonexistent/${id}.jsonl`; @@ -3699,7 +3659,7 @@ test("a start during adoption joins it; an adopted child is not replaced over -- }); test("an adopted child that turns out to run a session another wrapper holds is killed, not registered", async (t) => { - const { adoptRpcSession, getRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { adoptRpcSession, getRpcSession } = await import("./rpc-manager.ts"); const holderId = "11111111-2222-4333-8444-adadadadad0c"; const listedId = "11111111-2222-4333-8444-adadadadad0d"; const first = adoptedTransport(holderId); @@ -3717,7 +3677,7 @@ test("an adopted child that turns out to run a session another wrapper holds is }); test("an adoption whose get_state times out rejects and kills the child", async (t) => { - const { adoptRpcSession, getRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { adoptRpcSession, getRpcSession } = await import("./rpc-manager.ts"); const id = "11111111-2222-4333-8444-adadadadad03"; const transport = adoptedTransport(id, { silent: ["get_state"] }); const asked = Promise.withResolvers(); @@ -3736,7 +3696,7 @@ test("an adoption whose get_state times out rejects and kills the child", async }); test("an adoption that failed while its host went offline blocks a start until its child exits", async (t) => { - const { adoptRpcSession, getRpcSession, startRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); + const { adoptRpcSession, getRpcSession, startRpcSession } = await import("./rpc-manager.ts"); const { until } = await import("./hosts/link-driver.test-helper.mjs"); const id = "11111111-2222-4333-8444-adadadadad08"; const sessionFile = `/nonexistent/${id}.jsonl`; @@ -3770,8 +3730,8 @@ test("an adoption that failed while its host went offline blocks a start until i }); test("an adoption whose output outgrows channelBufferBytes before the replay fails and kills the child", async (t) => { - const { adoptRpcSession, getRpcSession } = await runtimeJiti.import("./rpc-manager.ts"); - const { LINK_LIMITS } = await runtimeJiti.import("./hosts/link-protocol.ts"); + const { adoptRpcSession, getRpcSession } = await import("./rpc-manager.ts"); + const { LINK_LIMITS } = await import("./hosts/link-protocol.ts"); const saved = LINK_LIMITS.channelBufferBytes; LINK_LIMITS.channelBufferBytes = 1_000; t.after(() => { LINK_LIMITS.channelBufferBytes = saved; }); diff --git a/lib/security-headers.test.mjs b/lib/security-headers.test.mjs index 049470a00..d88061ae3 100644 --- a/lib/security-headers.test.mjs +++ b/lib/security-headers.test.mjs @@ -1,7 +1,6 @@ import assert from "node:assert/strict"; import test from "node:test"; import { createRequire } from "node:module"; -import { createJiti } from "jiti"; // The effective policy for a response is decided by next.config's headers() // rules, not by the route handler: Next applies config headers last, so a @@ -17,11 +16,9 @@ const require = createRequire(import.meta.url); // /api/file-index carry the global one. const { getPathMatch } = require("next/dist/shared/lib/router/utils/path-match"); // next.config.ts resolves bare specifiers such as `next/constants` the CommonJS -// way, which plain Node ESM cannot do, so load it through jiti like the -// component tests do. -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); -const { PHASE_DEVELOPMENT_SERVER, PHASE_PRODUCTION_BUILD } = await jiti.import("next/constants"); -const nextConfig = await jiti.import("../next.config.ts", { default: true }); +// way, which plain Node ESM cannot do; Bun resolves them. +const { PHASE_DEVELOPMENT_SERVER, PHASE_PRODUCTION_BUILD } = await import("next/constants"); +const nextConfig = (await import("../next.config.ts")).default; async function effectiveHeaders(phase, pathname) { const rules = await nextConfig(phase).headers(); diff --git a/lib/self-update.test.mjs b/lib/self-update.test.mjs index ec0841c94..e95acea87 100644 --- a/lib/self-update.test.mjs +++ b/lib/self-update.test.mjs @@ -3,20 +3,14 @@ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "nod import { join } from "node:path"; import { tmpdir } from "node:os"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { - alias: { - "@/": new URL("../", import.meta.url).pathname, - }, -}); const { getSelfUpdateStatus, markSelfUpdateStopping, parseSystemdServiceCgroup, resolveSelfUpdateTempRoot, validateCommitSelfUpdate, -} = await jiti.import("./self-update.ts"); +} = await import("./self-update.ts"); test("parseSystemdServiceCgroup finds system and user services, and nothing outside one", () => { assert.deepEqual(parseSystemdServiceCgroup("0::/system.slice/ompweb-api.service\n"), { unit: "ompweb-api.service", user: false }); diff --git a/lib/session-reader.test.mjs b/lib/session-reader.test.mjs index 85d327d0c..c3d7e2ffd 100644 --- a/lib/session-reader.test.mjs +++ b/lib/session-reader.test.mjs @@ -6,15 +6,14 @@ import { tmpdir } from "node:os"; import { join, relative } from "node:path"; import test from "node:test"; import { setImmediate } from "node:timers/promises"; -import { createJiti } from "jiti"; import fs from "node:fs"; -import { syncBuiltinESMExports } from "node:module"; +import { mockBuiltin } from "../tests/mock-builtin.mjs"; -const jiti = createJiti(import.meta.url); -const { sessionPathKey } = await jiti.import("./paths.ts"); -const { forEachFileLineSync, serializeTitleSlot } = await jiti.import("./omp/session-files.ts"); -const { SessionFileTooLargeError } = await jiti.import("./session-reader.ts"); -const { subscribeSessionFileChanges } = await jiti.import("./session-watcher.ts"); +let isolatedFresh = 0; +const { sessionPathKey } = await import("./paths.ts"); +const { forEachFileLineSync, serializeTitleSlot } = await import("./omp/session-files.ts"); +const { SessionFileTooLargeError } = await import("./session-reader.ts"); +const { subscribeSessionFileChanges } = await import("./session-watcher.ts"); const { buildSessionContext, cacheSessionPath, @@ -32,7 +31,7 @@ const { readSessionHeader, resolveSessionIdByPath, resolveSessionPath, -} = await jiti.import("./session-reader.ts"); +} = await import("./session-reader.ts"); function userEntry(id, parentId, content, timestamp = "2026-01-01T00:00:00.000Z") { return { @@ -1118,16 +1117,13 @@ test("watcher coalesces known-path writes into targeted invalidation, keeping un watcher.close = t.mock.fn(); let onChange; const sessionsDir = join(process.env.PI_CODING_AGENT_DIR, "sessions"); - const watchMock = t.mock.method(fs, "watch", (watchedDir, options, callback) => { + await mockBuiltin(t, "node:fs", { watch: (watchedDir, options, callback) => { assert.equal(watchedDir, sessionsDir); assert.deepEqual(options, { recursive: true, persistent: false }); onChange = callback; return watcher; - }); - syncBuiltinESMExports(); - t.after(() => { watchMock.mock.restore(); syncBuiltinESMExports(); }); - const isolated = createJiti(import.meta.url, { moduleCache: false, tryNative: false }); - const { subscribeSessionFileChanges: subscribeKnownChanges } = await isolated.import("./session-watcher.ts"); + } }); + const { subscribeSessionFileChanges: subscribeKnownChanges } = await import(`./session-watcher.ts?fresh=${isolatedFresh++}`); t.mock.timers.enable({ apis: ["setTimeout"] }); const notified = []; @@ -1194,6 +1190,8 @@ test("native watcher refreshes a session after content appends", { timeout: 1500 writeFileSync(filePath, fixture); await setImmediate(undefined, { signal: t.signal }); } + // Bun drops a native event that follows the previous one within a few milliseconds. + await new Promise((resolve) => setTimeout(resolve, 50)); getSessionEntries(filePath); assert.equal(globalThis.__ompSessionEntriesCache?.has(sessionPathKey(filePath)), true); const changed = (async () => { @@ -1364,14 +1362,11 @@ test("history catch-up pages persisted IDs contiguously without resolving old bl ]); const blobReads = []; const originalRead = fs.readFileSync; - const readMock = t.mock.method(fs, "readFileSync", (path, ...args) => { + await mockBuiltin(t, "node:fs", { readFileSync: (path, ...args) => { if (String(path) === blobPath) blobReads.push(String(path)); return originalRead(path, ...args); - }); - syncBuiltinESMExports(); - t.after(() => { readMock.mock.restore(); syncBuiltinESMExports(); }); - const isolated = createJiti(import.meta.url, { moduleCache: false, tryNative: false }); - const { getSessionHistoryPage: readPage } = await isolated.import("./session-reader.ts"); + } }); + const { getSessionHistoryPage: readPage } = await import(`./session-reader.ts?fresh=${isolatedFresh++}`); const first = readPage(filePath, null, 1); assert.deepEqual(blobReads, [blobPath], "positive control: the observer sees a real image-page blob read"); blobReads.length = 0; @@ -1448,27 +1443,28 @@ test("history pages seek only new bodies even above the raw-cache budget", async // Report a >256 MiB file, but perform every observed read on the small // physical fixture. Both stat paths describe the same artificial version. const reported = (stat) => Object.assign(stat, { size: 256 * 1024 * 1024 + 1 }); - const mocks = [ - t.mock.method(fs, "openSync", (path, ...args) => { + await mockBuiltin(t, "node:fs", { + openSync: (path, ...args) => { const fd = original.open(path, ...args); if (String(path) === filePath) fds.add(fd); return fd; - }), - t.mock.method(fs, "closeSync", (fd) => { fds.delete(fd); return original.close(fd); }), - t.mock.method(fs, "statSync", (path, ...args) => { + }, + closeSync: (fd) => { fds.delete(fd); return original.close(fd); }, + statSync: (path, ...args) => { const stat = original.stat(path, ...args); return String(path) === filePath ? reported(stat) : stat; - }), - t.mock.method(fs, "fstatSync", (fd, ...args) => { + }, + fstatSync: (fd, ...args) => { const stat = original.fstat(fd, ...args); return fds.has(fd) ? reported(stat) : stat; - }), - t.mock.method(fs, "readSync", (fd, buffer, offset, length, position) => { + }, + readSync: (fd, buffer, offset, length, position) => { const count = original.read(fd, buffer, offset, length, position); if (fds.has(fd) && count > 0) reads.push({ position, count, text: buffer.subarray(offset, offset + count).toString("utf8") }); return count; - }), - t.mock.method(JSON, "parse", (text, ...args) => { + }, + }); + const parseMock = t.mock.method(JSON, "parse", (text, ...args) => { const value = original.parse(text, ...args); if (value?.type === "message" && entryIds.has(value.id)) { const content = value.message.content; @@ -1478,12 +1474,9 @@ test("history pages seek only new bodies even above the raw-cache budget", async }); } return value; - }), - ]; - syncBuiltinESMExports(); - t.after(() => { for (const mock of mocks) mock.mock.restore(); syncBuiltinESMExports(); }); - const isolated = createJiti(import.meta.url, { moduleCache: false, tryNative: false }); - const { getSessionHistoryPage: readPage } = await isolated.import("./session-reader.ts"); + }); + t.after(() => parseMock.mock.restore()); + const { getSessionHistoryPage: readPage } = await import(`./session-reader.ts?fresh=${isolatedFresh++}`); const first = readPage(filePath, null, 1); assert.ok(reads.some((read) => read.position === null && read.text.includes('"page-three"')), "positive control: index construction scanned the real fixture"); assert.deepEqual([...touchedBodies], ["page-one"], "indexing does not transform off-page bodies"); @@ -1537,23 +1530,24 @@ test("active-context boundaries reuse the history index without reading or hydra const blobReads = []; const touchedBodies = new Set(); const original = { open: fs.openSync, close: fs.closeSync, read: fs.readSync, readFile: fs.readFileSync, parse: JSON.parse }; - const mocks = [ - t.mock.method(fs, "openSync", (path, ...args) => { + await mockBuiltin(t, "node:fs", { + openSync: (path, ...args) => { const fd = original.open(path, ...args); if (String(path) === filePath) fds.add(fd); return fd; - }), - t.mock.method(fs, "closeSync", (fd) => { fds.delete(fd); return original.close(fd); }), - t.mock.method(fs, "readSync", (fd, buffer, offset, length, position) => { + }, + closeSync: (fd) => { fds.delete(fd); return original.close(fd); }, + readSync: (fd, buffer, offset, length, position) => { const count = original.read(fd, buffer, offset, length, position); if (fds.has(fd) && count > 0) reads.push({ position, count }); return count; - }), - t.mock.method(fs, "readFileSync", (path, ...args) => { + }, + readFileSync: (path, ...args) => { if (String(path) === blobPath) blobReads.push(String(path)); return original.readFile(path, ...args); - }), - t.mock.method(JSON, "parse", (text, ...args) => { + }, + }); + const parseMock = t.mock.method(JSON, "parse", (text, ...args) => { const value = original.parse(text, ...args); if (value?.type === "message" && entries.some((entry) => entry.id === value.id)) { const content = value.message.content; @@ -1563,12 +1557,9 @@ test("active-context boundaries reuse the history index without reading or hydra }); } return value; - }), - ]; - syncBuiltinESMExports(); - t.after(() => { for (const mock of mocks) mock.mock.restore(); syncBuiltinESMExports(); }); - const isolated = createJiti(import.meta.url, { moduleCache: false, tryNative: false }); - const { getSessionContextBoundary: readBoundary, getSessionHistoryPage: readPage } = await isolated.import("./session-reader.ts"); + }); + t.after(() => parseMock.mock.restore()); + const { getSessionContextBoundary: readBoundary, getSessionHistoryPage: readPage } = await import(`./session-reader.ts?fresh=${isolatedFresh++}`); assert.deepEqual(readBoundary(filePath), { entryIds: expected }); assert.ok(reads.some((read) => read.position === null), "positive control: a cold boundary scans the real file"); assert.deepEqual([...touchedBodies], [], "index projection does not hydrate message content"); @@ -1770,15 +1761,12 @@ test("an over-budget metadata index is not retained and does not evict cached pe ]); let scannedBytes = 0; const originalRead = fs.readSync; - const readMock = t.mock.method(fs, "readSync", (fd, buffer, offset, length, position) => { + await mockBuiltin(t, "node:fs", { readSync: (fd, buffer, offset, length, position) => { const count = originalRead(fd, buffer, offset, length, position); if (position === null) scannedBytes += count; return count; - }); - syncBuiltinESMExports(); - t.after(() => { readMock.mock.restore(); syncBuiltinESMExports(); }); - const isolated = createJiti(import.meta.url, { moduleCache: false, tryNative: false }); - const { getSessionHistoryPage: readPage } = await isolated.import("./session-reader.ts"); + } }); + const { getSessionHistoryPage: readPage } = await import(`./session-reader.ts?fresh=${isolatedFresh++}`); const peerFirst = readPage(peer, null, 1); scannedBytes = 0; const first = readPage(filePath, null, 1); @@ -1802,18 +1790,15 @@ test("history never advances a cursor through offsets invalidated during a real const first = getSessionHistoryPage(filePath, null, 1); const originalRead = fs.readSync; let changed = false; - const readMock = t.mock.method(fs, "readSync", (fd, buffer, offset, length, position) => { + await mockBuiltin(t, "node:fs", { readSync: (fd, buffer, offset, length, position) => { const count = originalRead(fd, buffer, offset, length, position); if (!changed && position !== null && buffer.subarray(offset, offset + count).toString("utf8").includes('"id":"two"')) { changed = true; appendFileSync(filePath, JSON.stringify(userEntry("three", "two", "newer")) + "\n"); } return count; - }); - syncBuiltinESMExports(); - t.after(() => { readMock.mock.restore(); syncBuiltinESMExports(); }); - const isolated = createJiti(import.meta.url, { moduleCache: false, tryNative: false }); - const { getSessionHistoryPage: readPage } = await isolated.import("./session-reader.ts"); + } }); + const { getSessionHistoryPage: readPage } = await import(`./session-reader.ts?fresh=${isolatedFresh++}`); assert.throws(() => readPage(filePath, first.history.cursor, 1), /Session changed/); assert.equal(changed, true, "positive control: mutation happened inside the actual page read"); const recovered = readPage(filePath, first.history.cursor, 2); diff --git a/lib/session-resume.test.mjs b/lib/session-resume.test.mjs index d4758622a..55df36082 100644 --- a/lib/session-resume.test.mjs +++ b/lib/session-resume.test.mjs @@ -5,20 +5,18 @@ import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; import { setTimeout as sleep } from "node:timers/promises"; -import { createJiti } from "jiti"; import { LinkDriver, linkLocalHost, listedSession, ompChild, until } from "./hosts/link-driver.test-helper.mjs"; -const jiti = createJiti(import.meta.url); /** A new omp-web process: fresh tracker, same agent dir. */ function restart() { globalThis.__ompResumeTracker = undefined; } -const { EXIT_GRACE_MS, markShuttingDown, recordRunningSessions, RESUME_PROMPT, resumeOnHostLink, takeInterruptedSessions } = await jiti.import("./session-resume.ts"); -const { saveWebServerSettings } = await jiti.import("./web-settings.ts"); -const hub = await jiti.import("./hosts/hub.ts"); -const { createHost } = await jiti.import("./hosts/registry.ts"); -const { getRpcSession, resumeInterruptedSessions } = await jiti.import("./rpc-manager.ts"); +const { EXIT_GRACE_MS, markShuttingDown, recordRunningSessions, RESUME_PROMPT, resumeOnHostLink, takeInterruptedSessions } = await import("./session-resume.ts"); +const { saveWebServerSettings } = await import("./web-settings.ts"); +const hub = await import("./hosts/hub.ts"); +const { createHost } = await import("./hosts/registry.ts"); +const { getRpcSession, resumeInterruptedSessions } = await import("./rpc-manager.ts"); /** Fresh agent dir and tracker per test; the resume setting starts as given. */ function setup(t, { enabled }) { diff --git a/lib/session-routes.test.mjs b/lib/session-routes.test.mjs index a35871d2a..936502819 100644 --- a/lib/session-routes.test.mjs +++ b/lib/session-routes.test.mjs @@ -4,27 +4,20 @@ import { tmpdir } from "node:os"; import { join } from "node:path"; import { gzipSync } from "node:zlib"; import test from "node:test"; -import { createJiti } from "jiti"; -import { fileURLToPath } from "node:url"; import { linkLocalDaemon } from "./hosts/link-driver.test-helper.mjs"; -const jiti = createJiti(import.meta.url, { - alias: { - "@/": fileURLToPath(new URL("../", import.meta.url)), - }, -}); -const sessionRoute = await jiti.import("../app/api/sessions/[id]/route.ts"); -const contextRoute = await jiti.import("../app/api/sessions/[id]/context/route.ts"); -const importRoute = await jiti.import("../app/api/sessions/import/route.ts"); -const archiveRoute = await jiti.import("../app/api/sessions/archive/route.ts"); -const exportRoute = await jiti.import("../app/api/sessions/[id]/export/route.ts"); -const stateRoute = await jiti.import("../app/api/sessions/[id]/state/route.ts"); -const autoNameRoute = await jiti.import("../app/api/sessions/[id]/auto-name/route.ts"); -const { cacheSessionPath, invalidateSessionListCache, listAllSessions, resolveSessionPath } = await jiti.import("./session-reader.ts"); -const { allowFileRoot, normalizeSlashes } = await jiti.import("./file-access.ts"); -const { AgentSessionWrapper, WebRpcError } = await jiti.import("./rpc-manager.ts"); -const { closeHostLink, getHost } = await jiti.import("./hosts/hub.ts"); -const { listSessionsAllHosts } = await jiti.import("./hosts/session-index.ts"); +const sessionRoute = await import("../app/api/sessions/[id]/route.ts"); +const contextRoute = await import("../app/api/sessions/[id]/context/route.ts"); +const importRoute = await import("../app/api/sessions/import/route.ts"); +const archiveRoute = await import("../app/api/sessions/archive/route.ts"); +const exportRoute = await import("../app/api/sessions/[id]/export/route.ts"); +const stateRoute = await import("../app/api/sessions/[id]/state/route.ts"); +const autoNameRoute = await import("../app/api/sessions/[id]/auto-name/route.ts"); +const { cacheSessionPath, invalidateSessionListCache, listAllSessions, resolveSessionPath } = await import("./session-reader.ts"); +const { allowFileRoot, normalizeSlashes } = await import("./file-access.ts"); +const { AgentSessionWrapper, WebRpcError } = await import("./rpc-manager.ts"); +const { closeHostLink, getHost } = await import("./hosts/hub.ts"); +const { listSessionsAllHosts } = await import("./hosts/session-index.ts"); const getContext = (id, query = "") => contextRoute.GET( new Request(`http://localhost/api/sessions/${id}/context${query ? `?${query}` : ""}`), @@ -503,7 +496,7 @@ test("boundary preserves malformed-header and oversized-file errors", async () = }); test("sync samples current live output after the history read and excludes pinned historical views", async () => { - const { sessionOps } = await jiti.import("./hosts/session-ops.ts"); + const { sessionOps } = await import("./hosts/session-ops.ts"); let emit; let emittedDuringRead = false; // The history read is this machine's daemon op: output arriving while it runs must reach the response. @@ -674,7 +667,7 @@ test("sidebar rename cannot fall back to disk while Edit owns the session", asyn const commands = []; const state = { sessionId: id, sessionFile: filePath, isStreaming: false, isCompacting: false, queuedMessageCount: 0, isSettled: true }; const { promise: started, resolve: didStart } = Promise.withResolvers(); - const { setSessionTitle } = await jiti.import("./omp/session-files.ts"); + const { setSessionTitle } = await import("./omp/session-files.ts"); let editRequest; const wrapper = new AgentSessionWrapper({ isAlive: true, diff --git a/lib/session-search.test.mjs b/lib/session-search.test.mjs index 20a60b08f..41d2a61b7 100644 --- a/lib/session-search.test.mjs +++ b/lib/session-search.test.mjs @@ -3,11 +3,9 @@ import fs from "node:fs/promises"; import os from "node:os"; import path from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { compileSearchQuery, scoreSearchFields, searchField, TITLE_WEIGHT, CONTENT_WEIGHT } = await jiti.import("./session-search.ts"); -const { MAX_CONTENT_CACHE_ENTRIES, transcriptField } = await jiti.import("./session-content-search.ts"); +const { compileSearchQuery, scoreSearchFields, searchField, TITLE_WEIGHT, CONTENT_WEIGHT } = await import("./session-search.ts"); +const { MAX_CONTENT_CACHE_ENTRIES, transcriptField } = await import("./session-content-search.ts"); const score = (query, title, content = "") => scoreSearchFields([searchField(title, TITLE_WEIGHT), searchField(content, CONTENT_WEIGHT)], compileSearchQuery(query)); diff --git a/lib/session-title.test.mjs b/lib/session-title.test.mjs index dcb899947..641554ba0 100644 --- a/lib/session-title.test.mjs +++ b/lib/session-title.test.mjs @@ -1,10 +1,8 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); const { deriveSessionTitleFromFirstMessage, sanitizeSessionTitle } = - await jiti.import("./session-title.ts"); + await import("./session-title.ts"); test("sanitizes titles to a single clean line", () => { assert.equal(sanitizeSessionTitle("Fix the race\nin SSE reconnect"), "Fix the race"); diff --git a/lib/skill-diagnostics.test.mjs b/lib/skill-diagnostics.test.mjs index 143355992..45e657051 100644 --- a/lib/skill-diagnostics.test.mjs +++ b/lib/skill-diagnostics.test.mjs @@ -1,9 +1,7 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { parseSkillDiagnosticsSnapshot } = await jiti.import("./skill-diagnostics.ts"); +const { parseSkillDiagnosticsSnapshot } = await import("./skill-diagnostics.ts"); const publicSnapshot = { cwd: "/workspace", diff --git a/lib/skill-lock.test.mjs b/lib/skill-lock.test.mjs index d6270a7d4..e94677d2b 100644 --- a/lib/skill-lock.test.mjs +++ b/lib/skill-lock.test.mjs @@ -3,11 +3,9 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); const { annotateSkillsWithInstallInfo, getGlobalSkillsLockPath } = - await jiti.import("./skill-lock.ts"); + await import("./skill-lock.ts"); function writeJson(path, value) { writeFileSync(path, `${JSON.stringify(value, null, 2)}\n`, "utf8"); diff --git a/lib/skill-updates.test.mjs b/lib/skill-updates.test.mjs index a052491a2..05298d5c1 100644 --- a/lib/skill-updates.test.mjs +++ b/lib/skill-updates.test.mjs @@ -1,14 +1,12 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); const { buildSkillUpdateArgs, checkSkillUpdate, checkSkillUpdates, skillUpdateKey, -} = await jiti.import("./skill-updates.ts"); +} = await import("./skill-updates.ts"); function install(overrides = {}) { return { diff --git a/lib/skills-service.test.mjs b/lib/skills-service.test.mjs index 10f028a9c..3618598fa 100644 --- a/lib/skills-service.test.mjs +++ b/lib/skills-service.test.mjs @@ -3,12 +3,8 @@ import { mkdirSync, mkdtempSync, readFileSync, realpathSync, rmSync, writeFileSy import { homedir, tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; import { parse as parseYaml } from "yaml"; -// skills-service.ts imports via the "@/" path alias, which jiti resolves only -// when it is told the project root. -const jiti = createJiti(import.meta.url, { alias: { "@": new URL("..", import.meta.url).pathname.replace(/\/$/, "") } }); const { discoverSkills, getSkillScanRootDirs, @@ -18,10 +14,10 @@ const { readDisableModelInvocation, setDisableModelInvocation, skillsFromCliPayload, -} = await jiti.import("./skills-service.ts"); +} = await import("./skills-service.ts"); // The toggle route authorizes existing files through the consolidated facade. -const { allowFileRoot, getAllowedFileRoots, isExistingFilePathAllowed } = await jiti.import("./file-access.ts"); -const { PATCH } = await jiti.import("../app/api/skills/route.ts"); +const { allowFileRoot, getAllowedFileRoots, isExistingFilePathAllowed } = await import("./file-access.ts"); +const { PATCH } = await import("../app/api/skills/route.ts"); /** Fake omp: a shell script (POSIX) or .cmd launcher (Windows). */ function writeStubOmp(dir, posixBody, cmdBody) { diff --git a/lib/speech-sanitizer.test.mjs b/lib/speech-sanitizer.test.mjs index 5ca043ff0..1de25c36c 100644 --- a/lib/speech-sanitizer.test.mjs +++ b/lib/speech-sanitizer.test.mjs @@ -1,9 +1,7 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { sanitizeTextForSpeech } = await jiti.import("./speech-sanitizer.ts"); +const { sanitizeTextForSpeech } = await import("./speech-sanitizer.ts"); test("sanitizeTextForSpeech handles empty or falsy inputs", () => { assert.equal(sanitizeTextForSpeech(""), ""); diff --git a/lib/stt-omp-gateway.test.mjs b/lib/stt-omp-gateway.test.mjs index b226a14aa..2c16d4779 100644 --- a/lib/stt-omp-gateway.test.mjs +++ b/lib/stt-omp-gateway.test.mjs @@ -3,16 +3,10 @@ import { mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import test, { after } from "node:test"; -import { fileURLToPath } from "node:url"; -import { createJiti } from "jiti"; // With no OMP_WEB_STT_ENDPOINT, OMP_WEB_STT_MODEL names an omp model and the // job runs through `omp auth-gateway stdio`. The omp binary is a stub speaking // that JSON-lines protocol and logging every launch and request it sees. -const jiti = createJiti(import.meta.url, { - tryNative: false, - alias: { "@/": fileURLToPath(new URL("../", import.meta.url)) }, -}); const dir = mkdtempSync(join(tmpdir(), "omp-web-stt-gateway-")); const log = join(dir, "gateway.log"); @@ -49,9 +43,9 @@ require("node:readline").createInterface({ input: process.stdin }).on("line", (l const originalEnv = { ...process.env }; delete process.env.OMP_WEB_STT_ENDPOINT; process.env.OMP_WEB_OMP_BIN = fakeOmp; -const { POST } = await jiti.import("../app/api/stt/route.ts"); -const { GET, DELETE } = await jiti.import("../app/api/stt/[jobId]/route.ts"); -const { disposeAuthGateway } = await jiti.import("./omp/auth-gateway.ts"); +const { POST } = await import("../app/api/stt/route.ts"); +const { GET, DELETE } = await import("../app/api/stt/[jobId]/route.ts"); +const { disposeAuthGateway } = await import("./omp/auth-gateway.ts"); after(() => { disposeAuthGateway(); diff --git a/lib/stt-route.test.mjs b/lib/stt-route.test.mjs index 928c9c11f..4d773da86 100644 --- a/lib/stt-route.test.mjs +++ b/lib/stt-route.test.mjs @@ -1,17 +1,11 @@ import assert from "node:assert/strict"; import { createServer } from "node:http"; import test, { afterEach } from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { - alias: { - "@/": new URL("../", import.meta.url).pathname, - }, -}); -const { POST } = await jiti.import("../app/api/stt/route.ts"); -const { GET } = await jiti.import("../app/api/stt/[jobId]/route.ts"); +const { POST } = await import("../app/api/stt/route.ts"); +const { GET } = await import("../app/api/stt/[jobId]/route.ts"); -const { DELETE } = await jiti.import("../app/api/stt/[jobId]/route.ts"); +const { DELETE } = await import("../app/api/stt/[jobId]/route.ts"); const ctx = (jobId) => ({ params: Promise.resolve({ jobId }) }); const pollJob = async (jobId) => (await GET(new Request("http://localhost"), ctx(jobId))).json(); const claimJob = async (jobId, token, owner = token) => @@ -40,7 +34,7 @@ async function transcribeViaJob(req) { // The job store is process-global; start every test from an empty one. afterEach(() => globalThis.__ompSttJobs?.clear()); -const { MAX_STT_AUDIO_BYTES } = await jiti.import("./stt.ts"); +const { MAX_STT_AUDIO_BYTES } = await import("./stt.ts"); test("stt route returns 501 when neither an endpoint nor a model is configured", async () => { const originalEnv = { ...process.env }; @@ -304,9 +298,9 @@ test("stt POST refuses new jobs with 429 while four are already pending", async test("a scoped job keeps its audio for any browser: list, play, retry, claim once", async () => { const originalEnv = { ...process.env }; - const { GET: LIST } = await jiti.import("../app/api/stt/route.ts"); - const { POST: RETRY } = await jiti.import("../app/api/stt/[jobId]/route.ts"); - const { GET: AUDIO } = await jiti.import("../app/api/stt/[jobId]/audio/route.ts"); + const { GET: LIST } = await import("../app/api/stt/route.ts"); + const { POST: RETRY } = await import("../app/api/stt/[jobId]/route.ts"); + const { GET: AUDIO } = await import("../app/api/stt/[jobId]/audio/route.ts"); const uploads = []; const server = createServer((req, res) => { const chunks = []; @@ -403,7 +397,7 @@ test("an empty transcript settles as a retryable error that keeps the audio", as }); await new Promise((resolve) => server.listen(0, "127.0.0.1", resolve)); process.env.OMP_WEB_STT_ENDPOINT = `http://127.0.0.1:${server.address().port}/v1/audio/transcriptions`; - const { GET: AUDIO } = await jiti.import("../app/api/stt/[jobId]/audio/route.ts"); + const { GET: AUDIO } = await import("../app/api/stt/[jobId]/audio/route.ts"); try { const formData = new FormData(); @@ -548,7 +542,7 @@ test("a scope lists its jobs newest first", async () => { const server = createServer(() => {}); // never answers: both jobs stay pending await new Promise((resolve) => server.listen(0, "127.0.0.1", resolve)); process.env.OMP_WEB_STT_ENDPOINT = `http://127.0.0.1:${server.address().port}/v1/audio/transcriptions`; - const { GET: LIST } = await jiti.import("../app/api/stt/route.ts"); + const { GET: LIST } = await import("../app/api/stt/route.ts"); const upload = async () => { const formData = new FormData(); formData.append("file", new Blob(["audio"], { type: "audio/webm" }), "audio.webm"); diff --git a/lib/subagent-history.test.mjs b/lib/subagent-history.test.mjs index 2e60f6c2e..2dc361b67 100644 --- a/lib/subagent-history.test.mjs +++ b/lib/subagent-history.test.mjs @@ -3,12 +3,10 @@ import test from "node:test"; import { mkdtempSync, mkdirSync, writeFileSync, rmSync } from "fs"; import { tmpdir } from "os"; import { join } from "path"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); const { extractSubagentHistory, readCompletionArtifact, readSubagentTranscriptPage, resolveSubagentArtifact, siblingDirForSession, MAX_SUBAGENT_COMPLETION_BYTES } = - await jiti.import("./subagent-history.ts"); + await import("./subagent-history.ts"); function makeSessionFixture() { const dir = mkdtempSync(join(tmpdir(), "ompweb-subagent-history-")); diff --git a/lib/subagent-types.test.mjs b/lib/subagent-types.test.mjs index 17617d289..5e5439f33 100644 --- a/lib/subagent-types.test.mjs +++ b/lib/subagent-types.test.mjs @@ -1,15 +1,13 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); const { mergeSubagentRoster, parseSubagentProgress, parseSubagentSnapshot, parseSubagentActivityEvent, -} = await jiti.import("./subagent-types.ts"); +} = await import("./subagent-types.ts"); /** `index` restarts per `task` call, so every batch numbers its own children. */ const batch = (call, agents, status = "started") => diff --git a/lib/table-chart.test.mjs b/lib/table-chart.test.mjs index 0956c4d7d..37b60bf8b 100644 --- a/lib/table-chart.test.mjs +++ b/lib/table-chart.test.mjs @@ -1,7 +1,6 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const { parseChartValue, chartSeriesFromRows, chartSeriesFromHast, chartDomain, chartGeometry, tableChartSvg } = await createJiti(import.meta.url).import("./table-chart.ts"); +const { parseChartValue, chartSeriesFromRows, chartSeriesFromHast, chartDomain, chartGeometry, tableChartSvg } = await import("./table-chart.ts"); test("an approximate multilingual token table produces the same six magnitudes", () => { const labels = ["MCP 서버 지시문", "xd:// 디바이스 카탈로그", "MCP Tool Routes", "코어 툴 스키마 13개", "시스템 프롬프트", "memory 요약 + skills 2개"]; diff --git a/lib/thinking-levels.test.mjs b/lib/thinking-levels.test.mjs index 57857ff5f..f4be792eb 100644 --- a/lib/thinking-levels.test.mjs +++ b/lib/thinking-levels.test.mjs @@ -1,9 +1,7 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); -const { resolveAvailableThinkingLevels, selectableThinkingLevels, thinkingLevelsForMeta } = await jiti.import("./thinking-levels.ts"); +const { resolveAvailableThinkingLevels, selectableThinkingLevels, thinkingLevelsForMeta } = await import("./thinking-levels.ts"); const LUNA = { provider: "openai", modelId: "gpt-5.6-luna" }; const LIVE_LUNA = { provider: "openai", modelId: "gpt-5.6-luna", reasoning: true, thinking: { efforts: ["low", "medium", "high", "xhigh", "max"] } }; diff --git a/lib/tool-preset-preference.test.mjs b/lib/tool-preset-preference.test.mjs index b27cba065..68789d771 100644 --- a/lib/tool-preset-preference.test.mjs +++ b/lib/tool-preset-preference.test.mjs @@ -1,10 +1,8 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); -const { getPreferredToolPreset, setPreferredToolPreset } = await jiti.import("./tool-preset-preference.ts"); -const { getToolNamesForPreset } = await jiti.import("./tool-presets.ts"); +const { getPreferredToolPreset, setPreferredToolPreset } = await import("./tool-preset-preference.ts"); +const { getToolNamesForPreset } = await import("./tool-presets.ts"); function createStorage(values = {}) { const entries = new Map(Object.entries(values)); diff --git a/lib/transcript.test.mjs b/lib/transcript.test.mjs index f107ad7f7..a2e320612 100644 --- a/lib/transcript.test.mjs +++ b/lib/transcript.test.mjs @@ -1,11 +1,9 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); async function loadSubject() { - return jiti.import("./transcript.ts"); + return import("./transcript.ts"); } test("a generic aborted request is not attributed to the user", async () => { diff --git a/lib/update-policy.test.mjs b/lib/update-policy.test.mjs index 758a98711..ead838f0e 100644 --- a/lib/update-policy.test.mjs +++ b/lib/update-policy.test.mjs @@ -2,24 +2,18 @@ import assert from "node:assert/strict"; import { join } from "node:path"; import { tmpdir } from "node:os"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { - alias: { - "@/": new URL("../", import.meta.url).pathname, - }, -}); -const { checkNpmUpdate } = await jiti.import("./npm-update.ts"); -const { checkOmpUpdate } = await jiti.import("./omp/updates.ts"); -const { DISABLE_AUTOUPDATE_ENV_VAR, isUpdateDisabled } = await jiti.import("./update-policy.ts"); +const { checkNpmUpdate } = await import("./npm-update.ts"); +const { checkOmpUpdate } = await import("./omp/updates.ts"); +const { DISABLE_AUTOUPDATE_ENV_VAR, isUpdateDisabled } = await import("./update-policy.ts"); const { getSelfUpdateSupport, prepareSelfUpdate, commitSelfUpdate, validateCommitSelfUpdate, -} = await jiti.import("./self-update.ts"); -const { GET: getAppUpdate, POST: postAppUpdate } = await jiti.import("../app/api/app-update/route.ts"); -const { POST: postOmpUpdate } = await jiti.import("../app/api/omp-update/route.ts"); +} = await import("./self-update.ts"); +const { GET: getAppUpdate, POST: postAppUpdate } = await import("../app/api/app-update/route.ts"); +const { POST: postOmpUpdate } = await import("../app/api/omp-update/route.ts"); const ENV_VAR = DISABLE_AUTOUPDATE_ENV_VAR; diff --git a/lib/usage-db.test.mjs b/lib/usage-db.test.mjs index 291457692..b2eb525a2 100644 --- a/lib/usage-db.test.mjs +++ b/lib/usage-db.test.mjs @@ -4,11 +4,9 @@ import { DatabaseSync } from "node:sqlite"; import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); async function loadSubject() { - return jiti.import("./usage-db.ts"); + return import("./usage-db.ts"); } async function withTempDbDir(run) { diff --git a/lib/usage-rates.test.mjs b/lib/usage-rates.test.mjs index 6b2efad90..e1838f264 100644 --- a/lib/usage-rates.test.mjs +++ b/lib/usage-rates.test.mjs @@ -1,10 +1,8 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); async function loadSubject() { - return jiti.import("./usage-rates.ts"); + return import("./usage-rates.ts"); } test("resolves default rates for major models", async () => { diff --git a/lib/usage-service.test.mjs b/lib/usage-service.test.mjs index 420e9238d..c3a1b537e 100644 --- a/lib/usage-service.test.mjs +++ b/lib/usage-service.test.mjs @@ -3,11 +3,9 @@ import { mkdirSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); async function loadSubject() { - return jiti.import("./usage-service.ts"); + return import("./usage-service.ts"); } async function withTempSessionDir(run) { @@ -16,7 +14,7 @@ async function withTempSessionDir(run) { const prevAgentDir = process.env.PI_CODING_AGENT_DIR; process.env.PI_CODING_AGENT_DIR = dir; - const { closeUsageDatabase } = await jiti.import("./usage-db.ts"); + const { closeUsageDatabase } = await import("./usage-db.ts"); try { await run(dir); diff --git a/lib/web-auth.test.mjs b/lib/web-auth.test.mjs index bba59d8a3..6a0d7b5b6 100644 --- a/lib/web-auth.test.mjs +++ b/lib/web-auth.test.mjs @@ -4,9 +4,7 @@ import { mkdtempSync, readFileSync, rmSync, statSync, writeFileSync } from "node import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); const { NextRequest } = await import("next/server.js"); const { unstable_doesMiddlewareMatch } = await import("next/experimental/testing/server.js"); const { @@ -15,15 +13,15 @@ const { isValidWebSession, isWebPasswordEnabled, webPasswordConfigurationProblem, -} = await jiti.import("./web-auth.ts"); -const { hashPassword } = await jiti.import("./web-password-hash.ts"); +} = await import("./web-auth.ts"); +const { hashPassword } = await import("./web-password-hash.ts"); const { deriveSessionSigningKey, resetWebAuthSecretCache, pinWebAuthSecretForTests, webAuthSecretPath, -} = await jiti.import("./web-auth-secret.ts"); -const { config, proxy } = await jiti.import("../proxy.ts"); +} = await import("./web-auth-secret.ts"); +const { config, proxy } = await import("../proxy.ts"); const PASSWORD = "correct horse battery staple"; // N = 2^12 for the test suite: the format and code path are identical, only diff --git a/lib/web-password-hash.test.mjs b/lib/web-password-hash.test.mjs index 3c0b36457..1f9b1e0ab 100644 --- a/lib/web-password-hash.test.mjs +++ b/lib/web-password-hash.test.mjs @@ -1,9 +1,7 @@ import assert from "node:assert/strict"; import { createRequire } from "node:module"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); const require = createRequire(import.meta.url); const { @@ -12,7 +10,7 @@ const { parsePasswordHash, verifyPassword, PASSWORD_HASH_MIN_LOG_N, -} = await jiti.import("./web-password-hash.ts"); +} = await import("./web-password-hash.ts"); // The shipped implementation, used by the launcher and the service installers. const launcherImpl = require("../bin/omp-web-password-hash.js"); diff --git a/lib/web-settings.test.mjs b/lib/web-settings.test.mjs index 7828be1b7..1775b5890 100644 --- a/lib/web-settings.test.mjs +++ b/lib/web-settings.test.mjs @@ -3,10 +3,8 @@ import { mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { loadWebServerSettings, saveWebServerSettings } = await jiti.import("./web-settings.ts"); +const { loadWebServerSettings, saveWebServerSettings } = await import("./web-settings.ts"); function withAgentDir(run) { const dir = mkdtempSync(join(tmpdir(), "omp-web-web-settings-")); diff --git a/lib/windows-service.test.mjs b/lib/windows-service.test.mjs index bc31a3abf..edde606ce 100644 --- a/lib/windows-service.test.mjs +++ b/lib/windows-service.test.mjs @@ -2,9 +2,7 @@ import assert from "node:assert/strict"; import test from "node:test"; import path from "node:path"; import { existsSync, readFileSync } from "node:fs"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); const { DEFAULT_WEB_SERVICE_CONFIG, sanitizePort, @@ -25,7 +23,7 @@ const { getWindowsExecutionEnv, isTrayProcessRunning, invalidateTrayRunningCache, -} = await jiti.import("./windows-service.ts"); +} = await import("./windows-service.ts"); test("DEFAULT_WEB_SERVICE_CONFIG has correct production ports and settings", () => { assert.equal(DEFAULT_WEB_SERVICE_CONFIG.port, 30177); diff --git a/lib/workspace-memory.test.mjs b/lib/workspace-memory.test.mjs index 66685b04e..7a0be516a 100644 --- a/lib/workspace-memory.test.mjs +++ b/lib/workspace-memory.test.mjs @@ -1,14 +1,12 @@ import assert from "node:assert/strict"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url, { tsconfigPaths: true }); const { clearLastOpenSession, getLastOpenSession, setLastOpenSession, workspaceKeyOf, -} = await jiti.import("./workspace-memory.ts"); +} = await import("./workspace-memory.ts"); function createStorage(values = {}) { const entries = new Map(Object.entries(values)); diff --git a/lib/worktree.test.mjs b/lib/worktree.test.mjs index 2a57a9013..0b3f5558d 100644 --- a/lib/worktree.test.mjs +++ b/lib/worktree.test.mjs @@ -4,11 +4,9 @@ import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "no import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -import { createJiti } from "jiti"; -const jiti = createJiti(import.meta.url); -const { addWorktree, listWorktrees, removeWorktree, repairWorktreeGitdirs, resolveProject } = await jiti.import("./worktree.ts"); -const { samePath } = await jiti.import("./paths.ts"); +const { addWorktree, listWorktrees, removeWorktree, repairWorktreeGitdirs, resolveProject } = await import("./worktree.ts"); +const { samePath } = await import("./paths.ts"); function git(cwd, args) { return execFileSync("git", ["-C", cwd, "-c", "safe.directory=*", ...args], { encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] }).trim(); } diff --git a/package.json b/package.json index e76ada8fd..dbf4ba101 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "build": "next build --webpack", "start": "next start -H 127.0.0.1 -p 30177", "start:lan": "next start -H 0.0.0.0 -p 30177", - "test": "node --experimental-strip-types --test lib/*.test.mjs lib/hosts/*.test.mjs lib/omp/*.test.mjs components/*.test.mjs components/ui/*.test.mjs hooks/*.test.mjs bin/*.test.mjs", + "test": "bun test --parallel --timeout 30000", "typecheck": "tsc --noEmit", "lint": "eslint .", "tray:install": "node bin/omp-web-tray.js --install", diff --git a/tests/mock-builtin.mjs b/tests/mock-builtin.mjs new file mode 100644 index 000000000..e8b079cca --- /dev/null +++ b/tests/mock-builtin.mjs @@ -0,0 +1,10 @@ +import { mock } from "bun:test"; + +// Replaces named exports of a Node builtin for one test. Bun's mock.restore() does not undo +// mock.module(), so the real exports go back by hand. Import the module under test after this +// call, with a fresh `?fresh=N` query, so it binds the fakes. +export async function mockBuiltin(t, name, overrides) { + const real = { ...(await import(name)) }; + mock.module(name, () => ({ ...real, default: { ...real.default, ...overrides }, ...overrides })); + t.after(() => mock.module(name, () => real)); +} diff --git a/tests/setup-dom.mjs b/tests/setup-dom.mjs index db4fe6b29..59583a9e6 100644 --- a/tests/setup-dom.mjs +++ b/tests/setup-dom.mjs @@ -1,7 +1,7 @@ -import { after } from "node:test"; import { JSDOM } from "jsdom"; // Import before Testing Library so its DOM queries bind to this document. +// `bun test --parallel` gives every test file a fresh global, so nothing is torn down. const dom = new JSDOM("", { url: "https://omp.test/", pretendToBeVisual: true, @@ -11,28 +11,26 @@ const globals = { document: dom.window.document, navigator: dom.window.navigator, HTMLElement: dom.window.HTMLElement, + HTMLInputElement: dom.window.HTMLInputElement, + HTMLTextAreaElement: dom.window.HTMLTextAreaElement, Element: dom.window.Element, Node: dom.window.Node, Event: dom.window.Event, + EventTarget: dom.window.EventTarget, CustomEvent: dom.window.CustomEvent, + KeyboardEvent: dom.window.KeyboardEvent, + MouseEvent: dom.window.MouseEvent, + FocusEvent: dom.window.FocusEvent, + InputEvent: dom.window.InputEvent, MutationObserver: dom.window.MutationObserver, localStorage: dom.window.localStorage, sessionStorage: dom.window.sessionStorage, + matchMedia: () => ({ matches: false, addEventListener() {}, removeEventListener() {} }), getComputedStyle: dom.window.getComputedStyle.bind(dom.window), requestAnimationFrame: dom.window.requestAnimationFrame.bind(dom.window), cancelAnimationFrame: dom.window.cancelAnimationFrame.bind(dom.window), IS_REACT_ACT_ENVIRONMENT: true, }; -const originals = new Map(); for (const [key, value] of Object.entries(globals)) { - originals.set(key, Object.getOwnPropertyDescriptor(globalThis, key)); Object.defineProperty(globalThis, key, { configurable: true, writable: true, value }); } - -after(() => { - dom.window.close(); - for (const [key, descriptor] of originals) { - if (descriptor) Object.defineProperty(globalThis, key, descriptor); - else delete globalThis[key]; - } -}); From 82e7e0a4ab5ac13eaf733a1e8b570e03f15c0fba Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 11:03:12 +0000 Subject: [PATCH 05/81] refactor(api): route handlers use Web Request and Response --- app/api/agent/[id]/bash-output/route.ts | 15 ++-- app/api/agent/[id]/route.ts | 31 ++++---- app/api/agent/new/route.ts | 17 ++-- app/api/agents/route.ts | 25 +++--- app/api/app-update/route.ts | 23 +++--- app/api/auth/accounts/[provider]/route.ts | 15 ++-- app/api/auth/api-key/[provider]/route.ts | 7 +- app/api/cwd/browse/route.ts | 13 ++- app/api/cwd/validate/route.ts | 5 +- app/api/default-cwd/route.ts | 3 +- app/api/events/route.ts | 13 ++- app/api/file-index/route.ts | 30 +++---- app/api/files/[...path]/route.ts | 79 ++++++++++--------- app/api/git/diff/route.ts | 20 ++--- app/api/git/status/route.ts | 19 +++-- app/api/github-repo/route.ts | 17 ++-- app/api/home/route.ts | 3 +- app/api/hosts/route.ts | 11 ++- app/api/manifest/route.ts | 3 +- app/api/mcp/route.ts | 17 ++-- app/api/model-roles/route.ts | 11 ++- app/api/models-config/catalog/route.ts | 5 +- app/api/models-config/route.ts | 11 ++- app/api/models-config/test/route.ts | 17 ++-- app/api/notifications/devices/route.ts | 9 +-- app/api/notifications/history/route.ts | 11 ++- app/api/notifications/presence/route.ts | 5 +- app/api/notifications/test/route.ts | 5 +- app/api/omp-settings/route.ts | 11 ++- app/api/omp-update/route.ts | 25 +++--- app/api/omp-version/route.ts | 3 +- app/api/plugins/route.ts | 29 ++++--- app/api/projects/clone/route.ts | 15 ++-- app/api/projects/route.ts | 29 ++++--- app/api/provider-usage/route.ts | 7 +- app/api/providers/enable/route.ts | 7 +- app/api/sessions/[id]/archive/route.ts | 7 +- app/api/sessions/[id]/auto-name/route.ts | 15 ++-- app/api/sessions/[id]/context/route.ts | 21 +++-- .../[id]/entries/[entryId]/thinking/route.ts | 5 +- app/api/sessions/[id]/route.ts | 21 +++-- app/api/sessions/[id]/state/route.ts | 9 +-- .../[id]/subagents/[subagentId]/route.ts | 7 +- app/api/sessions/[id]/subagents/route.ts | 7 +- app/api/sessions/archive/route.ts | 9 +-- app/api/sessions/import/route.ts | 17 ++-- app/api/sessions/route.ts | 7 +- app/api/sessions/search/route.ts | 3 +- app/api/skills/check/route.ts | 13 ++- app/api/skills/install/route.ts | 15 ++-- app/api/skills/route.ts | 21 +++-- app/api/skills/search/route.ts | 11 ++- app/api/skills/update/route.ts | 13 ++- app/api/stt/[jobId]/audio/route.ts | 3 +- app/api/stt/[jobId]/route.ts | 13 ++- app/api/stt/route.ts | 23 +++--- app/api/usage/route.ts | 3 +- app/api/web-auth/session/route.ts | 15 ++-- app/api/web-settings/route.ts | 17 ++-- app/api/windows-service/route.ts | 18 ++--- app/api/worktrees/route.ts | 27 +++---- lib/api-utils.ts | 21 +++-- lib/file-access.test.mjs | 6 +- lib/file-index-route.test.mjs | 3 +- 64 files changed, 426 insertions(+), 490 deletions(-) diff --git a/app/api/agent/[id]/bash-output/route.ts b/app/api/agent/[id]/bash-output/route.ts index 73a2d38a4..2a55b4fb7 100644 --- a/app/api/agent/[id]/bash-output/route.ts +++ b/app/api/agent/[id]/bash-output/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { tmpdir } from "node:os"; import { Readable } from "node:stream"; import { @@ -27,20 +26,20 @@ export async function GET( path = url.searchParams.get("path"); download = url.searchParams.get("download") === "1"; } catch { - return NextResponse.json({ error: "invalid url" }, { status: 400 }); + return Response.json({ error: "invalid url" }, { status: 400 }); } if (!path) { - return NextResponse.json({ error: "path required" }, { status: 400 }); + return Response.json({ error: "path required" }, { status: 400 }); } const resolved = resolveBashOutputPath(path, tmpdir()); if (!resolved) { - return NextResponse.json({ error: "invalid path" }, { status: 400 }); + return Response.json({ error: "invalid path" }, { status: 400 }); } if (!await isBashOutputPathReferencedBySession(resolved, id)) { - return NextResponse.json({ error: "forbidden" }, { status: 403 }); + return Response.json({ error: "forbidden" }, { status: 403 }); } try { @@ -58,13 +57,13 @@ export async function GET( const result = await readUtf8FileWithinLimit(resolved); if (result.tooLarge) { - return NextResponse.json({ + return Response.json({ error: `Full output is too large to display (limit ${MAX_INLINE_BASH_OUTPUT_BYTES} bytes)`, data: { size: result.size, maxBytes: MAX_INLINE_BASH_OUTPUT_BYTES }, }, { status: 413 }); } - return NextResponse.json({ success: true, data: { output: result.content } }); + return Response.json({ success: true, data: { output: result.content } }); } catch { - return NextResponse.json({ error: "full output unavailable" }, { status: 404 }); + return Response.json({ error: "full output unavailable" }, { status: 404 }); } } diff --git a/app/api/agent/[id]/route.ts b/app/api/agent/[id]/route.ts index a8edbce26..3276a2652 100644 --- a/app/api/agent/[id]/route.ts +++ b/app/api/agent/[id]/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse, hostOfflineResponse, resolveSessionHostOr404 } from "@/lib/api-utils"; import { startRpcSession, getRpcSession, WebRpcError } from "@/lib/rpc-manager"; import { sessionSpawnTarget } from "@/lib/hosts/session-index"; @@ -29,17 +28,17 @@ const LIVE_SESSION_ONLY = new Set(["get_skill_diagnostics", "set_skill_startup_d * errors stay opaque English text. */ function commandErrorResponse(error: unknown) { if (error instanceof RequestBodyTooLargeError) { - return NextResponse.json({ error: "Agent command is too large", code: "request_too_large" }, { status: 413 }); + return Response.json({ error: "Agent command is too large", code: "request_too_large" }, { status: 413 }); } if (error instanceof SyntaxError) { - return NextResponse.json({ error: "Invalid JSON request body", code: "invalid_json" }, { status: 400 }); + return Response.json({ error: "Invalid JSON request body", code: "invalid_json" }, { status: 400 }); } // host_offline falls through to apiErrorResponse: 503 {hostOffline: true}. if (error instanceof WebRpcError && error.code !== "host_offline") { - return NextResponse.json({ error: error.message, code: error.code }, { status: 400 }); + return Response.json({ error: error.message, code: error.code }, { status: 400 }); } if (error instanceof RpcCommandError) { - return NextResponse.json({ error: error.message, code: error.code ?? "rpc_command_failed" }, { status: 400 }); + return Response.json({ error: error.message, code: error.code ?? "rpc_command_failed" }, { status: 400 }); } return apiErrorResponse(error); } @@ -54,7 +53,7 @@ export async function POST( try { const body = await parseJsonWithinLimit<{ type?: unknown; [key: string]: unknown }>(req, MAX_AGENT_COMMAND_REQUEST_BYTES); if (typeof body.type !== "string" || !body.type.trim()) { - return NextResponse.json({ error: "command type is required", code: "command_type_required" }, { status: 400 }); + return Response.json({ error: "command type is required", code: "command_type_required" }, { status: 400 }); } // The per-chat advisor choice rides on the query string (never the RPC @@ -72,16 +71,16 @@ export async function POST( if (existing?.isAlive()) { if (noSpawn || liveOnly || existing.advisorSpawned === advisor || existing.isRunning() || existing.isEditingHistory()) { const result = await existing.send(body); - return NextResponse.json({ success: true, data: result }); + return Response.json({ success: true, data: result }); } // Disposing a child behind a down link would wait for the link to return. const offline = hostOfflineResponse(existing.host); if (offline) return offline; await existing.destroyAndWait(); } - if (noSpawn) return NextResponse.json({ success: true, data: NO_SPAWN_REPLIES[body.type] }); + if (noSpawn) return Response.json({ success: true, data: NO_SPAWN_REPLIES[body.type] }); if (liveOnly) { - return NextResponse.json( + return Response.json( { error: "Skill diagnostics require a running session", code: "skill_diagnostics_unavailable" }, { status: 409 }, ); @@ -93,7 +92,7 @@ export async function POST( const offline = hostOfflineResponse(host); if (offline) return offline; const target = await sessionSpawnTarget(id, host); - if (!target) return NextResponse.json({ error: "Session not found", code: "session_not_found" }, { status: 404 }); + if (!target) return Response.json({ error: "Session not found", code: "session_not_found" }, { status: 404 }); // A cold set_model must reach omp before the saved model is restored: // spawning with only --resume lets omp exit on an unrestorable saved @@ -126,20 +125,20 @@ export async function POST( // precedence) rethrows the RPC error, so a real failure still surfaces. try { const result = await session.send(body); - return NextResponse.json({ success: true, data: result }); + return Response.json({ success: true, data: result }); } catch (error) { const state = (await session.send({ type: "get_state" })) as { model?: { id?: unknown; provider?: unknown }; } | null; if (state?.model?.provider === body.provider && state?.model?.id === body.modelId) { - return NextResponse.json({ success: true, data: { id: body.modelId, provider: body.provider } }); + return Response.json({ success: true, data: { id: body.modelId, provider: body.provider } }); } throw error; } } const result = await session.send(body); - return NextResponse.json({ success: true, data: result }); + return Response.json({ success: true, data: result }); } catch (error) { return commandErrorResponse(error); } @@ -155,14 +154,14 @@ export async function GET( try { const session = getRpcSession(id); if (!session || !session.isAlive()) { - return NextResponse.json({ running: false }); + return Response.json({ running: false }); } try { const state = await session.send({ type: "get_state" }); - return NextResponse.json({ running: true, state }); + return Response.json({ running: true, state }); } catch (error) { if (error instanceof WebRpcError && error.code === "session_unresponsive") { - return NextResponse.json({ running: false, recovered: true }); + return Response.json({ running: false, recovered: true }); } throw error; } diff --git a/app/api/agent/new/route.ts b/app/api/agent/new/route.ts index 2bea6734e..d5acf1bb0 100644 --- a/app/api/agent/new/route.ts +++ b/app/api/agent/new/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse, opErrorResponse, resolveHostOrError } from "@/lib/api-utils"; import { WebRpcError, startNewRpcSession } from "@/lib/rpc-manager"; import { RpcCommandError } from "@/lib/omp/rpc-process"; @@ -7,14 +6,14 @@ import { MAX_AGENT_COMMAND_REQUEST_BYTES } from "@/lib/image-attachments"; function newSessionErrorResponse(error: unknown) { if (error instanceof RequestBodyTooLargeError) { - return NextResponse.json({ error: "New session request is too large", code: "request_too_large" }, { status: 413 }); + return Response.json({ error: "New session request is too large", code: "request_too_large" }, { status: 413 }); } if (error instanceof SyntaxError) { - return NextResponse.json({ error: "Invalid JSON request body", code: "invalid_json" }, { status: 400 }); + return Response.json({ error: "Invalid JSON request body", code: "invalid_json" }, { status: 400 }); } // host_offline falls through to apiErrorResponse: 503 {hostOffline: true}. if ((error instanceof WebRpcError && error.code !== "host_offline") || error instanceof RpcCommandError) { - return NextResponse.json( + return Response.json( { error: error.message, code: error instanceof WebRpcError ? error.code : (error.code ?? "rpc_command_failed") }, { status: 400 }, ); @@ -38,7 +37,7 @@ export async function POST(req: Request) { const { host } = target; if (!requestedCwd || typeof requestedCwd !== "string") { - return NextResponse.json({ error: "cwd is required", code: "cwd_required" }, { status: 400 }); + return Response.json({ error: "cwd is required", code: "cwd_required" }, { status: 400 }); } const { provider, modelId, toolNames, thinkingLevel, advisor, ...promptCommand } = command as { provider?: string; modelId?: string; toolNames?: string[]; thinkingLevel?: string; advisor?: boolean; [key: string]: unknown }; @@ -46,7 +45,7 @@ export async function POST(req: Request) { // child RPC: a stale or forged id would address the wrong session. delete promptCommand.sessionId; if (typeof promptCommand.type !== "string" || !promptCommand.type.trim()) { - return NextResponse.json({ error: "command type is required", code: "command_type_required" }, { status: 400 }); + return Response.json({ error: "command type is required", code: "command_type_required" }, { status: 400 }); } // The cwd is checked on its host; the host answers with the path it will use. @@ -66,12 +65,12 @@ export async function POST(req: Request) { } if (promptCommand.type === "ensure_session") { - return NextResponse.json({ success: true, sessionId: realSessionId, data: null }); + return Response.json({ success: true, sessionId: realSessionId, data: null }); } const result = await session.send(promptCommand); - return NextResponse.json({ success: true, sessionId: realSessionId, data: result }); + return Response.json({ success: true, sessionId: realSessionId, data: result }); } catch (error) { // The child was spawned but the prompt never ran: without this cleanup a // failed set_model/set_thinking_level/prompt leaves an orphaned omp @@ -80,7 +79,7 @@ export async function POST(req: Request) { // wrapper stays for the reconnect (and disposing it would wait for the link). // Its id lets the client open it instead of starting a second session. if (error instanceof WebRpcError && error.code === "host_offline") { - return NextResponse.json({ error: error.message, code: error.code, hostOffline: true, delivery: error.delivery, sessionId: realSessionId }, { status: 503 }); + return Response.json({ error: error.message, code: error.code, hostOffline: true, delivery: error.delivery, sessionId: realSessionId }, { status: 503 }); } await session.destroyAndWait(); throw error; diff --git a/app/api/agents/route.ts b/app/api/agents/route.ts index 09ebbddf0..a901fe926 100644 --- a/app/api/agents/route.ts +++ b/app/api/agents/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { existsSync, statSync } from "fs"; import { dirname, resolve } from "path"; import { getAllowedFileRoots, isExistingFilePathAllowed } from "@/lib/file-access"; @@ -64,7 +63,7 @@ export async function GET(request: Request) { const cwd = project?.cwd; const result = await discoverAgents(cwd); const agents = scope === "all" ? result.agents : result.agents.filter((agent) => agent.scope === scope); - return NextResponse.json({ + return Response.json({ agents, diagnostics: result.diagnostics, userPath: getUserAgentsDir(), @@ -73,7 +72,7 @@ export async function GET(request: Request) { }); } catch (error) { const message = error instanceof Error ? error.message : String(error); - return NextResponse.json({ error: message }, { status: /not allowed/i.test(message) ? 403 : 400 }); + return Response.json({ error: message }, { status: /not allowed/i.test(message) ? 403 : 400 }); } } @@ -85,7 +84,7 @@ export async function POST(request: Request) { const project = body.scope === "project" ? await allowedProjectScope(body.cwd) : undefined; const cwd = project?.cwd; const targetDir = project?.dir ?? resolveAgentsScope(cwd, body.scope); - return NextResponse.json({ success: true, ...unpackBundled(targetDir, false) }); + return Response.json({ success: true, ...unpackBundled(targetDir, false) }); } if (body.scope !== "user" && body.scope !== "project") throw new Error("scope must be user or project"); const project = body.scope === "project" ? await allowedProjectScope(body.cwd) : undefined; @@ -97,11 +96,11 @@ export async function POST(request: Request) { const scopeDir = project?.dir ?? resolveAgentsScope(cwd, body.scope); const written = writeAgent(scopeDir, body.name.trim(), body.agent as AgentPayload, body.previousName); const agent = readAgentFile(written.path); - return NextResponse.json({ success: true, ...written, agent }); + return Response.json({ success: true, ...written, agent }); } catch (error) { - if (error instanceof RequestBodyTooLargeError) return NextResponse.json({ error: "Agent request is too large" }, { status: 413 }); + if (error instanceof RequestBodyTooLargeError) return Response.json({ error: "Agent request is too large" }, { status: 413 }); const message = error instanceof Error ? error.message : String(error); - return NextResponse.json({ error: message }, { status: /not allowed/i.test(message) ? 403 : 400 }); + return Response.json({ error: message }, { status: /not allowed/i.test(message) ? 403 : 400 }); } } @@ -117,11 +116,11 @@ export async function PUT(request: Request) { validateAgentPayload({ ...(body.agent as Record), name: body.name }); const scopeDir = project?.dir ?? resolveAgentsScope(cwd, body.scope); const written = writeAgent(scopeDir, body.name.trim(), body.agent as AgentPayload, body.previousName); - return NextResponse.json({ success: true, ...written, agent: readAgentFile(written.path) }); + return Response.json({ success: true, ...written, agent: readAgentFile(written.path) }); } catch (error) { - if (error instanceof RequestBodyTooLargeError) return NextResponse.json({ error: "Agent request is too large" }, { status: 413 }); + if (error instanceof RequestBodyTooLargeError) return Response.json({ error: "Agent request is too large" }, { status: 413 }); const message = error instanceof Error ? error.message : String(error); - return NextResponse.json({ error: message }, { status: /not allowed/i.test(message) ? 403 : 400 }); + return Response.json({ error: message }, { status: /not allowed/i.test(message) ? 403 : 400 }); } } @@ -134,11 +133,11 @@ export async function DELETE(request: Request) { if (typeof body.name !== "string" || !body.name.trim()) throw new Error("name is required"); const scopeDir = project?.dir ?? resolveAgentsScope(cwd, body.scope); validateAgentFileReference(scopeDir, body.name.trim()); - return NextResponse.json({ success: true, ...deleteAgent(scopeDir, body.name.trim()) }); + return Response.json({ success: true, ...deleteAgent(scopeDir, body.name.trim()) }); } catch (error) { - if (error instanceof RequestBodyTooLargeError) return NextResponse.json({ error: "Agent request is too large" }, { status: 413 }); + if (error instanceof RequestBodyTooLargeError) return Response.json({ error: "Agent request is too large" }, { status: 413 }); const message = error instanceof Error ? error.message : String(error); const status = /not found/i.test(message) ? 404 : /not allowed/i.test(message) ? 403 : 400; - return NextResponse.json({ error: message }, { status }); + return Response.json({ error: message }, { status }); } } diff --git a/app/api/app-update/route.ts b/app/api/app-update/route.ts index 47ae0cb5b..267711b3b 100644 --- a/app/api/app-update/route.ts +++ b/app/api/app-update/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { isApiRequestOriginAllowed, shouldCheckApiRequestOrigin } from "@/lib/request-security"; import { parseJsonWithinLimit, RequestBodyTooLargeError } from "@/lib/bounded-form-data"; import { checkNpmUpdate } from "@/lib/npm-update"; @@ -39,11 +38,11 @@ async function commitAppUpdate(attemptId: string): Promise { } } -function errorResponse(error: unknown): NextResponse { +function errorResponse(error: unknown): Response { if (error instanceof SelfUpdateError) { - return NextResponse.json({ error: error.message, code: error.code }, { status: error.httpStatus }); + return Response.json({ error: error.message, code: error.code }, { status: error.httpStatus }); } - return NextResponse.json({ error: "The application update could not be started", code: "update_failed" }, { status: 500 }); + return Response.json({ error: "The application update could not be started", code: "update_failed" }, { status: 500 }); } export async function GET(request: Request) { @@ -51,7 +50,7 @@ export async function GET(request: Request) { const status = await checkNpmUpdate(force); const support = getSelfUpdateSupport(); const selfUpdateStatus = status.updatesDisabled ? null : getSelfUpdateStatus(); - return NextResponse.json({ + return Response.json({ ...status, selfUpdateSupported: support.supported, ...(selfUpdateStatus ? { selfUpdateStatus } : {}), @@ -60,10 +59,10 @@ export async function GET(request: Request) { export async function POST(request: Request) { if (shouldCheckApiRequestOrigin(request) && !isApiRequestOriginAllowed(request)) { - return NextResponse.json({ error: "Cross-origin API requests are not allowed", code: "cross_origin_forbidden" }, { status: 403 }); + return Response.json({ error: "Cross-origin API requests are not allowed", code: "cross_origin_forbidden" }, { status: 403 }); } if (request.headers.get("content-type")?.split(";", 1)[0].trim().toLowerCase() !== "application/json") { - return NextResponse.json({ error: "Content-Type must be application/json", code: "unsupported_media_type" }, { status: 415 }); + return Response.json({ error: "Content-Type must be application/json", code: "unsupported_media_type" }, { status: 415 }); } try { const body = await parseJsonWithinLimit | null>(request, 4_096); @@ -71,22 +70,22 @@ export async function POST(request: Request) { const keys = Object.keys(body); if (body.action === "prepare" && keys.length === 1) { const result = await prepareSelfUpdate(); - return NextResponse.json(result, { status: 202 }); + return Response.json(result, { status: 202 }); } if (body.action === "acknowledge" && keys.length === 2 && typeof body.attemptId === "string") { - return NextResponse.json(acknowledgeSelfUpdate(body.attemptId)); + return Response.json(acknowledgeSelfUpdate(body.attemptId)); } if (body.action === "commit" && keys.length === 2 && typeof body.attemptId === "string") { const result = await commitAppUpdate(body.attemptId); - return NextResponse.json(result, { status: 202 }); + return Response.json(result, { status: 202 }); } if (body.action === "status" && keys.length === 1) { const selfUpdateStatus = getSelfUpdateStatus(); - return NextResponse.json(selfUpdateStatus ?? null, { headers: { "Cache-Control": "no-store" } }); + return Response.json(selfUpdateStatus ?? null, { headers: { "Cache-Control": "no-store" } }); } throw new SelfUpdateError("invalid_action", "action must be prepare, commit, status, or acknowledge"); } catch (error) { - if (error instanceof RequestBodyTooLargeError) return NextResponse.json({ error: error.message, code: "body_too_large" }, { status: 413 }); + if (error instanceof RequestBodyTooLargeError) return Response.json({ error: error.message, code: "body_too_large" }, { status: 413 }); if (error instanceof SyntaxError) return errorResponse(new SelfUpdateError("invalid_json", "Request body must be valid JSON")); return errorResponse(error); } diff --git a/app/api/auth/accounts/[provider]/route.ts b/app/api/auth/accounts/[provider]/route.ts index c297aa8a0..f51203bcf 100644 --- a/app/api/auth/accounts/[provider]/route.ts +++ b/app/api/auth/accounts/[provider]/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { invalidateModelsCache } from "@/lib/models-cache"; import { runUtilityCommand } from "@/lib/omp/rpc-utility"; @@ -33,14 +32,14 @@ export async function GET(_req: Request, { params }: { params: Promise<{ provide 30_000, ); const list = Array.isArray(accounts) ? accounts.filter(isAccount) : []; - return NextResponse.json({ + return Response.json({ supported: true, accounts: list.map(({ credentialId, label, detail, type }) => ({ credentialId, label, detail, type })), }); } catch (error) { const message = error instanceof Error ? error.message : String(error); - if (message.includes(UNSUPPORTED)) return NextResponse.json({ supported: false, accounts: [] }); - return NextResponse.json({ error: message }, { status: 500 }); + if (message.includes(UNSUPPORTED)) return Response.json({ supported: false, accounts: [] }); + return Response.json({ error: message }, { status: 500 }); } } @@ -49,17 +48,17 @@ export async function DELETE(req: Request, { params }: { params: Promise<{ provi const raw = new URL(req.url).searchParams.get("credentialId") ?? ""; const credentialId = Number(raw); if (!/^\d+$/.test(raw) || !Number.isSafeInteger(credentialId)) { - return NextResponse.json({ error: "credentialId must be an integer" }, { status: 400 }); + return Response.json({ error: "credentialId must be an integer" }, { status: 400 }); } const { provider } = await params; try { await runUtilityCommand({ type: "logout", providerId: provider, credentialId }, 60_000); invalidateModelsCache(); - return NextResponse.json({ ok: true }); + return Response.json({ ok: true }); } catch (error) { const message = error instanceof Error ? error.message : String(error); if (message.includes(UNSUPPORTED)) { - return NextResponse.json( + return Response.json( { error: "omp-web cannot disconnect accounts with this omp version. Update omp, or run `omp` in a terminal and use /logout.", code: "logout_unsupported", @@ -67,6 +66,6 @@ export async function DELETE(req: Request, { params }: { params: Promise<{ provi { status: 501 }, ); } - return NextResponse.json({ error: message }, { status: 500 }); + return Response.json({ error: message }, { status: 500 }); } } diff --git a/app/api/auth/api-key/[provider]/route.ts b/app/api/auth/api-key/[provider]/route.ts index 3a4bea2bb..2afedb7c6 100644 --- a/app/api/auth/api-key/[provider]/route.ts +++ b/app/api/auth/api-key/[provider]/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse } from "@/lib/api-utils"; import { type OmpLoginProvider, type OmpModel, runUtilityCommand } from "@/lib/omp/rpc-utility"; @@ -30,7 +29,7 @@ export async function GET(_req: Request, { params }: Params) { ); const loginProvider = loginProviders.find((p) => p.id === provider); const modelCount = models.filter((m) => m.provider === provider).length; - return NextResponse.json({ + return Response.json({ provider, displayName: loginProvider?.name ?? provider, configured: modelCount > 0 || loginProvider?.authenticated === true, @@ -44,7 +43,7 @@ export async function GET(_req: Request, { params }: Params) { // POST /api/auth/api-key/[provider] — not supported against omp's credential store export async function POST(_req: Request, { params }: Params) { const { provider } = await params; - return NextResponse.json( + return Response.json( { error: `Cannot store an API key for "${provider}" from omp-web. ${API_KEY_WRITE_GUIDANCE}`, code: "api_key_store_unsupported" }, { status: 501 }, ); @@ -53,7 +52,7 @@ export async function POST(_req: Request, { params }: Params) { // DELETE /api/auth/api-key/[provider] — not supported against omp's credential store export async function DELETE(_req: Request, { params }: Params) { const { provider } = await params; - return NextResponse.json( + return Response.json( { error: `Cannot remove the API key for "${provider}" from omp-web. ${API_KEY_WRITE_GUIDANCE}`, code: "api_key_remove_unsupported" }, { status: 501 }, ); diff --git a/app/api/cwd/browse/route.ts b/app/api/cwd/browse/route.ts index 5c9ecb62c..9fd8343f6 100644 --- a/app/api/cwd/browse/route.ts +++ b/app/api/cwd/browse/route.ts @@ -1,4 +1,3 @@ -import { NextRequest, NextResponse } from "next/server"; import { apiErrorResponse } from "@/lib/api-utils"; import { stat } from "fs/promises"; import { @@ -11,11 +10,11 @@ import { } from "@/lib/directory-browser"; // GET /api/cwd/browse?path=... — lists readable subdirectories in the filesystem. -export async function GET(request: NextRequest) { +export async function GET(request: Request) { try { - const requested = request.nextUrl.searchParams.get("path")?.trim(); + const requested = new URL(request.url).searchParams.get("path")?.trim(); if (shouldShowWindowsDrivePicker(requested)) { - return NextResponse.json({ path: "", parentPath: null, drives: await listWindowsDrives(), directories: [] }); + return Response.json({ path: "", parentPath: null, drives: await listWindowsDrives(), directories: [] }); } const candidate = getBrowseStartDirectory(requested); @@ -23,18 +22,18 @@ export async function GET(request: NextRequest) { try { resolved = await resolveDirectory(candidate); } catch { - return NextResponse.json({ error: "Directory does not exist", code: "directory_not_found" }, { status: 404 }); + return Response.json({ error: "Directory does not exist", code: "directory_not_found" }, { status: 404 }); } const directoryStat = await stat(resolved); if (!directoryStat.isDirectory()) { - return NextResponse.json({ error: "Path is not a directory", code: "not_a_directory" }, { status: 400 }); + return Response.json({ error: "Path is not a directory", code: "not_a_directory" }, { status: 400 }); } const directories = await listDirectories(resolved); - return NextResponse.json({ + return Response.json({ path: resolved, parentPath: getParentDirectory(resolved), directories, diff --git a/app/api/cwd/validate/route.ts b/app/api/cwd/validate/route.ts index e4c3a3dde..1f8cb6a24 100644 --- a/app/api/cwd/validate/route.ts +++ b/app/api/cwd/validate/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse, opErrorResponse, resolveHostOrError } from "@/lib/api-utils"; import { allowFileRoot } from "@/lib/file-access"; import { LOCAL_HOST_ID } from "@/lib/hosts/registry"; @@ -12,7 +11,7 @@ export async function POST(req: Request) { const cwd = typeof body.cwd === "string" ? body.cwd.trim() : ""; if (!cwd) { - return NextResponse.json({ error: "Path is required", code: "path_required" }, { status: 400 }); + return Response.json({ error: "Path is required", code: "path_required" }, { status: 400 }); } const target = resolveHostOrError(body.hostId); @@ -21,7 +20,7 @@ export async function POST(req: Request) { if (!result.ok) return opErrorResponse(result); // Browsable only on this machine: another host's paths do not exist here. if (target.host.id === LOCAL_HOST_ID) allowFileRoot(result.value.cwd); - return NextResponse.json({ + return Response.json({ success: true, cwd: result.value.cwd, projectRoot: result.value.projectRoot, diff --git a/app/api/default-cwd/route.ts b/app/api/default-cwd/route.ts index 49a7a902e..d30e04dab 100644 --- a/app/api/default-cwd/route.ts +++ b/app/api/default-cwd/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse } from "@/lib/api-utils"; import { mkdirSync } from "fs"; import { homedir } from "os"; @@ -13,7 +12,7 @@ export async function POST() { const dir = join(homedir(), `omp-cwd-${date}`); mkdirSync(dir, { recursive: true }); allowFileRoot(dir); - return NextResponse.json({ cwd: dir }); + return Response.json({ cwd: dir }); } catch (error) { return apiErrorResponse(error); } diff --git a/app/api/events/route.ts b/app/api/events/route.ts index c36a33a7d..2597384c6 100644 --- a/app/api/events/route.ts +++ b/app/api/events/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { parseJsonWithinLimit, RequestBodyTooLargeError } from "@/lib/bounded-form-data"; import { EventStreamConnection, getEventStreamConnection } from "@/lib/event-stream-hub"; import { parseEventStreamRequest, UNKNOWN_CONNECTION_CODE } from "@/lib/event-stream-protocol"; @@ -28,22 +27,22 @@ export async function POST(req: Request) { body = await parseJsonWithinLimit(req, MAX_REQUEST_BYTES); } catch (error) { const status = error instanceof RequestBodyTooLargeError ? 413 : 400; - return NextResponse.json({ error: "Invalid event stream request", code: "invalid_event_stream_request" }, { status }); + return Response.json({ error: "Invalid event stream request", code: "invalid_event_stream_request" }, { status }); } const request = parseEventStreamRequest(body); if (!request) { - return NextResponse.json({ error: "Invalid event stream request", code: "invalid_event_stream_request" }, { status: 400 }); + return Response.json({ error: "Invalid event stream request", code: "invalid_event_stream_request" }, { status: 400 }); } const connection = getEventStreamConnection(request.connectionId); if (!connection) { - return NextResponse.json({ error: "Unknown event stream connection", code: UNKNOWN_CONNECTION_CODE }, { status: 404 }); + return Response.json({ error: "Unknown event stream connection", code: UNKNOWN_CONNECTION_CODE }, { status: 404 }); } if ("unsubscribe" in request) { connection.unsubscribe(request.unsubscribe); - return NextResponse.json({ ok: true }); + return Response.json({ ok: true }); } const result = await connection.subscribe(request.subscribe.id, request.subscribe.channel); return result.ok - ? NextResponse.json({ ok: true }) - : NextResponse.json({ error: result.error, code: result.code }, { status: result.status }); + ? Response.json({ ok: true }) + : Response.json({ error: result.error, code: result.code }, { status: result.status }); } diff --git a/app/api/file-index/route.ts b/app/api/file-index/route.ts index 8731050e1..db433caa3 100644 --- a/app/api/file-index/route.ts +++ b/app/api/file-index/route.ts @@ -1,4 +1,3 @@ -import { NextRequest, NextResponse } from "next/server"; import { apiErrorResponse } from "@/lib/api-utils"; import { execFile } from "child_process"; import { promisify } from "util"; @@ -150,30 +149,31 @@ function listWithWalk(cwd: string): FileListing { // before ranking and reports a `truncated` flag; refresh=1 rebuilds the listing // instead of using the TTL cache, for the explorer's refresh button. // Guarded by the same allow-list as /api/files. -export async function GET(req: NextRequest) { +export async function GET(req: Request) { try { - const cwd = req.nextUrl.searchParams.get("cwd")?.trim() ?? ""; + const { searchParams } = new URL(req.url); + const cwd = searchParams.get("cwd")?.trim() ?? ""; if (!cwd || (!cwd.startsWith("/") && !isWindowsAbsolutePath(cwd))) { - return NextResponse.json({ error: "cwd must be an absolute path", code: "cwd_must_be_absolute" }, { status: 400 }); + return Response.json({ error: "cwd must be an absolute path", code: "cwd_must_be_absolute" }, { status: 400 }); } - const query = req.nextUrl.searchParams.get("q")?.slice(0, MAX_QUERY_LENGTH) ?? ""; + const query = searchParams.get("q")?.slice(0, MAX_QUERY_LENGTH) ?? ""; const allowedRoots = await getAllowedFileRoots(); if (!isFilePathAllowed(cwd, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } let stat: fs.Stats; try { stat = fs.statSync(cwd); } catch { - return NextResponse.json({ error: "Directory not found", code: "directory_not_found" }, { status: 404 }); + return Response.json({ error: "Directory not found", code: "directory_not_found" }, { status: 404 }); } if (!stat.isDirectory()) { - return NextResponse.json({ error: "Not a directory", code: "not_a_directory" }, { status: 400 }); + return Response.json({ error: "Not a directory", code: "not_a_directory" }, { status: 400 }); } if (!isExistingFilePathAllowed(cwd, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } const cache = getIndexCache(); @@ -182,7 +182,7 @@ export async function GET(req: NextRequest) { // or a file the agent just wrote stays invisible. loadListing collapses // concurrent rebuilds onto one scan, which is the whole bound: an age gate // on top of it can only suppress the refresh the user actually asked for. - const forceRefresh = req.nextUrl.searchParams.get("refresh") === "1"; + const forceRefresh = searchParams.get("refresh") === "1"; let cached = cache.get(cwd); if (!cached || cached.expiresAt <= now || forceRefresh) { const listing = await loadListing(cwd); @@ -199,13 +199,13 @@ export async function GET(req: NextRequest) { } if (query) { - const limit = parseResultLimit(req.nextUrl.searchParams.get("limit")); + const limit = parseResultLimit(searchParams.get("limit")); cached.entries ??= buildEntriesFromFiles(cached.listing.files); // Directories score a ranking bonus, so a caller that only renders files // must drop them before the limit is applied: "api" in this repo matches // 67 directories, which would otherwise consume half the budget and // silently push matching files out of the response. - if (req.nextUrl.searchParams.get("kind") === "file") { + if (searchParams.get("kind") === "file") { cached.fileEntries ??= cached.entries.filter((entry) => !entry.isDir); // Ask for one past the limit: the extra row never ships, it only tells // the panel that the list it shows is incomplete. A listing that hit the @@ -213,16 +213,16 @@ export async function GET(req: NextRequest) { // though fewer than `limit` rows matched what survived. const ranked = filterFileEntries(cached.fileEntries, query, limit + 1); const truncated = ranked.length > limit || cached.listing.hardTruncated; - return NextResponse.json({ + return Response.json({ matches: truncated ? ranked.slice(0, limit) : ranked, truncated, }); } - return NextResponse.json({ matches: filterFileEntries(cached.entries, query, limit) }); + return Response.json({ matches: filterFileEntries(cached.entries, query, limit) }); } const { files, hardTruncated } = cached.listing; - return NextResponse.json({ + return Response.json({ files: files.slice(0, MAX_FILES), truncated: hardTruncated || files.length > MAX_FILES, }); diff --git a/app/api/files/[...path]/route.ts b/app/api/files/[...path]/route.ts index 4f59f883e..157dec68f 100644 --- a/app/api/files/[...path]/route.ts +++ b/app/api/files/[...path]/route.ts @@ -1,4 +1,3 @@ -import { NextRequest, NextResponse } from "next/server"; import { apiErrorResponse } from "@/lib/api-utils"; import { getContentDisposition } from "@/lib/content-disposition"; import fs from "fs"; @@ -71,7 +70,7 @@ function parseFileRequestType(value: string): FileRequestType | null { } async function getUploadDirectory(segments: string[]): Promise< - { directory: string } | { response: NextResponse } + { directory: string } | { response: Response } > { // Strictly absolute: unlike the read path this never fans a relative request // out over the allowed roots, which would turn "pick me a directory" into @@ -79,17 +78,17 @@ async function getUploadDirectory(segments: string[]): Promise< const directory = filePathFromSegments(segments); const allowedRoots = await getAllowedFileRoots(); if (!isFilePathAllowed(directory, allowedRoots)) { - return { response: NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }) }; + return { response: Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }) }; } let stat: fs.Stats; try { stat = fs.statSync(directory); } catch { - return { response: NextResponse.json({ error: "Upload directory not found", code: "upload_directory_not_found" }, { status: 404 }) }; + return { response: Response.json({ error: "Upload directory not found", code: "upload_directory_not_found" }, { status: 404 }) }; } if (!stat.isDirectory()) { - return { response: NextResponse.json({ error: "Upload target is not a directory", code: "upload_target_not_directory" }, { status: 400 }) }; + return { response: Response.json({ error: "Upload target is not a directory", code: "upload_target_not_directory" }, { status: 400 }) }; } // A browsable directory can be a symlink. Resolve both sides before writes @@ -104,7 +103,7 @@ async function getUploadDirectory(segments: string[]): Promise< } } if (!isFilePathAllowed(realDirectory, realRoots)) { - return { response: NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }) }; + return { response: Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }) }; } return { directory: realDirectory }; @@ -116,7 +115,7 @@ function parseUploadFileNames(value: unknown): string[] | null { } export async function POST( - request: NextRequest, + request: Request, { params }: { params: Promise<{ path: string[] }> } ) { try { @@ -124,34 +123,35 @@ export async function POST( const uploadDirectory = await getUploadDirectory(segments); if ("response" in uploadDirectory) return uploadDirectory.response; const { directory } = uploadDirectory; - const type = request.nextUrl.searchParams.get("type") ?? "upload"; + const { searchParams } = new URL(request.url); + const type = searchParams.get("type") ?? "upload"; if (type === "upload-check") { let body: { fileNames?: unknown } | null; try { body = await parseJsonWithinLimit<{ fileNames?: unknown }>(request, MAX_UPLOAD_CHECK_REQUEST_BYTES); } catch (error) { - if (error instanceof RequestBodyTooLargeError) return NextResponse.json({ error: "Upload check request is too large", code: "upload_check_too_large" }, { status: 413 }); + if (error instanceof RequestBodyTooLargeError) return Response.json({ error: "Upload check request is too large", code: "upload_check_too_large" }, { status: 413 }); body = null; } const fileNames = parseUploadFileNames(body?.fileNames); if (!fileNames) { - return NextResponse.json({ error: "fileNames must be an array of strings", code: "invalid_file_names" }, { status: 400 }); + return Response.json({ error: "fileNames must be an array of strings", code: "invalid_file_names" }, { status: 400 }); } const validationError = validateUploadFileNames(fileNames); if (validationError) { - return NextResponse.json({ error: validationError }, { status: 400 }); + return Response.json({ error: validationError }, { status: 400 }); } - return NextResponse.json(inspectUploadTargets(directory, fileNames)); + return Response.json(inspectUploadTargets(directory, fileNames)); } if (type !== "upload") { - return NextResponse.json({ error: "Invalid upload request type", code: "invalid_upload_type" }, { status: 400 }); + return Response.json({ error: "Invalid upload request type", code: "invalid_upload_type" }, { status: 400 }); } - const strategy = parseUploadConflictStrategy(request.nextUrl.searchParams.get("conflict")); + const strategy = parseUploadConflictStrategy(searchParams.get("conflict")); if (!strategy) { - return NextResponse.json({ error: "Invalid conflict strategy", code: "invalid_conflict_strategy" }, { status: 400 }); + return Response.json({ error: "Invalid conflict strategy", code: "invalid_conflict_strategy" }, { status: 400 }); } let formData: FormData; @@ -159,26 +159,26 @@ export async function POST( formData = await parseFormDataWithinLimit(request, MAX_UPLOAD_REQUEST_BYTES); } catch (error) { if (error instanceof RequestBodyTooLargeError) { - return NextResponse.json({ error: "Uploads must total 100MB or less", code: "upload_total_too_large" }, { status: 413 }); + return Response.json({ error: "Uploads must total 100MB or less", code: "upload_total_too_large" }, { status: 413 }); } throw error; } const files = formData.getAll("files").filter((entry): entry is File => typeof entry !== "string"); if (files.some((file) => file.size > MAX_UPLOAD_FILE_BYTES)) { - return NextResponse.json({ error: "Each upload must be 25MB or smaller", code: "upload_file_too_large" }, { status: 413 }); + return Response.json({ error: "Each upload must be 25MB or smaller", code: "upload_file_too_large" }, { status: 413 }); } if (files.reduce((total, file) => total + file.size, 0) > MAX_UPLOAD_TOTAL_BYTES) { - return NextResponse.json({ error: "Uploads must total 100MB or less", code: "upload_total_too_large" }, { status: 413 }); + return Response.json({ error: "Uploads must total 100MB or less", code: "upload_total_too_large" }, { status: 413 }); } const fileNames = files.map((file) => file.name); const validationError = validateUploadFileNames(fileNames); if (validationError) { - return NextResponse.json({ error: validationError }, { status: 400 }); + return Response.json({ error: validationError }, { status: 400 }); } const inspection = inspectUploadTargets(directory, fileNames); if (strategy === "error" && inspection.conflicts.length > 0) { - return NextResponse.json({ + return Response.json({ error: "One or more files already exist", code: "upload_conflict", conflicts: inspection.conflicts, @@ -231,12 +231,12 @@ export async function POST( } } - return NextResponse.json( + return Response.json( { uploaded, skipped, errors }, { status: errors.length > 0 ? 207 : 200 }, ); } catch (error) { - return NextResponse.json({ error: error instanceof Error ? error.message : String(error) }, { status: 500 }); + return Response.json({ error: error instanceof Error ? error.message : String(error) }, { status: 500 }); } } @@ -400,32 +400,33 @@ ${bodyHtml} } export async function GET( - request: NextRequest, + request: Request, { params }: { params: Promise<{ path: string[] }> } ) { try { const { path: segments } = await params; - const rawType = request.nextUrl.searchParams.get("type") ?? "list"; + const { searchParams } = new URL(request.url); + const rawType = searchParams.get("type") ?? "list"; const type = parseFileRequestType(rawType); if (!type) { - return NextResponse.json({ error: "Invalid file request type", code: "invalid_request_type" }, { status: 400 }); + return Response.json({ error: "Invalid file request type", code: "invalid_request_type" }, { status: 400 }); } - const sessionId = request.nextUrl.searchParams.get("sessionId"); + const sessionId = searchParams.get("sessionId"); const access = await authorizeFileAccess(segments, sessionId, type !== "list"); if (!access.ok) { - return NextResponse.json({ error: access.error, code: access.code }, { status: access.status }); + return Response.json({ error: access.error, code: access.code }, { status: access.status }); } const { filePath, stat } = access; if (type === "read") { if (!stat.isFile()) { - return NextResponse.json({ error: "Not a file", code: "not_a_file" }, { status: 400 }); + return Response.json({ error: "Not a file", code: "not_a_file" }, { status: 400 }); } const imageMime = getImageMime(filePath); if (imageMime) { if (stat.size > IMAGE_PREVIEW_MAX_BYTES) { - return NextResponse.json({ error: "Image too large (>10MB)", code: "image_too_large" }, { status: 413 }); + return Response.json({ error: "Image too large (>10MB)", code: "image_too_large" }, { status: 413 }); } return streamFile(filePath, stat, imageMime, request.headers.get("range")); } @@ -438,16 +439,16 @@ export async function GET( return streamFile(filePath, stat, documentMime, request.headers.get("range")); } if (stat.size > TEXT_PREVIEW_MAX_BYTES) { - return NextResponse.json({ error: "File too large for preview (>256KB)", code: "file_too_large_preview" }, { status: 413 }); + return Response.json({ error: "File too large for preview (>256KB)", code: "file_too_large_preview" }, { status: 413 }); } const content = fs.readFileSync(filePath, "utf-8"); const language = getLanguage(filePath); - return NextResponse.json({ content, language, size: stat.size }); + return Response.json({ content, language, size: stat.size }); } if (type === "download") { if (!stat.isFile()) { - return NextResponse.json({ error: "Not a file", code: "not_a_file" }, { status: 400 }); + return Response.json({ error: "Not a file", code: "not_a_file" }, { status: 400 }); } const mime = getImageMime(filePath) || getAudioMime(filePath) || getDocumentMime(filePath) || "application/octet-stream"; return streamFile(filePath, stat, mime, request.headers.get("range"), true); @@ -455,12 +456,12 @@ export async function GET( if (type === "meta") { if (!stat.isFile()) { - return NextResponse.json({ error: "Not a file", code: "not_a_file" }, { status: 400 }); + return Response.json({ error: "Not a file", code: "not_a_file" }, { status: 400 }); } const imageMime = getImageMime(filePath); const audioMime = getAudioMime(filePath); const documentMime = getDocumentMime(filePath); - return NextResponse.json({ + return Response.json({ size: stat.size, language: getLanguage(filePath), mime: imageMime || audioMime || documentMime || "text/plain", @@ -470,13 +471,13 @@ export async function GET( if (type === "preview") { if (!stat.isFile()) { - return NextResponse.json({ error: "Not a file", code: "not_a_file" }, { status: 400 }); + return Response.json({ error: "Not a file", code: "not_a_file" }, { status: 400 }); } if (getFileExt(filePath) !== "docx") { - return NextResponse.json({ error: "Preview not available for this file type", code: "preview_unavailable" }, { status: 400 }); + return Response.json({ error: "Preview not available for this file type", code: "preview_unavailable" }, { status: 400 }); } if (stat.size > DOCX_PREVIEW_MAX_BYTES) { - return NextResponse.json({ error: "DOCX too large for preview (>10MB)", code: "docx_too_large" }, { status: 413 }); + return Response.json({ error: "DOCX too large for preview (>10MB)", code: "docx_too_large" }, { status: 413 }); } const mammoth = await import("mammoth"); @@ -501,7 +502,7 @@ export async function GET( // type === "list" if (!stat.isDirectory()) { - return NextResponse.json({ error: "Not a directory", code: "not_a_directory" }, { status: 400 }); + return Response.json({ error: "Not a directory", code: "not_a_directory" }, { status: 400 }); } // Avoid per-entry stat calls for normal files and directories. Symlinks and @@ -522,7 +523,7 @@ export async function GET( return a.name.localeCompare(b.name); }); - return NextResponse.json({ entries, path: filePath }); + return Response.json({ entries, path: filePath }); } catch (error) { return apiErrorResponse(error); } diff --git a/app/api/git/diff/route.ts b/app/api/git/diff/route.ts index 924c0993d..79f2d1076 100644 --- a/app/api/git/diff/route.ts +++ b/app/api/git/diff/route.ts @@ -1,28 +1,28 @@ -import { NextRequest, NextResponse } from "next/server"; import { getAllowedFileRoots, isExistingFilePathAllowed, isFilePathAllowed, isWindowsAbsolutePath } from "@/lib/file-access"; import { getGitFileDiff } from "@/lib/git-changes"; -export async function GET(request: NextRequest) { +export async function GET(request: Request) { try { - const cwd = request.nextUrl.searchParams.get("cwd")?.trim() ?? ""; - const filePath = request.nextUrl.searchParams.get("path")?.trim() ?? ""; + const { searchParams } = new URL(request.url); + const cwd = searchParams.get("cwd")?.trim() ?? ""; + const filePath = searchParams.get("path")?.trim() ?? ""; if (!cwd || (!cwd.startsWith("/") && !isWindowsAbsolutePath(cwd))) { - return NextResponse.json({ error: "cwd must be an absolute path", code: "cwd_must_be_absolute" }, { status: 400 }); + return Response.json({ error: "cwd must be an absolute path", code: "cwd_must_be_absolute" }, { status: 400 }); } if (!filePath || (!filePath.startsWith("/") && !isWindowsAbsolutePath(filePath))) { - return NextResponse.json({ error: "path must be an absolute path", code: "path_must_be_absolute" }, { status: 400 }); + return Response.json({ error: "path must be an absolute path", code: "path_must_be_absolute" }, { status: 400 }); } const allowedRoots = await getAllowedFileRoots(); if (!isFilePathAllowed(cwd, allowedRoots) || !isFilePathAllowed(filePath, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } if (!isExistingFilePathAllowed(cwd, allowedRoots) || !isExistingFilePathAllowed(filePath, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } - return NextResponse.json(await getGitFileDiff(cwd, filePath)); + return Response.json(await getGitFileDiff(cwd, filePath)); } catch (error) { - return NextResponse.json({ error: error instanceof Error ? error.message : String(error) }, { status: 500 }); + return Response.json({ error: error instanceof Error ? error.message : String(error) }, { status: 500 }); } } diff --git a/app/api/git/status/route.ts b/app/api/git/status/route.ts index 2e9488a3f..c446f5f99 100644 --- a/app/api/git/status/route.ts +++ b/app/api/git/status/route.ts @@ -1,35 +1,34 @@ import fs from "fs"; -import { NextRequest, NextResponse } from "next/server"; import { getAllowedFileRoots, isExistingFilePathAllowed, isFilePathAllowed, isWindowsAbsolutePath } from "@/lib/file-access"; import { getGitStatus } from "@/lib/git-changes"; -export async function GET(request: NextRequest) { +export async function GET(request: Request) { try { - const cwd = request.nextUrl.searchParams.get("cwd")?.trim() ?? ""; + const cwd = new URL(request.url).searchParams.get("cwd")?.trim() ?? ""; if (!cwd || (!cwd.startsWith("/") && !isWindowsAbsolutePath(cwd))) { - return NextResponse.json({ error: "cwd must be an absolute path", code: "cwd_must_be_absolute" }, { status: 400 }); + return Response.json({ error: "cwd must be an absolute path", code: "cwd_must_be_absolute" }, { status: 400 }); } const allowedRoots = await getAllowedFileRoots(); if (!isFilePathAllowed(cwd, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } let stat: fs.Stats; try { stat = fs.statSync(cwd); } catch { - return NextResponse.json({ error: "Directory not found", code: "directory_not_found" }, { status: 404 }); + return Response.json({ error: "Directory not found", code: "directory_not_found" }, { status: 404 }); } if (!stat.isDirectory()) { - return NextResponse.json({ error: "Not a directory", code: "not_a_directory" }, { status: 400 }); + return Response.json({ error: "Not a directory", code: "not_a_directory" }, { status: 400 }); } if (!isExistingFilePathAllowed(cwd, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } - return NextResponse.json(await getGitStatus(cwd)); + return Response.json(await getGitStatus(cwd)); } catch (error) { - return NextResponse.json({ error: error instanceof Error ? error.message : String(error) }, { status: 500 }); + return Response.json({ error: error instanceof Error ? error.message : String(error) }, { status: 500 }); } } diff --git a/app/api/github-repo/route.ts b/app/api/github-repo/route.ts index 11523d20b..a90b4a242 100644 --- a/app/api/github-repo/route.ts +++ b/app/api/github-repo/route.ts @@ -1,28 +1,27 @@ import fs from "fs"; -import { NextRequest, NextResponse } from "next/server"; import { getAllowedFileRoots, isExistingFilePathAllowed, isFilePathAllowed, isWindowsAbsolutePath } from "@/lib/file-access"; import { resolveGithubRepo } from "@/lib/github-repo"; -export async function GET(request: NextRequest) { - const cwd = request.nextUrl.searchParams.get("cwd")?.trim() ?? ""; +export async function GET(request: Request) { + const cwd = new URL(request.url).searchParams.get("cwd")?.trim() ?? ""; if (!cwd || (!cwd.startsWith("/") && !isWindowsAbsolutePath(cwd))) { - return NextResponse.json({ error: "cwd must be an absolute path", code: "cwd_must_be_absolute" }, { status: 400 }); + return Response.json({ error: "cwd must be an absolute path", code: "cwd_must_be_absolute" }, { status: 400 }); } const allowedRoots = await getAllowedFileRoots(); if (!isFilePathAllowed(cwd, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } let stat: fs.Stats; try { stat = fs.statSync(cwd); } catch { - return NextResponse.json({ error: "Directory not found", code: "directory_not_found" }, { status: 404 }); + return Response.json({ error: "Directory not found", code: "directory_not_found" }, { status: 404 }); } if (!stat.isDirectory()) { - return NextResponse.json({ error: "Not a directory", code: "not_a_directory" }, { status: 400 }); + return Response.json({ error: "Not a directory", code: "not_a_directory" }, { status: 400 }); } if (!isExistingFilePathAllowed(cwd, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } - return NextResponse.json({ repo: await resolveGithubRepo(cwd) }); + return Response.json({ repo: await resolveGithubRepo(cwd) }); } diff --git a/app/api/home/route.ts b/app/api/home/route.ts index a21f3d662..bea1117d3 100644 --- a/app/api/home/route.ts +++ b/app/api/home/route.ts @@ -1,6 +1,5 @@ -import { NextResponse } from "next/server"; import { homedir } from "os"; export async function GET() { - return NextResponse.json({ home: homedir() }); + return Response.json({ home: homedir() }); } diff --git a/app/api/hosts/route.ts b/app/api/hosts/route.ts index 583093187..fb5cbba1c 100644 --- a/app/api/hosts/route.ts +++ b/app/api/hosts/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { closeHostLink, hostsSnapshot, listHosts, notifyHostsChange } from "@/lib/hosts/hub"; import { createHost, HostRegistryUnreadableError, revokeHost, UnknownHostError, updateHost } from "@/lib/hosts/registry"; import { isRecord } from "@/lib/type-guards"; @@ -8,7 +7,7 @@ export const dynamic = "force-dynamic"; const MAX_LABEL_LENGTH = 100; const noStore = { "cache-control": "no-store" }; -const fail = (error: string, status: number) => NextResponse.json({ error }, { status, headers: noStore }); +const fail = (error: string, status: number) => Response.json({ error }, { status, headers: noStore }); function failFor(error: unknown) { if (error instanceof HostRegistryUnreadableError) { @@ -50,7 +49,7 @@ function requestOrigin(req: Request): string { } export function GET() { - return NextResponse.json(hostsSnapshot(), { headers: noStore }); + return Response.json(hostsSnapshot(), { headers: noStore }); } export async function POST(req: Request) { @@ -60,7 +59,7 @@ export async function POST(req: Request) { try { const { host, token } = createHost(label); notifyHostsChange(); - return NextResponse.json( + return Response.json( { host: listHosts().find((h) => h.id === host.id), token, @@ -87,7 +86,7 @@ export async function PATCH(req: Request) { try { updateHost(body.id, { label, allowAgentStart }); notifyHostsChange(); - return NextResponse.json({ host: hostsSnapshot().hosts.find((h) => h.id === body.id) }, { headers: noStore }); + return Response.json({ host: hostsSnapshot().hosts.find((h) => h.id === body.id) }, { headers: noStore }); } catch (error) { return failFor(error); } @@ -102,7 +101,7 @@ export async function DELETE(req: Request) { if (!revokeHost(id)) return fail("Unknown host", 404); closeHostLink(id); notifyHostsChange(); - return NextResponse.json({ ok: true }, { headers: noStore }); + return Response.json({ ok: true }, { headers: noStore }); } catch (error) { return failFor(error); } diff --git a/app/api/manifest/route.ts b/app/api/manifest/route.ts index c31282b98..3ee833074 100644 --- a/app/api/manifest/route.ts +++ b/app/api/manifest/route.ts @@ -1,6 +1,5 @@ import { readFileSync } from "node:fs"; import { join } from "node:path"; -import type { MetadataRoute } from "next"; import { getInstallName } from "@/lib/install-name"; // Packaged public assets are read/encoded once per server module. Native @@ -8,7 +7,7 @@ import { getInstallName } from "@/lib/install-name"; const pngDataUrl = (filename: string) => `data:image/png;base64,${readFileSync(join(process.cwd(), "public", filename)).toString("base64")}`; -const manifest: MetadataRoute.Manifest = { +const manifest = { description: "Web UI for the oh-my-pi (omp) coding agent", start_url: "/", scope: "/", diff --git a/app/api/mcp/route.ts b/app/api/mcp/route.ts index 279d88394..6431c57a7 100644 --- a/app/api/mcp/route.ts +++ b/app/api/mcp/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { getAllowedFileRoots, isExistingFilePathAllowed } from "@/lib/file-access"; import { deleteMcpServer, parseMcpListOutput, readDiscoveredMcpServers, readMcpConfig, readUserMcpConfig, type McpLiveServer, validateMcpServer, writeMcpServer } from "@/lib/omp/mcp-config"; import { WebRpcError, getRpcSession, startRpcSession } from "@/lib/rpc-manager"; @@ -14,7 +13,7 @@ const MAX_MCP_REQUEST_BYTES = 1024 * 1024; function mcpErrorResponse(error: unknown) { const status = error instanceof RequestBodyTooLargeError ? 413 : 400; - return NextResponse.json({ error: error instanceof RequestBodyTooLargeError ? "MCP request is too large" : error instanceof Error ? error.message : String(error) }, { status }); + return Response.json({ error: error instanceof RequestBodyTooLargeError ? "MCP request is too large" : error instanceof Error ? error.message : String(error) }, { status }); } /** Stable client-safe message for the GET liveError field: raw child-process @@ -107,7 +106,7 @@ export async function GET(request: Request) { liveError = sanitizeMcpLiveError(error); } } - return NextResponse.json({ root: file?.root ?? null, path: file?.path ?? null, exists: file?.exists ?? false, servers: Object.entries(file?.config.mcpServers ?? {}).sort(([a], [b]) => a.localeCompare(b)).map(([name, config]) => ({ name, config: redactMcpServer(config) })), user: safeUser, inventory, liveServers, liveError }); + return Response.json({ root: file?.root ?? null, path: file?.path ?? null, exists: file?.exists ?? false, servers: Object.entries(file?.config.mcpServers ?? {}).sort(([a], [b]) => a.localeCompare(b)).map(([name, config]) => ({ name, config: redactMcpServer(config) })), user: safeUser, inventory, liveServers, liveError }); } catch (error) { return mcpErrorResponse(error); } @@ -119,7 +118,7 @@ export async function POST(request: Request) { const cwd = await allowedCwd(body.cwd); validateMcpServer(body.name, body.server); if (body.previousName !== undefined && typeof body.previousName !== "string") throw new Error("previousName must be a string"); - return NextResponse.json({ success: true, ...writeMcpServer(cwd, body.name as string, body.server, body.previousName) }); + return Response.json({ success: true, ...writeMcpServer(cwd, body.name as string, body.server, body.previousName) }); } catch (error) { return mcpErrorResponse(error); } @@ -129,7 +128,7 @@ export async function PUT(request: Request) { try { const body = await parseJsonWithinLimit<{ name?: unknown; server?: unknown }>(request, MAX_MCP_REQUEST_BYTES); validateMcpServer(body.name, body.server); - return NextResponse.json({ success: true, message: "MCP server configuration is valid" }); + return Response.json({ success: true, message: "MCP server configuration is valid" }); } catch (error) { return mcpErrorResponse(error); } @@ -140,7 +139,7 @@ export async function DELETE(request: Request) { const body = await parseJsonWithinLimit<{ cwd?: unknown; name?: unknown }>(request, MAX_MCP_REQUEST_BYTES); const cwd = await allowedCwd(body.cwd); if (typeof body.name !== "string") throw new Error("name is required"); - return NextResponse.json({ success: true, ...deleteMcpServer(cwd, body.name) }); + return Response.json({ success: true, ...deleteMcpServer(cwd, body.name) }); } catch (error) { return mcpErrorResponse(error); } @@ -162,10 +161,10 @@ export async function PATCH(request: Request) { if (!target) throw new Error("Session not found"); ({ session } = await startRpcSession(body.sessionId, target.sessionFile, target.cwd, undefined, undefined, target.recordedCwd, undefined, host)); } - if (session.isRunning()) return NextResponse.json({ error: "Wait for the current run to finish before changing MCP servers." }, { status: 409 }); + if (session.isRunning()) return Response.json({ error: "Wait for the current run to finish before changing MCP servers." }, { status: 409 }); await session.changeMcp(body.action, typeof body.name === "string" ? body.name : undefined); - return NextResponse.json({ success: true }); + return Response.json({ success: true }); } catch (error) { - return NextResponse.json({ error: sanitizeMcpLiveError(error) }, { status: error instanceof WebRpcError && error.code === "session_busy" ? 409 : 400 }); + return Response.json({ error: sanitizeMcpLiveError(error) }, { status: error instanceof WebRpcError && error.code === "session_busy" ? 409 : 400 }); } } diff --git a/app/api/model-roles/route.ts b/app/api/model-roles/route.ts index aca4af4ad..cafccf1e6 100644 --- a/app/api/model-roles/route.ts +++ b/app/api/model-roles/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { invalidateModelsCache } from "@/lib/models-cache"; import { readModelRoles, writeModelRoles } from "@/lib/omp/model-roles"; @@ -6,9 +5,9 @@ export const dynamic = "force-dynamic"; export function GET() { try { - return NextResponse.json(readModelRoles()); + return Response.json(readModelRoles()); } catch (error) { - return NextResponse.json({ error: String(error) }, { status: 400 }); + return Response.json({ error: String(error) }, { status: 400 }); } } @@ -16,15 +15,15 @@ export async function PUT(request: Request) { try { const body = await request.json() as { roles?: unknown }; if (!body.roles || typeof body.roles !== "object" || Array.isArray(body.roles)) { - return NextResponse.json({ error: "roles must be an object" }, { status: 400 }); + return Response.json({ error: "roles must be an object" }, { status: 400 }); } const roles = Object.fromEntries(Object.entries(body.roles).filter((entry): entry is [string, string] => typeof entry[1] === "string" && entry[0].trim().length > 0 && entry[1].trim().length > 0, )); writeModelRoles(roles); invalidateModelsCache(); - return NextResponse.json({ success: true, roles }); + return Response.json({ success: true, roles }); } catch (error) { - return NextResponse.json({ error: String(error) }, { status: 400 }); + return Response.json({ error: String(error) }, { status: 400 }); } } diff --git a/app/api/models-config/catalog/route.ts b/app/api/models-config/catalog/route.ts index 4dcf7f513..c38ccf281 100644 --- a/app/api/models-config/catalog/route.ts +++ b/app/api/models-config/catalog/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { flattenModelsDevCatalog, recommendModelCatalogPreset, @@ -74,8 +73,8 @@ export async function GET(req: Request) { const entries = await loadCatalog(); const models = searchModelCatalog(entries, query, provider, limit); const recommendation = recommendModelCatalogPreset(entries, query, provider, baseUrl); - return NextResponse.json({ models, recommendation, source: MODELS_DEV_URL }); + return Response.json({ models, recommendation, source: MODELS_DEV_URL }); } catch (error) { - return NextResponse.json({ error: error instanceof Error ? error.message : String(error) }, { status: 502 }); + return Response.json({ error: error instanceof Error ? error.message : String(error) }, { status: 502 }); } } diff --git a/app/api/models-config/route.ts b/app/api/models-config/route.ts index 7249e7b0b..cbf0aae36 100644 --- a/app/api/models-config/route.ts +++ b/app/api/models-config/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse } from "@/lib/api-utils"; import { invalidateModelsCache } from "@/lib/models-cache"; import { disposeUtilityRpc } from "@/lib/omp/rpc-utility"; @@ -17,14 +16,14 @@ export async function GET() { if (file.parseError) { // The editor must show the failure instead of an empty form — an empty // form invites a Save that would wipe the user's real providers. - return NextResponse.json({ + return Response.json({ providers: {}, parseError: file.parseError, path: file.path, code: "models_config_unparseable", }); } - return NextResponse.json(file.config); + return Response.json(file.config); } // PUT /api/models-config[?overwrite=true] @@ -36,13 +35,13 @@ export async function PUT(req: Request) { try { validateModelsConfig(body); } catch (error) { - return NextResponse.json({ error: error instanceof Error ? error.message : String(error) }, { status: 400 }); + return Response.json({ error: error instanceof Error ? error.message : String(error) }, { status: 400 }); } try { writeModelsConfig(body, { overwriteUnparseable }); } catch (error) { if (error instanceof ModelsConfigParseError) { - return NextResponse.json( + return Response.json( { error: `${error.message} — fix it by hand; omp-web will not overwrite it`, code: "models_config_unparseable" }, { status: 409 }, ); @@ -53,7 +52,7 @@ export async function PUT(req: Request) { // The utility process loads models.yml once at startup. A cache flush alone // would still query that stale registry after a provider was added. disposeUtilityRpc(); - return NextResponse.json({ success: true }); + return Response.json({ success: true }); } catch (error) { return apiErrorResponse(error); } diff --git a/app/api/models-config/test/route.ts b/app/api/models-config/test/route.ts index 576572b1d..d7d582ea2 100644 --- a/app/api/models-config/test/route.ts +++ b/app/api/models-config/test/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { mkdtempSync, rmSync, writeFileSync } from "fs"; import { tmpdir } from "os"; import { join } from "path"; @@ -27,12 +26,12 @@ export async function POST(req: Request) { try { const body = await req.json() as { providerName?: unknown; provider?: unknown; model?: unknown }; const providerName = typeof body.providerName === "string" ? body.providerName.trim() : ""; - if (!providerName) return NextResponse.json({ ok: false, error: "providerName is required", code: "provider_name_required" }, { status: 400 }); - if (!isRecord(body.provider)) return NextResponse.json({ ok: false, error: "provider is required", code: "provider_required" }, { status: 400 }); - if (!isRecord(body.model)) return NextResponse.json({ ok: false, error: "model is required", code: "model_required" }, { status: 400 }); + if (!providerName) return Response.json({ ok: false, error: "providerName is required", code: "provider_name_required" }, { status: 400 }); + if (!isRecord(body.provider)) return Response.json({ ok: false, error: "provider is required", code: "provider_required" }, { status: 400 }); + if (!isRecord(body.model)) return Response.json({ ok: false, error: "model is required", code: "model_required" }, { status: 400 }); const modelId = typeof body.model.id === "string" ? body.model.id.trim() : ""; - if (!modelId) return NextResponse.json({ ok: false, error: "Model ID is required", code: "model_id_required" }, { status: 400 }); + if (!modelId) return Response.json({ ok: false, error: "Model ID is required", code: "model_id_required" }, { status: 400 }); const config = { providers: { @@ -45,7 +44,7 @@ export async function POST(req: Request) { try { validateModelsConfig(config); } catch (error) { - return NextResponse.json({ ok: false, error: errorMessage(error) }); + return Response.json({ ok: false, error: errorMessage(error) }); } // Isolated throwaway agent dir: the spawned omp sees only this candidate @@ -68,7 +67,7 @@ export async function POST(req: Request) { const found = models.find((m) => m.provider === providerName && m.id === modelId); if (!found) { - return NextResponse.json({ + return Response.json({ ok: false, error: `Model ${providerName}/${modelId} did not resolve — check the API key and provider config`, code: "model_test_unresolved", @@ -76,13 +75,13 @@ export async function POST(req: Request) { }); } - return NextResponse.json({ + return Response.json({ ok: true, latencyMs, responseText: `${found.provider}/${found.id} resolved (configuration only; credentials were not contacted)`, }); } catch (error) { - return NextResponse.json({ ok: false, error: errorMessage(error) }, { status: 500 }); + return Response.json({ ok: false, error: errorMessage(error) }, { status: 500 }); } finally { if (tempDir) rmSync(tempDir, { recursive: true, force: true }); } diff --git a/app/api/notifications/devices/route.ts b/app/api/notifications/devices/route.ts index 53e91a41b..fe2c91398 100644 --- a/app/api/notifications/devices/route.ts +++ b/app/api/notifications/devices/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { isValidNotificationId, parseNotificationPrefs } from "@/lib/notification-events"; import { getVapidPublicKey } from "@/lib/notification-hub"; import { getDevice, parsePushSubscription, saveDevice } from "@/lib/notification-store"; @@ -10,17 +9,17 @@ export const dynamic = "force-dynamic"; export async function GET(req: Request) { const deviceId = new URL(req.url).searchParams.get("deviceId"); const device = isValidNotificationId(deviceId) ? getDevice(deviceId) : undefined; - return NextResponse.json({ publicKey: getVapidPublicKey(), subscribed: Boolean(device?.subscription) }); + return Response.json({ publicKey: getVapidPublicKey(), subscribed: Boolean(device?.subscription) }); } /** PUT /api/notifications/devices { deviceId, prefs, subscription? } — an omitted subscription keeps the stored one. */ export async function PUT(req: Request) { const body: unknown = await req.json().catch(() => null); if (!isRecord(body) || !isValidNotificationId(body.deviceId)) { - return NextResponse.json({ error: "deviceId is required", code: "invalid_device" }, { status: 400 }); + return Response.json({ error: "deviceId is required", code: "invalid_device" }, { status: 400 }); } const subscription = body.subscription === undefined ? undefined : parsePushSubscription(body.subscription); - if (subscription === null) return NextResponse.json({ error: "Invalid push subscription", code: "invalid_subscription" }, { status: 400 }); + if (subscription === null) return Response.json({ error: "Invalid push subscription", code: "invalid_subscription" }, { status: 400 }); const device = saveDevice(body.deviceId, parseNotificationPrefs(body.prefs), subscription); - return NextResponse.json({ subscribed: Boolean(device.subscription) }); + return Response.json({ subscribed: Boolean(device.subscription) }); } diff --git a/app/api/notifications/history/route.ts b/app/api/notifications/history/route.ts index eee8b690c..017972284 100644 --- a/app/api/notifications/history/route.ts +++ b/app/api/notifications/history/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { parseJsonWithinLimit, RequestBodyTooLargeError } from "@/lib/bounded-form-data"; import { clearHistory, listHistory, markHistoryRead, removeHistory } from "@/lib/notification-store"; import { isRecord } from "@/lib/type-guards"; @@ -9,12 +8,12 @@ const MAX_BODY_BYTES = 32 * 1024; const MAX_IDS = 100; const MAX_ID_LENGTH = 256; -const invalid = () => NextResponse.json({ error: "Invalid history request", code: "invalid_history_request" }, { status: 400 }); +const invalid = () => Response.json({ error: "Invalid history request", code: "invalid_history_request" }, { status: 400 }); const isId = (value: unknown): value is string => typeof value === "string" && value.length > 0 && value.length <= MAX_ID_LENGTH; /** GET /api/notifications/history — every entry, newest first. */ export async function GET() { - return NextResponse.json({ entries: listHistory() }); + return Response.json({ entries: listHistory() }); } /** PATCH /api/notifications/history { ids } — mark entries read. A client marks what it shows, never entries it has not seen. */ @@ -23,12 +22,12 @@ export async function PATCH(req: Request) { try { body = await parseJsonWithinLimit(req, MAX_BODY_BYTES); } catch (error) { - if (error instanceof RequestBodyTooLargeError) return NextResponse.json({ error: "History request is too large", code: "request_too_large" }, { status: 413 }); + if (error instanceof RequestBodyTooLargeError) return Response.json({ error: "History request is too large", code: "request_too_large" }, { status: 413 }); return invalid(); } if (!isRecord(body) || !Array.isArray(body.ids) || body.ids.length > MAX_IDS || !body.ids.every(isId)) return invalid(); markHistoryRead(body.ids); - return NextResponse.json({ ok: true }); + return Response.json({ ok: true }); } /** @@ -41,5 +40,5 @@ export async function DELETE(req: Request) { if (isId(id)) removeHistory(id); else if (id === null && params.get("all") === "1") clearHistory(); else return invalid(); - return NextResponse.json({ ok: true }); + return Response.json({ ok: true }); } diff --git a/app/api/notifications/presence/route.ts b/app/api/notifications/presence/route.ts index cc3175195..fe12eacd4 100644 --- a/app/api/notifications/presence/route.ts +++ b/app/api/notifications/presence/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { isValidNotificationId } from "@/lib/notification-events"; import { reportPresence } from "@/lib/notification-hub"; import { isRecord } from "@/lib/type-guards"; @@ -12,9 +11,9 @@ export async function POST(req: Request) { !isRecord(body) || !isValidNotificationId(body.clientId) || !isValidNotificationId(body.deviceId) || typeof body.visible !== "boolean" || !Number.isSafeInteger(body.seq) ) { - return NextResponse.json({ error: "Invalid presence report", code: "invalid_presence" }, { status: 400 }); + return Response.json({ error: "Invalid presence report", code: "invalid_presence" }, { status: 400 }); } const sessionId = typeof body.sessionId === "string" && body.sessionId ? body.sessionId : null; reportPresence({ clientId: body.clientId, deviceId: body.deviceId, visible: body.visible, sessionId, seq: Number(body.seq) }); - return new NextResponse(null, { status: 204 }); + return new Response(null, { status: 204 }); } diff --git a/app/api/notifications/test/route.ts b/app/api/notifications/test/route.ts index eafce070e..2a5ffb552 100644 --- a/app/api/notifications/test/route.ts +++ b/app/api/notifications/test/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { isValidNotificationId } from "@/lib/notification-events"; import { sendTestPush } from "@/lib/notification-hub"; import { isRecord } from "@/lib/type-guards"; @@ -9,8 +8,8 @@ export const dynamic = "force-dynamic"; export async function POST(req: Request) { const body: unknown = await req.json().catch(() => null); if (!isRecord(body) || !isValidNotificationId(body.deviceId)) { - return NextResponse.json({ error: "deviceId is required", code: "invalid_device" }, { status: 400 }); + return Response.json({ error: "deviceId is required", code: "invalid_device" }, { status: 400 }); } const result = await sendTestPush(body.deviceId); - return result.ok ? new NextResponse(null, { status: 204 }) : NextResponse.json({ error: result.error, code: "push_failed" }, { status: 502 }); + return result.ok ? new Response(null, { status: 204 }) : Response.json({ error: result.error, code: "push_failed" }, { status: 502 }); } diff --git a/app/api/omp-settings/route.ts b/app/api/omp-settings/route.ts index d93e6d74a..de0767b37 100644 --- a/app/api/omp-settings/route.ts +++ b/app/api/omp-settings/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { invalidateModelsCache } from "@/lib/models-cache"; import { disposeUtilityRpc, runUtilityCommand, type OmpModel } from "@/lib/omp/rpc-utility"; import { readNativeSettings, writeNativeSettings, type NativeSettings } from "@/lib/omp/settings-config"; @@ -8,9 +7,9 @@ export const dynamic = "force-dynamic"; export function GET() { try { - return NextResponse.json(readNativeSettings()); + return Response.json(readNativeSettings()); } catch (error) { - return NextResponse.json({ error: String(error) }, { status: 400 }); + return Response.json({ error: String(error) }, { status: 400 }); } } @@ -18,7 +17,7 @@ export async function PUT(request: Request) { try { const body = await request.json() as { settings?: NativeSettings }; if (!body.settings || typeof body.settings !== "object" || Array.isArray(body.settings)) { - return NextResponse.json({ error: "settings must be an object" }, { status: 400 }); + return Response.json({ error: "settings must be an object" }, { status: 400 }); } if (body.settings.enabledModels !== undefined) { // The utility process is best-effort here: settings remain editable when @@ -42,8 +41,8 @@ export async function PUT(request: Request) { invalidateModelsCache(); disposeUtilityRpc(); } - return NextResponse.json({ success: true, settings: readNativeSettings().settings }); + return Response.json({ success: true, settings: readNativeSettings().settings }); } catch (error) { - return NextResponse.json({ error: String(error) }, { status: 400 }); + return Response.json({ error: String(error) }, { status: 400 }); } } diff --git a/app/api/omp-update/route.ts b/app/api/omp-update/route.ts index 632340ab5..2afa4dfa9 100644 --- a/app/api/omp-update/route.ts +++ b/app/api/omp-update/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { isApiRequestOriginAllowed, shouldCheckApiRequestOrigin } from "@/lib/request-security"; import { parseJsonWithinLimit, RequestBodyTooLargeError } from "@/lib/bounded-form-data"; import { checkOmpUpdate } from "@/lib/omp/updates"; @@ -17,34 +16,34 @@ export const dynamic = "force-dynamic"; const OMP_KIND = "omp" as const; -function errorResponse(error: unknown): NextResponse { +function errorResponse(error: unknown): Response { if (error instanceof SelfUpdateError) { - return NextResponse.json({ error: error.message, code: error.code }, { status: error.httpStatus }); + return Response.json({ error: error.message, code: error.code }, { status: error.httpStatus }); } - return NextResponse.json({ error: "The OMP update could not be started", code: "update_failed" }, { status: 500 }); + return Response.json({ error: "The OMP update could not be started", code: "update_failed" }, { status: 500 }); } export async function POST(request: Request) { if (shouldCheckApiRequestOrigin(request) && !isApiRequestOriginAllowed(request)) { - return NextResponse.json({ error: "Cross-origin API requests are not allowed", code: "cross_origin_forbidden" }, { status: 403 }); + return Response.json({ error: "Cross-origin API requests are not allowed", code: "cross_origin_forbidden" }, { status: 403 }); } if (request.headers.get("content-type")?.split(";", 1)[0].trim().toLowerCase() !== "application/json") { - return NextResponse.json({ error: "Content-Type must be application/json", code: "unsupported_media_type" }, { status: 415 }); + return Response.json({ error: "Content-Type must be application/json", code: "unsupported_media_type" }, { status: 415 }); } try { const body = await parseJsonWithinLimit | null>(request, 4_096); if (!body || typeof body !== "object" || Array.isArray(body)) throw new SelfUpdateError("invalid_action", "action must be check, restart, update, status, or acknowledge"); const keys = Object.keys(body); if (body.action === "check") { - return NextResponse.json(await checkOmpUpdate(body.force === true)); + return Response.json(await checkOmpUpdate(body.force === true)); } if (body.action === "restart" && keys.length === 1) { const sessionsRestarted = await restartAllRpcSessions(); - return NextResponse.json({ success: true, sessionsRestarted }); + return Response.json({ success: true, sessionsRestarted }); } if (body.action === "update" && keys.length === 1) { const result = await prepareSelfUpdate(OMP_KIND); - return NextResponse.json(result, { status: 202 }); + return Response.json(result, { status: 202 }); } if (body.action === "commit" && keys.length === 2 && typeof body.attemptId === "string") { const commitState = validateCommitSelfUpdate(body.attemptId, OMP_KIND); @@ -52,18 +51,18 @@ export async function POST(request: Request) { if (commitState === "ready") markSelfUpdateStopping(body.attemptId, OMP_KIND); await commitSelfUpdate(body.attemptId, OMP_KIND); } - return NextResponse.json({ accepted: true, attemptId: body.attemptId }, { status: 202 }); + return Response.json({ accepted: true, attemptId: body.attemptId }, { status: 202 }); } if (body.action === "status" && keys.length === 1) { const selfUpdateStatus = getSelfUpdateStatus(OMP_KIND); - return NextResponse.json(selfUpdateStatus ?? null, { headers: { "Cache-Control": "no-store" } }); + return Response.json(selfUpdateStatus ?? null, { headers: { "Cache-Control": "no-store" } }); } if (body.action === "acknowledge" && keys.length === 2 && typeof body.attemptId === "string") { - return NextResponse.json(acknowledgeSelfUpdate(body.attemptId, OMP_KIND)); + return Response.json(acknowledgeSelfUpdate(body.attemptId, OMP_KIND)); } throw new SelfUpdateError("invalid_action", "action must be check, restart, update, status, or acknowledge"); } catch (error) { - if (error instanceof RequestBodyTooLargeError) return NextResponse.json({ error: error.message, code: "body_too_large" }, { status: 413 }); + if (error instanceof RequestBodyTooLargeError) return Response.json({ error: error.message, code: "body_too_large" }, { status: 413 }); if (error instanceof SyntaxError) return errorResponse(new SelfUpdateError("invalid_json", "Request body must be valid JSON")); return errorResponse(error); } diff --git a/app/api/omp-version/route.ts b/app/api/omp-version/route.ts index 447da2279..cc3bdaeaa 100644 --- a/app/api/omp-version/route.ts +++ b/app/api/omp-version/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { getOmpVersion } from "@/lib/omp/omp-cli"; export const dynamic = "force-dynamic"; @@ -7,5 +6,5 @@ export const dynamic = "force-dynamic"; * build-time omp-web version — the two can legitimately drift. */ export async function GET() { const version = await getOmpVersion(); - return NextResponse.json({ version }); + return Response.json({ version }); } diff --git a/app/api/plugins/route.ts b/app/api/plugins/route.ts index 8b8dd152e..7811c401f 100644 --- a/app/api/plugins/route.ts +++ b/app/api/plugins/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { execFile } from "child_process"; import { existsSync, promises as fs } from "fs"; import { basename, extname, join } from "path"; @@ -266,25 +265,25 @@ function readScope(scope: unknown): PluginScope { /** Dynamic CLI failures keep their message; a missing omp binary is the one * known cause worth a stable code for client-side localization. */ -function pluginErrorResponse(error: unknown): NextResponse { +function pluginErrorResponse(error: unknown): Response { const message = error instanceof Error ? error.message : String(error); if (message.includes("omp binary not found")) { - return NextResponse.json({ error: message, code: "omp_not_found" }, { status: 500 }); + return Response.json({ error: message, code: "omp_not_found" }, { status: 500 }); } - return NextResponse.json({ error: message }, { status: 500 }); + return Response.json({ error: message }, { status: 500 }); } export async function GET(req: Request) { const { searchParams } = new URL(req.url); const cwd = searchParams.get("cwd"); - if (!cwd) return NextResponse.json({ error: "cwd required", code: "cwd_required" }, { status: 400 }); + if (!cwd) return Response.json({ error: "cwd required", code: "cwd_required" }, { status: 400 }); try { const allowedRoots = await getAllowedFileRoots(); if (!isExistingFilePathAllowed(cwd, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } - return NextResponse.json(await readPlugins(cwd)); + return Response.json(await readPlugins(cwd)); } catch (error) { return pluginErrorResponse(error); } @@ -299,32 +298,32 @@ export async function POST(req: Request) { scope?: PluginScope; cwd?: string; }; - if (!body.cwd) return NextResponse.json({ error: "cwd required", code: "cwd_required" }, { status: 400 }); - if (!body.action) return NextResponse.json({ error: "action required", code: "action_required" }, { status: 400 }); + if (!body.cwd) return Response.json({ error: "cwd required", code: "cwd_required" }, { status: 400 }); + if (!body.action) return Response.json({ error: "action required", code: "action_required" }, { status: 400 }); const allowedRoots = await getAllowedFileRoots(); if (!isExistingFilePathAllowed(body.cwd, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } const source = body.source?.trim(); const scopeArgs = readScope(body.scope) === "project" ? ["--scope", "project"] : []; if (body.action === "install") { - if (!source) return NextResponse.json({ error: "source required", code: "source_required" }, { status: 400 }); + if (!source) return Response.json({ error: "source required", code: "source_required" }, { status: 400 }); await runOmp(["plugin", "install", source, "--json", ...scopeArgs], { cwd: body.cwd, timeout: 300_000 }); } else if (body.action === "remove") { - if (!source) return NextResponse.json({ error: "source required", code: "source_required" }, { status: 400 }); + if (!source) return Response.json({ error: "source required", code: "source_required" }, { status: 400 }); await runOmp(["plugin", "uninstall", source, "--json", ...scopeArgs], { cwd: body.cwd, timeout: 120_000 }); } else if (body.action === "update") { await runOmp(["plugin", "upgrade", ...(source ? [source, ...scopeArgs] : [])], { cwd: body.cwd, timeout: 300_000 }); } else if (body.action === "disable" || body.action === "enable") { - if (!source) return NextResponse.json({ error: "source required", code: "source_required" }, { status: 400 }); + if (!source) return Response.json({ error: "source required", code: "source_required" }, { status: 400 }); await runOmp(["plugin", body.action, source, "--json", ...scopeArgs], { cwd: body.cwd, timeout: 60_000 }); } else { - return NextResponse.json({ error: `Unsupported action: ${body.action}`, code: "plugin_unsupported_action" }, { status: 400 }); + return Response.json({ error: `Unsupported action: ${body.action}`, code: "plugin_unsupported_action" }, { status: 400 }); } - return NextResponse.json(await readPlugins(body.cwd)); + return Response.json(await readPlugins(body.cwd)); } catch (error) { return pluginErrorResponse(error); } diff --git a/app/api/projects/clone/route.ts b/app/api/projects/clone/route.ts index 5a6d7ca0b..22835d6d4 100644 --- a/app/api/projects/clone/route.ts +++ b/app/api/projects/clone/route.ts @@ -1,7 +1,6 @@ import { spawn } from "child_process"; import { mkdir, rm } from "fs/promises"; import { join } from "path"; -import { NextResponse } from "next/server"; import { apiErrorResponse } from "@/lib/api-utils"; import { cloneDirectoryName } from "@/lib/git-clone"; import { createChildProcessEnvironment } from "@/lib/project-command-env"; @@ -67,18 +66,18 @@ export async function POST(req: Request) { try { body = await req.json(); } catch { - return NextResponse.json({ error: "Invalid request", code: "invalid_request" }, { status: 400 }); + return Response.json({ error: "Invalid request", code: "invalid_request" }, { status: 400 }); } const id = typeof body.id === "string" && CLONE_ID.test(body.id) ? body.id : null; const url = typeof body.url === "string" ? body.url.trim() : ""; const name = cloneDirectoryName(url); - if (!id || clones.has(id)) return NextResponse.json({ error: "Invalid request", code: "invalid_request" }, { status: 400 }); - if (!name) return NextResponse.json({ error: "Enter an https:// or ssh Git URL", code: "invalid_git_url" }, { status: 400 }); + if (!id || clones.has(id)) return Response.json({ error: "Invalid request", code: "invalid_request" }, { status: 400 }); + if (!name) return Response.json({ error: "Enter an https:// or ssh Git URL", code: "invalid_git_url" }, { status: 400 }); let target: string; try { target = join(validateProjectPath(typeof body.parent === "string" ? body.parent : ""), name); } catch (error) { - if (error instanceof ProjectPathError) return NextResponse.json({ error: error.message, code: error.code }, { status: 400 }); + if (error instanceof ProjectPathError) return Response.json({ error: error.message, code: error.code }, { status: 400 }); throw error; } // Registered before any await so a cancel sent while the target is being @@ -94,7 +93,7 @@ export async function POST(req: Request) { } catch (error) { clones.delete(id); if ((error as NodeJS.ErrnoException).code === "EEXIST") { - return NextResponse.json({ error: `Already exists: ${target}`, code: "clone_target_exists" }, { status: 409 }); + return Response.json({ error: `Already exists: ${target}`, code: "clone_target_exists" }, { status: 409 }); } return apiErrorResponse(error); } @@ -136,7 +135,7 @@ export async function POST(req: Request) { export async function DELETE(req: Request) { const body = await req.json().catch(() => ({})) as { id?: unknown }; const controller = typeof body.id === "string" ? clones.get(body.id) : undefined; - if (!controller) return NextResponse.json({ error: "No clone in progress", code: "clone_not_found" }, { status: 404 }); + if (!controller) return Response.json({ error: "No clone in progress", code: "clone_not_found" }, { status: 404 }); controller.abort(); - return NextResponse.json({ ok: true }); + return Response.json({ ok: true }); } diff --git a/app/api/projects/route.ts b/app/api/projects/route.ts index 804f91ca0..af286fef5 100644 --- a/app/api/projects/route.ts +++ b/app/api/projects/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse, opErrorResponse, resolveHostOrError } from "@/lib/api-utils"; import { allowFileRoot } from "@/lib/file-access"; import { LOCAL_HOST_ID } from "@/lib/hosts/registry"; @@ -42,7 +41,7 @@ export async function GET() { // empty managed project derives no root from sessions). Only this // machine's: another host's paths do not exist here. for (const project of projects) if (project.hostId === LOCAL_HOST_ID) allowFileRoot(project.path); - return NextResponse.json({ projects }); + return Response.json({ projects }); } catch (error) { return apiErrorResponse(error); } @@ -61,12 +60,12 @@ export async function POST(req: Request) { const { host } = target; const result = await host.sessionOps.addProject(cwd, launchConfig); if (!result.ok) return opErrorResponse(result); - if (host.id !== LOCAL_HOST_ID) return NextResponse.json({ project: { ...result.value, hostId: host.id } }); + if (host.id !== LOCAL_HOST_ID) return Response.json({ project: { ...result.value, hostId: host.id } }); allowFileRoot(result.value.path); - return NextResponse.json({ project: result.value }); + return Response.json({ project: result.value }); } catch (error) { if (error instanceof ProjectPathError) { - return NextResponse.json({ error: error.message, code: error.code }, { status: 400 }); + return Response.json({ error: error.message, code: error.code }, { status: 400 }); } return apiErrorResponse(error); } @@ -98,23 +97,23 @@ export async function PATCH(req: Request) { ? [{ cwd: body.cwd, alias: body.alias, sortOrder: body.sortOrder, pinOrder: body.pinOrder, launchConfig: body.launchConfig }] : []; if (rawUpdates.length === 0) { - return NextResponse.json({ error: "Path is required", code: "path_required" }, { status: 400 }); + return Response.json({ error: "Path is required", code: "path_required" }, { status: 400 }); } if (rawUpdates.length > MAX_PRESENTATION_UPDATES) { - return NextResponse.json({ error: "Too many updates", code: "too_many_updates" }, { status: 400 }); + return Response.json({ error: "Too many updates", code: "too_many_updates" }, { status: 400 }); } const parsed: ProjectUpdate[] = []; for (const item of rawUpdates) { const entry = item as { cwd?: unknown; alias?: unknown; sortOrder?: unknown; pinOrder?: unknown; launchConfig?: unknown }; const cwd = typeof entry.cwd === "string" ? entry.cwd.trim() : ""; - if (!cwd) return NextResponse.json({ error: "Path is required", code: "path_required" }, { status: 400 }); + if (!cwd) return Response.json({ error: "Path is required", code: "path_required" }, { status: 400 }); const alias = entry.alias === null ? null : typeof entry.alias === "string" ? entry.alias : undefined; const sortOrder = entry.sortOrder === null ? null : typeof entry.sortOrder === "number" && Number.isFinite(entry.sortOrder) ? entry.sortOrder : undefined; const pinOrder = entry.pinOrder === null ? null : typeof entry.pinOrder === "number" && Number.isFinite(entry.pinOrder) ? entry.pinOrder : undefined; - if (entry.alias !== undefined && alias === undefined) return NextResponse.json({ error: "Alias must be a string", code: "invalid_alias" }, { status: 400 }); - if (entry.sortOrder !== undefined && sortOrder === undefined) return NextResponse.json({ error: "Sort order must be a number", code: "invalid_sort_order" }, { status: 400 }); - if (entry.pinOrder !== undefined && pinOrder === undefined) return NextResponse.json({ error: "Pin order must be a number", code: "invalid_pin_order" }, { status: 400 }); + if (entry.alias !== undefined && alias === undefined) return Response.json({ error: "Alias must be a string", code: "invalid_alias" }, { status: 400 }); + if (entry.sortOrder !== undefined && sortOrder === undefined) return Response.json({ error: "Sort order must be a number", code: "invalid_sort_order" }, { status: 400 }); + if (entry.pinOrder !== undefined && pinOrder === undefined) return Response.json({ error: "Pin order must be a number", code: "invalid_pin_order" }, { status: 400 }); const launchConfig = entry.launchConfig === null ? null : parseLaunchConfig(entry.launchConfig); parsed.push({ cwd, alias, sortOrder, pinOrder, launchConfig }); } @@ -127,10 +126,10 @@ export async function PATCH(req: Request) { // in-memory browse authorization behind. Never for another host's paths. if (target.host.id === LOCAL_HOST_ID) for (const root of result.value.newRoots) allowFileRoot(root); const { projects } = result.value; - return NextResponse.json({ projects: target.host.id === LOCAL_HOST_ID ? projects : projects.map((project) => ({ ...project, hostId: target.host.id })) }); + return Response.json({ projects: target.host.id === LOCAL_HOST_ID ? projects : projects.map((project) => ({ ...project, hostId: target.host.id })) }); } catch (error) { if (error instanceof ProjectPathError) { - return NextResponse.json({ error: error.message, code: error.code }, { status: 400 }); + return Response.json({ error: error.message, code: error.code }, { status: 400 }); } return apiErrorResponse(error); } @@ -144,13 +143,13 @@ export async function DELETE(req: Request) { const body = await req.json() as { cwd?: unknown; hostId?: unknown }; const cwd = typeof body.cwd === "string" ? body.cwd.trim() : ""; if (!cwd) { - return NextResponse.json({ error: "Path is required", code: "path_required" }, { status: 400 }); + return Response.json({ error: "Path is required", code: "path_required" }, { status: 400 }); } const target = resolveHostOrError(body.hostId); if ("response" in target) return target.response; const result = await target.host.sessionOps.hideProject(cwd); if (!result.ok) return opErrorResponse(result); - return NextResponse.json({ success: true }); + return Response.json({ success: true }); } catch (error) { return apiErrorResponse(error); } diff --git a/app/api/provider-usage/route.ts b/app/api/provider-usage/route.ts index fc50b8ba1..b431b2e00 100644 --- a/app/api/provider-usage/route.ts +++ b/app/api/provider-usage/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { getProviderUsage } from "@/lib/provider-usage"; export const dynamic = "force-dynamic"; @@ -20,16 +19,16 @@ export async function GET(request: Request) { const modelId = readIdentifier(rawModel); if ((rawProvider !== null && !provider) || (rawModel !== null && !modelId)) { - return NextResponse.json( + return Response.json( { error: "Invalid provider or model identifier", code: "invalid_usage_query" }, { status: 400 }, ); } try { - return NextResponse.json(await getProviderUsage({ provider, modelId }, searchParams.get("refresh") === "true")); + return Response.json(await getProviderUsage({ provider, modelId }, searchParams.get("refresh") === "true")); } catch { - return NextResponse.json( + return Response.json( { error: "Provider usage is currently unavailable", code: "provider_usage_unavailable" }, { status: 502 }, ); diff --git a/app/api/providers/enable/route.ts b/app/api/providers/enable/route.ts index 03cf53913..f99e7eeaa 100644 --- a/app/api/providers/enable/route.ts +++ b/app/api/providers/enable/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { invalidateModelsCache } from "@/lib/models-cache"; import { enableProvider } from "@/lib/omp/model-roles"; import { disposeUtilityRpc } from "@/lib/omp/rpc-utility"; @@ -7,13 +6,13 @@ export async function POST(request: Request) { try { const body = await request.json() as { provider?: unknown }; if (typeof body.provider !== "string" || !body.provider.trim()) { - return NextResponse.json({ error: "provider is required" }, { status: 400 }); + return Response.json({ error: "provider is required" }, { status: 400 }); } enableProvider(body.provider); invalidateModelsCache(); disposeUtilityRpc(); - return NextResponse.json({ success: true }); + return Response.json({ success: true }); } catch (error) { - return NextResponse.json({ error: String(error) }, { status: 400 }); + return Response.json({ error: String(error) }, { status: 400 }); } } diff --git a/app/api/sessions/[id]/archive/route.ts b/app/api/sessions/[id]/archive/route.ts index 7fb81da54..19d194d71 100644 --- a/app/api/sessions/[id]/archive/route.ts +++ b/app/api/sessions/[id]/archive/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse, hostOfflineResponse, opErrorResponse, resolveSessionHostOr404 } from "@/lib/api-utils"; import { HostOpError } from "@/lib/hosts/link-protocol"; import { invalidateHostSessionList } from "@/lib/hosts/session-index"; @@ -20,7 +19,7 @@ export async function POST( // flattening their tree in the sidebar. Archive leaves first instead. const hasChildren = (await sessionOps.listSessions()).some((session) => session.parentSessionId === id); if (hasChildren) { - return NextResponse.json( + return Response.json( { error: "Archive child sessions before archiving this session", code: "session_has_children" }, { status: 409 }, ); @@ -36,10 +35,10 @@ export async function POST( if (!result.ok) return opErrorResponse(result); invalidateHostSessionList(resolved.host.id); clearExitedRpcSession(id); - return NextResponse.json({ ok: true, archived: true, archivedPath: result.value.archivedPath }); + return Response.json({ ok: true, archived: true, archivedPath: result.value.archivedPath }); } catch (error) { if (error instanceof HostOpError) return apiErrorResponse(error); const message = error instanceof Error ? error.message : String(error); - return NextResponse.json({ error: message, code: "session_archive_failed" }, { status: 500 }); + return Response.json({ error: message, code: "session_archive_failed" }, { status: 500 }); } } diff --git a/app/api/sessions/[id]/auto-name/route.ts b/app/api/sessions/[id]/auto-name/route.ts index 8894e1e6d..c37afa577 100644 --- a/app/api/sessions/[id]/auto-name/route.ts +++ b/app/api/sessions/[id]/auto-name/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { deriveSessionTitleFromFirstMessage, sanitizeSessionTitle } from "@/lib/session-title"; import { getRpcSession, startRpcSession, WebRpcError } from "@/lib/rpc-manager"; import { invalidateHostSessionList, sessionSpawnTarget } from "@/lib/hosts/session-index"; @@ -45,13 +44,13 @@ export async function POST( const generated = sanitizeSessionTitle((await rpc.generateTitle()) ?? undefined); if (generated) { invalidateSessionCaches(rpc.sessionFile); - return NextResponse.json({ title: generated, generated: true, usage: null }); + return Response.json({ title: generated, generated: true, usage: null }); } } catch (error) { // A busy/restarting session reports a typed error the UI can show; any // other failure degrades to the fallback below. if (error instanceof WebRpcError) { - return NextResponse.json({ error: error.message, code: error.code }, { status: 409 }); + return Response.json({ error: error.message, code: error.code }, { status: 409 }); } } } @@ -63,12 +62,12 @@ export async function POST( const info = (await sessionOps.listSessions()).find((session) => session.id === id); const storedTitle = sanitizeSessionTitle(info?.name); if (storedTitle) { - return NextResponse.json({ title: storedTitle, generated: false, usage: null }); + return Response.json({ title: storedTitle, generated: false, usage: null }); } const derived = deriveSessionTitleFromFirstMessage(info?.firstMessage); if (!derived) { - return NextResponse.json( + return Response.json( { error: "The session has no user messages to name", code: "session_no_messages_to_name" }, { status: 409 }, ); @@ -76,7 +75,7 @@ export async function POST( // Title generation/path resolution yielded; Edit may now own this session. if (getRpcSession(id)?.isEditingHistory()) { - return NextResponse.json({ error: "Wait for the history edit to finish", code: "session_busy" }, { status: 409 }); + return Response.json({ error: "Wait for the history edit to finish", code: "session_busy" }, { status: 409 }); } // Save title both to disk and through the live process so it persists immediately. @@ -90,10 +89,10 @@ export async function POST( // Saved on disk; ignore RPC sync failure. } } - return NextResponse.json({ title: derived, generated: false, usage: null }); + return Response.json({ title: derived, generated: false, usage: null }); } catch (error) { if (error instanceof HostOpError) return apiErrorResponse(error); - return NextResponse.json( + return Response.json( { error: error instanceof Error ? error.message : String(error) }, { status: 500 }, ); diff --git a/app/api/sessions/[id]/context/route.ts b/app/api/sessions/[id]/context/route.ts index 533b0e98a..713155f91 100644 --- a/app/api/sessions/[id]/context/route.ts +++ b/app/api/sessions/[id]/context/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { buildSessionContext } from "@/lib/session-reader"; import { apiErrorResponse, opErrorResponse, resolveSessionHostOr404 } from "@/lib/api-utils"; import { getRpcSession } from "@/lib/rpc-manager"; @@ -19,28 +18,28 @@ export async function GET( const boundary = url.searchParams.get("boundary"); if (boundary !== null) { if (boundary !== "1" || url.searchParams.getAll("boundary").length !== 1) { - return NextResponse.json({ error: "Invalid boundary mode", code: "invalid_boundary" }, { status: 400 }); + return Response.json({ error: "Invalid boundary mode", code: "invalid_boundary" }, { status: 400 }); } if (["sync", "leafId", "includePreCompaction", "cursor", "limit"].some((option) => url.searchParams.has(option))) { - return NextResponse.json({ error: "Boundary mode requires the current active context", code: "invalid_boundary_options" }, { status: 400 }); + return Response.json({ error: "Boundary mode requires the current active context", code: "invalid_boundary_options" }, { status: 400 }); } } let cursor: SessionHistoryCursor | null = null; let limit = MAX_SYNC_MESSAGES; if (sync !== null && sync !== "1") { - return NextResponse.json({ error: "Invalid sync mode", code: "invalid_sync" }, { status: 400 }); + return Response.json({ error: "Invalid sync mode", code: "invalid_sync" }, { status: 400 }); } if (sync === "1") { try { cursor = parseHistoryCursor(url.searchParams.get("cursor")); } catch { - return NextResponse.json({ error: "Invalid history cursor", code: "invalid_sync_cursor" }, { status: 400 }); + return Response.json({ error: "Invalid history cursor", code: "invalid_sync_cursor" }, { status: 400 }); } const rawLimit = url.searchParams.get("limit"); if (rawLimit !== null) { limit = Number(rawLimit); if (!/^[1-9]\d*$/.test(rawLimit) || !Number.isInteger(limit) || limit > MAX_SYNC_MESSAGES) { - return NextResponse.json({ error: "Invalid history page limit", code: "invalid_sync_limit" }, { status: 400 }); + return Response.json({ error: "Invalid history page limit", code: "invalid_sync_limit" }, { status: 400 }); } } } @@ -64,7 +63,7 @@ export async function GET( const session = notFound && (boundary === "1" || (sync === "1" && !cursor?.lastEntryId && leafId === undefined)) ? getRpcSession(id) : undefined; if (session?.isAlive() && !(await session.host.sessionFileExists(session.sessionFile))) { if (boundary === "1") { - return NextResponse.json({ entryIds: [] }, { headers: { "Cache-Control": "no-store" } }); + return Response.json({ entryIds: [] }, { headers: { "Cache-Control": "no-store" } }); } const response: SessionSyncResponse = { ...selectSessionHistory(buildSessionContext([]), cursor, limit), @@ -72,12 +71,12 @@ export async function GET( leafId: null, live: session.getStreamSnapshot(), }; - return NextResponse.json(response, { headers: { "Cache-Control": "no-store" } }); + return Response.json(response, { headers: { "Cache-Control": "no-store" } }); } return "response" in result ? result.response : opErrorResponse(result); } if (boundary === "1") { - return NextResponse.json(result.value, { headers: { "Cache-Control": "no-store" } }); + return Response.json(result.value, { headers: { "Cache-Control": "no-store" } }); } if (sync === "1") { const page = result.value as { history: SessionHistoryPage; leafId: string | null; tipId: string | null }; @@ -88,9 +87,9 @@ export async function GET( ? session.getStreamSnapshot() : null; const response: SessionSyncResponse = { ...page.history, sessionId: id, leafId: page.leafId, live }; - return NextResponse.json(response, { headers: { "Cache-Control": "no-store" } }); + return Response.json(response, { headers: { "Cache-Control": "no-store" } }); } - return NextResponse.json(result.value); + return Response.json(result.value); } catch (error) { return apiErrorResponse(error); } diff --git a/app/api/sessions/[id]/entries/[entryId]/thinking/route.ts b/app/api/sessions/[id]/entries/[entryId]/thinking/route.ts index b08467729..8af09f0cf 100644 --- a/app/api/sessions/[id]/entries/[entryId]/thinking/route.ts +++ b/app/api/sessions/[id]/entries/[entryId]/thinking/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse, opErrorResponse, resolveSessionHostOr404 } from "@/lib/api-utils"; export async function GET( @@ -9,14 +8,14 @@ export async function GET( const blockIndexParam = new URL(req.url).searchParams.get("blockIndex"); const blockIndex = blockIndexParam === null ? Number.NaN : Number(blockIndexParam); if (!Number.isSafeInteger(blockIndex) || blockIndex < 0) { - return NextResponse.json({ error: "Valid blockIndex is required", code: "invalid_block_index" }, { status: 400 }); + return Response.json({ error: "Valid blockIndex is required", code: "invalid_block_index" }, { status: 400 }); } try { const resolved = await resolveSessionHostOr404(id); if ("response" in resolved) return resolved.response; const result = await resolved.host.sessionOps.readThinking(id, entryId, blockIndex); - return result.ok ? NextResponse.json(result.value) : opErrorResponse(result); + return result.ok ? Response.json(result.value) : opErrorResponse(result); } catch (error) { return apiErrorResponse(error); } diff --git a/app/api/sessions/[id]/route.ts b/app/api/sessions/[id]/route.ts index f43106a5e..8ac26b264 100644 --- a/app/api/sessions/[id]/route.ts +++ b/app/api/sessions/[id]/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse, hostOfflineResponse, opErrorResponse, resolveSessionHostOr404 } from "@/lib/api-utils"; import { HostOpError } from "@/lib/hosts/link-protocol"; import { invalidateHostSessionList } from "@/lib/hosts/session-index"; @@ -8,20 +7,20 @@ import { clearExitedRpcSession, getLiveRpcSessionIds, getRpcSession, WebRpcError /** Stable, client-safe error body for catch-all handlers: details go to the * server log only, never to the browser. */ -function sessionsErrorResponse(error: unknown): NextResponse { +function sessionsErrorResponse(error: unknown): Response { if (error instanceof WebRpcError && error.code === "session_busy") { - return NextResponse.json({ error: error.message, code: error.code }, { status: 409 }); + return Response.json({ error: error.message, code: error.code }, { status: 409 }); } if (error instanceof RequestBodyTooLargeError) { - return NextResponse.json({ error: "Request body is too large", code: "request_too_large" }, { status: 413 }); + return Response.json({ error: "Request body is too large", code: "request_too_large" }, { status: 413 }); } if (error instanceof SyntaxError) { - return NextResponse.json({ error: "Invalid JSON request body", code: "invalid_json" }, { status: 400 }); + return Response.json({ error: "Invalid JSON request body", code: "invalid_json" }, { status: 400 }); } // A host link failure keeps its status: 503 offline, 504 timeout. if (error instanceof HostOpError) return apiErrorResponse(error); console.error("[api/sessions]", error); - return NextResponse.json({ error: "Session request failed", code: "session_request_failed" }, { status: 500 }); + return Response.json({ error: "Session request failed", code: "session_request_failed" }, { status: 500 }); } export async function GET( @@ -59,7 +58,7 @@ export async function GET( } } - return NextResponse.json({ + return Response.json({ sessionId: id, ...read.value, ...(agent ? { agent } : {}), @@ -78,7 +77,7 @@ export async function PATCH( try { const { name } = await parseJsonWithinLimit<{ name?: string }>(req, 64 * 1024); if (typeof name !== "string" || !name.trim()) { - return NextResponse.json({ error: "name is required", code: "session_name_required" }, { status: 400 }); + return Response.json({ error: "name is required", code: "session_name_required" }, { status: 400 }); } // A running omp process owns its session file; route the rename through it // so the in-memory title cannot clobber ours on the next flush. This runs @@ -106,10 +105,10 @@ export async function PATCH( const result = await resolved.host.sessionOps.renameSessionFile(id, name.trim()); if (!result.ok) return opErrorResponse(result); invalidateHostSessionList(resolved.host.id); - return NextResponse.json({ ok: true }); + return Response.json({ ok: true }); } invalidateSessionCaches(); - return NextResponse.json({ ok: true }); + return Response.json({ ok: true }); } catch (error) { return sessionsErrorResponse(error); } @@ -136,7 +135,7 @@ export async function DELETE( if (!result.ok) return opErrorResponse(result); invalidateHostSessionList(resolved.host.id); clearExitedRpcSession(id); - return NextResponse.json({ ok: true, ...result.value }); + return Response.json({ ok: true, ...result.value }); } catch (error) { return sessionsErrorResponse(error); } diff --git a/app/api/sessions/[id]/state/route.ts b/app/api/sessions/[id]/state/route.ts index 7872564f3..ade9d889e 100644 --- a/app/api/sessions/[id]/state/route.ts +++ b/app/api/sessions/[id]/state/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { getExitedRpcSession, getRpcSession, WebRpcError } from "@/lib/rpc-manager"; import { apiErrorResponse, opErrorResponse, resolveSessionHostOr404 } from "@/lib/api-utils"; @@ -15,22 +14,22 @@ export async function GET( if (rpc?.isAlive()) { try { const state = await rpc.send({ type: "get_state" }); - return NextResponse.json({ running: true, state }); + return Response.json({ running: true, state }); } catch (error) { if (error instanceof WebRpcError && error.code === "session_unresponsive") { - return NextResponse.json({ running: false, recovered: true }); + return Response.json({ running: false, recovered: true }); } throw error; } } const exited = getExitedRpcSession(id); - if (exited) return NextResponse.json({ running: false, exited }); + if (exited) return Response.json({ running: false, exited }); const resolved = await resolveSessionHostOr404(id); if ("response" in resolved) return resolved.response; const result = await resolved.host.sessionOps.readSessionState(id); - return result.ok ? NextResponse.json(result.value) : opErrorResponse(result); + return result.ok ? Response.json(result.value) : opErrorResponse(result); } catch (error) { return apiErrorResponse(error); } diff --git a/app/api/sessions/[id]/subagents/[subagentId]/route.ts b/app/api/sessions/[id]/subagents/[subagentId]/route.ts index ca34600d5..271838792 100644 --- a/app/api/sessions/[id]/subagents/[subagentId]/route.ts +++ b/app/api/sessions/[id]/subagents/[subagentId]/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse, opErrorResponse, resolveSessionHostOr404 } from "@/lib/api-utils"; import { HostOpError } from "@/lib/hosts/link-protocol"; import { isValidSubagentId } from "@/lib/hosts/session-ops"; @@ -23,7 +22,7 @@ export async function GET( const { id, subagentId } = await params; try { if (!isValidSubagentId(subagentId)) { - return NextResponse.json({ error: "Invalid subagent id", code: "invalid_subagent_id" }, { status: 400 }); + return Response.json({ error: "Invalid subagent id", code: "invalid_subagent_id" }, { status: 400 }); } const resolved = await resolveSessionHostOr404(id); if ("response" in resolved) return resolved.response; @@ -35,10 +34,10 @@ export async function GET( searchParams.get("mode") === "completion" ? "completion" : "page", fromByteRaw !== null ? Number(fromByteRaw) : 0, ); - return result.ok ? NextResponse.json(result.value) : opErrorResponse(result); + return result.ok ? Response.json(result.value) : opErrorResponse(result); } catch (error) { if (error instanceof HostOpError) return apiErrorResponse(error); - return NextResponse.json( + return Response.json( { error: error instanceof Error ? error.message : String(error) }, { status: 500 }, ); diff --git a/app/api/sessions/[id]/subagents/route.ts b/app/api/sessions/[id]/subagents/route.ts index f63dc1303..43ecc1c66 100644 --- a/app/api/sessions/[id]/subagents/route.ts +++ b/app/api/sessions/[id]/subagents/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse, opErrorResponse, resolveSessionHostOr404 } from "@/lib/api-utils"; import { HostOpError } from "@/lib/hosts/link-protocol"; import { getRpcSession } from "@/lib/rpc-manager"; @@ -24,15 +23,15 @@ export async function GET( // history yet", not "unknown session". The client treats an empty // roster the same as a 404, so answer 200 to keep the console clean. if (getRpcSession(id)?.isAlive()) { - return NextResponse.json({ subagents: [] }); + return Response.json({ subagents: [] }); } return resolved.response; } const result = await resolved.host.sessionOps.readSubagentHistory(id); - return result.ok ? NextResponse.json(result.value) : opErrorResponse(result); + return result.ok ? Response.json(result.value) : opErrorResponse(result); } catch (error) { if (error instanceof HostOpError) return apiErrorResponse(error); - return NextResponse.json( + return Response.json( { error: error instanceof Error ? error.message : String(error) }, { status: 500 }, ); diff --git a/app/api/sessions/archive/route.ts b/app/api/sessions/archive/route.ts index 09eec963b..02ce4c32b 100644 --- a/app/api/sessions/archive/route.ts +++ b/app/api/sessions/archive/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse } from "@/lib/api-utils"; import { listArchivedSessions, restoreArchivedSession } from "@/lib/omp/archive"; import { invalidateLocalSessionLists } from "@/lib/hosts/session-index"; @@ -22,7 +21,7 @@ export async function GET() { size: archive.size, status: archive.status, })); - return NextResponse.json({ archives: response }, { headers: { "Cache-Control": "no-store" } }); + return Response.json({ archives: response }, { headers: { "Cache-Control": "no-store" } }); } catch (error) { return apiErrorResponse(error); } @@ -32,15 +31,15 @@ export async function POST(req: Request) { try { const body = await req.json() as { key?: unknown }; if (typeof body.key !== "string" || !body.key.trim()) { - return NextResponse.json({ error: "Archive key is required", code: "archive_key_required" }, { status: 400 }); + return Response.json({ error: "Archive key is required", code: "archive_key_required" }, { status: 400 }); } const sessionId = restoreArchivedSession(body.key); invalidateSessionListCache(); invalidateLocalSessionLists(); - return NextResponse.json({ ok: true, sessionId }); + return Response.json({ ok: true, sessionId }); } catch (error) { const message = error instanceof Error ? error.message : String(error); const status = message.includes("Invalid archive key") || message.includes("required") ? 400 : message.includes("not found") ? 404 : message.includes("already exists") ? 409 : 500; - return NextResponse.json({ error: message, code: "archive_restore_failed" }, { status }); + return Response.json({ error: message, code: "archive_restore_failed" }, { status }); } } diff --git a/app/api/sessions/import/route.ts b/app/api/sessions/import/route.ts index 82ee4349c..0e142c228 100644 --- a/app/api/sessions/import/route.ts +++ b/app/api/sessions/import/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse } from "@/lib/api-utils"; import { mkdirSync, writeFileSync } from "fs"; import path from "path"; @@ -29,13 +28,13 @@ export async function POST(req: Request) { const fileName = typeof body.fileName === "string" ? body.fileName.trim() : ""; const content = typeof body.content === "string" ? body.content : ""; if (!fileName || fileName.includes("/") || fileName.includes("\\")) { - return NextResponse.json({ error: "Invalid file name", code: "invalid_file_name" }, { status: 400 }); + return Response.json({ error: "Invalid file name", code: "invalid_file_name" }, { status: 400 }); } if (!content.trim()) { - return NextResponse.json({ error: "Empty session file", code: "empty_session_file" }, { status: 400 }); + return Response.json({ error: "Empty session file", code: "empty_session_file" }, { status: 400 }); } if (Buffer.byteLength(content, "utf8") > MAX_IMPORT_BYTES) { - return NextResponse.json({ error: "Session file is too large (max 10 MB)", code: "session_file_too_large" }, { status: 400 }); + return Response.json({ error: "Session file is too large (max 10 MB)", code: "session_file_too_large" }, { status: 400 }); } // Every line must parse as a JSON object, and one of them must be the @@ -76,15 +75,15 @@ export async function POST(req: Request) { return line; }); if (rewritten.some((line) => line === null)) { - return NextResponse.json({ error: "Not a valid omp session file (malformed JSON line)", code: "invalid_session_file" }, { status: 400 }); + return Response.json({ error: "Not a valid omp session file (malformed JSON line)", code: "invalid_session_file" }, { status: 400 }); } if (!cwd) { - return NextResponse.json({ error: "Not a valid omp session file (missing session header with cwd)", code: "invalid_session_file" }, { status: 400 }); + return Response.json({ error: "Not a valid omp session file (missing session header with cwd)", code: "invalid_session_file" }, { status: 400 }); } const allowedRoots = await getAllowedFileRoots(); if (!isExistingFilePathAllowed(cwd, allowedRoots)) { - return NextResponse.json({ error: "Imported session workspace is not authorized", code: "import_cwd_not_authorized" }, { status: 403 }); + return Response.json({ error: "Imported session workspace is not authorized", code: "import_cwd_not_authorized" }, { status: 403 }); } const sessionDir = path.join(getSessionsDir(), getSessionDirNameForCwd(cwd)); @@ -99,10 +98,10 @@ export async function POST(req: Request) { // The sidebar lists this machine's sessions through its daemon. invalidateLocalSessionLists(); - return NextResponse.json({ success: true, sessionFile }); + return Response.json({ success: true, sessionFile }); } catch (error) { if (error instanceof RequestBodyTooLargeError) { - return NextResponse.json({ error: "Session import request is too large", code: "session_import_request_too_large" }, { status: 413 }); + return Response.json({ error: "Session import request is too large", code: "session_import_request_too_large" }, { status: 413 }); } return apiErrorResponse(error); } diff --git a/app/api/sessions/route.ts b/app/api/sessions/route.ts index 257aecdc0..628cf9121 100644 --- a/app/api/sessions/route.ts +++ b/app/api/sessions/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { createHash } from "crypto"; import { listSessionsAllHosts } from "@/lib/hosts/session-index"; import { getRunningRpcSessions } from "@/lib/rpc-manager"; @@ -22,11 +21,11 @@ export async function GET(req: Request) { const bodyJson = JSON.stringify(body); const etag = `"${createHash("sha1").update(bodyJson).digest("hex").slice(0, 16)}"`; if (req.headers.get("if-none-match") === etag) { - return new NextResponse(null, { status: 304, headers: { ETag: etag, ...SESSION_LIST_HEADERS } }); + return new Response(null, { status: 304, headers: { ETag: etag, ...SESSION_LIST_HEADERS } }); } - return new NextResponse(bodyJson, { headers: { ETag: etag, "Content-Type": "application/json", ...SESSION_LIST_HEADERS } }); + return new Response(bodyJson, { headers: { ETag: etag, "Content-Type": "application/json", ...SESSION_LIST_HEADERS } }); } catch (error) { - return NextResponse.json( + return Response.json( { error: error instanceof Error ? error.message : String(error), code: "internal_error" }, { status: 500, headers: { "Cache-Control": "no-store" } }, ); diff --git a/app/api/sessions/search/route.ts b/app/api/sessions/search/route.ts index d565dd693..a4ee766db 100644 --- a/app/api/sessions/search/route.ts +++ b/app/api/sessions/search/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { searchSessions } from "@/lib/session-content-search"; const MAX_QUERY_LENGTH = 500; @@ -9,7 +8,7 @@ const MAX_QUERY_LENGTH = 500; export async function GET(req: Request) { const q = new URL(req.url).searchParams.get("q") ?? ""; if (q.length > MAX_QUERY_LENGTH) { - return NextResponse.json({ error: "Query too long", code: "query_too_long" }, { status: 400 }); + return Response.json({ error: "Query too long", code: "query_too_long" }, { status: 400 }); } const batches = searchSessions(q); const encoder = new TextEncoder(); diff --git a/app/api/skills/check/route.ts b/app/api/skills/check/route.ts index 789e1b5f6..2eccbcff1 100644 --- a/app/api/skills/check/route.ts +++ b/app/api/skills/check/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import type { SkillInstallScope } from "@/lib/api-types"; import { checkSkillUpdates } from "@/lib/skill-updates"; import { loadSkillsWithInstallInfo } from "@/lib/skills-service"; @@ -14,10 +13,10 @@ export async function POST(req: Request) { scope?: unknown; }; const cwd = typeof body.cwd === "string" ? body.cwd : ""; - if (!cwd) return NextResponse.json({ error: "cwd required", code: "cwd_required" }, { status: 400 }); + if (!cwd) return Response.json({ error: "cwd required", code: "cwd_required" }, { status: 400 }); const allowedRoots = await getAllowedFileRoots(); if (!isExistingFilePathAllowed(cwd, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } const pkg = typeof body.package === "string" ? body.package : undefined; @@ -25,7 +24,7 @@ export async function POST(req: Request) { ? body.scope as SkillInstallScope : undefined; if ((pkg && !scope) || (!pkg && scope)) { - return NextResponse.json({ error: "package and scope must be provided together", code: "package_scope_together" }, { status: 400 }); + return Response.json({ error: "package and scope must be provided together", code: "package_scope_together" }, { status: 400 }); } const { skills } = await loadSkillsWithInstallInfo(cwd); @@ -35,15 +34,15 @@ export async function POST(req: Request) { .filter((install) => !pkg || (install.package === pkg && install.scope === scope)); if (pkg && installs.length === 0) { - return NextResponse.json({ error: "Installed skill not found", code: "skill_not_installed" }, { status: 404 }); + return Response.json({ error: "Installed skill not found", code: "skill_not_installed" }, { status: 404 }); } const updates = await checkSkillUpdates(installs, { githubToken: process.env.GITHUB_TOKEN || process.env.GH_TOKEN, }); - return NextResponse.json({ updates }); + return Response.json({ updates }); } catch (error) { - return NextResponse.json( + return Response.json( { error: error instanceof Error ? error.message : String(error) }, { status: 500 }, ); diff --git a/app/api/skills/install/route.ts b/app/api/skills/install/route.ts index 34af995d8..ef3693adc 100644 --- a/app/api/skills/install/route.ts +++ b/app/api/skills/install/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { runNpx } from "@/lib/npx"; import { createChildProcessEnvironment } from "@/lib/project-command-env"; import { getAllowedFileRoots, isExistingFilePathAllowed } from "@/lib/file-access"; @@ -11,20 +10,20 @@ const ANSI_RE = /\x1B\[[0-9;]*m/g; export async function POST(req: Request) { try { const { package: pkg, scope, cwd } = await req.json() as { package?: string; scope?: string; cwd?: string }; - if (!pkg?.trim()) return NextResponse.json({ error: "package required", code: "package_required" }, { status: 400 }); + if (!pkg?.trim()) return Response.json({ error: "package required", code: "package_required" }, { status: 400 }); // npm package-name grammar: scope-optional, URL-safe segments. Rejecting // leading dashes/`-` prefixes stops a value like `--force` from being // interpreted as npx/CLI options instead of a package name. const name = pkg.trim(); if (name.startsWith("-") || !/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/i.test(name)) { - return NextResponse.json({ error: "Invalid package name", code: "package_invalid" }, { status: 400 }); + return Response.json({ error: "Invalid package name", code: "package_invalid" }, { status: 400 }); } const isGlobal = scope !== "project"; if (!isGlobal) { - if (!cwd) return NextResponse.json({ error: "cwd required for project install", code: "cwd_required_for_project_install" }, { status: 400 }); + if (!cwd) return Response.json({ error: "cwd required for project install", code: "cwd_required_for_project_install" }, { status: 400 }); const allowedRoots = await getAllowedFileRoots(); if (!isExistingFilePathAllowed(cwd, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } } // The skills.sh CLI has no omp agent entry; "universal" installs into the @@ -43,15 +42,15 @@ export async function POST(req: Request) { const success = /Installation complete|Installed \d+ skill/.test(output); if (!success) { const detail = output.slice(-300); - return NextResponse.json( + return Response.json( detail ? { error: detail } : { error: "Install failed", code: "skill_install_failed" }, { status: 500 }, ); } - return NextResponse.json({ success: true, output }); + return Response.json({ success: true, output }); } catch (e: unknown) { const err = e as { stdout?: string; stderr?: string; message?: string }; const output = ((err.stdout ?? "") + (err.stderr ?? "")).replace(ANSI_RE, ""); - return NextResponse.json({ error: output || (err.message ?? String(e)) }, { status: 500 }); + return Response.json({ error: output || (err.message ?? String(e)) }, { status: 500 }); } } diff --git a/app/api/skills/route.ts b/app/api/skills/route.ts index 2df37184e..80e505f3f 100644 --- a/app/api/skills/route.ts +++ b/app/api/skills/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { existsSync, readFileSync, realpathSync, writeFileSync } from "fs"; import { basename } from "path"; import { @@ -19,16 +18,16 @@ export const dynamic = "force-dynamic"; export async function GET(req: Request) { const { searchParams } = new URL(req.url); const cwd = searchParams.get("cwd"); - if (!cwd) return NextResponse.json({ error: "cwd required", code: "cwd_required" }, { status: 400 }); + if (!cwd) return Response.json({ error: "cwd required", code: "cwd_required" }, { status: 400 }); try { const allowedRoots = await getAllowedFileRoots(); if (!isExistingFilePathAllowed(cwd, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } - return NextResponse.json(await loadSkillsWithInstallInfo(cwd)); + return Response.json(await loadSkillsWithInstallInfo(cwd)); } catch (e) { - return NextResponse.json({ error: String(e) }, { status: 500 }); + return Response.json({ error: String(e) }, { status: 500 }); } } @@ -37,11 +36,11 @@ export async function PATCH(req: Request) { try { const body = await req.json() as { filePath: string; disableModelInvocation: boolean; cwd?: string }; const { filePath, disableModelInvocation, cwd } = body; - if (!filePath) return NextResponse.json({ error: "filePath required", code: "file_path_required" }, { status: 400 }); + if (!filePath) return Response.json({ error: "filePath required", code: "file_path_required" }, { status: 400 }); if (basename(filePath) !== "SKILL.md") { - return NextResponse.json({ error: "not a SKILL.md file", code: "not_a_skill_file" }, { status: 400 }); + return Response.json({ error: "not a SKILL.md file", code: "not_a_skill_file" }, { status: 400 }); } - if (!existsSync(filePath)) return NextResponse.json({ error: "file not found", code: "file_not_found" }, { status: 404 }); + if (!existsSync(filePath)) return Response.json({ error: "file not found", code: "file_not_found" }, { status: 404 }); // Every user-owned root the scanner reads must be writable here, or skills // in the compat dirs (~/.agents/skills — where the app's own global // installs land, ~/.claude/skills, ~/.codex/skills, managed-skills) could @@ -55,7 +54,7 @@ export async function PATCH(req: Request) { // it outside the checked roots. const resolvedFilePath = realpathSync(filePath); if (!isExistingFilePathAllowed(resolvedFilePath, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } const content = readFileSync(resolvedFilePath, "utf8"); @@ -64,8 +63,8 @@ export async function PATCH(req: Request) { // Report what the file now says rather than what was asked for. const { frontmatter } = parseSkillFrontmatter(updated); - return NextResponse.json({ success: true, disableModelInvocation: readDisableModelInvocation(frontmatter) }); + return Response.json({ success: true, disableModelInvocation: readDisableModelInvocation(frontmatter) }); } catch (e) { - return NextResponse.json({ error: String(e) }, { status: 500 }); + return Response.json({ error: String(e) }, { status: 500 }); } } diff --git a/app/api/skills/search/route.ts b/app/api/skills/search/route.ts index 95458be6c..8b0b3b0ab 100644 --- a/app/api/skills/search/route.ts +++ b/app/api/skills/search/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { runNpx } from "@/lib/npx"; import { createChildProcessEnvironment } from "@/lib/project-command-env"; import type { SkillSearchResult } from "@/lib/api-types"; @@ -92,12 +91,12 @@ function parseInstallCount(installs: string): number { export async function POST(req: Request) { try { const { query, limit: rawLimit } = await req.json() as { query?: string; limit?: unknown }; - if (!query?.trim()) return NextResponse.json({ error: "query required", code: "query_required" }, { status: 400 }); + if (!query?.trim()) return Response.json({ error: "query required", code: "query_required" }, { status: 400 }); const limit = parseLimit(rawLimit); try { const results = await searchSkillsApi(query.trim(), limit); - return NextResponse.json({ results }); + return Response.json({ results }); } catch { const { stdout, stderr } = await runNpx(["skills", "find", query.trim()], { timeout: 20000, @@ -105,13 +104,13 @@ export async function POST(req: Request) { }); const results = parseSearchOutput(stdout + stderr).slice(0, limit); - return NextResponse.json({ results }); + return Response.json({ results }); } } catch (e: unknown) { const err = e as { stdout?: string; stderr?: string; message?: string }; const raw = (err.stdout ?? "") + (err.stderr ?? ""); const results = raw ? parseSearchOutput(raw) : []; - if (results.length > 0) return NextResponse.json({ results }); - return NextResponse.json({ error: err.message ?? String(e) }, { status: 500 }); + if (results.length > 0) return Response.json({ results }); + return Response.json({ error: err.message ?? String(e) }, { status: 500 }); } } diff --git a/app/api/skills/update/route.ts b/app/api/skills/update/route.ts index ee8a2c01b..07c388d5d 100644 --- a/app/api/skills/update/route.ts +++ b/app/api/skills/update/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { runNpx } from "@/lib/npx"; import { createChildProcessEnvironment } from "@/lib/project-command-env"; import type { SkillInstallScope } from "@/lib/api-types"; @@ -21,11 +20,11 @@ export async function POST(req: Request) { ? body.scope as SkillInstallScope : undefined; if (!cwd || !pkg || !scope) { - return NextResponse.json({ error: "cwd, package, and scope are required", code: "cwd_package_scope_required" }, { status: 400 }); + return Response.json({ error: "cwd, package, and scope are required", code: "cwd_package_scope_required" }, { status: 400 }); } const allowedRoots = await getAllowedFileRoots(); if (!isExistingFilePathAllowed(cwd, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } const { skills } = await loadSkillsWithInstallInfo(cwd); @@ -33,10 +32,10 @@ export async function POST(req: Request) { (item) => item.install?.package === pkg && item.install.scope === scope, ); if (!skill?.install) { - return NextResponse.json({ error: "Installed skill not found", code: "skill_not_installed" }, { status: 404 }); + return Response.json({ error: "Installed skill not found", code: "skill_not_installed" }, { status: 404 }); } if (!skill.install.canCheckForUpdates) { - return NextResponse.json({ error: "This skill cannot be updated automatically", code: "skill_update_unsupported" }, { status: 400 }); + return Response.json({ error: "This skill cannot be updated automatically", code: "skill_update_unsupported" }, { status: 400 }); } const { stdout, stderr } = await runNpx(buildSkillUpdateArgs(skill.install), { @@ -49,7 +48,7 @@ export async function POST(req: Request) { const updatedSkill = refreshed.skills.find( (item) => item.install?.package === pkg && item.install.scope === scope, ); - return NextResponse.json({ + return Response.json({ success: true, skill: updatedSkill, output: `${stdout}${stderr}`.slice(-500), @@ -57,7 +56,7 @@ export async function POST(req: Request) { } catch (error: unknown) { const detail = error as { stdout?: string; stderr?: string; message?: string }; const output = `${detail.stdout ?? ""}${detail.stderr ?? ""}`; - return NextResponse.json( + return Response.json( { error: output || detail.message || String(error) }, { status: 500 }, ); diff --git a/app/api/stt/[jobId]/audio/route.ts b/app/api/stt/[jobId]/audio/route.ts index 60ee5f35a..04e243672 100644 --- a/app/api/stt/[jobId]/audio/route.ts +++ b/app/api/stt/[jobId]/audio/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { getSttJobAudio } from "@/lib/stt-jobs"; export const dynamic = "force-dynamic"; @@ -7,7 +6,7 @@ export const dynamic = "force-dynamic"; export async function GET(_req: Request, { params }: { params: Promise<{ jobId: string }> }) { const audio = getSttJobAudio((await params).jobId); if (!audio) { - return NextResponse.json({ error: "Transcription job not found", code: "stt_job_not_found" }, { status: 404 }); + return Response.json({ error: "Transcription job not found", code: "stt_job_not_found" }, { status: 404 }); } // The type came from the uploading browser: serve only a bare audio/* type // so a crafted upload cannot render as HTML on this origin. diff --git a/app/api/stt/[jobId]/route.ts b/app/api/stt/[jobId]/route.ts index 80847985b..7665a1f83 100644 --- a/app/api/stt/[jobId]/route.ts +++ b/app/api/stt/[jobId]/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { readSttConfig } from "@/lib/stt"; import { closeSttJob, getSttJob, retrySttJob } from "@/lib/stt-jobs"; @@ -7,7 +6,7 @@ export const dynamic = "force-dynamic"; type Params = { params: Promise<{ jobId: string }> }; const notFound = () => - NextResponse.json({ error: "Transcription job not found", code: "stt_job_not_found" }, { status: 404 }); + Response.json({ error: "Transcription job not found", code: "stt_job_not_found" }, { status: 404 }); /** * GET /api/stt/[jobId] — { id, status: "pending" | "done" | "error" | "gone", error? }, @@ -18,21 +17,21 @@ const notFound = () => */ export async function GET(_req: Request, { params }: Params) { const job = getSttJob((await params).jobId); - return job ? NextResponse.json(job) : notFound(); + return job ? Response.json(job) : notFound(); } /** POST /api/stt/[jobId]?owner= — retry a failed job with the audio the server kept. */ export async function POST(req: Request, { params }: Params) { const config = readSttConfig(); if (!config) { - return NextResponse.json({ error: "STT not configured. Set OMP_WEB_STT_ENDPOINT or OMP_WEB_STT_MODEL." }, { status: 501 }); + return Response.json({ error: "STT not configured. Set OMP_WEB_STT_ENDPOINT or OMP_WEB_STT_MODEL." }, { status: 501 }); } const owner = new URL(req.url).searchParams.get("owner")?.slice(0, 128) || undefined; const job = retrySttJob(config, (await params).jobId, owner); if (job === "busy") { - return NextResponse.json({ error: "Too many transcriptions in progress", code: "stt_busy" }, { status: 429 }); + return Response.json({ error: "Too many transcriptions in progress", code: "stt_busy" }, { status: 429 }); } - return job ? NextResponse.json(job) : notFound(); + return job ? Response.json(job) : notFound(); } /** @@ -48,5 +47,5 @@ export async function DELETE(req: Request, { params }: Params) { const claim = query.get("claim")?.slice(0, 128) || undefined; const owner = query.get("owner")?.slice(0, 128) || undefined; const job = closeSttJob((await params).jobId, claim, owner); - return job ? NextResponse.json(job) : notFound(); + return job ? Response.json(job) : notFound(); } diff --git a/app/api/stt/route.ts b/app/api/stt/route.ts index dbbf7fe6b..ce3ef85b9 100644 --- a/app/api/stt/route.ts +++ b/app/api/stt/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { parseFormDataWithinLimit, RequestBodyTooLargeError } from "@/lib/bounded-form-data"; import { isSttAfter, MAX_STT_AUDIO_BYTES, MAX_STT_REQUEST_BYTES, readSttConfig } from "@/lib/stt"; import { listSttJobs, startSttJob } from "@/lib/stt-jobs"; @@ -11,9 +10,9 @@ const MAX_SCOPE_LENGTH = 1024; export async function GET(request: Request) { const scope = new URL(request.url).searchParams.get("scope"); if (!scope || scope.length > MAX_SCOPE_LENGTH) { - return NextResponse.json({ error: "scope is required", code: "missing_scope" }, { status: 400 }); + return Response.json({ error: "scope is required", code: "missing_scope" }, { status: 400 }); } - return NextResponse.json({ jobs: listSttJobs(scope) }); + return Response.json({ jobs: listSttJobs(scope) }); } /** @@ -25,7 +24,7 @@ export async function POST(request: Request) { try { const config = readSttConfig(); if (!config) { - return NextResponse.json( + return Response.json( { error: "STT not configured. Set OMP_WEB_STT_ENDPOINT or OMP_WEB_STT_MODEL." }, { status: 501 } ); @@ -34,27 +33,27 @@ export async function POST(request: Request) { const formData = await parseFormDataWithinLimit(request, MAX_STT_REQUEST_BYTES); const file = formData.get("file"); if (!file || typeof file === "string" || file.size === 0) { - return NextResponse.json( + return Response.json( { error: "Audio file is required", code: "missing_audio_file" }, { status: 400 } ); } if (file.size > MAX_STT_AUDIO_BYTES) { - return NextResponse.json( + return Response.json( { error: "Audio file too large (max 25MB)", code: "audio_too_large" }, { status: 413 } ); } const scope = formData.get("scope"); if (scope !== null && (typeof scope !== "string" || scope.length > MAX_SCOPE_LENGTH)) { - return NextResponse.json({ error: "Invalid scope", code: "invalid_scope" }, { status: 400 }); + return Response.json({ error: "Invalid scope", code: "invalid_scope" }, { status: 400 }); } // The uploader's claim token: it gets first claim on the transcript. const owner = formData.get("owner"); // What to do with the transcript (send/steer/followup); absent = insert. const after = formData.get("after"); if (after !== null && !isSttAfter(after)) { - return NextResponse.json({ error: "Invalid after", code: "invalid_after" }, { status: 400 }); + return Response.json({ error: "Invalid after", code: "invalid_after" }, { status: 400 }); } const jobId = startSttJob(config, { @@ -64,19 +63,19 @@ export async function POST(request: Request) { after: after ?? undefined, }); if (!jobId) { - return NextResponse.json( + return Response.json( { error: "Too many transcriptions in progress", code: "stt_busy" }, { status: 429 } ); } - return NextResponse.json({ jobId }, { status: 202 }); + return Response.json({ jobId }, { status: 202 }); } catch (error) { if (error instanceof RequestBodyTooLargeError) { - return NextResponse.json( + return Response.json( { error: "Audio file too large (max 25MB)", code: "audio_too_large" }, { status: 413 } ); } - return NextResponse.json({ error: error instanceof Error ? error.message : String(error) }, { status: 500 }); + return Response.json({ error: error instanceof Error ? error.message : String(error) }, { status: 500 }); } } diff --git a/app/api/usage/route.ts b/app/api/usage/route.ts index 5ce53fbb0..4e6ce0f73 100644 --- a/app/api/usage/route.ts +++ b/app/api/usage/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse } from "@/lib/api-utils"; import { getUsageReport } from "@/lib/usage-service"; import type { UsageGranularity, UsageTimeRange } from "@/lib/usage-types"; @@ -38,7 +37,7 @@ export async function GET(req: Request) { forceRefresh, }); - return NextResponse.json(report); + return Response.json(report); } catch (error) { return apiErrorResponse(error); } diff --git a/app/api/web-auth/session/route.ts b/app/api/web-auth/session/route.ts index e432eaef4..6d82aeee4 100644 --- a/app/api/web-auth/session/route.ts +++ b/app/api/web-auth/session/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { parseJsonWithinLimit, RequestBodyTooLargeError } from "@/lib/bounded-form-data"; import { createWebSession, @@ -12,7 +11,7 @@ const MAX_PASSWORD_REQUEST_BYTES = 8 * 1024; export async function POST(request: Request) { if (!isWebPasswordEnabled()) { - return NextResponse.json({ error: "Password protection is disabled" }, { status: 404 }); + return Response.json({ error: "Password protection is disabled" }, { status: 404 }); } let body: { password?: unknown }; @@ -20,22 +19,20 @@ export async function POST(request: Request) { body = await parseJsonWithinLimit(request, MAX_PASSWORD_REQUEST_BYTES); } catch (error) { const status = error instanceof RequestBodyTooLargeError ? 413 : 400; - return NextResponse.json({ error: "Invalid password request" }, { status }); + return Response.json({ error: "Invalid password request" }, { status }); } if (typeof body.password !== "string" || !isValidWebPassword(body.password)) { - return NextResponse.json({ error: "Incorrect password" }, { status: 401 }); + return Response.json({ error: "Incorrect password" }, { status: 401 }); } - const response = NextResponse.json({ ok: true }); + const response = Response.json({ ok: true }); const secure = new URL(request.url).protocol === "https:" || request.headers.get("x-forwarded-proto") === "https"; - response.cookies.set({ - name: OMP_WEB_SESSION_COOKIE, - value: createWebSession(), + response.headers.append("Set-Cookie", new Bun.Cookie(OMP_WEB_SESSION_COOKIE, createWebSession(), { httpOnly: true, secure, sameSite: "lax", maxAge: OMP_WEB_SESSION_MAX_AGE_SECONDS, path: "/", - }); + }).serialize()); return response; } diff --git a/app/api/web-settings/route.ts b/app/api/web-settings/route.ts index 391a860f8..61bb5b183 100644 --- a/app/api/web-settings/route.ts +++ b/app/api/web-settings/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { syncInterruptibleSessions } from "@/lib/rpc-manager"; import { parseAgentEnvText, sanitizeAgentEnvValues, type AgentEnvParseResult } from "@/lib/omp/agent-env"; import { loadWebServerSettings, saveWebServerSettings, type WebServerSettings } from "@/lib/web-settings"; @@ -8,7 +7,7 @@ export const dynamic = "force-dynamic"; /** GET/PUT /api/web-settings - omp-web's own server-side settings. */ export async function GET() { - return NextResponse.json(readSettings()); + return Response.json(readSettings()); } /** Never surface a variable lib/omp/agent-env.ts would refuse to spawn with. */ @@ -22,10 +21,10 @@ export async function PUT(req: Request) { try { body = await req.json(); } catch { - return NextResponse.json({ error: "Invalid JSON request body", code: "invalid_json" }, { status: 400 }); + return Response.json({ error: "Invalid JSON request body", code: "invalid_json" }, { status: 400 }); } if (!isRecord(body)) { - return NextResponse.json({ error: "Request body must be a settings object", code: "invalid_settings" }, { status: 400 }); + return Response.json({ error: "Request body must be a settings object", code: "invalid_settings" }, { status: 400 }); } const payload = body as { autoResumeSessions?: unknown; agentToolsEnabled?: unknown; agentEnv?: unknown }; const patch: Partial = {}; @@ -35,7 +34,7 @@ export async function PUT(req: Request) { let resumeProvided = false; if (payload.autoResumeSessions !== undefined) { if (typeof payload.autoResumeSessions !== "boolean") { - return NextResponse.json({ error: "autoResumeSessions must be a boolean", code: "invalid_settings" }, { status: 400 }); + return Response.json({ error: "autoResumeSessions must be a boolean", code: "invalid_settings" }, { status: 400 }); } patch.autoResumeSessions = payload.autoResumeSessions; resumeProvided = true; @@ -43,7 +42,7 @@ export async function PUT(req: Request) { if (payload.agentToolsEnabled !== undefined) { if (typeof payload.agentToolsEnabled !== "boolean") { - return NextResponse.json({ error: "agentToolsEnabled must be a boolean", code: "invalid_settings" }, { status: 400 }); + return Response.json({ error: "agentToolsEnabled must be a boolean", code: "invalid_settings" }, { status: 400 }); } patch.agentToolsEnabled = payload.agentToolsEnabled; } @@ -56,13 +55,13 @@ export async function PUT(req: Request) { } else if (isRecord(payload.agentEnv)) { parsed = sanitizeAgentEnvValues(payload.agentEnv); } else { - return NextResponse.json( + return Response.json( { error: "agentEnv must be KEY=VALUE text or an object of variables", code: "invalid_agent_env" }, { status: 400 }, ); } if (parsed.errors.length > 0) { - return NextResponse.json( + return Response.json( { error: "agentEnv contains invalid or reserved variable names", code: "invalid_agent_env", errors: parsed.errors }, { status: 400 }, ); @@ -74,5 +73,5 @@ export async function PUT(req: Request) { // Apply to sessions that are already running, not only the next run. Only when the // flag was part of this save — an agentEnv-only write must not touch live sessions. if (resumeProvided) syncInterruptibleSessions(); - return NextResponse.json({ ...settings, agentEnv: sanitizeAgentEnvValues(settings.agentEnv).values }); + return Response.json({ ...settings, agentEnv: sanitizeAgentEnvValues(settings.agentEnv).values }); } \ No newline at end of file diff --git a/app/api/windows-service/route.ts b/app/api/windows-service/route.ts index eb5c13b66..a739e7050 100644 --- a/app/api/windows-service/route.ts +++ b/app/api/windows-service/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { getWebServiceStatus, installTrayShortcuts, @@ -7,7 +6,6 @@ import { startTrayService, stopTrayService, restartTrayService, - WebServiceStatus, } from "@/lib/windows-service"; export const dynamic = "force-dynamic"; @@ -22,20 +20,20 @@ interface WindowsServiceRequestBody { cleanConfig?: boolean; } -export async function GET(): Promise> { +export async function GET(): Promise { const status = await getWebServiceStatus(); - return NextResponse.json(status, { + return Response.json(status, { headers: { "Cache-Control": "no-store" }, }); } -export async function POST(request: Request): Promise { +export async function POST(request: Request): Promise { try { const body = (await request.json()) as WindowsServiceRequestBody; const { action } = body; if (!action) { - return NextResponse.json( + return Response.json( { error: "Missing required 'action' parameter.", code: "missing_action" }, { status: 400 } ); @@ -79,7 +77,7 @@ export async function POST(request: Request): Promise { break; default: - return NextResponse.json( + return Response.json( { error: `Unknown action '${String(action)}'.`, code: "invalid_action" }, { status: 400 } ); @@ -88,7 +86,7 @@ export async function POST(request: Request): Promise { const updatedStatus = await getWebServiceStatus(); if (!result.success) { - return NextResponse.json( + return Response.json( { error: result.message || `Action '${action}' failed.`, code: "action_failed", @@ -98,13 +96,13 @@ export async function POST(request: Request): Promise { ); } - return NextResponse.json({ + return Response.json({ success: true, message: result.message, status: updatedStatus, }); } catch (error) { const message = error instanceof Error ? error.message : String(error); - return NextResponse.json({ error: message, code: "server_error" }, { status: 500 }); + return Response.json({ error: message, code: "server_error" }, { status: 500 }); } } diff --git a/app/api/worktrees/route.ts b/app/api/worktrees/route.ts index 2d564cc22..051a819f6 100644 --- a/app/api/worktrees/route.ts +++ b/app/api/worktrees/route.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { apiErrorResponse } from "@/lib/api-utils"; import { existsSync } from "fs"; import { join } from "path"; @@ -10,10 +9,10 @@ import { invalidateSessionListCache } from "@/lib/session-reader"; /** Same gate as /api/files: only session cwds / project roots / explicitly * allowed dirs may be inspected or mutated through this endpoint. */ -async function checkCwdAllowed(cwd: string): Promise { +async function checkCwdAllowed(cwd: string): Promise { const allowedRoots = await getAllowedFileRoots(); if (!isFilePathAllowed(cwd, allowedRoots) || !isExistingFilePathAllowed(cwd, allowedRoots)) { - return NextResponse.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); + return Response.json({ error: "Access denied", code: "access_denied" }, { status: 403 }); } return null; } @@ -34,7 +33,7 @@ export async function GET(req: Request) { try { const cwd = new URL(req.url).searchParams.get("cwd"); if (!cwd) { - return NextResponse.json({ error: "cwd is required", code: "cwd_required" }, { status: 400 }); + return Response.json({ error: "cwd is required", code: "cwd_required" }, { status: 400 }); } const denied = await checkCwdAllowed(cwd); if (denied) return denied; @@ -57,7 +56,7 @@ export async function GET(req: Request) { // file explorer to browse them even before they have any session (the // in-memory allowlist from addWorktree does not survive server restarts). for (const w of worktrees) allowFileRoot(w.path); - return NextResponse.json({ + return Response.json({ projectRoot: project.projectRoot, projectKey: projectIdentityKey(project.projectRoot), isGit, @@ -75,24 +74,24 @@ export async function POST(req: Request) { try { const body = await req.json() as { cwd?: string; branch?: string }; if (!body.cwd || typeof body.cwd !== "string") { - return NextResponse.json({ error: "cwd is required", code: "cwd_required" }, { status: 400 }); + return Response.json({ error: "cwd is required", code: "cwd_required" }, { status: 400 }); } if (!body.branch || typeof body.branch !== "string") { - return NextResponse.json({ error: "branch is required", code: "branch_required" }, { status: 400 }); + return Response.json({ error: "branch is required", code: "branch_required" }, { status: 400 }); } const denied = await checkCwdAllowed(body.cwd); if (denied) return denied; if (!existsSync(body.cwd)) { - return NextResponse.json({ error: `Directory does not exist: ${body.cwd}`, code: "directory_not_found" }, { status: 400 }); + return Response.json({ error: `Directory does not exist: ${body.cwd}`, code: "directory_not_found" }, { status: 400 }); } const result = await addWorktree(body.cwd, body.branch); invalidateSessionListCache(); invalidateLocalSessionLists(); - return NextResponse.json(result); + return Response.json(result); } catch (error) { const message = error instanceof Error ? error.message : String(error); - return NextResponse.json({ error: message, code: worktreeErrorCode(message) }, { status: 400 }); + return Response.json({ error: message, code: worktreeErrorCode(message) }, { status: 400 }); } } @@ -101,10 +100,10 @@ export async function DELETE(req: Request) { try { const body = await req.json() as { cwd?: string; path?: string; force?: boolean }; if (!body.cwd || typeof body.cwd !== "string") { - return NextResponse.json({ error: "cwd is required", code: "cwd_required" }, { status: 400 }); + return Response.json({ error: "cwd is required", code: "cwd_required" }, { status: 400 }); } if (!body.path || typeof body.path !== "string") { - return NextResponse.json({ error: "path is required", code: "path_required" }, { status: 400 }); + return Response.json({ error: "path is required", code: "path_required" }, { status: 400 }); } const denied = await checkCwdAllowed(body.cwd); if (denied) return denied; @@ -112,13 +111,13 @@ export async function DELETE(req: Request) { await removeWorktree(body.cwd, body.path, body.force === true); invalidateSessionListCache(); invalidateLocalSessionLists(); - return NextResponse.json({ success: true }); + return Response.json({ success: true }); } catch (error) { const message = error instanceof Error ? error.message : String(error); // git refuses to remove dirty worktrees without --force; surface that so // the UI can offer a force-remove confirmation. const dirty = /contains modified or untracked files|is dirty/i.test(message); const code = dirty ? "worktree_dirty" : worktreeErrorCode(message); - return NextResponse.json({ error: message, code, dirty }, { status: dirty ? 409 : 400 }); + return Response.json({ error: message, code, dirty }, { status: dirty ? 409 : 400 }); } } diff --git a/lib/api-utils.ts b/lib/api-utils.ts index c3f77531e..49202fb0b 100644 --- a/lib/api-utils.ts +++ b/lib/api-utils.ts @@ -1,4 +1,3 @@ -import { NextResponse } from "next/server"; import { isLinkUp, type Host } from "./hosts/host"; import { getHost } from "./hosts/hub"; import { HostOpError } from "./hosts/link-protocol"; @@ -13,12 +12,12 @@ const SESSION_NOT_FOUND = { error: "Session not found", code: "session_not_found * hosts' lists. A 404 JSON response when no host has it, 503 while this machine's sessions are unknown. */ export async function resolveSessionHostOr404( id: string, -): Promise<{ host: Host } | { response: NextResponse }> { +): Promise<{ host: Host } | { response: Response }> { const live = getRpcSession(id); if (live?.isAlive()) return { host: live.host }; try { const host = await hostForSessionId(id); - return host ? { host } : { response: NextResponse.json(SESSION_NOT_FOUND, { status: 404 }) }; + return host ? { host } : { response: Response.json(SESSION_NOT_FOUND, { status: 404 }) }; } catch (error) { // Nothing was sent: a command the composer holds is refused, not lost. if (error instanceof HostOpError && error.code === "host_offline") return { response: apiErrorResponse(new WebRpcError(error.message, "host_offline", "refused")) }; @@ -27,36 +26,36 @@ export async function resolveSessionHostOr404( } /** 503 `{hostOffline: true, delivery: "refused"}` while a host's link is down; null when it takes requests. */ -export function hostOfflineResponse(host: Host): NextResponse | null { +export function hostOfflineResponse(host: Host): Response | null { if (isLinkUp(host.status())) return null; return apiErrorResponse(new WebRpcError(`${host.label} is offline`, "host_offline", "refused")); } /** The host a request names (`hostId`, this machine when absent): 404 when unknown, 503 while offline. */ -export function resolveHostOrError(hostId: unknown): { host: Host } | { response: NextResponse } { +export function resolveHostOrError(hostId: unknown): { host: Host } | { response: Response } { const host = hostId === undefined ? getHost(LOCAL_HOST_ID) : typeof hostId === "string" ? getHost(hostId) : null; - if (!host) return { response: NextResponse.json({ error: "Host not found", code: "host_not_found" }, { status: 404 }) }; + if (!host) return { response: Response.json({ error: "Host not found", code: "host_not_found" }, { status: 404 }) }; const offline = hostOfflineResponse(host); return offline ? { response: offline } : { host }; } /** The JSON error response for a failed host op. */ -export function opErrorResponse(result: Extract, { ok: false }>): NextResponse { - return NextResponse.json({ error: result.error, code: result.code }, { status: result.status }); +export function opErrorResponse(result: Extract, { ok: false }>): Response { + return Response.json({ error: result.error, code: result.code }, { status: result.status }); } /** Uniform JSON error body used by most API routes. A host link failure keeps * its status (503 offline, 504 timeout) and code; a session whose host is * offline answers 503 `{hostOffline: true}`, plus its `delivery` for an agent * command ("unknown": the link dropped after it was sent, so it may still run). */ -export function apiErrorResponse(error: unknown, status = 500): NextResponse { +export function apiErrorResponse(error: unknown, status = 500): Response { if (error instanceof HostOpError || (error instanceof WebRpcError && error.code === "host_offline")) { const offline = error.code === "host_offline"; const delivery = error instanceof WebRpcError ? error.delivery : undefined; - return NextResponse.json( + return Response.json( { error: error.message, code: error.code, ...(offline ? { hostOffline: true } : {}), ...(delivery ? { delivery } : {}) }, { status: error instanceof HostOpError ? error.status : 503 }, ); } - return NextResponse.json({ error: String(error) }, { status }); + return Response.json({ error: String(error) }, { status }); } diff --git a/lib/file-access.test.mjs b/lib/file-access.test.mjs index 3d631333b..c0e5c858f 100644 --- a/lib/file-access.test.mjs +++ b/lib/file-access.test.mjs @@ -203,7 +203,6 @@ test("this machine's session roots come from its daemon's session list", async ( test("serves a bare workspace path through GET instead of 403-ing it", async (t) => { const { allowFileRoot } = await loadSubject(); const { GET } = await import("../app/api/files/[...path]/route.ts"); - const { NextRequest } = await import("next/server"); const previousAgentDir = process.env.PI_CODING_AGENT_DIR; const isolated = fs.mkdtempSync(path.join(os.tmpdir(), "omp-web-file-access-")); t.after(() => { @@ -222,7 +221,7 @@ test("serves a bare workspace path through GET instead of 403-ing it", async (t) // The route reads the path from `params.path` (already decoded by Next), so the // URL is built only so the request is well-formed. const get = (segments, type = "read") => GET( - new NextRequest(`http://localhost/api/files/${segments.map((s) => encodeURIComponent(s)).join("/")}?type=${type}`), + new Request(`http://localhost/api/files/${segments.map((s) => encodeURIComponent(s)).join("/")}?type=${type}`), { params: Promise.resolve({ path: segments }) }, ); @@ -246,7 +245,6 @@ const get = (segments, type = "read") => GET( test("keeps POST uploads on the absolute-only path", async (t) => { const { allowFileRoot } = await loadSubject(); const { POST } = await import("../app/api/files/[...path]/route.ts"); - const { NextRequest } = await import("next/server"); const previousAgentDir = process.env.PI_CODING_AGENT_DIR; const isolated = fs.mkdtempSync(path.join(os.tmpdir(), "omp-web-file-access-")); t.after(() => { @@ -263,7 +261,7 @@ test("keeps POST uploads on the absolute-only path", async (t) => { clearAllowedRootsCache(); const post = (segments, type = "upload-check") => POST( - new NextRequest(`http://localhost/api/files/${segments}?type=${type}`, { + new Request(`http://localhost/api/files/${segments}?type=${type}`, { method: "POST", body: JSON.stringify({ fileNames: ["a.txt"] }), }), diff --git a/lib/file-index-route.test.mjs b/lib/file-index-route.test.mjs index b9fe98049..fd98d50f5 100644 --- a/lib/file-index-route.test.mjs +++ b/lib/file-index-route.test.mjs @@ -7,7 +7,6 @@ import test from "node:test"; const { GET } = await import("../app/api/file-index/route.ts"); const { allowFileRoot } = await import("../lib/file-access.ts"); -const { NextRequest } = await import("next/server"); function git(cwd, args) { return execFileSync("git", ["-C", cwd, ...args], { encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] }).trim(); @@ -35,7 +34,7 @@ async function search(cwd, params) { const url = new URL("http://localhost/api/file-index"); url.searchParams.set("cwd", cwd); for (const [key, value] of Object.entries(params)) url.searchParams.set(key, String(value)); - const res = await GET(new NextRequest(url.toString())); + const res = await GET(new Request(url.toString())); assert.equal(res.status, 200); return res.json(); } From 86226872ef566a46cd74ec1661934706f2eb966a Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 11:16:25 +0000 Subject: [PATCH 06/81] feat(client): React SPA entry built by Bun --- app/boot.ts | 6 ++ app/client.tsx | 53 ++++++++++ app/error.tsx | 77 +-------------- app/fonts/Geist-OFL.txt | 93 ++++++++++++++++++ app/fonts/JetBrainsMono-OFL.txt | 93 ++++++++++++++++++ app/fonts/NotoSansMono-OFL.txt | 93 ++++++++++++++++++ app/fonts/SourceSerif4-OFL.txt | 93 ++++++++++++++++++ app/fonts/geist-latin-wght-normal.woff2 | Bin 0 -> 29400 bytes .../jetbrains-mono-latin-wght-normal.woff2 | Bin 0 -> 40404 bytes .../noto-sans-mono-cyrillic-wght-normal.woff2 | Bin 0 -> 18616 bytes .../noto-sans-mono-latin-wght-normal.woff2 | Bin 0 -> 32108 bytes .../source-serif-4-latin-wght-normal.woff2 | Bin 0 -> 50936 bytes app/globals.css | 49 +++++++++ app/index.html | 25 +++++ app/layout.tsx | 32 +----- components/AppErrorBoundary.tsx | 91 +++++++++++++++++ components/AppShell.tsx | 20 ++-- components/ChatWindow.tsx | 2 +- components/CommandPaletteMount.tsx | 2 +- components/SessionSidebar-chrome.tsx | 2 +- components/SettingsConfig.tsx | 2 +- docs/plans/2026-10-30-bun-runtime.md | 2 + eslint.config.mjs | 1 + lib/dynamic.tsx | 19 ++++ lib/event-stream.ts | 2 +- lib/markdown.ts | 12 ++- lib/navigation.test.mjs | 38 +++++++ lib/navigation.ts | 32 ++++++ next.config.ts | 5 +- package-lock.json | 11 +++ package.json | 1 + scripts/build-client.ts | 49 +++++++++ server/client-env.test.ts | 17 ++++ server/client-env.ts | 19 ++++ 34 files changed, 812 insertions(+), 129 deletions(-) create mode 100644 app/boot.ts create mode 100644 app/client.tsx create mode 100644 app/fonts/Geist-OFL.txt create mode 100644 app/fonts/JetBrainsMono-OFL.txt create mode 100644 app/fonts/NotoSansMono-OFL.txt create mode 100644 app/fonts/SourceSerif4-OFL.txt create mode 100644 app/fonts/geist-latin-wght-normal.woff2 create mode 100644 app/fonts/jetbrains-mono-latin-wght-normal.woff2 create mode 100644 app/fonts/noto-sans-mono-cyrillic-wght-normal.woff2 create mode 100644 app/fonts/noto-sans-mono-latin-wght-normal.woff2 create mode 100644 app/fonts/source-serif-4-latin-wght-normal.woff2 create mode 100644 app/index.html create mode 100644 components/AppErrorBoundary.tsx create mode 100644 lib/dynamic.tsx create mode 100644 lib/navigation.test.mjs create mode 100644 lib/navigation.ts create mode 100644 scripts/build-client.ts create mode 100644 server/client-env.test.ts create mode 100644 server/client-env.ts diff --git a/app/boot.ts b/app/boot.ts new file mode 100644 index 000000000..bf3410ba6 --- /dev/null +++ b/app/boot.ts @@ -0,0 +1,6 @@ +// Imported first by client.tsx so it runs before AppShell's module evaluates and registers its own popstate listeners. +import { SIDEBAR_HISTORY_BRIDGE_SCRIPT } from "@/lib/sidebar-history-bridge"; + +const script = document.createElement("script"); +script.textContent = SIDEBAR_HISTORY_BRIDGE_SCRIPT; +document.head.append(script); diff --git a/app/client.tsx b/app/client.tsx new file mode 100644 index 000000000..70963b401 --- /dev/null +++ b/app/client.tsx @@ -0,0 +1,53 @@ +import "./boot"; +import { StrictMode, Suspense } from "react"; +import { createRoot } from "react-dom/client"; +import { AppErrorBoundary } from "@/components/AppErrorBoundary"; +import { AppShell } from "@/components/AppShell"; +import { IosFocusZoomGuard } from "@/components/IosFocusZoomGuard"; +import { LoginForm } from "@/components/LoginForm"; +import { ThemeColor } from "@/hooks/useTheme"; + +function RouteLoadingFallback() { + return ( +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ); +} + +createRoot(document.getElementById("root")!).render( + + + + + {location.pathname === "/login" ? ( + + ) : ( + }> + + + )} + + , +); diff --git a/app/error.tsx b/app/error.tsx index dc4f3d74a..c8945a4be 100644 --- a/app/error.tsx +++ b/app/error.tsx @@ -1,78 +1,3 @@ "use client"; -import { useEffect } from "react"; -import { TriangleAlert } from "lucide-react"; -import { translate } from "@/lib/i18n"; - -export default function ErrorBoundary({ - error, - reset, -}: { - error: Error & { digest?: string }; - reset: () => void; -}) { - useEffect(() => { - console.error("Application error:", error); - }, [error]); - - return ( -
- -

- {translate("errors.appCrash.title")} -

-

- {translate("errors.appCrash.description")} -

- {error.digest && ( - - {error.digest} - - )} - -
- ); -} +export { AppCrashScreen as default } from "@/components/AppErrorBoundary"; diff --git a/app/fonts/Geist-OFL.txt b/app/fonts/Geist-OFL.txt new file mode 100644 index 000000000..98835ac3f --- /dev/null +++ b/app/fonts/Geist-OFL.txt @@ -0,0 +1,93 @@ +Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font) Geist-Italic[wght].ttf: Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/app/fonts/JetBrainsMono-OFL.txt b/app/fonts/JetBrainsMono-OFL.txt new file mode 100644 index 000000000..8f7ed6711 --- /dev/null +++ b/app/fonts/JetBrainsMono-OFL.txt @@ -0,0 +1,93 @@ +Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/app/fonts/NotoSansMono-OFL.txt b/app/fonts/NotoSansMono-OFL.txt new file mode 100644 index 000000000..50107b8ca --- /dev/null +++ b/app/fonts/NotoSansMono-OFL.txt @@ -0,0 +1,93 @@ +Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/app/fonts/SourceSerif4-OFL.txt b/app/fonts/SourceSerif4-OFL.txt new file mode 100644 index 000000000..046fc6649 --- /dev/null +++ b/app/fonts/SourceSerif4-OFL.txt @@ -0,0 +1,93 @@ +Google Inc. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/app/fonts/geist-latin-wght-normal.woff2 b/app/fonts/geist-latin-wght-normal.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..991445d78ae619a7378ff219385588c7811c88ab GIT binary patch literal 29400 zcmV)2K+L~)Pew8T0RR910CLy>6aWAK0RadA0CHjg0RR9100000000000000000000 z0000Qh6NjepB@~COg~6gK~jfXKTTFaQalD=KT}jeRDn1Eg%B@(5eN$QXx<|WghBu? zfv9K!HUcCAi2wv31&A64i%ARz8zS))Y*%BTp1|g%HJ8sbD%h@O+zv$4`n_s4!iJ3l zAl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app/fonts/source-serif-4-latin-wght-normal.woff2 b/app/fonts/source-serif-4-latin-wght-normal.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..4c3e6b90c9518de98b75a1565cb2ec0f3865bb6f GIT binary patch literal 50936 zcmV)0K+eB+Pew8T0RR910LJ(L6#xJL0mCo=0LFm;0RR9100000000000000000000 z0000PMjDC&8-lm1&2rnAPfgv*Q#+toU)GOTu^lz0^D>~zCQKg53uPtx>xDBeO;4i zhJ4Nr#GpGo97VM%BK`mW=N%OpGc6`JNI75QLbeNVP1MBS^Lfq8bZ96W|D8 zl6Yz?x5thH2?m4aMF=z}WZq8%!-NnfjP{WG_WFi&$w$n1o60vbP0R395R#^_6p3oH zwFXud!jYT{GEr7JGsha;R4vHdcb@FEkHq+vFf6U8kZ-^0CDJHw#}d88>u z7$LrK(+24A+UZUIMtK7St)PuGbZF=>{e{a+Jo&@n{0WyMV!GXJ597!AKd$h0E;@~( zAzh*bdWyNt<${GC;+M4v^D{os|Fc z{G9%|_q`-9q9nlrL<|cFUaSyYYEax#!%B^bQ8Px@`d>T7-zrKc9W`fNMFglo;eT`G zf6|q7#g^@|3%Z)qNd}P@Tdq{z&~nbK)`0xrKj?%zjm1U{Pt*CYmQX_4ByF@&yBq>)-`w8d()j%X=r9ZYeZAvXJC=4{Mx*%+TOc>eoC^4#}#H$?-|Kmy({lnIqm z$3M_gC_;&OB3#<#|M}lrZJ+yoRnH76Bnb{-(ODz0!N=5E;shFpW6^^;`#yzi$1GWv zK_*J#5DaA=;r@dPu&C~eZXs{W;-CY-sY9-nYE>>8yLRiMFy*Q}P~u6M2bd3QS@3{g0$PP(u^)!AhrrERKlJ_3`XMZy$6bG65XD?AXiM%ypXiYt zJkr|d`!EMNNFjwOWOqN{YzZs?>)NurIy9P`Ijh1y#5n%D-%Jvck^XFCWK|-jzuCNw z&Q_z(?CEFuP9(^jD`F=iLFRIv1ZzHZhtzzSdR}mUo`{GsGKgnf31TI6gLtkhK^7}w z#j_$JR%9y@!t76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zxGdJ>` zmM?G918sEYXI9gwuETODNxo_)Z*bP8p%*!u1Pq9OFZzN#?SGwfgN%>*;`j~#007@O B>Mj5P literal 0 HcmV?d00001 diff --git a/app/globals.css b/app/globals.css index f60f6f629..14c59aae2 100644 --- a/app/globals.css +++ b/app/globals.css @@ -62,6 +62,55 @@ font-display: swap; unicode-range: U+3000-30FF, U+4E00-9FFF, U+FF00-FFEF; } +/* Variable UI faces from @fontsource-variable (SIL OFL 1.1; licenses in fonts/*-OFL.txt), + latin subsets (plus cyrillic for Noto Sans Mono) as before. unicode-range keeps + cyrillic from downloading until needed. */ +@font-face { + font-family: 'Geist Variable'; + font-style: normal; + font-display: swap; + font-weight: 100 900; + src: url("./fonts/geist-latin-wght-normal.woff2") format('woff2-variations'); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; +} +@font-face { + font-family: 'JetBrains Mono Variable'; + font-style: normal; + font-display: swap; + font-weight: 100 800; + src: url("./fonts/jetbrains-mono-latin-wght-normal.woff2") format('woff2-variations'); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; +} +@font-face { + font-family: 'Noto Sans Mono Variable'; + font-style: normal; + font-display: swap; + font-weight: 100 900; + src: url("./fonts/noto-sans-mono-cyrillic-wght-normal.woff2") format('woff2-variations'); + unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; +} +@font-face { + font-family: 'Noto Sans Mono Variable'; + font-style: normal; + font-display: swap; + font-weight: 100 900; + src: url("./fonts/noto-sans-mono-latin-wght-normal.woff2") format('woff2-variations'); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; +} +@font-face { + font-family: 'Source Serif 4 Variable'; + font-style: normal; + font-display: swap; + font-weight: 200 900; + src: url("./fonts/source-serif-4-latin-wght-normal.woff2") format('woff2-variations'); + unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; +} +:root { + --font-geist: "Geist Variable"; + --font-jb-mono: "JetBrains Mono Variable"; + --font-noto-mono: "Noto Sans Mono Variable"; + --font-source-serif: "Source Serif 4 Variable"; +} @theme { --color-bg: var(--bg); --color-bg-panel: var(--bg-panel); diff --git a/app/index.html b/app/index.html new file mode 100644 index 000000000..037eedc8e --- /dev/null +++ b/app/index.html @@ -0,0 +1,25 @@ + + + + + + omp web + + + + + + + + + + + + + + + +

+ + + diff --git a/app/layout.tsx b/app/layout.tsx index 332597e00..5c67b6cbe 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,42 +1,12 @@ import type { Metadata, Viewport } from "next"; import { headers } from "next/headers"; import Script from "next/script"; -import { Geist, JetBrains_Mono, Noto_Sans_Mono, Source_Serif_4 } from "next/font/google"; import { ThemeColor } from "@/hooks/useTheme"; import { IosFocusZoomGuard } from "@/components/IosFocusZoomGuard"; import { SIDEBAR_HISTORY_BRIDGE_SCRIPT } from "@/lib/sidebar-history-bridge"; import { getInstallName } from "@/lib/install-name"; import "./globals.css"; -const geist = Geist({ - subsets: ["latin"], - variable: "--font-geist", - display: "swap", -}); - -const jetbrainsMono = JetBrains_Mono({ - subsets: ["latin"], - weight: ["400", "500", "600"], - variable: "--font-jb-mono", - display: "swap", -}); - -const notoSansMono = Noto_Sans_Mono({ - subsets: ["latin", "cyrillic"], - variable: "--font-noto-mono", - display: "swap", -}); - -// Display serif for the warm-humanistic heading voice. Source Serif 4 covers -// latin; CJK uses a bundled Noto Serif SC subset declared in globals.css, not -// next/font/google: Google Fonts sometimes serves it through extensionless -// `/l/font?kit=` URLs that next/font cannot parse, which failed builds at random. -const sourceSerif = Source_Serif_4({ - subsets: ["latin"], - variable: "--font-source-serif", - display: "swap", -}); - export async function generateMetadata(): Promise { const title = getInstallName(await headers()); return { @@ -70,7 +40,7 @@ export default function RootLayout({ children: React.ReactNode; }) { return ( - + diff --git a/components/AppErrorBoundary.tsx b/components/AppErrorBoundary.tsx new file mode 100644 index 000000000..d0df5e640 --- /dev/null +++ b/components/AppErrorBoundary.tsx @@ -0,0 +1,91 @@ +"use client"; + +import { Component, useEffect, type ReactNode } from "react"; +import { TriangleAlert } from "lucide-react"; +import { translate } from "@/lib/i18n"; + +export function AppCrashScreen({ + error, + reset, +}: { + error: Error & { digest?: string }; + reset: () => void; +}) { + useEffect(() => { + console.error("Application error:", error); + }, [error]); + + return ( +
+ +

+ {translate("errors.appCrash.title")} +

+

+ {translate("errors.appCrash.description")} +

+ {error.digest && ( + + {error.digest} + + )} + +
+ ); +} + +export class AppErrorBoundary extends Component<{ children: ReactNode }, { error: Error | null }> { + state: { error: Error | null } = { error: null }; + + static getDerivedStateFromError(error: Error) { + return { error }; + } + + render() { + const { error } = this.state; + return error ? this.setState({ error: null })} /> : this.props.children; + } +} diff --git a/components/AppShell.tsx b/components/AppShell.tsx index 68deb1d2f..80e53ccdb 100644 --- a/components/AppShell.tsx +++ b/components/AppShell.tsx @@ -1,8 +1,8 @@ "use client"; import { useState, useCallback, useRef, useEffect, useLayoutEffect, useMemo } from "react"; -import dynamic from "next/dynamic"; -import { useRouter, useSearchParams } from "next/navigation"; +import dynamic from "@/lib/dynamic"; +import { useRouter, useSearchParams } from "@/lib/navigation"; import { useGlobalKeyboardShortcuts } from "@/hooks/useKeyboardShortcuts"; import { useSidebarHistory } from "@/hooks/useSidebarHistory"; import { useModalDialog } from "@/hooks/useModalDialog"; @@ -1223,7 +1223,7 @@ export function AppShell({ appName }: { appName: string }) { setSystemPrompt(null); setSystemPromptLoading(false); setActiveTopPanel(null); - router.replace("/", { scroll: false }); + router.replace("/"); }, [router, selectedSession]); const handleSelectSession = useCallback((session: SessionInfo, isRestore = false) => { @@ -1255,7 +1255,7 @@ export function AppShell({ appName }: { appName: string }) { // Skip router.replace when restoring from URL — the param is already correct // and calling replace in production Next.js triggers a Suspense remount loop if (!isRestore) { - router.replace(`?session=${encodeURIComponent(session.id)}`, { scroll: false }); + router.replace(`?session=${encodeURIComponent(session.id)}`); } }, [router, isMobile, selectedSession?.id]); @@ -1274,7 +1274,7 @@ export function AppShell({ appName }: { appName: string }) { setSidebarOpen(false); requestAnimationFrame(() => chatInputRef.current?.focus()); } - router.replace("/", { scroll: false }); + router.replace("/"); }, [router, isMobile]); // ---- In-app Navigate back / forward over visited chat views ---- @@ -1399,7 +1399,7 @@ export function AppShell({ appName }: { appName: string }) { setSelectedSession(session); setRefreshKey((k) => k + 1); hydrateSelectedSession(session.id); - router.replace(`?session=${encodeURIComponent(session.id)}`, { scroll: false }); + router.replace(`?session=${encodeURIComponent(session.id)}`); }, [router, hydrateSelectedSession]); const handleSessionMoved = useCallback((oldId: string, newId: string) => { @@ -1410,7 +1410,7 @@ export function AppShell({ appName }: { appName: string }) { hydrateSelectedSession(newId); // This is the same conversation. Preserve ChatWindow's run/edit fences // and its mounted composer, including unfinished attachments and audio. - router.replace(`?session=${encodeURIComponent(newId)}`, { scroll: false }); + router.replace(`?session=${encodeURIComponent(newId)}`); }, [router, hydrateSelectedSession]); const handleAgentEnd = useCallback(() => { @@ -1502,7 +1502,7 @@ export function AppShell({ appName }: { appName: string }) { path: "", })); hydrateSelectedSession(newSessionId); - router.replace(`?session=${encodeURIComponent(newSessionId)}`, { scroll: false }); + router.replace(`?session=${encodeURIComponent(newSessionId)}`); }, [router, hydrateSelectedSession]); const handleSessionDeleted = useCallback((sessionId: string) => { @@ -1519,7 +1519,7 @@ export function AppShell({ appName }: { appName: string }) { setBranchActiveLeafId(null); setSystemPrompt(null); setActiveTopPanel(null); - router.replace("/", { scroll: false }); + router.replace("/"); } }, [selectedSession, router]); const handleInitialRestoreDone = useCallback(() => { @@ -1556,7 +1556,7 @@ export function AppShell({ appName }: { appName: string }) { if (attemptsLeft > 0) { archiveRetryTimerRef.current = setTimeout(() => void selectRestoredSession(attemptsLeft - 1), 300); } else if (activeSessionIdRef.current === sessionAtRestoreStart) { - router.replace(`?session=${encodeURIComponent(sessionId)}`, { scroll: false }); + router.replace(`?session=${encodeURIComponent(sessionId)}`); } }; diff --git a/components/ChatWindow.tsx b/components/ChatWindow.tsx index c04749448..a44118769 100644 --- a/components/ChatWindow.tsx +++ b/components/ChatWindow.tsx @@ -1257,7 +1257,7 @@ export function ChatWindow({ session, newSessionCwd, newSessionHostId, hostStatu
- web v{process.env.NEXT_PUBLIC_APP_VERSION ?? "0.0.0"} + web v{process.env.OMP_WEB_PUBLIC_APP_VERSION ?? "0.0.0"}
diff --git a/components/CommandPaletteMount.tsx b/components/CommandPaletteMount.tsx index 64be79d56..b6a0233f9 100644 --- a/components/CommandPaletteMount.tsx +++ b/components/CommandPaletteMount.tsx @@ -1,6 +1,6 @@ "use client"; -import dynamic from "next/dynamic"; +import dynamic from "@/lib/dynamic"; import { useEffect, useState } from "react"; import type { SessionInfo } from "@/lib/types"; diff --git a/components/SessionSidebar-chrome.tsx b/components/SessionSidebar-chrome.tsx index 2dde5a106..db1b3ae25 100644 --- a/components/SessionSidebar-chrome.tsx +++ b/components/SessionSidebar-chrome.tsx @@ -318,7 +318,7 @@ function OmpWebTitle() { const scrambleTimerRef = useRef | null>(null); const reducedMotion = usePrefersReducedMotion(); - const target = showVersion ? `v${process.env.NEXT_PUBLIC_OMP_WEB_VERSION ?? "0.0.0"}` : "omp web"; + const target = showVersion ? `v${process.env.OMP_WEB_PUBLIC_APP_VERSION ?? "0.0.0"}` : "omp web"; const display = useScramble(target, scrambling, reducedMotion); const triggerScramble = useCallback((toVersion: boolean) => { diff --git a/components/SettingsConfig.tsx b/components/SettingsConfig.tsx index d4953b103..a49265add 100644 --- a/components/SettingsConfig.tsx +++ b/components/SettingsConfig.tsx @@ -4,7 +4,7 @@ import { ToggleSwitch } from "@/components/ui/ToggleSwitch"; import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState, useTransition, cloneElement, isValidElement, type ReactElement, type ReactNode } from "react"; import { getSubmitDuringRunBehavior, getWordCompletionMode, setSubmitDuringRunBehavior, setWordCompletionMode, type SubmitDuringRunBehavior, type WordCompletionMode } from "@/lib/composer-prefs"; -import dynamic from "next/dynamic"; +import dynamic from "@/lib/dynamic"; import { ArrowDown, ArrowLeft, ArrowUp, Copy, Download, ExternalLink, RefreshCw, RotateCcw, Search, Monitor, Play, Square, Trash2, X } from "lucide-react"; import { COMPACTION_METHODS, DEFAULT_COMPACTION_METHOD_ORDER, type CompactionMethod } from "@/lib/compaction-methods"; import { formatAgentEnvText, parseAgentEnvText, type AgentEnvErrorLabels } from "@/lib/omp/agent-env-policy"; diff --git a/docs/plans/2026-10-30-bun-runtime.md b/docs/plans/2026-10-30-bun-runtime.md index b23542cac..bb4b13ded 100644 --- a/docs/plans/2026-10-30-bun-runtime.md +++ b/docs/plans/2026-10-30-bun-runtime.md @@ -79,6 +79,8 @@ | `web-push` (VAPID, aes128gcm) | No built-in; works under Bun (spike probe 5) | Keep | | `fs.accessSync` returns `null` on Bun | — (semantics bug) | try/catch | | `eslint-config-next` / `tsc` | Bun has no linter or typechecker | `typescript-eslint` + `eslint-plugin-react-hooks`; `tsc` with `@types/bun` | +| `next/font/google` (4 families) | No Bun font loader. Bun's CSS bundler inlines every `url()` asset under 128 KiB as a base64 data URL and ignores `loader: { ".woff2": "file" }` (oven-sh/bun#24599) | Self-host `@fontsource-variable` woff2 (OFL) in `app/fonts/`; a `Bun.build` plugin (`onResolve`, `external: true`) keeps them as hashed `/assets/` URLs and `scripts/build-client.ts` copies them | +| `next/dynamic`, `next/navigation` (client) | `React.lazy` + `Suspense`; History API with `useSyncExternalStore` (Bun has no client router) | Replace (`lib/dynamic.tsx`, `lib/navigation.ts`) | **Bun.SQL (async) vs bun:sqlite for the notification store — assessment.** `lib/notification-hub.ts` calls the store synchronously on hot paths: - `publishNotification` (sync, called from session event handling) runs `listDevices` and `recordHistory`; diff --git a/eslint.config.mjs b/eslint.config.mjs index 53ccb7a64..d639c5e12 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -4,6 +4,7 @@ import typescript from "eslint-config-next/typescript"; const eslintConfig = [ ...coreWebVitals, ...typescript, + { ignores: ["dist/**"] }, { rules: { "react-hooks/immutability": "off", diff --git a/lib/dynamic.tsx b/lib/dynamic.tsx new file mode 100644 index 000000000..eb1846865 --- /dev/null +++ b/lib/dynamic.tsx @@ -0,0 +1,19 @@ +// next/dynamic replacement: React.lazy + Suspense (client-only app, `ssr` is moot). +import { lazy, Suspense, type ComponentType } from "react"; + +type Loader

= () => Promise | { default: ComponentType

}>; + +export default function dynamic

(loader: Loader

, options?: { loading?: ComponentType; ssr?: boolean }): ComponentType

{ + const Lazy = lazy(async () => { + const loaded = await loader(); + return { default: "default" in loaded ? loaded.default : loaded }; + }); + const Loading = options?.loading; + return function DynamicComponent(props: P) { + return ( + : null}> + + + ); + }; +} diff --git a/lib/event-stream.ts b/lib/event-stream.ts index cefdf32b2..4f8f23b1e 100644 --- a/lib/event-stream.ts +++ b/lib/event-stream.ts @@ -37,7 +37,7 @@ interface WorkerPort { // Content-hashed at build time (next.config.ts) so a new worker version gets // a new SharedWorker instead of old tabs' copy speaking a stale protocol. -const WORKER_URL = `/event-stream-worker.js?v=${process.env.NEXT_PUBLIC_EVENT_STREAM_WORKER_VERSION ?? "dev"}`; +const WORKER_URL = `/event-stream-worker.js?v=${process.env.OMP_WEB_PUBLIC_EVENT_STREAM_WORKER_VERSION ?? "dev"}`; class Transport { private nextId = 1; diff --git a/lib/markdown.ts b/lib/markdown.ts index b9b39497c..766486377 100644 --- a/lib/markdown.ts +++ b/lib/markdown.ts @@ -59,7 +59,7 @@ function getRawCodeClosePattern(tag: string): RegExp { return RAW_CODE_CLOSE_PATTERNS[tag] ?? new RegExp(``, "i"); } -/** Loads remark-math + rehype-katex + the KaTeX CSS once, caching module-level. */ +/** Loads remark-math + rehype-katex once (module-level cache) and links the KaTeX CSS the server serves at /katex/. */ export function loadMathMarkdownPlugins(): Promise { if (!mathMarkdownPluginsPromise) { mathMarkdownPluginsPromise = (async () => { @@ -67,9 +67,13 @@ export function loadMathMarkdownPlugins(): Promise { import("remark-math").then((m) => m.default), import("rehype-katex").then((m) => m.default), ]); - if (typeof window !== "undefined") { - // KaTeX styles are only needed (and only loadable) in the browser. - await import("katex/dist/katex.min.css"); + if (typeof document !== "undefined" && !document.querySelector("link[data-katex]")) { + // Linked rather than imported: the stylesheet and its fonts stay out of the entry chunk. + const link = document.createElement("link"); + link.rel = "stylesheet"; + link.href = "/katex/katex.min.css"; + link.dataset.katex = ""; + document.head.append(link); } mathMarkdownPlugins = { remarkPlugins: [...baseMarkdownPlugins.remarkPlugins, remarkMath], diff --git a/lib/navigation.test.mjs b/lib/navigation.test.mjs new file mode 100644 index 000000000..3b1bd8cdd --- /dev/null +++ b/lib/navigation.test.mjs @@ -0,0 +1,38 @@ +import "../tests/setup-dom.mjs"; +import assert from "node:assert/strict"; +import test, { afterEach } from "node:test"; +const { act, cleanup, renderHook } = await import("@testing-library/react/pure.js"); + +const { useRouter, useSearchParams } = await import("./navigation.ts"); + +const renderNav = () => renderHook(() => ({ router: useRouter(), params: useSearchParams() })); + +afterEach(() => { + cleanup(); + window.history.replaceState(null, "", "/"); +}); + +test("replace updates the search params without adding a history entry", () => { + const { result } = renderNav(); + const length = window.history.length; + act(() => result.current.router.replace("/?session=b")); + assert.equal(result.current.params.get("session"), "b"); + assert.equal(window.history.length, length); +}); + +test("push adds a history entry and updates the search params", () => { + const { result } = renderNav(); + const length = window.history.length; + act(() => result.current.router.push("/?session=c")); + assert.equal(result.current.params.get("session"), "c"); + assert.equal(window.history.length, length + 1); +}); + +test("popstate re-renders with the new search", () => { + const { result } = renderNav(); + window.history.replaceState(null, "", "/?session=d"); + act(() => { + window.dispatchEvent(new window.Event("popstate")); + }); + assert.equal(result.current.params.get("session"), "d"); +}); diff --git a/lib/navigation.ts b/lib/navigation.ts new file mode 100644 index 000000000..f16fcedb9 --- /dev/null +++ b/lib/navigation.ts @@ -0,0 +1,32 @@ +// The two next/navigation hooks AppShell uses (useRouter, useSearchParams), over the History API. +import { useMemo, useSyncExternalStore } from "react"; + +const EVENT = "omp:navigate"; +const subscribe = (notify: () => void) => { + window.addEventListener("popstate", notify); + window.addEventListener(EVENT, notify); + return () => { + window.removeEventListener("popstate", notify); + window.removeEventListener(EVENT, notify); + }; +}; + +export function useSearchParams(): URLSearchParams { + const search = useSyncExternalStore(subscribe, () => window.location.search); + return useMemo(() => new URLSearchParams(search), [search]); +} + +const navigate = (method: "pushState" | "replaceState") => (url: string) => { + window.history[method](window.history.state, "", url); + window.dispatchEvent(new Event(EVENT)); +}; +const router = { + replace: navigate("replaceState"), + push: navigate("pushState"), + back: () => window.history.back(), + refresh: () => window.location.reload(), +}; + +export function useRouter() { + return router; +} diff --git a/next.config.ts b/next.config.ts index 021b63d53..56fbddbe9 100644 --- a/next.config.ts +++ b/next.config.ts @@ -128,9 +128,8 @@ const nextConfig = (phase: string): NextConfig => { return [globalRule, fileRule, staticImmutableRule, rootNoCacheRule]; }, env: { - NEXT_PUBLIC_APP_VERSION: version, - NEXT_PUBLIC_OMP_WEB_VERSION: version, - NEXT_PUBLIC_EVENT_STREAM_WORKER_VERSION: eventStreamWorkerVersion, + OMP_WEB_PUBLIC_APP_VERSION: version, + OMP_WEB_PUBLIC_EVENT_STREAM_WORKER_VERSION: eventStreamWorkerVersion, }, }; }; diff --git a/package-lock.json b/package-lock.json index 1ccc36479..facb17de9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -52,6 +52,7 @@ "@types/react-dom": "^19", "@types/react-syntax-highlighter": "^15.5.13", "@types/web-push": "^3.6.4", + "bun-plugin-tailwind": "0.1.2", "eslint": "^9", "eslint-config-next": "16.3.4", "jsdom": "^29.1.1", @@ -4239,6 +4240,16 @@ "@oven/bun-windows-x64": "1.4.4" } }, + "node_modules/bun-plugin-tailwind": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/bun-plugin-tailwind/-/bun-plugin-tailwind-0.1.2.tgz", + "integrity": "sha512-41jNC1tZRSK3s1o7pTNrLuQG8kL/0vR/JgiTmZAJ1eHwe0w5j6HFPKeqEk0WAD13jfrUC7+ULuewFBBCoADPpg==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "bun": ">=1.0.0" + } + }, "node_modules/bun-types": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.4.4.tgz", diff --git a/package.json b/package.json index dbf4ba101..ed3a727e7 100644 --- a/package.json +++ b/package.json @@ -95,6 +95,7 @@ "@types/react-dom": "^19", "@types/react-syntax-highlighter": "^15.5.13", "@types/web-push": "^3.6.4", + "bun-plugin-tailwind": "0.1.2", "eslint": "^9", "eslint-config-next": "16.3.4", "jsdom": "^29.1.1", diff --git a/scripts/build-client.ts b/scripts/build-client.ts new file mode 100644 index 000000000..5f6b73156 --- /dev/null +++ b/scripts/build-client.ts @@ -0,0 +1,49 @@ +// Bundles the SPA (app/index.html) into dist/: index.html plus hashed files under dist/assets/. +import { rmSync } from "node:fs"; +import path from "node:path"; +import type { BunPlugin } from "bun"; +import tailwind from "bun-plugin-tailwind"; +import { clientEnv } from "../server/client-env"; + +const root = path.join(import.meta.dir, ".."); +const outdir = path.join(root, "dist"); +rmSync(outdir, { recursive: true, force: true }); + +// Bun's CSS bundler inlines every url() asset under 128 KiB as a base64 data: URL and has no option to stop it +// (oven-sh/bun#24599; `loader: { ".woff2": "file" }` is ignored there). That would put ~250 KB of fonts into the +// render-blocking entry CSS, so woff2 files resolve as external /assets URLs and are copied after the build. +const fonts = new Map(); +const emitFonts: BunPlugin = { + name: "emit-fonts", + setup(build) { + build.onResolve({ filter: /\.woff2$/ }, async (args) => { + const source = path.resolve(args.resolveDir, args.path); + const hash = Bun.hash(await Bun.file(source).arrayBuffer()).toString(36); + const url = `/assets/${path.basename(source, ".woff2")}-${hash}.woff2`; + fonts.set(url, source); + return { path: url, external: true }; + }); + }, +}; + +const result = await Bun.build({ + entrypoints: [path.join(root, "app", "index.html")], + outdir, + target: "browser", + minify: true, + splitting: true, + sourcemap: "none", + publicPath: "/", + naming: { entry: "[name].[ext]", chunk: "assets/[name]-[hash].[ext]", asset: "assets/[name]-[hash].[ext]" }, + plugins: [tailwind, emitFonts], + define: { + "process.env.NODE_ENV": JSON.stringify("production"), + ...Object.fromEntries(Object.entries(clientEnv(root)).map(([key, value]) => [`process.env.${key}`, JSON.stringify(value)])), + }, + throw: false, +}); + +for (const log of result.logs) console.log(log); +if (!result.success) process.exit(1); +for (const [url, source] of fonts) await Bun.write(path.join(outdir, url), Bun.file(source)); +console.log(`built ${result.outputs.length + fonts.size} files into ${path.relative(process.cwd(), outdir) || "."}`); diff --git a/server/client-env.test.ts b/server/client-env.test.ts new file mode 100644 index 000000000..8999f8985 --- /dev/null +++ b/server/client-env.test.ts @@ -0,0 +1,17 @@ +import assert from "node:assert/strict"; +import { createHash } from "node:crypto"; +import { readFileSync } from "node:fs"; +import path from "node:path"; +import test from "node:test"; +import { clientEnv } from "./client-env"; + +const root = path.join(import.meta.dir, ".."); + +test("clientEnv carries the package version and the worker content hash", () => { + const { version } = JSON.parse(readFileSync(path.join(root, "package.json"), "utf8")) as { version: string }; + const workerHash = createHash("sha256").update(readFileSync(path.join(root, "public", "event-stream-worker.js"))).digest("hex").slice(0, 12); + assert.deepEqual(clientEnv(root), { + OMP_WEB_PUBLIC_APP_VERSION: version, + OMP_WEB_PUBLIC_EVENT_STREAM_WORKER_VERSION: workerHash, + }); +}); diff --git a/server/client-env.ts b/server/client-env.ts new file mode 100644 index 000000000..a5e572c50 --- /dev/null +++ b/server/client-env.ts @@ -0,0 +1,19 @@ +import { createHash } from "node:crypto"; +import { readFileSync } from "node:fs"; +import path from "node:path"; + +// Build-time constants for the browser bundle; the build script and the dev server use the same values. +export function clientEnv(root: string) { + const { version } = JSON.parse(readFileSync(path.join(root, "package.json"), "utf8")) as { version: string }; + // public/event-stream-worker.js is served as-is (not bundled). SharedWorkers + // are keyed by URL, so hash its content into the URL: a changed worker gets a + // fresh instance instead of tabs attaching to a stale copy still running. + const eventStreamWorkerVersion = createHash("sha256") + .update(readFileSync(path.join(root, "public", "event-stream-worker.js"))) + .digest("hex") + .slice(0, 12); + return { + OMP_WEB_PUBLIC_APP_VERSION: version, + OMP_WEB_PUBLIC_EVENT_STREAM_WORKER_VERSION: eventStreamWorkerVersion, + }; +} From c0efa93c43044e4d4cd5686d44d2b9f9fc64d51f Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 11:24:02 +0000 Subject: [PATCH 07/81] fix(client): pre-paint theme-color, awaited KaTeX CSS, favicon --- app/client.tsx | 2 -- app/index.html | 2 ++ lib/markdown-katex-css.test.mjs | 41 ++++++++++++++++++++++++++++++++ lib/markdown.ts | 27 ++++++++++++++------- {app => public}/favicon.ico | Bin 5 files changed, 61 insertions(+), 11 deletions(-) create mode 100644 lib/markdown-katex-css.test.mjs rename {app => public}/favicon.ico (100%) diff --git a/app/client.tsx b/app/client.tsx index 70963b401..7915a3323 100644 --- a/app/client.tsx +++ b/app/client.tsx @@ -5,7 +5,6 @@ import { AppErrorBoundary } from "@/components/AppErrorBoundary"; import { AppShell } from "@/components/AppShell"; import { IosFocusZoomGuard } from "@/components/IosFocusZoomGuard"; import { LoginForm } from "@/components/LoginForm"; -import { ThemeColor } from "@/hooks/useTheme"; function RouteLoadingFallback() { return ( @@ -40,7 +39,6 @@ createRoot(document.getElementById("root")!).render( - {location.pathname === "/login" ? ( ) : ( diff --git a/app/index.html b/app/index.html index 037eedc8e..75c32d204 100644 --- a/app/index.html +++ b/app/index.html @@ -11,6 +11,8 @@ + + diff --git a/lib/markdown-katex-css.test.mjs b/lib/markdown-katex-css.test.mjs new file mode 100644 index 000000000..8d42a505e --- /dev/null +++ b/lib/markdown-katex-css.test.mjs @@ -0,0 +1,41 @@ +import "../tests/setup-dom.mjs"; +import assert from "node:assert/strict"; +import test, { afterEach } from "node:test"; + +let freshImport = 0; +const loadFresh = async () => (await import(`./markdown.ts?fresh=${freshImport++}`)).loadMathMarkdownPlugins; +const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); + +async function katexLink() { + for (let attempt = 0; attempt < 200; attempt++) { + const link = document.querySelector("link[data-katex]"); + if (link) return link; + await sleep(10); + } + throw new Error("the KaTeX stylesheet link was never appended"); +} + +afterEach(() => { + document.head.replaceChildren(); +}); + +for (const event of ["load", "error"]) { + test(`math plugins wait for the KaTeX stylesheet to ${event} and link it once`, async () => { + const loadMathMarkdownPlugins = await loadFresh(); + let settled = false; + const first = loadMathMarkdownPlugins().then((plugins) => { + settled = true; + return plugins; + }); + const link = await katexLink(); + assert.equal(link.getAttribute("href"), "/katex/katex.min.css"); + await sleep(20); + assert.equal(settled, false); + + link.dispatchEvent(new window.Event(event)); + const plugins = await first; + + assert.equal(await loadMathMarkdownPlugins(), plugins); + assert.equal(document.querySelectorAll("link[data-katex]").length, 1); + }); +} diff --git a/lib/markdown.ts b/lib/markdown.ts index 766486377..b3492e754 100644 --- a/lib/markdown.ts +++ b/lib/markdown.ts @@ -59,7 +59,23 @@ function getRawCodeClosePattern(tag: string): RegExp { return RAW_CODE_CLOSE_PATTERNS[tag] ?? new RegExp(``, "i"); } -/** Loads remark-math + rehype-katex once (module-level cache) and links the KaTeX CSS the server serves at /katex/. */ +let katexCssPromise: Promise | undefined; + +/** Links the KaTeX CSS (served at /katex/, kept out of the entry chunk) once; settles on load or error so a failed fetch never blocks rendering. */ +function loadKatexCss(): Promise { + katexCssPromise ??= new Promise((resolve) => { + const link = document.createElement("link"); + link.rel = "stylesheet"; + link.href = "/katex/katex.min.css"; + link.dataset.katex = ""; + link.addEventListener("load", () => resolve()); + link.addEventListener("error", () => resolve()); + document.head.append(link); + }); + return katexCssPromise; +} + +/** Loads remark-math + rehype-katex once (module-level cache) and waits for the KaTeX CSS in the browser. */ export function loadMathMarkdownPlugins(): Promise { if (!mathMarkdownPluginsPromise) { mathMarkdownPluginsPromise = (async () => { @@ -67,14 +83,7 @@ export function loadMathMarkdownPlugins(): Promise { import("remark-math").then((m) => m.default), import("rehype-katex").then((m) => m.default), ]); - if (typeof document !== "undefined" && !document.querySelector("link[data-katex]")) { - // Linked rather than imported: the stylesheet and its fonts stay out of the entry chunk. - const link = document.createElement("link"); - link.rel = "stylesheet"; - link.href = "/katex/katex.min.css"; - link.dataset.katex = ""; - document.head.append(link); - } + if (typeof document !== "undefined") await loadKatexCss(); mathMarkdownPlugins = { remarkPlugins: [...baseMarkdownPlugins.remarkPlugins, remarkMath], rehypePlugins: [ diff --git a/app/favicon.ico b/public/favicon.ico similarity index 100% rename from app/favicon.ico rename to public/favicon.ico From 2ab8d28daca6ebc816b5583657fd46f618b34339 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 11:59:13 +0000 Subject: [PATCH 08/81] fix(events): re-stat a watched file after a dropped fs.watch event Bun's fs.watch drops an event that arrives within ~2 ms of the previous one, so a rapid second save never reached the file viewer. Re-stat once 50 ms after the last event (cleared on unsubscribe) and report a deletion once. --- app/error.tsx | 3 - app/global-error.tsx | 63 ---------------- app/layout.tsx | 87 --------------------- app/login/page.tsx | 5 -- app/page.tsx | 42 ----------- instrumentation.ts | 7 -- lib/event-stream-hub.test.mjs | 37 +++++++++ lib/event-stream-hub.ts | 37 ++++++--- lib/security-headers.test.mjs | 70 ----------------- next.config.ts | 137 ---------------------------------- postcss.config.mjs | 8 -- {app => public}/icon.svg | 0 12 files changed, 62 insertions(+), 434 deletions(-) delete mode 100644 app/error.tsx delete mode 100644 app/global-error.tsx delete mode 100644 app/layout.tsx delete mode 100644 app/login/page.tsx delete mode 100644 app/page.tsx delete mode 100644 instrumentation.ts delete mode 100644 lib/security-headers.test.mjs delete mode 100644 next.config.ts delete mode 100644 postcss.config.mjs rename {app => public}/icon.svg (100%) diff --git a/app/error.tsx b/app/error.tsx deleted file mode 100644 index c8945a4be..000000000 --- a/app/error.tsx +++ /dev/null @@ -1,3 +0,0 @@ -"use client"; - -export { AppCrashScreen as default } from "@/components/AppErrorBoundary"; diff --git a/app/global-error.tsx b/app/global-error.tsx deleted file mode 100644 index 14ba12257..000000000 --- a/app/global-error.tsx +++ /dev/null @@ -1,63 +0,0 @@ -"use client"; - -import { useEffect } from "react"; - -// Global error boundary — this must NOT import from @/lib/* because the error -// may be caused by a module loading failure. Use inline minimal styles and -// hardcoded English text (this is the absolute fallback). -export default function GlobalError({ - error, - reset, -}: { - error: Error & { digest?: string }; - reset: () => void; -}) { - useEffect(() => { - console.error("Global application error:", error); - }, [error]); - - return ( - - -

-

- Something went wrong -

-

- An unexpected error occurred. Try reloading the page. -

- -
- - - ); -} diff --git a/app/layout.tsx b/app/layout.tsx deleted file mode 100644 index 5c67b6cbe..000000000 --- a/app/layout.tsx +++ /dev/null @@ -1,87 +0,0 @@ -import type { Metadata, Viewport } from "next"; -import { headers } from "next/headers"; -import Script from "next/script"; -import { ThemeColor } from "@/hooks/useTheme"; -import { IosFocusZoomGuard } from "@/components/IosFocusZoomGuard"; -import { SIDEBAR_HISTORY_BRIDGE_SCRIPT } from "@/lib/sidebar-history-bridge"; -import { getInstallName } from "@/lib/install-name"; -import "./globals.css"; - -export async function generateMetadata(): Promise { - const title = getInstallName(await headers()); - return { - title, - description: "Web UI for the oh-my-pi (omp) coding agent", - // PWA-like behavior on iOS: standalone chrome, no telephone autodetect. - appleWebApp: { - capable: true, - title, - statusBarStyle: "default", - }, - formatDetection: { - telephone: false, - }, - }; -} - -// `viewportFit: cover` honors safe-area-inset on notched devices. -// `interactiveWidget: resizes-content` makes the soft keyboard shrink the -// layout viewport, keeping the composer above the keyboard. -export const viewport: Viewport = { - width: "device-width", - initialScale: 1, - viewportFit: "cover", - interactiveWidget: "resizes-content", -}; - -export default function RootLayout({ - children, -}: { - children: React.ReactNode; -}) { - return ( - - - - - - {/* Register before Next's router. Owned sidebar traversals must be handled - before the router can synchronously restore an older session URL. */} - - {/* Apply the stored theme and its CSS background to browser chrome before - first paint. The hydrated hook keeps both in sync afterward. */} - diff --git a/bin/omp-web-security.test.mjs b/bin/omp-web-security.test.mjs index 3c2c4e284..78d0ce7bf 100644 --- a/bin/omp-web-security.test.mjs +++ b/bin/omp-web-security.test.mjs @@ -11,7 +11,7 @@ const require = createRequire(import.meta.url); const { verifyPassword } = require("./omp-web-password-hash.js"); const binDir = fileURLToPath(new URL(".", import.meta.url)); -/** Run the launcher against a stub `next` that records the environment it was started with. */ +/** Run the launcher against a stub `server/main.ts` that records the environment it was started with. */ async function launch(env) { const pkg = await mkdtemp(join(tmpdir(), "ompweb-launch-")); try { @@ -19,11 +19,12 @@ async function launch(env) { for (const name of await readdir(binDir)) { if (name.endsWith(".js")) await copyFile(join(binDir, name), join(pkg, "bin", name)); } - await mkdir(join(pkg, ".next")); - const nextBin = join(pkg, "node_modules", "next", "dist", "bin"); - await mkdir(nextBin, { recursive: true }); + await mkdir(join(pkg, "dist")); + await writeFile(join(pkg, "dist", "index.html"), ""); + await mkdir(join(pkg, "server")); const dump = join(pkg, "server-env.json"); - await writeFile(join(nextBin, "next"), `require("fs").writeFileSync(${JSON.stringify(dump)}, JSON.stringify(process.env));`); + // The package has no bun dependency, so the launcher runs this under the Bun on PATH. + await writeFile(join(pkg, "server", "main.ts"), `require("fs").writeFileSync(${JSON.stringify(dump)}, JSON.stringify(process.env));`); const result = spawnSync("node", [join(pkg, "bin", "omp-web.js"), "--no-open", "-p", "0"], { env: { PATH: process.env.PATH, HOME: pkg, ...env }, encoding: "utf8", diff --git a/bin/omp-web.js b/bin/omp-web.js index f8c617d6b..861721d5d 100755 --- a/bin/omp-web.js +++ b/bin/omp-web.js @@ -69,6 +69,8 @@ const { isPortAvailable } = require("./port-availability"); const { terminateChildProcess, wireChildProcessLifecycle } = require("./process-lifecycle"); // eslint-disable-next-line @typescript-eslint/no-require-imports const { getAccessibleAddresses, getBrowserUrl, formatAddressBanner, isLoopbackHost } = require("./network-addresses"); +// module.require: bin/ files add no new eslint-disable comments (see bin/bun-runtime.js). +const { resolveBunBinary } = module.require("./bun-runtime"); const UPDATE_PROTOCOL = 1; const UPDATE_MESSAGE = "ompweb:update-control"; @@ -134,8 +136,8 @@ function runRestartGate(startMessageType) { process.once("disconnect", () => stop()); process.on("message", (message) => { if (!child) { - if (message?.type !== startMessageType || !Array.isArray(message.args)) return; - child = spawnChild(process.execPath, message.args, { + if (message?.type !== startMessageType || !Array.isArray(message.args) || message.args.length === 0) return; + child = spawnChild(message.args[0], message.args.slice(1), { cwd: process.cwd(), env: process.env, stdio: ["inherit", "pipe", "inherit", "ipc"], @@ -154,22 +156,6 @@ function runRestartGate(startMessageType) { }); } const pkgDir = path.join(__dirname, ".."); -const nextDir = path.join(pkgDir, ".next"); - -function resolveNextBin(packageDirectory) { - try { - return require.resolve("next/dist/bin/next", { paths: [packageDirectory] }); - } catch { - try { - const nextPackage = require.resolve("next/package.json", { paths: [packageDirectory] }); - return path.join(path.dirname(nextPackage), "dist", "bin", "next"); - } catch { - return path.join(packageDirectory, "node_modules", "next", "dist", "bin", "next"); - } - } -} - -const nextBin = resolveNextBin(pkgDir); const launchOptions = parseLaunchOptions(); if (launchOptions.help || launchOptions.version) { @@ -251,8 +237,10 @@ if (passwordHash !== undefined) { } const passwordEnabled = passwordHash !== undefined; - -const nextArgs = ["start", "-p", port, "-H", hostname]; +// Resolved at every spawn, so a restart after an update finds the updated Bun. +function serverCommand() { + return [resolveBunBinary(pkgDir), path.join(pkgDir, "server", "main.ts"), "-p", String(port), "-H", String(hostname)]; +} const restartDescriptor = JSON.stringify({ launcherPath: path.join(pkgDir, "bin", "omp-web.js"), hostname: String(hostname), @@ -513,8 +501,8 @@ function trackServer(child) { return child; } -function spawnServer() { - return trackServer(spawn(process.execPath, [nextBin, ...nextArgs], { +function spawnServer(command) { + return trackServer(spawn(command[0], command.slice(1), { cwd: pkgDir, stdio: ["inherit", "pipe", "inherit", "ipc"], env: serverEnvironment(), @@ -596,8 +584,9 @@ async function waitForRestartRequest(control) { && request.action === "start" && Number.isInteger(request.generation) && request.generation === currentGeneration + 1) { + const command = serverCommand(); const child = trackServer(spawnRestartGate()); - if (await acknowledgeAndStartRestart(control, request, child, [nextBin, ...nextArgs])) return; + if (await acknowledgeAndStartRestart(control, request, child, command)) return; } await new Promise((resolve) => setTimeout(resolve, 100)); } @@ -614,7 +603,7 @@ async function waitForRestartRequest(control) { } async function main() { - if (!fs.existsSync(nextDir) || !fs.existsSync(nextBin)) { + if (!fs.existsSync(path.join(pkgDir, "dist", "index.html")) || !fs.existsSync(path.join(pkgDir, "server", "main.ts"))) { console.error("Build artifacts not found. Please report this issue."); process.exit(1); } @@ -632,7 +621,14 @@ async function main() { process.exitCode = 1; return; } - spawnServer(); + let command; + try { + command = serverCommand(); + } catch (error) { + console.error(error.message); + process.exit(1); + } + spawnServer(command); } if (require.main === module) { @@ -646,7 +642,6 @@ module.exports = { acknowledgeAndStartRestart, acknowledgeRestartRequest, handleUpdateArm, - resolveNextBin, spawnRestartGate, startRestartGate, }; diff --git a/bunfig.toml b/bunfig.toml new file mode 100644 index 000000000..7aa7baa48 --- /dev/null +++ b/bunfig.toml @@ -0,0 +1,4 @@ +# Bun's dev server (server/dev.ts HTML import) bundles the SPA with these; scripts/build-client.ts passes its own. +[serve.static] +plugins = ["bun-plugin-tailwind"] +env = "OMP_WEB_PUBLIC_*" diff --git a/components/ChatInput.tsx b/components/ChatInput.tsx index dacc49fc8..580d6f73c 100644 --- a/components/ChatInput.tsx +++ b/components/ChatInput.tsx @@ -2128,7 +2128,6 @@ export const ChatInput = memo(forwardRef(function ChatIn
{attachedImages.map((img, i) => (
- {/* eslint-disable-next-line @next/next/no-img-element */} , attached // area drops well below the tallest seen at this width, and closes when // the area grows well above its lowest since then. Comparing to // `innerHeight` cannot work: with `interactive-widget: resizes-content` - // (app/layout.tsx) the keyboard shrinks the layout viewport too. + // (app/index.html) the keyboard shrinks the layout viewport too. let width = window.innerWidth; let fullHeight = Math.max(visibleHeight(), window.innerHeight); // Lowest visible height while the keyboard is up; null while it is down. diff --git a/components/FileViewer.tsx b/components/FileViewer.tsx index 73a99d570..f6e1df2c5 100644 --- a/components/FileViewer.tsx +++ b/components/FileViewer.tsx @@ -536,7 +536,6 @@ function ImageViewer({ filePath, cwd, sourceSessionId, active = true }: Props) {
) : ( - // eslint-disable-next-line @next/next/no-img-element {filePath}; }, }} diff --git a/components/ImageLightbox.tsx b/components/ImageLightbox.tsx index 9e2dd2888..d22d8429d 100644 --- a/components/ImageLightbox.tsx +++ b/components/ImageLightbox.tsx @@ -75,7 +75,6 @@ export function ClickableImage({ src, fullSrc, alt, ...imgProps }: ClickableImag aria-label={alt ? t("imagePreview.openWithAlt", { alt }) : t("imagePreview.open")} title={alt ? t("imagePreview.openWithAlt", { alt }) : t("imagePreview.open")} > - {/* eslint-disable-next-line @next/next/no-img-element */} {alt {/* @@ -252,7 +251,6 @@ function ImageLightbox({ src, alt, onClose }: { src: ClickableImageProps["src"]; if (event.target === event.currentTarget) onClose(); }} > - {/* eslint-disable-next-line @next/next/no-img-element */} {alt}` to the end of ``, after the pre-paint theme script that reads `--bg` | No bundler option for tag placement | `scripts/build-client.ts` moves the link before the first inline script in `dist/index.html` (dev keeps Bun's order) | **Bun.SQL (async) vs bun:sqlite for the notification store — assessment.** `lib/notification-hub.ts` calls the store synchronously on hot paths: - `publishNotification` (sync, called from session event handling) runs `listDevices` and `recordHistory`; diff --git a/eslint.config.mjs b/eslint.config.mjs index d639c5e12..77d971668 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,10 +1,10 @@ -import coreWebVitals from "eslint-config-next/core-web-vitals"; -import typescript from "eslint-config-next/typescript"; +import reactHooks from "eslint-plugin-react-hooks"; +import tseslint from "typescript-eslint"; -const eslintConfig = [ - ...coreWebVitals, - ...typescript, - { ignores: ["dist/**"] }, +export default tseslint.config( + { ignores: ["dist/**", "spike/**"] }, + ...tseslint.configs.recommended, + reactHooks.configs.flat.recommended, { rules: { "react-hooks/immutability": "off", @@ -12,6 +12,4 @@ const eslintConfig = [ "react-hooks/set-state-in-effect": "off", }, }, -]; - -export default eslintConfig; +); diff --git a/hooks/useTheme.ts b/hooks/useTheme.ts index 4c8531182..d64a7e25e 100644 --- a/hooks/useTheme.ts +++ b/hooks/useTheme.ts @@ -1,6 +1,6 @@ "use client"; -import { createElement, useCallback, useEffect, useState, useSyncExternalStore } from "react"; +import { useCallback, useEffect, useState, useSyncExternalStore } from "react"; export type LightTheme = "light" | "one-light" | "catppuccin-latte" | "rose-pine-dawn"; export type DarkTheme = @@ -105,15 +105,6 @@ export function nextThemePreference(preference: ThemePreference): ThemePreferenc return isDarkTheme(preference as Theme) ? "light" : "dark"; } -export function ThemeColor() { - // React matches hoisted metadata by content during hydration. Adopt the - // pre-paint value so it reuses this node instead of adding a fallback copy. - const color = typeof document === "undefined" - ? null - : document.querySelector('meta[name="theme-color"]')?.getAttribute("content"); - return createElement("meta", { name: "theme-color", content: color || "#000000" }); -} - export function applyDomTheme(theme: Theme): void { if (typeof document === "undefined") return; const dark = isDarkTheme(theme); diff --git a/instrumentation.node.ts b/instrumentation.node.ts index 1e5b996e4..eb33cf7aa 100644 --- a/instrumentation.node.ts +++ b/instrumentation.node.ts @@ -81,6 +81,13 @@ export async function register(): Promise { } })(); + // Modules add SIGINT/SIGTERM cleanup listeners (lib/rpc-manager.ts), and any + // listener cancels the default exit: end the process the way a signal would + // (130/143, as `next start` did). Their "exit" listeners still run. + for (const [signal, code] of [["SIGINT", 130], ["SIGTERM", 143]] as const) { + process.on(signal, () => process.exit(code)); + } + // Crash/stall journal: a long-running server that dies or wedges while the // user is away leaves no trace in a terminal that no longer exists (CLI runs // are killed with their terminal; pages then show endless loading until the @@ -102,12 +109,10 @@ export async function register(): Promise { const describe = (value: unknown) => (value instanceof Error ? `${value.name}: ${value.message}\n${value.stack ?? ""}` : String(value)); process.on("uncaughtException", (error) => { // A client disconnecting mid-request can surface here as an unhandled - // `Error: aborted` (ECONNRESET): for POSTs through proxy.ts, Next's body - // cloning drops the request's `error` listeners (replaceRequestBody, - // vercel/next.js#99278). That is a peer event, not a corrupted server: - // journal it (one line, no stack, so aborts cannot rotate real crash - // records out of the journal quickly) and keep serving, as Next's own - // handler does. + // `Error: aborted` (ECONNRESET) from a request stream nobody listens to. + // That is a peer event, not a corrupted server: journal it (one line, no + // stack, so aborts cannot rotate real crash records out of the journal + // quickly) and keep serving. if (error instanceof Error && error.message === "aborted" && (error as NodeJS.ErrnoException).code === "ECONNRESET") { appendDiag("client-abort", "uncaughtException Error: aborted (ECONNRESET)"); return; diff --git a/lib/directory-browser.ts b/lib/directory-browser.ts index 687263f8d..7b6de8d54 100644 --- a/lib/directory-browser.ts +++ b/lib/directory-browser.ts @@ -57,11 +57,7 @@ export async function resolveDirectory(directory: string): Promise { } export async function listDirectories(directory: string): Promise { - // Keep the directory argument opaque to Next's NFT build tracer. This is a - // user-selected path and must only be inspected at request time; tracing it - // as a static glob would walk the entire Windows profile during `next build`. - const readDirectory = Reflect.get(fsPromises, "readdir") as typeof fsPromises.readdir; - const entries = await readDirectory(directory, { withFileTypes: true }); + const entries = await fsPromises.readdir(directory, { withFileTypes: true }); // Skip broken, inaccessible, or non-directory symlinks. const candidates = await Promise.all(entries.map(async (entry) => { if (entry.isDirectory()) { diff --git a/lib/event-stream.ts b/lib/event-stream.ts index 4f8f23b1e..07bcce9eb 100644 --- a/lib/event-stream.ts +++ b/lib/event-stream.ts @@ -35,7 +35,7 @@ interface WorkerPort { onmessage: ((event: MessageEvent) => void) | null; } -// Content-hashed at build time (next.config.ts) so a new worker version gets +// Content-hashed at build time (server/client-env.ts) so a new worker version gets // a new SharedWorker instead of old tabs' copy speaking a stale protocol. const WORKER_URL = `/event-stream-worker.js?v=${process.env.OMP_WEB_PUBLIC_EVENT_STREAM_WORKER_VERSION ?? "dev"}`; diff --git a/lib/instrumentation-crash-policy.test.mjs b/lib/instrumentation-crash-policy.test.mjs index e41c73b09..cec54c264 100644 --- a/lib/instrumentation-crash-policy.test.mjs +++ b/lib/instrumentation-crash-policy.test.mjs @@ -16,17 +16,16 @@ const readOrEmpty = (file) => { } }; -// Runs instrumentation.node.ts's register() in a child, then throws `error` -// uncaught. Returns the exit status (0 = kept serving) plus the journals under -// the agent dir and under ~/.omp (the default, un-isolated location). -function throwAfterRegister(errorExpr, { agentDir = "agent" } = {}) { +// Runs instrumentation.node.ts's register() in a child, then `then`. Returns +// the exit status plus the journals under the agent dir and under ~/.omp (the +// default, un-isolated location). +function runAfterRegister(then, { agentDir = "agent" } = {}) { const home = mkdtempSync(join(tmpdir(), "omp-web-crash-policy-")); try { const script = ` const { register } = await import(${JSON.stringify(join(root, "instrumentation.node.ts"))}); await register(); - setTimeout(() => { throw ${errorExpr}; }, 0); - setTimeout(() => process.exit(0), 300); + ${then} `; const result = spawnSync(process.execPath, ["-e", script], { cwd: root, @@ -51,6 +50,25 @@ function throwAfterRegister(errorExpr, { agentDir = "agent" } = {}) { } } +// Throws `error` uncaught after register(); status 0 = kept serving. +const throwAfterRegister = (errorExpr, options) => runAfterRegister(` + setTimeout(() => { throw ${errorExpr}; }, 0); + setTimeout(() => process.exit(0), 300); +`, options); + +test("SIGINT and SIGTERM end the server even though modules listen for them", () => { + for (const [signal, code] of [["SIGINT", 130], ["SIGTERM", 143]]) { + // The first listener stands in for a module's cleanup (lib/rpc-manager.ts), + // which on its own cancels the default exit. + const { status, stderr } = runAfterRegister(` + process.once("${signal}", () => {}); + process.kill(process.pid, "${signal}"); + setTimeout(() => process.exit(0), 2000); + `); + assert.equal(status, code, `${signal}\n${stderr}`); + } +}); + test("a client disconnect surfacing as uncaught `aborted` is journaled without exiting", () => { const { status, journal, stderr } = throwAfterRegister(`Object.assign(new Error("aborted"), { code: "ECONNRESET" })`); assert.equal(status, 0, stderr); diff --git a/lib/rpc-manager.test.mjs b/lib/rpc-manager.test.mjs index 9d49ef9dc..7b8a1b429 100644 --- a/lib/rpc-manager.test.mjs +++ b/lib/rpc-manager.test.mjs @@ -1591,7 +1591,7 @@ test("reaping is disabled when the disconnect window is 0", async (t) => { test("neither cleanup timer keeps the event loop alive", async () => { // The reaper and the idle timer are cleanup deadlines, not work: an unref'd - // timer is what lets `next dev` and a test runner exit. A ref'd one pins a + // timer is what lets the dev server and a test runner exit. A ref'd one pins a // process that has nothing else pending for the full window. const moduleUrl = new URL("./rpc-manager.ts", import.meta.url).href; const script = ` diff --git a/lib/sidebar-history-bridge.ts b/lib/sidebar-history-bridge.ts index af8e74971..eb81efdbe 100644 --- a/lib/sidebar-history-bridge.ts +++ b/lib/sidebar-history-bridge.ts @@ -1,7 +1,6 @@ /** - * Injected with `beforeInteractive` (see app/layout.tsx) so it runs before - * hydration, and therefore before the App Router registers its own `popstate` - * listener. + * Injected by app/boot.ts before the app's modules evaluate, so it registers + * before any other `popstate` listener (lib/navigation.ts included). * * The re-dispatch is synchronous and carries the original event as `detail`, * so the sidebar hook can call `stopImmediatePropagation()` on the native event diff --git a/lib/web-auth.test.mjs b/lib/web-auth.test.mjs index 6a0d7b5b6..2bca5336d 100644 --- a/lib/web-auth.test.mjs +++ b/lib/web-auth.test.mjs @@ -5,8 +5,6 @@ import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; -const { NextRequest } = await import("next/server.js"); -const { unstable_doesMiddlewareMatch } = await import("next/experimental/testing/server.js"); const { createWebSession, isValidWebPassword, @@ -21,7 +19,7 @@ const { pinWebAuthSecretForTests, webAuthSecretPath, } = await import("./web-auth-secret.ts"); -const { config, proxy } = await import("../proxy.ts"); +const { proxy } = await import("../proxy.ts"); const PASSWORD = "correct horse battery staple"; // N = 2^12 for the test suite: the format and code path are identical, only @@ -29,7 +27,8 @@ const PASSWORD = "correct horse battery staple"; const PASSWORD_HASH = hashPassword(PASSWORD, { logN: 12 }); const TEST_SECRET = { salt: "a".repeat(43), key: "b".repeat(43) }; -function withEnvVars(values, run) { +/** Sets the password variables and pins the secret; returns the undo. */ +function setEnvVars(values) { const saved = new Map(); for (const name of ["OMP_WEB_PASSWORD_HASH", "OMP_WEB_PASSWORD"]) { saved.set(name, process.env[name]); @@ -37,17 +36,31 @@ function withEnvVars(values, run) { } for (const [name, value] of Object.entries(values)) process.env[name] = value; pinWebAuthSecretForTests(TEST_SECRET); - try { - return run(); - } finally { + return () => { for (const [name, value] of saved) { if (value === undefined) delete process.env[name]; else process.env[name] = value; } pinWebAuthSecretForTests(); + }; +} + +function withEnvVars(values, run) { + const restore = setEnvVars(values); + try { + return run(); + } finally { + restore(); } } +/** proxy() for a URL; a Next-style x-middleware-* header must never reach a client. */ +function gate(url, init) { + const response = proxy(new Request(url, init)); + for (const name of response?.headers.keys() ?? []) assert.doesNotMatch(name, /^x-middleware-/i, url); + return response; +} + test("accepts only the hashed password and validates signed sessions", () => { withEnvVars({ OMP_WEB_PASSWORD_HASH: PASSWORD_HASH }, () => { assert.equal(isWebPasswordEnabled(), true); @@ -156,29 +169,47 @@ test("creates and reuses an installation secret with restrictive permissions", ( test("redirects browser requests to the password screen and blocks unauthenticated APIs", () => { withEnvVars({ OMP_WEB_PASSWORD_HASH: PASSWORD_HASH }, () => { - const pageResponse = proxy(new NextRequest("http://localhost:30177/")); + const pageResponse = gate("http://localhost:30177/"); assert.equal(pageResponse.status, 307); assert.equal(pageResponse.headers.get("location"), "http://localhost:30177/login"); - const crossSitePageResponse = proxy(new NextRequest("http://localhost:30177/", { + const deepLink = gate("http://localhost:30177/?session=x"); + assert.equal(deepLink.status, 307); + assert.equal(deepLink.headers.get("location"), "http://localhost:30177/login?next=%2F%3Fsession%3Dx"); + + const crossSitePageResponse = gate("http://localhost:30177/", { headers: { "sec-fetch-site": "cross-site" }, - })); + }); assert.equal(crossSitePageResponse.status, 307); - const apiResponse = proxy(new NextRequest("http://localhost:30177/api/sessions")); + const apiResponse = gate("http://localhost:30177/api/sessions"); assert.equal(apiResponse.status, 401); - const signedInResponse = proxy(new NextRequest("http://localhost:30177/", { + assert.equal(gate("http://localhost:30177/", { headers: { cookie: `omp_web_session=${createWebSession()}` }, - })); - assert.equal(signedInResponse.status, 200); + }), null); + assert.equal(gate("http://localhost:30177/login", { + headers: { cookie: `omp_web_session=${createWebSession()}` }, + }).headers.get("location"), "http://localhost:30177/"); + assert.equal(gate("http://localhost:30177/login"), null); + assert.equal(gate("http://localhost:30177/api/web-auth/session", { method: "POST" }), null); + }); +}); + +test("without a password every request continues and /login leads home", () => { + withEnvVars({}, () => { + assert.equal(gate("http://localhost:30177/"), null); + assert.equal(gate("http://localhost:30177/api/sessions"), null); + const login = gate("http://localhost:30177/login"); + assert.equal(login.status, 307); + assert.equal(login.headers.get("location"), "http://localhost:30177/"); }); }); test("refuses every request while the password configuration is broken", () => { withEnvVars({ OMP_WEB_PASSWORD: "legacy-plaintext" }, () => { for (const url of ["http://localhost:30177/", "http://localhost:30177/api/sessions", "http://localhost:30177/login"]) { - const response = proxy(new NextRequest(url)); + const response = gate(url); assert.equal(response.status, 503, url); } }); @@ -187,14 +218,14 @@ test("refuses every request while the password configuration is broken", () => { test("accepts the trusted proxy header only when its SHA-256 matches the configured digest", () => { const previousDigest = process.env.OMP_WEB_TRUSTED_HEADER_SHA256; const digest = createHash("sha256").update("proxy-secret").digest("hex"); - const request = (path, value) => proxy(new NextRequest(`http://localhost:30177${path}`, { + const request = (path, value) => gate(`http://localhost:30177${path}`, { headers: value === undefined ? {} : { "x-omp-web-auth": value }, - })); + }); withEnvVars({ OMP_WEB_PASSWORD_HASH: PASSWORD_HASH }, () => { try { process.env.OMP_WEB_TRUSTED_HEADER_SHA256 = digest; - assert.equal(request("/", "proxy-secret").status, 200); - assert.equal(request("/api/sessions", "proxy-secret").status, 200); + assert.equal(request("/", "proxy-secret"), null); + assert.equal(request("/api/sessions", "proxy-secret"), null); assert.equal(request("/login", "proxy-secret").headers.get("location"), "http://localhost:30177/"); assert.equal(request("/api/sessions", "wrong").status, 401); assert.equal(request("/api/sessions", "proxy-secretX").status, 401); @@ -206,7 +237,7 @@ test("accepts the trusted proxy header only when its SHA-256 matches the configu assert.equal(request("/api/sessions", digest).status, 401); process.env.OMP_WEB_TRUSTED_HEADER_SHA256 = digest.toUpperCase(); - assert.equal(request("/api/sessions", "proxy-secret").status, 200, "uppercase digest"); + assert.equal(request("/api/sessions", "proxy-secret"), null, "uppercase digest"); // Unset, empty or malformed digest disables the header; nginx's empty value never matches. for (const value of [undefined, "", "proxy-secret", digest.slice(1), `${digest}0`, `${digest.slice(2)}zz`]) { @@ -222,17 +253,46 @@ test("accepts the trusted proxy header only when its SHA-256 matches the configu }); }); -test("leaves Next.js build assets outside password protection", () => { - assert.equal(unstable_doesMiddlewareMatch({ config, nextConfig: {}, url: "/_next/static/chunks/app.js" }), false); - assert.equal(unstable_doesMiddlewareMatch({ config, nextConfig: {}, url: "/api/sessions" }), true); +test("leaves the login page's assets, the icons and the service worker outside password protection", () => { + withEnvVars({ OMP_WEB_PASSWORD_HASH: PASSWORD_HASH }, () => { + for (const path of ["/sw.js", "/assets/a.js", "/_bun/client/index.js", "/favicon.ico", "/icon.svg", "/icon.png", "/icon-192.png", "/badge-96.png"]) { + assert.equal(gate(`http://localhost:30177${path}`), null, path); + } + assert.equal(gate("http://localhost:30177/api/sessions").status, 401); + assert.equal(gate("http://localhost:30177/event-stream-worker.js").status, 307); + }); }); test("leaves the host link to its own bearer check, and nothing else under /api/hosts", () => { - // The proxy would truncate host link uploads over 10 MB; the route authenticates them. - assert.equal(unstable_doesMiddlewareMatch({ config, nextConfig: {}, url: "/api/hosts/link" }), false); - assert.equal(unstable_doesMiddlewareMatch({ config, nextConfig: {}, url: "/api/hosts/link/blob/0b6f2c9e-1d2a-4c55-9a3e-7f1e2d3c4b5a" }), false); - assert.equal(unstable_doesMiddlewareMatch({ config, nextConfig: {}, url: "/api/hosts" }), true); - assert.equal(unstable_doesMiddlewareMatch({ config, nextConfig: {}, url: "/api/hosts/abc" }), true); - assert.equal(unstable_doesMiddlewareMatch({ config, nextConfig: {}, url: "/api/hosts/links" }), true); - assert.equal(unstable_doesMiddlewareMatch({ config, nextConfig: {}, url: "/api/hosts/link-settings" }), true); + withEnvVars({ OMP_WEB_PASSWORD_HASH: PASSWORD_HASH }, () => { + assert.equal(gate("http://localhost:30177/api/hosts/link"), null); + assert.equal(gate("http://localhost:30177/api/hosts/link/blob/x"), null); + assert.equal(gate("http://localhost:30177/api/hosts/link/blob/0b6f2c9e-1d2a-4c55-9a3e-7f1e2d3c4b5a"), null); + for (const path of ["/api/hosts", "/api/hosts/abc", "/api/hosts/links", "/api/hosts/linkx", "/api/hosts/link-settings"]) { + assert.equal(gate(`http://localhost:30177${path}`).status, 401, path); + } + }); +}); + +test("signing in sets an HttpOnly, SameSite=Lax session cookie, Secure only over https", async (t) => { + const { POST } = await import("../app/api/web-auth/session/route.ts"); + t.after(setEnvVars({ OMP_WEB_PASSWORD_HASH: PASSWORD_HASH })); + const signIn = async (headers) => { + const response = await POST(new Request("http://localhost:30177/api/web-auth/session", { + method: "POST", + headers: { "content-type": "application/json", ...headers }, + body: JSON.stringify({ password: PASSWORD }), + })); + assert.equal(response.status, 200); + return response.headers.get("set-cookie"); + }; + + const plain = await signIn({}); + assert.match(plain, /^omp_web_session=[^;]+;/); + assert.equal(isValidWebSession(/^omp_web_session=([^;]+)/.exec(plain)[1]), true); + for (const attribute of [/; HttpOnly(;|$)/i, /; Path=\/(;|$)/i, /; Max-Age=2592000(;|$)/i, /; SameSite=Lax(;|$)/i]) { + assert.match(plain, attribute); + } + assert.doesNotMatch(plain, /; Secure(;|$)/i); + assert.match(await signIn({ "x-forwarded-proto": "https" }), /; Secure(;|$)/i); }); diff --git a/package-lock.json b/package-lock.json index facb17de9..64fbbdaf6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,6 @@ "mammoth": "^1.12.2", "mdast-util-find-and-replace": "^3.0.2", "mermaid": "^11.17.2", - "next": "16.3.4", "react": "^19.2.8", "react-dom": "^19.2.8", "react-markdown": "^10.1.0", @@ -41,7 +40,6 @@ "ompweb-tray-linux": "bin/linux-tray.js" }, "devDependencies": { - "@tailwindcss/postcss": "^4.3.3", "@testing-library/dom": "^10.4.1", "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.7", @@ -54,30 +52,17 @@ "@types/web-push": "^3.6.4", "bun-plugin-tailwind": "0.1.2", "eslint": "^9", - "eslint-config-next": "16.3.4", + "eslint-plugin-react-hooks": "^7.0.1", "jsdom": "^29.1.1", - "postcss": "^8", "tailwindcss": "^4.3.3", "typescript": "^5", + "typescript-eslint": "^8.72.1", "typescript-language-server": "^6.0.0" }, "engines": { "node": ">=24.0.0" } }, - "node_modules/@alloc/quick-lru": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", - "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@antfu/install-pkg": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-1.1.0.tgz", @@ -198,28 +183,15 @@ "url": "https://opencollective.com/babel" } }, - "node_modules/@babel/core/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/@babel/generator": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", - "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.12.tgz", + "integrity": "sha512-2W76mhjrpQFO1lK5e8IvGYB2D0YZ7S2R1Z2BjO2ZUYuW+amcpK/z60U6ZZmzskwoa7sJ6XohP/Wg8H5KxXI/IA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.8", - "@babel/types": "^7.29.8", + "@babel/parser": "^7.29.12", + "@babel/types": "^7.29.11", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" @@ -288,9 +260,9 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", - "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "version": "7.29.11", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.11.tgz", + "integrity": "sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==", "dev": true, "license": "MIT", "engines": { @@ -318,27 +290,27 @@ } }, "node_modules/@babel/helpers": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", - "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", + "version": "7.29.10", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.10.tgz", + "integrity": "sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==", "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.29.7", - "@babel/types": "^7.29.7" + "@babel/types": "^7.29.8" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz", - "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==", + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.12.tgz", + "integrity": "sha512-WJ7JBp/Q4+z/ImydtI7jS6NVco5++632ExBemSX+Ysb+G1lCwQ5BVo3SY+jGGOcZXI4ZccbZSUSJLNBW6eEpJg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.29.8" + "@babel/types": "^7.29.11" }, "bin": { "parser": "bin/babel-parser.js" @@ -372,18 +344,18 @@ } }, "node_modules/@babel/traverse": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz", - "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==", + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.12.tgz", + "integrity": "sha512-MscXe/NAZcOkYEsRajHZFt3ynsb22PUi6CTrp5U7+RYycR9By84mn9mFN54YgfITiqK4hFx3Ju3tZSyzfpS5ew==", "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.8", + "@babel/generator": "^7.29.12", "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.8", + "@babel/parser": "^7.29.12", "@babel/template": "^7.29.7", - "@babel/types": "^7.29.8", + "@babel/types": "^7.29.11", "debug": "^4.3.1" }, "engines": { @@ -391,13 +363,13 @@ } }, "node_modules/@babel/types": { - "version": "7.29.8", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", - "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", + "version": "7.29.11", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz", + "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-string-parser": "^7.29.11", "@babel/helper-validator-identifier": "^7.29.7" }, "engines": { @@ -629,18 +601,6 @@ "node": ">=20.19.0" } }, - "node_modules/@emnapi/core": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.3.tgz", - "integrity": "sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/wasi-threads": "1.2.3", - "tslib": "^2.4.0" - } - }, "node_modules/@emnapi/runtime": { "version": "1.11.3", "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", @@ -651,17 +611,6 @@ "tslib": "^2.4.0" } }, - "node_modules/@emnapi/wasi-threads": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.3.tgz", - "integrity": "sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, "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", @@ -1539,9 +1488,9 @@ } }, "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==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", "dev": true, "license": "MIT" }, @@ -1565,212 +1514,6 @@ "@chevrotain/types": "~11.1.2" } }, - "node_modules/@napi-rs/wasm-runtime": { - "version": "0.2.12", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.12.tgz", - "integrity": "sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/core": "^1.4.3", - "@emnapi/runtime": "^1.4.3", - "@tybys/wasm-util": "^0.10.0" - } - }, - "node_modules/@next/env": { - "version": "16.3.4", - "resolved": "https://registry.npmjs.org/@next/env/-/env-16.3.4.tgz", - "integrity": "sha512-cjWZnUUa6jZq2kFaNe/ZyJdZonOZ/QoN0Zka2nz/FLOrfx14pQuM9c5RaSVkWMqgdt4ksgPAMWPyHSs/CyV48Q==", - "license": "MIT" - }, - "node_modules/@next/eslint-plugin-next": { - "version": "16.3.4", - "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-16.3.4.tgz", - "integrity": "sha512-szW9y2Aumu4z88YXfTzcFsgUAg2k64uzbtcO5L9f1AKS4w/GUKJcbFllRflROVyNPgJtGOnvNxiyp3v6b+prIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "4.9.1", - "fast-glob": "3.3.1" - } - }, - "node_modules/@next/swc-darwin-arm64": { - "version": "16.3.4", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.3.4.tgz", - "integrity": "sha512-iBr3I5LZNk5/bgl5//iTgD2tcym14MX0Xo7fD//u9dYAEgGzza1y9oywluPtf74YnOswVdH1908aK9xVz7zQTw==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-darwin-x64": { - "version": "16.3.4", - "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-16.3.4.tgz", - "integrity": "sha512-2dpiSyl2Jw/NrBPaU2MAKGSa+2MR82pJIn4Sm5Rjr+gxAeuh0z158Su3Z2O8zn7UNNq+ej4bToed6RcRN/Lydg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-gnu": { - "version": "16.3.4", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.3.4.tgz", - "integrity": "sha512-+t+U8HZT+fApePCS5h89CSH3datz29MkzyfCn+6fpsZBG/oiEOhINcb9rtkv6sdpToLGFn2e6146NzaKCXkqrA==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-arm64-musl": { - "version": "16.3.4", - "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.3.4.tgz", - "integrity": "sha512-mx03GNs1ocQA5JQ4FxDMmIsNkdrZh8cuezKCrId28e5/gIPU/l7Kcy2+vmCCzdjnnmXJy+iOAu+7K0QppO6Urg==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-x64-gnu": { - "version": "16.3.4", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.3.4.tgz", - "integrity": "sha512-YIhGY6fSMfha52bnVxnzc9zaVBzJg+cqQTOD8tXIBSx4fuv0pVMxQTE0PaS59YhnMOiYiG09IMwxJAf/CFm/Dw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-linux-x64-musl": { - "version": "16.3.4", - "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.3.4.tgz", - "integrity": "sha512-+eaaX6axpDb0yF1GCpiERe6njplvdC+nks/fKfcHu3XPGRrald8P3/X7yv7QLdjA51knnxwl9pxdIJsg+w1L+Q==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-arm64-msvc": { - "version": "16.3.4", - "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.3.4.tgz", - "integrity": "sha512-0jcXW7Xs/uzICrmgV3MhDYDeRy++1CqnpDIerlPIqYO4bhzB4WNbX/aRnQclustsAyTkFKB0z6rbcjmNg5tR8A==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@next/swc-win32-x64-msvc": { - "version": "16.3.4", - "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.3.4.tgz", - "integrity": "sha512-vvBzwu1pYQCp92maZCFCIw/XgOTMR5tur9GjakwIo2cmwRTMKajRZZDS9+e4KsUZWKu1E007WUeAFXRRjZeuzw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nolyfill/is-core-module": { - "version": "1.0.39", - "resolved": "https://registry.npmjs.org/@nolyfill/is-core-module/-/is-core-module-1.0.39.tgz", - "integrity": "sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.4.0" - } - }, "node_modules/@oven/bun-darwin-aarch64": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.4.4.tgz", @@ -2361,5124 +2104,2876 @@ } } }, - "node_modules/@rtsao/scc": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz", - "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==", + "node_modules/@testing-library/dom": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.1.tgz", + "integrity": "sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==", "dev": true, - "license": "MIT" - }, - "node_modules/@swc/helpers": { - "version": "0.5.23", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.23.tgz", - "integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==", - "license": "Apache-2.0", + "license": "MIT", "dependencies": { - "tslib": "^2.8.0" + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "5.3.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.5.0", + "picocolors": "1.1.1", + "pretty-format": "^27.0.2" + }, + "engines": { + "node": ">=18" } }, - "node_modules/@tailwindcss/node": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz", - "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==", + "node_modules/@testing-library/dom/node_modules/aria-query": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", + "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", "dev": true, - "license": "MIT", + "license": "Apache-2.0", "dependencies": { - "@jridgewell/remapping": "^2.3.5", - "enhanced-resolve": "^5.24.1", - "jiti": "^2.7.0", - "lightningcss": "1.32.0", - "magic-string": "^0.30.21", - "source-map-js": "^1.2.1", - "tailwindcss": "4.3.3" + "dequal": "^2.0.3" } }, - "node_modules/@tailwindcss/oxide": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz", - "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==", + "node_modules/@testing-library/react": { + "version": "16.3.3", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.3.3.tgz", + "integrity": "sha512-Uo193NgQbPMz6lrrhtRQQFcMC6Re/ELLFbbuVL30WDlZxlpZf9/lMHTAVxPRLw1q1iu9OJmR1c2BLiENRstdBg==", "dev": true, "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.5" + }, "engines": { - "node": ">= 20" + "node": ">=18" }, - "optionalDependencies": { - "@tailwindcss/oxide-android-arm64": "4.3.3", - "@tailwindcss/oxide-darwin-arm64": "4.3.3", - "@tailwindcss/oxide-darwin-x64": "4.3.3", - "@tailwindcss/oxide-freebsd-x64": "4.3.3", - "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3", - "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3", - "@tailwindcss/oxide-linux-arm64-musl": "4.3.3", - "@tailwindcss/oxide-linux-x64-gnu": "4.3.3", - "@tailwindcss/oxide-linux-x64-musl": "4.3.3", - "@tailwindcss/oxide-wasm32-wasi": "4.3.3", - "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3", - "@tailwindcss/oxide-win32-x64-msvc": "4.3.3" - } - }, - "node_modules/@tailwindcss/oxide-android-arm64": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz", - "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==", - "cpu": [ - "arm64" - ], + "peerDependencies": { + "@testing-library/dom": "^10.0.0", + "@types/react": "^18.0.0 || ^19.0.0", + "@types/react-dom": "^18.0.0 || ^19.0.0", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@testing-library/user-event": { + "version": "14.6.7", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.7.tgz", + "integrity": "sha512-MPCpX8bxe8zS+JmmTwLp8jd0dy1rAm60Te/SL8JrQM3qvQJcBOs1d7IefJMyZzqM3EWBrDn/LWDt1BCGu4ASfg==", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "android" - ], "engines": { - "node": ">= 20" + "node": ">=12", + "npm": ">=6" + }, + "peerDependencies": { + "@testing-library/dom": ">=7.21.4" } }, - "node_modules/@tailwindcss/oxide-darwin-arm64": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz", - "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==", - "cpu": [ - "arm64" - ], + "node_modules/@types/aria-query": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", + "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==", "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 20" - } + "license": "MIT" }, - "node_modules/@tailwindcss/oxide-darwin-x64": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz", - "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==", - "cpu": [ - "x64" - ], + "node_modules/@types/bun": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/@types/bun/-/bun-1.4.4.tgz", + "integrity": "sha512-9wkRDXUXK124pEnAutE6n/l18j+i9GC5IAHK8TmX/2nlySETmky0OU6yL5U8pW1AoKh++AN9auDCr647BfurjQ==", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 20" + "dependencies": { + "bun-types": "1.4.4" } }, - "node_modules/@tailwindcss/oxide-freebsd-x64": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz", - "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==", - "cpu": [ - "x64" - ], - "dev": true, + "node_modules/@types/d3": { + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz", + "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==", "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 20" + "dependencies": { + "@types/d3-array": "*", + "@types/d3-axis": "*", + "@types/d3-brush": "*", + "@types/d3-chord": "*", + "@types/d3-color": "*", + "@types/d3-contour": "*", + "@types/d3-delaunay": "*", + "@types/d3-dispatch": "*", + "@types/d3-drag": "*", + "@types/d3-dsv": "*", + "@types/d3-ease": "*", + "@types/d3-fetch": "*", + "@types/d3-force": "*", + "@types/d3-format": "*", + "@types/d3-geo": "*", + "@types/d3-hierarchy": "*", + "@types/d3-interpolate": "*", + "@types/d3-path": "*", + "@types/d3-polygon": "*", + "@types/d3-quadtree": "*", + "@types/d3-random": "*", + "@types/d3-scale": "*", + "@types/d3-scale-chromatic": "*", + "@types/d3-selection": "*", + "@types/d3-shape": "*", + "@types/d3-time": "*", + "@types/d3-time-format": "*", + "@types/d3-timer": "*", + "@types/d3-transition": "*", + "@types/d3-zoom": "*" } }, - "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz", - "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } + "node_modules/@types/d3-array": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz", + "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==", + "license": "MIT" }, - "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz", - "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==", - "cpu": [ - "arm64" - ], - "dev": true, + "node_modules/@types/d3-axis": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz", + "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" + "dependencies": { + "@types/d3-selection": "*" } }, - "node_modules/@tailwindcss/oxide-linux-arm64-musl": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz", - "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==", - "cpu": [ - "arm64" - ], - "dev": true, + "node_modules/@types/d3-brush": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz", + "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" + "dependencies": { + "@types/d3-selection": "*" } }, - "node_modules/@tailwindcss/oxide-linux-x64-gnu": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz", - "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } + "node_modules/@types/d3-chord": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz", + "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==", + "license": "MIT" }, - "node_modules/@tailwindcss/oxide-linux-x64-musl": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz", - "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==", - "cpu": [ - "x64" - ], - "dev": true, + "node_modules/@types/d3-color": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", + "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", + "license": "MIT" + }, + "node_modules/@types/d3-contour": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz", + "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" + "dependencies": { + "@types/d3-array": "*", + "@types/geojson": "*" } }, - "node_modules/@tailwindcss/oxide-wasm32-wasi": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz", - "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==", - "bundleDependencies": [ - "@napi-rs/wasm-runtime", - "@emnapi/core", - "@emnapi/runtime", - "@tybys/wasm-util", - "@emnapi/wasi-threads", - "tslib" - ], - "cpu": [ - "wasm32" - ], - "dev": true, + "node_modules/@types/d3-delaunay": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz", + "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==", + "license": "MIT" + }, + "node_modules/@types/d3-dispatch": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.7.tgz", + "integrity": "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==", + "license": "MIT" + }, + "node_modules/@types/d3-drag": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz", + "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==", "license": "MIT", - "optional": true, "dependencies": { - "@emnapi/core": "^1.11.1", - "@emnapi/runtime": "^1.11.1", - "@emnapi/wasi-threads": "^1.2.2", - "@napi-rs/wasm-runtime": "^1.1.4", - "@tybys/wasm-util": "^0.10.2", - "tslib": "^2.8.1" - }, - "engines": { - "node": ">=14.0.0" + "@types/d3-selection": "*" } }, - "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/core": { - "version": "1.11.1", - "dev": true, - "inBundle": true, + "node_modules/@types/d3-dsv": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz", + "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==", + "license": "MIT" + }, + "node_modules/@types/d3-ease": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", + "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==", + "license": "MIT" + }, + "node_modules/@types/d3-fetch": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz", + "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==", "license": "MIT", - "optional": true, "dependencies": { - "@emnapi/wasi-threads": "1.2.2", - "tslib": "^2.4.0" + "@types/d3-dsv": "*" } }, - "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/runtime": { - "version": "1.11.1", - "dev": true, - "inBundle": true, + "node_modules/@types/d3-force": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz", + "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==", + "license": "MIT" + }, + "node_modules/@types/d3-format": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz", + "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==", + "license": "MIT" + }, + "node_modules/@types/d3-geo": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.0.tgz", + "integrity": "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==", "license": "MIT", - "optional": true, "dependencies": { - "tslib": "^2.4.0" + "@types/geojson": "*" } }, - "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/wasi-threads": { - "version": "1.2.2", - "dev": true, - "inBundle": true, + "node_modules/@types/d3-hierarchy": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz", + "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==", + "license": "MIT" + }, + "node_modules/@types/d3-interpolate": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", + "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", "license": "MIT", - "optional": true, "dependencies": { - "tslib": "^2.4.0" + "@types/d3-color": "*" } }, - "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": { - "version": "1.1.4", - "dev": true, - "inBundle": true, + "node_modules/@types/d3-path": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz", + "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==", + "license": "MIT" + }, + "node_modules/@types/d3-polygon": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz", + "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==", + "license": "MIT" + }, + "node_modules/@types/d3-quadtree": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz", + "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==", + "license": "MIT" + }, + "node_modules/@types/d3-random": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.3.tgz", + "integrity": "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ==", + "license": "MIT" + }, + "node_modules/@types/d3-scale": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz", + "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==", "license": "MIT", - "optional": true, "dependencies": { - "@tybys/wasm-util": "^0.10.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Brooooooklyn" - }, - "peerDependencies": { - "@emnapi/core": "^1.7.1", - "@emnapi/runtime": "^1.7.1" + "@types/d3-time": "*" } }, - "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@tybys/wasm-util": { - "version": "0.10.2", - "dev": true, - "inBundle": true, + "node_modules/@types/d3-scale-chromatic": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", + "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==", + "license": "MIT" + }, + "node_modules/@types/d3-selection": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz", + "integrity": "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==", + "license": "MIT" + }, + "node_modules/@types/d3-shape": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.8.tgz", + "integrity": "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==", "license": "MIT", - "optional": true, "dependencies": { - "tslib": "^2.4.0" + "@types/d3-path": "*" } }, - "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/tslib": { - "version": "2.8.1", - "dev": true, - "inBundle": true, - "license": "0BSD", - "optional": true + "node_modules/@types/d3-time": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", + "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==", + "license": "MIT" }, - "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz", - "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 20" - } + "node_modules/@types/d3-time-format": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz", + "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==", + "license": "MIT" }, - "node_modules/@tailwindcss/oxide-win32-x64-msvc": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz", - "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 20" - } + "node_modules/@types/d3-timer": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", + "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==", + "license": "MIT" }, - "node_modules/@tailwindcss/postcss": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@tailwindcss/postcss/-/postcss-4.3.3.tgz", - "integrity": "sha512-JTSZZGQi1AyKirbLN3azmjVzef92tcX7h+iSqPdaeStyFpGpDlKvvpxeOE8njhbUanbRwr3z8DyzhICWnMtQeg==", - "dev": true, + "node_modules/@types/d3-transition": { + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.9.tgz", + "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==", "license": "MIT", "dependencies": { - "@alloc/quick-lru": "^5.2.0", - "@tailwindcss/node": "4.3.3", - "@tailwindcss/oxide": "4.3.3", - "postcss": "^8.5.16", - "tailwindcss": "4.3.3" + "@types/d3-selection": "*" } }, - "node_modules/@testing-library/dom": { - "version": "10.4.1", - "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.1.tgz", - "integrity": "sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==", - "dev": true, + "node_modules/@types/d3-zoom": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.8.tgz", + "integrity": "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==", "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.10.4", - "@babel/runtime": "^7.12.5", - "@types/aria-query": "^5.0.1", - "aria-query": "5.3.0", - "dom-accessibility-api": "^0.5.9", - "lz-string": "^1.5.0", - "picocolors": "1.1.1", - "pretty-format": "^27.0.2" - }, - "engines": { - "node": ">=18" + "@types/d3-interpolate": "*", + "@types/d3-selection": "*" } }, - "node_modules/@testing-library/dom/node_modules/aria-query": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz", - "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==", - "dev": true, - "license": "Apache-2.0", + "node_modules/@types/debug": { + "version": "4.1.13", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz", + "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==", + "license": "MIT", "dependencies": { - "dequal": "^2.0.3" + "@types/ms": "*" } }, - "node_modules/@testing-library/react": { - "version": "16.3.3", - "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.3.3.tgz", - "integrity": "sha512-Uo193NgQbPMz6lrrhtRQQFcMC6Re/ELLFbbuVL30WDlZxlpZf9/lMHTAVxPRLw1q1iu9OJmR1c2BLiENRstdBg==", - "dev": true, + "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==", + "license": "MIT" + }, + "node_modules/@types/estree-jsx": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz", + "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.12.5" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "@testing-library/dom": "^10.0.0", - "@types/react": "^18.0.0 || ^19.0.0", - "@types/react-dom": "^18.0.0 || ^19.0.0", - "react": "^18.0.0 || ^19.0.0", - "react-dom": "^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - }, - "@types/react-dom": { - "optional": true - } + "@types/estree": "*" } }, - "node_modules/@testing-library/user-event": { - "version": "14.6.7", - "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.7.tgz", - "integrity": "sha512-MPCpX8bxe8zS+JmmTwLp8jd0dy1rAm60Te/SL8JrQM3qvQJcBOs1d7IefJMyZzqM3EWBrDn/LWDt1BCGu4ASfg==", - "dev": true, + "node_modules/@types/geojson": { + "version": "7946.0.16", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz", + "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==", + "license": "MIT" + }, + "node_modules/@types/hast": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", + "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", "license": "MIT", - "engines": { - "node": ">=12", - "npm": ">=6" - }, - "peerDependencies": { - "@testing-library/dom": ">=7.21.4" + "dependencies": { + "@types/unist": "*" } }, - "node_modules/@tybys/wasm-util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.3.tgz", - "integrity": "sha512-F3fo1MYrRJYL3zER0OUOmkutjr1Vp23m7OsSgp7nq4SP6OqX6C/56XFIPAl5bt3zaBRjmW7SGz3u/6LwFpYcOg==", + "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/katex": { + "version": "0.16.8", + "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.8.tgz", + "integrity": "sha512-trgaNyfU+Xh2Tc+ABIb44a5AYUpicB3uwirOioeOkNPPbmgRNtcWyDeeFRzjPZENO9Vq8gvVqfhaaXWLlevVwg==", + "license": "MIT" + }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", "license": "MIT", - "optional": true, "dependencies": { - "tslib": "^2.4.0" + "@types/unist": "*" } }, - "node_modules/@types/aria-query": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz", - "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==", - "dev": true, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", "license": "MIT" }, - "node_modules/@types/bun": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/@types/bun/-/bun-1.4.4.tgz", - "integrity": "sha512-9wkRDXUXK124pEnAutE6n/l18j+i9GC5IAHK8TmX/2nlySETmky0OU6yL5U8pW1AoKh++AN9auDCr647BfurjQ==", + "node_modules/@types/node": { + "version": "25.5.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.5.0.tgz", + "integrity": "sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw==", "dev": true, "license": "MIT", "dependencies": { - "bun-types": "1.4.4" + "undici-types": "~7.18.0" } }, - "node_modules/@types/d3": { - "version": "7.4.3", - "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz", - "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==", + "node_modules/@types/prismjs": { + "version": "1.26.6", + "resolved": "https://registry.npmjs.org/@types/prismjs/-/prismjs-1.26.6.tgz", + "integrity": "sha512-vqlvI7qlMvcCBbVe0AKAb4f97//Hy0EBTaiW8AalRnG/xAN5zOiWWyrNqNXeq8+KAuvRewjCVY1+IPxk4RdNYw==", + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "19.2.14", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz", + "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==", "license": "MIT", "dependencies": { - "@types/d3-array": "*", - "@types/d3-axis": "*", - "@types/d3-brush": "*", - "@types/d3-chord": "*", - "@types/d3-color": "*", - "@types/d3-contour": "*", - "@types/d3-delaunay": "*", - "@types/d3-dispatch": "*", - "@types/d3-drag": "*", - "@types/d3-dsv": "*", - "@types/d3-ease": "*", - "@types/d3-fetch": "*", - "@types/d3-force": "*", - "@types/d3-format": "*", - "@types/d3-geo": "*", - "@types/d3-hierarchy": "*", - "@types/d3-interpolate": "*", - "@types/d3-path": "*", - "@types/d3-polygon": "*", - "@types/d3-quadtree": "*", - "@types/d3-random": "*", - "@types/d3-scale": "*", - "@types/d3-scale-chromatic": "*", - "@types/d3-selection": "*", - "@types/d3-shape": "*", - "@types/d3-time": "*", - "@types/d3-time-format": "*", - "@types/d3-timer": "*", - "@types/d3-transition": "*", - "@types/d3-zoom": "*" - } - }, - "node_modules/@types/d3-array": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/@types/d3-array/-/d3-array-3.2.2.tgz", - "integrity": "sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==", - "license": "MIT" - }, - "node_modules/@types/d3-axis": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz", - "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==", - "license": "MIT", - "dependencies": { - "@types/d3-selection": "*" - } - }, - "node_modules/@types/d3-brush": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz", - "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==", - "license": "MIT", - "dependencies": { - "@types/d3-selection": "*" - } - }, - "node_modules/@types/d3-chord": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz", - "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg==", - "license": "MIT" - }, - "node_modules/@types/d3-color": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz", - "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==", - "license": "MIT" - }, - "node_modules/@types/d3-contour": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz", - "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==", - "license": "MIT", - "dependencies": { - "@types/d3-array": "*", - "@types/geojson": "*" - } - }, - "node_modules/@types/d3-delaunay": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/@types/d3-delaunay/-/d3-delaunay-6.0.4.tgz", - "integrity": "sha512-ZMaSKu4THYCU6sV64Lhg6qjf1orxBthaC161plr5KuPHo3CNm8DTHiLw/5Eq2b6TsNP0W0iJrUOFscY6Q450Hw==", - "license": "MIT" - }, - "node_modules/@types/d3-dispatch": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.7.tgz", - "integrity": "sha512-5o9OIAdKkhN1QItV2oqaE5KMIiXAvDWBDPrD85e58Qlz1c1kI/J0NcqbEG88CoTwJrYe7ntUCVfeUl2UJKbWgA==", - "license": "MIT" - }, - "node_modules/@types/d3-drag": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz", - "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==", - "license": "MIT", - "dependencies": { - "@types/d3-selection": "*" + "csstype": "^3.2.2" } }, - "node_modules/@types/d3-dsv": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz", - "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g==", - "license": "MIT" - }, - "node_modules/@types/d3-ease": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz", - "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==", - "license": "MIT" - }, - "node_modules/@types/d3-fetch": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz", - "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==", + "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==", + "devOptional": true, "license": "MIT", - "dependencies": { - "@types/d3-dsv": "*" + "peerDependencies": { + "@types/react": "^19.2.0" } }, - "node_modules/@types/d3-force": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.10.tgz", - "integrity": "sha512-ZYeSaCF3p73RdOKcjj+swRlZfnYpK1EbaDiYICEEp5Q6sUiqFaFQ9qgoshp5CzIyyb/yD09kD9o2zEltCexlgw==", - "license": "MIT" - }, - "node_modules/@types/d3-format": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-3.0.4.tgz", - "integrity": "sha512-fALi2aI6shfg7vM5KiR1wNJnZ7r6UuggVqtDA+xiEdPZQwy/trcQaHnwShLuLdta2rTymCNpxYTiMZX/e09F4g==", - "license": "MIT" - }, - "node_modules/@types/d3-geo": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.0.tgz", - "integrity": "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==", + "node_modules/@types/react-syntax-highlighter": { + "version": "15.5.13", + "resolved": "https://registry.npmjs.org/@types/react-syntax-highlighter/-/react-syntax-highlighter-15.5.13.tgz", + "integrity": "sha512-uLGJ87j6Sz8UaBAooU0T6lWJ0dBmjZgN1PZTrj05TNql2/XpC6+4HhMT5syIdFUUt+FASfCeLLv4kBygNU+8qA==", + "dev": true, "license": "MIT", "dependencies": { - "@types/geojson": "*" + "@types/react": "*" } }, - "node_modules/@types/d3-hierarchy": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.7.tgz", - "integrity": "sha512-tJFtNoYBtRtkNysX1Xq4sxtjK8YgoWUNpIiUee0/jHGRwqvzYxkq0hGVbbOGSz+JgFxxRu4K8nb3YpG3CMARtg==", - "license": "MIT" - }, - "node_modules/@types/d3-interpolate": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz", - "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==", + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", "license": "MIT", - "dependencies": { - "@types/d3-color": "*" - } - }, - "node_modules/@types/d3-path": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz", - "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==", - "license": "MIT" - }, - "node_modules/@types/d3-polygon": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz", - "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA==", - "license": "MIT" - }, - "node_modules/@types/d3-quadtree": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz", - "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg==", - "license": "MIT" + "optional": true }, - "node_modules/@types/d3-random": { + "node_modules/@types/unist": { "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.3.tgz", - "integrity": "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ==", - "license": "MIT" - }, - "node_modules/@types/d3-scale": { - "version": "4.0.9", - "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz", - "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==", - "license": "MIT", - "dependencies": { - "@types/d3-time": "*" - } - }, - "node_modules/@types/d3-scale-chromatic": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", - "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==", - "license": "MIT" - }, - "node_modules/@types/d3-selection": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.11.tgz", - "integrity": "sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==", - "license": "MIT" - }, - "node_modules/@types/d3-shape": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.8.tgz", - "integrity": "sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==", - "license": "MIT", - "dependencies": { - "@types/d3-path": "*" - } - }, - "node_modules/@types/d3-time": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-3.0.4.tgz", - "integrity": "sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==", - "license": "MIT" - }, - "node_modules/@types/d3-time-format": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-4.0.3.tgz", - "integrity": "sha512-5xg9rC+wWL8kdDj153qZcsJ0FWiFt0J5RB6LYUNZjwSnesfblqrI/bJ1wBdJ8OQfncgbJG5+2F+qfqnqyzYxyg==", - "license": "MIT" - }, - "node_modules/@types/d3-timer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz", - "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", "license": "MIT" }, - "node_modules/@types/d3-transition": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.9.tgz", - "integrity": "sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==", - "license": "MIT", - "dependencies": { - "@types/d3-selection": "*" - } - }, - "node_modules/@types/d3-zoom": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.8.tgz", - "integrity": "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==", + "node_modules/@types/web-push": { + "version": "3.6.4", + "resolved": "https://registry.npmjs.org/@types/web-push/-/web-push-3.6.4.tgz", + "integrity": "sha512-GnJmSr40H3RAnj0s34FNTcJi1hmWFV5KXugE0mYWnYhgTAHLJ/dJKAwDmvPJYMke0RplY2XE9LnM4hqSqKIjhQ==", + "dev": true, "license": "MIT", "dependencies": { - "@types/d3-interpolate": "*", - "@types/d3-selection": "*" + "@types/node": "*" } }, - "node_modules/@types/debug": { - "version": "4.1.13", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz", - "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==", - "license": "MIT", - "dependencies": { - "@types/ms": "*" - } - }, - "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==", - "license": "MIT" - }, - "node_modules/@types/estree-jsx": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz", - "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==", - "license": "MIT", - "dependencies": { - "@types/estree": "*" - } - }, - "node_modules/@types/geojson": { - "version": "7946.0.16", - "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz", - "integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==", - "license": "MIT" - }, - "node_modules/@types/hast": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", - "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", - "license": "MIT", - "dependencies": { - "@types/unist": "*" - } - }, - "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/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/katex": { - "version": "0.16.8", - "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.8.tgz", - "integrity": "sha512-trgaNyfU+Xh2Tc+ABIb44a5AYUpicB3uwirOioeOkNPPbmgRNtcWyDeeFRzjPZENO9Vq8gvVqfhaaXWLlevVwg==", - "license": "MIT" - }, - "node_modules/@types/mdast": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", - "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", - "license": "MIT", - "dependencies": { - "@types/unist": "*" - } - }, - "node_modules/@types/ms": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", - "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "25.5.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.5.0.tgz", - "integrity": "sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~7.18.0" - } - }, - "node_modules/@types/prismjs": { - "version": "1.26.6", - "resolved": "https://registry.npmjs.org/@types/prismjs/-/prismjs-1.26.6.tgz", - "integrity": "sha512-vqlvI7qlMvcCBbVe0AKAb4f97//Hy0EBTaiW8AalRnG/xAN5zOiWWyrNqNXeq8+KAuvRewjCVY1+IPxk4RdNYw==", - "license": "MIT" - }, - "node_modules/@types/react": { - "version": "19.2.14", - "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz", - "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==", - "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==", - "devOptional": true, - "license": "MIT", - "peerDependencies": { - "@types/react": "^19.2.0" - } - }, - "node_modules/@types/react-syntax-highlighter": { - "version": "15.5.13", - "resolved": "https://registry.npmjs.org/@types/react-syntax-highlighter/-/react-syntax-highlighter-15.5.13.tgz", - "integrity": "sha512-uLGJ87j6Sz8UaBAooU0T6lWJ0dBmjZgN1PZTrj05TNql2/XpC6+4HhMT5syIdFUUt+FASfCeLLv4kBygNU+8qA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/react": "*" - } - }, - "node_modules/@types/trusted-types": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", - "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", - "license": "MIT", - "optional": true - }, - "node_modules/@types/unist": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", - "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", - "license": "MIT" - }, - "node_modules/@types/web-push": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/@types/web-push/-/web-push-3.6.4.tgz", - "integrity": "sha512-GnJmSr40H3RAnj0s34FNTcJi1hmWFV5KXugE0mYWnYhgTAHLJ/dJKAwDmvPJYMke0RplY2XE9LnM4hqSqKIjhQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.57.1.tgz", - "integrity": "sha512-Gn3aqnvNl4NGc6x3/Bqk1AOn0thyTU9bqDRhiRnUWezgvr2OnhYCWCgC8zXXRVqBsIL1pSDt7T9nJUe0oM0kDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.57.1", - "@typescript-eslint/type-utils": "8.57.1", - "@typescript-eslint/utils": "8.57.1", - "@typescript-eslint/visitor-keys": "8.57.1", - "ignore": "^7.0.5", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.4.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^8.57.1", - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", - "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.57.1.tgz", - "integrity": "sha512-k4eNDan0EIMTT/dUKc/g+rsJ6wcHYhNPdY19VoX/EOtaAG8DLtKCykhrUnuHPYvinn5jhAPgD2Qw9hXBwrahsw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/scope-manager": "8.57.1", - "@typescript-eslint/types": "8.57.1", - "@typescript-eslint/typescript-estree": "8.57.1", - "@typescript-eslint/visitor-keys": "8.57.1", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/project-service": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.57.1.tgz", - "integrity": "sha512-vx1F37BRO1OftsYlmG9xay1TqnjNVlqALymwWVuYTdo18XuKxtBpCj1QlzNIEHlvlB27osvXFWptYiEWsVdYsg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.57.1", - "@typescript-eslint/types": "^8.57.1", - "debug": "^4.4.3" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.57.1.tgz", - "integrity": "sha512-hs/QcpCwlwT2L5S+3fT6gp0PabyGk4Q0Rv2doJXA0435/OpnSR3VRgvrp8Xdoc3UAYSg9cyUjTeFXZEPg/3OKg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.57.1", - "@typescript-eslint/visitor-keys": "8.57.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.57.1.tgz", - "integrity": "sha512-0lgOZB8cl19fHO4eI46YUx2EceQqhgkPSuCGLlGi79L2jwYY1cxeYc1Nae8Aw1xjgW3PKVDLlr3YJ6Bxx8HkWg==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.57.1.tgz", - "integrity": "sha512-+Bwwm0ScukFdyoJsh2u6pp4S9ktegF98pYUU0hkphOOqdMB+1sNQhIz8y5E9+4pOioZijrkfNO/HUJVAFFfPKA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.57.1", - "@typescript-eslint/typescript-estree": "8.57.1", - "@typescript-eslint/utils": "8.57.1", - "debug": "^4.4.3", - "ts-api-utils": "^2.4.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.57.1.tgz", - "integrity": "sha512-S29BOBPJSFUiblEl6RzPPjJt6w25A6XsBqRVDt53tA/tlL8q7ceQNZHTjPeONt/3S7KRI4quk+yP9jK2WjBiPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.57.1.tgz", - "integrity": "sha512-ybe2hS9G6pXpqGtPli9Gx9quNV0TWLOmh58ADlmZe9DguLq0tiAKVjirSbtM1szG6+QH6rVXyU6GTLQbWnMY+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/project-service": "8.57.1", - "@typescript-eslint/tsconfig-utils": "8.57.1", - "@typescript-eslint/types": "8.57.1", - "@typescript-eslint/visitor-keys": "8.57.1", - "debug": "^4.4.3", - "minimatch": "^10.2.2", - "semver": "^7.7.3", - "tinyglobby": "^0.2.15", - "ts-api-utils": "^2.4.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", - "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.57.1.tgz", - "integrity": "sha512-XUNSJ/lEVFttPMMoDVA2r2bwrl8/oPx8cURtczkSEswY5T3AeLmCy+EKWQNdL4u0MmAHOjcWrqJp2cdvgjn8dQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.57.1", - "@typescript-eslint/types": "8.57.1", - "@typescript-eslint/typescript-estree": "8.57.1" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.0.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.57.1.tgz", - "integrity": "sha512-YWnmJkXbofiz9KbnbbwuA2rpGkFPLbAIetcCNO6mJ8gdhdZ/v7WDXsoGFAJuM6ikUFKTlSQnjWnVO4ux+UzS6A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/types": "8.57.1", - "eslint-visitor-keys": "^5.0.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@ungap/structured-clone": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", - "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", - "license": "ISC" - }, - "node_modules/@unrs/resolver-binding-android-arm-eabi": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.11.1.tgz", - "integrity": "sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@unrs/resolver-binding-android-arm64": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.11.1.tgz", - "integrity": "sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@unrs/resolver-binding-darwin-arm64": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.11.1.tgz", - "integrity": "sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@unrs/resolver-binding-darwin-x64": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.11.1.tgz", - "integrity": "sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@unrs/resolver-binding-freebsd-x64": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.11.1.tgz", - "integrity": "sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.11.1.tgz", - "integrity": "sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.11.1.tgz", - "integrity": "sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm64-gnu": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.11.1.tgz", - "integrity": "sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-arm64-musl": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.11.1.tgz", - "integrity": "sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.11.1.tgz", - "integrity": "sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.11.1.tgz", - "integrity": "sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-riscv64-musl": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.11.1.tgz", - "integrity": "sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-s390x-gnu": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.11.1.tgz", - "integrity": "sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-x64-gnu": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.11.1.tgz", - "integrity": "sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-linux-x64-musl": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.11.1.tgz", - "integrity": "sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@unrs/resolver-binding-wasm32-wasi": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.11.1.tgz", - "integrity": "sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==", - "cpu": [ - "wasm32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@napi-rs/wasm-runtime": "^0.2.11" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@unrs/resolver-binding-win32-arm64-msvc": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.11.1.tgz", - "integrity": "sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@unrs/resolver-binding-win32-ia32-msvc": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.11.1.tgz", - "integrity": "sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@unrs/resolver-binding-win32-x64-msvc": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.11.1.tgz", - "integrity": "sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@upsetjs/venn.js": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@upsetjs/venn.js/-/venn.js-2.0.0.tgz", - "integrity": "sha512-WbBhLrooyePuQ1VZxrJjtLvTc4NVfpOyKx0sKqioq9bX1C1m7Jgykkn8gLrtwumBioXIqam8DLxp88Adbue6Hw==", - "license": "MIT", - "optionalDependencies": { - "d3-selection": "^3.0.0", - "d3-transition": "^3.0.1" - } - }, - "node_modules/@xmldom/xmldom": { - "version": "0.8.13", - "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.13.tgz", - "integrity": "sha512-KRYzxepc14G/CEpEGc3Yn+JKaAeT63smlDr+vjB8jRfgTBBI9wRj/nkQEO+ucV8p8I9bfKLWp37uHgFrbntPvw==", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/acorn": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", - "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", - "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/agent-base": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", - "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", - "license": "MIT", - "engines": { - "node": ">= 14" - } - }, - "node_modules/ajv": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", - "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", - "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/aria-hidden": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz", - "integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==", - "license": "MIT", - "dependencies": { - "tslib": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/aria-query": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz", - "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", - "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "is-array-buffer": "^3.0.5" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-includes": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.9.tgz", - "integrity": "sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.0", - "es-object-atoms": "^1.1.1", - "get-intrinsic": "^1.3.0", - "is-string": "^1.1.1", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.findlast": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", - "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.findlastindex": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz", - "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.9", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "es-shim-unscopables": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flat": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz", - "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flatmap": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz", - "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.tosorted": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz", - "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.3", - "es-errors": "^1.3.0", - "es-shim-unscopables": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", - "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "is-array-buffer": "^3.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/asn1.js": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", - "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", - "license": "MIT", - "dependencies": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "safer-buffer": "^2.1.0" - } - }, - "node_modules/ast-types-flow": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz", - "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/async-function": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", - "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/axe-core": { - "version": "4.11.1", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.11.1.tgz", - "integrity": "sha512-BASOg+YwO2C+346x3LZOeoovTIoTrRqEsqMa6fmfAV0P+U9mFr9NsyOEpiYvFjbc64NMrSswhV50WdXzdb/Z5A==", - "dev": true, - "license": "MPL-2.0", - "engines": { - "node": ">=4" - } - }, - "node_modules/axobject-query": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz", - "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/bail": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", - "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/baseline-browser-mapping": { - "version": "2.11.15", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.15.tgz", - "integrity": "sha512-FwMjJJ7HnyZpWe+oWxegG0fezZyBZUagI5LZEoO3GCbtbKNwRfMH9Ue5d5v01PNePBy1QSfPSDTTeVL0Hb9EzA==", - "license": "Apache-2.0", - "bin": { - "baseline-browser-mapping": "dist/cli.cjs" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/bidi-js": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.1.0.tgz", - "integrity": "sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg==", - "dev": true, - "license": "MIT", - "dependencies": { - "require-from-string": "^2.0.2" - } - }, - "node_modules/bluebird": { - "version": "3.4.7", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.4.7.tgz", - "integrity": "sha512-iD3898SR7sWVRHbiQv+sHUtHnMvC1o3nW5rAcqnq3uOn07DSAppZYUkIGslDz6gXC7HfunPe7YVBgoEJASPcHA==", - "license": "MIT" - }, - "node_modules/bn.js": { - "version": "4.12.5", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.5.tgz", - "integrity": "sha512-3aRg6/JxfffFD+OlOjOFR3Vo79l39ooBTFucxx+MT3dhCtzn3EmiUPQo+6/OZuI2jbXi3YKgmiTFBgChQMwIRQ==", - "license": "MIT" - }, - "node_modules/brace-expansion": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz", - "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^4.0.2" - }, - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.28.8", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.8.tgz", - "integrity": "sha512-V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==", - "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.11.12", - "caniuse-lite": "^1.0.30001809", - "electron-to-chromium": "^1.5.402", - "node-releases": "^2.0.53", - "update-browserslist-db": "^1.3.0" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/buffer-equal-constant-time": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", - "license": "BSD-3-Clause" - }, - "node_modules/bun": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/bun/-/bun-1.4.4.tgz", - "integrity": "sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==", - "cpu": [ - "arm64", - "x64" - ], - "hasInstallScript": true, - "license": "MIT", - "os": [ - "darwin", - "linux", - "android", - "freebsd", - "win32" - ], - "bin": { - "bun": "bin/bun.exe", - "bunx": "bin/bunx.exe" - }, - "optionalDependencies": { - "@oven/bun-darwin-aarch64": "1.4.4", - "@oven/bun-darwin-x64": "1.4.4", - "@oven/bun-freebsd-aarch64": "1.4.4", - "@oven/bun-freebsd-x64": "1.4.4", - "@oven/bun-linux-aarch64": "1.4.4", - "@oven/bun-linux-aarch64-android": "1.4.4", - "@oven/bun-linux-aarch64-musl": "1.4.4", - "@oven/bun-linux-x64": "1.4.4", - "@oven/bun-linux-x64-android": "1.4.4", - "@oven/bun-linux-x64-musl": "1.4.4", - "@oven/bun-windows-aarch64": "1.4.4", - "@oven/bun-windows-x64": "1.4.4" - } - }, - "node_modules/bun-plugin-tailwind": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/bun-plugin-tailwind/-/bun-plugin-tailwind-0.1.2.tgz", - "integrity": "sha512-41jNC1tZRSK3s1o7pTNrLuQG8kL/0vR/JgiTmZAJ1eHwe0w5j6HFPKeqEk0WAD13jfrUC7+ULuewFBBCoADPpg==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "bun": ">=1.0.0" - } - }, - "node_modules/bun-types": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.4.4.tgz", - "integrity": "sha512-yjrJh5oGX7mMPKGd19YXyIjmEuj4G4zNC30bs7PM9Az7NQ3ndF3j6hbeRdvJTRQEhJ/FYQwW0a2moweEi2hMxQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "undici-types": "*" - } - }, - "node_modules/call-bind": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", - "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.0", - "es-define-property": "^1.0.0", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001809", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001809.tgz", - "integrity": "sha512-xxWVywk6a6Arlk+hymeycyn/VgqEfLDxupvhH/xiY5SJ/18kmi9o6MiO320DCUzypORHLtvh0I4i04tUhCNHNQ==", - "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/ccount": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", - "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "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/character-entities": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", - "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-entities-html4": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", - "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-entities-legacy": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", - "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/character-reference-invalid": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz", - "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/client-only": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", - "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==", - "license": "MIT" - }, - "node_modules/cmdk": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/cmdk/-/cmdk-1.1.1.tgz", - "integrity": "sha512-Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg==", - "license": "MIT", - "dependencies": { - "@radix-ui/react-compose-refs": "^1.1.1", - "@radix-ui/react-dialog": "^1.1.6", - "@radix-ui/react-id": "^1.1.0", - "@radix-ui/react-primitive": "^2.0.2" - }, - "peerDependencies": { - "react": "^18 || ^19 || ^19.0.0-rc", - "react-dom": "^18 || ^19 || ^19.0.0-rc" - } - }, - "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/comma-separated-tokens": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", - "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, - "node_modules/commander": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", - "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", - "license": "MIT", - "engines": { - "node": ">= 12" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true, - "license": "MIT" - }, - "node_modules/confbox": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", - "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", - "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/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "license": "MIT" - }, - "node_modules/cose-base": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-1.0.3.tgz", - "integrity": "sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==", - "license": "MIT", - "dependencies": { - "layout-base": "^1.0.0" - } - }, - "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/css-tree": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", - "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", - "dev": true, - "license": "MIT", - "dependencies": { - "mdn-data": "2.27.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" - } - }, - "node_modules/csstype": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", - "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", - "license": "MIT" - }, - "node_modules/cytoscape": { - "version": "3.34.2", - "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.34.2.tgz", - "integrity": "sha512-Cm2jaj1X/PBNlzV9yH8zcfGOxO7U+CJ/+mxSBVPSchLaugdp4jtlGx5qaHtPRZ6tgiZ5P+o1XoRfJA+ba6KM3g==", - "license": "MIT", - "engines": { - "node": ">=0.10" - } - }, - "node_modules/cytoscape-cose-bilkent": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cytoscape-cose-bilkent/-/cytoscape-cose-bilkent-4.1.0.tgz", - "integrity": "sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==", - "license": "MIT", - "dependencies": { - "cose-base": "^1.0.0" - }, - "peerDependencies": { - "cytoscape": "^3.2.0" - } - }, - "node_modules/cytoscape-fcose": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/cytoscape-fcose/-/cytoscape-fcose-2.2.0.tgz", - "integrity": "sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ==", - "license": "MIT", - "dependencies": { - "cose-base": "^2.2.0" - }, - "peerDependencies": { - "cytoscape": "^3.2.0" - } - }, - "node_modules/cytoscape-fcose/node_modules/cose-base": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-2.2.0.tgz", - "integrity": "sha512-AzlgcsCbUMymkADOJtQm3wO9S3ltPfYOFD5033keQn9NJzIbtnZj+UdBJe7DYml/8TdbtHJW3j58SOnKhWY/5g==", - "license": "MIT", - "dependencies": { - "layout-base": "^2.0.0" - } - }, - "node_modules/cytoscape-fcose/node_modules/layout-base": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-2.0.1.tgz", - "integrity": "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==", - "license": "MIT" - }, - "node_modules/d3": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/d3/-/d3-7.9.0.tgz", - "integrity": "sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA==", - "license": "ISC", - "dependencies": { - "d3-array": "3", - "d3-axis": "3", - "d3-brush": "3", - "d3-chord": "3", - "d3-color": "3", - "d3-contour": "4", - "d3-delaunay": "6", - "d3-dispatch": "3", - "d3-drag": "3", - "d3-dsv": "3", - "d3-ease": "3", - "d3-fetch": "3", - "d3-force": "3", - "d3-format": "3", - "d3-geo": "3", - "d3-hierarchy": "3", - "d3-interpolate": "3", - "d3-path": "3", - "d3-polygon": "3", - "d3-quadtree": "3", - "d3-random": "3", - "d3-scale": "4", - "d3-scale-chromatic": "3", - "d3-selection": "3", - "d3-shape": "3", - "d3-time": "3", - "d3-time-format": "4", - "d3-timer": "3", - "d3-transition": "3", - "d3-zoom": "3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-array": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", - "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", - "license": "ISC", - "dependencies": { - "internmap": "1 - 2" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-axis": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/d3-axis/-/d3-axis-3.0.0.tgz", - "integrity": "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-brush": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-3.0.0.tgz", - "integrity": "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==", - "license": "ISC", - "dependencies": { - "d3-dispatch": "1 - 3", - "d3-drag": "2 - 3", - "d3-interpolate": "1 - 3", - "d3-selection": "3", - "d3-transition": "3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-chord": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-chord/-/d3-chord-3.0.1.tgz", - "integrity": "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==", - "license": "ISC", - "dependencies": { - "d3-path": "1 - 3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-color": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", - "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-contour": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/d3-contour/-/d3-contour-4.0.2.tgz", - "integrity": "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==", - "license": "ISC", - "dependencies": { - "d3-array": "^3.2.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-delaunay": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/d3-delaunay/-/d3-delaunay-6.0.4.tgz", - "integrity": "sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==", - "license": "ISC", - "dependencies": { - "delaunator": "5" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-dispatch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz", - "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-drag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz", - "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==", - "license": "ISC", - "dependencies": { - "d3-dispatch": "1 - 3", - "d3-selection": "3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-dsv": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.1.tgz", - "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==", - "license": "ISC", - "dependencies": { - "commander": "7", - "iconv-lite": "0.6", - "rw": "1" - }, - "bin": { - "csv2json": "bin/dsv2json.js", - "csv2tsv": "bin/dsv2dsv.js", - "dsv2dsv": "bin/dsv2dsv.js", - "dsv2json": "bin/dsv2json.js", - "json2csv": "bin/json2dsv.js", - "json2dsv": "bin/json2dsv.js", - "json2tsv": "bin/json2dsv.js", - "tsv2csv": "bin/dsv2dsv.js", - "tsv2json": "bin/dsv2json.js" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-dsv/node_modules/commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "license": "MIT", - "engines": { - "node": ">= 10" - } - }, - "node_modules/d3-ease": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", - "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-fetch": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-fetch/-/d3-fetch-3.0.1.tgz", - "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==", - "license": "ISC", - "dependencies": { - "d3-dsv": "1 - 3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-force": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-3.0.0.tgz", - "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==", - "license": "ISC", - "dependencies": { - "d3-dispatch": "1 - 3", - "d3-quadtree": "1 - 3", - "d3-timer": "1 - 3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-format": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz", - "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-geo": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-3.1.1.tgz", - "integrity": "sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q==", - "license": "ISC", - "dependencies": { - "d3-array": "2.5.0 - 3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-hierarchy": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz", - "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-interpolate": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", - "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", - "license": "ISC", - "dependencies": { - "d3-color": "1 - 3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-path": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", - "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-polygon": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-3.0.1.tgz", - "integrity": "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-quadtree": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-3.0.1.tgz", - "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-random": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-random/-/d3-random-3.0.1.tgz", - "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-sankey": { - "version": "0.12.3", - "resolved": "https://registry.npmjs.org/d3-sankey/-/d3-sankey-0.12.3.tgz", - "integrity": "sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ==", - "license": "BSD-3-Clause", - "dependencies": { - "d3-array": "1 - 2", - "d3-shape": "^1.2.0" - } - }, - "node_modules/d3-sankey/node_modules/d3-array": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.12.1.tgz", - "integrity": "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==", - "license": "BSD-3-Clause", - "dependencies": { - "internmap": "^1.0.0" - } - }, - "node_modules/d3-sankey/node_modules/d3-path": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", - "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==", - "license": "BSD-3-Clause" - }, - "node_modules/d3-sankey/node_modules/d3-shape": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz", - "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==", - "license": "BSD-3-Clause", - "dependencies": { - "d3-path": "1" - } - }, - "node_modules/d3-sankey/node_modules/internmap": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz", - "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==", - "license": "ISC" - }, - "node_modules/d3-scale": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", - "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", - "license": "ISC", - "dependencies": { - "d3-array": "2.10.0 - 3", - "d3-format": "1 - 3", - "d3-interpolate": "1.2.0 - 3", - "d3-time": "2.1.1 - 3", - "d3-time-format": "2 - 4" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/d3-scale-chromatic": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", - "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==", - "license": "ISC", + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.72.1.tgz", + "integrity": "sha512-5CokTWXpmbylfFabsbvHC0CAw3XLaGnoa+nFJX5FR592h/LoZsENUE6p/rg5xvkKrFEXz6pYmgI29AgXc2N3BQ==", + "dev": true, + "license": "MIT", "dependencies": { - "d3-color": "1 - 3", - "d3-interpolate": "1 - 3" + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.72.1", + "@typescript-eslint/type-utils": "8.72.1", + "@typescript-eslint/utils": "8.72.1", + "@typescript-eslint/visitor-keys": "8.72.1", + "ignore": "^7.0.5", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.5.0" }, "engines": { - "node": ">=12" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.72.1", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/d3-selection": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", - "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", - "license": "ISC", + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.14", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.14.tgz", + "integrity": "sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=12" + "node": ">= 4" } }, - "node_modules/d3-shape": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", - "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", - "license": "ISC", + "node_modules/@typescript-eslint/parser": { + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.72.1.tgz", + "integrity": "sha512-ZGwZP4OCfyA0AQTpEAMWz+rtX01DRhQWW5hB0ucKDEIX5U7jdmPSaMx94rQfaPAQzIYz2BimOgKOJtjfpRFQ9g==", + "dev": true, + "license": "MIT", "dependencies": { - "d3-path": "^3.1.0" + "@typescript-eslint/scope-manager": "8.72.1", + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/typescript-estree": "8.72.1", + "@typescript-eslint/visitor-keys": "8.72.1", + "debug": "^4.4.3" }, "engines": { - "node": ">=12" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/d3-time": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", - "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", - "license": "ISC", + "node_modules/@typescript-eslint/project-service": { + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.72.1.tgz", + "integrity": "sha512-fAuVMkwdO/huI8nyo/WKnNKf6Gag93S56Rh3Ts5mGcavwSdaN8tRg1gCeIGX8PF+nzp1BjGfO4gHhGzW1J6jTg==", + "dev": true, + "license": "MIT", "dependencies": { - "d3-array": "2 - 3" + "@typescript-eslint/tsconfig-utils": "^8.72.1", + "@typescript-eslint/types": "^8.72.1", + "debug": "^4.4.3" }, "engines": { - "node": ">=12" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/d3-time-format": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", - "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", - "license": "ISC", + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.72.1.tgz", + "integrity": "sha512-lC/t6eMCZZQAAKZEYGL6RDVSuFehpdmMT6h+nJIjIa6oylN/PwDgDVtEIbB7O9xFfZYtZAYLoLlDNWKJhtF+uQ==", + "dev": true, + "license": "MIT", "dependencies": { - "d3-time": "1 - 3" + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/visitor-keys": "8.72.1" }, "engines": { - "node": ">=12" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/d3-timer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", - "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", - "license": "ISC", + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.72.1.tgz", + "integrity": "sha512-e4D5R5vpeAEPBxT2BAzsFQL3sbwyeeeo5+aczgNSRK1V734jE7pTqaGFU+fXapWEQwnZbpFaTn32+Z8DwS6OTg==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=12" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/d3-transition": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz", - "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==", - "license": "ISC", + "node_modules/@typescript-eslint/type-utils": { + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.72.1.tgz", + "integrity": "sha512-iY2wlmyrXJmx4yxUGP3aYCFF3cA/6ShddOKmLU2dx7LnEykbAM8WThlxZEfd1NddqceF6eJmZUayxx9oKIYNlg==", + "dev": true, + "license": "MIT", "dependencies": { - "d3-color": "1 - 3", - "d3-dispatch": "1 - 3", - "d3-ease": "1 - 3", - "d3-interpolate": "1 - 3", - "d3-timer": "1 - 3" + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/typescript-estree": "8.72.1", + "@typescript-eslint/utils": "8.72.1", + "debug": "^4.4.3", + "ts-api-utils": "^2.5.0" }, "engines": { - "node": ">=12" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "d3-selection": "2 - 3" + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/d3-zoom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz", - "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==", - "license": "ISC", - "dependencies": { - "d3-dispatch": "1 - 3", - "d3-drag": "2 - 3", - "d3-interpolate": "1 - 3", - "d3-selection": "2 - 3", - "d3-transition": "2 - 3" - }, + "node_modules/@typescript-eslint/types": { + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.72.1.tgz", + "integrity": "sha512-LmE5IhQet1BWOWEXqBrVtBPsMAOQ6Nzk35d+WLh3mk4EUF33sqlfxjio1MdYeSvKSG5skactKKuixBIKXhL4Rw==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=12" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/dagre-d3-es": { - "version": "7.0.14", - "resolved": "https://registry.npmjs.org/dagre-d3-es/-/dagre-d3-es-7.0.14.tgz", - "integrity": "sha512-P4rFMVq9ESWqmOgK+dlXvOtLwYg0i7u0HBGJER0LZDJT2VHIPAMZ/riPxqJceWMStH5+E61QxFra9kIS3AqdMg==", + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.72.1.tgz", + "integrity": "sha512-DAlUoUV93hIvrtIQLwCbmZQYVZwOMhiHJrOVUUIWicFZaIYjTRqlY3I/NZevfkLmSqkNHRu2qYDcq9lrn16oOQ==", + "dev": true, "license": "MIT", "dependencies": { - "d3": "^7.9.0", - "lodash-es": "^4.17.21" + "@typescript-eslint/project-service": "8.72.1", + "@typescript-eslint/tsconfig-utils": "8.72.1", + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/visitor-keys": "8.72.1", + "debug": "^4.4.3", + "minimatch": "^10.2.2", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/damerau-levenshtein": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", - "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/data-urls": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz", - "integrity": "sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==", + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", "dev": true, - "license": "MIT", - "dependencies": { - "whatwg-mimetype": "^5.0.0", - "whatwg-url": "^16.0.0" + "license": "ISC", + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + "node": ">=10" } }, - "node_modules/data-view-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", - "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", + "node_modules/@typescript-eslint/utils": { + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.72.1.tgz", + "integrity": "sha512-5v5liypurJBFHCBNqh/RjsymAD+VWcE0djuGY/BUqp5fC3Qn+luWDEksjuTtWjPn6i5zQlUtkZCRG/CYG0yCkA==", "dev": true, "license": "MIT", "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.2" + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.72.1", + "@typescript-eslint/types": "8.72.1", + "@typescript-eslint/typescript-estree": "8.72.1" }, "engines": { - "node": ">= 0.4" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/data-view-byte-length": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", - "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.72.1.tgz", + "integrity": "sha512-SB8xqipSzZHUePCCLNeYxqnxq83X61/qzNhjQGbTfjxGZIeOEP7tBgWYX05Tcd6CgE02WdTJnh5b8kMZJ/+bnQ==", "dev": true, "license": "MIT", "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.2" + "@typescript-eslint/types": "8.72.1", + "eslint-visitor-keys": "^5.0.0" }, "engines": { - "node": ">= 0.4" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/inspect-js" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/data-view-byte-offset": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", - "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", - "dev": true, + "node_modules/@ungap/structured-clone": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", + "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "license": "ISC" + }, + "node_modules/@upsetjs/venn.js": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@upsetjs/venn.js/-/venn.js-2.0.0.tgz", + "integrity": "sha512-WbBhLrooyePuQ1VZxrJjtLvTc4NVfpOyKx0sKqioq9bX1C1m7Jgykkn8gLrtwumBioXIqam8DLxp88Adbue6Hw==", + "license": "MIT", + "optionalDependencies": { + "d3-selection": "^3.0.0", + "d3-transition": "^3.0.1" + } + }, + "node_modules/@xmldom/xmldom": { + "version": "0.8.13", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.13.tgz", + "integrity": "sha512-KRYzxepc14G/CEpEGc3Yn+JKaAeT63smlDr+vjB8jRfgTBBI9wRj/nkQEO+ucV8p8I9bfKLWp37uHgFrbntPvw==", "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, "engines": { - "node": ">= 0.4" + "node": ">=10.0.0" + } + }, + "node_modules/acorn": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=0.4.0" } }, - "node_modules/dayjs": { - "version": "1.11.23", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.23.tgz", - "integrity": "sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==", - "license": "MIT" + "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/debug": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", - "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "node": ">= 14" } }, - "node_modules/decimal.js": { - "version": "10.6.0", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", - "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", + "node_modules/ajv": { + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", "dev": true, - "license": "MIT" - }, - "node_modules/decode-named-character-reference": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz", - "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==", "license": "MIT", "dependencies": { - "character-entities": "^2.0.0" + "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/wooorm" + "url": "https://github.com/sponsors/epoberezkin" } }, - "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/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "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": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" + "color-convert": "^2.0.1" }, "engines": { - "node": ">= 0.4" + "node": ">=8" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true, + "license": "Python-2.0" + }, + "node_modules/aria-hidden": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz", + "integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==", "license": "MIT", "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" + "tslib": "^2.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/delaunator": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/delaunator/-/delaunator-5.1.0.tgz", - "integrity": "sha512-AGrQ4QSgssa1NGmWmLPqN5NY2KajF5MqxetNEO+o0n3ZwZZeTmt7bBnvzHWrmkZFxGgr4HdyFgelzgi06otLuQ==", - "license": "ISC", - "dependencies": { - "robust-predicates": "^3.0.2" + "node": ">=10" } }, - "node_modules/dequal": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", - "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "node_modules/asn1.js": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", + "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "license": "Apache-2.0", - "engines": { - "node": ">=8" + "dependencies": { + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "safer-buffer": "^2.1.0" } }, - "node_modules/detect-node-es": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz", - "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==", - "license": "MIT" - }, - "node_modules/devlop": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", - "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "node_modules/bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", "license": "MIT", - "dependencies": { - "dequal": "^2.0.0" - }, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/dingbat-to-unicode": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dingbat-to-unicode/-/dingbat-to-unicode-1.0.1.tgz", - "integrity": "sha512-98l0sW87ZT58pU4i61wa2OHwxbiYSbuxsCBozaVnYX2iCnr3bLM3fIes1/ej7h1YdOKuKt/MLs706TVnALA65w==", - "license": "BSD-2-Clause" - }, - "node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", "dev": true, - "license": "Apache-2.0", - "dependencies": { - "esutils": "^2.0.2" - }, + "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": "18 || 20 || >=22" } }, - "node_modules/dom-accessibility-api": { - "version": "0.5.16", - "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", - "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", - "dev": true, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], "license": "MIT" }, - "node_modules/dompurify": { - "version": "3.4.13", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.13.tgz", - "integrity": "sha512-2vmYIoqjze2d+kakP8S/nS5shfsl587kzwEjcGlTdiksUVgFHnFCsLYDVj/JNqJVOQZGSYBTmuycv0PodwmnMQ==", - "license": "(MPL-2.0 OR Apache-2.0)", - "optionalDependencies": { - "@types/trusted-types": "^2.0.7" - } - }, - "node_modules/duck": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/duck/-/duck-0.1.12.tgz", - "integrity": "sha512-wkctla1O6VfP89gQ+J/yDesM0S7B7XLXjKGzXxMDVFg7uEn706niAtyYovKbyq1oT9YwDcly721/iUWoc8MVRg==", - "license": "BSD", - "dependencies": { - "underscore": "^1.13.1" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "node_modules/baseline-browser-mapping": { + "version": "2.11.34", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.34.tgz", + "integrity": "sha512-Aqr8mA1kIvyJ3UY5YAY7ib8LSo1DmDMbMnVqGPtsKW1LxaFQFwn9Eb3yvq2fUKJsRvaXjnAV7R5osqETapzNiA==", "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" }, "engines": { - "node": ">= 0.4" + "node": ">=6.0.0" } }, - "node_modules/ecdsa-sig-formatter": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", - "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", - "license": "Apache-2.0", + "node_modules/bidi-js": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.1.0.tgz", + "integrity": "sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg==", + "dev": true, + "license": "MIT", "dependencies": { - "safe-buffer": "^5.0.1" + "require-from-string": "^2.0.2" } }, - "node_modules/electron-to-chromium": { - "version": "1.5.408", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.408.tgz", - "integrity": "sha512-SLoprcYpJ/OH2v2ps0+N5biv9H4/KBT3+YmmDew64TwK5y9j2wv7pMOFY7IorVkyMtEyLSCRlXKLsNlakeAlPw==", - "dev": true, - "license": "ISC" + "node_modules/bluebird": { + "version": "3.4.7", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.4.7.tgz", + "integrity": "sha512-iD3898SR7sWVRHbiQv+sHUtHnMvC1o3nW5rAcqnq3uOn07DSAppZYUkIGslDz6gXC7HfunPe7YVBgoEJASPcHA==", + "license": "MIT" }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, + "node_modules/bn.js": { + "version": "4.12.5", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.5.tgz", + "integrity": "sha512-3aRg6/JxfffFD+OlOjOFR3Vo79l39ooBTFucxx+MT3dhCtzn3EmiUPQo+6/OZuI2jbXi3YKgmiTFBgChQMwIRQ==", "license": "MIT" }, - "node_modules/enhanced-resolve": { - "version": "5.24.5", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.24.5.tgz", - "integrity": "sha512-L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==", + "node_modules/brace-expansion": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", "dev": true, "license": "MIT", "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.3.3" + "balanced-match": "^4.0.2" }, "engines": { - "node": ">=10.13.0" + "node": "20 || >=22" } }, - "node_modules/entities": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", - "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", - "license": "BSD-2-Clause", - "engines": { - "node": ">=0.12" + "node_modules/browserslist": { + "version": "4.29.5", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.5.tgz", + "integrity": "sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==", + "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.11.33", + "caniuse-lite": "^1.0.30001819", + "electron-to-chromium": "^1.5.464", + "node-releases": "^2.0.60", + "update-browserslist-db": "^1.3.4" }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/es-abstract": { - "version": "1.24.1", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.1.tgz", - "integrity": "sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.2", - "arraybuffer.prototype.slice": "^1.0.4", - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "data-view-buffer": "^1.0.2", - "data-view-byte-length": "^1.0.2", - "data-view-byte-offset": "^1.0.1", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "es-set-tostringtag": "^2.1.0", - "es-to-primitive": "^1.3.0", - "function.prototype.name": "^1.1.8", - "get-intrinsic": "^1.3.0", - "get-proto": "^1.0.1", - "get-symbol-description": "^1.1.0", - "globalthis": "^1.0.4", - "gopd": "^1.2.0", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "internal-slot": "^1.1.0", - "is-array-buffer": "^3.0.5", - "is-callable": "^1.2.7", - "is-data-view": "^1.0.2", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.2.1", - "is-set": "^2.0.3", - "is-shared-array-buffer": "^1.0.4", - "is-string": "^1.1.1", - "is-typed-array": "^1.1.15", - "is-weakref": "^1.1.1", - "math-intrinsics": "^1.1.0", - "object-inspect": "^1.13.4", - "object-keys": "^1.1.1", - "object.assign": "^4.1.7", - "own-keys": "^1.0.1", - "regexp.prototype.flags": "^1.5.4", - "safe-array-concat": "^1.1.3", - "safe-push-apply": "^1.0.0", - "safe-regex-test": "^1.1.0", - "set-proto": "^1.0.0", - "stop-iteration-iterator": "^1.1.0", - "string.prototype.trim": "^1.2.10", - "string.prototype.trimend": "^1.0.9", - "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.3", - "typed-array-byte-length": "^1.0.3", - "typed-array-byte-offset": "^1.0.4", - "typed-array-length": "^1.0.7", - "unbox-primitive": "^1.1.0", - "which-typed-array": "^1.1.19" - }, - "engines": { - "node": ">= 0.4" + "bin": { + "browserslist": "cli.js" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "node_modules/es-define-property": { + "node_modules/buffer-equal-constant-time": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" + }, + "node_modules/bun": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/bun/-/bun-1.4.4.tgz", + "integrity": "sha512-hj0ASdG6PNjLZGFAXktWb3Uaj/dcv/1wCsIttoEXADNIQBsGjTr+5uLKYbrDkuc7NT0Tkj4yPIqJI2jDxXdvVg==", + "cpu": [ + "arm64", + "x64" + ], + "hasInstallScript": true, "license": "MIT", - "engines": { - "node": ">= 0.4" + "os": [ + "darwin", + "linux", + "android", + "freebsd", + "win32" + ], + "bin": { + "bun": "bin/bun.exe", + "bunx": "bin/bunx.exe" + }, + "optionalDependencies": { + "@oven/bun-darwin-aarch64": "1.4.4", + "@oven/bun-darwin-x64": "1.4.4", + "@oven/bun-freebsd-aarch64": "1.4.4", + "@oven/bun-freebsd-x64": "1.4.4", + "@oven/bun-linux-aarch64": "1.4.4", + "@oven/bun-linux-aarch64-android": "1.4.4", + "@oven/bun-linux-aarch64-musl": "1.4.4", + "@oven/bun-linux-x64": "1.4.4", + "@oven/bun-linux-x64-android": "1.4.4", + "@oven/bun-linux-x64-musl": "1.4.4", + "@oven/bun-windows-aarch64": "1.4.4", + "@oven/bun-windows-x64": "1.4.4" } }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "node_modules/bun-plugin-tailwind": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/bun-plugin-tailwind/-/bun-plugin-tailwind-0.1.2.tgz", + "integrity": "sha512-41jNC1tZRSK3s1o7pTNrLuQG8kL/0vR/JgiTmZAJ1eHwe0w5j6HFPKeqEk0WAD13jfrUC7+ULuewFBBCoADPpg==", "dev": true, "license": "MIT", - "engines": { - "node": ">= 0.4" + "peerDependencies": { + "bun": ">=1.0.0" } }, - "node_modules/es-iterator-helpers": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.3.1.tgz", - "integrity": "sha512-zWwRvqWiuBPr0muUG/78cW3aHROFCNIQ3zpmYDpwdbnt2m+xlNyRWpHBpa2lJjSBit7BQ+RXA1iwbSmu5yJ/EQ==", + "node_modules/bun-types": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.4.4.tgz", + "integrity": "sha512-yjrJh5oGX7mMPKGd19YXyIjmEuj4G4zNC30bs7PM9Az7NQ3ndF3j6hbeRdvJTRQEhJ/FYQwW0a2moweEi2hMxQ==", "dev": true, "license": "MIT", "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.1", - "es-errors": "^1.3.0", - "es-set-tostringtag": "^2.1.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.3.0", - "globalthis": "^1.0.4", - "gopd": "^1.2.0", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.2.0", - "has-symbols": "^1.1.0", - "internal-slot": "^1.1.0", - "iterator.prototype": "^1.1.5", - "math-intrinsics": "^1.1.0", - "safe-array-concat": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" + "@types/node": "*", + "undici-types": "*" } }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "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", - "dependencies": { - "es-errors": "^1.3.0" - }, "engines": { - "node": ">= 0.4" + "node": ">=6" } }, - "node_modules/es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "node_modules/caniuse-lite": { + "version": "1.0.30001820", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001820.tgz", + "integrity": "sha512-gfWD6MxqVCqAOwmODfZf7DchWvlrA+SRdNX7ceLfg3xRqe5ssjjpF7EgslC/0tiLiNTajdaNN/q8c/5u/7Gz8w==", "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } + "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/es-shim-unscopables": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz", - "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==", - "dev": true, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", "license": "MIT", - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/es-to-primitive": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", - "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "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": { - "is-callable": "^1.2.7", - "is-date-object": "^1.0.5", - "is-symbol": "^1.0.4" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">= 0.4" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/es-toolkit": { - "version": "1.46.1", - "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.46.1.tgz", - "integrity": "sha512-5eNtXOs3tbfxXOj04tjjseeWkRWaoCjdEI+96DgwzZoe6c9juL49pXlzAFTI72aWC9Y8p7168g6XIKjh7k6pyQ==", - "license": "MIT", - "workspaces": [ - "docs", - "benchmarks" - ] - }, - "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, + "node_modules/character-entities": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", + "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", "license": "MIT", - "engines": { - "node": ">=6" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "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, + "node_modules/character-entities-html4": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", + "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", "license": "MIT", - "engines": { - "node": ">=10" - }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/eslint": { - "version": "9.39.4", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.4.tgz", - "integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==", - "dev": true, + "node_modules/character-entities-legacy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.2", - "@eslint/config-helpers": "^0.4.2", - "@eslint/core": "^0.17.0", - "@eslint/eslintrc": "^3.3.5", - "@eslint/js": "9.39.4", - "@eslint/plugin-kit": "^0.4.1", - "@humanfs/node": "^0.16.6", - "@humanwhocodes/module-importer": "^1.0.1", - "@humanwhocodes/retry": "^0.4.2", - "@types/estree": "^1.0.6", - "ajv": "^6.14.0", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.6", - "debug": "^4.3.2", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^8.4.0", - "eslint-visitor-keys": "^4.2.1", - "espree": "^10.4.0", - "esquery": "^1.5.0", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^8.0.0", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.5", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, "funding": { - "url": "https://eslint.org/donate" - }, - "peerDependencies": { - "jiti": "*" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - } + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/eslint-config-next": { - "version": "16.3.4", - "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-16.3.4.tgz", - "integrity": "sha512-35/8RM10huEL9vlr8hUZMERMENHBrnyHN3ZZkF9efSgzGaqK34jIqry44A956//zriUhUAUW0XSkcolhrryqAA==", - "dev": true, + "node_modules/character-reference-invalid": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz", + "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==", "license": "MIT", - "dependencies": { - "@next/eslint-plugin-next": "16.3.4", - "eslint-import-resolver-node": "^0.3.6", - "eslint-import-resolver-typescript": "^3.5.2", - "eslint-plugin-import": "^2.32.0", - "eslint-plugin-jsx-a11y": "^6.10.0", - "eslint-plugin-react": "^7.37.0", - "eslint-plugin-react-hooks": "^7.0.0", - "globals": "16.4.0", - "typescript-eslint": "^8.46.0" - }, - "peerDependencies": { - "eslint": ">=9.0.0", - "typescript": ">=3.3.1" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/eslint-config-next/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/eslint-config-next/node_modules/brace-expansion": { - "version": "1.1.18", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", - "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", - "dev": true, + "node_modules/cmdk": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/cmdk/-/cmdk-1.1.1.tgz", + "integrity": "sha512-Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg==", "license": "MIT", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/eslint-config-next/node_modules/eslint-import-resolver-typescript": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.10.1.tgz", - "integrity": "sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "@nolyfill/is-core-module": "1.0.39", - "debug": "^4.4.0", - "get-tsconfig": "^4.10.0", - "is-bun-module": "^2.0.0", - "stable-hash": "^0.0.5", - "tinyglobby": "^0.2.13", - "unrs-resolver": "^1.6.2" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-import-resolver-typescript" + "@radix-ui/react-compose-refs": "^1.1.1", + "@radix-ui/react-dialog": "^1.1.6", + "@radix-ui/react-id": "^1.1.0", + "@radix-ui/react-primitive": "^2.0.2" }, "peerDependencies": { - "eslint": "*", - "eslint-plugin-import": "*", - "eslint-plugin-import-x": "*" - }, - "peerDependenciesMeta": { - "eslint-plugin-import": { - "optional": true - }, - "eslint-plugin-import-x": { - "optional": true - } + "react": "^18 || ^19 || ^19.0.0-rc", + "react-dom": "^18 || ^19 || ^19.0.0-rc" } }, - "node_modules/eslint-config-next/node_modules/eslint-plugin-import": { - "version": "2.32.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.32.0.tgz", - "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", + "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": { - "@rtsao/scc": "^1.1.0", - "array-includes": "^3.1.9", - "array.prototype.findlastindex": "^1.2.6", - "array.prototype.flat": "^1.3.3", - "array.prototype.flatmap": "^1.3.3", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.9", - "eslint-module-utils": "^2.12.1", - "hasown": "^2.0.2", - "is-core-module": "^2.16.1", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.fromentries": "^2.0.8", - "object.groupby": "^1.0.3", - "object.values": "^1.2.1", - "semver": "^6.3.1", - "string.prototype.trimend": "^1.0.9", - "tsconfig-paths": "^3.15.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9" + "node": ">=7.0.0" } }, - "node_modules/eslint-config-next/node_modules/eslint-plugin-import/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", + "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/comma-separated-tokens": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", "license": "MIT", - "dependencies": { - "ms": "^2.1.1" + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/eslint-config-next/node_modules/eslint-plugin-jsx-a11y": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz", - "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==", - "dev": true, + "node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", "license": "MIT", - "dependencies": { - "aria-query": "^5.3.2", - "array-includes": "^3.1.8", - "array.prototype.flatmap": "^1.3.2", - "ast-types-flow": "^0.0.8", - "axe-core": "^4.10.0", - "axobject-query": "^4.1.0", - "damerau-levenshtein": "^1.0.8", - "emoji-regex": "^9.2.2", - "hasown": "^2.0.2", - "jsx-ast-utils": "^3.3.5", - "language-tags": "^1.0.9", - "minimatch": "^3.1.2", - "object.fromentries": "^2.0.8", - "safe-regex-test": "^1.0.3", - "string.prototype.includes": "^2.0.1" - }, "engines": { - "node": ">=4.0" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9" + "node": ">= 12" } }, - "node_modules/eslint-config-next/node_modules/eslint-plugin-react": { - "version": "7.37.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.5.tgz", - "integrity": "sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==", + "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", - "dependencies": { - "array-includes": "^3.1.8", - "array.prototype.findlast": "^1.2.5", - "array.prototype.flatmap": "^1.3.3", - "array.prototype.tosorted": "^1.1.4", - "doctrine": "^2.1.0", - "es-iterator-helpers": "^1.2.1", - "estraverse": "^5.3.0", - "hasown": "^2.0.2", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.9", - "object.fromentries": "^2.0.8", - "object.values": "^1.2.1", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.5", - "semver": "^6.3.1", - "string.prototype.matchall": "^4.0.12", - "string.prototype.repeat": "^1.0.0" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7" - } + "license": "MIT" }, - "node_modules/eslint-config-next/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==", + "node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "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/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "license": "MIT" + }, + "node_modules/cose-base": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-1.0.3.tgz", + "integrity": "sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg==", "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" + "layout-base": "^1.0.0" } }, - "node_modules/eslint-config-next/node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "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": "ISC", + "license": "MIT", "dependencies": { - "brace-expansion": "^1.1.7" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, "engines": { - "node": "*" + "node": ">= 8" } }, - "node_modules/eslint-config-next/node_modules/resolve": { - "version": "2.0.0-next.6", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.6.tgz", - "integrity": "sha512-3JmVl5hMGtJ3kMmB3zi3DL25KfkCEyy3Tw7Gmw7z5w8M9WlwoPFnIvwChzu1+cF3iaK3sp18hhPz8ANeimdJfA==", + "node_modules/css-tree": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", + "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", "dev": true, "license": "MIT", "dependencies": { - "es-errors": "^1.3.0", - "is-core-module": "^2.16.1", - "node-exports-info": "^1.6.0", - "object-keys": "^1.1.1", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" + "mdn-data": "2.27.1", + "source-map-js": "^1.2.1" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" } }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", - "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", - "dev": true, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/cytoscape": { + "version": "3.34.2", + "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.34.2.tgz", + "integrity": "sha512-Cm2jaj1X/PBNlzV9yH8zcfGOxO7U+CJ/+mxSBVPSchLaugdp4jtlGx5qaHtPRZ6tgiZ5P+o1XoRfJA+ba6KM3g==", "license": "MIT", - "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.13.0", - "resolve": "^1.22.4" + "engines": { + "node": ">=0.10" } }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, + "node_modules/cytoscape-cose-bilkent": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cytoscape-cose-bilkent/-/cytoscape-cose-bilkent-4.1.0.tgz", + "integrity": "sha512-wgQlVIUJF13Quxiv5e1gstZ08rnZj2XaLHGoFMYXz7SkNfCDOOteKBE6SYRfA9WxxI/iBc3ajfDoc6hb/MRAHQ==", "license": "MIT", "dependencies": { - "ms": "^2.1.1" + "cose-base": "^1.0.0" + }, + "peerDependencies": { + "cytoscape": "^3.2.0" } }, - "node_modules/eslint-module-utils": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.1.tgz", - "integrity": "sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==", - "dev": true, + "node_modules/cytoscape-fcose": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cytoscape-fcose/-/cytoscape-fcose-2.2.0.tgz", + "integrity": "sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ==", "license": "MIT", "dependencies": { - "debug": "^3.2.7" - }, - "engines": { - "node": ">=4" + "cose-base": "^2.2.0" }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } + "peerDependencies": { + "cytoscape": "^3.2.0" } }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, + "node_modules/cytoscape-fcose/node_modules/cose-base": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cose-base/-/cose-base-2.2.0.tgz", + "integrity": "sha512-AzlgcsCbUMymkADOJtQm3wO9S3ltPfYOFD5033keQn9NJzIbtnZj+UdBJe7DYml/8TdbtHJW3j58SOnKhWY/5g==", "license": "MIT", "dependencies": { - "ms": "^2.1.1" + "layout-base": "^2.0.0" } }, - "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", + "node_modules/cytoscape-fcose/node_modules/layout-base": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-2.0.1.tgz", + "integrity": "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg==", + "license": "MIT" + }, + "node_modules/d3": { + "version": "7.9.0", + "resolved": "https://registry.npmjs.org/d3/-/d3-7.9.0.tgz", + "integrity": "sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA==", + "license": "ISC", "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "d3-array": "3", + "d3-axis": "3", + "d3-brush": "3", + "d3-chord": "3", + "d3-color": "3", + "d3-contour": "4", + "d3-delaunay": "6", + "d3-dispatch": "3", + "d3-drag": "3", + "d3-dsv": "3", + "d3-ease": "3", + "d3-fetch": "3", + "d3-force": "3", + "d3-format": "3", + "d3-geo": "3", + "d3-hierarchy": "3", + "d3-interpolate": "3", + "d3-path": "3", + "d3-polygon": "3", + "d3-quadtree": "3", + "d3-random": "3", + "d3-scale": "4", + "d3-scale-chromatic": "3", + "d3-selection": "3", + "d3-shape": "3", + "d3-time": "3", + "d3-time-format": "4", + "d3-timer": "3", + "d3-transition": "3", + "d3-zoom": "3" }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", - "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", - "dev": true, - "license": "Apache-2.0", "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=12" } }, - "node_modules/eslint/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/eslint/node_modules/brace-expansion": { - "version": "1.1.18", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", - "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", - "dev": true, - "license": "MIT", + "node_modules/d3-array": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz", + "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==", + "license": "ISC", "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "internmap": "1 - 2" + }, + "engines": { + "node": ">=12" } }, - "node_modules/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/d3-axis": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-axis/-/d3-axis-3.0.0.tgz", + "integrity": "sha512-IH5tgjV4jE/GhHkRV0HiVYPDtvfjHQlQfJHs0usq7M30XcSBvOotpmH1IgkcXsO/5gEQZD43B//fc7SRT5S+xw==", + "license": "ISC", + "engines": { + "node": ">=12" } }, - "node_modules/eslint/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, + "node_modules/d3-brush": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-brush/-/d3-brush-3.0.0.tgz", + "integrity": "sha512-ALnjWlVYkXsVIGlOsuWH1+3udkYFI48Ljihfnh8FZPF2QS9o+PzGLBslO0PjzVoHLZ2KCVgAM8NVkXPJB2aNnQ==", "license": "ISC", "dependencies": { - "brace-expansion": "^1.1.7" + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "3", + "d3-transition": "3" }, "engines": { - "node": "*" + "node": ">=12" } }, - "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", + "node_modules/d3-chord": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-chord/-/d3-chord-3.0.1.tgz", + "integrity": "sha512-VE5S6TNa+j8msksl7HwjxMHDM2yNK3XCkusIlpX5kwauBfXuyLAtNg9jCp/iHH61tgI4sb6R/EIMWCqEIdjT/g==", + "license": "ISC", "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" + "d3-path": "1 - 3" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=12" } }, - "node_modules/espree/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", + "node_modules/d3-color": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz", + "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==", + "license": "ISC", "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=12" } }, - "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", + "node_modules/d3-contour": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-contour/-/d3-contour-4.0.2.tgz", + "integrity": "sha512-4EzFTRIikzs47RGmdxbeUvLWtGedDUNkTcmzoeyg4sP/dvCexO47AaQL7VKy/gul85TOxw+IBgA8US2xwbToNA==", + "license": "ISC", "dependencies": { - "estraverse": "^5.1.0" + "d3-array": "^3.2.0" }, "engines": { - "node": ">=0.10" + "node": ">=12" } }, - "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", + "node_modules/d3-delaunay": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/d3-delaunay/-/d3-delaunay-6.0.4.tgz", + "integrity": "sha512-mdjtIZ1XLAM8bm/hx3WwjfHt6Sggek7qH043O8KEjDXN40xi3vx/6pYSVTwLjEgiXQTbvaouWKynLBiUZ6SK6A==", + "license": "ISC", "dependencies": { - "estraverse": "^5.2.0" + "delaunator": "5" }, "engines": { - "node": ">=4.0" + "node": ">=12" } }, - "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", + "node_modules/d3-dispatch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-dispatch/-/d3-dispatch-3.0.1.tgz", + "integrity": "sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==", + "license": "ISC", "engines": { - "node": ">=4.0" + "node": ">=12" } }, - "node_modules/estree-util-is-identifier-name": { + "node_modules/d3-drag": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz", - "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "resolved": "https://registry.npmjs.org/d3-drag/-/d3-drag-3.0.0.tgz", + "integrity": "sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==", + "license": "ISC", + "dependencies": { + "d3-dispatch": "1 - 3", + "d3-selection": "3" + }, + "engines": { + "node": ">=12" } }, - "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", + "node_modules/d3-dsv": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-dsv/-/d3-dsv-3.0.1.tgz", + "integrity": "sha512-UG6OvdI5afDIFP9w4G0mNq50dSOsXHJaRE8arAS5o9ApWnIElp8GZw1Dun8vP8OyHOZ/QJUKUJwxiiCCnUwm+Q==", + "license": "ISC", + "dependencies": { + "commander": "7", + "iconv-lite": "0.6", + "rw": "1" + }, + "bin": { + "csv2json": "bin/dsv2json.js", + "csv2tsv": "bin/dsv2dsv.js", + "dsv2dsv": "bin/dsv2dsv.js", + "dsv2json": "bin/dsv2json.js", + "json2csv": "bin/json2dsv.js", + "json2dsv": "bin/json2dsv.js", + "json2tsv": "bin/json2dsv.js", + "tsv2csv": "bin/dsv2dsv.js", + "tsv2json": "bin/dsv2json.js" + }, "engines": { - "node": ">=0.10.0" + "node": ">=12" } }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "license": "MIT" - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-glob": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz", - "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==", - "dev": true, + "node_modules/d3-dsv/node_modules/commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, "engines": { - "node": ">=8.6.0" + "node": ">= 10" } }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, + "node_modules/d3-ease": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-ease/-/d3-ease-3.0.1.tgz", + "integrity": "sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-fetch": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-fetch/-/d3-fetch-3.0.1.tgz", + "integrity": "sha512-kpkQIM20n3oLVBKGg6oHrUchHM3xODkTzjMoj7aWQFq5QEM+R6E4WkzT5+tojDY7yjez8KgCBRoj4aEr99Fdqw==", "license": "ISC", "dependencies": { - "is-glob": "^4.0.1" + "d3-dsv": "1 - 3" }, "engines": { - "node": ">= 6" + "node": ">=12" } }, - "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/fastdom": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/fastdom/-/fastdom-1.0.12.tgz", - "integrity": "sha512-LB+xjSTEbjHE1cWsxu+tN2Xqr1kpi+V9aADI7sVM5ZMaXyYGPHULQMzpJMYqOTULK/73pUkWVzzObFRBkPr+hg==", - "license": "MIT", + "node_modules/d3-force": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-force/-/d3-force-3.0.0.tgz", + "integrity": "sha512-zxV/SsA+U4yte8051P4ECydjD/S+qeYtnaIyAs9tgHCqfguma/aAQDjo85A9Z6EKhBirHRJHXIgJUlffT4wdLg==", + "license": "ISC", "dependencies": { - "strictdom": "^1.0.1" + "d3-dispatch": "1 - 3", + "d3-quadtree": "1 - 3", + "d3-timer": "1 - 3" + }, + "engines": { + "node": ">=12" } }, - "node_modules/fastq": { - "version": "1.20.3", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", - "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", - "dev": true, + "node_modules/d3-format": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-3.1.2.tgz", + "integrity": "sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==", "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" + "engines": { + "node": ">=12" } }, - "node_modules/fault": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/fault/-/fault-1.0.4.tgz", - "integrity": "sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==", - "license": "MIT", + "node_modules/d3-geo": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/d3-geo/-/d3-geo-3.1.1.tgz", + "integrity": "sha512-637ln3gXKXOwhalDzinUgY83KzNWZRKbYubaG+fGVuc/dxO64RRljtCTnf5ecMyE1RIdtqpkVcq0IbtU2S8j2Q==", + "license": "ISC", "dependencies": { - "format": "^0.2.0" + "d3-array": "2.5.0 - 3" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" + "engines": { + "node": ">=12" } }, - "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" - }, + "node_modules/d3-hierarchy": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz", + "integrity": "sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==", + "license": "ISC", "engines": { - "node": ">=16.0.0" + "node": ">=12" } }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "license": "MIT", + "node_modules/d3-interpolate": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz", + "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==", + "license": "ISC", "dependencies": { - "to-regex-range": "^5.0.1" + "d3-color": "1 - 3" }, "engines": { - "node": ">=8" + "node": ">=12" } }, - "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" - }, + "node_modules/d3-path": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz", + "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==", + "license": "ISC", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=12" } }, - "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" - }, + "node_modules/d3-polygon": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-polygon/-/d3-polygon-3.0.1.tgz", + "integrity": "sha512-3vbA7vXYwfe1SYhED++fPUQlWSYTTGmFmQiany/gdbiWgU/iEyQzyymwL9SkJjFFuCS4902BSzewVGsHHmHtXg==", + "license": "ISC", "engines": { - "node": ">=16" + "node": ">=12" } }, - "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/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-callable": "^1.2.7" - }, + "node_modules/d3-quadtree": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-quadtree/-/d3-quadtree-3.0.1.tgz", + "integrity": "sha512-04xDrxQTDTCFwP5H6hRhsRcb9xxv2RzkcsygFzmkSIOJy3PeRJP7sNk3VRIbKXcog561P9oU0/rVH6vDROAgUw==", + "license": "ISC", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=12" } }, - "node_modules/format": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz", - "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==", + "node_modules/d3-random": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-random/-/d3-random-3.0.1.tgz", + "integrity": "sha512-FXMe9GfxTxqd5D6jFsQ+DJ8BJS4E/fT5mqqdjovykEB2oFbTMDVdg1MGFxfQW+FBOGoB++k8swBrgwSHT1cUXQ==", + "license": "ISC", "engines": { - "node": ">=0.4.x" + "node": ">=12" } }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node_modules/d3-sankey": { + "version": "0.12.3", + "resolved": "https://registry.npmjs.org/d3-sankey/-/d3-sankey-0.12.3.tgz", + "integrity": "sha512-nQhsBRmM19Ax5xEIPLMY9ZmJ/cDvd1BG3UVvt5h3WRxKg5zGRbvnteTyWAbzeSvlh3tW7ZEmq4VwR5mB3tutmQ==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-array": "1 - 2", + "d3-shape": "^1.2.0" } }, - "node_modules/function.prototype.name": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", - "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", - "dev": true, - "license": "MIT", + "node_modules/d3-sankey/node_modules/d3-array": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-2.12.1.tgz", + "integrity": "sha512-B0ErZK/66mHtEsR1TkPEEkwdy+WDesimkM5gpZr5Dsg54BiTA5RXtYW5qTLIAcekaS9xfZrzBLF/OAkB3Qn1YQ==", + "license": "BSD-3-Clause", "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "functions-have-names": "^1.2.3", - "hasown": "^2.0.2", - "is-callable": "^1.2.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "internmap": "^1.0.0" } }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "node_modules/d3-sankey/node_modules/d3-path": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-1.0.9.tgz", + "integrity": "sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg==", + "license": "BSD-3-Clause" }, - "node_modules/generator-function": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", - "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" + "node_modules/d3-sankey/node_modules/d3-shape": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-1.3.7.tgz", + "integrity": "sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw==", + "license": "BSD-3-Clause", + "dependencies": { + "d3-path": "1" } }, - "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", + "node_modules/d3-sankey/node_modules/internmap": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-1.0.1.tgz", + "integrity": "sha512-lDB5YccMydFBtasVtxnZ3MRBHuaoE8GKsppq+EchKL2U4nK/DmEpPHNH8MZe5HkMtpSiTSOZwfN0tzYjO/lJEw==", + "license": "ISC" + }, + "node_modules/d3-scale": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz", + "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==", + "license": "ISC", + "dependencies": { + "d3-array": "2.10.0 - 3", + "d3-format": "1 - 3", + "d3-interpolate": "1.2.0 - 3", + "d3-time": "2.1.1 - 3", + "d3-time-format": "2 - 4" + }, "engines": { - "node": ">=6.9.0" + "node": ">=12" } }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, - "license": "MIT", + "node_modules/d3-scale-chromatic": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz", + "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==", + "license": "ISC", "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" + "d3-color": "1 - 3", + "d3-interpolate": "1 - 3" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=12" } }, - "node_modules/get-nonce": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz", - "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==", - "license": "MIT", + "node_modules/d3-selection": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", + "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", + "license": "ISC", "engines": { - "node": ">=6" + "node": ">=12" } }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "license": "MIT", + "node_modules/d3-shape": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz", + "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==", + "license": "ISC", "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" + "d3-path": "^3.1.0" }, "engines": { - "node": ">= 0.4" + "node": ">=12" } }, - "node_modules/get-symbol-description": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", - "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", - "dev": true, - "license": "MIT", + "node_modules/d3-time": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz", + "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==", + "license": "ISC", "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6" + "d3-array": "2 - 3" }, "engines": { - "node": ">= 0.4" + "node": ">=12" + } + }, + "node_modules/d3-time-format": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-4.1.0.tgz", + "integrity": "sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==", + "license": "ISC", + "dependencies": { + "d3-time": "1 - 3" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=12" } }, - "node_modules/get-tsconfig": { - "version": "4.13.7", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.7.tgz", - "integrity": "sha512-7tN6rFgBlMgpBML5j8typ92BKFi2sFQvIdpAqLA2beia5avZDrMs0FLZiM5etShWq5irVyGcGMEA1jcDaK7A/Q==", - "dev": true, - "license": "MIT", + "node_modules/d3-timer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-timer/-/d3-timer-3.0.1.tgz", + "integrity": "sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/d3-transition": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/d3-transition/-/d3-transition-3.0.1.tgz", + "integrity": "sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==", + "license": "ISC", "dependencies": { - "resolve-pkg-maps": "^1.0.0" + "d3-color": "1 - 3", + "d3-dispatch": "1 - 3", + "d3-ease": "1 - 3", + "d3-interpolate": "1 - 3", + "d3-timer": "1 - 3" }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "d3-selection": "2 - 3" } }, - "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, + "node_modules/d3-zoom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/d3-zoom/-/d3-zoom-3.0.0.tgz", + "integrity": "sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==", "license": "ISC", "dependencies": { - "is-glob": "^4.0.3" + "d3-dispatch": "1 - 3", + "d3-drag": "2 - 3", + "d3-interpolate": "1 - 3", + "d3-selection": "2 - 3", + "d3-transition": "2 - 3" }, "engines": { - "node": ">=10.13.0" + "node": ">=12" } }, - "node_modules/globals": { - "version": "16.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-16.4.0.tgz", - "integrity": "sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==", - "dev": true, + "node_modules/dagre-d3-es": { + "version": "7.0.14", + "resolved": "https://registry.npmjs.org/dagre-d3-es/-/dagre-d3-es-7.0.14.tgz", + "integrity": "sha512-P4rFMVq9ESWqmOgK+dlXvOtLwYg0i7u0HBGJER0LZDJT2VHIPAMZ/riPxqJceWMStH5+E61QxFra9kIS3AqdMg==", "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "dependencies": { + "d3": "^7.9.0", + "lodash-es": "^4.17.21" } }, - "node_modules/globalthis": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", - "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", + "node_modules/data-urls": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz", + "integrity": "sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==", "dev": true, "license": "MIT", "dependencies": { - "define-properties": "^1.2.1", - "gopd": "^1.0.1" + "whatwg-mimetype": "^5.0.0", + "whatwg-url": "^16.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" } }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, + "node_modules/dayjs": { + "version": "1.11.23", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.23.tgz", + "integrity": "sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==", + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, "engines": { - "node": ">= 0.4" + "node": ">=6.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "node_modules/decimal.js": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", + "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", "dev": true, - "license": "ISC" - }, - "node_modules/hachure-fill": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/hachure-fill/-/hachure-fill-0.5.2.tgz", - "integrity": "sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg==", "license": "MIT" }, - "node_modules/has-bigints": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", - "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", - "dev": true, + "node_modules/decode-named-character-reference": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz", + "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==", "license": "MIT", - "engines": { - "node": ">= 0.4" + "dependencies": { + "character-entities": "^2.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "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==", + "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", - "engines": { - "node": ">=8" - } + "license": "MIT" }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dev": true, - "license": "MIT", + "node_modules/delaunator": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/delaunator/-/delaunator-5.1.0.tgz", + "integrity": "sha512-AGrQ4QSgssa1NGmWmLPqN5NY2KajF5MqxetNEO+o0n3ZwZZeTmt7bBnvzHWrmkZFxGgr4HdyFgelzgi06otLuQ==", + "license": "ISC", "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "robust-predicates": "^3.0.2" } }, - "node_modules/has-proto": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", - "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", - "dev": true, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.0" - }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=6" } }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, - "license": "MIT", + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8" } }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dev": true, + "node_modules/detect-node-es": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz", + "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==", + "license": "MIT" + }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", "license": "MIT", "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" + "dequal": "^2.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "node_modules/dingbat-to-unicode": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dingbat-to-unicode/-/dingbat-to-unicode-1.0.1.tgz", + "integrity": "sha512-98l0sW87ZT58pU4i61wa2OHwxbiYSbuxsCBozaVnYX2iCnr3bLM3fIes1/ej7h1YdOKuKt/MLs706TVnALA65w==", + "license": "BSD-2-Clause" + }, + "node_modules/dom-accessibility-api": { + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", + "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==", "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" + "license": "MIT" + }, + "node_modules/dompurify": { + "version": "3.4.13", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.13.tgz", + "integrity": "sha512-2vmYIoqjze2d+kakP8S/nS5shfsl587kzwEjcGlTdiksUVgFHnFCsLYDVj/JNqJVOQZGSYBTmuycv0PodwmnMQ==", + "license": "(MPL-2.0 OR Apache-2.0)", + "optionalDependencies": { + "@types/trusted-types": "^2.0.7" } }, - "node_modules/hast-util-from-dom": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/hast-util-from-dom/-/hast-util-from-dom-5.0.1.tgz", - "integrity": "sha512-N+LqofjR2zuzTjCPzyDUdSshy4Ma6li7p/c3pA78uTwzFgENbgbUrm2ugwsOdcjI1muO+o6Dgzp9p8WHtn/39Q==", - "license": "ISC", + "node_modules/duck": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/duck/-/duck-0.1.12.tgz", + "integrity": "sha512-wkctla1O6VfP89gQ+J/yDesM0S7B7XLXjKGzXxMDVFg7uEn706niAtyYovKbyq1oT9YwDcly721/iUWoc8MVRg==", + "license": "BSD", "dependencies": { - "@types/hast": "^3.0.0", - "hastscript": "^9.0.0", - "web-namespaces": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "underscore": "^1.13.1" } }, - "node_modules/hast-util-from-html": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/hast-util-from-html/-/hast-util-from-html-2.0.3.tgz", - "integrity": "sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw==", - "license": "MIT", + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", "dependencies": { - "@types/hast": "^3.0.0", - "devlop": "^1.1.0", - "hast-util-from-parse5": "^8.0.0", - "parse5": "^7.0.0", - "vfile": "^6.0.0", - "vfile-message": "^4.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "safe-buffer": "^5.0.1" } }, - "node_modules/hast-util-from-html-isomorphic": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hast-util-from-html-isomorphic/-/hast-util-from-html-isomorphic-2.0.0.tgz", - "integrity": "sha512-zJfpXq44yff2hmE0XmwEOzdWin5xwH+QIhMLOScpX91e/NSGPsAzNCvLQDIEPyO2TXi+lBmU6hjLIhV8MwP2kw==", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "hast-util-from-dom": "^5.0.0", - "hast-util-from-html": "^2.0.0", - "unist-util-remove-position": "^5.0.0" + "node_modules/electron-to-chromium": { + "version": "1.5.468", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.468.tgz", + "integrity": "sha512-8XdEp3sIqO+PzmVPxhzqHq/3+yCxp44m27cm2WY1sRn3ZhwKyKmqSi2hx6gEhmnOXmh8NUuYE00z6Onzn5m6DA==", + "dev": true, + "license": "ISC" + }, + "node_modules/entities": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", + "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "url": "https://github.com/fb55/entities?sponsor=1" } }, - "node_modules/hast-util-from-html/node_modules/parse5": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", - "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", + "node_modules/es-toolkit": { + "version": "1.46.1", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.46.1.tgz", + "integrity": "sha512-5eNtXOs3tbfxXOj04tjjseeWkRWaoCjdEI+96DgwzZoe6c9juL49pXlzAFTI72aWC9Y8p7168g6XIKjh7k6pyQ==", "license": "MIT", - "dependencies": { - "entities": "^6.0.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" + "workspaces": [ + "docs", + "benchmarks" + ] + }, + "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/hast-util-from-parse5": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-8.0.3.tgz", - "integrity": "sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg==", + "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", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/unist": "^3.0.0", - "devlop": "^1.0.0", - "hastscript": "^9.0.0", - "property-information": "^7.0.0", - "vfile": "^6.0.0", - "vfile-location": "^5.0.0", - "web-namespaces": "^2.0.0" + "engines": { + "node": ">=10" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/hast-util-is-element": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/hast-util-is-element/-/hast-util-is-element-3.0.0.tgz", - "integrity": "sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==", + "node_modules/eslint": { + "version": "9.39.4", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.4.tgz", + "integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==", + "dev": true, "license": "MIT", "dependencies": { - "@types/hast": "^3.0.0" + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.2", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", + "@eslint/eslintrc": "^3.3.5", + "@eslint/js": "9.39.4", + "@eslint/plugin-kit": "^0.4.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.5", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } } }, - "node_modules/hast-util-parse-selector": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz", - "integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==", + "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": { - "@types/hast": "^3.0.0" + "@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" }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "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/hast-util-raw": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-9.1.0.tgz", - "integrity": "sha512-Y8/SBAHkZGoNkpzqqfCldijcuUKh7/su31kEBp67cFY09Wy0mTRgtsLYsiIxMJxlu0f6AA5SUTbDR8K0rxnbUw==", - "license": "MIT", + "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": { - "@types/hast": "^3.0.0", - "@types/unist": "^3.0.0", - "@ungap/structured-clone": "^1.0.0", - "hast-util-from-parse5": "^8.0.0", - "hast-util-to-parse5": "^8.0.0", - "html-void-elements": "^3.0.0", - "mdast-util-to-hast": "^13.0.0", - "parse5": "^7.0.0", - "unist-util-position": "^5.0.0", - "unist-util-visit": "^5.0.0", - "vfile": "^6.0.0", - "web-namespaces": "^2.0.0", - "zwitch": "^2.0.0" + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "url": "https://opencollective.com/eslint" } }, - "node_modules/hast-util-raw/node_modules/parse5": { - "version": "7.3.0", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", - "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", - "license": "MIT", - "dependencies": { - "entities": "^6.0.0" + "node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" }, "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" + "url": "https://opencollective.com/eslint" } }, - "node_modules/hast-util-sanitize": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/hast-util-sanitize/-/hast-util-sanitize-5.0.2.tgz", - "integrity": "sha512-3yTWghByc50aGS7JlGhk61SPenfE/p1oaFeNwkOOyrscaOkMGrcW9+Cy/QAIOBpZxP1yqDIzFMR0+Np0i0+usg==", + "node_modules/eslint/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/eslint/node_modules/brace-expansion": { + "version": "1.1.18", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", + "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", + "dev": true, "license": "MIT", "dependencies": { - "@types/hast": "^3.0.0", - "@ungap/structured-clone": "^1.0.0", - "unist-util-position": "^5.0.0" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/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": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "url": "https://opencollective.com/eslint" } }, - "node_modules/hast-util-to-jsx-runtime": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz", - "integrity": "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==", - "license": "MIT", + "node_modules/eslint/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": { - "@types/estree": "^1.0.0", - "@types/hast": "^3.0.0", - "@types/unist": "^3.0.0", - "comma-separated-tokens": "^2.0.0", - "devlop": "^1.0.0", - "estree-util-is-identifier-name": "^3.0.0", - "hast-util-whitespace": "^3.0.0", - "mdast-util-mdx-expression": "^2.0.0", - "mdast-util-mdx-jsx": "^3.0.0", - "mdast-util-mdxjs-esm": "^2.0.0", - "property-information": "^7.0.0", - "space-separated-tokens": "^2.0.0", - "style-to-js": "^1.0.0", - "unist-util-position": "^5.0.0", - "vfile-message": "^4.0.0" + "brace-expansion": "^1.1.7" }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "engines": { + "node": "*" } }, - "node_modules/hast-util-to-parse5": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-8.0.1.tgz", - "integrity": "sha512-MlWT6Pjt4CG9lFCjiz4BH7l9wmrMkfkJYCxFwKQic8+RTZgWPuWxwAfjJElsXkex7DJjfSJsQIt931ilUgmwdA==", - "license": "MIT", + "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": { - "@types/hast": "^3.0.0", - "comma-separated-tokens": "^2.0.0", - "devlop": "^1.0.0", - "property-information": "^7.0.0", - "space-separated-tokens": "^2.0.0", - "web-namespaces": "^2.0.0", - "zwitch": "^2.0.0" + "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": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "url": "https://opencollective.com/eslint" } }, - "node_modules/hast-util-to-text": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/hast-util-to-text/-/hast-util-to-text-4.0.2.tgz", - "integrity": "sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==", - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "@types/unist": "^3.0.0", - "hast-util-is-element": "^3.0.0", - "unist-util-find-after": "^5.0.0" + "node_modules/espree/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": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "url": "https://opencollective.com/eslint" } }, - "node_modules/hast-util-whitespace": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", - "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", - "license": "MIT", + "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": { - "@types/hast": "^3.0.0" + "estraverse": "^5.1.0" }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "engines": { + "node": ">=0.10" } }, - "node_modules/hastscript": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-9.0.1.tgz", - "integrity": "sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==", - "license": "MIT", + "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": { - "@types/hast": "^3.0.0", - "comma-separated-tokens": "^2.0.0", - "hast-util-parse-selector": "^4.0.0", - "property-information": "^7.0.0", - "space-separated-tokens": "^2.0.0" + "estraverse": "^5.2.0" }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "engines": { + "node": ">=4.0" } }, - "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==", + "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": "MIT" + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } }, - "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, + "node_modules/estree-util-is-identifier-name": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz", + "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==", "license": "MIT", - "dependencies": { - "hermes-estree": "0.25.1" + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/highlight.js": { - "version": "10.7.3", - "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz", - "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", - "license": "BSD-3-Clause", + "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": "*" + "node": ">=0.10.0" } }, - "node_modules/highlightjs-vue": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/highlightjs-vue/-/highlightjs-vue-1.0.0.tgz", - "integrity": "sha512-PDEfEF102G23vHmPhLyPboFCD+BkMGu+GuJe2d9/eH4FsCwvgBpnc9n0pGE+ffKdph38s6foEZiEjdgHdzp+IA==", - "license": "CC0-1.0" + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" }, - "node_modules/html-encoding-sniffer": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz", - "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==", + "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", - "dependencies": { - "@exodus/bytes": "^1.6.0" - }, - "engines": { - "node": "^20.19.0 || ^22.12.0 || >=24.0.0" - } + "license": "MIT" }, - "node_modules/html-url-attributes": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz", - "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==", + "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/fastdom": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/fastdom/-/fastdom-1.0.12.tgz", + "integrity": "sha512-LB+xjSTEbjHE1cWsxu+tN2Xqr1kpi+V9aADI7sVM5ZMaXyYGPHULQMzpJMYqOTULK/73pUkWVzzObFRBkPr+hg==", "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" + "dependencies": { + "strictdom": "^1.0.1" } }, - "node_modules/html-void-elements": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", - "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==", + "node_modules/fault": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/fault/-/fault-1.0.4.tgz", + "integrity": "sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==", "license": "MIT", + "dependencies": { + "format": "^0.2.0" + }, "funding": { "type": "github", "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/http_ece": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http_ece/-/http_ece-1.2.0.tgz", - "integrity": "sha512-JrF8SSLVmcvc5NducxgyOrKXe3EsyHMgBFgSaIUGmArKe+rwr0uphRkRXvwiom3I+fpIfoItveHrfudL8/rxuA==", + "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": ">=16" + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } } }, - "node_modules/https-proxy-agent": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", - "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "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": { - "agent-base": "^7.1.2", - "debug": "4" + "flat-cache": "^4.0.0" }, "engines": { - "node": ">= 14" + "node": ">=16.0.0" } }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "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": { - "safer-buffer": ">= 2.1.2 < 3.0.0" + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "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": ">= 4" + "node": ">=16" } }, - "node_modules/immediate": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", - "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==", - "license": "MIT" + "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/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "node_modules/format": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz", + "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==", + "engines": { + "node": ">=0.4.x" + } + }, + "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", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=6.9.0" } }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, + "node_modules/get-nonce": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz", + "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==", "license": "MIT", "engines": { - "node": ">=0.8.19" + "node": ">=6" } }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" + "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/inline-style-parser": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz", - "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==", + "node_modules/hachure-fill": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/hachure-fill/-/hachure-fill-0.5.2.tgz", + "integrity": "sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg==", "license": "MIT" }, - "node_modules/internal-slot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", - "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", + "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", - "dependencies": { - "es-errors": "^1.3.0", - "hasown": "^2.0.2", - "side-channel": "^1.1.0" - }, "engines": { - "node": ">= 0.4" + "node": ">=8" } }, - "node_modules/internmap": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", - "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", + "node_modules/hast-util-from-dom": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/hast-util-from-dom/-/hast-util-from-dom-5.0.1.tgz", + "integrity": "sha512-N+LqofjR2zuzTjCPzyDUdSshy4Ma6li7p/c3pA78uTwzFgENbgbUrm2ugwsOdcjI1muO+o6Dgzp9p8WHtn/39Q==", "license": "ISC", - "engines": { - "node": ">=12" + "dependencies": { + "@types/hast": "^3.0.0", + "hastscript": "^9.0.0", + "web-namespaces": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/is-alphabetical": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", - "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==", + "node_modules/hast-util-from-html": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/hast-util-from-html/-/hast-util-from-html-2.0.3.tgz", + "integrity": "sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw==", "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "devlop": "^1.1.0", + "hast-util-from-parse5": "^8.0.0", + "parse5": "^7.0.0", + "vfile": "^6.0.0", + "vfile-message": "^4.0.0" + }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/is-alphanumerical": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz", - "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==", + "node_modules/hast-util-from-html-isomorphic": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/hast-util-from-html-isomorphic/-/hast-util-from-html-isomorphic-2.0.0.tgz", + "integrity": "sha512-zJfpXq44yff2hmE0XmwEOzdWin5xwH+QIhMLOScpX91e/NSGPsAzNCvLQDIEPyO2TXi+lBmU6hjLIhV8MwP2kw==", "license": "MIT", "dependencies": { - "is-alphabetical": "^2.0.0", - "is-decimal": "^2.0.0" + "@types/hast": "^3.0.0", + "hast-util-from-dom": "^5.0.0", + "hast-util-from-html": "^2.0.0", + "unist-util-remove-position": "^5.0.0" }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/is-array-buffer": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", - "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", - "dev": true, + "node_modules/hast-util-from-html/node_modules/parse5": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", + "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", "license": "MIT", "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" + "entities": "^6.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/inikulin/parse5?sponsor=1" } }, - "node_modules/is-async-function": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", - "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", - "dev": true, + "node_modules/hast-util-from-parse5": { + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-8.0.3.tgz", + "integrity": "sha512-3kxEVkEKt0zvcZ3hCRYI8rqrgwtlIOFMWkbclACvjlDw8Li9S2hk/d51OI0nr/gIpdMHNepwgOKqZ/sy0Clpyg==", "license": "MIT", "dependencies": { - "async-function": "^1.0.0", - "call-bound": "^1.0.3", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "devlop": "^1.0.0", + "hastscript": "^9.0.0", + "property-information": "^7.0.0", + "vfile": "^6.0.0", + "vfile-location": "^5.0.0", + "web-namespaces": "^2.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/is-bigint": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", - "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", - "dev": true, + "node_modules/hast-util-is-element": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-is-element/-/hast-util-is-element-3.0.0.tgz", + "integrity": "sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==", "license": "MIT", "dependencies": { - "has-bigints": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" + "@types/hast": "^3.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/is-boolean-object": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", - "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", - "dev": true, + "node_modules/hast-util-parse-selector": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz", + "integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" + "@types/hast": "^3.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/is-bun-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-bun-module/-/is-bun-module-2.0.0.tgz", - "integrity": "sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==", - "dev": true, + "node_modules/hast-util-raw": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-9.1.0.tgz", + "integrity": "sha512-Y8/SBAHkZGoNkpzqqfCldijcuUKh7/su31kEBp67cFY09Wy0mTRgtsLYsiIxMJxlu0f6AA5SUTbDR8K0rxnbUw==", "license": "MIT", "dependencies": { - "semver": "^7.7.1" + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "@ungap/structured-clone": "^1.0.0", + "hast-util-from-parse5": "^8.0.0", + "hast-util-to-parse5": "^8.0.0", + "html-void-elements": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "parse5": "^7.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0", + "web-namespaces": "^2.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/is-bun-module/node_modules/semver": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", - "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "node_modules/hast-util-raw/node_modules/parse5": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", + "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", + "license": "MIT", + "dependencies": { + "entities": "^6.0.0" }, - "engines": { - "node": ">=10" + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" } }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, + "node_modules/hast-util-sanitize": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/hast-util-sanitize/-/hast-util-sanitize-5.0.2.tgz", + "integrity": "sha512-3yTWghByc50aGS7JlGhk61SPenfE/p1oaFeNwkOOyrscaOkMGrcW9+Cy/QAIOBpZxP1yqDIzFMR0+Np0i0+usg==", "license": "MIT", - "engines": { - "node": ">= 0.4" + "dependencies": { + "@types/hast": "^3.0.0", + "@ungap/structured-clone": "^1.0.0", + "unist-util-position": "^5.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/is-core-module": { - "version": "2.16.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", - "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", - "dev": true, + "node_modules/hast-util-to-jsx-runtime": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz", + "integrity": "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==", "license": "MIT", "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" + "@types/estree": "^1.0.0", + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "devlop": "^1.0.0", + "estree-util-is-identifier-name": "^3.0.0", + "hast-util-whitespace": "^3.0.0", + "mdast-util-mdx-expression": "^2.0.0", + "mdast-util-mdx-jsx": "^3.0.0", + "mdast-util-mdxjs-esm": "^2.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0", + "style-to-js": "^1.0.0", + "unist-util-position": "^5.0.0", + "vfile-message": "^4.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/is-data-view": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", - "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", - "dev": true, + "node_modules/hast-util-to-parse5": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-8.0.1.tgz", + "integrity": "sha512-MlWT6Pjt4CG9lFCjiz4BH7l9wmrMkfkJYCxFwKQic8+RTZgWPuWxwAfjJElsXkex7DJjfSJsQIt931ilUgmwdA==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.2", - "get-intrinsic": "^1.2.6", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" + "@types/hast": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "devlop": "^1.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0", + "web-namespaces": "^2.0.0", + "zwitch": "^2.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/is-date-object": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", - "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", - "dev": true, + "node_modules/hast-util-to-text": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/hast-util-to-text/-/hast-util-to-text-4.0.2.tgz", + "integrity": "sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "hast-util-is-element": "^3.0.0", + "unist-util-find-after": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-whitespace": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", + "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" + "@types/hast": "^3.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/is-decimal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz", - "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==", + "node_modules/hastscript": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-9.0.1.tgz", + "integrity": "sha512-g7df9rMFX/SPi34tyGCyUBREQoKkapwdY/T04Qn9TDWfHhAYt4/I0gMVirzK5wEzeUqIjEB+LXC/ypb7Aqno5w==", "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-parse-selector": "^4.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0" + }, "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "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", - "engines": { - "node": ">=0.10.0" - } + "license": "MIT" }, - "node_modules/is-finalizationregistry": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", - "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", + "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": { - "call-bound": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "hermes-estree": "0.25.1" } }, - "node_modules/is-generator-function": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", - "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4", - "generator-function": "^2.0.0", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, + "node_modules/highlight.js": { + "version": "10.7.3", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz", + "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", + "license": "BSD-3-Clause", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": "*" } }, - "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==", + "node_modules/highlightjs-vue": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/highlightjs-vue/-/highlightjs-vue-1.0.0.tgz", + "integrity": "sha512-PDEfEF102G23vHmPhLyPboFCD+BkMGu+GuJe2d9/eH4FsCwvgBpnc9n0pGE+ffKdph38s6foEZiEjdgHdzp+IA==", + "license": "CC0-1.0" + }, + "node_modules/html-encoding-sniffer": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz", + "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==", "dev": true, "license": "MIT", "dependencies": { - "is-extglob": "^2.1.1" + "@exodus/bytes": "^1.6.0" }, "engines": { - "node": ">=0.10.0" + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" } }, - "node_modules/is-hexadecimal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz", - "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==", + "node_modules/html-url-attributes": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz", + "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==", "license": "MIT", "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" + "type": "opencollective", + "url": "https://opencollective.com/unified" } }, - "node_modules/is-map": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", - "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", - "dev": true, + "node_modules/html-void-elements": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", + "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==", "license": "MIT", - "engines": { - "node": ">= 0.4" - }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/is-negative-zero": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", - "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", - "dev": true, + "node_modules/http_ece": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http_ece/-/http_ece-1.2.0.tgz", + "integrity": "sha512-JrF8SSLVmcvc5NducxgyOrKXe3EsyHMgBFgSaIUGmArKe+rwr0uphRkRXvwiom3I+fpIfoItveHrfudL8/rxuA==", "license": "MIT", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=16" } }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, "engines": { - "node": ">=0.12.0" + "node": ">= 14" } }, - "node_modules/is-number-object": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", - "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", - "dev": true, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" + "safer-buffer": ">= 2.1.2 < 3.0.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=0.10.0" } }, - "node_modules/is-plain-obj": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", - "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "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": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">= 4" } }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true, + "node_modules/immediate": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", + "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==", "license": "MIT" }, - "node_modules/is-regex": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", - "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", + "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": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" }, "engines": { - "node": ">= 0.4" + "node": ">=6" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-set": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", - "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", + "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.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=0.8.19" } }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", - "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3" - }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/inline-style-parser": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz", + "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==", + "license": "MIT" + }, + "node_modules/internmap": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", + "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==", + "license": "ISC", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=12" } }, - "node_modules/is-string": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", - "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", - "dev": true, + "node_modules/is-alphabetical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", + "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==", "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/is-symbol": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", - "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", - "dev": true, + "node_modules/is-alphanumerical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz", + "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==", "license": "MIT", "dependencies": { - "call-bound": "^1.0.2", - "has-symbols": "^1.1.0", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" + "is-alphabetical": "^2.0.0", + "is-decimal": "^2.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "dev": true, + "node_modules/is-decimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz", + "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==", "license": "MIT", - "dependencies": { - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/is-weakmap": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", - "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", + "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.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">=0.10.0" } }, - "node_modules/is-weakref": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", - "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", + "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": { - "call-bound": "^1.0.3" + "is-extglob": "^2.1.1" }, "engines": { - "node": ">= 0.4" - }, + "node": ">=0.10.0" + } + }, + "node_modules/is-hexadecimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz", + "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==", + "license": "MIT", "funding": { - "url": "https://github.com/sponsors/ljharb" + "type": "github", + "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/is-weakset": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", - "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", - "dev": true, + "node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" - }, "engines": { - "node": ">= 0.4" + "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", "dev": true, "license": "MIT" }, @@ -7489,24 +4984,6 @@ "dev": true, "license": "ISC" }, - "node_modules/iterator.prototype": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz", - "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.6", - "get-proto": "^1.0.0", - "has-symbols": "^1.1.0", - "set-function-name": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/jiti": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", @@ -7655,32 +5132,16 @@ "license": "MIT" }, "node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "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", - "dependencies": { - "minimist": "^1.2.0" - }, "bin": { "json5": "lib/cli.js" - } - }, - "node_modules/jsx-ast-utils": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz", - "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flat": "^1.3.1", - "object.assign": "^4.1.4", - "object.values": "^1.1.6" }, "engines": { - "node": ">=4.0" + "node": ">=6" } }, "node_modules/jszip": { @@ -7702,359 +5163,78 @@ "license": "MIT", "dependencies": { "buffer-equal-constant-time": "^1.0.1", - "ecdsa-sig-formatter": "1.0.11", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/jws": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", - "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", - "license": "MIT", - "dependencies": { - "jwa": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/katex": { - "version": "0.16.47", - "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.47.tgz", - "integrity": "sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==", - "funding": [ - "https://opencollective.com/katex", - "https://github.com/sponsors/katex" - ], - "license": "MIT", - "dependencies": { - "commander": "^8.3.0" - }, - "bin": { - "katex": "cli.js" - } - }, - "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/khroma": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/khroma/-/khroma-2.1.0.tgz", - "integrity": "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==" - }, - "node_modules/language-subtag-registry": { - "version": "0.3.23", - "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz", - "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==", - "dev": true, - "license": "CC0-1.0" - }, - "node_modules/language-tags": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz", - "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==", - "dev": true, - "license": "MIT", - "dependencies": { - "language-subtag-registry": "^0.3.20" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/layout-base": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-1.0.2.tgz", - "integrity": "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==", - "license": "MIT" - }, - "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/lie": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", - "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", - "license": "MIT", - "dependencies": { - "immediate": "~3.0.5" - } - }, - "node_modules/lightningcss": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", - "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", - "dev": true, - "license": "MPL-2.0", - "dependencies": { - "detect-libc": "^2.0.3" - }, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "optionalDependencies": { - "lightningcss-android-arm64": "1.32.0", - "lightningcss-darwin-arm64": "1.32.0", - "lightningcss-darwin-x64": "1.32.0", - "lightningcss-freebsd-x64": "1.32.0", - "lightningcss-linux-arm-gnueabihf": "1.32.0", - "lightningcss-linux-arm64-gnu": "1.32.0", - "lightningcss-linux-arm64-musl": "1.32.0", - "lightningcss-linux-x64-gnu": "1.32.0", - "lightningcss-linux-x64-musl": "1.32.0", - "lightningcss-win32-arm64-msvc": "1.32.0", - "lightningcss-win32-x64-msvc": "1.32.0" - } - }, - "node_modules/lightningcss-android-arm64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", - "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-arm64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", - "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-x64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", - "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-freebsd-x64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", - "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm-gnueabihf": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", - "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-gnu": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", - "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-musl": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", - "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" } }, - "node_modules/lightningcss-linux-x64-gnu": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", - "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" + "node_modules/jws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "license": "MIT", + "dependencies": { + "jwa": "^2.0.1", + "safe-buffer": "^5.0.1" } }, - "node_modules/lightningcss-linux-x64-musl": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", - "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" + "node_modules/katex": { + "version": "0.16.47", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.47.tgz", + "integrity": "sha512-Eeo8Ys1doU1z+x8AZsPpQu+p/QcZBI5PeOo7QGQdy2x2m0MU/hYagBbGOmXwr5KVbEfVuWv9LpnQWeehogurjg==", + "funding": [ + "https://opencollective.com/katex", + "https://github.com/sponsors/katex" ], - "engines": { - "node": ">= 12.0.0" + "license": "MIT", + "dependencies": { + "commander": "^8.3.0" }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" + "bin": { + "katex": "cli.js" } }, - "node_modules/lightningcss-win32-arm64-msvc": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", - "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", - "cpu": [ - "arm64" - ], + "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": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" } }, - "node_modules/lightningcss-win32-x64-msvc": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", - "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", - "cpu": [ - "x64" - ], + "node_modules/khroma": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/khroma/-/khroma-2.1.0.tgz", + "integrity": "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==" + }, + "node_modules/layout-base": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/layout-base/-/layout-base-1.0.2.tgz", + "integrity": "sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==", + "license": "MIT" + }, + "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": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 12.0.0" + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lie": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", + "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", + "license": "MIT", + "dependencies": { + "immediate": "~3.0.5" } }, "node_modules/locate-path": { @@ -8096,19 +5276,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, "node_modules/lop": { "version": "0.4.2", "resolved": "https://registry.npmjs.org/lop/-/lop-0.4.2.tgz", @@ -8163,16 +5330,6 @@ "lz-string": "bin/bin.js" } }, - "node_modules/magic-string": { - "version": "0.30.21", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", - "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.5" - } - }, "node_modules/mammoth": { "version": "1.12.2", "resolved": "https://registry.npmjs.org/mammoth/-/mammoth-1.12.2.tgz", @@ -8216,16 +5373,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/mdast-util-find-and-replace": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz", @@ -8534,16 +5681,6 @@ "dev": true, "license": "CC0-1.0" }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, "node_modules/mermaid": { "version": "11.17.2", "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-11.17.2.tgz", @@ -9181,20 +6318,6 @@ ], "license": "MIT" }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, "node_modules/minimalistic-assert": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", @@ -9202,13 +6325,13 @@ "license": "ISC" }, "node_modules/minimatch": { - "version": "10.2.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz", - "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==", + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", "dev": true, "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^5.0.2" + "brace-expansion": "^5.0.8" }, "engines": { "node": "18 || 20 || >=22" @@ -9242,252 +6365,23 @@ "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "license": "MIT" - }, - "node_modules/nanoid": { - "version": "3.3.18", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz", - "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==", - "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/napi-postinstall": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.4.tgz", - "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==", - "dev": true, - "license": "MIT", - "bin": { - "napi-postinstall": "lib/cli.js" - }, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/napi-postinstall" - } - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/next": { - "version": "16.3.4", - "resolved": "https://registry.npmjs.org/next/-/next-16.3.4.tgz", - "integrity": "sha512-/Ztf6CeRH+ejEXUrYtqI4gkS66eFIHuSwqi60RgcpWKodxFZx2/dqVCMKBwILfAHXQ+F1b1vAudgj3mnxqtoIA==", - "license": "MIT", - "dependencies": { - "@next/env": "16.3.4", - "@swc/helpers": "0.5.23", - "baseline-browser-mapping": "^2.9.19", - "caniuse-lite": "^1.0.30001579", - "postcss": "8.5.23", - "styled-jsx": "5.1.6" - }, - "bin": { - "next": "dist/bin/next" - }, - "engines": { - "node": ">=20.9.0" - }, - "optionalDependencies": { - "@next/swc-darwin-arm64": "16.3.4", - "@next/swc-darwin-x64": "16.3.4", - "@next/swc-linux-arm64-gnu": "16.3.4", - "@next/swc-linux-arm64-musl": "16.3.4", - "@next/swc-linux-x64-gnu": "16.3.4", - "@next/swc-linux-x64-musl": "16.3.4", - "@next/swc-win32-arm64-msvc": "16.3.4", - "@next/swc-win32-x64-msvc": "16.3.4", - "sharp": "^0.35.4" - }, - "peerDependencies": { - "@opentelemetry/api": "^1.1.0", - "@playwright/test": "^1.51.1", - "babel-plugin-react-compiler": "*", - "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", - "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", - "sass": "^1.3.0" - }, - "peerDependenciesMeta": { - "@opentelemetry/api": { - "optional": true - }, - "@playwright/test": { - "optional": true - }, - "babel-plugin-react-compiler": { - "optional": true - }, - "sass": { - "optional": true - } - } - }, - "node_modules/node-exports-info": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/node-exports-info/-/node-exports-info-1.6.0.tgz", - "integrity": "sha512-pyFS63ptit/P5WqUkt+UUfe+4oevH+bFeIiPPdfb0pFeYEu/1ELnJu5l+5EcTKYL5M7zaAa7S8ddywgXypqKCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "array.prototype.flatmap": "^1.3.3", - "es-errors": "^1.3.0", - "object.entries": "^1.1.9", - "semver": "^6.3.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/node-releases": { - "version": "2.0.53", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.53.tgz", - "integrity": "sha512-D9UOmYG3UH1V+ENW56t5QXBwJw1YEY18ruVeus89Rw+SyIgjPkCO84bRzO3uNIYosJbNwiabWVn48o3uJLjxFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", - "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0", - "has-symbols": "^1.1.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.entries": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz", - "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.fromentries": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz", - "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "license": "MIT" }, - "node_modules/object.groupby": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz", - "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==", + "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", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2" - }, - "engines": { - "node": ">= 0.4" - } + "license": "MIT" }, - "node_modules/object.values": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz", - "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==", + "node_modules/node-releases": { + "version": "2.0.62", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.62.tgz", + "integrity": "sha512-A0Eq+qVDQI97IbAD6g/HriIuv256el9N8EwF4+xqJ49pwrdRYpdCSmLk0sO4I3fnS6hpYE5v22B73Bk+WArEoQ==", "dev": true, "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=18" } }, "node_modules/option": { @@ -9514,24 +6408,6 @@ "node": ">= 0.8.0" } }, - "node_modules/own-keys": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", - "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "get-intrinsic": "^1.2.6", - "object-keys": "^1.1.1", - "safe-push-apply": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -9675,13 +6551,6 @@ "node": ">=8" } }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true, - "license": "MIT" - }, "node_modules/pathe": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", @@ -9692,16 +6561,17 @@ "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": "2.3.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", - "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", "engines": { - "node": ">=8.6" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/jonschlinkert" @@ -9734,44 +6604,6 @@ "points-on-curve": "0.2.0" } }, - "node_modules/possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/postcss": { - "version": "8.5.23", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.23.tgz", - "integrity": "sha512-g50586zr4bZmwFiTlflMu8E0bDTb5I5gertgwAKmsdUlTQIhZtunzUlD1WSzwcVWPoAVpsrA6vlfCD7oXvRwgg==", - "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.16", - "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", @@ -9842,18 +6674,6 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "license": "MIT" }, - "node_modules/prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "dev": true, - "license": "MIT", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, "node_modules/property-information": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.1.0.tgz", @@ -9874,27 +6694,6 @@ "node": ">=6" } }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, "node_modules/react": { "version": "19.2.8", "resolved": "https://registry.npmjs.org/react/-/react-19.2.8.tgz", @@ -9916,13 +6715,6 @@ "react": "^19.2.8" } }, - "node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true, - "license": "MIT" - }, "node_modules/react-markdown": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz", @@ -10066,29 +6858,6 @@ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "license": "MIT" }, - "node_modules/reflect.getprototypeof": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", - "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.9", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.7", - "get-proto": "^1.0.1", - "which-builtin-type": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/refractor": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/refractor/-/refractor-5.0.0.tgz", @@ -10105,27 +6874,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", - "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-errors": "^1.3.0", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "set-function-name": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/rehype-katex": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/rehype-katex/-/rehype-katex-7.0.1.tgz", @@ -10272,27 +7020,6 @@ "integrity": "sha512-XGoLeRAVzUTcJ1qkxPQhDJyIZ5d6zzZD9nT7AEZOaaU9UbWclhycElmhO+VD5bFeLuzhPBaOV2oXC8uG35ZSpg==", "license": "MIT" }, - "node_modules/resolve": { - "version": "1.22.11", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", - "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-core-module": "^2.16.1", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -10303,27 +7030,6 @@ "node": ">=4" } }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "dev": true, - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, "node_modules/robust-predicates": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz", @@ -10342,56 +7048,12 @@ "points-on-path": "^0.2.1" } }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, "node_modules/rw": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz", "integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==", "license": "BSD-3-Clause" }, - "node_modules/safe-array-concat": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz", - "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.2", - "get-intrinsic": "^1.2.6", - "has-symbols": "^1.1.0", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -10412,41 +7074,6 @@ ], "license": "MIT" }, - "node_modules/safe-push-apply": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", - "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-regex-test": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", - "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-regex": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", @@ -10482,55 +7109,6 @@ "semver": "bin/semver.js" } }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-function-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", - "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-proto": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", - "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", @@ -10616,91 +7194,16 @@ "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/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "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" @@ -10722,27 +7225,6 @@ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "license": "BSD-3-Clause" }, - "node_modules/stable-hash": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/stable-hash/-/stable-hash-0.0.5.tgz", - "integrity": "sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==", - "dev": true, - "license": "MIT" - }, - "node_modules/stop-iteration-iterator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", - "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "internal-slot": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/strictdom": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/strictdom/-/strictdom-1.0.1.tgz", @@ -10764,119 +7246,6 @@ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "license": "MIT" }, - "node_modules/string.prototype.includes": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz", - "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.3" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/string.prototype.matchall": { - "version": "4.0.12", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz", - "integrity": "sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.6", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.6", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "internal-slot": "^1.1.0", - "regexp.prototype.flags": "^1.5.3", - "set-function-name": "^2.0.2", - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.repeat": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz", - "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-properties": "^1.1.3", - "es-abstract": "^1.17.5" - } - }, - "node_modules/string.prototype.trim": { - "version": "1.2.10", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", - "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.2", - "define-data-property": "^1.1.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-object-atoms": "^1.0.0", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", - "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.2", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", - "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/stringify-entities": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", @@ -10891,16 +7260,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -10932,29 +7291,6 @@ "inline-style-parser": "0.2.7" } }, - "node_modules/styled-jsx": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz", - "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==", - "license": "MIT", - "dependencies": { - "client-only": "0.0.1" - }, - "engines": { - "node": ">= 12.0.0" - }, - "peerDependencies": { - "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "babel-plugin-macros": { - "optional": true - } - } - }, "node_modules/stylis": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.4.0.tgz", @@ -10974,19 +7310,6 @@ "node": ">=8" } }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", @@ -11001,20 +7324,6 @@ "dev": true, "license": "MIT" }, - "node_modules/tapable": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", - "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, "node_modules/tinyexec": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.1.2.tgz", @@ -11025,14 +7334,14 @@ } }, "node_modules/tinyglobby": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", - "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", "dev": true, "license": "MIT", "dependencies": { "fdir": "^6.5.0", - "picomatch": "^4.0.3" + "picomatch": "^4.0.4" }, "engines": { "node": ">=12.0.0" @@ -11041,37 +7350,6 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/tinyglobby/node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.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/tldts": { "version": "7.4.12", "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.4.12.tgz", @@ -11092,19 +7370,6 @@ "dev": true, "license": "MIT" }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/tr46": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz", @@ -11160,19 +7425,6 @@ "node": ">=6.10" } }, - "node_modules/tsconfig-paths": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", - "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", @@ -11192,84 +7444,6 @@ "node": ">= 0.8.0" } }, - "node_modules/typed-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", - "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/typed-array-byte-length": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", - "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "for-each": "^0.3.3", - "gopd": "^1.2.0", - "has-proto": "^1.2.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-byte-offset": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz", - "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "for-each": "^0.3.3", - "gopd": "^1.2.0", - "has-proto": "^1.2.0", - "is-typed-array": "^1.1.15", - "reflect.getprototypeof": "^1.0.9" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz", - "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "is-typed-array": "^1.1.13", - "possible-typed-array-names": "^1.0.0", - "reflect.getprototypeof": "^1.0.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/typescript": { "version": "5.9.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", @@ -11285,16 +7459,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.57.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.57.1.tgz", - "integrity": "sha512-fLvZWf+cAGw3tqMCYzGIU6yR8K+Y9NT2z23RwOjlNFF2HwSB3KhdEFI5lSBv8tNmFkkBShSjsCjzx1vahZfISA==", + "version": "8.72.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.72.1.tgz", + "integrity": "sha512-3Li9FfPmQp45nxEtFD1ZCrYFI3cYK5kpyNtmm1H7lMagm8u9sy6PTjy3ytwQZs7KNukOyKFHAZ6z6GjYFeaeXw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.57.1", - "@typescript-eslint/parser": "8.57.1", - "@typescript-eslint/typescript-estree": "8.57.1", - "@typescript-eslint/utils": "8.57.1" + "@typescript-eslint/eslint-plugin": "8.72.1", + "@typescript-eslint/parser": "8.72.1", + "@typescript-eslint/typescript-estree": "8.72.1", + "@typescript-eslint/utils": "8.72.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -11305,7 +7479,7 @@ }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.0.0" + "typescript": ">=4.8.4 <6.1.0" } }, "node_modules/typescript-language-server": { @@ -11327,25 +7501,6 @@ "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==", "license": "MIT" }, - "node_modules/unbox-primitive": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", - "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-bigints": "^1.0.2", - "has-symbols": "^1.1.0", - "which-boxed-primitive": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/underscore": { "version": "1.13.8", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.8.tgz", @@ -11483,45 +7638,10 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/unrs-resolver": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.11.1.tgz", - "integrity": "sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "napi-postinstall": "^0.3.0" - }, - "funding": { - "url": "https://opencollective.com/unrs-resolver" - }, - "optionalDependencies": { - "@unrs/resolver-binding-android-arm-eabi": "1.11.1", - "@unrs/resolver-binding-android-arm64": "1.11.1", - "@unrs/resolver-binding-darwin-arm64": "1.11.1", - "@unrs/resolver-binding-darwin-x64": "1.11.1", - "@unrs/resolver-binding-freebsd-x64": "1.11.1", - "@unrs/resolver-binding-linux-arm-gnueabihf": "1.11.1", - "@unrs/resolver-binding-linux-arm-musleabihf": "1.11.1", - "@unrs/resolver-binding-linux-arm64-gnu": "1.11.1", - "@unrs/resolver-binding-linux-arm64-musl": "1.11.1", - "@unrs/resolver-binding-linux-ppc64-gnu": "1.11.1", - "@unrs/resolver-binding-linux-riscv64-gnu": "1.11.1", - "@unrs/resolver-binding-linux-riscv64-musl": "1.11.1", - "@unrs/resolver-binding-linux-s390x-gnu": "1.11.1", - "@unrs/resolver-binding-linux-x64-gnu": "1.11.1", - "@unrs/resolver-binding-linux-x64-musl": "1.11.1", - "@unrs/resolver-binding-wasm32-wasi": "1.11.1", - "@unrs/resolver-binding-win32-arm64-msvc": "1.11.1", - "@unrs/resolver-binding-win32-ia32-msvc": "1.11.1", - "@unrs/resolver-binding-win32-x64-msvc": "1.11.1" - } - }, "node_modules/update-browserslist-db": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.1.tgz", - "integrity": "sha512-ZZ61DsRsOnakl74HAmp3oSN4aXUmEWXf+i/yv0h7tIBfICc3VdrFErQKUUKPgu3AMsTUMbcongALEN4l6GSUrQ==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz", + "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==", "dev": true, "funding": [ { @@ -11752,95 +7872,6 @@ "node": ">= 8" } }, - "node_modules/which-boxed-primitive": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", - "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-bigint": "^1.1.0", - "is-boolean-object": "^1.2.1", - "is-number-object": "^1.1.1", - "is-string": "^1.1.1", - "is-symbol": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-builtin-type": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", - "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "function.prototype.name": "^1.1.6", - "has-tostringtag": "^1.0.2", - "is-async-function": "^2.0.0", - "is-date-object": "^1.1.0", - "is-finalizationregistry": "^1.1.0", - "is-generator-function": "^1.0.10", - "is-regex": "^1.2.1", - "is-weakref": "^1.0.2", - "isarray": "^2.0.5", - "which-boxed-primitive": "^1.1.0", - "which-collection": "^1.0.2", - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-collection": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", - "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-map": "^2.0.3", - "is-set": "^2.0.3", - "is-weakmap": "^2.0.2", - "is-weakset": "^2.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.20", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.20.tgz", - "integrity": "sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg==", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/word-wrap": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", @@ -11913,9 +7944,9 @@ } }, "node_modules/zod": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz", - "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==", + "version": "4.6.7", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", "dev": true, "license": "MIT", "funding": { diff --git a/package.json b/package.json index ed3a727e7..d22b3d89c 100644 --- a/package.json +++ b/package.json @@ -38,11 +38,11 @@ "package.json" ], "scripts": { - "dev": "next dev -H 127.0.0.1 -p 30178", - "dev:lan": "next dev -H 0.0.0.0 -p 30178", - "build": "next build --webpack", - "start": "next start -H 127.0.0.1 -p 30177", - "start:lan": "next start -H 0.0.0.0 -p 30177", + "dev": "bun --hot server/dev.ts -H 127.0.0.1 -p 30178", + "dev:lan": "bun --hot server/dev.ts -H 0.0.0.0 -p 30178", + "build": "bun scripts/build-client.ts", + "start": "bun server/main.ts -H 127.0.0.1 -p 30177", + "start:lan": "bun server/main.ts -H 0.0.0.0 -p 30177", "test": "bun test --parallel --timeout 30000", "typecheck": "tsc --noEmit", "lint": "eslint .", @@ -68,7 +68,6 @@ "mammoth": "^1.12.2", "mdast-util-find-and-replace": "^3.0.2", "mermaid": "^11.17.2", - "next": "16.3.4", "react": "^19.2.8", "react-dom": "^19.2.8", "react-markdown": "^10.1.0", @@ -84,7 +83,6 @@ "yaml": "^2" }, "devDependencies": { - "@tailwindcss/postcss": "^4.3.3", "@testing-library/dom": "^10.4.1", "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.7", @@ -97,11 +95,11 @@ "@types/web-push": "^3.6.4", "bun-plugin-tailwind": "0.1.2", "eslint": "^9", - "eslint-config-next": "16.3.4", + "eslint-plugin-react-hooks": "^7.0.1", "jsdom": "^29.1.1", - "postcss": "^8", "tailwindcss": "^4.3.3", "typescript": "^5", + "typescript-eslint": "^8.72.1", "typescript-language-server": "^6.0.0" } } diff --git a/proxy.ts b/proxy.ts index 0fa9e511d..93cd5724a 100644 --- a/proxy.ts +++ b/proxy.ts @@ -1,4 +1,3 @@ -import { NextResponse, type NextRequest } from "next/server"; import { isApiRequestOriginAllowed, shouldCheckApiRequestOrigin } from "@/lib/request-security"; import { isTrustedProxyRequest, @@ -9,9 +8,24 @@ import { OMP_WEB_TRUSTED_HEADER, } from "@/lib/web-auth"; -export function proxy(request: NextRequest) { - if (request.nextUrl.pathname.startsWith("/api/") && shouldCheckApiRequestOrigin(request) && !isApiRequestOriginAllowed(request)) { - return NextResponse.json({ error: "Cross-origin API requests are not allowed" }, { status: 403 }); +// The sign-in screen still needs its JavaScript, CSS and fonts (/assets/, and +// Bun's dev bundles under /_bun/) before a session exists; these and the +// ordinary browser icons are public assets, not workspace data. /api/manifest +// stays authenticated: its link includes credentials and its embedded +// installation icons need no separate request. The service worker script holds +// no data either, and the browser re-fetches it for update checks even after +// the sign-in cookie expired. /api/hosts/link and its blob/ subpath (only +// those: the pattern is anchored) authenticate the host's bearer token +// themselves before they read any body (lib/hosts/hub.ts). +export const UNGATED = /^\/(?:assets\/|_bun\/|favicon\.ico|icon\.svg|icon\.png|icon-192\.png|badge-96\.png|sw\.js|api\/hosts\/link(?:\/|$))/; + +/** The password gate and API origin check; null means "continue". */ +export function proxy(request: Request): Response | null { + const url = new URL(request.url); + const { pathname } = url; + if (UNGATED.test(pathname)) return null; + if (pathname.startsWith("/api/") && shouldCheckApiRequestOrigin(request) && !isApiRequestOriginAllowed(request)) { + return Response.json({ error: "Cross-origin API requests are not allowed" }, { status: 403 }); } // A configured-but-unusable password (plaintext, or a truncated hash) must // never degrade into an open server: refuse every request with the fix. The @@ -19,43 +33,27 @@ export function proxy(request: NextRequest) { // deliberately logs nothing — a doomed request loop must not flood the log. const passwordProblem = webPasswordConfigurationProblem(); if (passwordProblem) { - return new NextResponse(`omp-web password configuration error\n\n${passwordProblem}\n`, { + return new Response(`omp-web password configuration error\n\n${passwordProblem}\n`, { status: 503, headers: { "content-type": "text/plain; charset=utf-8", "cache-control": "no-store" }, }); } if (!isWebPasswordEnabled()) { - return request.nextUrl.pathname === "/login" - ? NextResponse.redirect(new URL("/", request.url)) - : NextResponse.next(); + return pathname === "/login" ? Response.redirect(new URL("/", url), 307) : null; } - const { pathname } = request.nextUrl; const hasSession = isTrustedProxyRequest(request.headers.get(OMP_WEB_TRUSTED_HEADER)) - || isValidWebSession(request.cookies.get(OMP_WEB_SESSION_COOKIE)?.value); + || isValidWebSession(new Bun.CookieMap(request.headers.get("cookie") ?? "").get(OMP_WEB_SESSION_COOKIE) ?? undefined); if (pathname === "/login") { - return hasSession ? NextResponse.redirect(new URL("/", request.url)) : NextResponse.next(); + return hasSession ? Response.redirect(new URL("/", url), 307) : null; } - if (pathname === "/api/web-auth/session") return NextResponse.next(); - if (hasSession) return NextResponse.next(); + if (pathname === "/api/web-auth/session") return null; + if (hasSession) return null; if (pathname.startsWith("/api/")) { - return NextResponse.json({ error: "Password required", code: "password_required" }, { status: 401 }); + return Response.json({ error: "Password required", code: "password_required" }, { status: 401 }); } - const login = new URL("/login", request.url); + const login = new URL("/login", url); // Keep a deep link to a session (e.g. a notification click) across sign-in. - if (pathname === "/" && request.nextUrl.search) login.searchParams.set("next", `/${request.nextUrl.search}`); - return NextResponse.redirect(login); + if (pathname === "/" && url.search) login.searchParams.set("next", `/${url.search}`); + return Response.redirect(login, 307); } - -// The sign-in screen still needs its Next.js JavaScript and CSS before a -// session exists; these and the ordinary browser icons are public assets, -// not workspace data. /api/manifest stays authenticated: its link includes -// credentials and its embedded installation icons need no separate request. -// The service worker script holds no data either, and the browser re-fetches -// it for update checks even after the sign-in cookie expired. -// /api/hosts/link and its blob/ subpath (only those: the exclusion is anchored) -// are excluded too: the proxy buffers and silently truncates request bodies -// over 10 MB, larger than host link uploads may be, and the route -// authenticates the host's bearer token itself before it reads any body -// (lib/hosts/hub.ts). -export const config = { matcher: "/((?!_next/static|_next/image|favicon\\.ico|icon\\.svg|icon\\.png|icon-192\\.png|badge-96\\.png|sw\\.js|api/hosts/link(?:/|$)).*)" }; diff --git a/scripts/build-client.ts b/scripts/build-client.ts index 5f6b73156..f25a736ac 100644 --- a/scripts/build-client.ts +++ b/scripts/build-client.ts @@ -46,4 +46,11 @@ const result = await Bun.build({ for (const log of result.logs) console.log(log); if (!result.success) process.exit(1); for (const [url, source] of fonts) await Bun.write(path.join(outdir, url), Bun.file(source)); +// Bun moves the entry stylesheet to the end of , after the pre-paint scripts. The theme script reads --bg +// from it for theme-color, and a stylesheet only blocks the scripts that follow it, so put it before them. +const indexPath = path.join(outdir, "index.html"); +const html = await Bun.file(indexPath).text(); +const stylesheet = /]*>/.exec(html)?.[0]; +if (!stylesheet) throw new Error("dist/index.html has no stylesheet link"); +await Bun.write(indexPath, html.replace(stylesheet, "").replace(""); writeFileSync(join(blobs, sha(text)), text); @@ -72,7 +97,7 @@ test("never serves non-images or files outside the store", async () => { }); test("live tool output is served from omp-web's copy until omp has written the whole blob", async () => { - const live = await sharp({ create: { width: 64, height: 64, channels: 3, background: "#ff0000" } }).png().toBuffer(); + const live = await png(64, 64); const hash = sha(live); const event = { type: "tool_execution_end", @@ -97,7 +122,7 @@ test("live tool output is served from omp-web's copy until omp has written the w }); test("a live image arriving while omp is still writing its blob is kept and served whole", async () => { - const live = await sharp({ create: { width: 48, height: 48, channels: 3, background: "#00ff00" } }).png().toBuffer(); + const live = await png(48, 48); const hash = sha(live); writeFileSync(join(blobs, hash), live.subarray(0, 30)); eventWithToolResultImageUrls({ type: "tool_execution_end", result: { content: [{ type: "image", data: live.toString("base64") }] } }); @@ -105,7 +130,7 @@ test("a live image arriving while omp is still writing its blob is kept and serv }); test("an image seen again after its copy was swept is stored again", async () => { - const live = await sharp({ create: { width: 40, height: 40, channels: 3, background: "#0000ff" } }).png().toBuffer(); + const live = await png(40, 40); const hash = sha(live); const frame = () => eventWithToolResultImageUrls({ type: "tool_execution_end", result: { content: [{ type: "image", data: live.toString("base64") }] } }); frame(); diff --git a/lib/notification-hub.test.mjs b/lib/notification-hub.test.mjs index c0c481bf4..ab15192b7 100644 --- a/lib/notification-hub.test.mjs +++ b/lib/notification-hub.test.mjs @@ -2,7 +2,7 @@ import assert from "node:assert/strict"; import { mkdtempSync, rmSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; -import { DatabaseSync } from "node:sqlite"; +import { Database } from "bun:sqlite"; import test from "node:test"; const hub = await import("./notification-hub.ts"); @@ -153,7 +153,7 @@ test("test notifications are never recorded", (t) => { test("a failed history write does not stop delivery", (t) => { const dir = isolatedStore(t); store.saveDevice("desk-0001", prefs({ whenActive: "system" })); - const raw = new DatabaseSync(join(dir, "omp-web", "notifications.db")); + const raw = new Database(join(dir, "omp-web", "notifications.db")); raw.exec("DROP TABLE history"); raw.close(); const received = []; diff --git a/lib/notification-store.test.mjs b/lib/notification-store.test.mjs index e0bfc896b..d3521ca58 100644 --- a/lib/notification-store.test.mjs +++ b/lib/notification-store.test.mjs @@ -3,6 +3,7 @@ import { execFile } from "node:child_process"; import { existsSync, mkdirSync, mkdtempSync, rmSync, statSync, writeFileSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path"; +import { DatabaseSync } from "node:sqlite"; import test from "node:test"; import { promisify } from "node:util"; @@ -50,6 +51,35 @@ test("the database is owner-only", (t) => { if (process.platform !== "win32") assert.equal(statSync(join(dir, "omp-web", "notifications.db")).mode & 0o077, 0); }); +test("the database and its WAL file are owner-only", (t) => { + const { dir } = isolated(t); + store.getVapidKeys(() => keys); + if (process.platform === "win32") return; + for (const name of ["notifications.db", "notifications.db-wal"]) assert.equal(statSync(join(dir, "omp-web", name)).mode & 0o777, 0o600, name); +}); + +test("a store file written by node:sqlite opens with the same VAPID keys and device", (t) => { + const { dir } = isolated(t); + mkdirSync(join(dir, "omp-web"), { recursive: true }); + const legacy = new DatabaseSync(join(dir, "omp-web", "notifications.db")); + legacy.exec("PRAGMA journal_mode = WAL"); + legacy.exec(` + CREATE TABLE vapid (id INTEGER PRIMARY KEY CHECK (id = 1), public_key TEXT NOT NULL, private_key TEXT NOT NULL); + CREATE TABLE devices (device_id TEXT PRIMARY KEY, prefs TEXT NOT NULL, subscription TEXT, updated_at INTEGER NOT NULL); + CREATE TABLE history (id TEXT PRIMARY KEY, event TEXT NOT NULL, at INTEGER NOT NULL, read INTEGER NOT NULL DEFAULT 0); + `); + legacy.prepare("INSERT INTO vapid (id, public_key, private_key) VALUES (1, ?, ?)").run(keys.publicKey, keys.privateKey); + legacy.prepare("INSERT INTO devices (device_id, prefs, subscription, updated_at) VALUES (?, ?, ?, ?)") + .run("phone-0001", JSON.stringify(prefs({ locale: "ja" })), JSON.stringify(subscription()), 7); + legacy.close(); + + assert.deepEqual(store.getVapidKeys(() => assert.fail("keys exist")), keys); + const device = store.getDevice("phone-0001"); + assert.equal(device.prefs.locale, "ja"); + assert.deepEqual(device.subscription, subscription()); + assert.equal(device.updatedAt, 7); +}); + test("saving a device without a subscription keeps the stored one", (t) => { isolated(t); store.saveDevice("phone-0001", prefs(), subscription()); diff --git a/lib/notification-store.ts b/lib/notification-store.ts index 161853517..a69f568f0 100644 --- a/lib/notification-store.ts +++ b/lib/notification-store.ts @@ -1,6 +1,6 @@ import { chmodSync, closeSync, mkdirSync, openSync, readFileSync, rmSync } from "fs"; import { join } from "path"; -import { DatabaseSync } from "node:sqlite"; +import { Database } from "bun:sqlite"; import type { PushSubscription } from "web-push"; import { getAgentDir } from "./omp/paths"; import { @@ -54,7 +54,7 @@ export function parsePushSubscription(value: unknown): PushSubscription | null { } declare global { - var __ompNotificationStore: { path: string; db: DatabaseSync } | undefined; + var __ompNotificationStore: { path: string; db: Database } | undefined; } const SCHEMA = ` @@ -63,7 +63,7 @@ CREATE TABLE IF NOT EXISTS devices (device_id TEXT PRIMARY KEY, prefs TEXT NOT N CREATE TABLE IF NOT EXISTS history (id TEXT PRIMARY KEY, event TEXT NOT NULL, at INTEGER NOT NULL, read INTEGER NOT NULL DEFAULT 0); `; -function transaction(db: DatabaseSync, run: () => T): T { +function transaction(db: Database, run: () => T): T { db.exec("BEGIN IMMEDIATE"); try { const result = run(); @@ -71,7 +71,7 @@ function transaction(db: DatabaseSync, run: () => T): T { return result; } catch (error) { // SQLite has already rolled back after some errors (a full disk, an I/O error); the original error is what matters. - if (db.isTransaction) db.exec("ROLLBACK"); + if (db.inTransaction) db.exec("ROLLBACK"); throw error; } } @@ -86,7 +86,7 @@ const parseJson = (text: unknown): unknown => { }; /** Imports the pre-SQLite notifications.json once, into an empty store. Runs inside the schema transaction. */ -function importLegacy(db: DatabaseSync, file: string): boolean { +function importLegacy(db: Database, file: string): boolean { let text: string; try { text = readFileSync(file, "utf8"); @@ -114,7 +114,7 @@ function importLegacy(db: DatabaseSync, file: string): boolean { } /** The store for the current agent directory; reopened when PI_CODING_AGENT_DIR changes. */ -function db(): DatabaseSync { +function db(): Database { const dir = join(getAgentDir(), "omp-web"); const path = join(dir, "notifications.db"); const cached = globalThis.__ompNotificationStore; @@ -126,12 +126,12 @@ function db(): DatabaseSync { return database; } -function open(dir: string, path: string): DatabaseSync { +function open(dir: string, path: string): Database { mkdirSync(dir, { recursive: true }); // Owner-only before SQLite opens it: it holds the VAPID private key. SQLite gives its -wal/-shm files the same mode. closeSync(openSync(path, "a", 0o600)); chmodSync(path, 0o600); - const database = new DatabaseSync(path); + const database = new Database(path); try { database.exec("PRAGMA busy_timeout = 5000"); // Switching a new database to WAL takes an exclusive lock that ignores busy_timeout; another omp-web may hold it. @@ -140,7 +140,7 @@ function open(dir: string, path: string): DatabaseSync { database.exec("PRAGMA journal_mode = WAL"); break; } catch (error) { - if (!isRecord(error) || error.errcode !== 5 || attempt >= 250) throw error; + if (!isRecord(error) || error.errno !== 5 || attempt >= 250) throw error; Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 20); } } @@ -168,7 +168,7 @@ function open(dir: string, path: string): DatabaseSync { /** The installation's VAPID key pair, generated on first use. */ export function getVapidKeys(generate: () => VapidKeys): VapidKeys { const database = db(); - const read = () => database.prepare("SELECT public_key, private_key FROM vapid WHERE id = 1").get() as { public_key: string; private_key: string } | undefined; + const read = () => database.prepare("SELECT public_key, private_key FROM vapid WHERE id = 1").get() as { public_key: string; private_key: string } | null; const row = read() ?? transaction(database, () => { // Re-read under the write lock: another instance may have generated them meanwhile. if (!read()) { @@ -196,8 +196,8 @@ export function listDevices(): NotificationDevice[] { } export function getDevice(deviceId: string): NotificationDevice | undefined { - const row = db().prepare("SELECT device_id, prefs, subscription, updated_at FROM devices WHERE device_id = ?").get(deviceId) as DeviceRow | undefined; - return row && toDevice(row); + const row = db().prepare("SELECT device_id, prefs, subscription, updated_at FROM devices WHERE device_id = ?").get(deviceId) as DeviceRow | null; + return row ? toDevice(row) : undefined; } /** Store a device's prefs, and its push subscription when given (otherwise the stored one is kept). */ diff --git a/lib/stt-jobs.ts b/lib/stt-jobs.ts index 1aa991173..9261738ea 100644 --- a/lib/stt-jobs.ts +++ b/lib/stt-jobs.ts @@ -44,9 +44,8 @@ export interface SttClaim extends SttJobView { } /** - * Cap on how long the server waits on the STT endpoint. Kept under undici's - * default 300s headersTimeout so a slow upstream ends as "timed out", not - * an opaque "fetch failed". + * Cap on how long the server waits on the STT endpoint, so a slow upstream + * ends as "timed out", not an opaque "fetch failed". */ const STT_UPSTREAM_TIMEOUT_MS = 290_000; /** Unclaimed results and failures (with their audio) stay retrievable this long. */ diff --git a/lib/usage-db.test.mjs b/lib/usage-db.test.mjs index b2eb525a2..8a2a3bfd9 100644 --- a/lib/usage-db.test.mjs +++ b/lib/usage-db.test.mjs @@ -1,6 +1,6 @@ import assert from "node:assert/strict"; import { mkdirSync, rmSync, statSync, writeFileSync } from "node:fs"; -import { DatabaseSync } from "node:sqlite"; +import { Database } from "bun:sqlite"; import { tmpdir } from "node:os"; import { join } from "node:path"; import test from "node:test"; @@ -224,7 +224,7 @@ test("a usage.db written with the previous table layout is rebuilt and syncs", a await withTempDbDir(async (dir) => { closeUsageDatabase(); const path = join(dir, "old-layout.db"); - const old = new DatabaseSync(path); + const old = new Database(path); old.exec(`${PREVIOUS_LAYOUT} PRAGMA user_version = ${userVersion};`); old.close(); @@ -235,6 +235,26 @@ test("a usage.db written with the previous table layout is rebuilt and syncs", a } }); +test("a migration that fails is rolled back and leaves the old database untouched", async () => { + const { closeUsageDatabase, getUsageDatabase } = await loadSubject(); + + await withTempDbDir(async (dir) => { + closeUsageDatabase(); + const path = join(dir, "blocked.db"); + const old = new Database(path); + // A view named synced_files: DROP TABLE usage_records succeeds, then DROP TABLE synced_files fails. + old.exec(`${PREVIOUS_LAYOUT.replace("CREATE TABLE synced_files (", "CREATE TABLE unrelated (")} CREATE VIEW synced_files AS SELECT 1 AS file_path;`); + old.close(); + + assert.throws(() => getUsageDatabase(path)); + + const after = new Database(path); + assert.equal(inputTokens(after), 999999, "the rebuild was rolled back: the old rows are still there"); + assert.equal(after.inTransaction, false); + after.close(); + }); +}); + test("a connection the previous build left open on the old layout is migrated before it is reused", async () => { const { closeUsageDatabase, getUsageDatabase, syncSessionFilesToDb } = await loadSubject(); @@ -242,7 +262,7 @@ test("a connection the previous build left open on the old layout is migrated be closeUsageDatabase(); const path = join(dir, "hot-reload.db"); // Before a dev hot reload, the previous module opened usage.db and left the connection on globalThis. - const previous = new DatabaseSync(path); + const previous = new Database(path); previous.exec(PREVIOUS_LAYOUT); globalThis.__ompUsageDatabase = previous; globalThis.__ompUsageDatabasePath = path; diff --git a/lib/usage-db.ts b/lib/usage-db.ts index 128857d28..201cadfb4 100644 --- a/lib/usage-db.ts +++ b/lib/usage-db.ts @@ -1,5 +1,5 @@ import { existsSync, mkdirSync, statSync } from "fs"; -import { DatabaseSync } from "node:sqlite"; +import { Database } from "bun:sqlite"; import { basename, dirname, join } from "path"; import { readModelsConfig, type ModelsFileConfig } from "./omp/models-config"; import { getAgentDir, getSessionsDir } from "./omp/paths"; @@ -27,7 +27,7 @@ import type { } from "./usage-types"; declare global { - var __ompUsageDatabase: DatabaseSync | undefined; + var __ompUsageDatabase: Database | undefined; var __ompUsageDatabasePath: string | undefined; } @@ -56,9 +56,9 @@ export function getUsageDbPath(): string { * processes opening an old database cannot interleave a drop with the other's * rebuild. Throws, after rolling back, when the migration cannot run. */ -function migrateUsageDatabase(db: DatabaseSync): void { +function migrateUsageDatabase(db: Database): void { const readSchemaVersion = (): number => { - const row = db.prepare("PRAGMA user_version").get(); + const row = db.prepare("PRAGMA user_version").get() as { user_version?: unknown } | null; return typeof row?.user_version === "number" ? row.user_version : 0; }; if (readSchemaVersion() >= USAGE_DB_SCHEMA_VERSION) return; @@ -111,7 +111,7 @@ function migrateUsageDatabase(db: DatabaseSync): void { } db.exec("COMMIT;"); } catch (err) { - if (db.isTransaction) db.exec("ROLLBACK;"); + if (db.inTransaction) db.exec("ROLLBACK;"); throw err; } } @@ -119,7 +119,7 @@ function migrateUsageDatabase(db: DatabaseSync): void { /** * Open or reuse the persistent SQLite database for usage tracking. */ -export function getUsageDatabase(customPath?: string): DatabaseSync { +export function getUsageDatabase(customPath?: string): Database { const targetPath = customPath || getUsageDbPath(); const cached = globalThis.__ompUsageDatabase; @@ -148,7 +148,7 @@ export function getUsageDatabase(customPath?: string): DatabaseSync { mkdirSync(dir, { recursive: true }); } - const db = new DatabaseSync(targetPath); + const db = new Database(targetPath); db.exec("PRAGMA journal_mode = WAL;"); db.exec("PRAGMA busy_timeout = 5000;"); db.exec("PRAGMA synchronous = NORMAL;"); @@ -194,7 +194,7 @@ export interface SyncStats { export function syncSessionFilesToDb( sessionFiles: string[], customModelsConfig: ModelsFileConfig = readModelsConfig(), - customDb?: DatabaseSync, + customDb?: Database, ): SyncStats { const db = customDb || getUsageDatabase(); const now = Date.now(); @@ -347,7 +347,7 @@ export function syncSessionFilesToDb( * (possible in a branch, which does not copy artifacts) does not cover it. * Computed once per report so the report's queries share it. */ -function collectUncountedUsage(db: DatabaseSync): void { +function collectUncountedUsage(db: Database): void { db.exec(` DROP TABLE IF EXISTS temp.uncounted_usage; CREATE TEMP TABLE uncounted_usage AS @@ -385,7 +385,7 @@ const COUNTED_ROWS = "id NOT IN (SELECT id FROM temp.uncounted_usage)"; */ export async function getUsageReportFromDb( options: UsageQueryOptions = {}, - customDb?: DatabaseSync, + customDb?: Database, ): Promise { const startTime = Date.now(); const timeRange = options.range || "30d"; diff --git a/package-lock.json b/package-lock.json index 7fa0ab27f..7681bdfc4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,8 +27,6 @@ "rehype-sanitize": "^6.0.0", "remark-gfm": "^4.0.1", "remark-math": "^6.0.0", - "sharp": "^0.35.4", - "undici": "8.10.1", "web-push": "^3.6.7", "yaml": "^2" }, @@ -601,16 +599,6 @@ "node": ">=20.19.0" } }, - "node_modules/@emnapi/runtime": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz", - "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==", - "license": "MIT", - "optional": true, - "dependencies": { - "tslib": "^2.4.0" - } - }, "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", @@ -955,506 +943,6 @@ "mlly": "^1.8.2" } }, - "node_modules/@img/colour": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz", - "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==", - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/@img/sharp-darwin-arm64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.4.tgz", - "integrity": "sha512-Uhfl4V4lhP2nbUVF9+hyH1+luj86f1gUFeo8ALYxFoULoU+G87D43BfeMP8XHsk9boxAnCY/bf2EHwhA7MuGsA==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-darwin-arm64": "1.3.3" - } - }, - "node_modules/@img/sharp-darwin-x64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.4.tgz", - "integrity": "sha512-hWniXY3bG5qKpkKrAwPe4y+VTPmf086YQAnkxWh7uA1YrlRouWGa0M0Mxj3ZjnXFkv7/TD1bTy9lGUK26vRvWw==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-darwin-x64": "1.3.3" - } - }, - "node_modules/@img/sharp-freebsd-wasm32": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.4.tgz", - "integrity": "sha512-lIsKw/BU+kjB4eZjxrYrZmwOJYi3Ajrv66iAlBmUPyKc3HpnloevB1g3wxGD9P/5BbQ1brBGl65VRRrCvQDEqA==", - "license": "Apache-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "dependencies": { - "@img/sharp-wasm32": "0.35.4" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-darwin-arm64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.3.tgz", - "integrity": "sha512-suTBPTDGrI9WodccaDdwZItTSaBYASlBk1NSfElSHrUfzu3szG6lvIF58+WiFvnfzuK8ZBFS5zE00PxqxnRiPg==", - "cpu": [ - "arm64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "darwin" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-darwin-x64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.3.tgz", - "integrity": "sha512-FVJZ5mITMobmXIz/hPDTw0EintTW5H3WfrxwLqEqjiIihlu+hVRyGrFQ60xl0Lxn7Bt3zdpevPaQi0HEzqz9fw==", - "cpu": [ - "x64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "darwin" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-arm": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.3.tgz", - "integrity": "sha512-3rbU4vqXXc3hY/OiXdl52xZvT0F1yEngWfvqudtPJg/KkyiaQw2DRsFrNzpmLvfavbwOq3qXn36GP8obHRULQA==", - "cpu": [ - "arm" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-arm64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.3.tgz", - "integrity": "sha512-0DaL0A6Xu6sQSQFwe4iVCrKWU2cCTItnRsYsCdxAMm9NF6twAA9BKnoqy4hqz4+azQ0JHuA26qiUKsf1XJ/v5A==", - "cpu": [ - "arm64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-ppc64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.3.tgz", - "integrity": "sha512-cdn1OvUBwsXhbC0zSzJnNzf5MZ/mTrobawDvNXBTxe8VtqKAm0sRuEY2Evzovb/w9JMk4TvRxqt1mekSuJz64w==", - "cpu": [ - "ppc64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-riscv64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.3.tgz", - "integrity": "sha512-HjPVx7yKz+0lqdhDlTw1tt90wamBoxhiXpvl1XZpJLiHH4RCJ5yDTqH+VlYPv2fwFs89JFw4c1IexYOcQUi4IQ==", - "cpu": [ - "riscv64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-s390x": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.3.tgz", - "integrity": "sha512-neWLh+3yCNThxnfy3c4BbVBeGgt9aftno+XbT56iK28RgeDs3UOFWviLWlUu0bArYVYJaFDK+RRohbicUNCm8Q==", - "cpu": [ - "s390x" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linux-x64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.3.tgz", - "integrity": "sha512-4vKmvAst9nrowcqquKFAyZJUDolUaIp8uRiN0mWFguJ1IplC9/pitXtlnnlU4aa/eJw3J7i67V+pwUL+wZGdsA==", - "cpu": [ - "x64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linuxmusl-arm64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.3.tgz", - "integrity": "sha512-Y9kQaLMuNoB0bPYOOdcZMaseNrFpPodIWWMrx+CZyydf2xn68j9WYc6sWWRrDwNkzCQjKYfc68L7jKjGlHMibw==", - "cpu": [ - "arm64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-libvips-linuxmusl-x64": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.3.tgz", - "integrity": "sha512-fj8Mv0HHfD1Rr+4I68+3agJynxDWtBFgicTbSOb9Bke6pIwzGcJ+RX/yHjmiEGFMCavY/dxvem7MyNaJF+wDiw==", - "cpu": [ - "x64" - ], - "license": "LGPL-3.0-or-later", - "optional": true, - "os": [ - "linux" - ], - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-linux-arm": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.4.tgz", - "integrity": "sha512-7OAS8gI0EReKGVN2HssHlM6umJgxF5VI3xN0p9FA91p/YO+ou5hiNghLdZ5BEHztwaaK5+bLKRf8x/o2L2nk9A==", - "cpu": [ - "arm" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-arm": "1.3.3" - } - }, - "node_modules/@img/sharp-linux-arm64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.4.tgz", - "integrity": "sha512-De4jpEnAU8Hd5oT0j1G3uL4ZvTuipVMn7YC6vPaJhy6/7EwEae0SVAoBrUMYQbkLGDm85taVWwuPc1a44LTzCQ==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-arm64": "1.3.3" - } - }, - "node_modules/@img/sharp-linux-ppc64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.4.tgz", - "integrity": "sha512-2oYZJeIl4kCcMGk4ouZVjnkCtFrpQFlNEtJ6GbxzhHQchwH0NH/qEb9ykmOl29dqwMq+JhFdZn+1ak2FKhI9fQ==", - "cpu": [ - "ppc64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-ppc64": "1.3.3" - } - }, - "node_modules/@img/sharp-linux-riscv64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.4.tgz", - "integrity": "sha512-cPbNChoRURAWdebDIHSenxRpgEdy7JkPydSnUxRm9VvKD7m0/xVaR/8Fzlu81pk5nHEvHH87UZUA7cTtwnbJSA==", - "cpu": [ - "riscv64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-riscv64": "1.3.3" - } - }, - "node_modules/@img/sharp-linux-s390x": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.4.tgz", - "integrity": "sha512-RY0JFY8Fd6RonCBtHz+DvadaPkXDSI1AUn6yWL9TipqkZ1vY8w8evqdgyDFnkm4/K1ve1TvZiaePP5oSd4+WVQ==", - "cpu": [ - "s390x" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-s390x": "1.3.3" - } - }, - "node_modules/@img/sharp-linux-x64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.4.tgz", - "integrity": "sha512-9qvvEAuk8k89TfWUoX2htWjbAMX8p+NxCppjpcg5k6xMsjhBQPTsoIh36h9Qde4WRuGpJeYnOjdosDn/cnv+OA==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linux-x64": "1.3.3" - } - }, - "node_modules/@img/sharp-linuxmusl-arm64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.4.tgz", - "integrity": "sha512-KB5jxpfWQTr0nc3xdHtWChdbifHrBGsd2SM62Eyxrl8afikm+f5qGBU75SJIZBT/S1MC8XyacdlXBMSWq6OURA==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-arm64": "1.3.3" - } - }, - "node_modules/@img/sharp-linuxmusl-x64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.4.tgz", - "integrity": "sha512-f+eZJZIQNEEd26RPSW+76chwOf1XtA2Y/O+5ocVyLliHkeih3e+jhLVBdNTd2rS3IbNXK8+ug93Vf5ZXtF5Lxg==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-libvips-linuxmusl-x64": "1.3.3" - } - }, - "node_modules/@img/sharp-wasm32": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.4.tgz", - "integrity": "sha512-zQnl4Kwp7Q6NHsENtU2T/00Zi+w3AQNwz3+UaTyVBy2FpXrzXzGjndpK61onhZjRtRpQXxCTeqw19bVyXOh7jA==", - "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", - "optional": true, - "dependencies": { - "@emnapi/runtime": "^1.11.3" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-webcontainers-wasm32": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.4.tgz", - "integrity": "sha512-ESfNkywmCfPNyaZjxooddJQiQ+l/nTpGEOGthxiLnIHXC/CmcBixnfwUleX9mCz9ovrUUvKMap/pm8RYbzfwaA==", - "cpu": [ - "wasm32" - ], - "license": "Apache-2.0", - "optional": true, - "dependencies": { - "@img/sharp-wasm32": "0.35.4" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-win32-arm64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.4.tgz", - "integrity": "sha512-iNdlBX9gLVvqe2I3uIJSIKTq6wckP/DYxZtcqxm09x5Gi24DnFBmPAWZmr60ZyYMG0xlzo6goG3670ar+RXvRw==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-win32-ia32": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.4.tgz", - "integrity": "sha512-kqRsbaa5CS6KHlpxnN7WhE6vAAugXyZButpRdvDWetlv6Qv4N9WTcrWzF7tXfB9T7MsoadqdI8hmwLq6UlLvtw==", - "cpu": [ - "ia32" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": "^20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, - "node_modules/@img/sharp-win32-x64": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.4.tgz", - "integrity": "sha512-XtmnYhBcrORsJ4XJngyzr/EWP0hRZLAZRFaApdKuviyqF78+ylxh2y06ZmtULAMOnObJ3ucpN0AcwSWnMowTRg==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0 AND LGPL-3.0-or-later", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - } - }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", @@ -3942,15 +3430,6 @@ "node": ">=6" } }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "license": "Apache-2.0", - "engines": { - "node": ">=8" - } - }, "node_modules/detect-node-es": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz", @@ -7115,67 +6594,6 @@ "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", "license": "MIT" }, - "node_modules/sharp": { - "version": "0.35.4", - "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.4.tgz", - "integrity": "sha512-n++8XWcj+jCOr2IOl7h8LbKnGBDY4aPbmprMONBNFdn0ImXqpGVv5zliDs0V9HbmbCQLpbuo2ej9rAoOQTvMDA==", - "license": "Apache-2.0", - "dependencies": { - "@img/colour": "^1.1.0", - "detect-libc": "^2.1.2", - "semver": "^7.8.5" - }, - "engines": { - "node": ">=20.9.0" - }, - "funding": { - "url": "https://opencollective.com/libvips" - }, - "optionalDependencies": { - "@img/sharp-darwin-arm64": "0.35.4", - "@img/sharp-darwin-x64": "0.35.4", - "@img/sharp-freebsd-wasm32": "0.35.4", - "@img/sharp-libvips-darwin-arm64": "1.3.3", - "@img/sharp-libvips-darwin-x64": "1.3.3", - "@img/sharp-libvips-linux-arm": "1.3.3", - "@img/sharp-libvips-linux-arm64": "1.3.3", - "@img/sharp-libvips-linux-ppc64": "1.3.3", - "@img/sharp-libvips-linux-riscv64": "1.3.3", - "@img/sharp-libvips-linux-s390x": "1.3.3", - "@img/sharp-libvips-linux-x64": "1.3.3", - "@img/sharp-libvips-linuxmusl-arm64": "1.3.3", - "@img/sharp-libvips-linuxmusl-x64": "1.3.3", - "@img/sharp-linux-arm": "0.35.4", - "@img/sharp-linux-arm64": "0.35.4", - "@img/sharp-linux-ppc64": "0.35.4", - "@img/sharp-linux-riscv64": "0.35.4", - "@img/sharp-linux-s390x": "0.35.4", - "@img/sharp-linux-x64": "0.35.4", - "@img/sharp-linuxmusl-arm64": "0.35.4", - "@img/sharp-linuxmusl-x64": "0.35.4", - "@img/sharp-webcontainers-wasm32": "0.35.4", - "@img/sharp-win32-arm64": "0.35.4", - "@img/sharp-win32-ia32": "0.35.4", - "@img/sharp-win32-x64": "0.35.4" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - } - } - }, - "node_modules/sharp/node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -7507,15 +6925,6 @@ "integrity": "sha512-DXtD3ZtEQzc7M8m4cXotyHR+FAS18C64asBYY5vqZexfYryNNnDc02W4hKg3rdQuqOYas1jkseX0+nZXjTXnvQ==", "license": "MIT" }, - "node_modules/undici": { - "version": "8.10.1", - "resolved": "https://registry.npmjs.org/undici/-/undici-8.10.1.tgz", - "integrity": "sha512-YQ3WlbqjYMmNpdvDH64jAgLjxuAR9+649calDWhbshYaeQGO2bR4nI94ORJmwI3J9YhoKQnpyGOK+0zlWS5N5Q==", - "license": "MIT", - "engines": { - "node": ">=22.19.0" - } - }, "node_modules/undici-types": { "version": "7.18.2", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz", diff --git a/package.json b/package.json index 3822265bb..8c932da2b 100644 --- a/package.json +++ b/package.json @@ -77,8 +77,6 @@ "rehype-sanitize": "^6.0.0", "remark-gfm": "^4.0.1", "remark-math": "^6.0.0", - "sharp": "^0.35.4", - "undici": "8.10.1", "web-push": "^3.6.7", "yaml": "^2" }, From d25442bb74dcb0dd4449d68b30b5cc3ae775fce0 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 12:59:03 +0000 Subject: [PATCH 13/81] fix(update): run the update worker on Node; Windows scripts start Bun --- bin/omp-web.js | 1 + lib/hosts/hub.ts | 2 +- lib/self-update.test.mjs | 54 +++++++++++++++++++++++++++++ lib/self-update.ts | 6 ++-- lib/windows-service.test.mjs | 31 +++++++++++++++++ lib/windows-service.ts | 4 +-- scripts/windows/omp-web-service.ps1 | 7 ++-- scripts/windows/omp-web-tray.ps1 | 9 +++-- 8 files changed, 100 insertions(+), 14 deletions(-) diff --git a/bin/omp-web.js b/bin/omp-web.js index 40f47ca30..cf2c5d38f 100755 --- a/bin/omp-web.js +++ b/bin/omp-web.js @@ -470,6 +470,7 @@ function serverEnvironment() { ...process.env, OMP_WEB_PACKAGE_DIR: pkgDir, OMP_WEB_LAUNCHER_PID: String(process.pid), + OMP_WEB_NODE_BIN: process.execPath, OMP_WEB_PORT: port, OMP_WEB_HOSTNAME: hostname, OMP_WEB_RESTART_DESCRIPTOR: restartDescriptor, diff --git a/lib/hosts/hub.ts b/lib/hosts/hub.ts index a02df157f..b55b3ba95 100644 --- a/lib/hosts/hub.ts +++ b/lib/hosts/hub.ts @@ -940,7 +940,7 @@ export interface LocalHostRow { serverVersion: number; /** `process.platform` of this server: picks the daemon install command while no daemon has linked. */ serverPlatform: string; - /** False in `next dev`, where this machine runs sessions in-process and is offline by design: no install hints. */ + /** False under the dev server (`NODE_ENV=development`), where this machine runs sessions in-process and is offline by design: no install hints. */ daemonManaged: boolean; } diff --git a/lib/self-update.test.mjs b/lib/self-update.test.mjs index e95acea87..9a536e61c 100644 --- a/lib/self-update.test.mjs +++ b/lib/self-update.test.mjs @@ -3,6 +3,8 @@ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "nod import { join } from "node:path"; import { tmpdir } from "node:os"; import test from "node:test"; +import { promisify } from "node:util"; +import { mockBuiltin } from "../tests/mock-builtin.mjs"; const { getSelfUpdateStatus, @@ -108,3 +110,55 @@ test("starting a commit renews the lease, so a late commit is not reported as lo assert.ok(JSON.parse(readFileSync(leaseFile, "utf8")).expiresAt > Date.now() + 10 * 60_000); assert.equal(getSelfUpdateStatus("app").state, "running"); }); + +// commitSelfUpdate spawns its worker detached: record the spawn instead of running one. +let freshImport = 0; + +async function commitAndCaptureSpawn(t, { nodeBin, systemd = false }) { + const { attemptId } = withUpdateState(t, { state: "prepared", leaseExpiresAt: Date.now() + 60_000 }); + const previous = process.env.OMP_WEB_NODE_BIN; + if (nodeBin === undefined) delete process.env.OMP_WEB_NODE_BIN; + else process.env.OMP_WEB_NODE_BIN = nodeBin; + t.after(() => { + if (previous === undefined) delete process.env.OMP_WEB_NODE_BIN; + else process.env.OMP_WEB_NODE_BIN = previous; + }); + const spawns = []; + const spawn = (command, args) => { + spawns.push({ command, args }); + return { once() {}, unref() {}, pid: 2 ** 30 }; + }; + // The execFile fake reports this process as the unit's MainPID, so the systemd branch applies to it. + const execFile = Object.assign(() => { throw new Error("execFile without promisify"); }, { + [promisify.custom]: async (command) => ({ stdout: command === "systemctl" ? `${process.pid}\n` : "" }), + }); + await mockBuiltin(t, "node:child_process", { spawn, execFile }); + // Pin the cgroup: the test may itself run inside a systemd service. + const cgroup = systemd ? "0::/system.slice/ompweb-api.service\n" : "0::/user.slice/user-1000.slice/session-3.scope\n"; + const { readFileSync: realReadFileSync } = await import("node:fs"); + await mockBuiltin(t, "node:fs", { + readFileSync: (path, ...rest) => (path === "/proc/self/cgroup" ? cgroup : realReadFileSync(path, ...rest)), + }); + const { commitSelfUpdate } = await import(`./self-update.ts?fresh=${freshImport++}`); + await commitSelfUpdate(attemptId, "app"); + assert.equal(spawns.length, 1); + return spawns[0]; +} + +test("the update worker runs on OMP_WEB_NODE_BIN, not on the server's own runtime", async (t) => { + const { command } = await commitAndCaptureSpawn(t, { nodeBin: "/opt/node/bin/node" }); + assert.equal(command, "/opt/node/bin/node"); +}); + +test("the update worker falls back to the server's runtime without OMP_WEB_NODE_BIN", async (t) => { + const { command } = await commitAndCaptureSpawn(t, {}); + assert.equal(command, process.execPath); +}); + +test("the update worker inside systemd-run's scope runs on OMP_WEB_NODE_BIN", { skip: process.platform !== "linux" }, async (t) => { + const { command, args } = await commitAndCaptureSpawn(t, { nodeBin: "/opt/node/bin/node", systemd: true }); + assert.equal(command, "systemd-run"); + assert.ok(args.includes("--scope")); + assert.equal(args[args.indexOf("--no-ask-password") + 1], "/opt/node/bin/node"); + assert.ok(!args.includes(process.execPath)); +}); diff --git a/lib/self-update.ts b/lib/self-update.ts index 09c5c72d1..21489bdf2 100644 --- a/lib/self-update.ts +++ b/lib/self-update.ts @@ -514,7 +514,9 @@ export async function commitSelfUpdate(attemptId: string, kind: Kind = "app"): P const systemd = kind === "app" ? await detectSystemdService(launcherPid) : null; if (systemd) args.push("--systemd-unit", systemd.unit, "--systemd-user", systemd.user ? "1" : "0"); const workerArgs = workerPath ? [workerPath, ...args] : args; - let command = process.execPath; + // Windows locks a running bun.exe, and npm replaces the package's: the worker runs on the launcher's Node. + const runtime = process.env.OMP_WEB_NODE_BIN || process.execPath; + let command = runtime; let commandArgs = workerArgs; if (systemd) { // A worker left in the unit's cgroup is killed with the server it stops, @@ -528,7 +530,7 @@ export async function commitSelfUpdate(attemptId: string, kind: Kind = "app"): P throw new Error(`systemd-run cannot start the update worker: ${commandError(error)}`); } command = "systemd-run"; - commandArgs = [...systemdRun, process.execPath, ...workerArgs]; + commandArgs = [...systemdRun, runtime, ...workerArgs]; } const child = spawn(command, commandArgs, { detached: true, diff --git a/lib/windows-service.test.mjs b/lib/windows-service.test.mjs index edde606ce..29f0d6399 100644 --- a/lib/windows-service.test.mjs +++ b/lib/windows-service.test.mjs @@ -2,6 +2,8 @@ import assert from "node:assert/strict"; import test from "node:test"; import path from "node:path"; import { existsSync, readFileSync } from "node:fs"; +import { promisify } from "node:util"; +import { mockBuiltin } from "../tests/mock-builtin.mjs"; const { DEFAULT_WEB_SERVICE_CONFIG, @@ -186,3 +188,32 @@ test("isTrayProcessRunning caches status and refreshes on invalidateTrayRunningC const running3 = await isTrayProcessRunning(); assert.equal(typeof running3, "boolean"); }); + +test("stopTrayService kills an orphaned Node or Bun server on the service port", async (t) => { + const commands = []; + const execFile = Object.assign(() => { throw new Error("execFile without promisify"); }, { + [promisify.custom]: async (command, args) => { + commands.push([command, ...args]); + return { stdout: "" }; + }, + }); + await mockBuiltin(t, "node:child_process", { execFile }); + const { stopTrayService: stop } = await import("./windows-service.ts?fresh=orphan"); + const platform = Object.getOwnPropertyDescriptor(process, "platform"); + Object.defineProperty(process, "platform", { ...platform, value: "win32" }); + t.after(() => Object.defineProperty(process, "platform", platform)); + assert.deepEqual(await stop(), { success: true }); + const script = commands.find((command) => command.includes("-Command")).at(-1); + assert.match(script, /\$owner\.Name -like "node\*"/); + assert.match(script, /\$owner\.Name -like "bun\*"/); +}); + +test("the Windows scripts fall back to a Bun dev server when dist/ is not built", () => { + const scripts = path.join(getRepoRoot(), "scripts", "windows"); + for (const name of ["omp-web-service.ps1", "omp-web-tray.ps1"]) { + const script = readFileSync(path.join(scripts, name), "utf8"); + assert.match(script, /\$BuildIndex = Join-Path \$RepoRoot "dist\\index\.html"/, name); + assert.match(script, /bin\\bun-runtime\.js.*--hot server\\dev\.ts/, name); + assert.doesNotMatch(script, /\.next|node_modules\\next/, name); + } +}); diff --git a/lib/windows-service.ts b/lib/windows-service.ts index e927b0554..4e70e2a7f 100644 --- a/lib/windows-service.ts +++ b/lib/windows-service.ts @@ -653,12 +653,12 @@ export async function stopTrayService(): Promise<{ success: boolean; message?: s foreach ($p in $nativeProcs) { Start-Process -FilePath '${taskkillExe.replace(/'/g, "''")}' -ArgumentList "/PID $($p.ProcessId) /T /F" -WindowStyle Hidden -Wait -ErrorAction SilentlyContinue | Out-Null } - # Also kill orphaned node servers on the service port + # Also kill orphaned node or bun servers on the service port $port = if ($cfg -and $cfg.port) { [int]$cfg.port } else { 30177 } $conns = Get-NetTCPConnection -LocalPort $port -ErrorAction SilentlyContinue | Where-Object { $_.State -eq "Listen" } foreach ($c in $conns) { $owner = Get-CimInstance Win32_Process -Filter "ProcessId = $($c.OwningProcess)" -ErrorAction SilentlyContinue - if ($owner -and $owner.Name -like "node*") { + if ($owner -and ($owner.Name -like "node*" -or $owner.Name -like "bun*")) { Start-Process -FilePath '${taskkillExe.replace(/'/g, "''")}' -ArgumentList "/PID $($c.OwningProcess) /T /F" -WindowStyle Hidden -Wait -ErrorAction SilentlyContinue | Out-Null } } diff --git a/scripts/windows/omp-web-service.ps1 b/scripts/windows/omp-web-service.ps1 index 2696b06e4..a34f46118 100644 --- a/scripts/windows/omp-web-service.ps1 +++ b/scripts/windows/omp-web-service.ps1 @@ -30,8 +30,8 @@ $EffectiveHostname = if (![string]::IsNullOrWhiteSpace($Hostname)) { $Hostname } $EffectiveMode = if (![string]::IsNullOrWhiteSpace($Mode)) { $Mode } elseif ($Config -and $Config.mode) { [string]$Config.mode } else { $DefaultMode } $EffectiveAutoRestart = if ($Config -and ($null -ne $Config.autoRestart)) { [bool]$Config.autoRestart } else { $DefaultAutoRestart } -$NextDir = Join-Path $RepoRoot ".next" -if ($EffectiveMode -eq "start" -and !(Test-Path $NextDir)) { +$BuildIndex = Join-Path $RepoRoot "dist\index.html" +if ($EffectiveMode -eq "start" -and !(Test-Path $BuildIndex)) { $EffectiveMode = "dev" if ($EffectivePort -eq 30177) { $EffectivePort = 30178 } } @@ -128,8 +128,7 @@ function Start-WebServer { $launcherJs = Join-Path $RepoRoot "bin\omp-web.js" $inner = "`"$NodeExe`" `"$launcherJs`" -p $EffectivePort -H $EffectiveHostname --no-open" } else { - $nextBin = Join-Path $RepoRoot "node_modules\next\dist\bin\next" - $inner = "`"$NodeExe`" `"$nextBin`" dev -H $EffectiveHostname -p $EffectivePort" + $inner = "`"$NodeExe`" `"$(Join-Path $RepoRoot 'bin\bun-runtime.js')`" --hot server\dev.ts -H $EffectiveHostname -p $EffectivePort" } $psi.FileName = $env:ComSpec $psi.Arguments = "/d /s /c `"$inner >> `"$childOutLog`" 2>&1`"" diff --git a/scripts/windows/omp-web-tray.ps1 b/scripts/windows/omp-web-tray.ps1 index 4b347a4bf..07f9d7d2f 100644 --- a/scripts/windows/omp-web-tray.ps1 +++ b/scripts/windows/omp-web-tray.ps1 @@ -76,9 +76,9 @@ if ($OpenBrowser) { $ShouldOpenBrowser = $true } -# Fallback: if in start mode but .next directory does not exist, fall back to dev mode -$NextDir = Join-Path $RepoRoot ".next" -if ($EffectiveMode -eq "start" -and !(Test-Path $NextDir)) { +# Fallback: if in start mode but the client build (dist\index.html) does not exist, fall back to dev mode +$BuildIndex = Join-Path $RepoRoot "dist\index.html" +if ($EffectiveMode -eq "start" -and !(Test-Path $BuildIndex)) { $EffectiveMode = "dev" if ($EffectivePort -eq 30177) { $EffectivePort = 30178 @@ -246,8 +246,7 @@ function Start-WebServer { $launcherJs = Join-Path $RepoRoot "bin\omp-web.js" $inner = "`"$NodeExe`" `"$launcherJs`" -p $EffectivePort -H $EffectiveHostname --no-open" } else { - $nextBin = Join-Path $RepoRoot "node_modules\next\dist\bin\next" - $inner = "`"$NodeExe`" `"$nextBin`" dev -H $EffectiveHostname -p $EffectivePort" + $inner = "`"$NodeExe`" `"$(Join-Path $RepoRoot 'bin\bun-runtime.js')`" --hot server\dev.ts -H $EffectiveHostname -p $EffectivePort" } $psi.FileName = $env:ComSpec $psi.Arguments = "/d /s /c `"$inner >> `"$childOutLog`" 2>&1`"" From 97d03b9110a5526a61add67f6f72022bb0b8b9b1 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 13:17:37 +0000 Subject: [PATCH 14/81] fix(stt): keep the server-only STT config out of the client bundle hooks/useDictation.ts imports isSttAfter from lib/stt.ts, which also held readSttConfig. Bun's dev bundle does not tree-shake, so it shipped process.env.OMP_WEB_STT_{ENDPOINT,KEY,MODEL} to the browser. readSttConfig and SttConfig move to the server-only lib/stt-jobs.ts; lib/stt.ts keeps only what the browser shares. --- app/api/stt/[jobId]/route.ts | 3 +-- app/api/stt/route.ts | 4 ++-- lib/stt-jobs.ts | 22 +++++++++++++++++++++- lib/stt.ts | 20 -------------------- 4 files changed, 24 insertions(+), 25 deletions(-) diff --git a/app/api/stt/[jobId]/route.ts b/app/api/stt/[jobId]/route.ts index 8014b2a36..605029c91 100644 --- a/app/api/stt/[jobId]/route.ts +++ b/app/api/stt/[jobId]/route.ts @@ -1,5 +1,4 @@ -import { readSttConfig } from "@/lib/stt"; -import { closeSttJob, getSttJob, retrySttJob } from "@/lib/stt-jobs"; +import { closeSttJob, getSttJob, readSttConfig, retrySttJob } from "@/lib/stt-jobs"; type Params = { params: Promise<{ jobId: string }> }; diff --git a/app/api/stt/route.ts b/app/api/stt/route.ts index 00dd6f56f..62c3032cf 100644 --- a/app/api/stt/route.ts +++ b/app/api/stt/route.ts @@ -1,6 +1,6 @@ import { parseFormDataWithinLimit, RequestBodyTooLargeError } from "@/lib/bounded-form-data"; -import { isSttAfter, MAX_STT_AUDIO_BYTES, MAX_STT_REQUEST_BYTES, readSttConfig } from "@/lib/stt"; -import { listSttJobs, startSttJob } from "@/lib/stt-jobs"; +import { isSttAfter, MAX_STT_AUDIO_BYTES, MAX_STT_REQUEST_BYTES } from "@/lib/stt"; +import { listSttJobs, readSttConfig, startSttJob } from "@/lib/stt-jobs"; const MAX_SCOPE_LENGTH = 1024; diff --git a/lib/stt-jobs.ts b/lib/stt-jobs.ts index 9261738ea..122b27cd9 100644 --- a/lib/stt-jobs.ts +++ b/lib/stt-jobs.ts @@ -1,7 +1,27 @@ import { randomUUID } from "node:crypto"; -import type { SttAfter, SttConfig } from "@/lib/stt"; +import type { SttAfter } from "@/lib/stt"; import { authGatewayRequest } from "@/lib/omp/auth-gateway"; +function cleanEnvVar(val?: string): string | undefined { + const cleaned = val?.replace(/\\n|[\r\n]/g, "").trim(); + return cleaned || undefined; +} + +export interface SttConfig { + /** Unset: transcribe with `model` (an omp model selector) through omp's auth gateway. */ + endpoint: string | undefined; + apiKey: string | undefined; + model: string | undefined; +} + +/** STT settings from OMP_WEB_STT_*; null when neither an endpoint nor a model is configured. Server-only: lib/stt.ts is shared with the browser. */ +export function readSttConfig(): SttConfig | null { + const endpoint = cleanEnvVar(process.env.OMP_WEB_STT_ENDPOINT); + const model = cleanEnvVar(process.env.OMP_WEB_STT_MODEL); + if (!endpoint && !model) return null; + return { endpoint, apiKey: cleanEnvVar(process.env.OMP_WEB_STT_KEY), model }; +} + /** * Server-owned transcription jobs. POST /api/stt starts one and returns its id * at once; browsers poll GET /api/stt/[jobId]. The server holds the slow diff --git a/lib/stt.ts b/lib/stt.ts index e85c12671..c24752d05 100644 --- a/lib/stt.ts +++ b/lib/stt.ts @@ -12,23 +12,3 @@ export type SttAfter = "send" | "steer" | "followup"; export function isSttAfter(value: unknown): value is SttAfter { return value === "send" || value === "steer" || value === "followup"; } - -function cleanEnvVar(val?: string): string | undefined { - const cleaned = val?.replace(/\\n|[\r\n]/g, "").trim(); - return cleaned || undefined; -} - -export interface SttConfig { - /** Unset: transcribe with `model` (an omp model selector) through omp's auth gateway. */ - endpoint: string | undefined; - apiKey: string | undefined; - model: string | undefined; -} - -/** STT settings from OMP_WEB_STT_*; null when neither an endpoint nor a model is configured. */ -export function readSttConfig(): SttConfig | null { - const endpoint = cleanEnvVar(process.env.OMP_WEB_STT_ENDPOINT); - const model = cleanEnvVar(process.env.OMP_WEB_STT_MODEL); - if (!endpoint && !model) return null; - return { endpoint, apiKey: cleanEnvVar(process.env.OMP_WEB_STT_KEY), model }; -} From 142e5c6b1bb57b46b31425929421c57a46b48fd0 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 13:17:45 +0000 Subject: [PATCH 15/81] ci: smoke-test the Bun server and the packed install npm run smoke [-- --package ] starts the launcher on a free port with a throwaway HOME and checks: no process.env in the shipped dist/ JS, the SPA (200, id="root", no-cache), a hashed asset (immutable, gzip), /api/hosts JSON, /api/events open past Bun's 10 s idle default, and a clean stop. verify-pr runs it on the repo and on a packed global install (ubuntu and windows); publish runs it after the build; release:check ends with it. package.json files ship app/api, server, dist, proxy.ts, instrumentation.node.ts and tsconfig.json instead of .next. Windows CI parses omp-web-service.ps1 and omp-web-tray.ps1 with the PowerShell parser, replacing the source-text regex test in lib/windows-service.test.mjs. Nix: the fonts patch is gone; the build and the launcher use the npm @oven/bun-- binary (pinned 1.4.4; nixpkgs has at most 1.4.2), patched with autoPatchelf on Linux, with bun's postinstall skipped. The devShell gains bun. Unverified: nix is not installed here, so npmDepsHash still needs refreshing with `nix build .#default` on a machine with nix. --- .github/workflows/publish.yml | 1 + .github/workflows/verify-pr.yml | 20 ++++ flake.nix | 1 + lib/windows-service.test.mjs | 10 -- nix/package.nix | 117 ++++------------------ package.json | 18 ++-- scripts/smoke.ts | 169 ++++++++++++++++++++++++++++++++ 7 files changed, 219 insertions(+), 117 deletions(-) create mode 100644 scripts/smoke.ts diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b604bd7ea..9f99af1e0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,6 +33,7 @@ jobs: - run: npm ci - run: npm test - run: npm run build + - run: npm run smoke - name: Create draft GitHub Release env: diff --git a/.github/workflows/verify-pr.yml b/.github/workflows/verify-pr.yml index 580789079..a2be53569 100644 --- a/.github/workflows/verify-pr.yml +++ b/.github/workflows/verify-pr.yml @@ -58,6 +58,26 @@ jobs: - name: Verify production build run: npm run build + - name: Smoke test + run: npm run smoke + + - name: Packed install smoke test + shell: bash + run: | + npm pack --ignore-scripts + npm install -g --prefix "$RUNNER_TEMP/ompweb-prefix" ./kahme247-ompweb-*.tgz + npm run smoke -- --package "$(npm root -g --prefix "$RUNNER_TEMP/ompweb-prefix")/@kahme247/ompweb" + + - name: Parse Windows PowerShell scripts (Windows only) + if: runner.os == 'Windows' + shell: pwsh + run: | + foreach ($f in 'scripts/windows/omp-web-service.ps1', 'scripts/windows/omp-web-tray.ps1') { + $e = $null + [System.Management.Automation.Language.Parser]::ParseFile((Resolve-Path $f).Path, [ref]$null, [ref]$e) | Out-Null + if ($e) { $e; exit 1 } + } + - name: Verify Windows System Tray & Shortcuts (Windows only) if: runner.os == 'Windows' run: | diff --git a/flake.nix b/flake.nix index 992123180..5ed6f6468 100644 --- a/flake.nix +++ b/flake.nix @@ -27,6 +27,7 @@ default = pkgs.mkShellNoCC { packages = with pkgs; [ nodejs-slim + bun ]; }; }); diff --git a/lib/windows-service.test.mjs b/lib/windows-service.test.mjs index 29f0d6399..dc5dcafdf 100644 --- a/lib/windows-service.test.mjs +++ b/lib/windows-service.test.mjs @@ -207,13 +207,3 @@ test("stopTrayService kills an orphaned Node or Bun server on the service port", assert.match(script, /\$owner\.Name -like "node\*"/); assert.match(script, /\$owner\.Name -like "bun\*"/); }); - -test("the Windows scripts fall back to a Bun dev server when dist/ is not built", () => { - const scripts = path.join(getRepoRoot(), "scripts", "windows"); - for (const name of ["omp-web-service.ps1", "omp-web-tray.ps1"]) { - const script = readFileSync(path.join(scripts, name), "utf8"); - assert.match(script, /\$BuildIndex = Join-Path \$RepoRoot "dist\\index\.html"/, name); - assert.match(script, /bin\\bun-runtime\.js.*--hot server\\dev\.ts/, name); - assert.doesNotMatch(script, /\.next|node_modules\\next/, name); - } -}); diff --git a/nix/package.nix b/nix/package.nix index f0e8aa92c..75fcbdc8d 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -1,92 +1,11 @@ { lib, + stdenv, buildNpmPackage, - fetchurl, - writeText, + autoPatchelfHook, ... }: let - notoSansMono = fetchurl { - name = "NotoSansMono.ttf"; - url = "https://raw.githubusercontent.com/notofonts/notofonts.github.io/noto-monthly-release-2026.08.01/fonts/NotoSansMono/unhinted/variable-ttf/NotoSansMono%5Bwdth%2Cwght%5D.ttf"; - hash = "sha256-BLG//8WYEU+ZjGDzE/emTfbJEez+1Hok4n8Dsd80v2Y="; - }; - - sourceSerif = fetchurl { - name = "SourceSerif4Variable-Roman.otf"; - url = "https://raw.githubusercontent.com/adobe-fonts/source-serif/4.005R/VAR/SourceSerif4Variable-Roman.otf"; - hash = "sha256-hntzxqlUpKZGFpBtF5+UVyp0h5Ch0CLr7v8H9W6gIho="; - }; - - jetBrainsMono = fetchurl { - name = "JetBrainsMono.ttf"; - url = "https://raw.githubusercontent.com/JetBrains/JetBrainsMono/v2.304/fonts/variable/JetBrainsMono%5Bwght%5D.ttf"; - hash = "sha256-ZioZbVjxGDvy13QottUoP+P0UWGrAhvqQDa8mOXKwBY="; - }; - - geist = fetchurl { - name = "Geist.ttf"; - url = "https://raw.githubusercontent.com/vercel/geist-font/v1.7.2/fonts/Geist/variable/Geist%5Bwght%5D.ttf"; - hash = "sha256-c4lOBEjK6QqStsL4cyt7uay3uUxBi/9Vna1KGOHellk="; - }; - - localFontsPatch = writeText "ompweb-local-fonts.patch" '' - diff --git a/app/layout.tsx b/app/layout.tsx - --- a/app/layout.tsx - +++ b/app/layout.tsx - @@ -1,28 +1,30 @@ - import type { Metadata, Viewport } from "next"; - import { headers } from "next/headers"; - import Script from "next/script"; - -import { Geist, JetBrains_Mono, Noto_Sans_Mono, Source_Serif_4 } from "next/font/google"; - +import localFont from "next/font/local"; - import { ThemeColor } from "@/hooks/useTheme"; - import { IosFocusZoomGuard } from "@/components/IosFocusZoomGuard"; - import { SIDEBAR_HISTORY_BRIDGE_SCRIPT } from "@/lib/sidebar-history-bridge"; - import { getInstallName } from "@/lib/install-name"; - import "./globals.css"; - - -const geist = Geist({ - - subsets: ["latin"], - +const geist = localFont({ - + src: "./fonts/Geist.ttf", - + weight: "100 900", - variable: "--font-geist", - display: "swap", - }); - - -const jetbrainsMono = JetBrains_Mono({ - - subsets: ["latin"], - - weight: ["400", "500", "600"], - +const jetbrainsMono = localFont({ - + src: "./fonts/JetBrainsMono.ttf", - + weight: "100 800", - variable: "--font-jb-mono", - display: "swap", - }); - - -const notoSansMono = Noto_Sans_Mono({ - - subsets: ["latin", "cyrillic"], - +const notoSansMono = localFont({ - + src: "./fonts/NotoSansMono.ttf", - + weight: "100 900", - variable: "--font-noto-mono", - display: "swap", - }); - @@ -31,8 +33,9 @@ - // latin; CJK uses a bundled Noto Serif SC subset declared in globals.css, not - // next/font/google: Google Fonts sometimes serves it through extensionless - // `/l/font?kit=` URLs that next/font cannot parse, which failed builds at random. - -const sourceSerif = Source_Serif_4({ - - subsets: ["latin"], - +const sourceSerif = localFont({ - + src: "./fonts/SourceSerif4Variable-Roman.otf", - + weight: "200 900", - variable: "--font-source-serif", - display: "swap", - }); - ''; - productionLib = lib.fileset.difference ../lib ( lib.fileset.fileFilter (file: lib.hasInfix ".test." file.name) ../lib ); @@ -102,13 +21,11 @@ let ../public ../scripts - ../instrumentation.ts + ../bunfig.toml ../instrumentation.node.ts - ../next.config.ts - ../next-env.d.ts ../package.json ../package-lock.json - ../postcss.config.mjs + ../server ../tailwind.config.ts ../tsconfig.json ../proxy.ts @@ -120,20 +37,26 @@ buildNpmPackage (finalAttrs: { pname = "ompweb"; inherit src version; - patches = [ localFontsPatch ]; - - postPatch = '' - mkdir -p app/fonts - cp ${notoSansMono} app/fonts/NotoSansMono.ttf - cp ${sourceSerif} app/fonts/SourceSerif4Variable-Roman.otf - cp ${jetBrainsMono} app/fonts/JetBrainsMono.ttf - cp ${geist} app/fonts/Geist.ttf - ''; - + # Unverified: written without nix. Refresh npmDepsHash on a machine with nix (`nix build .#default` prints it). npmDepsHash = "sha256-HxT+m6bI0I3t9sqsSgHun6oXve3WtIEmkFpCoBplrC4="; # npmPackFlags = [ "--ignore-scripts" ]; + # Bun runs from the npm @oven/bun-- package (the pinned version every install uses). bun's postinstall + # (the only install script) execs that binary before it is patched, so skip it: bin/bun-runtime.js then picks the + # @oven binary itself. + npmRebuildFlags = [ "--ignore-scripts" ]; + nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook ]; + # Patched once in preBuild (the build runs it); fixup has nothing else to patch. + dontAutoPatchelf = true; + + # node_modules/.bin/bun points at bun's postinstall placeholder; build with the binary the launcher resolves. + preBuild = '' + ${lib.optionalString stdenv.hostPlatform.isLinux "autoPatchelf -- node_modules/@oven"} + rm -f node_modules/.bin/bun node_modules/.bin/bunx + export PATH="$(dirname "$(node -p 'require("./bin/bun-runtime.js").resolveBunBinary(".")')"):$PATH" + ''; + meta = { description = "Local web UI for the oh-my-pi (omp) coding agent"; license = lib.licenses.mit; diff --git a/package.json b/package.json index 8c932da2b..da360bb1a 100644 --- a/package.json +++ b/package.json @@ -24,17 +24,14 @@ "files": [ "bin", "lib", - ".next", - "!.next/cache", - "!.next/dev", - "!.next/diagnostics", - "!.next/types", - "!.next/trace", - "!.next/trace-build", - "!.next/**/*.map", + "app/api", + "server", + "dist", "public", "scripts", - "next.config.ts", + "proxy.ts", + "instrumentation.node.ts", + "tsconfig.json", "package.json" ], "scripts": { @@ -56,7 +53,8 @@ "systemd:stop": "node bin/omp-web-systemd.js stop", "systemd:status": "node bin/omp-web-systemd.js status", "prepack": "npm run build", - "release:check": "npm run typecheck && npm run lint && npm test && npm run build" + "smoke": "bun scripts/smoke.ts", + "release:check": "npm run typecheck && npm run lint && npm test && npm run build && npm run smoke" }, "dependencies": { "@base-ui/react": "^1.7.0", diff --git a/scripts/smoke.ts b/scripts/smoke.ts new file mode 100644 index 000000000..6f4000b0a --- /dev/null +++ b/scripts/smoke.ts @@ -0,0 +1,169 @@ +// `npm run smoke [-- --package ]`: starts `node /bin/omp-web.js` on a free port with a throwaway HOME and +// checks the shipped bundle, the SPA, a hashed asset, the API and the SSE stream, then stops it. : the repo root +// (after `npm run build`) or a packed install. Prints one `ok ` / `FAIL : ` line per step. +import assert from "node:assert/strict"; +import { mkdirSync, mkdtempSync, rmSync } from "node:fs"; +import os from "node:os"; +import path from "node:path"; +import { parseArgs } from "node:util"; + +const { values } = parseArgs({ args: Bun.argv.slice(2), options: { package: { type: "string" } } }); +const dir = path.resolve(values.package ?? path.join(import.meta.dir, "..")); + +let failed = false; +async function step(name: string, run: () => unknown): Promise { + try { + await run(); + console.log(`ok ${name}`); + return true; + } catch (error) { + failed = true; + console.log(`FAIL ${name}: ${error instanceof Error ? error.message : String(error)}`); + return false; + } +} + +async function portOpen(port: number): Promise { + try { + (await Bun.connect({ hostname: "127.0.0.1", port, socket: { data() {} } })).end(); + return true; + } catch { + return false; + } +} + +async function readText(stream: ReadableStream, onText: (text: string) => void): Promise { + const decoder = new TextDecoder(); + const reader = stream.getReader(); + for (let chunk = await reader.read(); !chunk.done; chunk = await reader.read()) onText(decoder.decode(chunk.value, { stream: true })); +} + +// shortcut: also fails on a guarded `typeof process !== "undefined" && process.env.X` (none ship today); allow such +// a reference by name if a dependency ever needs one. +await step("client bundle has no process.env (browsers have no process)", async () => { + const dist = path.join(dir, "dist"); + const hits: string[] = []; + let files = 0; + for await (const file of new Bun.Glob("**/*.js").scan(dist)) { + files += 1; + const names = (await Bun.file(path.join(dist, file)).text()).match(/process\.env\b(\.\w+)?/g); + if (names) hits.push(`${file}: ${[...new Set(names)].join(", ")}`); + } + assert(files > 0, `no .js files under ${dist}`); + assert(hits.length === 0, hits.join("; ")); +}); + +const probe = Bun.listen({ hostname: "127.0.0.1", port: 0, socket: { data() {} } }); +const { port } = probe; +probe.stop(true); +const base = `http://127.0.0.1:${port}`; + +const temp = mkdtempSync(path.join(os.tmpdir(), "ompweb-smoke-")); +const home = path.join(temp, "home"); +const agentDir = path.join(home, ".omp", "agent"); +mkdirSync(agentDir, { recursive: true }); +// USERPROFILE: os.homedir() on Windows, so the real ~/.omp stays untouched there too. +const env: Record = { + ...process.env, + HOME: home, + USERPROFILE: home, + PI_CODING_AGENT_DIR: agentDir, + OMP_WEB_OMP_BIN: path.join(temp, "missing-omp"), +}; +for (const name of ["OMP_WEB_PASSWORD", "OMP_WEB_PASSWORD_HASH"]) delete env[name]; + +let log = ""; +let launcher: Bun.Subprocess<"ignore", "pipe", "pipe"> | undefined; +try { + const ready = Promise.withResolvers(); + const started = await step(`launcher prints Ready on port ${port}`, async () => { + const child = Bun.spawn(["node", path.join(dir, "bin", "omp-web.js"), "-p", String(port), "-H", "127.0.0.1", "--no-open"], { + env, + stdin: "ignore", + stdout: "pipe", + stderr: "pipe", + }); + launcher = child; + let stdout = ""; + void readText(child.stdout, (text) => { + log += text; + stdout += text; + if (stdout.includes("Ready")) ready.resolve(); + }); + void readText(child.stderr, (text) => { log += text; }); + const outcome = await Promise.race([ + ready.promise.then(() => "ready"), + child.exited.then((code) => `launcher exited with ${code}`), + Bun.sleep(60_000).then(() => "no Ready on stdout within 60 s"), + ]); + assert(outcome === "ready", outcome); + }); + + if (started) { + let html = ""; + await step("GET / serves the SPA with no-cache", async () => { + const response = await fetch(`${base}/`); + html = await response.text(); + assert(response.status === 200, `status ${response.status}`); + assert(response.headers.get("content-type")?.startsWith("text/html"), `content-type ${response.headers.get("content-type")}`); + assert(html.includes('id="root"'), 'no id="root" in the page'); + assert(response.headers.get("cache-control")?.includes("no-cache"), `cache-control ${response.headers.get("cache-control")}`); + }); + + await step("first /assets/*.js is immutable and gzipped", async () => { + const asset = /\/assets\/[^"'\s]+\.js/.exec(html)?.[0]; + assert(asset, "the page names no /assets/*.js"); + const response = await fetch(`${base}${asset}`, { headers: { "accept-encoding": "gzip" } }); + await response.arrayBuffer(); + assert(response.status === 200, `${asset}: status ${response.status}`); + assert(response.headers.get("cache-control")?.includes("immutable"), `${asset}: cache-control ${response.headers.get("cache-control")}`); + assert(response.headers.get("content-encoding") === "gzip", `${asset}: content-encoding ${response.headers.get("content-encoding")}`); + }); + + await step("GET /api/hosts returns JSON", async () => { + const response = await fetch(`${base}/api/hosts`); + assert(response.status === 200, `status ${response.status}`); + assert(response.headers.get("content-type")?.startsWith("application/json"), `content-type ${response.headers.get("content-type")}`); + await response.json(); + }); + + await step("GET /api/events delivers an event and stays open for 12 s", async () => { + const abort = new AbortController(); + try { + const response = await fetch(`${base}/api/events`, { signal: abort.signal }); + assert(response.status === 200 && response.body, `status ${response.status}`); + const reader = response.body.pipeThrough(new TextDecoderStream()).getReader(); + let text = ""; + while (!text.includes("\n\n")) { + const chunk = await Promise.race([reader.read(), Bun.sleep(10_000).then(() => null)]); + assert(chunk, "no event within 10 s"); + assert(!chunk.done, "the stream ended before its first event"); + text += chunk.value; + } + let open = true; + void (async () => { while (!(await reader.read()).done); })().catch(() => {}).finally(() => { open = false; }); + await Bun.sleep(12_000); + assert(open, "the stream closed within 12 s of its first event"); + } finally { + abort.abort(); + } + }); + } +} finally { + if (launcher) { + const child = launcher; + await step("launcher stops and the port closes", async () => { + if (process.platform === "win32") Bun.spawnSync(["taskkill", "/pid", String(child.pid), "/t", "/f"]); + else child.kill("SIGTERM"); + const deadline = Date.now() + 15_000; + while (await portOpen(port)) { + assert(Date.now() < deadline, `port ${port} still accepts connections 15 s after the stop`); + await Bun.sleep(200); + } + }); + } + await step("temp dirs removed", () => rmSync(temp, { recursive: true, force: true })); +} + +if (failed && log) console.log(`--- launcher output ---\n${log}`); +process.exit(failed ? 1 : 0); From e0ffcda09c5a5c1cffe8d29e6b252b2300fcec91 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 13:23:49 +0000 Subject: [PATCH 16/81] docs: document the Bun runtime --- AGENTS.md | 111 +++++++++++++++++++-------- CHANGELOG.md | 1 + CONTRIBUTING.md | 17 ++-- DESIGN.md | 19 ++--- README.ja.md | 8 +- README.md | 20 +---- README.zh-CN.md | 8 +- docs/plans/2026-10-30-bun-runtime.md | 9 +-- 8 files changed, 112 insertions(+), 81 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index f04474faf..98faa07db 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -3,13 +3,14 @@ ## Quick Start ```bash -npm run dev # port 30178 +npm run dev # Bun server with hot reload (HMR for the SPA), port 30178 +npm run build # bundle the SPA into dist/ (scripts/build-client.ts) +npm start # serve dist/ + the API, port 30177 +npm test # bun test --parallel +npm run smoke # start the built server (or a packed install: -- --package ) and check it +npm run typecheck && npm run lint ``` -Typecheck: `node_modules/.bin/tsc --noEmit` -Lint: `npm run lint` -**Never run `next build` during dev** — pollutes `.next/` and breaks `npm run dev`. - The dev server needs the `omp` binary installed (on `PATH`, or set `OMP_WEB_OMP_BIN`). All live-agent features go through it; session browsing works without it. @@ -17,12 +18,12 @@ All live-agent features go through it; session browsing works without it. ## Architecture -omp-web never imports `@oh-my-pi/*` or `@earendil-works/*` packages (they are -Bun-only and cannot run inside Node/Next). See `DESIGN.md` for the full porting -contract. +omp-web never imports `@oh-my-pi/*` or `@earendil-works/*` packages, even +though the server now runs on Bun: live work goes through the installed `omp` +child. See `DESIGN.md` for the full porting contract. ``` -Browser Next.js Server omp child process +Browser Bun server (server/app.ts) omp child process │ │ │ ├─ GET /api/sessions ────▶ reads ~/.omp/agent/sessions/ │ ├─ GET /api/sessions/[id] reads .jsonl file directly │ @@ -38,6 +39,12 @@ Browser Next.js Server omp child process │◀── event: s data: {...} ──│ │ ``` +The launcher (`bin/omp-web.js`) and the host daemon (`bin/omp-web-host.js`) +and tray run on Node. The launcher spawns `bun server/main.ts` (Bun resolved by +`bin/bun-runtime.js`: the npm `@oven/bun-*` binary, else `bun` on `PATH`), which +serves the SPA from `dist/`, the API routes and the password gate in one +process. Nothing in the daemon or tray may use a Bun API. + **Session browsing** (read-only): pure-Node parsing of omp session `.jsonl` files via `lib/session-reader.ts` — no child process involved. **Sending a message**: `startRpcSession()` in `lib/rpc-manager.ts` asks the @@ -65,6 +72,17 @@ Shared foundations in `lib/omp/`: ## File Map ``` +server/ + main.ts production entry: sets NODE_ENV, `startServer`, then `register()` (instrumentation.node.ts); prints the `Ready on` line the launcher waits for + dev.ts dev entry (`bun --hot`): serves the HTML import with HMR; re-runs itself once with OMP_WEB_PUBLIC_* set so `bunfig.toml` can inline them + app.ts `startServer`: `Bun.serve` + route table + gate + SPA fallback; `parseListenArgs` + routes.ts the API route table (see "Adding an API route"); `routePattern`, `dispatch` + http.ts `finalizeResponse` (security headers, gzip), `serveFile` (dist/, public/, KaTeX), `renderIndex` + client-env.ts build-time constants for the browser bundle (app version, event-stream worker hash) +app/ + index.html the SPA shell, the bundler entry + client.tsx browser entry: renders `LoginForm` on `/login`, else `AppShell` (a path check, no router) + boot.ts runs first in client.tsx: installs the sidebar history bridge before AppShell registers popstate listeners app/api/ sessions/route.ts GET list all sessions sessions/search/route.ts GET ?q= — NDJSON { scores } batches (titles + transcripts); closing the request stops the scan @@ -75,7 +93,7 @@ app/api/ agent/[id]/route.ts GET state | POST any RPC command events/route.ts GET multiplexed SSE | POST subscribe/unsubscribe channels hosts/route.ts GET hosts (this machine first) | POST { label } → token once + login command | PATCH { id, label?, allowAgentStart? } (`local`: label only, empty resets to "This machine") | DELETE ?id= revoke (registry first, then close the link); 503 if hosts.json is unreadable - hosts/link/route.ts GET downlink (NDJSON stream) | POST uplink (NDJSON batch) — the `ompweb host` daemon; bearer-token auth, skipped by `proxy.ts` + hosts/link/route.ts GET downlink (NDJSON stream) | POST uplink (NDJSON batch) — the `ompweb host` daemon; bearer-token auth, skipped by the `proxy.ts` gate hosts/link/blob/[reqId]/route.ts POST raw bytes for a large op result (daemon → main) notifications/devices/route.ts GET VAPID key + subscribed | PUT { deviceId, prefs, subscription? } notifications/presence/route.ts POST { clientId, deviceId, visible, sessionId, seq } @@ -106,8 +124,10 @@ app/api/ worktrees/route.ts GET/POST/DELETE git worktrees lib/ + dynamic.tsx `dynamic()` over `React.lazy` + `Suspense` (replaces `next/dynamic`) + navigation.ts `useRouter`/`useSearchParams` over the History API (replaces `next/navigation`) omp/ shared omp foundations (paths, CLI probe, RpcProcess) - hosts/ hosts and the local daemon (see "Remote hosts"); none of the daemon-loaded files may import `next/*` or `@/` + hosts/ hosts and the local daemon (see "Remote hosts"); none of the daemon-loaded files may import `@/` (the daemon runs on Node through `jiti`) host.ts `Host` interface, `HostStatus`, `isLinkUp` local-host.ts `localHost`, the daemon's side: spawn + file checks on the daemon's machine; `resolveSpawnCwdResult`; `SESSION_EDIT_EXTENSION_PATH` (from the module's own location: the daemon runs in HOME). Never imported by main, nor is `daemon.ts` (`no-direct-local.test.mjs`) local-bootstrap.ts web server side of the local link: `localLinkUrl`, `ensureLocalHostLink` (the `local` record + `host.json`) @@ -206,16 +226,49 @@ hooks/ useBtw.ts /btw records/active panel/history dialog fed by btw_* SSE frames bin/ + bun-runtime.js resolves the Bun binary (npm `@oven/bun-*`, else PATH, minimum version check); used by the launcher, scripts and nix omp-web-host.js `ompweb host [login]`: daemon CLI; token read from stdin, never argv. `omp-web.js host` requires it in-process (no child) so SIGTERM/SIGINT reach the daemon's stop + +scripts/ + build-client.ts `npm run build`: bundles app/index.html into dist/ (Bun.build + bun-plugin-tailwind; fonts emitted as /assets files) + smoke.ts `npm run smoke`: starts the built server on a free port with a throwaway HOME and checks the SPA, an asset, the API and SSE + +dist/ build output (git-ignored, shipped in the package); the production server reads index.html and assets from here +bunfig.toml Bun dev-server bundling: tailwind plugin and the OMP_WEB_PUBLIC_* inlining ``` --- ## Key Design Decisions & Traps +### Adding an API route +1. Create `app/api//route.ts` exporting `GET`/`POST`/`PUT`/`PATCH`/`DELETE` handlers (plain `Request` → `Response`; dynamic segments `[id]`, catch-all `[...path]`). +2. Add one `import * as x from "@/app/api//route"` and one entry to `ROUTE_MODULES` in `server/routes.ts`; the key is the directory under `app/api` (`"sessions/[id]"`). +3. `server/routes.test.ts` fails when the table and the files on disk differ, and when a route module exports anything but method handlers. + +The table is static imports, not a runtime glob, so a future `bun build --compile` can bundle every handler. `dispatch` answers HEAD from `GET`, OPTIONS and a missing method (405 with `allow`), passes `params` as a promise, and turns a throw into a 500 JSON body. + +### Bun server (`server/`) +- `Bun.serve` sets `idleTimeout: 0` for every route: SSE (`/api/events`), the host link and the clone/bash-output/search streams stay open for minutes without traffic, and Bun's 10 s default would cut them. Idle sockets on unauthenticated routes are therefore not reaped. `maxRequestBodySize` is left at Bun's 128 MiB default, above the 101 MB upload cap and the 64 MB link legs; do not lower it. +- Bun's router matches the **raw** path, while `request.url` is normalized (`..` and `%2e%2e` resolved). The gate and handlers read `request.url`, so each route re-matches the normalized path against its own `URLPattern` after the gate and answers 404 if it no longer matches. Never serve a gated route under an ungated path. +- Redirects carry a relative `Location` (`request.url` is always `http://` under Bun, so an absolute URL would leave https behind a TLS proxy). +- `Response.redirect()` headers are immutable; `finalizeResponse` (`server/http.ts`) copies every answer into a fresh `Response` to set the security headers and gzip. Do not mutate a handler's response headers elsewhere. +- `globalThis` state survives `bun --hot` re-evaluation, and `register()` (`instrumentation.node.ts`) runs once per process behind a `globalThis` guard in `server/dev.ts`. New server singletons use the `globalThis` registry pattern of `rpc-manager.ts`. +- Dev (`npm run dev`) serves the SPA from the HTML import with HMR, bundled in memory, and re-runs itself once with `OMP_WEB_PUBLIC_*` set because `bunfig.toml` inlines them from the environment Bun started with. Dev pages carry `script-src blob:` in their CSP (HMR updates run as blob scripts); production does not. +- `OMP_WEB_PACKAGE_DIR` (set by the launcher) is the root for `dist/`, `public/` and KaTeX; `process.cwd()` is the fallback for dev and tests. +- The in-app update worker runs on Node (`OMP_WEB_NODE_BIN`, the launcher's `process.execPath`), not Bun. +- Bun's `fs.watch` drops an event that follows the previous one within ~2 ms, and drops `close` events, so the file channel (`openFileChannel`, `lib/event-stream-hub.ts`) re-stats the file ~50 ms after every event. +- `bun:sqlite` `.get()` returns `null` for no row (not `undefined`). +- `readSttConfig` lives in server-only `lib/stt-jobs.ts`; the browser bundle must never import it. +- Browser code must not import `next/*`: use `lib/dynamic.tsx` and `lib/navigation.ts`. + +### Tests (`bun test`) +- DOM tests import `tests/setup-dom.mjs` first and then import Testing Library dynamically, so its queries bind to that document. `bun test --parallel` gives every file a fresh global; nothing is torn down. +- A module under test that must see a fake builtin is imported with a fresh query (`?fresh=N`) after `mockBuiltin(t, name, overrides)` (`tests/mock-builtin.mjs`, built on `mock.module`; Bun's `mock.restore()` does not undo `mock.module`, so the helper restores by hand). + ### RPC session lifecycle (`lib/rpc-manager.ts`) - One wrapper per session id, keyed in a `globalThis` registry. -- `globalThis` survives Next.js hot-reload; plain module-level Map does not. +- `globalThis` survives `bun --hot` re-evaluation; a plain module-level Map does not. - Idle sessions are disposed after a timeout; concurrent `startRpcSession()` calls must share a single start promise. - Two cleanup backstops, both unref'd so they never hold the event loop: @@ -268,8 +321,8 @@ bin/ project state key on `hostProjectKey` (bare path on this machine, `:`). - **Link = two HTTP legs, both dialled by the daemon** (`/api/hosts/link`): `GET` is the downlink (long-lived NDJSON, main → daemon), `POST` the uplink - (batched NDJSON, daemon → main). No WebSocket: `next start` route handlers - cannot accept upgrades and there is no custom server (and no `ws`). Every + (batched NDJSON, daemon → main). No WebSocket yet: the route handlers are + plain `Request` → `Response` functions with no upgrade path (and no `ws`). Every line except `hello`/`welcome`/`ping`/`pong` has a per-direction `seq`; `ack` rides the hello and every POST (the `x-omp-web-ack` header on an uplink POST). The hello is a POST body, never a header (proxy header @@ -354,10 +407,9 @@ bin/ the `get_state` reconcile. With `autoResumeSessions` on, an interrupted session resumes after its host's hello (`resumeOnHostLink`, `lib/session-resume.ts`), once, after the orphan's exit. -- **Proxy exclusion.** `proxy.ts` does not run for `/api/hosts/link` and its - subpaths (its matcher excludes exactly those). Next buffers a proxied request - body and silently truncates it past 10 MB, below the link's 16 MB uplink and - 64 MB blob limits. The hub verifies the `Authorization: Bearer ` +- **Proxy exclusion.** The `proxy.ts` gate lets `/api/hosts/link` and its + subpaths through (the `UNGATED` pattern names exactly those): the daemon has + no session cookie, so it authenticates with its bearer token instead. The hub verifies the `Authorization: Bearer ` header before reading any body (401 unknown token, 503 unreadable `hosts.json`). Keep `/api/hosts` itself behind the proxy. - **Remote paths never reach `allowFileRoot`** or any other main-side @@ -368,9 +420,9 @@ bin/ in `hub.ts`, and `sessionFileExists`/`spawn` accept only paths under the daemon's sessions directory. A remote session export is always served as an attachment: inline, its HTML would run on main's origin. -- **Daemon-loaded modules must not import `next/*` or `@/`.** `bin/omp-web-host.js` - loads `lib/hosts/daemon.ts` through plain `jiti`, which does not resolve the - `@/` alias and has no Next runtime. That covers everything the daemon pulls in +- **Daemon-loaded modules must not import `@/` or use Bun APIs.** `bin/omp-web-host.js` + loads `lib/hosts/daemon.ts` through plain `jiti` on the Node runtime, which does + not resolve the `@/` alias and has no `Bun` global (the tray modules likewise). That covers everything the daemon pulls in (`daemon.ts`, `link-protocol.ts`, `local-host.ts`, `session-ops.ts`, `host.ts`, and their `lib/` imports). Use relative imports there. - **Registry.** `/omp-web/hosts.json` (0600, atomic write) stores @@ -500,8 +552,9 @@ wait for that commit: route serves the copy until the blob has the copy's size. A daily sweep (run on the next media write) deletes copies omp now holds and files older than 30 days. -- `ToolCallBlock` shows `?thumb=1` (480px WebP made once with `sharp` and cached - next to the copies; full image if sharp is unavailable) and opens the full +- `ToolCallBlock` shows `?thumb=1` (480px WebP made once with `Bun.Image`, which + applies EXIF orientation, and cached next to the copies; full image if the + bytes do not decode) and opens the full image in the lightbox. The route serves only PNG/JPEG/GIF/WebP by magic bytes. ### Event protocol differences vs pi @@ -560,7 +613,7 @@ during the wait. EventSource and multiplexes every tab's subscriptions: frames arrive as `event: `, control frames as `event: mux` (`hello`/`open`/`end`). Subscriptions are attached with `POST /api/events`. Its URL carries a - content hash (`next.config.ts`) so a changed worker never serves stale tabs. + content hash (`server/client-env.ts`) so a changed worker never serves stale tabs. - Tabs use `openEventStream(channel)` (`lib/event-stream.ts`), which keeps EventSource semantics: `onerror` + CONNECTING = reconnecting on its own, CLOSED = fatal (e.g. 409 for a wrapper-less session; the chat hook then @@ -1056,13 +1109,3 @@ buttons, links and expandable text, ignoring drags and text selection, or Enter on the focused card. There is no separate action button). Icons come from `lucide-react` — do not add new inline SVGs. The command palette (`components/CommandPalette.tsx`, ⌘K/Ctrl+K) is built on `cmdk`. - - - -# This is NOT the Next.js you know - -This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices. - -This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean. - - diff --git a/CHANGELOG.md b/CHANGELOG.md index 739937744..007ba06d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ All notable changes to **omp-web** (`@kahme247/ompweb`) are documented in this f ### Fixes & Improvements +- **ompweb now runs on Bun instead of Next.js.** The npm package brings its own Bun, so installs and updates work as before, with no change to URLs, ports, settings or the password gate. Host link uploads are no longer cut at 10 MB. `OMP_WEB_DEV_ORIGIN` is removed: it only configured the Next development server. `npm run build` no longer interferes with `npm run dev`. - **The service installers set up the host daemon too.** `ompweb systemd install`, `ompweb-launchd install` and the Windows tray install now register `ompweb host` as a second unit (`ompweb-host`) next to the web service, restarting it after a 10 s delay so it can wait for the web server to write its host link on first install. `uninstall` and `status` cover both, and the tray menus show the daemon state. - **In-app updates work when ompweb runs as a systemd service.** The update worker ran inside the service's cgroup, so stopping the server killed the worker too: nothing was installed, the service could stay down (`Restart=on-failure` does not restart a clean SIGTERM exit), and every page load reopened the update dialog at "Stop ompweb-managed sessions". The worker now runs in its own transient scope (`systemd-run --scope`) and stops, updates and starts the unit through `systemctl`, starting it again if the install fails. - **An update whose worker died is reported as failed.** A running update whose worker process is gone, or whose lease has expired, now becomes a failed attempt the dialog can show and clean up, instead of waiting forever. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e505c658c..6bf9eadae 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,12 +4,12 @@ Thanks for your interest in contributing! ## Setup -- Node.js 24 or newer +- Node.js 24 or newer (the server runs on [Bun](https://bun.sh), which `npm install` provides) - The [omp](https://github.com/can1357/oh-my-pi) binary on your `PATH` (or set `OMP_WEB_OMP_BIN`) ```bash npm install -npm run dev # http://127.0.0.1:30178 +npm run dev # http://127.0.0.1:30178, Bun hot reload ``` The repository tracks a [graphify](https://github.com/Graphify-Labs/graphify) code @@ -32,19 +32,20 @@ afterwards and commit the graph. ## Checks (must pass before submitting) ```bash -npx tsc --noEmit # type check +npm run typecheck # type check npm run lint # ESLint, zero warnings -npm test # unit tests +npm test # unit tests (bun test --parallel) ``` -Avoid `npm run build` during local development — it writes to `.next/` and -interferes with the dev server. Builds are for release work. +`npm run build` bundles the browser app into `dist/` and `npm run smoke` +starts the built server and checks it; the dev server never reads `dist/`. ### React tests -Tests use `node:test` and `jiti`; no Jest or Vitest configuration is required. +Tests use `bun test` with `node:test`-style `test()` calls; no Jest or Vitest configuration is required. +Mock a Node builtin with `mockBuiltin` (`tests/mock-builtin.mjs`, built on `mock.module`) and import the module under test afterwards with a fresh `?fresh=N` query. For interactive components and hooks, import `tests/setup-dom.mjs` before -`@testing-library/react/pure.js`, and register `cleanup` with `afterEach`. +`@testing-library/react/pure.js` (both imported dynamically, in that order), and register `cleanup` with `afterEach`. Use DOM queries and `@testing-library/user-event` for component interactions, and `renderHook` for hook state and lifecycle tests. Keep the real jsdom `window` and `document`; mock only the browser or network APIs a scenario needs. diff --git a/DESIGN.md b/DESIGN.md index a3f79b23d..ef58e720a 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -22,8 +22,9 @@ do not assume that Pi-specific implementation changes can be merged unchanged. is an explicit user choice and must be protected by a trusted network boundary and HTTPS. 3. **Node-first installation.** A normal user installs Node.js 24+ and OMP, - then runs `npx ompweb@latest` or installs `ompweb` globally. ompweb does not - require users to install Bun for its own runtime. + then runs `npx ompweb@latest` or installs `ompweb` globally. The npm package + brings its own Bun for the web server, so users do not install Bun + themselves. 4. **Native compatibility over imitation.** Prefer OMP's CLI and documented on-disk formats to copied SDK internals. If a capability cannot be done safely through those boundaries, leave it out rather than emulating it @@ -51,7 +52,7 @@ do not assume that Pi-specific implementation changes can be merged unchanged. Browser │ HTTP / Server-Sent Events ▼ -ompweb (Next.js on Node) +ompweb (Bun server, started by the Node launcher) ├─ reads native OMP session files and selected configuration ├─ serves allow-listed project files └─ starts one `omp --mode rpc-ui` child per active session @@ -63,9 +64,9 @@ ompweb (Next.js on Node) ### Why the CLI boundary is locked OMP SDK packages are Bun-only TypeScript and import Bun APIs. Importing -`@oh-my-pi/*` or `@earendil-works/*` into a Node/Next server would make the -application unreliable or non-runnable. Therefore, production code must not -add those runtime dependencies. +`@oh-my-pi/*` or `@earendil-works/*` into the ompweb server, even though it runs on +Bun, would tie it to omp's internals and make the application unreliable. +Therefore, production code must not add those runtime dependencies. Live work goes through the user’s installed `omp --mode rpc-ui` process. This keeps the agent version, providers, extensions, and session behavior aligned @@ -107,8 +108,8 @@ machine's filesystem. The link is two HTTP requests that the `ompweb host` daemon opens to the server: a long-lived response for server → daemon and batched POSTs for -daemon → server. Next route handlers cannot accept WebSocket upgrades and -ompweb runs without a custom server, so there is no WebSocket. The daemon +daemon → server. There is no WebSocket yet: the route handlers +are plain `Request` → `Response` functions. The daemon forwards omp's NDJSON unchanged and answers a fixed allow-list of host operations; there is no generic exec or file-read operation. A host is trusted like the serving machine: control of the server or of a host token is @@ -273,7 +274,7 @@ behavior, not blindly the implementation. Releases are independent: 1. Run typecheck, lint, relevant tests, and a production build. -2. Confirm `npm pack --dry-run` contains the built `.next` output and exposes +2. Confirm `npm pack --dry-run` contains the built `dist/` output and exposes the `ompweb` binary. 3. Publish `ompweb@` only from an npm account authorized for that package. diff --git a/README.ja.md b/README.ja.md index 242a2da4b..8c655134f 100644 --- a/README.ja.md +++ b/README.ja.md @@ -27,7 +27,7 @@ ## 必要条件 - [omp](https://github.com/can1357/oh-my-pi) がインストールされ、`PATH` に含まれていること(または `OMP_WEB_OMP_BIN` で指定) -- Node.js `>= 24` +- Node.js `>= 24`。サーバーは [Bun](https://bun.sh) で動作し、npm パッケージの依存関係として自動的にインストールされます(同梱の Bun が見つからない場合は `PATH` 上の Bun を使用します) キュー内のフォローアップに対する **Steer** 操作には、`promote_queued_message` RPC コマンドをサポートする omp ランタイムが必要です(omp 18.1.16 では未対応)。古いランタイムではエラーを表示し、メッセージはフォローアップとしてキューに残ります。ompweb が重複したステアリングメッセージを送信することはありません。 @@ -143,16 +143,16 @@ npm run dev ローカル開発サーバーは [http://127.0.0.1:30178](http://127.0.0.1:30178) で起動します。 +`npm run dev` は Bun のホットリロード付きでサーバーを起動します。`npm run build` はブラウザアプリを `dist/` にバンドルし、`npm start` はそれをポート 30177 で配信します(`npm run smoke` で結果を確認できます)。`npm run dev:lan` は開発サーバーをすべてのインターフェースにバインドします。 + ### チェックコマンド ```bash npm run typecheck # 型チェック (TypeScript) npm run lint # ESLint -npm test # テスト実行 +npm test # テスト実行 (bun test) ``` -> **注意**: ローカル開発中に `npm run build` を実行しないでください(`.next/` が生成され `npm run dev` に影響を与える恐れがあります)。 - ## クレジットとライセンス - [agegr/pi-web](https://github.com/agegr/pi-web) (MIT) をベースに [can1357/oh-my-pi](https://github.com/can1357/oh-my-pi) 向けに適合・拡張したフォークです。 diff --git a/README.md b/README.md index 8def0093d..729e2d4a5 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ A clean, modern web UI for the [oh-my-pi (omp)](https://github.com/can1357/oh-my ## Requirements - [omp](https://github.com/can1357/oh-my-pi) installed and available on your `PATH` (or specified via `OMP_WEB_OMP_BIN`) -- Node.js `>= 24` +- Node.js `>= 24`. The server runs on [Bun](https://bun.sh), which installs automatically as a dependency of the npm package (a Bun on your `PATH` is used if the bundled one is missing) The **Steer** action on a queued follow-up requires an omp runtime with the `promote_queued_message` RPC command (not available in omp 18.1.16). Older runtimes report an error and leave the message queued as a follow-up; ompweb does not send a duplicate steering message. @@ -449,7 +449,6 @@ Notes: | `OMP_WEB_DISABLE_AUTOUPDATE` | Set to `1` to disable update checks and in-app updates; restart after changing | `0` | | `OMP_WEB_NAME` | Name shown in browser tabs and installed-app names. `url`, `host` or `domain` (any case) uses the hostname the browser connected to, without port; localhost and IP addresses keep `omp web`. Any other value is used as-is. Restart after changing | `omp web` | | `OMP_WEB_OMP_BIN` | Path to `omp` binary if not on `PATH` | _auto-detected_ | -| `OMP_WEB_DEV_ORIGIN` | Additional allowed hostname for the development server (no scheme or port); ignored in production | _None_ | | `PI_CODING_AGENT_DIR` | Custom omp agent directory | `~/.omp/agent` | | `OMP_WEB_STT_ENDPOINT` | OpenAI-compatible transcription endpoint URL. Leave unset to transcribe with `OMP_WEB_STT_MODEL` through omp's own credentials | _None_ | | `OMP_WEB_STT_KEY` | Optional API key for the STT endpoint | _None_ | @@ -581,29 +580,16 @@ A dev server does not take over the local daemon: only the production web server writes the daemon's `host.json`, so "This machine" shows offline in dev and the daemon stays linked to your installed ompweb. -The development server allows loopback and RFC1918 private IPv4 origins -(`10.0.0.0/8`, `172.16.0.0/12`, and `192.168.0.0/16`). When using a tunnel -or reverse proxy with a custom hostname, set it without editing `next.config.ts`: - -```bash -OMP_WEB_DEV_ORIGIN=dev.example.com npm run dev -``` - -For a persistent setup, set the variable in your local environment or service -configuration and restart the dev server. This does not change the bind address -or enable authentication. Next.js hostname patterns cannot express IPv6 CIDRs; -a private IPv6 origin must be supplied explicitly (for example, `[fd00::1]`). +`npm run dev` runs the server with Bun hot reload. `npm run build` bundles the browser app into `dist/`, and `npm start` serves it on port 30177 (`npm run smoke` checks the result). `npm run dev:lan` binds the dev server to all interfaces. ### Checks ```bash npm run typecheck # Type check (TypeScript) npm run lint # ESLint -npm test # Run test suite +npm test # Run test suite (bun test) ``` -> **Note**: Do not run `npm run build` during local dev — it populates `.next/` and can break `npm run dev`. - ## License & Credits - Forked from [agegr/pi-web](https://github.com/agegr/pi-web) (MIT) and adapted for [can1357/oh-my-pi](https://github.com/can1357/oh-my-pi). diff --git a/README.zh-CN.md b/README.zh-CN.md index df75d178c..b6e2d717b 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -27,7 +27,7 @@ ## 环境要求 - 已安装 [omp](https://github.com/can1357/oh-my-pi) 且在 `PATH` 中(或通过 `OMP_WEB_OMP_BIN` 指定路径) -- Node.js `>= 24` +- Node.js `>= 24`。服务器运行在 [Bun](https://bun.sh) 上,Bun 会作为 npm 包的依赖自动安装(找不到随包安装的 Bun 时使用 `PATH` 中的 Bun) 将排队的后续消息转为 **Steer** 需要 omp 运行时支持 `promote_queued_message` RPC 命令(omp 18.1.16 尚不支持)。旧版运行时会返回错误,消息仍作为后续消息排队;ompweb 不会重复发送一条引导消息。 @@ -136,16 +136,16 @@ npm run dev 本地开发服务器运行在 [http://127.0.0.1:30178](http://127.0.0.1:30178)。 +`npm run dev` 以 Bun 热重载方式运行服务器。`npm run build` 将浏览器端应用打包到 `dist/`,`npm start` 在 30177 端口提供该产物(可用 `npm run smoke` 检查结果)。`npm run dev:lan` 会将开发服务器绑定到所有网络接口。 + ### 代码检查 ```bash npm run typecheck # TypeScript 类型检查 npm run lint # ESLint 检查 -npm test # 运行测试套件 +npm test # 运行测试套件 (bun test) ``` -> **注意**:本地开发期间请勿运行 `npm run build`,以免污染 `.next/` 导致开发服务器异常。 - ## 致谢与许可证 - 分叉自 [agegr/pi-web](https://github.com/agegr/pi-web)(MIT),针对 [can1357/oh-my-pi](https://github.com/can1357/oh-my-pi) 进行适配。 diff --git a/docs/plans/2026-10-30-bun-runtime.md b/docs/plans/2026-10-30-bun-runtime.md index 222331fd3..a4f99ce87 100644 --- a/docs/plans/2026-10-30-bun-runtime.md +++ b/docs/plans/2026-10-30-bun-runtime.md @@ -506,13 +506,12 @@ The two notification routes are async, but every query is a microsecond-scale lo - `verify-pr.yml` steps: after "Verify production build", add "Smoke test" (`npm run smoke`) and "Packed install smoke test" with `shell: bash` (the Step 3 commands with `$RUNNER_TEMP/ompweb-prefix`), both on ubuntu and windows. - Windows only: parse both `.ps1` scripts (`pwsh -NoProfile -Command "foreach ($f in 'scripts/windows/omp-web-service.ps1','scripts/windows/omp-web-tray.ps1') { $e=$null; [System.Management.Automation.Language.Parser]::ParseFile($f,[ref]$null,[ref]$e) | Out-Null; if ($e) { $e; exit 1 } }"`). - `publish.yml`: add `npm run smoke` after `npm run build`. -- [ ] **Step 5: Nix.** +- [ ] **Step 5: Nix.** (As built: nixpkgs' `bun` is 1.4.2, below the pinned 1.4.4, so Nix keeps the npm `@oven/bun--` binary that every install uses.) - `nix/package.nix`: delete the four `fetchurl` fonts, `localFontsPatch`, `patches` and `postPatch`. In the fileset, drop `instrumentation.ts`, `next.config.ts`, `next-env.d.ts` and `postcss.config.mjs`, and add `../server` and `../bunfig.toml`. - - Add `nativeBuildInputs = [ bun makeWrapper ]`. - - `preBuild`: `rm -f node_modules/.bin/bun node_modules/.bin/bunx` (the npm binary is not patched for Nix). - - `postInstall`: remove `$out/lib/node_modules/@kahme247/ompweb/node_modules/{bun,@oven}`, then `wrapProgram $out/bin/ompweb --prefix PATH : ${lib.makeBinPath [ bun ]}`. The resolver then falls to PATH Bun. + - `npmRebuildFlags = [ "--ignore-scripts" ]`: bun's postinstall execs the unpatched binary, so `bin/bun-runtime.js` resolves the `@oven` binary itself. + - Linux only: `autoPatchelfHook` with `dontAutoPatchelf = true`; `preBuild` runs `autoPatchelf -- node_modules/@oven`, removes `node_modules/.bin/bun{,x}` and puts the resolved binary's directory on `PATH` for the build. The shipped `@oven` binary stays in `node_modules` for the launcher. - `flake.nix` devShell: add `bun`. - - `npmDepsHash` changes with the lockfile and needs `nix build .#default` to report the new hash. If `nix` is unavailable, say so in the commit body; the controller refreshes it on a machine with nix. + - Unverified: written without nix. `npmDepsHash` changes with the lockfile and needs `nix build .#default` to report the new hash; the controller refreshes it on a machine with nix. - [ ] **Step 6: Verify** `npm run typecheck && npm run lint && npm test && npm run build && npm run smoke` → pass. - [ ] **Step 7: Commit** `ci: smoke-test the Bun server and the packed install`. From 904d41417215153f1b93253bde26ca3df015ae12 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 13:25:48 +0000 Subject: [PATCH 17/81] docs: correct Bun module-graph and fs.watch notes --- AGENTS.md | 7 ++++--- DESIGN.md | 2 +- lib/rpc-manager.ts | 2 +- lib/web-settings.ts | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 98faa07db..def0ade9f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -257,7 +257,7 @@ The table is static imports, not a runtime glob, so a future `bun build --compil - Dev (`npm run dev`) serves the SPA from the HTML import with HMR, bundled in memory, and re-runs itself once with `OMP_WEB_PUBLIC_*` set because `bunfig.toml` inlines them from the environment Bun started with. Dev pages carry `script-src blob:` in their CSP (HMR updates run as blob scripts); production does not. - `OMP_WEB_PACKAGE_DIR` (set by the launcher) is the root for `dist/`, `public/` and KaTeX; `process.cwd()` is the fallback for dev and tests. - The in-app update worker runs on Node (`OMP_WEB_NODE_BIN`, the launcher's `process.execPath`), not Bun. -- Bun's `fs.watch` drops an event that follows the previous one within ~2 ms, and drops `close` events, so the file channel (`openFileChannel`, `lib/event-stream-hub.ts`) re-stats the file ~50 ms after every event. +- Bun's `fs.watch` drops an event that follows the previous one within ~2 ms, so the file channel (`openFileChannel`, `lib/event-stream-hub.ts`) re-stats the file ~50 ms after every event. - `bun:sqlite` `.get()` returns `null` for no row (not `undefined`). - `readSttConfig` lives in server-only `lib/stt-jobs.ts`; the browser bundle must never import it. - Browser code must not import `next/*`: use `lib/dynamic.tsx` and `lib/navigation.ts`. @@ -387,8 +387,9 @@ The table is static imports, not a runtime glob, so a future `bun build --compil hello) and is then destroyed; no replacement spawns beside it. `restartAllRpcSessions` (omp update) restarts local sessions only. Remote-only transport members (`onResync`, `lost`) are optional on - `RpcTransport` and duck-typed: route bundles and instrumentation load - separate `hub.ts` module instances, so never `instanceof RemoteRpcTransport`. + `RpcTransport` and duck-typed: there is one module graph, but a `bun --hot` + re-evaluation can create a fresh `RemoteRpcTransport` class while live + objects keep the old one, so never `instanceof RemoteRpcTransport`. - **Live-link recycle rule.** A prompt, history-edit or MCP command that times out normally recycles the child. On a remote host it does so only if the host sent uplink traffic after the command was dispatched (`lastUplinkAt`, diff --git a/DESIGN.md b/DESIGN.md index ef58e720a..59862d50b 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -283,7 +283,7 @@ Releases are independent: ## Non-goals - Reimplementing OMP, its provider registry, or its credential database. -- Embedding Bun-only OMP SDK packages in the Node server. +- Embedding Bun-only OMP SDK packages in the omp-web server. - Turning a local agent workspace into an internet-facing multi-user service. - Unrestricted filesystem browsing or arbitrary browser-triggered host tools. - Automatic bulk synchronization from `agegr/pi-web`. diff --git a/lib/rpc-manager.ts b/lib/rpc-manager.ts index 160e6235e..d7b9ac955 100644 --- a/lib/rpc-manager.ts +++ b/lib/rpc-manager.ts @@ -510,7 +510,7 @@ export class AgentSessionWrapper { } /** A remote link that dropped this child's buffered output asks for a reconcile. - * Duck-typed: route bundles and instrumentation load separate hub modules. */ + * Duck-typed: a `bun --hot` re-evaluation can leave live transports on an older class. */ private watchResync(proc: RpcProcess): void { proc.transport?.onResync?.(() => { if (this.proc === proc) void this.reconcileAfterGap(); diff --git a/lib/web-settings.ts b/lib/web-settings.ts index f1ffa3cab..fae15a612 100644 --- a/lib/web-settings.ts +++ b/lib/web-settings.ts @@ -40,7 +40,7 @@ function settingsPath(): string { } declare global { - // Shared across module instances (instrumentation and route bundles). + // Survives `bun --hot` re-evaluation, which creates fresh module instances. var __ompWebSettingsCache: { path: string; settings: WebServerSettings } | undefined; } From c80bc3339d790f0784869259ecf5441a71deb419 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 13:33:17 +0000 Subject: [PATCH 18/81] chore: remove the Bun spike --- AGENTS.md | 4 +- app/globals.css | 2 +- eslint.config.mjs | 2 +- lib/dynamic.tsx | 2 +- lib/navigation.ts | 2 +- lib/syntax-highlight.ts | 21 ++---- spike/.gitignore | 1 - spike/Marker.tsx | 7 -- spike/REPORT.md | 96 ------------------------- spike/access-probe.mjs | 7 -- spike/build.ts | 28 -------- spike/bunfig.toml | 3 - spike/client.tsx | 16 ----- spike/compile.ts | 21 ------ spike/dev.ts | 15 ---- spike/env.sh | 6 -- spike/gen-routes.ts | 10 --- spike/import-all.ts | 19 ----- spike/index.html | 15 ---- spike/probe-dispatcher.ts | 31 -------- spike/probe-libs.ts | 41 ----------- spike/routes.gen.ts | 142 ------------------------------------- spike/server-full.ts | 6 -- spike/server.ts | 82 --------------------- spike/sharp-compiled.ts | 7 -- spike/sharp-direct.ts | 3 - spike/shim-plugin.ts | 11 --- spike/shims/dynamic.tsx | 19 ----- spike/shims/navigation.tsx | 27 ------- spike/sse-probe.ts | 42 ----------- spike/ws-probe.mjs | 64 ----------------- tsconfig.json | 3 +- 32 files changed, 14 insertions(+), 741 deletions(-) delete mode 100644 spike/.gitignore delete mode 100644 spike/Marker.tsx delete mode 100644 spike/REPORT.md delete mode 100644 spike/access-probe.mjs delete mode 100644 spike/build.ts delete mode 100644 spike/bunfig.toml delete mode 100644 spike/client.tsx delete mode 100644 spike/compile.ts delete mode 100644 spike/dev.ts delete mode 100644 spike/env.sh delete mode 100644 spike/gen-routes.ts delete mode 100644 spike/import-all.ts delete mode 100644 spike/index.html delete mode 100644 spike/probe-dispatcher.ts delete mode 100644 spike/probe-libs.ts delete mode 100644 spike/routes.gen.ts delete mode 100644 spike/server-full.ts delete mode 100644 spike/server.ts delete mode 100644 spike/sharp-compiled.ts delete mode 100644 spike/sharp-direct.ts delete mode 100644 spike/shim-plugin.ts delete mode 100644 spike/shims/dynamic.tsx delete mode 100644 spike/shims/navigation.tsx delete mode 100644 spike/sse-probe.ts delete mode 100644 spike/ws-probe.mjs diff --git a/AGENTS.md b/AGENTS.md index def0ade9f..0ae5e1e79 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -124,8 +124,8 @@ app/api/ worktrees/route.ts GET/POST/DELETE git worktrees lib/ - dynamic.tsx `dynamic()` over `React.lazy` + `Suspense` (replaces `next/dynamic`) - navigation.ts `useRouter`/`useSearchParams` over the History API (replaces `next/navigation`) + dynamic.tsx `dynamic()` over `React.lazy` + `Suspense` + navigation.ts `useRouter`/`useSearchParams` over the History API omp/ shared omp foundations (paths, CLI probe, RpcProcess) hosts/ hosts and the local daemon (see "Remote hosts"); none of the daemon-loaded files may import `@/` (the daemon runs on Node through `jiti`) host.ts `Host` interface, `HostStatus`, `isLinkUp` diff --git a/app/globals.css b/app/globals.css index 14c59aae2..db9c523ac 100644 --- a/app/globals.css +++ b/app/globals.css @@ -52,7 +52,7 @@ unicode-range: U+E000-F8FF, U+F0000-FFFFD; } /* CJK display serif for headings, bundled instead of fetched from Google - Fonts (whose extensionless /l/font?kit= URLs crashed next/font builds). + Fonts (whose extensionless /l/font?kit= URLs crashed the font build). A GB2312 + kana subset of Noto Serif SC, weights 600-700; unicode-range keeps Latin-only pages from downloading it. See fonts/NotoSerifSC-README.md. */ @font-face { diff --git a/eslint.config.mjs b/eslint.config.mjs index 77d971668..b4694ad2f 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -2,7 +2,7 @@ import reactHooks from "eslint-plugin-react-hooks"; import tseslint from "typescript-eslint"; export default tseslint.config( - { ignores: ["dist/**", "spike/**"] }, + { ignores: ["dist/**"] }, ...tseslint.configs.recommended, reactHooks.configs.flat.recommended, { diff --git a/lib/dynamic.tsx b/lib/dynamic.tsx index eb1846865..b4e9e0198 100644 --- a/lib/dynamic.tsx +++ b/lib/dynamic.tsx @@ -1,4 +1,4 @@ -// next/dynamic replacement: React.lazy + Suspense (client-only app, `ssr` is moot). +// dynamic(): React.lazy + Suspense (client-only app, `ssr` is moot). import { lazy, Suspense, type ComponentType } from "react"; type Loader

= () => Promise | { default: ComponentType

}>; diff --git a/lib/navigation.ts b/lib/navigation.ts index f16fcedb9..0faf922ac 100644 --- a/lib/navigation.ts +++ b/lib/navigation.ts @@ -1,4 +1,4 @@ -// The two next/navigation hooks AppShell uses (useRouter, useSearchParams), over the History API. +// useRouter and useSearchParams (the two hooks AppShell uses), over the History API. import { useMemo, useSyncExternalStore } from "react"; const EVENT = "omp:navigate"; diff --git a/lib/syntax-highlight.ts b/lib/syntax-highlight.ts index 8ec69e440..faf2b3e9b 100644 --- a/lib/syntax-highlight.ts +++ b/lib/syntax-highlight.ts @@ -4,20 +4,13 @@ // registered here; unknown fence languages fall back to plain text without // console noise (the highlighter catches the unknown-language error itself). // -// IMPORTANT: every grammar is registered EAGERLY via static imports. The old -// design lazy-loaded rarer grammars with `() => import(...)`; Turbopack split -// those ESM-only refractor chains into async chunks and intermittently failed -// with: -// -// Module .../languages/prism/c.js [app-client] (ecmascript) was instantiated -// because it was required from module .../lib/syntax-highlight.ts , -// but the module factory is not available. -// -// The async grammar chunk either raced with HMR or referenced a module factory -// in a chunk that was never evaluated, taking down the whole page. Static -// imports keep every grammar in the main client chunk, so no split/race -// exists. Grammars are small regex-based objects, so the eager cost is a few -// KB on top of what the core set already shipped. +// IMPORTANT: every grammar is registered EAGERLY via static imports. An earlier +// design lazy-loaded the rarer grammars with `() => import(...)`; under the +// previous Turbopack build those ESM-only refractor chains were split into async +// chunks that intermittently failed to instantiate ("module factory is not +// available"), taking down the whole page. Static imports keep every grammar in +// the entry chunk: nothing is split, so nothing can race. Grammars are small +// regex-based objects, so the eager cost is a few KB on top of the core set. import type { CSSProperties } from "react"; import createSyntaxElement from "react-syntax-highlighter/dist/esm/create-element"; import PrismLight from "react-syntax-highlighter/dist/esm/prism-light"; diff --git a/spike/.gitignore b/spike/.gitignore deleted file mode 100644 index 849ddff3b..000000000 --- a/spike/.gitignore +++ /dev/null @@ -1 +0,0 @@ -dist/ diff --git a/spike/Marker.tsx b/spike/Marker.tsx deleted file mode 100644 index ccb283651..000000000 --- a/spike/Marker.tsx +++ /dev/null @@ -1,7 +0,0 @@ -// HMR probe: a leaf component edited during the dev-server test (React Fast Refresh keeps state if it works). -import { useState } from "react"; - -export function Marker() { - const [count] = useState(() => Math.random()); - return ; -} diff --git a/spike/REPORT.md b/spike/REPORT.md deleted file mode 100644 index 83784265d..000000000 --- a/spike/REPORT.md +++ /dev/null @@ -1,96 +0,0 @@ -# Spike: omp-web on Bun instead of Next.js - -Base: `8e639641` (branch `spike/bun`). Bun 1.4.4, Node v26.8.1, Linux x64. -Every run used `spike/env.sh`: `HOME` and `PI_CODING_AGENT_DIR` point at `/tmp/bunspike/home` (one copied fixture session) and `OMP_WEB_OMP_BIN=/nonexistent/omp`, so no real `~/.omp` and no real `omp` was touched. -Extra packages (`bun-plugin-tailwind@0.1.2`) were installed into `/tmp/bunspike/deps`, not into `node_modules`. - -**Overall result: no hard blocker.** All 70 API route modules, the SSE stream, the daemon link, the password gate, `node:sqlite`, `sharp`, `web-push` and the React app run on Bun. The work is replacing what Next did implicitly: the router, the HTML shell, fonts, static serving, the launcher and service scripts. A compiled single binary also works, but `sharp`, the self-update path and the service scripts need separate work. - -## Results - -| # | Probe | Verdict | Evidence (command → deciding output) | Work implied | -|---|---|---|---|---| -| 1 | API routes under `Bun.serve` | PASS-WITH-WORK | `bun spike/import-all.ts` → `imported 70 route modules in 222ms; failed 0`. `bun spike/server.ts` (Bun native router, `[id]`→`:id`, `[...path]`→`*`, generated by `spike/gen-routes.ts`) + curl: `/api/sessions` 200, `/api/hosts` 200, `/api/files/?type=list` 200 with the fixture, `/api/files/etc` 403 `access_denied`, cross-origin POST 403. `bun spike/sse-probe.ts` with `SPIKE_HEARTBEAT=1` → `hello after 1ms`, `POST subscribe 200`, `live hosts frame after 0ms`, `heartbeat received, stream still open at 30.0s`, `POST subscribe after client abort 404 unknown_connection` (cleanup works). `next/server` imports **unchanged** under Bun (no shim). `@/` paths resolve natively from tsconfig. A Node daemon (`node bin/omp-web.js host`) linked to the Bun server over the existing NDJSON link: `/api/hosts` then reported `platform: linux, status: omp-missing`. | Router codegen + adapter (~80 lines in `spike/server.ts`): wrap each request in `NextRequest` (14 handlers read `.nextUrl`), pass `params` as a Promise. **`idleTimeout: 0` is mandatory**: Bun's default 10 s idle timeout cuts SSE and the daemon link between 30 s heartbeats. To drop the `next` package: codemod 60 files (`NextResponse.json` 381 sites → `Response.json`, `new NextResponse` 5, `.redirect` 3, `.next()` 4, `.nextUrl` 18, `NextRequest` 15, `.cookies` 2). | -| 2 | WebSocket link | PASS | `bun spike/ws-probe.mjs`, `node spike/ws-probe.mjs`, `node spike/ws-probe.mjs undici` against `/spike-link` (401 unless `Authorization: Bearer x`, checked before upgrade; `curl` upgrade without a token → `HTTP/1.1 401`). Bun client: no-token refused, header auth ok, text→string and binary→ArrayBuffer echoed, **1000 RTT mean 55 µs**, **20 MiB echo intact in 263 ms**. Node 26 global WebSocket: **accepts `{ headers }`** (it is undici's), RTT 169 µs, 20 MiB in 142 ms. Node + `undici.WebSocket`: RTT 97 µs, 20 MiB in 108 ms. | None for the current link: it is NDJSON over HTTP and already works (probe 1). A WebSocket link is possible later; the daemon needs no change on Node 26. Node 24 (the engines floor) was not checked. | -| 3 | `node:sqlite` | PASS | `bun spike/probe-libs.ts` → `3 node:sqlite store: OK {"vapidPublicLen":87,"devices":1,"history":["s1:test"]}` (real `lib/notification-store.ts` open/WAL/insert/query). Also OK inside a `--compile` binary. | None; no `bun:sqlite` port needed. | -| 4 | `sharp` | PASS (runtime) / FAIL (in binary) | `bun spike/probe-libs.ts` → `4 sharp thumbnail: OK {"inputBytes":6037,"webpBytes":1130,"riff":"RIFF"}` via `lib/media-cache.ts` `createThumbnail`. In a compiled binary (`spike/sharp-direct.ts`): `Could not load the "sharp" module using the linux-x64 runtime`; `createThumbnail` returns `null`. | None on the Bun runtime. A single binary must ship `sharp` + libvips beside it, or drop thumbnails. | -| 5 | `web-push` | PASS | `bun spike/probe-libs.ts` → `5 web-push signed request: OK {"method":"POST","auth":"vapid t=eyJ0","encoding":"aes128gcm","bodyBytes":120}`. Also OK in a compiled binary. | None. | -| 6 | undici dispatcher / proxy | PASS-WITH-WORK | `bun spike/probe-dispatcher.ts dispatcher` → `globalThis.fetch replaced by undici: false`; `bun -e 'import("undici")'` → `install: undefined`, `import.meta.resolve("undici")` → `undici` (Bun's built-in stub). So `lib/http-dispatcher.ts` is a silent no-op under Bun. Bun's own fetch honors the env: `[native] fetch http://spike.invalid/x with HTTP_PROXY set: 200 via-proxy`, `NO_PROXY bypass: 200`, `HTTPS_PROXY` dead proxy → `ECONNREFUSED`. | Delete `lib/http-dispatcher.ts`, the `undici` dependency and the `serverExternalPackages` entry. The configurable idle timeout (`DEFAULT_HTTP_IDLE_TIMEOUT_MS`) has no equivalent; use a per-call `AbortSignal.timeout` where it matters. | -| 7 | `instrumentation.node.ts` `register()` | PASS | Called unchanged after `Bun.serve` in `spike/server.ts` → `[omp-web] starting (agent-dir /tmp/bunspike/home/.omp/agent)`, the warm-up failure line (expected with the fake bin), and with `OMP_WEB_PORT` set it wrote `omp-web/host.json` for the local daemon. | Call it from the new entry point. | -| 8 | `proxy.ts` password gate | PASS | `spike/server.ts` runs `proxy(new NextRequest(req))` before every route and treats `x-middleware-next: 1` as "continue". With `OMP_WEB_PASSWORD_HASH` set: no cookie `/api/hosts` 401; `/?session=x` 307 → `/login?next=%2F%3Fsession%3Dx`; wrong password 401; right password 200 + `set-cookie: omp_web_session=…`; cookie `/api/hosts` 200; cookie `/login` 307 → `/`; `/api/hosts/link` ungated (route's own bearer check, 401). | Port the `config.matcher` exclusions to a regex (done in the spike). The response leaks an internal `x-middleware-set-cookie` header, so strip it or rewrite `proxy()` without `NextResponse`. The 10 MB middleware body cap disappears, which is better for host uploads but changes behavior. | -| 9 | Front end (bundle + Tailwind 4 + browser) | PASS-WITH-WORK | `SPIKE_SHIMS=1 bun spike/build.ts` → `build OK in ~1s`, 99 outputs. Entry JS 1.76 MB (525 KB gz). Entry CSS 1.58 MB (980 KB gz), of which 144 KB is the app's own CSS. Headless Chromium against `spike/server.ts`: **sidebar shell renders** (workspaces, hosts, Settings, New Session) in 14 ms. Clicking a session sets `?session=` and loads `/api/sessions/:id`, `/context`, `/state` and `/subagents`. Settings dialog tabs load through the `next/dynamic` shim. A host created with curl appeared in the UI 20 ms later through the SharedWorker SSE, with no reload. Only browser error: `POST /api/notifications/presence net::ERR_ABORTED` (the same request is also logged with 204). `bun spike/dev.ts` (HTML-import dev server, plugins from `spike/bunfig.toml`): shell in 59–106 ms; **React Fast Refresh** on a leaf component in 216 ms with state kept; `globals.css` hot swap in 239 ms; an entry-file edit reloads the whole page. Errors by category below. | See the "Front-end work" list. | -| 10 | Tests | PASS-WITH-WORK | 5 named files, `bun test `: link-protocol 18/18, hub 51/51 (jiti works). HostsConfig 0/4, or 4/4 with `--preload ./tests/setup-dom.mjs` (Bun evaluates the CJS Testing Library before the side-effect import). rpc-manager 152/155; with `--timeout 30000` (Bun's default per-test limit is 5 s, Node has none) 153/155. session-reader 42/48. `bun run `: **0/5**, `Cannot use test outside of the test runner` (Bun's `node:test` exists only inside `bun test`). Whole suite: Node `node --test` 1958 pass / 0 fail / 12 skip (158 s). `bun test` in one process: 1312 pass / 258 fail, because `setup-dom.mjs`'s `after()` deletes the DOM globals for every later file. One process per file: **1909 pass / 37 fail / 12 skip**. | The 37 failures are all in test infrastructure: 22 DOM-global differences (`window.matchMedia` stub, jsdom `Event` vs Bun `EventTarget`, missing `KeyboardEvent`); 7 builtin `fs` mocks (`t.mock.method(fs, …)` + `syncBuiltinESMExports` do not reach the module under test); 8 that assume `process.execPath` is Node or that `accessSync` returns `undefined`. That last check found **one real runtime bug**: `fs.accessSync` returns `null` on Bun, so `isExecutableFile()` in `bin/omp-web-systemd.js:81` and `bin/linux-tray.js:573` (`=== undefined`) rejects every file. Choose one: keep `node --test` for the runtime-neutral lib tests (they pass today), or move to `bun test` with a preload that never tears down and file-level isolation. | -| 11 | `bun build --compile` | PASS-WITH-WORK | `bun build --compile spike/server.ts` → `bundle 611 modules`, `compile` in 0.3 s, **112 MB** (the bun binary alone is 107 MB). Starting from `/tmp` crashes: `ENOENT … '/tmp/public/icon-192.png'`, because `app/api/manifest/route.ts:9` reads `public/` from `process.cwd()` at import time. Started from the package dir: `/api/hosts` 200, `/api/sessions` 200, `/api/manifest` 200, cold start to listening **122 ms**, RSS 46 MB. With the SPA embedded through an HTML import (`bun spike/compile.ts`, `spike/server-full.ts`, Tailwind + shims applied at compile time): **122 MB**, and the UI renders from the binary (`/` 200, chunks 200). `public/` files (`event-stream-worker.js`, `favicon.ico`) are not embedded (404). `sharp` cannot load (probe 4); `node:sqlite` and `web-push` work. | Embed `public/` and the manifest PNGs (`with { type: "file" }`); stop reading from `process.cwd()`/`__dirname` (`app/api/manifest/route.ts`, `lib/windows-service.ts:73-77`, `lib/self-update.ts:348/412/477`, `lib/npm-update.ts:40`). Ship `sharp` as a sidecar. Rewrite self-update for binaries (it is npm/bun-global based today). One binary per OS/arch (~115–125 MB each). | -| 12 | Windows (read-only) | PASS-WITH-WORK | Grep of the worktree, listed below. `bun bin/omp-web-systemd.js --help` and `bun bin/omp-web-tray.js --help` run on Bun (`process.version` is `v26.3.0`, so the Node version gate passes). | Estimated M for a Bun runtime, L for a compiled binary. | - -### Front end: errors by category (probe 9) - -1. **`next/dynamic`** (3 files, 9 call sites: `AppShell`, `CommandPaletteMount`, `SettingsConfig`). The build compiles, but Next's client internals fail at runtime. Fixed with a 19-line `React.lazy` + `Suspense` shim (`spike/shims/dynamic.tsx`); every Settings tab loaded. -2. **`next/navigation`** (1 file: `AppShell`, `useRouter().replace` ×8 + `useSearchParams`). Without a shim the page fails with `ReferenceError: process is not defined` (`process.env.__NEXT_CACHE_COMPONENTS`), then `invariant expected app router to be mounted`, and renders nothing. Fixed with a 27-line `history` + `useSyncExternalStore` shim (`spike/shims/navigation.tsx`). With both shims the `window.process` stub is no longer needed. -3. **`next/font/google`** (`app/layout.tsx`: Geist, JetBrains Mono, Noto Sans Mono, Source Serif 4). This only works inside Next. The SPA renders with `--font-geist`, `--font-jb-mono`, `--font-noto-mono` and `--font-source-serif` empty, so text falls back to default fonts. Fix: self-host the woff2 files with `@font-face` in `globals.css`. -4. **Server-only Next APIs** (`next/headers`, `next/script`, `Metadata`/`Viewport` in `app/layout.tsx` and `app/page.tsx`). Replaced by a static `spike/index.html`. Still to carry over: the theme, language and font-size inline scripts (only theme is ported), `SIDEBAR_HISTORY_BRIDGE_SCRIPT` before React, the install name in `` (`getInstallName(headers)`, which the server must inject into the HTML; the spike hard-codes "omp web"), and the `/login` page. -5. **CSS.** Tailwind 4 through `bun-plugin-tailwind` compiles `app/globals.css` (4634 lines; `@source`, `@theme`, `@font-face`) without errors, and the computed styles are right. Two build errors were fixed by config: `<link rel="manifest" href="/api/manifest">` gives `Could not resolve` (the bundler tries to bundle it; add the link outside the bundler), and `Multiple files share the same output path` (KaTeX CSS) is fixed by `naming: "[name]-[hash]"`. Still open: the KaTeX CSS from `lib/markdown.ts`'s dynamic import is merged into the entry CSS, with all 60 KaTeX fonts inlined as base64 (ttf/woff/woff2), and is emitted twice. -6. **Other.** `NEXT_PUBLIC_*` (3 vars) needs `define`. 6 duplicate-key warnings in `lib/i18n/locales/{en,ja,zh-CN}.json` (`agentsConfig.scopeUser/scopeProject`) are an existing data bug that Bun reports. `public/event-stream-worker.js` needs its content-hash URL (done today in `next.config.ts`). `@types/bun` is missing, so the LSP flags `Bun`/`import.meta.dir`. - -### Windows and service scripts: every `node` / `.next` assumption (probe 12) - -- `scripts/windows/omp-web-service.ps1`: `:33-37` falls back to dev mode when `.next` is missing; `:75-87` `Find-NodeExecutable` (node.exe on PATH, Program Files, `~/.bun/bin/node.exe`); `:128-129` `"$NodeExe" bin\omp-web.js`; `:131-132` dev mode runs `node_modules\next\dist\bin\next dev`. -- `scripts/windows/omp-web-tray.ps1`: the same four spots at `:79-84`, `:187-204`, `:246-247` and `:249-250`. -- `scripts/windows/omp-web-host.ps1`: `:16` `bin\omp-web.js`; `:30-42` `Find-NodeExecutable`; `:49` `"$NodeExe" omp-web.js host`. -- `lib/windows-service.ts`: `:661` kills orphaned servers on the port only when the process name is `like "node*"` (a `bun.exe` or compiled binary would be left running); `:73-77` finds the repo root from `__dirname`/`process.cwd()` and `package.json`; `:350` comment about `node bin/omp-web.js`. -- `bin/omp-web-tray.js`: `:1` `#!/usr/bin/env node`; `:5` `exitIfUnsupportedNode()` (passes on Bun); `:17` usage text. -- `bin/omp-web-systemd.js`: `:1` shebang; `:5` version gate; `:204` looks for `ompweb` next to `process.execPath` (works for `bun add -g`, since both live in `~/.bun/bin`); `:239` adds `dirname(process.execPath)` to the unit's PATH; `:81` `accessSync(...) === undefined` (**broken on Bun**, see probe 10). -- Not in the list but on the same path: `bin/omp-web.js:157-164,255,517,525,600` spawns `next start` from `.next` through `process.execPath`; `bin/linux-tray.js:573` has the same `accessSync` bug. -- `scripts/windows/install-tray.ps1`, `uninstall-tray.ps1` and `launch-tray.vbs` have no `node`/`.next` reference. - -**Estimate.** Bun runtime: replace the three `Find-NodeExecutable` copies with a bun lookup, drop the `.next` checks and `next dev`, widen the process-name filter, and point everything at the new launcher. About 2–3 days plus a Windows test pass. Compiled binary: every script becomes "run `omp-web.exe`", the repo-root logic and self-update are replaced, and the binary is signed. About 1–2 weeks. - -## Migration estimate - -S = up to 1 day, M = 2–5 days, L = 1–2+ weeks. - -| Work item | Size | -|---|---| -| Server entry: route codegen (70 routes), `NextRequest`/params adapter, gate, `idleTimeout: 0`, static serving with cache headers, compression and SPA fallback, `register()` at boot, dev server that mounts the API in-process | M | -| Remove `next/server`: codemod across 60 files + rewrite `proxy.ts` (or keep `next` only for `next/server` as an interim step: S) | M | -| HTML shell + client entry: port `layout.tsx` scripts and metadata, server-injected title, `/login` route, manifest link, `NEXT_PUBLIC_*` defines, worker hash | M | -| Replace `next/dynamic` (3 files) and `next/navigation` (1 file) with the spike shims or plain `React.lazy`/history code | S | -| Self-host 4 fonts (`next/font` replacement) | S | -| Build config: `bun-plugin-tailwind` dev dependency, chunk naming, KaTeX CSS out of the entry chunk | S | -| Launcher `bin/omp-web.js`: spawn the Bun server instead of `next start`, the restart protocol, `.next` checks, package.json scripts/engines/bin | M | -| Bun incompatibilities found: `accessSync === undefined` (2 sites), delete `lib/http-dispatcher.ts` + `undici` | S | -| Tests: keep `node --test`, or move to `bun test` (preload without teardown, per-file isolation, fix 37 test-infra failures) | S (keep) / M (move) | -| Windows + systemd + tray scripts for a Bun runtime | M | -| Types/lint/docs: `@types/bun`, drop `eslint-config-next` and the tsconfig `next` plugin, README/CHANGELOG | S | -| *Optional:* single-binary distribution: embed `public/`, `sharp` sidecar, binary self-update, per-platform release pipeline, service scripts | L | - -Total: about **3–4 engineer-weeks** for Bun runtime + Bun bundler. Add **2–3 weeks** for compiled single-binary distribution. - -## Blocking risks - -No hard blocker found. Ranked risks: - -1. **Distribution.** Today users need only Node. On Bun they need Bun installed (`bun add -g`), or we ship 115–125 MB binaries per platform. The binary path breaks `sharp` (the native addon cannot be embedded), npm-based self-update, and every service script. -2. **Silent behavior loss when Next goes away.** - - Bun's 10 s default `idleTimeout` kills SSE and the daemon link unless it is disabled. - - `undici` resolves to a Bun stub, so the dispatcher is a quiet no-op. - - `fs.accessSync` returns `null`, which breaks the systemd/tray executable checks. - - Static asset caching/compression, the middleware matcher and body cap, `x-middleware-*` headers, fonts and the worker URL hash must all be rebuilt by hand. - - Each of these failed silently, not with an error. -3. **Windows is unverified.** Nothing ran on Windows. The PowerShell supervisors and `windows-service.ts` hard-code `node.exe`, `.next` and `next dev`, and Bun on Windows under Task Scheduler and the tray was not exercised. -4. **Tests.** `bun run` cannot execute `node:test` files at all. `bun test` needs infrastructure changes (37 failures, 258 when run in one process). Two runtimes (Node for tests, Bun for the app) remain an option. - -## Could not check - -- Windows and macOS: no runs, scripts only read. -- Node 24 (the engines floor): whether its built-in `WebSocket` accepts `{ headers }`. -- Real `omp` sessions: the binary was faked, so no live RPC streaming, prompts or tool events went through the Bun server. Only the read paths and the fixture session were exercised. -- About 20 of the 70 routes were hit (UI load + curl). The rest were only imported. -- An HTTPS proxy doing `CONNECT`: only a dead proxy (`ECONNREFUSED`) showed the env is honored. -- Push delivery end to end, the service worker (`sw.js`), the PWA install, and the login page UI in the SPA. -- Whether the `POST /api/notifications/presence net::ERR_ABORTED` browser error also happens under Next. -- Load, memory over time, and build/bundle size compared with `next build`. - -## Files - -`spike/server.ts` (Bun server + gate + WS probe endpoint), `gen-routes.ts` → `routes.gen.ts`, `import-all.ts`, `sse-probe.ts`, `ws-probe.mjs`, `probe-libs.ts`, `probe-dispatcher.ts`, `client.tsx` + `Marker.tsx` + `index.html` (SPA entry), `shims/` + `shim-plugin.ts`, `build.ts`, `dev.ts` + `bunfig.toml` (HTML-import dev server), `server-full.ts` + `compile.ts` (binary with embedded UI), `sharp-compiled.ts` / `sharp-direct.ts` (sharp in binary), `access-probe.mjs` (`node` → `accessSync(X_OK) returned undefined`, `bun` → `returned null`), `env.sh` (isolated env). Build output `spike/dist/` is git-ignored. diff --git a/spike/access-probe.mjs b/spike/access-probe.mjs deleted file mode 100644 index 838e79292..000000000 --- a/spike/access-probe.mjs +++ /dev/null @@ -1,7 +0,0 @@ -import fs from "node:fs"; -const f = "/tmp/bunspike/xprobe.sh"; -fs.rmSync(f, { force: true }); -fs.writeFileSync(f, "#!/bin/sh\n", { mode: 0o755 }); -let access; -try { access = fs.accessSync(f, fs.constants.X_OK); } catch (e) { access = e.code; } -console.log(`${typeof Bun !== "undefined" ? "bun" : "node"}: mode=${(fs.statSync(f).mode & 0o777).toString(8)} accessSync(X_OK) returned ${JSON.stringify(access)} (=== undefined: ${access === undefined})`); diff --git a/spike/build.ts b/spike/build.ts deleted file mode 100644 index 93c4a81d4..000000000 --- a/spike/build.ts +++ /dev/null @@ -1,28 +0,0 @@ -// Probe 9: bundle the SPA with Bun's bundler + Tailwind 4 plugin. SPIKE_SHIMS=1 aliases next/* to spike/shims. -import tailwind from "/tmp/bunspike/deps/node_modules/bun-plugin-tailwind/index.mjs"; -import path from "path"; -import shimPlugin from "./shim-plugin"; - -const shims = process.env.SPIKE_SHIMS === "1"; -const t0 = performance.now(); -const result = await Bun.build({ - entrypoints: [path.join(import.meta.dir, "index.html")], - outdir: path.join(import.meta.dir, "dist"), - minify: true, - splitting: true, - naming: { chunk: "[name]-[hash].[ext]", asset: "[name]-[hash].[ext]" }, - sourcemap: "none", - throw: false, - plugins: [tailwind, ...(shims ? [shimPlugin] : [])], - define: { - "process.env.NODE_ENV": JSON.stringify("production"), - "process.env.NEXT_PUBLIC_APP_VERSION": JSON.stringify("spike"), - "process.env.NEXT_PUBLIC_OMP_WEB_VERSION": JSON.stringify("spike"), - "process.env.NEXT_PUBLIC_EVENT_STREAM_WORKER_VERSION": JSON.stringify("spike"), - }, -}); -console.log(`build ${result.success ? "OK" : "FAILED"} in ${(performance.now() - t0).toFixed(0)}ms, ${result.logs.length} log entries`); -for (const log of result.logs) console.log(` [${log.level}] ${log.message}${log.position ? ` @ ${log.position.file}:${log.position.line}` : ""}`); -const byKind: Record<string, number> = {}; -for (const o of result.outputs) byKind[o.kind + ":" + path.extname(o.path)] = (byKind[o.kind + ":" + path.extname(o.path)] ?? 0) + o.size; -console.log("outputs:", result.outputs.length, Object.fromEntries(Object.entries(byKind).map(([k, v]) => [k, `${(v / 1024).toFixed(0)} KiB`]))); diff --git a/spike/bunfig.toml b/spike/bunfig.toml deleted file mode 100644 index b8a5eb3a5..000000000 --- a/spike/bunfig.toml +++ /dev/null @@ -1,3 +0,0 @@ -[serve.static] -plugins = ["/tmp/bunspike/deps/node_modules/bun-plugin-tailwind/index.mjs", "./shim-plugin.ts"] -env = "NEXT_PUBLIC_*" diff --git a/spike/client.tsx b/spike/client.tsx deleted file mode 100644 index 0efcc83c5..000000000 --- a/spike/client.tsx +++ /dev/null @@ -1,16 +0,0 @@ -// Spike SPA entry: renders the existing AppShell without Next. -import { Suspense } from "react"; -import { createRoot } from "react-dom/client"; -import { AppShell } from "@/components/AppShell"; -import { Marker } from "./Marker"; - -function Root() { - return ( - <Suspense fallback={<div role="status">Loading omp web</div>}> - <Marker /> - <AppShell appName="omp web" /> - </Suspense> - ); -} - -createRoot(document.getElementById("root")!).render(<Root />); diff --git a/spike/compile.ts b/spike/compile.ts deleted file mode 100644 index f71ffdaf8..000000000 --- a/spike/compile.ts +++ /dev/null @@ -1,21 +0,0 @@ -// Probe 11b: one binary with API + embedded SPA (Tailwind + next/* shims applied at compile time). -import tailwind from "/tmp/bunspike/deps/node_modules/bun-plugin-tailwind/index.mjs"; -import path from "path"; -import shimPlugin from "./shim-plugin"; - -const t0 = performance.now(); -const result = await Bun.build({ - entrypoints: [path.join(import.meta.dir, "server-full.ts")], - compile: { outfile: "/tmp/bunspike/omp-web-full" }, - target: "bun", - minify: true, - throw: false, - plugins: [tailwind, shimPlugin], - define: { - "process.env.NEXT_PUBLIC_APP_VERSION": JSON.stringify("spike"), - "process.env.NEXT_PUBLIC_OMP_WEB_VERSION": JSON.stringify("spike"), - "process.env.NEXT_PUBLIC_EVENT_STREAM_WORKER_VERSION": JSON.stringify("spike"), - }, -}); -console.log(`compile ${result.success ? "OK" : "FAILED"} in ${(performance.now() - t0).toFixed(0)}ms`); -for (const log of result.logs) if (!log.message.startsWith("Duplicate key")) console.log(` [${log.level}] ${log.message}`); diff --git a/spike/dev.ts b/spike/dev.ts deleted file mode 100644 index c385ac58e..000000000 --- a/spike/dev.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Probe 9b: Bun's HTML-import dev server (on-demand bundling + HMR) for the SPA. API calls proxy to the spike server. -import index from "./index.html"; - -const api = `http://127.0.0.1:${process.env.SPIKE_PORT ?? 30311}`; -const server = Bun.serve({ - port: Number(process.env.SPIKE_DEV_PORT ?? 30313), - hostname: "127.0.0.1", - development: { hmr: true, console: true }, - routes: { "/": index }, - fetch: (req) => { - const url = new URL(req.url); - return fetch(api + url.pathname + url.search, { method: req.method, headers: req.headers, body: req.body, redirect: "manual" }); - }, -}); -console.log(`spike dev server on ${server.url}`); diff --git a/spike/env.sh b/spike/env.sh deleted file mode 100644 index 3caeaa62d..000000000 --- a/spike/env.sh +++ /dev/null @@ -1,6 +0,0 @@ -# Isolated env for every spike run: never touch the real ~/.omp or spawn the real omp. -export HOME=/tmp/bunspike/home -export PI_CODING_AGENT_DIR=/tmp/bunspike/home/.omp/agent -export OMP_WEB_OMP_BIN=/nonexistent/omp -unset OMP_WEB_PORT OMP_WEB_PASSWORD OMP_WEB_PASSWORD_HASH -export BUN=/root/.bun/bin/bun diff --git a/spike/gen-routes.ts b/spike/gen-routes.ts deleted file mode 100644 index 4c6686cb7..000000000 --- a/spike/gen-routes.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Generates spike/routes.gen.ts: static imports of every route module so -// `bun build --compile` can bundle them (a runtime glob import cannot be). -import { Glob } from "bun"; -import path from "path"; -const root = path.resolve(import.meta.dir, ".."); -const files = [...new Glob("app/api/**/route.ts").scanSync(root)].sort(); -const lines = files.map((f, i) => `import * as r${i} from "../${f.replace(/\.ts$/, "")}";`); -const entries = files.map((f, i) => ` ${JSON.stringify(path.dirname(f).slice("app/".length))}: r${i},`); -await Bun.write(path.join(import.meta.dir, "routes.gen.ts"), `${lines.join("\n")}\nexport default {\n${entries.join("\n")}\n};\n`); -console.log(`wrote ${files.length} routes`); diff --git a/spike/import-all.ts b/spike/import-all.ts deleted file mode 100644 index 757e2164a..000000000 --- a/spike/import-all.ts +++ /dev/null @@ -1,19 +0,0 @@ -// Probe 1a: does every app/api/**/route.ts module import under Bun? -import { Glob } from "bun"; -import path from "path"; -const root = path.resolve(import.meta.dir, ".."); -let ok = 0; -const failed: string[] = []; -const t0 = performance.now(); -for (const file of new Glob("app/api/**/route.ts").scanSync(root)) { - try { - const mod = await import(path.join(root, file)); - if (!["GET", "POST", "PUT", "PATCH", "DELETE"].some((m) => typeof mod[m] === "function")) throw new Error("no handlers"); - ok++; - } catch (e) { - failed.push(`${file}: ${e instanceof Error ? e.message : e}`); - } -} -console.log(`imported ${ok} route modules in ${(performance.now() - t0).toFixed(0)}ms; failed ${failed.length}`); -for (const f of failed) console.log(" FAIL", f); -process.exit(0); diff --git a/spike/index.html b/spike/index.html deleted file mode 100644 index a80af369d..000000000 --- a/spike/index.html +++ /dev/null @@ -1,15 +0,0 @@ -<!doctype html> -<html lang="en" translate="no" class="notranslate"> - <head> - <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content" /> - <meta name="google" content="notranslate" /> - <title>omp web - - - - -

- - - diff --git a/spike/probe-dispatcher.ts b/spike/probe-dispatcher.ts deleted file mode 100644 index e017621da..000000000 --- a/spike/probe-dispatcher.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Probe 6: lib/http-dispatcher.ts (undici EnvHttpProxyAgent + undici.install) under Bun, -// and whether Bun's own fetch honors HTTP_PROXY. Mode = argv[2]: "dispatcher" | "native". -const mode = process.argv[2] ?? "dispatcher"; -const upstream = `http://127.0.0.1:${process.env.SPIKE_PORT ?? 30311}/spike-upstream`; -const proxyHits: string[] = []; -// Minimal forward proxy: answers absolute-form requests itself and records them. -const proxy = Bun.serve({ port: 0, hostname: "127.0.0.1", fetch: (req) => { proxyHits.push(req.url); return new Response(`via-proxy ${req.url}`); } }); -const bunFetch = globalThis.fetch; -if (mode === "dispatcher") { - const { configureHttpDispatcher } = await import("../lib/http-dispatcher"); - configureHttpDispatcher(); - console.log(`globalThis.fetch replaced by undici: ${globalThis.fetch !== bunFetch}`); -} -const direct = await fetch(upstream); -console.log(`[${mode}] direct fetch ${upstream}: ${direct.status} ${await direct.text()}`); -process.env.HTTP_PROXY = `http://127.0.0.1:${proxy.port}`; -process.env.NO_PROXY = ""; -if (mode === "dispatcher") { - // EnvHttpProxyAgent reads env at construction: rebuild it with the proxy env set. - (globalThis as { __ompWebHttpDispatcherConfigured?: boolean }).__ompWebHttpDispatcherConfigured = false; - const { configureHttpDispatcher } = await import("../lib/http-dispatcher"); - configureHttpDispatcher(); -} -try { - const viaEnv = await fetch("http://spike.invalid/x"); - console.log(`[${mode}] fetch http://spike.invalid/x with HTTP_PROXY set: ${viaEnv.status} ${await viaEnv.text()}`); -} catch (e) { - console.log(`[${mode}] fetch with HTTP_PROXY set: FAIL ${e instanceof Error ? e.message : e}`); -} -console.log(`[${mode}] proxy saw: ${JSON.stringify(proxyHits)}`); -proxy.stop(true); diff --git a/spike/probe-libs.ts b/spike/probe-libs.ts deleted file mode 100644 index 284a26d40..000000000 --- a/spike/probe-libs.ts +++ /dev/null @@ -1,41 +0,0 @@ -// Probes 3-5: node:sqlite notification store, sharp thumbnails, web-push signing — under Bun. -import { createECDH, randomBytes } from "node:crypto"; -import { readFileSync } from "node:fs"; -import webpush from "web-push"; -import { getVapidKeys, listHistory, recordHistory, saveDevice, listDevices } from "../lib/notification-store"; -import { createThumbnail } from "../lib/media-cache"; - -const step = async (name: string, fn: () => unknown) => { - try { - console.log(`${name}: OK ${JSON.stringify(await fn())}`); - } catch (e) { - console.log(`${name}: FAIL ${e instanceof Error ? `${e.name}: ${e.message}` : e}`); - } -}; - -await step("3 node:sqlite store", () => { - const vapid = getVapidKeys(webpush.generateVAPIDKeys); - saveDevice("spike-device-1", { enabled: true } as never); - recordHistory({ type: "test", sessionId: "s1", sessionName: "spike" }); - return { vapidPublicLen: vapid.publicKey.length, devices: listDevices().length, history: listHistory().map((h) => h.id) }; -}); - -await step("4 sharp thumbnail", async () => { - const png = readFileSync(new URL("../public/icon-192.png", import.meta.url)); - const thumb = await createThumbnail("spikehash0000000000000000000000000000000000000000000000000000000", png); - return { inputBytes: png.length, webpBytes: thumb?.length ?? null, riff: thumb?.subarray(0, 4).toString() ?? null }; -}); - -await step("5 web-push signed request", () => { - const keys = webpush.generateVAPIDKeys(); - const ecdh = createECDH("prime256v1"); - ecdh.generateKeys(); - const subscription = { - endpoint: "https://push.example.invalid/send/abc", - keys: { p256dh: ecdh.getPublicKey().toString("base64url"), auth: randomBytes(16).toString("base64url") }, - }; - const req = webpush.generateRequestDetails(subscription, JSON.stringify({ title: "spike" }), { - vapidDetails: { subject: "mailto:spike@example.invalid", publicKey: keys.publicKey, privateKey: keys.privateKey }, - }); - return { method: req.method, auth: String(req.headers.Authorization).slice(0, 12), encoding: req.headers["Content-Encoding"], bodyBytes: (req.body as Buffer).length }; -}); diff --git a/spike/routes.gen.ts b/spike/routes.gen.ts deleted file mode 100644 index 65e5a2205..000000000 --- a/spike/routes.gen.ts +++ /dev/null @@ -1,142 +0,0 @@ -import * as r0 from "../app/api/agent/[id]/bash-output/route"; -import * as r1 from "../app/api/agent/[id]/route"; -import * as r2 from "../app/api/agent/new/route"; -import * as r3 from "../app/api/agents/route"; -import * as r4 from "../app/api/app-update/notes/route"; -import * as r5 from "../app/api/app-update/route"; -import * as r6 from "../app/api/auth/accounts/[provider]/route"; -import * as r7 from "../app/api/auth/all-providers/route"; -import * as r8 from "../app/api/auth/api-key/[provider]/route"; -import * as r9 from "../app/api/auth/login/[provider]/route"; -import * as r10 from "../app/api/auth/providers/route"; -import * as r11 from "../app/api/cwd/browse/route"; -import * as r12 from "../app/api/cwd/validate/route"; -import * as r13 from "../app/api/default-cwd/route"; -import * as r14 from "../app/api/events/route"; -import * as r15 from "../app/api/file-index/route"; -import * as r16 from "../app/api/files/[...path]/route"; -import * as r17 from "../app/api/git/diff/route"; -import * as r18 from "../app/api/git/status/route"; -import * as r19 from "../app/api/github-repo/route"; -import * as r20 from "../app/api/home/route"; -import * as r21 from "../app/api/hosts/link/blob/[reqId]/route"; -import * as r22 from "../app/api/hosts/link/route"; -import * as r23 from "../app/api/hosts/route"; -import * as r24 from "../app/api/manifest/route"; -import * as r25 from "../app/api/mcp/route"; -import * as r26 from "../app/api/media/[hash]/route"; -import * as r27 from "../app/api/model-roles/route"; -import * as r28 from "../app/api/models-config/catalog/route"; -import * as r29 from "../app/api/models-config/route"; -import * as r30 from "../app/api/models-config/test/route"; -import * as r31 from "../app/api/models/route"; -import * as r32 from "../app/api/notifications/devices/route"; -import * as r33 from "../app/api/notifications/history/route"; -import * as r34 from "../app/api/notifications/presence/route"; -import * as r35 from "../app/api/notifications/test/route"; -import * as r36 from "../app/api/omp-settings/route"; -import * as r37 from "../app/api/omp-update/route"; -import * as r38 from "../app/api/omp-version/route"; -import * as r39 from "../app/api/plugins/route"; -import * as r40 from "../app/api/projects/clone/route"; -import * as r41 from "../app/api/projects/route"; -import * as r42 from "../app/api/provider-usage/route"; -import * as r43 from "../app/api/providers/enable/route"; -import * as r44 from "../app/api/sessions/[id]/archive/route"; -import * as r45 from "../app/api/sessions/[id]/auto-name/route"; -import * as r46 from "../app/api/sessions/[id]/context/route"; -import * as r47 from "../app/api/sessions/[id]/entries/[entryId]/thinking/route"; -import * as r48 from "../app/api/sessions/[id]/export/route"; -import * as r49 from "../app/api/sessions/[id]/route"; -import * as r50 from "../app/api/sessions/[id]/state/route"; -import * as r51 from "../app/api/sessions/[id]/subagents/[subagentId]/route"; -import * as r52 from "../app/api/sessions/[id]/subagents/route"; -import * as r53 from "../app/api/sessions/archive/route"; -import * as r54 from "../app/api/sessions/import/route"; -import * as r55 from "../app/api/sessions/route"; -import * as r56 from "../app/api/sessions/search/route"; -import * as r57 from "../app/api/skills/check/route"; -import * as r58 from "../app/api/skills/install/route"; -import * as r59 from "../app/api/skills/route"; -import * as r60 from "../app/api/skills/search/route"; -import * as r61 from "../app/api/skills/update/route"; -import * as r62 from "../app/api/stt/[jobId]/audio/route"; -import * as r63 from "../app/api/stt/[jobId]/route"; -import * as r64 from "../app/api/stt/route"; -import * as r65 from "../app/api/usage/route"; -import * as r66 from "../app/api/web-auth/session/route"; -import * as r67 from "../app/api/web-settings/route"; -import * as r68 from "../app/api/windows-service/route"; -import * as r69 from "../app/api/worktrees/route"; -export default { - "api/agent/[id]/bash-output": r0, - "api/agent/[id]": r1, - "api/agent/new": r2, - "api/agents": r3, - "api/app-update/notes": r4, - "api/app-update": r5, - "api/auth/accounts/[provider]": r6, - "api/auth/all-providers": r7, - "api/auth/api-key/[provider]": r8, - "api/auth/login/[provider]": r9, - "api/auth/providers": r10, - "api/cwd/browse": r11, - "api/cwd/validate": r12, - "api/default-cwd": r13, - "api/events": r14, - "api/file-index": r15, - "api/files/[...path]": r16, - "api/git/diff": r17, - "api/git/status": r18, - "api/github-repo": r19, - "api/home": r20, - "api/hosts/link/blob/[reqId]": r21, - "api/hosts/link": r22, - "api/hosts": r23, - "api/manifest": r24, - "api/mcp": r25, - "api/media/[hash]": r26, - "api/model-roles": r27, - "api/models-config/catalog": r28, - "api/models-config": r29, - "api/models-config/test": r30, - "api/models": r31, - "api/notifications/devices": r32, - "api/notifications/history": r33, - "api/notifications/presence": r34, - "api/notifications/test": r35, - "api/omp-settings": r36, - "api/omp-update": r37, - "api/omp-version": r38, - "api/plugins": r39, - "api/projects/clone": r40, - "api/projects": r41, - "api/provider-usage": r42, - "api/providers/enable": r43, - "api/sessions/[id]/archive": r44, - "api/sessions/[id]/auto-name": r45, - "api/sessions/[id]/context": r46, - "api/sessions/[id]/entries/[entryId]/thinking": r47, - "api/sessions/[id]/export": r48, - "api/sessions/[id]": r49, - "api/sessions/[id]/state": r50, - "api/sessions/[id]/subagents/[subagentId]": r51, - "api/sessions/[id]/subagents": r52, - "api/sessions/archive": r53, - "api/sessions/import": r54, - "api/sessions": r55, - "api/sessions/search": r56, - "api/skills/check": r57, - "api/skills/install": r58, - "api/skills": r59, - "api/skills/search": r60, - "api/skills/update": r61, - "api/stt/[jobId]/audio": r62, - "api/stt/[jobId]": r63, - "api/stt": r64, - "api/usage": r65, - "api/web-auth/session": r66, - "api/web-settings": r67, - "api/windows-service": r68, - "api/worktrees": r69, -}; diff --git a/spike/server-full.ts b/spike/server-full.ts deleted file mode 100644 index 93181d8d3..000000000 --- a/spike/server-full.ts +++ /dev/null @@ -1,6 +0,0 @@ -// Probe 11b: same server, plus the SPA as a Bun HTML import so `bun build --compile` embeds the UI. -import index from "./index.html"; - -(globalThis as { __spikeIndex?: Bun.HTMLBundle }).__spikeIndex = index; -// Dynamic: server.ts reads the global at top level, so it must evaluate after the assignment above. -await import("./server"); diff --git a/spike/server.ts b/spike/server.ts deleted file mode 100644 index 7bac3120f..000000000 --- a/spike/server.ts +++ /dev/null @@ -1,82 +0,0 @@ -// Spike: omp-web API on Bun.serve. Maps app/api/**/route.ts onto Bun's native -// router (`[id]` → `:id`, `[...path]` → `*`), runs proxy.ts in front, serves a -// bearer-gated WebSocket on /spike-link. Throwaway. -import path from "path"; -import { NextRequest } from "next/server"; -import { proxy } from "../proxy"; -import { register } from "../instrumentation.node"; -import routeModules from "./routes.gen"; - -const METHODS = ["GET", "POST", "PUT", "PATCH", "DELETE"] as const; -// proxy.ts `config.matcher` exclusions, minus the Next asset paths that no longer exist. -const UNGATED = /^\/(?:favicon\.ico|icon\.svg|icon\.png|icon-192\.png|badge-96\.png|sw\.js|api\/hosts\/link(?:\/|$))/; - -type Handler = (req: Request, ctx: { params: Promise> }) => Response | Promise; - -async function gate(req: Request): Promise { - if (UNGATED.test(new URL(req.url).pathname)) return null; - const res = await proxy(new NextRequest(req)); - return res.headers.get("x-middleware-next") === "1" ? null : res; -} - -const routes: Record Promise>> = {}; -for (const [dir, mod] of Object.entries(routeModules)) { - const segs = dir.split("/"); - const restIdx = segs.findIndex((s) => s.startsWith("[...")); - const pattern = "/" + segs.map((s) => (s.startsWith("[...") ? "*" : s.replace(/^\[(\w+)\]$/, ":$1"))).join("/"); - const restName = restIdx >= 0 ? segs[restIdx].slice(4, -1) : null; - const byMethod: Record Promise> = {}; - for (const m of METHODS) { - const fn = (mod as Record)[m] as Handler | undefined; - if (!fn) continue; - byMethod[m] = async (req) => { - const blocked = await gate(req); - if (blocked) return blocked; - const params: Record = { ...(req.params as Record) }; - if (restName) { - const parts = new URL(req.url).pathname.split("/").slice(restIdx + 1); - params[restName] = parts.filter(Boolean).map(decodeURIComponent); - } - // Route handlers type the request as NextRequest and read .nextUrl (14 sites). - return fn(new NextRequest(req), { params: Promise.resolve(params) }); - }; - } - routes[pattern] = byMethod; -} - -const port = Number(process.env.SPIKE_PORT ?? 30311); -const server = Bun.serve({ - port, - hostname: "127.0.0.1", - idleTimeout: 0, // SSE: Bun's default 10s idle timeout would cut the stream between heartbeats. - routes: { - ...routes, - // Set by server-full.ts (HTML import, embedded by `bun build --compile`). - ...((globalThis as { __spikeIndex?: Bun.HTMLBundle }).__spikeIndex ? { "/": (globalThis as { __spikeIndex?: Bun.HTMLBundle }).__spikeIndex! } : {}), - "/spike-upstream": () => new Response("upstream-ok"), - "/spike-link": (req, srv) => { - if (req.headers.get("authorization") !== "Bearer x") return new Response("unauthorized", { status: 401 }); - return srv.upgrade(req, { data: undefined }) ? undefined : new Response("upgrade failed", { status: 400 }); - }, - }, - websocket: { - maxPayloadLength: 64 * 1024 * 1024, - message(ws, msg) { - ws.send(msg); // echo text as text, binary as binary - }, - }, - fetch: async (req) => { - const blocked = await gate(req); - if (blocked) return blocked; - // shortcut: static dist serving with no cache headers or compression; a real cutover needs both. - const { pathname } = new URL(req.url); - const file = Bun.file(path.join(import.meta.dir, "dist", pathname === "/" ? "index.html" : pathname.slice(1))); - if (!pathname.includes("..") && (await file.exists())) return new Response(file); - const pub = Bun.file(path.join(import.meta.dir, "..", "public", pathname.slice(1))); - if (!pathname.includes("..") && pathname !== "/" && (await pub.exists())) return new Response(pub); - return new Response("not found", { status: 404 }); - }, -}); - -await register(); -console.log(`spike server on ${server.url} (${Object.keys(routes).length} routes)`); diff --git a/spike/sharp-compiled.ts b/spike/sharp-compiled.ts deleted file mode 100644 index c20b46669..000000000 --- a/spike/sharp-compiled.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Probe 11c: does sharp's native addon load inside a `bun build --compile` binary? -import { readFileSync } from "node:fs"; -import { createThumbnail } from "../lib/media-cache"; - -const png = readFileSync(process.argv[2]!); -const thumb = await createThumbnail("spikehash1111111111111111111111111111111111111111111111111111111", png); -console.log(`thumbnail: ${thumb ? `${thumb.length}B ${thumb.subarray(0, 4).toString()}` : "null (sharp unavailable)"}`); diff --git a/spike/sharp-direct.ts b/spike/sharp-direct.ts deleted file mode 100644 index fd8f7d307..000000000 --- a/spike/sharp-direct.ts +++ /dev/null @@ -1,3 +0,0 @@ -import sharp from "sharp"; -const b = await sharp(process.argv[2]).webp().toBuffer(); -console.log("sharp ok", b.length); diff --git a/spike/shim-plugin.ts b/spike/shim-plugin.ts deleted file mode 100644 index a0e3e9e66..000000000 --- a/spike/shim-plugin.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Aliases next/dynamic and next/navigation to spike/shims (used by build.ts and the HTML-import dev server). -import path from "path"; -import type { BunPlugin } from "bun"; - -const shimPlugin: BunPlugin = { - name: "next-shims", - setup(build) { - build.onResolve({ filter: /^next\/(dynamic|navigation)$/ }, (args) => ({ path: path.join(import.meta.dir, "shims", `${args.path.slice(5)}.tsx`) })); - }, -}; -export default shimPlugin; diff --git a/spike/shims/dynamic.tsx b/spike/shims/dynamic.tsx deleted file mode 100644 index 957f7897b..000000000 --- a/spike/shims/dynamic.tsx +++ /dev/null @@ -1,19 +0,0 @@ -// Spike shim for next/dynamic: React.lazy + Suspense (client-only app, `ssr` is moot). -import { lazy, Suspense, type ComponentType } from "react"; - -type Loader

= () => Promise | { default: ComponentType

}>; - -export default function dynamic

(loader: Loader

, options?: { loading?: ComponentType; ssr?: boolean }) { - const Lazy = lazy(async () => { - const loaded = await loader(); - return { default: "default" in loaded ? loaded.default : loaded }; - }); - const Loading = options?.loading; - return function DynamicComponent(props: P) { - return ( - : null}> - - - ); - }; -} diff --git a/spike/shims/navigation.tsx b/spike/shims/navigation.tsx deleted file mode 100644 index 42213316b..000000000 --- a/spike/shims/navigation.tsx +++ /dev/null @@ -1,27 +0,0 @@ -// Spike shim for the two next/navigation hooks AppShell uses (useRouter().replace, useSearchParams). -import { useMemo, useSyncExternalStore } from "react"; - -const EVENT = "spike:navigate"; -const subscribe = (notify: () => void) => { - addEventListener("popstate", notify); - addEventListener(EVENT, notify); - return () => { - removeEventListener("popstate", notify); - removeEventListener(EVENT, notify); - }; -}; - -export function useSearchParams(): URLSearchParams { - const search = useSyncExternalStore(subscribe, () => location.search); - return useMemo(() => new URLSearchParams(search), [search]); -} - -const navigate = (method: "pushState" | "replaceState") => (url: string) => { - history[method](history.state, "", url); - dispatchEvent(new Event(EVENT)); -}; -const router = { replace: navigate("replaceState"), push: navigate("pushState"), back: () => history.back(), refresh: () => location.reload() }; - -export function useRouter() { - return router; -} diff --git a/spike/sse-probe.ts b/spike/sse-probe.ts deleted file mode 100644 index 03dfa29ec..000000000 --- a/spike/sse-probe.ts +++ /dev/null @@ -1,42 +0,0 @@ -// Probe 1d: /api/events SSE on Bun — hello, subscribe, live delivery, heartbeat past -// Bun's 10s idle default, and server-side cleanup when the client aborts. -const B = `http://127.0.0.1:${process.env.SPIKE_PORT ?? 30311}`; -const ac = new AbortController(); -const res = await fetch(`${B}/api/events`, { signal: ac.signal }); -console.log("GET /api/events", res.status, res.headers.get("content-type")); -const reader = res.body!.getReader(); -const dec = new TextDecoder(); -let buf = ""; -const t0 = Date.now(); -async function next(match: RegExp, timeoutMs: number): Promise { - const deadline = Date.now() + timeoutMs; - while (!match.test(buf)) { - if (Date.now() > deadline) throw new Error(`timeout waiting for ${match}; got ${JSON.stringify(buf.slice(-300))}`); - const { value, done } = await reader.read(); - if (done) throw new Error("stream ended"); - buf += dec.decode(value); - } - const m = buf.match(match)!; - buf = buf.slice(m.index! + m[0].length); - return m[0]; -} -const hello = await next(/event: mux\ndata: (.*)\n\n/, 5000); -const connectionId = JSON.parse(hello.split("data: ")[1]).connectionId; -console.log(`hello after ${Date.now() - t0}ms connectionId=${connectionId}`); -const post = (body: unknown) => fetch(`${B}/api/events`, { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify(body) }); -const sub = await post({ connectionId, subscribe: { id: "s1", channel: { kind: "hosts" } } }); -console.log("POST subscribe", sub.status, await sub.text()); -console.log("first s1 frame:", (await next(/event: s1\ndata: .*\n\n/, 5000)).slice(0, 120).replace(/\n/g, "\\n")); -const created = await fetch(`${B}/api/hosts`, { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({ label: "spike-host" }) }); -const t1 = Date.now(); -console.log("POST /api/hosts", created.status); -const live = await next(/event: s1\ndata: .*spike-host.*\n\n/, 5000); -console.log(`live hosts frame after ${Date.now() - t1}ms (${live.length}B)`); -if (process.env.SPIKE_HEARTBEAT) { - await next(/^:\n\n|\n:\n\n/, 40_000); - console.log(`heartbeat received, stream still open at ${((Date.now() - t0) / 1000).toFixed(1)}s`); -} -ac.abort(); -await Bun.sleep(300); -const after = await post({ connectionId, subscribe: { id: "s2", channel: { kind: "hosts" } } }); -console.log("POST subscribe after client abort", after.status, await after.text()); diff --git a/spike/ws-probe.mjs b/spike/ws-probe.mjs deleted file mode 100644 index 8ea40fe93..000000000 --- a/spike/ws-probe.mjs +++ /dev/null @@ -1,64 +0,0 @@ -// Probe 2: bearer-gated WebSocket on /spike-link. Runs unchanged under Bun and Node. -// bun spike/ws-probe.mjs | node spike/ws-probe.mjs | node spike/ws-probe.mjs undici -const url = `ws://127.0.0.1:${process.env.SPIKE_PORT ?? 30311}/spike-link`; -const runtime = typeof Bun !== "undefined" ? `bun ${Bun.version}` : `node ${process.version}`; -const WS = process.argv[2] === "undici" ? (await import("undici")).WebSocket : globalThis.WebSocket; -const label = `${runtime}${process.argv[2] === "undici" ? " (undici WebSocket)" : " (global WebSocket)"}`; - -function open(init) { - return new Promise((resolve, reject) => { - const ws = new WS(url, init); - ws.binaryType = "arraybuffer"; - ws.onopen = () => resolve(ws); - ws.onerror = (e) => reject(new Error(`error: ${e.message ?? e.type}`)); - ws.onclose = (e) => reject(new Error(`closed ${e.code}`)); - }); -} -const nextMessage = (ws) => new Promise((resolve) => { ws.onmessage = (e) => resolve(e.data); }); - -// 1. No token: must be refused before the upgrade. -try { - (await open(undefined)).close(); - console.log(`${label}: UNAUTHENTICATED CONNECT SUCCEEDED (bad)`); -} catch (e) { - console.log(`${label}: no-token connect refused (${e.message})`); -} - -// 2. Token in the Authorization header (non-standard WebSocket init). -let ws; -try { - ws = await open({ headers: { Authorization: "Bearer x" } }); -} catch (e) { - console.log(`${label}: header-auth connect FAILED (${e.message}) — this WebSocket cannot send headers`); - process.exit(0); -} -ws.onclose = null; -ws.onerror = null; -console.log(`${label}: header-auth connect ok`); - -ws.send("hello"); -const text = await nextMessage(ws); -ws.send(new Uint8Array([1, 2, 3])); -const bin = await nextMessage(ws); -console.log(`${label}: text echo ${JSON.stringify(text)} (${typeof text}), binary echo ${bin instanceof ArrayBuffer ? `ArrayBuffer[${new Uint8Array(bin)}]` : typeof bin}`); - -const N = 1000; -let t = performance.now(); -for (let i = 0; i < N; i++) { - const p = nextMessage(ws); - ws.send(`{"seq":${i}}`); - await p; -} -const rtt = (performance.now() - t) / N; -console.log(`${label}: ${N} sequential round-trips, mean RTT ${(rtt * 1000).toFixed(0)}µs`); - -const big = new Uint8Array(20 * 1024 * 1024); -for (let i = 0; i < big.length; i += 4096) big[i] = i & 0xff; -t = performance.now(); -const p = nextMessage(ws); -ws.send(big); -const back = new Uint8Array(await p); -const ms = performance.now() - t; -const ok = back.length === big.length && back[4096 * 7] === big[4096 * 7]; -console.log(`${label}: 20 MiB binary echo ${ok ? "intact" : "CORRUPT"} in ${ms.toFixed(0)}ms (${((2 * 20) / (ms / 1000)).toFixed(0)} MiB/s both directions)`); -ws.close(); diff --git a/tsconfig.json b/tsconfig.json index deee0ade2..2034c396c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,7 +29,6 @@ ], "exclude": [ "node_modules", - "dist", - "spike" + "dist" ] } From 0fe7ee8e3971750ff3264c1ca749f06a71149d6b Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 14:07:59 +0000 Subject: [PATCH 19/81] fix(security): honour X-Forwarded-Proto in the API origin check Bun's request.url is always http://, so behind a TLS-terminating proxy every same-origin POST (sign-in included) got 403. The first X-Forwarded-Proto value now sets the scheme for the origin check and the session cookie's Secure flag. --- app/api/web-auth/session/route.ts | 3 ++- lib/request-security.test.mjs | 13 +++++++++++++ lib/request-security.ts | 9 +++++++-- lib/web-auth.test.mjs | 1 + 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/app/api/web-auth/session/route.ts b/app/api/web-auth/session/route.ts index 4d5aae99a..a9faa96ae 100644 --- a/app/api/web-auth/session/route.ts +++ b/app/api/web-auth/session/route.ts @@ -1,4 +1,5 @@ import { parseJsonWithinLimit, RequestBodyTooLargeError } from "@/lib/bounded-form-data"; +import { requestProtocol } from "@/lib/request-security"; import { createWebSession, isValidWebPassword, @@ -25,7 +26,7 @@ export async function POST(request: Request) { return Response.json({ error: "Incorrect password" }, { status: 401 }); } - const secure = new URL(request.url).protocol === "https:" || request.headers.get("x-forwarded-proto") === "https"; + const secure = requestProtocol(request) === "https:"; const cookie = new Bun.Cookie(OMP_WEB_SESSION_COOKIE, createWebSession(), { httpOnly: true, secure, diff --git a/lib/request-security.test.mjs b/lib/request-security.test.mjs index 1702229fd..93ec835f8 100644 --- a/lib/request-security.test.mjs +++ b/lib/request-security.test.mjs @@ -27,6 +27,19 @@ test("allows LAN same-origin requests when Next.js uses an internal localhost UR assert.equal(isApiRequestOriginAllowed(request), true); }); +test("allows a same-origin https request behind a TLS-terminating proxy", async () => { + const { isApiRequestOriginAllowed } = await loadSubject(); + // Bun's request.url is always http://; the proxy's first X-Forwarded-Proto value is the browser's scheme. + const request = (origin, proto) => new Request("http://127.0.0.1:30141/api/web-auth/session", { + method: "POST", + headers: { host: "ai.example.com", origin, "x-forwarded-proto": proto, "sec-fetch-site": "same-origin" }, + }); + assert.equal(isApiRequestOriginAllowed(request("https://ai.example.com", "https")), true); + assert.equal(isApiRequestOriginAllowed(request("https://ai.example.com", "https, http")), true); + assert.equal(isApiRequestOriginAllowed(request("http://ai.example.com", "https")), false); + assert.equal(isApiRequestOriginAllowed(request("https://ai.example.com", "http")), false); +}); + test("allows a matching Origin even when Sec-Fetch-Site is cross-site", async () => { const { isApiRequestOriginAllowed } = await loadSubject(); assert.equal(isApiRequestOriginAllowed(new Request("http://localhost:30141/api/test", { diff --git a/lib/request-security.ts b/lib/request-security.ts index 89da4bd84..83f20aa25 100644 --- a/lib/request-security.ts +++ b/lib/request-security.ts @@ -6,10 +6,15 @@ function canonicalOrigin(value: string): string | null { } } +/** `https:` when the first X-Forwarded-Proto value says so: behind a TLS-terminating proxy Bun's request.url is still http://. */ +export function requestProtocol(request: Request): string { + const forwarded = request.headers.get("x-forwarded-proto")?.split(",")[0]?.trim().toLowerCase(); + return forwarded === "https" ? "https:" : new URL(request.url).protocol; +} + function getRequestOrigin(request: Request): string | null { - const requestUrl = new URL(request.url); const host = request.headers.get("host"); - return host ? canonicalOrigin(`${requestUrl.protocol}//${host}`) : requestUrl.origin; + return host ? canonicalOrigin(`${requestProtocol(request)}//${host}`) : new URL(request.url).origin; } /** Reject browser cross-site API requests while preserving non-browser clients. */ diff --git a/lib/web-auth.test.mjs b/lib/web-auth.test.mjs index ad7314889..5254a2d9d 100644 --- a/lib/web-auth.test.mjs +++ b/lib/web-auth.test.mjs @@ -299,4 +299,5 @@ test("signing in sets an HttpOnly, SameSite=Lax session cookie, Secure only over } assert.doesNotMatch(plain, /; Secure(;|$)/i); assert.match(await signIn({ "x-forwarded-proto": "https" }), /; Secure(;|$)/i); + assert.match(await signIn({ "x-forwarded-proto": "https, http" }), /; Secure(;|$)/i); }); From 8bcad0862b03b8d0731f0a890890d93c23def991 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 14:18:42 +0000 Subject: [PATCH 20/81] fix(server): lift Bun's idle timeout per request, after authentication A global idleTimeout: 0 let a caller without a session hold a socket open forever by stalling its request body. Bun's 10 s default now stays on; handle() calls server.timeout(request, 0) only for an /api/ request past the password gate (not the sign-in route or other public paths, since the setting outlives the response on a keep-alive socket), and the host link lifts it through the route context's disableIdleTimeout once its bearer token checks out. --- AGENTS.md | 4 +- app/api/hosts/link/blob/[reqId]/route.ts | 4 +- app/api/hosts/link/route.ts | 12 ++-- docs/plans/2026-10-30-bun-runtime.md | 4 +- docs/specs/2026-10-30-bun-runtime-design.md | 4 +- lib/hosts/hub.ts | 19 +++--- lib/hosts/link-integration.test.mjs | 10 ++-- server/app.test.ts | 64 ++++++++++++++++++--- server/app.ts | 35 +++++++---- server/routes.ts | 15 ++++- 10 files changed, 125 insertions(+), 46 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 0ae5e1e79..03e357ac4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -246,10 +246,10 @@ bunfig.toml Bun dev-server bundling: tailwind plugin and the OMP_WEB_P 2. Add one `import * as x from "@/app/api//route"` and one entry to `ROUTE_MODULES` in `server/routes.ts`; the key is the directory under `app/api` (`"sessions/[id]"`). 3. `server/routes.test.ts` fails when the table and the files on disk differ, and when a route module exports anything but method handlers. -The table is static imports, not a runtime glob, so a future `bun build --compile` can bundle every handler. `dispatch` answers HEAD from `GET`, OPTIONS and a missing method (405 with `allow`), passes `params` as a promise, and turns a throw into a 500 JSON body. +The table is static imports, not a runtime glob, so a future `bun build --compile` can bundle every handler. `dispatch` answers HEAD from `GET`, OPTIONS and a missing method (405 with `allow`), passes `params` as a promise (plus `disableIdleTimeout`, below), and turns a throw into a 500 JSON body. ### Bun server (`server/`) -- `Bun.serve` sets `idleTimeout: 0` for every route: SSE (`/api/events`), the host link and the clone/bash-output/search streams stay open for minutes without traffic, and Bun's 10 s default would cut them. Idle sockets on unauthenticated routes are therefore not reaped. `maxRequestBodySize` is left at Bun's 128 MiB default, above the 101 MB upload cap and the 64 MB link legs; do not lower it. +- Bun's 10 s `idleTimeout` stays on: it reaps sockets that stall before or during a request. SSE (`/api/events`), the host link and the clone/bash-output/search streams stay open for minutes without traffic, so `handle` (`server/app.ts`) calls `server.timeout(request, 0)` for an `/api/` request only after the gate passes, never for `UNGATED` paths or `/api/web-auth/session`. The setting outlives the response on a keep-alive socket, so never lift it for a public path. The host link is gate-exempt: its route gets `disableIdleTimeout` in the route context (`dispatch`, `server/routes.ts`), and `lib/hosts/hub.ts` calls it only once the bearer token checks out. `maxRequestBodySize` is left at Bun's 128 MiB default, above the 101 MB upload cap and the 64 MB link legs; do not lower it. - Bun's router matches the **raw** path, while `request.url` is normalized (`..` and `%2e%2e` resolved). The gate and handlers read `request.url`, so each route re-matches the normalized path against its own `URLPattern` after the gate and answers 404 if it no longer matches. Never serve a gated route under an ungated path. - Redirects carry a relative `Location` (`request.url` is always `http://` under Bun, so an absolute URL would leave https behind a TLS proxy). - `Response.redirect()` headers are immutable; `finalizeResponse` (`server/http.ts`) copies every answer into a fresh `Response` to set the security headers and gzip. Do not mutate a handler's response headers elsewhere. diff --git a/app/api/hosts/link/blob/[reqId]/route.ts b/app/api/hosts/link/blob/[reqId]/route.ts index dce689923..1df0bdc0b 100644 --- a/app/api/hosts/link/blob/[reqId]/route.ts +++ b/app/api/hosts/link/blob/[reqId]/route.ts @@ -2,6 +2,6 @@ import { handleLinkBlob } from "@/lib/hosts/hub"; // POST /api/hosts/link/blob/ — the bytes of one large host op result, // uploaded by the daemon before its `res` line (lib/hosts/hub.ts). -export async function POST(req: Request, { params }: { params: Promise<{ reqId: string }> }) { - return handleLinkBlob(req, (await params).reqId); +export async function POST(req: Request, { params, disableIdleTimeout }: { params: Promise<{ reqId: string }>; disableIdleTimeout: () => void }) { + return handleLinkBlob(req, (await params).reqId, disableIdleTimeout); } diff --git a/app/api/hosts/link/route.ts b/app/api/hosts/link/route.ts index 50a7e090a..151ea6cb8 100644 --- a/app/api/hosts/link/route.ts +++ b/app/api/hosts/link/route.ts @@ -1,14 +1,16 @@ import { handleLinkGet, handleLinkPost } from "@/lib/hosts/hub"; // The `ompweb host` daemon's link (lib/hosts/hub.ts). proxy.ts does not run -// for this path: the hub checks the host's bearer token before reading a body. +// for this path: the hub checks the host's bearer token before reading a body, +// and only then lifts Bun's idle timeout (disableIdleTimeout, server/app.ts). +type Context = { disableIdleTimeout: () => void }; // GET /api/hosts/link — downlink: a long-lived NDJSON stream, server → daemon. -export function GET(req: Request) { - return handleLinkGet(req); +export function GET(req: Request, { disableIdleTimeout }: Context) { + return handleLinkGet(req, disableIdleTimeout); } // POST /api/hosts/link — uplink: a batch of NDJSON messages, daemon → server. -export function POST(req: Request) { - return handleLinkPost(req); +export function POST(req: Request, { disableIdleTimeout }: Context) { + return handleLinkPost(req, disableIdleTimeout); } diff --git a/docs/plans/2026-10-30-bun-runtime.md b/docs/plans/2026-10-30-bun-runtime.md index a4f99ce87..513717dba 100644 --- a/docs/plans/2026-10-30-bun-runtime.md +++ b/docs/plans/2026-10-30-bun-runtime.md @@ -322,7 +322,7 @@ The two notification routes are async, but every query is a microsecond-scale lo - A request whose pathname fails `decodeURIComponent` → 400. - A missing method → 405 with `Allow`; OPTIONS → 204 with `Allow`; HEAD without a handler → GET (Next did both). - A handler throw → `console.error` + 500 `{ error: "Internal Server Error" }`. - - `startServer` passes `idleTimeout: 0` and `development: dev ? { hmr: true, console: true } : false`. It keeps Bun's default `maxRequestBodySize` (128 MiB), which is above every handler's own limit (101 MB uploads, 64 MB link blobs); `Number.MAX_SAFE_INTEGER` would leave the bare `req.json()` handlers unbounded (Task 5 review). + - `startServer` keeps Bun's default `idleTimeout` (10 s) and passes `development: dev ? { hmr: true, console: true } : false`; `handle` calls `server.timeout(request, 0)` for an `/api/` request past the gate (not `UNGATED`, not `/api/web-auth/session`), and the host link through `disableIdleTimeout` after its bearer check (final review I1: a global `idleTimeout: 0` let unauthenticated stalled requests hold sockets). It keeps Bun's default `maxRequestBodySize` (128 MiB), which is above every handler's own limit (101 MB uploads, 64 MB link blobs); `Number.MAX_SAFE_INTEGER` would leave the bare `req.json()` handlers unbounded (Task 5 review). - Every route and the `fetch` fallback run `proxy()` first; every response goes through `finalizeResponse`. - `fetch` serves `serveFile`, then `/` and `/login` (prod: `renderIndex(dist/index.html)`), then the SPA fallback (GET/HEAD, not `/api/`, last segment without a `.`). Anything else → 404 text. - `startServer` does **not** call `register()`; the entries do. @@ -525,7 +525,7 @@ The two notification routes are async, but every query is a microsecond-scale lo - **Architecture diagram:** Browser → Bun server (`server/app.ts`) → omp; launcher on Node; daemon and tray on Node. - **File Map:** `server/*`, `app/index.html`, `app/client.tsx`, `app/boot.ts`, `scripts/build-client.ts`, `scripts/smoke.ts`, `bin/bun-runtime.js`, `dist/`, `bunfig.toml`. - **New section "Adding an API route":** create `app/api//route.ts`, add one import and one entry to `server/routes.ts` (key = directory under `app/api`), and let `server/routes.test.ts` enforce it. - - **Traps:** `idleTimeout: 0` and Bun's 128 MiB default `maxRequestBodySize`; Bun's router matches the raw path while `request.url` is normalized (each route re-matches the normalized path); redirects carry a relative `Location`; `Response.redirect()` headers are immutable (`finalizeResponse` copies); `globalThis` state survives `bun --hot` (formerly "Next hot-reload") and the `register()` guard; daemon/tray modules use no Bun APIs; `bun:sqlite` `.get()` returns `null`; `Bun.Image` applies EXIF orientation; DOM tests import Testing Library dynamically after `tests/setup-dom.mjs`; fresh imports use `?fresh=N` and builtin mocks use `mock.module`; the update worker runs on Node (`OMP_WEB_NODE_BIN`); static roots come from `OMP_WEB_PACKAGE_DIR`. + - **Traps:** the per-request `server.timeout(request, 0)` after the gate (never for public paths) and Bun's 128 MiB default `maxRequestBodySize`; Bun's router matches the raw path while `request.url` is normalized (each route re-matches the normalized path); redirects carry a relative `Location`; `Response.redirect()` headers are immutable (`finalizeResponse` copies); `globalThis` state survives `bun --hot` (formerly "Next hot-reload") and the `register()` guard; daemon/tray modules use no Bun APIs; `bun:sqlite` `.get()` returns `null`; `Bun.Image` applies EXIF orientation; DOM tests import Testing Library dynamically after `tests/setup-dom.mjs`; fresh imports use `?fresh=N` and builtin mocks use `mock.module`; the update worker runs on Node (`OMP_WEB_NODE_BIN`); static roots come from `OMP_WEB_PACKAGE_DIR`. - **Update the Next mentions:** - "Proxy exclusion" keeps the bearer reason and drops the 10 MB buffering; - Remote hosts says "No WebSocket yet" without `next start`; diff --git a/docs/specs/2026-10-30-bun-runtime-design.md b/docs/specs/2026-10-30-bun-runtime-design.md index 293d450a3..002cfb6e0 100644 --- a/docs/specs/2026-10-30-bun-runtime-design.md +++ b/docs/specs/2026-10-30-bun-runtime-design.md @@ -15,8 +15,8 @@ Non-goals: the WebSocket link itself; single-binary distribution (`bun build --c - **R1 Runtime and distribution.** Bun ≥ 1.4 runs the server. The npm package `bun` is a dependency pinned exactly (`"bun": "1.4.4"`), so `npm i -g @kahme247/ompweb` and `npx` bring Bun with them. The Node launcher `bin/omp-web.js` stays the npm `bin`. It resolves Bun in this order: the package's `bun` dependency, then its `@oven/bun--` platform package (used when the postinstall did not run), then `bun` on PATH (version ≥ 1.4.4). It then spawns the server under that Bun. Linux x64 is verified in Task 1. macOS is verified on the user's Mac and Windows in the repo's Windows CI, both with the packed-install smoke test (Task 8). - **R2 Next removed entirely.** This covers `next`, `eslint-config-next`, `next.config.ts`, the tsconfig `next` plugin, `.next`, `next/font`, `next/dynamic`, `next/navigation`, `next/headers`, `next/script` and `next/server`. A codemod turns `NextResponse.json` into `Response.json`, `NextRequest` into `Request` and `.nextUrl` into `new URL(req.url)`. `proxy.ts` becomes server middleware that returns `Response | null` (password gate and origin check, same behavior). `instrumentation.node.ts`'s `register()` runs once at server startup. `instrumentation.ts` is deleted. -- **R3 Routes.** Route handler files stay at `app/api/**/route.ts`, keep their `(req, { params: Promise<…> })` signature, and are found through one hand-written table, `server/routes.ts`, with one import and one entry per file. A test fails when the table and the files on disk differ. The table feeds `Bun.serve` `routes`: `[id]` becomes `:id` and `[...path]` becomes `*`, with the rest segments decoded into `params.path`. -- **R4 HTTP behavior.** `idleTimeout: 0`, so SSE `/api/events` and the host link are never cut. Bun's default `maxRequestBodySize` (128 MiB) stays: it is above every handler's own limit (101 MB uploads, 64 MB link blobs) and still bounds the handlers that read a bare `req.json()`. Hashed assets under `/assets/` get `public, max-age=31536000, immutable`. `index.html` (for `/` and `/login`) gets `private, no-cache, max-age=0, must-revalidate`. `sw.js` and `event-stream-worker.js` get `no-cache`, and other `public/` files `public, max-age=0`. Compressible responses are gzip-compressed (Next did this). Unknown extensionless GET paths fall back to the SPA. The event-stream worker keeps its content-hash `?v=` URL. +- **R3 Routes.** Route handler files stay at `app/api/**/route.ts`, keep their `(req, { params: Promise<…> })` signature (the context also carries `disableIdleTimeout`, see R4), and are found through one hand-written table, `server/routes.ts`, with one import and one entry per file. A test fails when the table and the files on disk differ. The table feeds `Bun.serve` `routes`: `[id]` becomes `:id` and `[...path]` becomes `*`, with the rest segments decoded into `params.path`. +- **R4 HTTP behavior.** Bun's default `idleTimeout` (10 s) stays, so a socket that stalls before it is authenticated is reaped. An `/api/` request that passed the password gate (except the sign-in route) gets `server.timeout(request, 0)`, and the host link gets it once its bearer token checks out, so SSE `/api/events` and the host link are never cut. Bun's default `maxRequestBodySize` (128 MiB) stays: it is above every handler's own limit (101 MB uploads, 64 MB link blobs) and still bounds the handlers that read a bare `req.json()`. Hashed assets under `/assets/` get `public, max-age=31536000, immutable`. `index.html` (for `/` and `/login`) gets `private, no-cache, max-age=0, must-revalidate`. `sw.js` and `event-stream-worker.js` get `no-cache`, and other `public/` files `public, max-age=0`. Compressible responses are gzip-compressed (Next did this). Unknown extensionless GET paths fall back to the SPA. The event-stream worker keeps its content-hash `?v=` URL. - **R5 Node-only dependencies.** For each Node-only dependency or API that is a problem or a cost under Bun, a Bun built-in is checked first, and the Node dependency is kept only when no built-in fits. The resulting choices: - **Thumbnails:** `sharp` is replaced by `Bun.Image`. - **SQLite:** `node:sqlite` is replaced by `bun:sqlite`, which is synchronous like `DatabaseSync`, so the store APIs and their callers stay unchanged. diff --git a/lib/hosts/hub.ts b/lib/hosts/hub.ts index b55b3ba95..d8db46e87 100644 --- a/lib/hosts/hub.ts +++ b/lib/hosts/hub.ts @@ -240,12 +240,15 @@ function sawDaemon(link: Link): void { } /** The host the bearer token names, or the refusal to answer with. */ -function authenticate(req: Request): HostRecord | Response { +function authenticate(req: Request, disableIdleTimeout?: () => void): HostRecord | Response { const header = req.headers.get("authorization"); const token = typeof header === "string" && header.startsWith("Bearer ") ? header.slice("Bearer ".length).trim() : ""; try { const record = token ? hostForToken(token) : null; - return record ?? json({ error: "Invalid host token" }, 401); + if (!record) return json({ error: "Invalid host token" }, 401); + // Only a known host may keep the socket open past Bun's idle timeout (a ping comes every 15 s). + disableIdleTimeout?.(); + return record; } catch (error) { if (!(error instanceof HostRegistryUnreadableError)) throw error; // Never 401 here: a daemon told its token is unknown stops every omp child. @@ -277,8 +280,8 @@ export function freezeHostLinks(): void { } /** GET /api/hosts/link: the daemon's downlink, an NDJSON stream, opened with the id of the hello it POSTed. */ -export async function handleLinkGet(req: Request): Promise { - const record = authenticate(req); +export async function handleLinkGet(req: Request, disableIdleTimeout?: () => void): Promise { + const record = authenticate(req, disableIdleTimeout); if (record instanceof Response) return record; if (hub().frozen) return stopping(); const link = linkFor(record.id); @@ -472,8 +475,8 @@ async function adopt(link: Link, child: RemoteRpcTransport, sessionId: string, c } /** POST /api/hosts/link: a batch of uplink NDJSON messages, or a hello (see handleHelloPost). */ -export async function handleLinkPost(req: Request): Promise { - const record = authenticate(req); +export async function handleLinkPost(req: Request, disableIdleTimeout?: () => void): Promise { + const record = authenticate(req, disableIdleTimeout); if (record instanceof Response) return record; if (hub().frozen) return stopping(); if (req.headers.has(LINK_HELLO_HEADER)) return handleHelloPost(req, record); @@ -556,8 +559,8 @@ function settle(link: Link, message: Res): void { } /** POST /api/hosts/link/blob/: the bytes of one large op result, sent before its `res`. */ -export async function handleLinkBlob(req: Request, reqId: string): Promise { - const record = authenticate(req); +export async function handleLinkBlob(req: Request, reqId: string, disableIdleTimeout?: () => void): Promise { + const record = authenticate(req, disableIdleTimeout); if (record instanceof Response) return record; if (hub().frozen) return stopping(); const link = currentLink(req, record); diff --git a/lib/hosts/link-integration.test.mjs b/lib/hosts/link-integration.test.mjs index a5b4a3c3c..cc0ec7aea 100644 --- a/lib/hosts/link-integration.test.mjs +++ b/lib/hosts/link-integration.test.mjs @@ -189,20 +189,22 @@ const server = createServer(async (req, res) => { } const request = (bytes = body) => new Request(url, { method: req.method, headers, body: req.method === "POST" ? bytes : undefined }); const blob = /^\/api\/hosts\/link\/blob\/([^/]+)$/.exec(url.pathname); + // node:http has no idle timeout to lift. + const context = { disableIdleTimeout() {} }; let response; if (url.pathname === "/api/hosts/link" && req.method === "GET") { - response = await linkRoute.GET(request()); + response = await linkRoute.GET(request(), context); } else if (url.pathname === "/api/hosts/link" && req.method === "POST") { const carriesFrames = body.includes('"message_update'); if (faults.cutUplinkBeforeApply && carriesFrames) { // The connection breaks mid-batch: the server only got half the body. faults.cutUplinkBeforeApply = false; seen.cuts.push("uplink-before-apply"); - await linkRoute.POST(request(body.subarray(0, Math.floor(body.length / 2)))); + await linkRoute.POST(request(body.subarray(0, Math.floor(body.length / 2))), context); req.socket.destroy(); return; } - response = await linkRoute.POST(request()); + response = await linkRoute.POST(request(), context); if (response.status === 503) seen.refusedPosts.push(body.toString()); if (faults.cutUplinkAfterApply && carriesFrames) { // Applied, but the ack never reaches the daemon: it must resend. @@ -213,7 +215,7 @@ const server = createServer(async (req, res) => { } } else if (blob && req.method === "POST") { seen.blobUploads += 1; - response = await blobRoute.POST(request(), { params: Promise.resolve({ reqId: decodeURIComponent(blob[1]) }) }); + response = await blobRoute.POST(request(), { ...context, params: Promise.resolve({ reqId: decodeURIComponent(blob[1]) }) }); } else { res.writeHead(404).end(); return; diff --git a/server/app.test.ts b/server/app.test.ts index a006458d2..f8d92c22a 100644 --- a/server/app.test.ts +++ b/server/app.test.ts @@ -16,9 +16,9 @@ writeFileSync(path.join(root, "dist", "index.html"), " [name, process.env[name]])); -delete process.env.OMP_WEB_PASSWORD_HASH; -delete process.env.OMP_WEB_PASSWORD; +const UNSET = ["OMP_WEB_PASSWORD_HASH", "OMP_WEB_PASSWORD", "OMP_WEB_TRUSTED_HEADER_SHA256"]; +const saved = Object.fromEntries([...UNSET, ...Object.keys(ENV)].map((name) => [name, process.env[name]])); +for (const name of UNSET) delete process.env[name]; Object.assign(process.env, ENV); // Imported after the environment is set, so no module sees the real home or agent dir. const { startServer } = await import("./app"); @@ -113,9 +113,26 @@ test("pages get the index, files their content, and anything else 404", async () assert.equal((await fetch(url("/..%2Fpackage.json"))).status, 404); }); -test("the event stream outlives Bun's 10 s default idle timeout", { timeout: 25_000 }, async () => { +/** Sends `head` (request line and headers) and nothing more; resolves once the server hangs up. */ +function stall(head: string): Promise { + const { promise, resolve } = Promise.withResolvers(); + const socket = net.createConnection(server.port!, "127.0.0.1", () => socket.write(`${head}\r\nHost: 127.0.0.1\r\n\r\n`)); + socket.resume(); + socket.on("close", () => resolve()); + socket.on("error", () => {}); + return promise; +} + +test("Bun's idle timeout spares the event stream and the host link, and only them", { timeout: 30_000 }, async (t) => { + process.env.OMP_WEB_PASSWORD_HASH = hashPassword("pw", { logN: 12 }); + process.env.OMP_WEB_TRUSTED_HEADER_SHA256 = new Bun.CryptoHasher("sha256").update("trusted").digest("hex"); + t.after(() => { + delete process.env.OMP_WEB_PASSWORD_HASH; + delete process.env.OMP_WEB_TRUSTED_HEADER_SHA256; + }); + const signedIn = { "x-omp-web-auth": "trusted" }; const controller = new AbortController(); - const stream = await fetch(url("/api/events"), { signal: controller.signal }); + const stream = await fetch(url("/api/events"), { headers: signedIn, signal: controller.signal }); assert.equal(stream.headers.get("content-type"), "text/event-stream"); const reader = stream.body!.getReader(); const decoder = new TextDecoder(); @@ -124,11 +141,42 @@ test("the event stream outlives Bun's 10 s default idle timeout", { timeout: 25_ const connectionId = /"connectionId":"([^"]+)"/.exec(hello)?.[1]; assert.ok(connectionId, hello); - // A real idle gap: Bun.serve's native idle timer cannot be faked. - await Bun.sleep(12_000); + // A host daemon's link: a hello, then the downlink, which pings 15 s after it opens. + const created = await fetch(url("/api/hosts"), { method: "POST", headers: signedIn, body: JSON.stringify({ label: "box" }) }); + const bearer = { authorization: `Bearer ${(await created.json()).token}` }; + const hostHello = { type: "hello", v: 3, ompVersion: "14.0.0", platform: "linux", home: "/home/u", autoApproveExtension: false, ack: 0, channels: [] }; + const offered = await fetch(url("/api/hosts/link"), { method: "POST", headers: { ...bearer, "x-omp-web-hello": "1" }, body: JSON.stringify(hostHello) }); + assert.equal(offered.status, 200); + const link = await fetch(url("/api/hosts/link"), { headers: { ...bearer, "x-omp-web-hello": (await offered.json()).helloId }, signal: controller.signal }); + assert.equal(link.status, 200); + const linkReader = link.body!.getReader(); + assert.match(decoder.decode((await linkReader.read()).value), /"type":"welcome"/); + + // No caller without a session or a host token holds a socket open, wherever it stalls. + const stalled = { + gated: stall("POST /api/hosts HTTP/1.1\r\nContent-Length: 100"), + signIn: stall("POST /api/web-auth/session HTTP/1.1\r\nContent-Length: 100"), + link: stall("POST /api/hosts/link HTTP/1.1\r\nAuthorization: Bearer nope\r\nContent-Length: 100"), + page: stall("GET /login HTTP/1.1"), + }; + // Real waits: Bun.serve's native idle timer (10 s, checked every 4 s) cannot be faked. The 20 s deadline only + // names a socket that never closes. + const open = new Set(Object.keys(stalled)); + await Promise.race([ + Promise.all(Object.entries(stalled).map(([name, closed]) => closed.then(() => open.delete(name)))), + Bun.sleep(20_000), + ]); + assert.deepEqual([...open], []); + + // The ping proves the downlink outlived the idle timeout; so has the event stream, opened before it. + for (let lines = ""; !lines.includes('"type":"ping"');) { + const { done, value } = await linkReader.read(); + assert.equal(done, false, "the host link was closed while idle"); + lines += decoder.decode(value); + } const subscribe = await fetch(url("/api/events"), { method: "POST", - headers: { "content-type": "application/json" }, + headers: { ...signedIn, "content-type": "application/json" }, body: JSON.stringify({ connectionId, subscribe: { id: "s1", channel: { kind: "hosts" } } }), }); assert.equal(subscribe.status, 200); diff --git a/server/app.ts b/server/app.ts index ab888a576..a9e0d0e5f 100644 --- a/server/app.ts +++ b/server/app.ts @@ -1,7 +1,7 @@ import { readFileSync } from "node:fs"; import path from "node:path"; import { parseArgs } from "node:util"; -import { proxy } from "@/proxy"; +import { proxy, UNGATED } from "@/proxy"; import { finalizeResponse, INDEX_CACHE, renderIndex, serveFile } from "./http"; import { dispatch, ROUTE_MODULES, routePattern } from "./routes"; @@ -24,9 +24,26 @@ function decodable(pathname: string): boolean { } } -/** The gate, then the 400 for malformed `%` encoding, then `respond`; every answer goes through finalizeResponse. */ -async function handle(request: Request, respond: () => Response | Promise): Promise { - const response = proxy(request) ?? (decodable(new URL(request.url).pathname) ? await respond() : text("Bad Request", 400)); +/** + * The gate, then the 400 for malformed `%` encoding, then `respond`; every answer but a 400 for an unparsable URL goes + * through finalizeResponse. A request past the gate may stay open without traffic (SSE, the clone/bash-output/search + * streams): Bun's idle timeout is switched off for it alone, so no unauthenticated caller can hold a socket open. + */ +async function handle(request: Request, server: Bun.Server, respond: () => Response | Promise): Promise { + let pathname: string; + try { + pathname = new URL(request.url).pathname; + } catch { + // Bun builds request.url from the Host header, so a malformed or missing Host makes it unparsable. + return text("Bad Request", 400); + } + const gate = proxy(request); + // server.timeout(request, 0) outlives the response on a keep-alive socket, so public paths (UNGATED, the sign-in + // page and route) keep the timeout; the host link switches it off itself once its bearer token checks out. + if (gate === null && pathname.startsWith("/api/") && !UNGATED.test(pathname) && pathname !== "/api/web-auth/session") { + server.timeout(request, 0); + } + const response = gate ?? (decodable(pathname) ? await respond() : text("Bad Request", 400)); return finalizeResponse(request, response); } @@ -47,11 +64,11 @@ export function startServer(options: { port: number; hostname: string; dev: bool // Dev serves the SPA from the HTML import (`html`) and never reads dist/. const index = dev ? null : readFileSync(path.join(root, "dist", "index.html"), "utf8"); - const routes: Record Promise)> = {}; + const routes: Record) => Promise)> = {}; for (const [key, mod] of Object.entries(ROUTE_MODULES)) { const { pattern, rest } = routePattern(key); const matcher = new URLPattern({ pathname: pattern }); - routes[pattern] = (request) => handle(request, () => { + routes[pattern] = (request, server) => handle(request, server, () => { // Bun's router matched the raw path, but the gate and the handler read request.url, where `..` and `%2e%2e` // are resolved. Answer only when that path is still this route, so no gated route runs under an ungated path. const { pathname } = new URL(request.url); @@ -62,7 +79,7 @@ export function startServer(options: { port: number; hostname: string; dev: bool if (name !== "0" && value !== undefined) params[name] = decodeURIComponent(value); } if (rest) params[rest.name] = pathname.split("/").slice(rest.index).filter(Boolean).map(decodeURIComponent); - return dispatch(mod, request, params); + return dispatch(mod, request, params, () => server.timeout(request, 0)); }); } if (html) routes[DEV_INDEX] = html; @@ -70,12 +87,10 @@ export function startServer(options: { port: number; hostname: string; dev: bool return Bun.serve({ port: options.port, hostname: options.hostname, - // SSE (/api/events) and the host link stay open for minutes without traffic; Bun's default would cut them at 10 s. - idleTimeout: 0, development: dev ? { hmr: true, console: true } : false, routes, fetch: async (request, server) => { - const response = await handle(request, async () => { + const response = await handle(request, server, async () => { const file = await serveFile(request, root, dev); if (file) return file; const { pathname } = new URL(request.url); diff --git a/server/routes.ts b/server/routes.ts index e4eb714d4..b97eb4126 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -73,7 +73,11 @@ import * as worktrees from "@/app/api/worktrees/route"; type Method = "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; // never: each handler narrows its own params; the router passes Record. -export type RouteHandler = (request: Request, context: { params: Promise }) => Response | Promise; +// disableIdleTimeout: for a gate-exempt route that authenticates itself (the host link) and then stays open. +export type RouteHandler = ( + request: Request, + context: { params: Promise; disableIdleTimeout: () => void }, +) => Response | Promise; export type RouteModule = Partial>; // Key: the route's directory under app/api. @@ -162,7 +166,12 @@ export function routePattern(key: string): { pattern: string; rest: { name: stri } /** Runs the module's handler for the request method, answering HEAD, OPTIONS and missing methods as Next did. */ -export async function dispatch(mod: RouteModule, request: Request, params: Record): Promise { +export async function dispatch( + mod: RouteModule, + request: Request, + params: Record, + disableIdleTimeout: () => void = () => {}, +): Promise { const handler = mod[request.method as Method] ?? (request.method === "HEAD" ? mod.GET : undefined); if (!handler) { const methods = METHODS.filter((method) => mod[method]); @@ -171,7 +180,7 @@ export async function dispatch(mod: RouteModule, request: Request, params: Recor return new Response(null, { status: 204, headers: { allow } }); } try { - return await handler(request, { params: Promise.resolve(params) as Promise }); + return await handler(request, { params: Promise.resolve(params) as Promise, disableIdleTimeout }); } catch (error) { console.error(error); return Response.json({ error: "Internal Server Error" }, { status: 500 }); From e57bfb8e0dae42129e567d48b6caa75f5c8ece97 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 14:21:56 +0000 Subject: [PATCH 21/81] test(server): pin the 400 for a malformed or missing Host handle() catches an unparsable request.url (built from the Host header) and answers 400 instead of a 500 with a stack; this test pins it. --- server/app.test.ts | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/server/app.test.ts b/server/app.test.ts index f8d92c22a..3c91bdd51 100644 --- a/server/app.test.ts +++ b/server/app.test.ts @@ -25,12 +25,22 @@ const { startServer } = await import("./app"); const server = startServer({ port: 0, hostname: "127.0.0.1", dev: false, root }); const url = (pathname: string) => new URL(pathname, server.url); -/** A request whose target goes on the wire verbatim: fetch() would resolve `..` and `%2e%2e` before sending. */ -function rawRequest(method: string, target: string, headers: Record = {}): Promise<{ status: number; body: string }> { +/** + * A request whose target goes on the wire verbatim: fetch() would resolve `..` and `%2e%2e` before sending. + * `headers` override the defaults; a null value leaves that header out. + */ +function rawRequest( + method: string, + target: string, + headers: Record = {}, + version = "HTTP/1.1", +): Promise<{ status: number; body: string }> { const { promise, resolve, reject } = Promise.withResolvers<{ status: number; body: string }>(); const socket = net.createConnection(server.port!, "127.0.0.1", () => { - const lines = [`${method} ${target} HTTP/1.1`, "Host: 127.0.0.1", "Connection: close", "Content-Length: 0"]; - for (const [name, value] of Object.entries(headers)) lines.push(`${name}: ${value}`); + const lines = [`${method} ${target} ${version}`]; + for (const [name, value] of Object.entries({ Host: "127.0.0.1", Connection: "close", "Content-Length": "0", ...headers })) { + if (value !== null) lines.push(`${name}: ${value}`); + } socket.write(`${lines.join("\r\n")}\r\n\r\n`); }); let response = ""; @@ -64,6 +74,12 @@ test("API routes answer through the gate", async () => { assert.equal((await fetch(url("/api"))).status, 404); }); +test("a malformed or missing Host answers 400, not a 500", async () => { + // Bun builds request.url from the Host header; HTTP/1.1 without one never reaches the app, HTTP/1.0 does. + for (const host of ["a b", "[", ""]) assert.equal((await rawRequest("GET", "/api/hosts", { Host: host })).status, 400, host); + assert.equal((await rawRequest("GET", "/", { Host: null }, "HTTP/1.0")).status, 400); +}); + test("a path that leaves its route after `..` resolution never reaches that route's handler", async (t) => { // The files route serves anything under the agent dir; `x` pads `/assets/x` to the route's `/api/files` depth. const secret = path.join(ENV.PI_CODING_AGENT_DIR, "secret.txt"); From 8a40378e4d7a0a51725c675e4aa0a749984dee4a Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 14:26:11 +0000 Subject: [PATCH 22/81] test(server): pin route params, static precedence and the gated manifest Through the real server: a file with a space and a non-ASCII name under the agent dir, a percent-encoded :hash, GET /api/agent/new (405) and /api/sessions/search (its own NDJSON route, not sessions/:id), and /api/manifest behind the password. --- server/app.test.ts | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/server/app.test.ts b/server/app.test.ts index 3c91bdd51..5f0472cf1 100644 --- a/server/app.test.ts +++ b/server/app.test.ts @@ -16,7 +16,8 @@ writeFileSync(path.join(root, "dist", "index.html"), " [name, process.env[name]])); for (const name of UNSET) delete process.env[name]; Object.assign(process.env, ENV); @@ -129,6 +130,32 @@ test("pages get the index, files their content, and anything else 404", async () assert.equal((await fetch(url("/..%2Fpackage.json"))).status, 404); }); +test("each route answers under its own path with decoded params, and the manifest stays gated", async (t) => { + // A space and a non-ASCII name pin the decoded `[...path]` segments, taken from the right index. + mkdirSync(path.join(ENV.PI_CODING_AGENT_DIR, "blobs"), { recursive: true }); + const file = path.join(ENV.PI_CODING_AGENT_DIR, "my file é.txt"); + writeFileSync(file, "HELLO"); + const read = await fetch(url(`/api/files${file.split(path.sep).join("/").replace(/^\/?/, "/")}?type=read`)); + assert.equal(read.status, 200); + assert.equal((await read.json()).content, "HELLO"); + + // A `:param` is decoded too: only the decoded hash (`%61` is `a`) names this PNG-signed blob. + const hash = "a".repeat(64); + writeFileSync(path.join(ENV.PI_CODING_AGENT_DIR, "blobs", hash), Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a])); + assert.equal((await fetch(url(`/api/media/%61${hash.slice(1)}`))).status, 200); + + // Static segments win over `:id`: agent/new has no GET, and the search streams NDJSON. + assert.equal((await fetch(url("/api/agent/new"))).status, 405); + assert.match((await fetch(url("/api/sessions/search?q=x"))).headers.get("content-type") ?? "", /^application\/x-ndjson/); + + // Its link carries credentials (spec invariant 4). + process.env.OMP_WEB_PASSWORD_HASH = hashPassword("pw", { logN: 12 }); + t.after(() => { + delete process.env.OMP_WEB_PASSWORD_HASH; + }); + assert.equal((await fetch(url("/api/manifest"))).status, 401); +}); + /** Sends `head` (request line and headers) and nothing more; resolves once the server hangs up. */ function stall(head: string): Promise { const { promise, resolve } = Promise.withResolvers(); From b95dd2909fa8cd163efded61754e2af4ef1aef60 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 14:28:27 +0000 Subject: [PATCH 23/81] fix(skills): time out the skills.sh search after 10 s A stalled skills.sh held the request open forever; the timeout hands over to the CLI search fallback. --- app/api/skills/search/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/skills/search/route.ts b/app/api/skills/search/route.ts index e46c83234..01f264ce7 100644 --- a/app/api/skills/search/route.ts +++ b/app/api/skills/search/route.ts @@ -54,7 +54,8 @@ function parseSearchOutput(raw: string): SkillSearchResult[] { async function searchSkillsApi(query: string, limit: number): Promise { const url = `${SEARCH_API_BASE}/api/search?q=${encodeURIComponent(query)}&limit=${limit}`; - const res = await fetch(url, { cache: "no-store" }); + // A stalled skills.sh falls through to the CLI search instead of hanging the request. + const res = await fetch(url, { cache: "no-store", signal: AbortSignal.timeout(10_000) }); if (!res.ok) throw new Error(`skills.sh search failed: HTTP ${res.status}`); const data = (await res.json()) as SkillsApiResponse; From da820ec575c9d632f2ea41a389f9ebe40706dd02 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 14:30:48 +0000 Subject: [PATCH 24/81] refactor(server): drop the gzip size floor that never applied Response.json and Bun.file responses carry no content-length when finalizeResponse sees them, so the 1 KiB floor only ever matched the synthetic test case. Removed with that case. --- docs/plans/2026-10-30-bun-runtime.md | 2 +- server/http.test.ts | 3 +-- server/http.ts | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/plans/2026-10-30-bun-runtime.md b/docs/plans/2026-10-30-bun-runtime.md index 513717dba..5e1c43e5f 100644 --- a/docs/plans/2026-10-30-bun-runtime.md +++ b/docs/plans/2026-10-30-bun-runtime.md @@ -330,7 +330,7 @@ The two notification routes are async, but every query is a microsecond-scale lo - Always build a new `Response(body, { status, statusText, headers })`, because `Response.redirect()` headers are immutable. - Headers: `SECURITY_HEADERS` (copy the values from `next.config.ts`) for every path except `/api/files/*`, which gets `FILE_RESPONSE_HEADERS`. - Cache: `/` and `/login` → `private, no-cache, max-age=0, must-revalidate`. - - gzip when all of these hold: `accept-encoding` includes `gzip`; status 200; no `content-encoding` or `content-range`; content-type matches `^(text/(?!event-stream)|application/(json|javascript|manifest\+json|xml)|image/svg\+xml)`; `content-length` absent or ≥ 1024. Then: body through `CompressionStream("gzip")`, delete `content-length`, set `content-encoding: gzip` and `vary: accept-encoding`. + - gzip when all of these hold: `accept-encoding` includes `gzip`; status 200; no `content-encoding` or `content-range`; content-type matches `^(text/(?!event-stream)|application/(json|javascript|manifest\+json|xml)|image/svg\+xml)`. Then: body through `CompressionStream("gzip")`, delete `content-length`, set `content-encoding: gzip` and `vary: accept-encoding`. (No size floor: `Response.json` and `Bun.file` responses carry no `content-length` here, so a `≥ 1024` rule never applied; final review.) - `serveFile` rules: - Decode the pathname; reject a NUL byte, `\`, or any `..` segment. The resolved path must start with its base dir plus the separator, and the target must be a regular file (`statSync().isFile()`). - Cache-control: `/assets/*` → `public, max-age=31536000, immutable`; `/sw.js` and `/event-stream-worker.js` → `no-cache`; other public and KaTeX files → `public, max-age=0`. diff --git a/server/http.test.ts b/server/http.test.ts index d0ab74a42..62960f77b 100644 --- a/server/http.test.ts +++ b/server/http.test.ts @@ -48,7 +48,7 @@ test("a config header overwrites the handler's, and redirects pass", () => { assert.equal(redirect.headers.get("cache-control"), "private, no-cache, max-age=0, must-revalidate"); }); -test("gzip applies to large compressible 200 responses only", async () => { +test("gzip applies to compressible 200 responses only", async () => { const gzip = { "accept-encoding": "gzip, deflate, br" }; const json = JSON.stringify({ text: "x".repeat(2048) }); const compressed = finalize("/api/sessions", Response.json(JSON.parse(json)), gzip); @@ -60,7 +60,6 @@ test("gzip applies to large compressible 200 responses only", async () => { const skipped = [ finalize("/api/events", new Response(json, { headers: { "content-type": "text/event-stream" } }), gzip), finalize("/api/files/a.txt", new Response(json, { status: 206, headers: { "content-type": "text/plain" } }), gzip), - finalize("/api/sessions", new Response("x".repeat(500), { headers: { "content-type": "application/json", "content-length": "500" } }), gzip), finalize("/api/sessions", Response.json(JSON.parse(json))), ]; for (const response of skipped) assert.equal(response.headers.get("content-encoding"), null); diff --git a/server/http.ts b/server/http.ts index 2a1b72bb6..cf4fde062 100644 --- a/server/http.ts +++ b/server/http.ts @@ -32,7 +32,6 @@ export function finalizeResponse(request: Request, response: Response): Response } if (pathname === "/" || pathname === "/login") headers.set("Cache-Control", INDEX_CACHE); let body = response.body; - const length = headers.get("content-length"); if ( body && request.headers.get("accept-encoding")?.includes("gzip") @@ -40,7 +39,6 @@ export function finalizeResponse(request: Request, response: Response): Response && !headers.has("content-encoding") && !headers.has("content-range") && COMPRESSIBLE.test(headers.get("content-type") ?? "") - && (length === null || Number(length) >= 1024) ) { body = body.pipeThrough(new CompressionStream("gzip")); headers.delete("content-length"); From b94a3858b6f4b6cd5b8645ab1fc0768dcd6c871b Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 14:33:36 +0000 Subject: [PATCH 25/81] feat(server): Last-Modified and 304 for static files serveFile sent max-age=0 and no-cache files without a validator, so KaTeX fonts and CSS, the icons and sw.js were re-downloaded on every revalidation. Each file now carries Last-Modified, and a GET or HEAD with a matching If-Modified-Since gets 304. --- docs/plans/2026-10-30-bun-runtime.md | 2 +- docs/specs/2026-10-30-bun-runtime-design.md | 2 +- server/http.test.ts | 16 ++++++++++++++++ server/http.ts | 13 +++++++++++-- 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/docs/plans/2026-10-30-bun-runtime.md b/docs/plans/2026-10-30-bun-runtime.md index 5e1c43e5f..bd3fbd792 100644 --- a/docs/plans/2026-10-30-bun-runtime.md +++ b/docs/plans/2026-10-30-bun-runtime.md @@ -333,7 +333,7 @@ The two notification routes are async, but every query is a microsecond-scale lo - gzip when all of these hold: `accept-encoding` includes `gzip`; status 200; no `content-encoding` or `content-range`; content-type matches `^(text/(?!event-stream)|application/(json|javascript|manifest\+json|xml)|image/svg\+xml)`. Then: body through `CompressionStream("gzip")`, delete `content-length`, set `content-encoding: gzip` and `vary: accept-encoding`. (No size floor: `Response.json` and `Bun.file` responses carry no `content-length` here, so a `≥ 1024` rule never applied; final review.) - `serveFile` rules: - Decode the pathname; reject a NUL byte, `\`, or any `..` segment. The resolved path must start with its base dir plus the separator, and the target must be a regular file (`statSync().isFile()`). - - Cache-control: `/assets/*` → `public, max-age=31536000, immutable`; `/sw.js` and `/event-stream-worker.js` → `no-cache`; other public and KaTeX files → `public, max-age=0`. + - Cache-control: `/assets/*` → `public, max-age=31536000, immutable`; `/sw.js` and `/event-stream-worker.js` → `no-cache`; other public and KaTeX files → `public, max-age=0`. Every file carries `Last-Modified` (its mtime), and a GET/HEAD whose `If-Modified-Since` is not older answers 304 (final review: without validators every revalidation re-downloaded the file). - The KaTeX dir is `path.join(path.dirname(Bun.resolveSync("katex/package.json", root)), "dist")`, mounted at `/katex/`. - `renderIndex`: replace `omp web` and the `apple-mobile-web-app-title` content with the HTML-escaped (`& < > " '`) `getInstallName(request.headers)`. Insert `` before ``. Read `dist/index.html` once at startup. diff --git a/docs/specs/2026-10-30-bun-runtime-design.md b/docs/specs/2026-10-30-bun-runtime-design.md index 002cfb6e0..2f6f0ee69 100644 --- a/docs/specs/2026-10-30-bun-runtime-design.md +++ b/docs/specs/2026-10-30-bun-runtime-design.md @@ -16,7 +16,7 @@ Non-goals: the WebSocket link itself; single-binary distribution (`bun build --c - **R1 Runtime and distribution.** Bun ≥ 1.4 runs the server. The npm package `bun` is a dependency pinned exactly (`"bun": "1.4.4"`), so `npm i -g @kahme247/ompweb` and `npx` bring Bun with them. The Node launcher `bin/omp-web.js` stays the npm `bin`. It resolves Bun in this order: the package's `bun` dependency, then its `@oven/bun--` platform package (used when the postinstall did not run), then `bun` on PATH (version ≥ 1.4.4). It then spawns the server under that Bun. Linux x64 is verified in Task 1. macOS is verified on the user's Mac and Windows in the repo's Windows CI, both with the packed-install smoke test (Task 8). - **R2 Next removed entirely.** This covers `next`, `eslint-config-next`, `next.config.ts`, the tsconfig `next` plugin, `.next`, `next/font`, `next/dynamic`, `next/navigation`, `next/headers`, `next/script` and `next/server`. A codemod turns `NextResponse.json` into `Response.json`, `NextRequest` into `Request` and `.nextUrl` into `new URL(req.url)`. `proxy.ts` becomes server middleware that returns `Response | null` (password gate and origin check, same behavior). `instrumentation.node.ts`'s `register()` runs once at server startup. `instrumentation.ts` is deleted. - **R3 Routes.** Route handler files stay at `app/api/**/route.ts`, keep their `(req, { params: Promise<…> })` signature (the context also carries `disableIdleTimeout`, see R4), and are found through one hand-written table, `server/routes.ts`, with one import and one entry per file. A test fails when the table and the files on disk differ. The table feeds `Bun.serve` `routes`: `[id]` becomes `:id` and `[...path]` becomes `*`, with the rest segments decoded into `params.path`. -- **R4 HTTP behavior.** Bun's default `idleTimeout` (10 s) stays, so a socket that stalls before it is authenticated is reaped. An `/api/` request that passed the password gate (except the sign-in route) gets `server.timeout(request, 0)`, and the host link gets it once its bearer token checks out, so SSE `/api/events` and the host link are never cut. Bun's default `maxRequestBodySize` (128 MiB) stays: it is above every handler's own limit (101 MB uploads, 64 MB link blobs) and still bounds the handlers that read a bare `req.json()`. Hashed assets under `/assets/` get `public, max-age=31536000, immutable`. `index.html` (for `/` and `/login`) gets `private, no-cache, max-age=0, must-revalidate`. `sw.js` and `event-stream-worker.js` get `no-cache`, and other `public/` files `public, max-age=0`. Compressible responses are gzip-compressed (Next did this). Unknown extensionless GET paths fall back to the SPA. The event-stream worker keeps its content-hash `?v=` URL. +- **R4 HTTP behavior.** Bun's default `idleTimeout` (10 s) stays, so a socket that stalls before it is authenticated is reaped. An `/api/` request that passed the password gate (except the sign-in route) gets `server.timeout(request, 0)`, and the host link gets it once its bearer token checks out, so SSE `/api/events` and the host link are never cut. Bun's default `maxRequestBodySize` (128 MiB) stays: it is above every handler's own limit (101 MB uploads, 64 MB link blobs) and still bounds the handlers that read a bare `req.json()`. Hashed assets under `/assets/` get `public, max-age=31536000, immutable`. `index.html` (for `/` and `/login`) gets `private, no-cache, max-age=0, must-revalidate`. `sw.js` and `event-stream-worker.js` get `no-cache`, and other `public/` files `public, max-age=0`. Static files carry `Last-Modified` and answer a matching `If-Modified-Since` with 304. Compressible responses are gzip-compressed (Next did this). Unknown extensionless GET paths fall back to the SPA. The event-stream worker keeps its content-hash `?v=` URL. - **R5 Node-only dependencies.** For each Node-only dependency or API that is a problem or a cost under Bun, a Bun built-in is checked first, and the Node dependency is kept only when no built-in fits. The resulting choices: - **Thumbnails:** `sharp` is replaced by `Bun.Image`. - **SQLite:** `node:sqlite` is replaced by `bun:sqlite`, which is synchronous like `DatabaseSync`, so the store APIs and their callers stay unchanged. diff --git a/server/http.test.ts b/server/http.test.ts index 62960f77b..5e14a1a1d 100644 --- a/server/http.test.ts +++ b/server/http.test.ts @@ -78,6 +78,22 @@ test("serveFile refuses traversal and sets the cache policy", async () => { assert.equal(await get("/assets"), null); }); +test("serveFile sends Last-Modified and answers a matching If-Modified-Since with 304", async () => { + const get = (headers: Record = {}, method = "GET") => + serveFile(new Request("http://localhost/icon.svg", { method, headers }), root, false); + const lastModified = (await get())?.headers.get("last-modified"); + assert.ok(lastModified); + const notModified = await get({ "if-modified-since": lastModified }); + assert.equal(notModified?.status, 304); + assert.equal(notModified?.body, null); + assert.equal(notModified?.headers.get("cache-control"), "public, max-age=0"); + const older = new Date(Date.parse(lastModified) - 1000).toUTCString(); + assert.equal((await get({ "if-modified-since": older }))?.status, 200); + assert.equal((await get({ "if-modified-since": "garbage" }))?.status, 200); + // RFC 9110: only GET and HEAD are conditional on If-Modified-Since. + assert.equal((await get({ "if-modified-since": lastModified }, "POST"))?.status, 200); +}); + test("serveFile marks hashed assets immutable", async () => { const packageDir = mkdtempSync(path.join(os.tmpdir(), "omp-web-serve-file-")); try { diff --git a/server/http.ts b/server/http.ts index cf4fde062..c74bf2a64 100644 --- a/server/http.ts +++ b/server/http.ts @@ -71,12 +71,21 @@ export async function serveFile(request: Request, root: string, dev: boolean): P for (const base of bases) { const file = path.resolve(base, relative); if (!file.startsWith(base + path.sep)) continue; + let mtime: Date; try { - if (!statSync(file).isFile()) continue; + const stat = statSync(file); + if (!stat.isFile()) continue; + mtime = stat.mtime; } catch { continue; } - return new Response(Bun.file(file), { headers: { "Cache-Control": cacheControl(pathname) } }); + const headers = { "Cache-Control": cacheControl(pathname), "Last-Modified": mtime.toUTCString() }; + // HTTP dates carry whole seconds; RFC 9110 makes only GET and HEAD conditional on If-Modified-Since. + const since = Date.parse(request.headers.get("if-modified-since") ?? ""); + if ((request.method === "GET" || request.method === "HEAD") && since >= Math.floor(mtime.getTime() / 1000) * 1000) { + return new Response(null, { status: 304, headers }); + } + return new Response(Bun.file(file), { headers }); } return null; } From 58a8a6c77874a0839708f08c3720079a4c33eb63 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 14:34:10 +0000 Subject: [PATCH 26/81] ci: smoke a packed install with install scripts disabled npm install -g ran Bun's postinstall, so CI never covered the launcher's fallback to the @oven/bun-- platform package. --- .github/workflows/verify-pr.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/verify-pr.yml b/.github/workflows/verify-pr.yml index a2be53569..6984764f5 100644 --- a/.github/workflows/verify-pr.yml +++ b/.github/workflows/verify-pr.yml @@ -68,6 +68,13 @@ jobs: npm install -g --prefix "$RUNNER_TEMP/ompweb-prefix" ./kahme247-ompweb-*.tgz npm run smoke -- --package "$(npm root -g --prefix "$RUNNER_TEMP/ompweb-prefix")/@kahme247/ompweb" + # Bun's postinstall does not run here: the launcher must fall back to @oven/bun-- (spec R1). + - name: Packed install smoke test (install scripts disabled) + shell: bash + run: | + npm install -g --ignore-scripts --prefix "$RUNNER_TEMP/ompweb-prefix-no-scripts" ./kahme247-ompweb-*.tgz + npm run smoke -- --package "$(npm root -g --prefix "$RUNNER_TEMP/ompweb-prefix-no-scripts")/@kahme247/ompweb" + - name: Parse Windows PowerShell scripts (Windows only) if: runner.os == 'Windows' shell: pwsh From 41d069398a319a113d9705224ec062d4d9917f90 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 14:36:34 +0000 Subject: [PATCH 27/81] test: drop tests that cannot fail server/client-env.test.ts recomputed clientEnv's own formula, and the x-middleware-* check in web-auth.test.mjs's gate() could never fire (no code sets such a header). The Windows orphan-kill test stays: it is the one the plan's Task 7 requires. --- docs/plans/2026-10-30-bun-runtime.md | 2 +- lib/web-auth.test.mjs | 8 ++------ server/client-env.test.ts | 17 ----------------- 3 files changed, 3 insertions(+), 24 deletions(-) delete mode 100644 server/client-env.test.ts diff --git a/docs/plans/2026-10-30-bun-runtime.md b/docs/plans/2026-10-30-bun-runtime.md index bd3fbd792..5a59d4c1f 100644 --- a/docs/plans/2026-10-30-bun-runtime.md +++ b/docs/plans/2026-10-30-bun-runtime.md @@ -28,7 +28,7 @@ ## Review Focus 1. **SSE and host link through an idle gap longer than Bun's 10 s default:** `/api/events` stays open and keeps delivering (Task 5 `server/app.test.ts` idle test, Task 8 smoke step). -2. **Sign-in over the new server:** with a password set, `/?session=x` → 307 `/login?next=%2F%3Fsession%3Dx`. The login page's `/assets/*` load without a cookie, `/api/hosts/link` answers its own 401, and no `x-middleware-*` header appears (Task 5 `lib/web-auth.test.mjs` + `server/app.test.ts`). +2. **Sign-in over the new server:** with a password set, `/?session=x` → 307 `/login?next=%2F%3Fsession%3Dx`. The login page's `/assets/*` load without a cookie and `/api/hosts/link` answers its own 401 (Task 5 `lib/web-auth.test.mjs` + `server/app.test.ts`). No code sets an `x-middleware-*` header any more, so the final review dropped that never-firing assertion. 3. **Static path traversal:** `/..%2Fpackage.json`, `/%2e%2e/package.json`, `/assets/..%5C..%5Cpackage.json` and a NUL byte all answer 404 and never a file outside `dist/`, `public/` or the KaTeX dir (Task 5 `server/http.test.ts`). 4. **Windows in-app update:** no process runs from the package's `bun.exe` while `npm install -g` replaces it. The update worker command is `OMP_WEB_NODE_BIN`, and the worker stops the server first (Task 7 `lib/self-update.test.mjs`). 5. **Installs where Bun's postinstall did not run** (`--ignore-scripts`, `bun add -g` without trusted deps, npm blocking scripts): the launcher uses the `@oven/bun--` binary (Task 1 `bin/bun-runtime.test.mjs`, Task 8 packed smoke). diff --git a/lib/web-auth.test.mjs b/lib/web-auth.test.mjs index 5254a2d9d..f701982f2 100644 --- a/lib/web-auth.test.mjs +++ b/lib/web-auth.test.mjs @@ -54,12 +54,8 @@ function withEnvVars(values, run) { } } -/** proxy() for a URL; a Next-style x-middleware-* header must never reach a client. */ -function gate(url, init) { - const response = proxy(new Request(url, init)); - for (const name of response?.headers.keys() ?? []) assert.doesNotMatch(name, /^x-middleware-/i, url); - return response; -} +/** proxy() for a URL. */ +const gate = (url, init) => proxy(new Request(url, init)); test("accepts only the hashed password and validates signed sessions", () => { withEnvVars({ OMP_WEB_PASSWORD_HASH: PASSWORD_HASH }, () => { diff --git a/server/client-env.test.ts b/server/client-env.test.ts deleted file mode 100644 index 8999f8985..000000000 --- a/server/client-env.test.ts +++ /dev/null @@ -1,17 +0,0 @@ -import assert from "node:assert/strict"; -import { createHash } from "node:crypto"; -import { readFileSync } from "node:fs"; -import path from "node:path"; -import test from "node:test"; -import { clientEnv } from "./client-env"; - -const root = path.join(import.meta.dir, ".."); - -test("clientEnv carries the package version and the worker content hash", () => { - const { version } = JSON.parse(readFileSync(path.join(root, "package.json"), "utf8")) as { version: string }; - const workerHash = createHash("sha256").update(readFileSync(path.join(root, "public", "event-stream-worker.js"))).digest("hex").slice(0, 12); - assert.deepEqual(clientEnv(root), { - OMP_WEB_PUBLIC_APP_VERSION: version, - OMP_WEB_PUBLIC_EVENT_STREAM_WORKER_VERSION: workerHash, - }); -}); From ab7a0308c2146d87a88f169fa8834958cbc1ba52 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 14:39:16 +0000 Subject: [PATCH 28/81] fix(proxy): leave /_bun/ public in dev only Production serves every bundle from /assets/, so the dev-only /_bun/ prefix only widened the production gate. --- lib/web-auth.test.mjs | 17 ++++++++++++++++- proxy.ts | 6 +++--- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/lib/web-auth.test.mjs b/lib/web-auth.test.mjs index f701982f2..142540656 100644 --- a/lib/web-auth.test.mjs +++ b/lib/web-auth.test.mjs @@ -255,7 +255,7 @@ test("accepts the trusted proxy header only when its SHA-256 matches the configu test("leaves the login page's assets, the icons and the service worker outside password protection", () => { withEnvVars({ OMP_WEB_PASSWORD_HASH: PASSWORD_HASH }, () => { - for (const path of ["/sw.js", "/assets/a.js", "/_bun/client/index.js", "/favicon.ico", "/icon.svg", "/icon.png", "/icon-192.png", "/badge-96.png"]) { + for (const path of ["/sw.js", "/assets/a.js", "/favicon.ico", "/icon.svg", "/icon.png", "/icon-192.png", "/badge-96.png"]) { assert.equal(gate(`http://localhost:30177${path}`), null, path); } assert.equal(gate("http://localhost:30177/api/sessions").status, 401); @@ -263,6 +263,21 @@ test("leaves the login page's assets, the icons and the service worker outside p }); }); +test("leaves Bun's dev bundles under /_bun/ public in dev only", () => { + withEnvVars({ OMP_WEB_PASSWORD_HASH: PASSWORD_HASH }, () => { + const bundle = "http://localhost:30177/_bun/client/index.js"; + assert.equal(gate(bundle).status, 307); + const previous = process.env.NODE_ENV; + process.env.NODE_ENV = "development"; + try { + assert.equal(gate(bundle), null); + } finally { + if (previous === undefined) delete process.env.NODE_ENV; + else process.env.NODE_ENV = previous; + } + }); +}); + test("leaves the host link to its own bearer check, and nothing else under /api/hosts", () => { withEnvVars({ OMP_WEB_PASSWORD_HASH: PASSWORD_HASH }, () => { assert.equal(gate("http://localhost:30177/api/hosts/link"), null); diff --git a/proxy.ts b/proxy.ts index ab7ba3afa..0dc2e76fc 100644 --- a/proxy.ts +++ b/proxy.ts @@ -9,7 +9,7 @@ import { } from "@/lib/web-auth"; // The sign-in screen still needs its JavaScript, CSS and fonts (/assets/, and -// Bun's dev bundles under /_bun/) before a session exists; these and the +// in dev only Bun's bundles under /_bun/) before a session exists; these and the // ordinary browser icons are public assets, not workspace data. /api/manifest // stays authenticated: its link includes credentials and its embedded // installation icons need no separate request. The service worker script holds @@ -17,7 +17,7 @@ import { // the sign-in cookie expired. /api/hosts/link and its blob/ subpath (only // those: the pattern is anchored) authenticate the host's bearer token // themselves before they read any body (lib/hosts/hub.ts). -export const UNGATED = /^\/(?:assets\/|_bun\/|favicon\.ico|icon\.svg|icon\.png|icon-192\.png|badge-96\.png|sw\.js|api\/hosts\/link(?:\/|$))/; +export const UNGATED = /^\/(?:assets\/|favicon\.ico|icon\.svg|icon\.png|icon-192\.png|badge-96\.png|sw\.js|api\/hosts\/link(?:\/|$))/; // Relative: request.url is always http:// under Bun, so an absolute Location would leave https behind a TLS proxy. const redirect = (location: string) => new Response(null, { status: 307, headers: { location } }); @@ -26,7 +26,7 @@ const redirect = (location: string) => new Response(null, { status: 307, headers export function proxy(request: Request): Response | null { const url = new URL(request.url); const { pathname } = url; - if (UNGATED.test(pathname)) return null; + if (UNGATED.test(pathname) || (process.env.NODE_ENV === "development" && pathname.startsWith("/_bun/"))) return null; if (pathname.startsWith("/api/") && shouldCheckApiRequestOrigin(request) && !isApiRequestOriginAllowed(request)) { return Response.json({ error: "Cross-origin API requests are not allowed" }, { status: 403 }); } From 4e4f0f8753c67c278cc6aadcb4539993962c896f Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 14:41:34 +0000 Subject: [PATCH 29/81] build: fail when the stylesheet cannot be moved before the inline scripts The replace silently dropped the stylesheet when dist/index.html had no inline ', + ); // A file written at run time, so no static import; Bun turns it into an HTML bundle as dev.ts's import does. const { default: html } = await import(path.join(root, "dev.html")); const dev = startServer({ port: 0, hostname: "127.0.0.1", dev: true, root, html }); @@ -175,7 +179,10 @@ test("dev pages render when HTTP_PROXY points nowhere", async (t) => { }); const page = await fetch(new URL("/", dev.url), { proxy: false }); assert.equal(page.status, 200); - assert.match(await page.text(), /void 0"), body); }); /** Sends `head` (request line and headers) and nothing more; resolves once the server hangs up. */ diff --git a/server/app.ts b/server/app.ts index 063559f2f..56e79a020 100644 --- a/server/app.ts +++ b/server/app.ts @@ -2,7 +2,7 @@ import { readFileSync } from "node:fs"; import path from "node:path"; import { parseArgs } from "node:util"; import { proxy } from "@/proxy"; -import { finalizeResponse, INDEX_CACHE, renderIndex, serveFile } from "./http"; +import { finalizeResponse, INDEX_CACHE, renderIndex, serveFile, stylesheetFirst } from "./http"; import { dispatch, ROUTE_MODULES, routePattern } from "./routes"; export function parseListenArgs(argv: string[], defaultPort: number): { port: number; hostname: string } { @@ -70,7 +70,7 @@ async function devIndex(server: Bun.Server): Promise { if (url.hostname === "0.0.0.0") url.hostname = "127.0.0.1"; else if (url.hostname === "[::]") url.hostname = "[::1]"; // Never through HTTP(S)_PROXY: a proxy cannot reach this loopback server. - return (await fetch(url, { proxy: false })).text(); + return stylesheetFirst(await (await fetch(url, { proxy: false })).text()); } export function startServer(options: { port: number; hostname: string; dev: boolean; root: string; html?: Bun.HTMLBundle }): Bun.Server { diff --git a/server/http.ts b/server/http.ts index c74bf2a64..e3b9f9bfa 100644 --- a/server/http.ts +++ b/server/http.ts @@ -100,3 +100,15 @@ export function renderIndex(html: string, request: Request): string { .replace(' `", ''); } + +/** + * Bun moves the entry stylesheet to the end of , after the pre-paint scripts. The theme script reads --bg from + * it for theme-color, and a stylesheet only blocks the scripts that follow it, so put it before them. + */ +export function stylesheetFirst(html: string): string { + const stylesheet = /]*>/.exec(html)?.[0]; + if (!stylesheet) throw new Error("the page has no stylesheet link"); + // Without this anchor the replace below would drop the stylesheet from the page. + if (!html.includes(" +

diff --git a/components/RouteLoadingFallback.test.mjs b/components/RouteLoadingFallback.test.mjs new file mode 100644 index 000000000..0d26b0a9e --- /dev/null +++ b/components/RouteLoadingFallback.test.mjs @@ -0,0 +1,26 @@ +import assert from "node:assert/strict"; +import { readFile } from "node:fs/promises"; +import test from "node:test"; +import { JSDOM } from "jsdom"; +import { createElement } from "react"; +import { renderToStaticMarkup } from "react-dom/server"; +import { RouteLoadingFallback } from "./RouteLoadingFallback"; + +const indexHtml = () => readFile(new URL("../app/index.html", import.meta.url), "utf8"); + +test("app/index.html carries the RouteLoadingFallback markup in #root", async () => { + const html = (await indexHtml()).replace(/>\s+<"); + const rootStart = html.indexOf('
rootStart, "the static skeleton differs from the component"); +}); + +test("the static skeleton stays on app pages and is gone on /login before any bundle runs", async () => { + const html = await indexHtml(); + for (const [url, shown] of [["http://localhost/", true], ["http://localhost/?session=x", true], ["http://localhost/login?next=%2F", false]]) { + // Inline scripts only: JSDOM loads neither the stylesheet nor the module script. + const { window } = new JSDOM(html, { url, runScripts: "dangerously" }); + assert.equal(window.document.querySelector("#root .route-fallback") !== null, shown, url); + window.close(); + } +}); diff --git a/components/RouteLoadingFallback.tsx b/components/RouteLoadingFallback.tsx new file mode 100644 index 000000000..462de9602 --- /dev/null +++ b/components/RouteLoadingFallback.tsx @@ -0,0 +1,33 @@ +/** + * The shell silhouette shown until AppShell renders. app/index.html carries the same markup as static HTML, so the + * browser paints it as soon as the page and its stylesheet arrive (Next server-rendered it); RouteLoadingFallback.test + * keeps the two copies identical. + */ +export function RouteLoadingFallback() { + return ( +
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ); +} diff --git a/docs/plans/2026-10-30-bun-runtime.md b/docs/plans/2026-10-30-bun-runtime.md index 91e80decd..624ed68a5 100644 --- a/docs/plans/2026-10-30-bun-runtime.md +++ b/docs/plans/2026-10-30-bun-runtime.md @@ -87,6 +87,8 @@ | `fs.watch` in the file viewer channel (Bun drops an event within ~2 ms of the previous one) | Bun has no other file-watch API (`--watch`/`--hot` watch the process's own modules) | Keep `fs.watch`; `lib/event-stream-hub.ts` re-stats once 50 ms after the last event | | Bun's HTML bundler moves the entry `` to the end of ``, after the pre-paint theme script that reads `--bg` | No bundler option for tag placement | `scripts/build-client.ts` moves the link before the first inline script in `dist/index.html` (dev keeps Bun's order) | | Tailwind's `color-mix()` polyfill (a full-strength fallback plus a nested `@supports (color: color-mix(in lab, red, red))` override per declaration): Bun 1.4.4's CSS bundler drops an `@supports` rule that follows one with the same condition, so rules with two such declarations, and keyframes, lost their overrides | Bun CSS targets: fixed (Chrome 80, Safari 14), no `Bun.build` CSS option, no browserslist; Bun keeps `color-mix()` with `var()` as written. `bun-plugin-tailwind` 0.1.2 has no `polyfills` option | `scripts/tailwind-plugin.ts` wraps the plugin and removes the polyfill from Tailwind's output (build and dev); Next's targets (Chrome 111, Safari 16.4) support `color-mix()`. `scripts/tailwind-plugin.test.ts` fails if a source `color-mix()` is missing from the built CSS | +| next/font preloaded each family's subsets (Link header) | Bun's HTML bundler adds no font preloads; tried `` tags from `scripts/build-client.ts` | Dropped (reverted): on Slow 4G the SPA's first paint moved from 3.2 s to 4.0 s, because the fonts share the link with the bundle it needs to paint. The metric-adjusted `* Fallback` faces cover the swap instead | +| Next server-rendered the route loading skeleton (and the shell) before the bundle ran | `Bun.serve` serves the SPA as static HTML; no server rendering | `app/index.html` carries the `components/RouteLoadingFallback.tsx` markup in `#root`, so it paints with the HTML and CSS and `createRoot` replaces it; an inline script removes it on `/login`. `components/RouteLoadingFallback.test.mjs` keeps the two copies identical | **Bun.SQL (async) vs bun:sqlite for the notification store — assessment.** `lib/notification-hub.ts` calls the store synchronously on hot paths: - `publishNotification` (sync, called from session event handling) runs `listDevices` and `recordHistory`; From a0c85797b972f603034c0853ffdbe70a3fbc9b36 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 30 Oct 2026 22:37:19 +0000 Subject: [PATCH 58/81] fix(client): paint the sign-in form from the static HTML, as Next did Next server-rendered the sign-in form on /login; the Bun SPA showed an empty page there until its bundle ran (about 3.1 s on Slow 4G). app/index.html now carries LoginForm's first render in a