diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e5d24cc..70ea34b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -29,6 +29,43 @@ jobs:
- run: pnpm typecheck
- run: pnpm test:coverage
+ # 単独アプリ (apps/web) に対して現像の E2E を回す。WebGL は SwiftShader。公開リポジトリで時間の制約が無く、
+ # 30 秒ほどで終わるので、すべての PR で回す
+ e2e:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
+ - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
+ with:
+ node-version: 24.21.0
+ cache: pnpm
+ - run: pnpm install --frozen-lockfile
+ # 認識のモデル (約 60 MB) は一覧 (bin/assets.ts) が変わらない限り同じ。毎回ダウンロードしない
+ - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
+ with:
+ path: apps/web/models
+ key: models-${{ hashFiles('packages/editor-engine/bin/assets.ts', 'pnpm-lock.yaml') }}
+ # Chromium 本体は Playwright の版でキャッシュし、OS のライブラリだけ毎回入れる
+ - id: playwright-version
+ run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> "$GITHUB_OUTPUT"
+ - id: playwright-cache
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
+ with:
+ path: ~/.cache/ms-playwright
+ key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
+ - if: steps.playwright-cache.outputs.cache-hit != 'true'
+ run: pnpm exec playwright install --with-deps chromium
+ - if: steps.playwright-cache.outputs.cache-hit == 'true'
+ run: pnpm exec playwright install-deps chromium
+ - run: pnpm e2e
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+ if: failure()
+ with:
+ name: playwright-results
+ path: test-results/
+ retention-days: 7
+
# シークレットの混入と高リスクの脆弱性。audit は警告に留める
security:
runs-on: ubuntu-latest
diff --git a/AGENTS.md b/AGENTS.md
index d920c57..7d3cb3d 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -9,8 +9,8 @@ lumorphia/editor: ブラウザで動く写真の現像エディタ。描画 (Pix
packages/editor-recipe @lumorphia/editor-recipe 編集レシピ (zod)。ブラウザでもサーバーでも動く
packages/editor-engine @lumorphia/editor-engine 状態、描画、推論 (Worker)、下書き、CLI editor-models
packages/editor-react @lumorphia/editor-react UI。
-apps/web 単独アプリ (E2E の土台を兼ねる)
-e2e/ E2E (prismtone から移した。apps/web を土台にして回す: #3)
+apps/web 単独アプリ (Vite + React。server/serve.ts が COOP / COEP / CSP 付きで配る。E2E の土台を兼ねる)
+e2e/ E2E (apps/web に対して Playwright で回す。e2e/README.md)
docs/design/ 設計 (edit-recipe.md: レシピ、editor.md: 画面・描画・推論・テスト)
docs/adr/ 設計判断 (README.md に一覧と prismtone の番号との対応)
```
@@ -67,5 +67,7 @@ pnpm test # 単体テスト (ビルド不要)
pnpm test:coverage # カバレッジ付き
pnpm typecheck
pnpm lint && pnpm format:check
-pnpm build # 各パッケージを dist に
+pnpm build:packages # 各パッケージを dist に
+pnpm e2e # パッケージと apps/web をビルドして E2E
+pnpm --filter @lumorphia/editor-web dev # 単独アプリの dev サーバー
```
diff --git a/apps/web/index.html b/apps/web/index.html
new file mode 100644
index 0000000..7f839a1
--- /dev/null
+++ b/apps/web/index.html
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+ 現像 - Lumorphia
+
+
+
+
+
+
diff --git a/apps/web/package.json b/apps/web/package.json
new file mode 100644
index 0000000..cfeaabb
--- /dev/null
+++ b/apps/web/package.json
@@ -0,0 +1,27 @@
+{
+ "name": "@lumorphia/editor-web",
+ "version": "0.0.0",
+ "private": true,
+ "type": "module",
+ "scripts": {
+ "dev": "pnpm --dir ../.. build:packages && pnpm models && vite",
+ "build": "pnpm --dir ../.. build:packages && pnpm models && vite build",
+ "models": "editor-models fetch --out models",
+ "serve": "node server/serve.ts",
+ "typecheck": "tsc -p tsconfig.json && tsc -p tsconfig.server.json",
+ "test": "vitest run"
+ },
+ "dependencies": {
+ "@lumorphia/editor-engine": "workspace:*",
+ "@lumorphia/editor-react": "workspace:*",
+ "react": "^19.3.0",
+ "react-dom": "^19.3.0"
+ },
+ "devDependencies": {
+ "@tailwindcss/vite": "^4.3.3",
+ "@types/react": "^19.3.0",
+ "@types/react-dom": "^19.3.0",
+ "tailwindcss": "^4.3.3",
+ "vite": "^8.3.2"
+ }
+}
diff --git a/apps/web/server/serve.ts b/apps/web/server/serve.ts
new file mode 100644
index 0000000..329ab79
--- /dev/null
+++ b/apps/web/server/serve.ts
@@ -0,0 +1,66 @@
+/**
+ * 単独アプリを配る。vite build の dist と、editor-models が揃えた models/ (/models/ で配る) を返す。
+ * E2E の土台を兼ねる。ヘッダの決まりは static.ts
+ *
+ * PORT (既定 4300)、HOST (既定 127.0.0.1)
+ */
+import { createReadStream } from "node:fs";
+import { stat } from "node:fs/promises";
+import { createServer } from "node:http";
+import path from "node:path";
+import { cacheControl, contentType, resolveStatic, securityHeaders } from "./static.ts";
+
+const here = import.meta.dirname;
+const DIST = path.resolve(here, "../dist");
+const MODELS = path.resolve(here, "../models");
+const PORT = Number(process.env.PORT ?? 4300);
+const HOST = process.env.HOST ?? "127.0.0.1";
+
+async function isFile(file: string): Promise {
+ try {
+ return (await stat(file)).isFile();
+ } catch {
+ return false;
+ }
+}
+
+/** URL を配るファイルに。モデルは models/、それ以外は dist/。拡張子の無いパスはページ (index.html) */
+async function fileFor(url: string): Promise {
+ const pathname = url.split("?")[0] ?? "/";
+ if (pathname.startsWith("/models/")) {
+ return resolveStatic(MODELS, pathname.slice("/models".length));
+ }
+ const file = resolveStatic(DIST, pathname);
+ if (file && (await isFile(file))) return file;
+ return path.extname(pathname) === "" ? path.join(DIST, "index.html") : null;
+}
+
+const server = createServer(async (req, res) => {
+ const headers = securityHeaders();
+ if (req.method !== "GET" && req.method !== "HEAD") {
+ res.writeHead(405, { ...headers, allow: "GET, HEAD" }).end();
+ return;
+ }
+ const url = req.url ?? "/";
+ const file = await fileFor(url);
+ if (!file || !(await isFile(file))) {
+ res
+ .writeHead(404, { ...headers, "content-type": "text/plain; charset=utf-8" })
+ .end("not found");
+ return;
+ }
+ res.writeHead(200, {
+ ...headers,
+ "content-type": contentType(file),
+ "cache-control": cacheControl(url),
+ });
+ if (req.method === "HEAD") {
+ res.end();
+ return;
+ }
+ createReadStream(file).pipe(res);
+});
+
+server.listen(PORT, HOST, () => {
+ console.log(`editor-web: http://${HOST}:${PORT}`);
+});
diff --git a/apps/web/server/static.test.ts b/apps/web/server/static.test.ts
new file mode 100644
index 0000000..3a49f62
--- /dev/null
+++ b/apps/web/server/static.test.ts
@@ -0,0 +1,86 @@
+import path from "node:path";
+import { describe, expect, it } from "vitest";
+import { cacheControl, contentType, resolveStatic, securityHeaders } from "./static.ts";
+
+const root = "/srv/web";
+
+describe("resolveStatic", () => {
+ it("maps a URL path to a file under the root", () => {
+ expect(resolveStatic(root, "/assets/app.js")).toBe(path.join(root, "assets/app.js"));
+ });
+
+ it("serves index.html for the root", () => {
+ expect(resolveStatic(root, "/")).toBe(path.join(root, "index.html"));
+ });
+
+ it("ignores the query string", () => {
+ expect(resolveStatic(root, "/?draft=abc")).toBe(path.join(root, "index.html"));
+ });
+
+ it("refuses to climb out of the root", () => {
+ expect(resolveStatic(root, "/../etc/passwd")).toBeNull();
+ });
+
+ it("refuses an encoded climb out of the root", () => {
+ expect(resolveStatic(root, "/%2e%2e/%2e%2e/etc/passwd")).toBeNull();
+ });
+
+ it("refuses a null byte", () => {
+ expect(resolveStatic(root, "/index.html%00.js")).toBeNull();
+ });
+
+ it("refuses a malformed escape", () => {
+ expect(resolveStatic(root, "/%E0%A4%A")).toBeNull();
+ });
+});
+
+describe("contentType", () => {
+ it("serves WASM with its own type so it can be compiled while streaming", () => {
+ expect(contentType("/x/ort.wasm")).toBe("application/wasm");
+ });
+
+ it("serves .mjs as JavaScript", () => {
+ expect(contentType("/x/ort.mjs")).toBe("text/javascript; charset=utf-8");
+ });
+
+ it("falls back to binary for model files", () => {
+ expect(contentType("/x/face_landmarker.task")).toBe("application/octet-stream");
+ });
+});
+
+describe("cacheControl", () => {
+ it("caches hashed assets forever", () => {
+ expect(cacheControl("/assets/app-abc123.js")).toBe("public, max-age=31536000, immutable");
+ });
+
+ it("caches versioned models forever", () => {
+ expect(cacheControl("/models/ort-v1/x.wasm")).toBe("public, max-age=31536000, immutable");
+ });
+
+ it("revalidates the page itself", () => {
+ expect(cacheControl("/")).toBe("no-cache");
+ });
+});
+
+describe("securityHeaders", () => {
+ const headers = securityHeaders();
+
+ it("isolates the page so the segmenter can use threads (COOP + COEP)", () => {
+ expect(headers["cross-origin-opener-policy"]).toBe("same-origin");
+ expect(headers["cross-origin-embedder-policy"]).toBe("credentialless");
+ });
+
+ it("allows WebAssembly without allowing eval", () => {
+ const csp = headers["content-security-policy"] ?? "";
+ expect(csp).toContain("script-src 'self' 'wasm-unsafe-eval'");
+ expect(csp).not.toContain("'unsafe-eval'");
+ });
+
+ it("allows blob and data images for the preview", () => {
+ expect(headers["content-security-policy"]).toContain("img-src 'self' data: blob:");
+ });
+
+ it("refuses to be framed", () => {
+ expect(headers["content-security-policy"]).toContain("frame-ancestors 'none'");
+ });
+});
diff --git a/apps/web/server/static.ts b/apps/web/server/static.ts
new file mode 100644
index 0000000..4627aec
--- /dev/null
+++ b/apps/web/server/static.ts
@@ -0,0 +1,78 @@
+/**
+ * 単独アプリの配信 (serve.ts) の決まり。外から来るパスを扱うので、純粋関数にしてテストする。
+ * ヘッダは lumorphia/prismtone の /edit と同じ考え方 (ADR-0005: ブラウザで描く、COOP / COEP で
+ * SharedArrayBuffer を使えるようにして onnxruntime-web をマルチスレッドで動かす、CSP に unsafe-eval を入れない)
+ */
+import path from "node:path";
+
+/** URL のパスを root の下のファイルに。外に出る・不正なものは null */
+export function resolveStatic(root: string, urlPath: string): string | null {
+ const pathname = urlPath.split("?")[0] ?? "/";
+ let decoded: string;
+ try {
+ decoded = decodeURIComponent(pathname);
+ } catch {
+ return null;
+ }
+ if (decoded.includes("\0")) return null;
+ const relative = decoded === "/" ? "index.html" : decoded.replace(/^\/+/, "");
+ const resolved = path.resolve(root, relative);
+ const base = path.resolve(root);
+ if (resolved !== base && !resolved.startsWith(base + path.sep)) return null;
+ return resolved;
+}
+
+const TYPES: Readonly> = {
+ ".html": "text/html; charset=utf-8",
+ ".js": "text/javascript; charset=utf-8",
+ ".mjs": "text/javascript; charset=utf-8",
+ ".css": "text/css; charset=utf-8",
+ ".json": "application/json; charset=utf-8",
+ ".wasm": "application/wasm",
+ ".png": "image/png",
+ ".jpg": "image/jpeg",
+ ".svg": "image/svg+xml",
+ ".ico": "image/x-icon",
+ ".webmanifest": "application/manifest+json",
+};
+
+export function contentType(file: string): string {
+ return TYPES[path.extname(file).toLowerCase()] ?? "application/octet-stream";
+}
+
+/** ファイル名にハッシュが付くもの (Vite の assets) と版付きのモデルは変わらない */
+export function cacheControl(urlPath: string): string {
+ return urlPath.startsWith("/assets/") || urlPath.startsWith("/models/")
+ ? "public, max-age=31536000, immutable"
+ : "no-cache";
+}
+
+const CSP: Readonly> = {
+ "default-src": ["'self'"],
+ // PixiJS と MediaPipe / onnxruntime-web の WASM に 'wasm-unsafe-eval'。インラインのスクリプトは無い
+ "script-src": ["'self'", "'wasm-unsafe-eval'"],
+ // React の style 属性
+ "style-src": ["'self'", "'unsafe-inline'"],
+ // 現像のプレビューと書き出し
+ "img-src": ["'self'", "data:", "blob:"],
+ "font-src": ["'self'", "data:"],
+ "connect-src": ["'self'"],
+ "worker-src": ["'self'", "blob:"],
+ "frame-ancestors": ["'none'"],
+ "form-action": ["'self'"],
+ "base-uri": ["'self'"],
+ "object-src": ["'none'"],
+};
+
+export function securityHeaders(): Record {
+ return {
+ "content-security-policy": Object.entries(CSP)
+ .map(([k, v]) => `${k} ${v.join(" ")}`)
+ .join("; "),
+ "cross-origin-opener-policy": "same-origin",
+ "cross-origin-embedder-policy": "credentialless",
+ "x-content-type-options": "nosniff",
+ "referrer-policy": "strict-origin-when-cross-origin",
+ "permissions-policy": "camera=(), microphone=(), geolocation=()",
+ };
+}
diff --git a/apps/web/src/app.css b/apps/web/src/app.css
new file mode 100644
index 0000000..e7d0baa
--- /dev/null
+++ b/apps/web/src/app.css
@@ -0,0 +1,127 @@
+@import "tailwindcss";
+/* 現像の UI は packages/editor-react にある。Tailwind はここを自分では走査しない */
+@source "../../../packages/editor-react/src";
+
+/*
+ * 配色トークン。今は lumorphia/prismtone の apps/app/web/app.css と同じ値。
+ * エディタの UI はこの意味名 (surface、ink、line、accent ...) だけを使う。既定のテーマをパッケージに持たせるかは #5 で決める
+ */
+:root {
+ color-scheme: light;
+ --surface: #faf6ef;
+ --surface-raised: #fffdf8;
+ --surface-muted: #f3ecdf;
+ --surface-hover: #efe6d6;
+ --ink: #2a211b;
+ --ink-secondary: #5a4a3d;
+ /* 地 3 色 (surface / raised / muted) のどれに載せても 4.5:1 を超える (WCAG AA)。#8a7767 は 3.97 で足りなかった */
+ --ink-muted: #7a6757;
+ --line: #d9cbb8;
+ --line-soft: #e9dfcf;
+ --accent: #c2410c;
+ --accent-strong: #9a3412;
+ --accent-ink: #fff8f1;
+ /*
+ * 形。角丸と影も色と同じくここでだけ決める。影は明るい地の上でカードが少し浮いて見える程度
+ * (薄すぎると見えない。カードの間隔 20px とセット)。トップと一覧に当てている。他の画面は追って
+ */
+ --radius-card: 0.875rem;
+ --radius-control: 0.625rem;
+ --shadow-color: 42 33 27;
+ --shadow-card:
+ 0 2px 6px rgb(var(--shadow-color) / 0.1), 0 12px 24px -8px rgb(var(--shadow-color) / 0.3);
+ --shadow-card-hover:
+ 0 4px 10px rgb(var(--shadow-color) / 0.12), 0 20px 36px -10px rgb(var(--shadow-color) / 0.4);
+ --shadow-hero: 0 10px 30px -12px rgb(var(--shadow-color) / 0.35);
+}
+
+/*
+ * ダークの値。 で明示されたとき、または data-theme が light でなく OS がダークのとき。
+ * dark: ユーティリティも同じ条件 (下の @custom-variant)
+ */
+@custom-variant dark {
+ &:where([data-theme="dark"], [data-theme="dark"] *) {
+ @slot;
+ }
+ @media (prefers-color-scheme: dark) {
+ &:where(:root:not([data-theme="light"]), :root:not([data-theme="light"]) *) {
+ @slot;
+ }
+ }
+}
+
+:root[data-theme="dark"] {
+ color-scheme: dark;
+ --surface: #221a1e;
+ --surface-raised: #2e2429;
+ --surface-muted: #2e2429;
+ --surface-hover: #3b2f35;
+ --ink: #f6eef0;
+ --ink-secondary: #dccbd1;
+ --ink-muted: #ab959c;
+ --line: #5e4a52;
+ --line-soft: #40323a;
+ --accent: #f28b7d;
+ --accent-strong: #f6a89d;
+ --accent-ink: #221a1e;
+ --shadow-color: 0 0 0;
+ /* ダークでは黒い影が地に溶けるので、薄い白の縁取りで面を立たせる */
+ --shadow-card:
+ 0 0 0 1px rgb(255 255 255 / 0.08), 0 2px 6px rgb(0 0 0 / 0.35),
+ 0 12px 24px -8px rgb(0 0 0 / 0.6);
+ --shadow-card-hover:
+ 0 0 0 1px rgb(255 255 255 / 0.14), 0 4px 10px rgb(0 0 0 / 0.4),
+ 0 20px 36px -10px rgb(0 0 0 / 0.7);
+}
+
+@media (prefers-color-scheme: dark) {
+ :root:not([data-theme="light"]) {
+ color-scheme: dark;
+ --surface: #221a1e;
+ --surface-raised: #2e2429;
+ --surface-muted: #2e2429;
+ --surface-hover: #3b2f35;
+ --ink: #f6eef0;
+ --ink-secondary: #dccbd1;
+ --ink-muted: #ab959c;
+ --line: #5e4a52;
+ --line-soft: #40323a;
+ --accent: #f28b7d;
+ --accent-strong: #f6a89d;
+ --accent-ink: #221a1e;
+ --shadow-color: 0 0 0;
+ --shadow-card:
+ 0 0 0 1px rgb(255 255 255 / 0.08), 0 2px 6px rgb(0 0 0 / 0.35),
+ 0 12px 24px -8px rgb(0 0 0 / 0.6);
+ --shadow-card-hover:
+ 0 0 0 1px rgb(255 255 255 / 0.14), 0 4px 10px rgb(0 0 0 / 0.4),
+ 0 20px 36px -10px rgb(0 0 0 / 0.7);
+ }
+}
+
+@theme inline {
+ --font-sans: "Inter", "Noto Sans JP", system-ui, sans-serif;
+ --color-surface: var(--surface);
+ --color-surface-raised: var(--surface-raised);
+ --color-surface-muted: var(--surface-muted);
+ --color-surface-hover: var(--surface-hover);
+ --color-ink: var(--ink);
+ --color-ink-secondary: var(--ink-secondary);
+ --color-ink-muted: var(--ink-muted);
+ --color-line: var(--line);
+ --color-line-soft: var(--line-soft);
+ --color-accent: var(--accent);
+ --color-accent-strong: var(--accent-strong);
+ --color-accent-ink: var(--accent-ink);
+ --radius-card: var(--radius-card);
+ --radius-control: var(--radius-control);
+ --shadow-card: var(--shadow-card);
+ --shadow-card-hover: var(--shadow-card-hover);
+ --shadow-hero: var(--shadow-hero);
+}
+
+/* キーボード操作のフォーカスはアクセント色で見せる。マウスのクリックでは出さない */
+:focus-visible {
+ outline: 2px solid var(--accent);
+ outline-offset: 2px;
+}
diff --git a/apps/web/src/host.test.ts b/apps/web/src/host.test.ts
new file mode 100644
index 0000000..249650d
--- /dev/null
+++ b/apps/web/src/host.test.ts
@@ -0,0 +1,42 @@
+import { describe, expect, it } from "vitest";
+import { STANDALONE_IDB, draftIdFrom, localeFrom, withoutDraft } from "./host.ts";
+
+describe("localeFrom", () => {
+ it("shows English to an English browser", () => {
+ expect(localeFrom(["en-US", "ja"])).toBe("en");
+ });
+
+ it("shows Japanese to a Japanese browser", () => {
+ expect(localeFrom(["ja-JP", "en"])).toBe("ja");
+ });
+
+ it("falls back to Japanese for other languages", () => {
+ expect(localeFrom(["fr-FR"])).toBe("ja");
+ });
+});
+
+describe("draftIdFrom", () => {
+ it("reads the draft to reopen from ?draft=", () => {
+ expect(draftIdFrom("?draft=abc")).toBe("abc");
+ });
+
+ it("is null without a draft", () => {
+ expect(draftIdFrom("")).toBeNull();
+ });
+});
+
+describe("withoutDraft", () => {
+ it("drops the draft so a reload does not reopen it", () => {
+ expect(withoutDraft("/?draft=abc&x=1")).toBe("/?x=1");
+ });
+
+ it("drops the question mark when nothing is left", () => {
+ expect(withoutDraft("/?draft=abc")).toBe("/");
+ });
+});
+
+describe("STANDALONE_IDB", () => {
+ it("keeps the standalone drafts apart from prismtone's", () => {
+ expect(STANDALONE_IDB).toEqual({ dbName: "lumorphia-editor", storeName: "kv" });
+ });
+});
diff --git a/apps/web/src/host.ts b/apps/web/src/host.ts
new file mode 100644
index 0000000..bd3fa25
--- /dev/null
+++ b/apps/web/src/host.ts
@@ -0,0 +1,43 @@
+import { createDraftStore, idbKeyValue } from "@lumorphia/editor-engine";
+import type { EditorHost, EditorLocale } from "@lumorphia/editor-react";
+
+/** 単独アプリの下書きの置き場所。prismtone (prismtone-editor) とは別のオリジンで、名前も分ける */
+export const STANDALONE_IDB = { dbName: "lumorphia-editor", storeName: "kv" } as const;
+
+export function localeFrom(languages: readonly string[]): EditorLocale {
+ for (const lang of languages) {
+ const base = lang.toLowerCase().split("-")[0];
+ if (base === "ja") return "ja";
+ if (base === "en") return "en";
+ }
+ return "ja";
+}
+
+export function draftIdFrom(search: string): string | null {
+ return new URLSearchParams(search).get("draft");
+}
+
+/** ?draft= を外した URL (リロードで同じ下書きを開き直さない) */
+export function withoutDraft(pathAndSearch: string): string {
+ const url = new URL(pathAndSearch, "http://x");
+ url.searchParams.delete("draft");
+ const search = url.searchParams.toString();
+ return `${url.pathname}${search ? `?${search}` : ""}`;
+}
+
+/** 単独アプリのホスト。送り先はまだ無く「端末に保存」だけ (送客は #6) */
+export function standaloneHost(): EditorHost {
+ return {
+ locale: localeFrom(navigator.languages),
+ drafts: createDraftStore(idbKeyValue(STANDALONE_IDB.dbName, STANDALONE_IDB.storeName)),
+ initialDraftId: draftIdFrom(location.search),
+ onInitialDraftConsumed: () =>
+ history.replaceState(null, "", withoutDraft(location.pathname + location.search)),
+ destinations: [],
+ download: { fileSuffix: "" },
+ testHook: {
+ globalName: "__lumorphiaEditor",
+ enabled: () => Boolean((window as { __LUMORPHIA_E2E__?: boolean }).__LUMORPHIA_E2E__),
+ },
+ };
+}
diff --git a/apps/web/src/main.tsx b/apps/web/src/main.tsx
new file mode 100644
index 0000000..bd1f492
--- /dev/null
+++ b/apps/web/src/main.tsx
@@ -0,0 +1,15 @@
+import { StrictMode } from "react";
+import { createRoot } from "react-dom/client";
+import { Editor } from "@lumorphia/editor-react";
+import { standaloneHost } from "./host.ts";
+import "./app.css";
+
+const root = document.getElementById("root");
+if (!root) throw new Error("#root が無い");
+document.documentElement.lang = navigator.languages.some((l) => l.startsWith("en")) ? "en" : "ja";
+
+createRoot(root).render(
+
+
+ ,
+);
diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json
new file mode 100644
index 0000000..d4743ae
--- /dev/null
+++ b/apps/web/tsconfig.json
@@ -0,0 +1,11 @@
+{
+ "extends": "../../tsconfig.base.json",
+ "compilerOptions": {
+ "lib": ["ES2024", "DOM", "DOM.Iterable"],
+ "module": "ESNext",
+ "moduleResolution": "Bundler",
+ "jsx": "react-jsx",
+ "types": ["vite/client", "react", "react-dom"]
+ },
+ "include": ["src/**/*", "vite.config.ts"]
+}
diff --git a/apps/web/tsconfig.server.json b/apps/web/tsconfig.server.json
new file mode 100644
index 0000000..ff20720
--- /dev/null
+++ b/apps/web/tsconfig.server.json
@@ -0,0 +1,5 @@
+{
+ "extends": "../../tsconfig.base.json",
+ "compilerOptions": { "types": ["node"] },
+ "include": ["server/**/*"]
+}
diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts
new file mode 100644
index 0000000..08f9a57
--- /dev/null
+++ b/apps/web/vite.config.ts
@@ -0,0 +1,20 @@
+import tailwindcss from "@tailwindcss/vite";
+import { defineConfig } from "vite";
+
+export default defineConfig({
+ server: {
+ // dev でも本番と同じく cross-origin isolated にする (onnxruntime-web のマルチスレッド)
+ headers: {
+ "Cross-Origin-Opener-Policy": "same-origin",
+ "Cross-Origin-Embedder-Policy": "credentialless",
+ },
+ },
+ // 自動選択が押したときに動的 import する依存。dev の依存最適化が初めて見つけるとページを丸ごとリロードするので、最初から束ねる
+ optimizeDeps: {
+ include: ["@mediapipe/tasks-vision", "@huggingface/transformers"],
+ // Worker を new URL("./x.worker.js", import.meta.url) で起こすので、束ねると相対 URL が壊れる
+ exclude: ["@lumorphia/editor-engine"],
+ },
+ resolve: { dedupe: ["react", "react-dom", "zod"] },
+ plugins: [tailwindcss()],
+});
diff --git a/apps/web/vitest.config.ts b/apps/web/vitest.config.ts
new file mode 100644
index 0000000..45cc430
--- /dev/null
+++ b/apps/web/vitest.config.ts
@@ -0,0 +1,6 @@
+import { defineConfig } from "vitest/config";
+import { readEditorSource } from "../../vitest.source.ts";
+export default defineConfig({
+ ...readEditorSource,
+ test: { name: "web", include: ["server/**/*.test.ts", "src/**/*.test.ts"] },
+});
diff --git a/e2e/README.md b/e2e/README.md
index c271b58..1544b1e 100644
--- a/e2e/README.md
+++ b/e2e/README.md
@@ -1,5 +1,18 @@
# E2E
-prismtone から移した現像の E2E (`editor.spec.ts`: GPU と CPU の照合、マスク、推論。`perf-local-adjust.spec.ts`: 性能の計測)。
+単独アプリ (`apps/web`) に対して現像を確かめる。WebGL は headless Chromium の SwiftShader。
-今はまだ動かない。prismtone の土台 (`./test.ts` の CSP の見張り、`./helpers.ts`、`./api.ts` の `devLogin`、投稿画面への遷移) を前提にしているため。単独アプリ (`apps/web`) を E2E の土台にして、このリポジトリで回せるようにする (#3)。それまでは lint だけかかり、型検査 (tsconfig.json の include に無い) と実行はしない。
+- `editor.spec.ts`: lumorphia/prismtone から移した。確かめること:
+ - GPU の出力と CPU の参照 (`@lumorphia/editor-engine/reference`) の照合
+ - マスク
+ - ズームとピンチ、比較、保存
+ - 顔検出と切り抜き (MediaPipe、SlimSAM)、人物補正
+ - 下書きからの開き直し
+- `editor-styles.spec.ts`: UI のクラスがホストの CSS に入っていること (Tailwind の `@source`)
+- `perf-local-adjust.spec.ts`: 部分補正の数ごとの描画時間と書き出し時間。`PERF=1` のときだけ走る
+
+`test.ts` の `test` を使う。CSP の違反を全テストで見張り、終わりに 0 件であることを確かめる。
+
+```sh
+pnpm e2e # パッケージと apps/web をビルドしてから回す
+```
diff --git a/e2e/editor-styles.spec.ts b/e2e/editor-styles.spec.ts
new file mode 100644
index 0000000..a9c7e27
--- /dev/null
+++ b/e2e/editor-styles.spec.ts
@@ -0,0 +1,15 @@
+import { expect, test } from "./test.ts";
+
+// 現像の UI (packages/editor-react) のクラスは、ホストの Tailwind が走査しないと CSS に入らない (@source)。
+// 抜けると見た目だけでなく操作も壊れる (touch-none が無いとピンチでページごと拡大する)
+
+test("the editor canvas takes over touch gestures from the page", async ({ page }) => {
+ await page.goto("/");
+ await expect(page.getByTestId("canvas-host")).toHaveCSS("touch-action", "none");
+});
+
+test("the selected editor tab is underlined", async ({ page }) => {
+ await page.goto("/");
+ const selected = page.locator('[role="tab"][aria-selected="true"]').first();
+ await expect(selected).not.toHaveCSS("border-bottom-color", "rgba(0, 0, 0, 0)");
+});
diff --git a/e2e/editor.spec.ts b/e2e/editor.spec.ts
index 97c97e8..7a68044 100644
--- a/e2e/editor.spec.ts
+++ b/e2e/editor.spec.ts
@@ -11,8 +11,6 @@ import {
type EditRecipe,
} from "@lumorphia/editor-recipe";
import { applyAdjust, applyRecipeAt } from "@lumorphia/editor-engine/reference";
-import { devLogin } from "./api.ts";
-import { continueToPostForm } from "./helpers.ts";
// 4 色のブロックからなるテスト画像 (200x100)。左から赤・緑・青・灰
const BLOCKS: [number, number, number][] = [
@@ -39,9 +37,9 @@ async function makePng(page: Page): Promise {
async function openEditorWithImage(page: Page) {
await page.addInitScript(() => {
- (window as Window & { __PRISMTONE_E2E__?: boolean }).__PRISMTONE_E2E__ = true;
+ (window as Window & { __LUMORPHIA_E2E__?: boolean }).__LUMORPHIA_E2E__ = true;
});
- await page.goto("/edit");
+ await page.goto("/");
await expect(page.getByRole("button", { name: "画像を開く" })).toBeVisible();
const png = await makePng(page);
await page
@@ -49,10 +47,30 @@ async function openEditorWithImage(page: Page) {
.setInputFiles({ name: "test.png", mimeType: "image/png", buffer: png });
await expect(page.getByRole("button", { name: "端末に保存" })).toBeEnabled();
await page.waitForFunction(() =>
- Boolean((window as Window & { __prismtoneEditor?: unknown }).__prismtoneEditor),
+ Boolean((window as Window & { __lumorphiaEditor?: unknown }).__lumorphiaEditor),
);
}
+/** 自動保存された下書き (IndexedDB の draft:) を ?draft= で開き直す。リロードと同じく状態はページから消える */
+async function reopenDraft(page: Page) {
+ const draftId = await page.evaluate(
+ () =>
+ new Promise((resolve, reject) => {
+ const open = indexedDB.open("lumorphia-editor");
+ open.onerror = () => reject(open.error);
+ open.onsuccess = () => {
+ const req = open.result.transaction("kv").objectStore("kv").getAllKeys();
+ req.onsuccess = () => {
+ const key = (req.result as string[]).find((k) => k.startsWith("draft:"));
+ if (!key) reject(new Error("no draft"));
+ else resolve(key.slice("draft:".length));
+ };
+ };
+ }),
+ );
+ await page.goto(`/?draft=${draftId}`);
+}
+
type Pixels = { width: number; height: number; type: string; pixels: number[][] };
async function exportPixels(
@@ -64,11 +82,11 @@ async function exportPixels(
({ recipe, points }) =>
(
window as Window & {
- __prismtoneEditor?: {
+ __lumorphiaEditor?: {
exportPixels: (r: EditRecipe, p: { x: number; y: number }[]) => Promise;
};
}
- ).__prismtoneEditor!.exportPixels(recipe, points),
+ ).__lumorphiaEditor!.exportPixels(recipe, points),
{ recipe, points },
);
}
@@ -84,7 +102,7 @@ function expectClose(actual: number[], expected: number[], tolerance: number) {
);
}
-// 各テストは /edit を開き直し、状態を共有しないので、ファイルの中でも並べて走らせる (#277)
+// 各テストはページを開き直し、状態を共有しないので、ファイルの中でも並べて走らせる (lumorphia/prismtone#277)
test.describe.configure({ mode: "parallel" });
test.describe("editor", () => {
@@ -158,7 +176,7 @@ test.describe("editor", () => {
expectClose(c.pixels[1]!, BLOCKS[3]!, 2);
});
- test("a local adjustment applies inside its ellipse mask only, and follows rotation and crop (#109)", async ({
+ test("a local adjustment applies inside its ellipse mask only, and follows rotation and crop (lumorphia/prismtone#109)", async ({
page,
}) => {
await openEditorWithImage(page);
@@ -223,7 +241,7 @@ test.describe("editor", () => {
);
});
- test("a brush mask applies along its strokes, erase takes it back, and smoothing leaves flat areas alone (#109)", async ({
+ test("a brush mask applies along its strokes, erase takes it back, and smoothing leaves flat areas alone (lumorphia/prismtone#109)", async ({
page,
}) => {
await openEditorWithImage(page);
@@ -283,7 +301,7 @@ test.describe("editor", () => {
height: 100,
}).map((value) => Math.round(value * 255));
- test("background blur matches the CPU reference at a colour boundary (#184)", async ({
+ test("background blur matches the CPU reference at a colour boundary (lumorphia/prismtone#184)", async ({
page,
}) => {
await openEditorWithImage(page);
@@ -293,7 +311,9 @@ test.describe("editor", () => {
expectClose(out.pixels[0]!, spatialCpu(recipe, point), 4);
});
- test("bloom adds blurred highlights like the CPU reference (#184)", async ({ page }) => {
+ test("bloom adds blurred highlights like the CPU reference (lumorphia/prismtone#184)", async ({
+ page,
+ }) => {
await openEditorWithImage(page);
const recipe = spatialRecipe({ bloom: 100 });
const point = { x: 55, y: 50 };
@@ -301,7 +321,9 @@ test.describe("editor", () => {
expectClose(out.pixels[0]!, spatialCpu(recipe, point), 4);
});
- test("vignette darkens the corner like the CPU reference (#184)", async ({ page }) => {
+ test("vignette darkens the corner like the CPU reference (lumorphia/prismtone#184)", async ({
+ page,
+ }) => {
await openEditorWithImage(page);
const recipe = spatialRecipe({ vignette: 100 });
const point = { x: 5, y: 5 };
@@ -309,7 +331,9 @@ test.describe("editor", () => {
expectClose(out.pixels[0]!, spatialCpu(recipe, point), 4);
});
- test("clarity raises local contrast like the CPU reference (#184)", async ({ page }) => {
+ test("clarity raises local contrast like the CPU reference (lumorphia/prismtone#184)", async ({
+ page,
+ }) => {
await openEditorWithImage(page);
const recipe = spatialRecipe({ clarity: 100 });
const point = { x: 95, y: 50 };
@@ -317,12 +341,12 @@ test.describe("editor", () => {
expectClose(out.pixels[0]!, spatialCpu(recipe, point), 4);
});
- test("the brush tool paints and erases on the canvas, one history step per stroke (#109)", async ({
+ test("the brush tool paints and erases on the canvas, one history step per stroke (lumorphia/prismtone#109)", async ({
page,
}) => {
await openEditorWithImage(page);
await page.getByRole("tab", { name: "部分補正" }).click();
- // 手動の流れ: ブラシを足してから装備強調のプリセット (何も選んでいないときの「装備強調」はタップで切る、#177)
+ // 手動の流れ: ブラシを足してから装備強調のプリセット (何も選んでいないときの「装備強調」はタップで切る、lumorphia/prismtone#177)
await page.getByTestId("local-add-brush").click();
await page.getByRole("button", { name: "装備強調", exact: true }).click();
await expect(page.getByTestId("local-list")).toContainText("装備強調 (ブラシ)");
@@ -348,11 +372,11 @@ test.describe("editor", () => {
const view = await page.evaluate(() =>
(
window as Window & {
- __prismtoneEditor?: {
+ __lumorphiaEditor?: {
viewRect: () => { x: number; y: number; width: number; height: number };
};
}
- ).__prismtoneEditor!.viewRect(),
+ ).__lumorphiaEditor!.viewRect(),
);
const uv = {
x: (x0 + 30 - host.x - view.x) / view.width,
@@ -363,9 +387,9 @@ test.describe("editor", () => {
(p) =>
(
window as Window & {
- __prismtoneEditor?: { previewPixels: (q: { x: number; y: number }[]) => number[][] };
+ __lumorphiaEditor?: { previewPixels: (q: { x: number; y: number }[]) => number[][] };
}
- ).__prismtoneEditor!.previewPixels([p])[0]!,
+ ).__lumorphiaEditor!.previewPixels([p])[0]!,
uv,
);
const exposure = page.getByTestId("local-sliders").getByLabel("露光量");
@@ -393,14 +417,12 @@ test.describe("editor", () => {
await expect(page.getByTestId("history-last")).toContainText("ブラシ");
});
- test("the local panel adds an ellipse, drags it, undoes, hides, and survives a redo of the export (#109)", async ({
+ test("the local panel adds an ellipse, drags it, undoes, hides, and survives reopening the draft (lumorphia/prismtone#109)", async ({
page,
}) => {
- // 「投稿へ」から戻ってくる導線を使うのでログインしておく (MiAuth の共有の利用者は使わない。並列で走るため)
- await devLogin(page, "editor_tester");
await openEditorWithImage(page);
await page.getByRole("tab", { name: "部分補正" }).click();
- // 手動の流れ: 円形を足してから瞳強調のプリセットを当てる (何も選んでいないときの「瞳強調」は顔の自動選択、#176)
+ // 手動の流れ: 円形を足してから瞳強調のプリセットを当てる (何も選んでいないときの「瞳強調」は顔の自動選択、lumorphia/prismtone#176)
await page.getByTestId("local-add-ellipse").click();
await expect(page.getByTestId("local-list").getByRole("listitem")).toHaveCount(1);
await page.getByRole("button", { name: "瞳強調", exact: true }).click();
@@ -449,10 +471,9 @@ test.describe("editor", () => {
await page.getByRole("button", { name: "表示中" }).click();
await expect(page.getByTestId("local-list")).toContainText("非表示");
- // 投稿へ → 現像をやり直す で戻っても部分補正が残っている (下書きの復元、v2 のレシピ)
- await continueToPostForm(page);
- await page.getByTestId("pending-image-redo-0").click();
- await page.waitForURL(/\/edit(\?|$)/);
+ // 下書きから開き直しても部分補正が残っている (下書きの復元、v2 のレシピ)。prismtone では「投稿へ → 現像をやり直す」の導線
+ await reopenDraft(page);
+ await expect(page.getByRole("button", { name: "端末に保存" })).toBeEnabled();
await page.getByRole("tab", { name: "部分補正" }).click();
await expect(page.getByTestId("local-list").getByRole("listitem")).toHaveCount(1);
await expect(page.getByTestId("local-list")).toContainText("非表示");
@@ -471,11 +492,11 @@ test.describe("editor", () => {
page.evaluate(() =>
(
window as Window & {
- __prismtoneEditor?: {
+ __lumorphiaEditor?: {
viewRect: () => { x: number; y: number; scale: number; width: number };
};
}
- ).__prismtoneEditor!.viewRect(),
+ ).__lumorphiaEditor!.viewRect(),
);
const fit = await viewRect();
await expect(page.getByTestId("zoom-percent")).toHaveText(`${Math.round(fit.scale * 100)}%`);
@@ -561,8 +582,8 @@ test.describe("editor", () => {
const scaleBefore = await page.evaluate(
() =>
(
- window as Window & { __prismtoneEditor?: { viewRect: () => { scale: number } } }
- ).__prismtoneEditor!.viewRect().scale,
+ window as Window & { __lumorphiaEditor?: { viewRect: () => { scale: number } } }
+ ).__lumorphiaEditor!.viewRect().scale,
);
await page.evaluate(() => {
const host = document.querySelector('[data-testid="canvas-host"]') as HTMLElement;
@@ -592,8 +613,8 @@ test.describe("editor", () => {
const scaleAfter = await page.evaluate(
() =>
(
- window as Window & { __prismtoneEditor?: { viewRect: () => { scale: number } } }
- ).__prismtoneEditor!.viewRect().scale,
+ window as Window & { __lumorphiaEditor?: { viewRect: () => { scale: number } } }
+ ).__lumorphiaEditor!.viewRect().scale,
);
expect(scaleAfter).toBeGreaterThan(scaleBefore);
// ストロークは履歴に積まれていない
@@ -613,8 +634,8 @@ test.describe("editor", () => {
const host = await page.getByTestId("canvas-host").boundingBox();
const view = await page.evaluate(() =>
(
- window as Window & { __prismtoneEditor?: { viewRect: () => { width: number } } }
- ).__prismtoneEditor!.viewRect(),
+ window as Window & { __lumorphiaEditor?: { viewRect: () => { width: number } } }
+ ).__lumorphiaEditor!.viewRect(),
);
expect(view.width).toBeLessThanOrEqual(host!.width);
expect(view.width).toBeGreaterThan(host!.width * 0.9);
@@ -625,9 +646,9 @@ test.describe("editor", () => {
}) => {
// 3000x2000 はプレビューで 2048 に縮む。縮小した合成の段でも画像全体が描かれ、右下の部分補正も効く
await page.addInitScript(() => {
- (window as Window & { __PRISMTONE_E2E__?: boolean }).__PRISMTONE_E2E__ = true;
+ (window as Window & { __LUMORPHIA_E2E__?: boolean }).__LUMORPHIA_E2E__ = true;
});
- await page.goto("/edit");
+ await page.goto("/");
const png = await page.evaluate(() => {
const c = document.createElement("canvas");
c.width = 3000;
@@ -644,7 +665,7 @@ test.describe("editor", () => {
});
await expect(page.getByRole("button", { name: "端末に保存" })).toBeEnabled();
await page.waitForFunction(() =>
- Boolean((window as Window & { __prismtoneEditor?: unknown }).__prismtoneEditor),
+ Boolean((window as Window & { __lumorphiaEditor?: unknown }).__lumorphiaEditor),
);
// 右下 (0.9, 0.9) に露光 +2 の円形マスク
await page.getByRole("tab", { name: "部分補正" }).click();
@@ -653,11 +674,11 @@ test.describe("editor", () => {
const view = await page.evaluate(() =>
(
window as Window & {
- __prismtoneEditor?: {
+ __lumorphiaEditor?: {
viewRect: () => { x: number; y: number; width: number; height: number };
};
}
- ).__prismtoneEditor!.viewRect(),
+ ).__lumorphiaEditor!.viewRect(),
);
const host = (await page.getByTestId("canvas-host").boundingBox())!;
const from = (await move.boundingBox())!;
@@ -675,9 +696,9 @@ test.describe("editor", () => {
const px = await page.evaluate(() =>
(
window as Window & {
- __prismtoneEditor?: { previewPixels: (p: { x: number; y: number }[]) => number[][] };
+ __lumorphiaEditor?: { previewPixels: (p: { x: number; y: number }[]) => number[][] };
}
- ).__prismtoneEditor!.previewPixels([
+ ).__lumorphiaEditor!.previewPixels([
{ x: 0.9, y: 0.9 },
{ x: 0.1, y: 0.1 },
{ x: 0.98, y: 0.5 },
@@ -691,8 +712,8 @@ test.describe("editor", () => {
// 書き出し (原寸 3000x2000) も四隅まで描かれ、マスクの中心は明るい
const recipe = await page.evaluate(() =>
(
- window as Window & { __prismtoneEditor?: { currentRecipe: () => EditRecipe } }
- ).__prismtoneEditor!.currentRecipe(),
+ window as Window & { __lumorphiaEditor?: { currentRecipe: () => EditRecipe } }
+ ).__lumorphiaEditor!.currentRecipe(),
);
const out = await exportPixels(page, recipe, [
{ x: 10, y: 10 },
@@ -775,32 +796,32 @@ test.describe("editor", () => {
const download = page.waitForEvent("download");
await page.getByTestId("save").click();
const d = await download;
- expect(d.suggestedFilename()).toMatch(/^test-prismtone\.(webp|jpg)$/);
+ expect(d.suggestedFilename()).toMatch(/^test\.(webp|jpg)$/);
});
test("rejects non-image files with a message", async ({ page }) => {
- await page.goto("/edit");
+ await page.goto("/");
await page
.getByTestId("file-input")
.setInputFiles({ name: "x.png", mimeType: "image/png", buffer: Buffer.from("not a png") });
await expect(page.getByRole("alert")).toContainText("PNG または JPEG");
});
- test("瞳強調の選択中でも美肌を自動選択で追加でき、範囲をブラシで直せる (#176, #210)", async ({
+ test("瞳強調の選択中でも美肌を自動選択で追加でき、範囲をブラシで直せる (lumorphia/prismtone#176, lumorphia/prismtone#210)", async ({
page,
}) => {
// 顔の認識のモデル (WASM) の読み込みを最大 60 秒待つので、テスト全体の持ち時間 (既定 60 秒) を延ばす。
- // 遅い CI では読み込みだけで 20 秒近くかかる (#348 の CI で 60 秒を使い切った)
+ // 遅い CI では読み込みだけで 20 秒近くかかる (lumorphia/prismtone#348 の CI で 60 秒を使い切った)
test.setTimeout(180_000);
await page.addInitScript(() => {
- (window as Window & { __PRISMTONE_E2E__?: boolean }).__PRISMTONE_E2E__ = true;
+ (window as Window & { __LUMORPHIA_E2E__?: boolean }).__LUMORPHIA_E2E__ = true;
});
// 画像を外に送らないこと: このテストの間、自分のオリジン以外へのリクエストが無い
const foreign: string[] = [];
page.on("request", (req) => {
if (!/^https?:\/\/(127\.0\.0\.1|localhost)(:|\/)/.test(req.url())) foreign.push(req.url());
});
- await page.goto("/edit");
+ await page.goto("/");
await page
.getByTestId("file-input")
.setInputFiles(new URL("./fixtures/face.jpg", import.meta.url).pathname);
@@ -837,11 +858,11 @@ test.describe("editor", () => {
expect(foreign).toEqual([]);
});
- test("when no face is found the panel says so and manual masks still work (#176)", async ({
+ test("when no face is found the panel says so and manual masks still work (lumorphia/prismtone#176)", async ({
page,
}) => {
// 顔の認識のモデル (WASM) の読み込みを最大 60 秒待つので、テスト全体の持ち時間 (既定 60 秒) を延ばす。
- // 遅い CI では読み込みだけで 20 秒近くかかる (#348 の CI で 60 秒を使い切った)
+ // 遅い CI では読み込みだけで 20 秒近くかかる (lumorphia/prismtone#348 の CI で 60 秒を使い切った)
test.setTimeout(180_000);
await openEditorWithImage(page);
await page.getByRole("tab", { name: "部分補正" }).click();
@@ -855,7 +876,7 @@ test.describe("editor", () => {
await expect(page.getByTestId("local-notice")).toHaveCount(0);
});
- test("装備強調 cuts out the tapped gear with SAM, switches granularity, and キャラクター / 背景 select the person (#177)", async ({
+ test("装備強調 cuts out the tapped gear with SAM, switches granularity, and キャラクター / 背景 select the person (lumorphia/prismtone#177)", async ({
page,
}) => {
test.setTimeout(180_000);
@@ -863,13 +884,13 @@ test.describe("editor", () => {
page.on("request", (req) => {
if (!/^https?:\/\/(127\.0\.0\.1|localhost)(:|\/)/.test(req.url())) foreign.push(req.url());
});
- await page.goto("/edit");
+ await page.goto("/");
await page
.getByTestId("file-input")
.setInputFiles(new URL("./fixtures/face.jpg", import.meta.url).pathname);
await expect(page.getByRole("button", { name: "端末に保存" })).toBeEnabled();
await page.getByRole("tab", { name: "部分補正" }).click();
- // /edit は COOP + COEP credentialless で cross-origin isolated (#182)。SharedArrayBuffer が使えて ORT がマルチスレッドになる
+ // ページは COOP + COEP credentialless で cross-origin isolated (lumorphia/prismtone#182)。SharedArrayBuffer が使えて ORT がマルチスレッドになる
expect(await page.evaluate(() => crossOriginIsolated)).toBe(true);
// 装備強調: モデルの読み込みと埋め込み (マルチスレッドの WASM で 3〜4 秒) のあとタップ待ちになる
@@ -919,14 +940,14 @@ test.describe("editor", () => {
expect(foreign).toEqual([]);
});
- test("人物補正 detects the person, applies a preset as five grouped adjustments, scales them, and survives a reload (#175)", async ({
+ test("人物補正 detects the person, applies a preset as five grouped adjustments, scales them, and survives a reload (lumorphia/prismtone#175)", async ({
page,
}) => {
test.setTimeout(180_000);
await page.addInitScript(() => {
- (window as Window & { __PRISMTONE_E2E__?: boolean }).__PRISMTONE_E2E__ = true;
+ (window as Window & { __LUMORPHIA_E2E__?: boolean }).__LUMORPHIA_E2E__ = true;
});
- await page.goto("/edit");
+ await page.goto("/");
await page
.getByTestId("file-input")
.setInputFiles(new URL("./fixtures/face.jpg", import.meta.url).pathname);
@@ -971,22 +992,7 @@ test.describe("editor", () => {
await expect(page.getByTestId("portrait-amount")).toBeVisible();
// 下書きを開き直しても 5 件が残り (v3 のレシピが IndexedDB を往復する)、書き出せる
- const draftId = await page.evaluate(
- () =>
- new Promise((resolve, reject) => {
- const open = indexedDB.open("prismtone-editor");
- open.onerror = () => reject(open.error);
- open.onsuccess = () => {
- const req = open.result.transaction("kv").objectStore("kv").getAllKeys();
- req.onsuccess = () => {
- const key = (req.result as string[]).find((k) => k.startsWith("draft:"));
- if (!key) reject(new Error("no draft"));
- else resolve(key.slice("draft:".length));
- };
- };
- }),
- );
- await page.goto(`/edit?draft=${draftId}`);
+ await reopenDraft(page);
await expect(page.getByRole("button", { name: "端末に保存" })).toBeEnabled({ timeout: 30_000 });
await page.getByRole("tab", { name: "部分補正" }).click();
await expect(page.getByTestId("local-list").getByRole("listitem")).toHaveCount(5);
@@ -995,11 +1001,11 @@ test.describe("editor", () => {
expect((await download).suggestedFilename()).toMatch(/\.(webp|jpe?g|png)$/);
});
- test("人物補正 says so when no face is found and points to the manual tools (#175)", async ({
+ test("人物補正 says so when no face is found and points to the manual tools (lumorphia/prismtone#175)", async ({
page,
}) => {
// 顔の認識のモデル (WASM) の読み込みを最大 60 秒待つので、テスト全体の持ち時間 (既定 60 秒) を延ばす。
- // 遅い CI では読み込みだけで 20 秒近くかかる (#348 の CI で 60 秒を使い切った)
+ // 遅い CI では読み込みだけで 20 秒近くかかる (lumorphia/prismtone#348 の CI で 60 秒を使い切った)
test.setTimeout(180_000);
await openEditorWithImage(page);
await page.getByRole("tab", { name: "人物補正" }).click();
diff --git a/e2e/perf-local-adjust.spec.ts b/e2e/perf-local-adjust.spec.ts
index acdd074..450c5e0 100644
--- a/e2e/perf-local-adjust.spec.ts
+++ b/e2e/perf-local-adjust.spec.ts
@@ -11,7 +11,7 @@ import {
} from "@lumorphia/editor-recipe";
/**
- * 部分補正の性能計測 (#109、docs/spikes/2026-09-20-local-adjust-perf.md)。
+ * 部分補正の性能計測 (lumorphia/prismtone#109、docs/spikes/2026-09-20-local-adjust-perf.md)。
* 通常の E2E では走らせない。PERF=1 pnpm exec playwright test e2e/perf-local-adjust.spec.ts --headed
* headless (SwiftShader、CPU 描画) は上限の目安。実機の GPU では --headed で取る
*/
@@ -78,15 +78,15 @@ test("measure develop / export time and texture memory for 0 / 4 / 8 / 12 local
}) => {
test.setTimeout(600_000);
await page.addInitScript(() => {
- (window as Window & { __PRISMTONE_E2E__?: boolean }).__PRISMTONE_E2E__ = true;
+ (window as Window & { __LUMORPHIA_E2E__?: boolean }).__LUMORPHIA_E2E__ = true;
});
- await page.goto("/edit");
+ await page.goto("/");
const png = await makeNoisePng(page, 4096, 2304);
await page
.getByTestId("file-input")
.setInputFiles({ name: "4k.png", mimeType: "image/png", buffer: png });
await page.waitForFunction(() =>
- Boolean((window as Window & { __prismtoneEditor?: unknown }).__prismtoneEditor),
+ Boolean((window as Window & { __lumorphiaEditor?: unknown }).__lumorphiaEditor),
);
await expect(page.getByRole("button", { name: "端末に保存" })).toBeEnabled({ timeout: 60_000 });
const gpu = await page.evaluate(() => {
@@ -104,9 +104,9 @@ test("measure develop / export time and texture memory for 0 / 4 / 8 / 12 local
(recipe) =>
(
window as Window & {
- __prismtoneEditor?: { benchmark: (r: EditRecipe, frames?: number) => Promise };
+ __lumorphiaEditor?: { benchmark: (r: EditRecipe, frames?: number) => Promise };
}
- ).__prismtoneEditor!.benchmark(recipe, 20),
+ ).__lumorphiaEditor!.benchmark(recipe, 20),
recipe,
);
console.log(`locals=${n} ${JSON.stringify(r)}`);
diff --git a/e2e/test.ts b/e2e/test.ts
new file mode 100644
index 0000000..ad400f2
--- /dev/null
+++ b/e2e/test.ts
@@ -0,0 +1,24 @@
+import { expect, test as base } from "@playwright/test";
+
+/**
+ * 全 E2E 共通の test。CSP の違反を見張り、テストの終わりに 0 件であることを確かめる。
+ * 違反はブラウザが console にエラーとして出すので、コンテキストの console を集める。
+ * WebGL / Worker / WASM (MediaPipe、onnxruntime-web) を動かすテストも、ここで CSP を確かめたことになる。
+ * browser.newContext() で作った別のコンテキストは見ない
+ */
+export const test = base.extend<{ cspViolations: string[] }>({
+ cspViolations: [
+ async ({ context }, use) => {
+ const violations: string[] = [];
+ context.on("console", (msg) => {
+ const text = msg.text();
+ if (/Content Security Policy|Refused to/i.test(text)) violations.push(text);
+ });
+ await use(violations);
+ expect(violations, "CSP の違反が console に出た").toEqual([]);
+ },
+ { auto: true },
+ ],
+});
+
+export { expect };
diff --git a/eslint.config.js b/eslint.config.js
index 46774c9..3db5f57 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -75,7 +75,16 @@ const react = {
export default tseslint.config(
{
- ignores: ["**/node_modules/**", "**/dist/**", "**/build/**", "**/coverage/**"],
+ ignores: [
+ "**/node_modules/**",
+ "**/dist/**",
+ "**/build/**",
+ "**/coverage/**",
+ "test-results/**",
+ "playwright-report/**",
+ // 認識のモデルと WASM (editor-models fetch が置く。git には入らない)
+ "apps/*/models/**",
+ ],
},
...tseslint.configs.recommended,
{
diff --git a/package.json b/package.json
index 2787c81..477402a 100644
--- a/package.json
+++ b/package.json
@@ -17,9 +17,12 @@
"format:check": "prettier --check .",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
- "prepare": "husky"
+ "prepare": "husky",
+ "e2e": "pnpm --filter @lumorphia/editor-web build && playwright test",
+ "build:packages": "pnpm --filter \"./packages/**\" run build"
},
"devDependencies": {
+ "@playwright/test": "^1.63.0",
"@types/node": "^24.19.1",
"@vitest/coverage-v8": "^5.0.3",
"eslint": "^10.12.0",
@@ -38,5 +41,9 @@
"*.{json,md,yml,yaml,css}": [
"prettier --check"
]
+ },
+ "dependencies": {
+ "@lumorphia/editor-engine": "workspace:*",
+ "@lumorphia/editor-recipe": "workspace:*"
}
}
diff --git a/playwright.config.ts b/playwright.config.ts
new file mode 100644
index 0000000..cfffdea
--- /dev/null
+++ b/playwright.config.ts
@@ -0,0 +1,32 @@
+import { defineConfig } from "@playwright/test";
+
+const PORT = Number(process.env.E2E_PORT ?? 4300);
+
+/**
+ * 単独アプリ (apps/web) に対して現像の E2E を回す。build は pnpm e2e が先に済ませる
+ * (パッケージを dist にし、モデルを揃えてから vite build)。サーバーは apps/web/server/serve.ts
+ */
+export default defineConfig({
+ testDir: "./e2e",
+ // WebGL (SwiftShader) と WASM が CPU を取り合うので並べすぎない。CI のランナーは 2 コア
+ workers: Number(process.env.E2E_WORKERS ?? (process.env.CI ? 2 : 4)),
+ timeout: 60_000,
+ retries: process.env.CI ? 1 : 0,
+ reporter: process.env.CI ? "github" : "list",
+ use: {
+ baseURL: `http://127.0.0.1:${PORT}`,
+ // 日本語の UI で書いたテストなので日本語で固定する
+ locale: "ja-JP",
+ trace: "retain-on-failure",
+ // headless Chromium で WebGL を使う (SwiftShader)
+ launchOptions: {
+ args: ["--use-gl=angle", "--use-angle=swiftshader", "--enable-unsafe-swiftshader"],
+ },
+ },
+ projects: [{ name: "chromium", use: { browserName: "chromium" } }],
+ webServer: {
+ command: `PORT=${PORT} node apps/web/server/serve.ts`,
+ url: `http://127.0.0.1:${PORT}/`,
+ reuseExistingServer: !process.env.CI,
+ },
+});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f8bca9e..76e1363 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -168,7 +168,17 @@ overrides:
importers:
.:
+ dependencies:
+ '@lumorphia/editor-engine':
+ specifier: workspace:*
+ version: link:packages/editor-engine
+ '@lumorphia/editor-recipe':
+ specifier: workspace:*
+ version: link:packages/editor-recipe
devDependencies:
+ '@playwright/test':
+ specifier: ^1.63.0
+ version: 1.63.0
'@types/node':
specifier: ^24.19.1
version: 24.19.1
@@ -177,7 +187,7 @@ importers:
version: 5.0.3(vitest@5.0.3)
eslint:
specifier: ^10.12.0
- version: 10.12.0
+ version: 10.12.0(jiti@2.7.0)
husky:
specifier: ^9.1.7
version: 9.1.7
@@ -192,10 +202,41 @@ importers:
version: 6.0.3
typescript-eslint:
specifier: ^8.71.0
- version: 8.71.0(eslint@10.12.0)(typescript@6.0.3)
+ version: 8.71.0(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3)
vitest:
specifier: ^5.0.3
- version: 5.0.3(@types/node@24.19.1)(@vitest/coverage-v8@5.0.3)(vite@8.3.2(@types/node@24.19.1)(yaml@2.9.1))
+ version: 5.0.3(@types/node@24.19.1)(@vitest/coverage-v8@5.0.3)(vite@8.3.2(@types/node@24.19.1)(jiti@2.7.0)(yaml@2.9.1))
+
+ apps/web:
+ dependencies:
+ '@lumorphia/editor-engine':
+ specifier: workspace:*
+ version: link:../../packages/editor-engine
+ '@lumorphia/editor-react':
+ specifier: workspace:*
+ version: link:../../packages/editor-react
+ react:
+ specifier: ^19.3.0
+ version: 19.3.0
+ react-dom:
+ specifier: ^19.3.0
+ version: 19.3.0(react@19.3.0)
+ devDependencies:
+ '@tailwindcss/vite':
+ specifier: ^4.3.3
+ version: 4.3.3(vite@8.3.2(@types/node@24.19.1)(jiti@2.7.0)(yaml@2.9.1))
+ '@types/react':
+ specifier: ^19.3.0
+ version: 19.3.0
+ '@types/react-dom':
+ specifier: ^19.3.0
+ version: 19.3.0(@types/react@19.3.0)
+ tailwindcss:
+ specifier: ^4.3.3
+ version: 4.3.3
+ vite:
+ specifier: ^8.3.2
+ version: 8.3.2(@types/node@24.19.1)(jiti@2.7.0)(yaml@2.9.1)
packages/editor-engine:
dependencies:
@@ -492,6 +533,12 @@ packages:
resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==}
engines: {node: '>=18.0.0'}
+ '@jridgewell/gen-mapping@0.3.13':
+ resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
+
+ '@jridgewell/remapping@2.3.5':
+ resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==}
+
'@jridgewell/resolve-uri@3.1.2':
resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
engines: {node: '>=6.0.0'}
@@ -520,6 +567,11 @@ packages:
'@pixi/colord@2.9.6':
resolution: {integrity: sha512-nezytU2pw587fQstUu1AsJZDVEynjskwOL+kibwcdxsMBFqPsFFNA7xl0ii/gXuDi6M0xj3mfRJj8pBSc2jCfA==}
+ '@playwright/test@1.63.0':
+ resolution: {integrity: sha512-oxMK4vllB9RK5NQ2l1pq1IfOf2AvnEuj/vYGDj0H2nMtmtZpKtCwt/l00GEO6xjGfpBNAvjovvYdCm50dRQkpQ==}
+ engines: {node: '>=20'}
+ hasBin: true
+
'@protobufjs/aspromise@1.1.2':
resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}
@@ -646,6 +698,100 @@ packages:
'@rolldown/pluginutils@1.0.1':
resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==}
+ '@tailwindcss/node@4.3.3':
+ resolution: {integrity: sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==}
+
+ '@tailwindcss/oxide-android-arm64@4.3.3':
+ resolution: {integrity: sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [android]
+
+ '@tailwindcss/oxide-darwin-arm64@4.3.3':
+ resolution: {integrity: sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@tailwindcss/oxide-darwin-x64@4.3.3':
+ resolution: {integrity: sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@tailwindcss/oxide-freebsd-x64@4.3.3':
+ resolution: {integrity: sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.3':
+ resolution: {integrity: sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==}
+ engines: {node: '>= 20'}
+ cpu: [arm]
+ os: [linux]
+
+ '@tailwindcss/oxide-linux-arm64-gnu@4.3.3':
+ resolution: {integrity: sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@tailwindcss/oxide-linux-arm64-musl@4.3.3':
+ resolution: {integrity: sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@tailwindcss/oxide-linux-x64-gnu@4.3.3':
+ resolution: {integrity: sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@tailwindcss/oxide-linux-x64-musl@4.3.3':
+ resolution: {integrity: sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@tailwindcss/oxide-wasm32-wasi@4.3.3':
+ resolution: {integrity: sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+ bundledDependencies:
+ - '@napi-rs/wasm-runtime'
+ - '@emnapi/core'
+ - '@emnapi/runtime'
+ - '@tybys/wasm-util'
+ - '@emnapi/wasi-threads'
+ - tslib
+
+ '@tailwindcss/oxide-win32-arm64-msvc@4.3.3':
+ resolution: {integrity: sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==}
+ engines: {node: '>= 20'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@tailwindcss/oxide-win32-x64-msvc@4.3.3':
+ resolution: {integrity: sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==}
+ engines: {node: '>= 20'}
+ cpu: [x64]
+ os: [win32]
+
+ '@tailwindcss/oxide@4.3.3':
+ resolution: {integrity: sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==}
+ engines: {node: '>= 20'}
+
+ '@tailwindcss/vite@4.3.3':
+ resolution: {integrity: sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==}
+ peerDependencies:
+ vite: ^5.2.0 || ^6 || ^7 || ^8
+
'@types/chai@5.2.3':
resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==}
@@ -667,6 +813,11 @@ packages:
'@types/node@24.19.1':
resolution: {integrity: sha512-aS3/DG0oM05K0RIXXP+hKjinGG5IgSSVGzswZxW3O0sS3pH4/fycXundUC9XsszgKCk4gHXylTEK6hyFxVxnoQ==}
+ '@types/react-dom@19.3.0':
+ resolution: {integrity: sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==}
+ peerDependencies:
+ '@types/react': ^19.3.0
+
'@types/react@19.3.0':
resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==}
@@ -847,6 +998,10 @@ packages:
earcut@3.2.4:
resolution: {integrity: sha512-FHc6yNpnTORB0tM5kmZ03iD2mDuNakDE2lvf4Hw1XkfxtEHIGVi01B/GqUSwx+NcC1WGjidAfpTXzeALtPtfpg==}
+ enhanced-resolve@5.26.0:
+ resolution: {integrity: sha512-9vhedylFonb2YGogzUKX6+Ja72gOJbN1QHAqdrvqLwhdl/QWbKopzoUC9EbQNVsAns/bx/4uyqalrQAoy1IByw==}
+ engines: {node: '>=10.13.0'}
+
es-define-property@1.0.1:
resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
engines: {node: '>= 0.4'}
@@ -975,6 +1130,9 @@ packages:
resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
engines: {node: '>= 0.4'}
+ graceful-fs@4.2.11:
+ resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
+
guid-typescript@1.0.9:
resolution: {integrity: sha512-Y8T4vYhEfwJOTbouREvG+3XDsjr8E3kIr7uf+JZ0BYloFsttiHU0WfvANVsR7TxNUJa/WpCnw/Ino/p+DeBhBQ==}
@@ -1025,6 +1183,10 @@ packages:
ismobilejs@1.1.1:
resolution: {integrity: sha512-VaFW53yt8QO61k2WJui0dHf4SlL8lxBofUuUmwBo0ljPk0Drz2TiuDW4jo3wDcv41qy/SxrJ+VAzJ/qYqsmzRw==}
+ jiti@2.7.0:
+ resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==}
+ hasBin: true
+
js-binary-schema-parser@2.0.3:
resolution: {integrity: sha512-xezGJmOb4lk/M1ZZLTR/jaBHQ4gG/lqQnJqdIv4721DMggsa1bDVlHXNeHYogaIEHD9vCRv0fcL4hMA+Coarkg==}
@@ -1047,36 +1209,73 @@ packages:
resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
engines: {node: '>= 0.8.0'}
+ lightningcss-android-arm64@1.32.0:
+ resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [android]
+
lightningcss-android-arm64@1.33.0:
resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [android]
+ lightningcss-darwin-arm64@1.32.0:
+ resolution: {integrity: sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [darwin]
+
lightningcss-darwin-arm64@1.33.0:
resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [darwin]
+ lightningcss-darwin-x64@1.32.0:
+ resolution: {integrity: sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [darwin]
+
lightningcss-darwin-x64@1.33.0:
resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [darwin]
+ lightningcss-freebsd-x64@1.32.0:
+ resolution: {integrity: sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [freebsd]
+
lightningcss-freebsd-x64@1.33.0:
resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [freebsd]
+ lightningcss-linux-arm-gnueabihf@1.32.0:
+ resolution: {integrity: sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm]
+ os: [linux]
+
lightningcss-linux-arm-gnueabihf@1.33.0:
resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==}
engines: {node: '>= 12.0.0'}
cpu: [arm]
os: [linux]
+ lightningcss-linux-arm64-gnu@1.32.0:
+ resolution: {integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
lightningcss-linux-arm64-gnu@1.33.0:
resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==}
engines: {node: '>= 12.0.0'}
@@ -1084,6 +1283,13 @@ packages:
os: [linux]
libc: [glibc]
+ lightningcss-linux-arm64-musl@1.32.0:
+ resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
lightningcss-linux-arm64-musl@1.33.0:
resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==}
engines: {node: '>= 12.0.0'}
@@ -1091,6 +1297,13 @@ packages:
os: [linux]
libc: [musl]
+ lightningcss-linux-x64-gnu@1.32.0:
+ resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
lightningcss-linux-x64-gnu@1.33.0:
resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==}
engines: {node: '>= 12.0.0'}
@@ -1098,6 +1311,13 @@ packages:
os: [linux]
libc: [glibc]
+ lightningcss-linux-x64-musl@1.32.0:
+ resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
lightningcss-linux-x64-musl@1.33.0:
resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==}
engines: {node: '>= 12.0.0'}
@@ -1105,18 +1325,34 @@ packages:
os: [linux]
libc: [musl]
+ lightningcss-win32-arm64-msvc@1.32.0:
+ resolution: {integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [win32]
+
lightningcss-win32-arm64-msvc@1.33.0:
resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [win32]
+ lightningcss-win32-x64-msvc@1.32.0:
+ resolution: {integrity: sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [win32]
+
lightningcss-win32-x64-msvc@1.33.0:
resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [win32]
+ lightningcss@1.32.0:
+ resolution: {integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==}
+ engines: {node: '>= 12.0.0'}
+
lightningcss@1.33.0:
resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==}
engines: {node: '>= 12.0.0'}
@@ -1133,6 +1369,9 @@ packages:
long@5.3.2:
resolution: {integrity: sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==}
+ magic-string@0.30.21:
+ resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
+
magic-string@1.4.2:
resolution: {integrity: sha512-vG+rjFRj1PqdIBozIxAGMjPlOhaVe+GXpbttY/iSK7rGcJRMlwNJO7dcUwmUqkymsFLJiNGI06t4D7Fr7yRC9g==}
@@ -1223,6 +1462,16 @@ packages:
platform@1.3.6:
resolution: {integrity: sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==}
+ playwright-core@1.63.0:
+ resolution: {integrity: sha512-rYCsBF/M5HjUch52bbtVONEFjv6Xu8sm8h72dNlR5bzIE1fvC/bxgspzkjSfU+MweEMmPM8KJebG6nnyxo5mCg==}
+ engines: {node: '>=20'}
+ hasBin: true
+
+ playwright@1.63.0:
+ resolution: {integrity: sha512-+7ziBLidS4NaNCdt57SUDT+wYmmd5fmiQejUic/kb+YsYSCPyOOE9sebzMjNmQrsnNpDJqd4WHvV/8lfKfUDUg==}
+ engines: {node: '>=20'}
+ hasBin: true
+
postcss@8.5.28:
resolution: {integrity: sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==}
engines: {node: ^10 || ^12 || >=14}
@@ -1248,6 +1497,11 @@ packages:
resolution: {integrity: sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==}
engines: {node: '>=20'}
+ react-dom@19.3.0:
+ resolution: {integrity: sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==}
+ peerDependencies:
+ react: ^19.3.0
+
react@19.3.0:
resolution: {integrity: sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==}
engines: {node: '>=0.10.0'}
@@ -1261,6 +1515,9 @@ packages:
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
+ scheduler@0.28.0:
+ resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==}
+
semver-compare@1.0.0:
resolution: {integrity: sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==}
@@ -1304,6 +1561,13 @@ packages:
resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==}
engines: {node: '>=0.6.19'}
+ tailwindcss@4.3.3:
+ resolution: {integrity: sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==}
+
+ tapable@2.3.3:
+ resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==}
+ engines: {node: '>=6'}
+
tar@7.5.22:
resolution: {integrity: sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==}
engines: {node: '>=18'}
@@ -1511,9 +1775,9 @@ snapshots:
tslib: 2.8.1
optional: true
- '@eslint-community/eslint-utils@4.10.1(eslint@10.12.0)':
+ '@eslint-community/eslint-utils@4.10.1(eslint@10.12.0(jiti@2.7.0))':
dependencies:
- eslint: 10.12.0
+ eslint: 10.12.0(jiti@2.7.0)
eslint-visitor-keys: 3.4.3
'@eslint-community/regexpp@4.12.2': {}
@@ -1678,6 +1942,16 @@ snapshots:
dependencies:
minipass: 7.1.3
+ '@jridgewell/gen-mapping@0.3.13':
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.6.0
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/remapping@2.3.5':
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+
'@jridgewell/resolve-uri@3.1.2': {}
'@jridgewell/sourcemap-codec@1.6.0': {}
@@ -1701,6 +1975,10 @@ snapshots:
'@pixi/colord@2.9.6': {}
+ '@playwright/test@1.63.0':
+ dependencies:
+ playwright: 1.63.0
+
'@protobufjs/aspromise@1.1.2': {}
'@protobufjs/base64@1.1.2': {}
@@ -1768,6 +2046,74 @@ snapshots:
'@rolldown/pluginutils@1.0.1': {}
+ '@tailwindcss/node@4.3.3':
+ dependencies:
+ '@jridgewell/remapping': 2.3.5
+ enhanced-resolve: 5.26.0
+ jiti: 2.7.0
+ lightningcss: 1.32.0
+ magic-string: 0.30.21
+ source-map-js: 1.2.2
+ tailwindcss: 4.3.3
+
+ '@tailwindcss/oxide-android-arm64@4.3.3':
+ optional: true
+
+ '@tailwindcss/oxide-darwin-arm64@4.3.3':
+ optional: true
+
+ '@tailwindcss/oxide-darwin-x64@4.3.3':
+ optional: true
+
+ '@tailwindcss/oxide-freebsd-x64@4.3.3':
+ optional: true
+
+ '@tailwindcss/oxide-linux-arm-gnueabihf@4.3.3':
+ optional: true
+
+ '@tailwindcss/oxide-linux-arm64-gnu@4.3.3':
+ optional: true
+
+ '@tailwindcss/oxide-linux-arm64-musl@4.3.3':
+ optional: true
+
+ '@tailwindcss/oxide-linux-x64-gnu@4.3.3':
+ optional: true
+
+ '@tailwindcss/oxide-linux-x64-musl@4.3.3':
+ optional: true
+
+ '@tailwindcss/oxide-wasm32-wasi@4.3.3':
+ optional: true
+
+ '@tailwindcss/oxide-win32-arm64-msvc@4.3.3':
+ optional: true
+
+ '@tailwindcss/oxide-win32-x64-msvc@4.3.3':
+ optional: true
+
+ '@tailwindcss/oxide@4.3.3':
+ 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
+
+ '@tailwindcss/vite@4.3.3(vite@8.3.2(@types/node@24.19.1)(jiti@2.7.0)(yaml@2.9.1))':
+ dependencies:
+ '@tailwindcss/node': 4.3.3
+ '@tailwindcss/oxide': 4.3.3
+ tailwindcss: 4.3.3
+ vite: 8.3.2(@types/node@24.19.1)(jiti@2.7.0)(yaml@2.9.1)
+
'@types/chai@5.2.3':
dependencies:
'@types/deep-eql': 4.0.2
@@ -1787,19 +2133,23 @@ snapshots:
dependencies:
undici-types: 7.24.6
+ '@types/react-dom@19.3.0(@types/react@19.3.0)':
+ dependencies:
+ '@types/react': 19.3.0
+
'@types/react@19.3.0':
dependencies:
csstype: 3.2.3
- '@typescript-eslint/eslint-plugin@8.71.0(@typescript-eslint/parser@8.71.0(eslint@10.12.0)(typescript@6.0.3))(eslint@10.12.0)(typescript@6.0.3)':
+ '@typescript-eslint/eslint-plugin@8.71.0(@typescript-eslint/parser@8.71.0(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3)':
dependencies:
'@eslint-community/regexpp': 4.12.2
- '@typescript-eslint/parser': 8.71.0(eslint@10.12.0)(typescript@6.0.3)
+ '@typescript-eslint/parser': 8.71.0(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/scope-manager': 8.71.0
- '@typescript-eslint/type-utils': 8.71.0(eslint@10.12.0)(typescript@6.0.3)
- '@typescript-eslint/utils': 8.71.0(eslint@10.12.0)(typescript@6.0.3)
+ '@typescript-eslint/type-utils': 8.71.0(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3)
+ '@typescript-eslint/utils': 8.71.0(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/visitor-keys': 8.71.0
- eslint: 10.12.0
+ eslint: 10.12.0(jiti@2.7.0)
ignore: 7.0.12
natural-compare: 1.4.0
ts-api-utils: 2.5.0(typescript@6.0.3)
@@ -1807,14 +2157,14 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/parser@8.71.0(eslint@10.12.0)(typescript@6.0.3)':
+ '@typescript-eslint/parser@8.71.0(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3)':
dependencies:
'@typescript-eslint/scope-manager': 8.71.0
'@typescript-eslint/types': 8.71.0
'@typescript-eslint/typescript-estree': 8.71.0(typescript@6.0.3)
'@typescript-eslint/visitor-keys': 8.71.0
debug: 4.4.3
- eslint: 10.12.0
+ eslint: 10.12.0(jiti@2.7.0)
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
@@ -1837,13 +2187,13 @@ snapshots:
dependencies:
typescript: 6.0.3
- '@typescript-eslint/type-utils@8.71.0(eslint@10.12.0)(typescript@6.0.3)':
+ '@typescript-eslint/type-utils@8.71.0(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3)':
dependencies:
'@typescript-eslint/types': 8.71.0
'@typescript-eslint/typescript-estree': 8.71.0(typescript@6.0.3)
- '@typescript-eslint/utils': 8.71.0(eslint@10.12.0)(typescript@6.0.3)
+ '@typescript-eslint/utils': 8.71.0(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3)
debug: 4.4.3
- eslint: 10.12.0
+ eslint: 10.12.0(jiti@2.7.0)
ts-api-utils: 2.5.0(typescript@6.0.3)
typescript: 6.0.3
transitivePeerDependencies:
@@ -1866,13 +2216,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@typescript-eslint/utils@8.71.0(eslint@10.12.0)(typescript@6.0.3)':
+ '@typescript-eslint/utils@8.71.0(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3)':
dependencies:
- '@eslint-community/eslint-utils': 4.10.1(eslint@10.12.0)
+ '@eslint-community/eslint-utils': 4.10.1(eslint@10.12.0(jiti@2.7.0))
'@typescript-eslint/scope-manager': 8.71.0
'@typescript-eslint/types': 8.71.0
'@typescript-eslint/typescript-estree': 8.71.0(typescript@6.0.3)
- eslint: 10.12.0
+ eslint: 10.12.0(jiti@2.7.0)
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
@@ -1892,7 +2242,7 @@ snapshots:
obug: 2.2.1
std-env: 4.3.0
tinyrainbow: 3.2.0
- vitest: 5.0.3(@types/node@24.19.1)(@vitest/coverage-v8@5.0.3)(vite@8.3.2(@types/node@24.19.1)(yaml@2.9.1))
+ vitest: 5.0.3(@types/node@24.19.1)(@vitest/coverage-v8@5.0.3)(vite@8.3.2(@types/node@24.19.1)(jiti@2.7.0)(yaml@2.9.1))
'@vitest/istanbul-lib-coverage@1.0.2': {}
@@ -1900,14 +2250,14 @@ snapshots:
dependencies:
'@vitest/istanbul-lib-coverage': 1.0.2
- '@vitest/mocker@5.0.3(vite@8.3.2(@types/node@24.19.1)(yaml@2.9.1))':
+ '@vitest/mocker@5.0.3(vite@8.3.2(@types/node@24.19.1)(jiti@2.7.0)(yaml@2.9.1))':
dependencies:
'@jridgewell/trace-mapping': 0.3.31
'@vitest/spy': 5.0.3
estree-walker: 3.0.3
magic-string: 1.4.2
optionalDependencies:
- vite: 8.3.2(@types/node@24.19.1)(yaml@2.9.1)
+ vite: 8.3.2(@types/node@24.19.1)(jiti@2.7.0)(yaml@2.9.1)
'@vitest/spy@5.0.3': {}
@@ -1988,6 +2338,11 @@ snapshots:
earcut@3.2.4: {}
+ enhanced-resolve@5.26.0:
+ dependencies:
+ graceful-fs: 4.2.11
+ tapable: 2.3.3
+
es-define-property@1.0.1: {}
es-errors@1.3.0: {}
@@ -2009,9 +2364,9 @@ snapshots:
eslint-visitor-keys@5.0.1: {}
- eslint@10.12.0:
+ eslint@10.12.0(jiti@2.7.0):
dependencies:
- '@eslint-community/eslint-utils': 4.10.1(eslint@10.12.0)
+ '@eslint-community/eslint-utils': 4.10.1(eslint@10.12.0(jiti@2.7.0))
'@eslint-community/regexpp': 4.12.2
'@eslint/config-array': 0.23.5
'@eslint/config-helpers': 0.7.0
@@ -2041,6 +2396,8 @@ snapshots:
minimatch: 10.2.6
natural-compare: 1.4.0
optionator: 0.9.4
+ optionalDependencies:
+ jiti: 2.7.0
transitivePeerDependencies:
- supports-color
@@ -2126,6 +2483,8 @@ snapshots:
gopd@1.2.0: {}
+ graceful-fs@4.2.11: {}
+
guid-typescript@1.0.9: {}
has-property-descriptors@1.0.2:
@@ -2160,6 +2519,8 @@ snapshots:
ismobilejs@1.1.1: {}
+ jiti@2.7.0: {}
+
js-binary-schema-parser@2.0.3: {}
js-tokens@10.0.0: {}
@@ -2179,39 +2540,88 @@ snapshots:
prelude-ls: 1.2.1
type-check: 0.4.0
+ lightningcss-android-arm64@1.32.0:
+ optional: true
+
lightningcss-android-arm64@1.33.0:
optional: true
+ lightningcss-darwin-arm64@1.32.0:
+ optional: true
+
lightningcss-darwin-arm64@1.33.0:
optional: true
+ lightningcss-darwin-x64@1.32.0:
+ optional: true
+
lightningcss-darwin-x64@1.33.0:
optional: true
+ lightningcss-freebsd-x64@1.32.0:
+ optional: true
+
lightningcss-freebsd-x64@1.33.0:
optional: true
+ lightningcss-linux-arm-gnueabihf@1.32.0:
+ optional: true
+
lightningcss-linux-arm-gnueabihf@1.33.0:
optional: true
+ lightningcss-linux-arm64-gnu@1.32.0:
+ optional: true
+
lightningcss-linux-arm64-gnu@1.33.0:
optional: true
+ lightningcss-linux-arm64-musl@1.32.0:
+ optional: true
+
lightningcss-linux-arm64-musl@1.33.0:
optional: true
+ lightningcss-linux-x64-gnu@1.32.0:
+ optional: true
+
lightningcss-linux-x64-gnu@1.33.0:
optional: true
+ lightningcss-linux-x64-musl@1.32.0:
+ optional: true
+
lightningcss-linux-x64-musl@1.33.0:
optional: true
+ lightningcss-win32-arm64-msvc@1.32.0:
+ optional: true
+
lightningcss-win32-arm64-msvc@1.33.0:
optional: true
+ lightningcss-win32-x64-msvc@1.32.0:
+ optional: true
+
lightningcss-win32-x64-msvc@1.33.0:
optional: true
+ lightningcss@1.32.0:
+ dependencies:
+ detect-libc: 2.1.2
+ optionalDependencies:
+ lightningcss-android-arm64: 1.32.0
+ lightningcss-darwin-arm64: 1.32.0
+ lightningcss-darwin-x64: 1.32.0
+ lightningcss-freebsd-x64: 1.32.0
+ lightningcss-linux-arm-gnueabihf: 1.32.0
+ lightningcss-linux-arm64-gnu: 1.32.0
+ lightningcss-linux-arm64-musl: 1.32.0
+ lightningcss-linux-x64-gnu: 1.32.0
+ lightningcss-linux-x64-musl: 1.32.0
+ lightningcss-win32-arm64-msvc: 1.32.0
+ lightningcss-win32-x64-msvc: 1.32.0
+
lightningcss@1.33.0:
dependencies:
detect-libc: 2.1.2
@@ -2242,6 +2652,10 @@ snapshots:
long@5.3.2: {}
+ magic-string@0.30.21:
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.6.0
+
magic-string@1.4.2:
dependencies:
'@jridgewell/sourcemap-codec': 1.6.0
@@ -2337,6 +2751,12 @@ snapshots:
platform@1.3.6: {}
+ playwright-core@1.63.0: {}
+
+ playwright@1.63.0:
+ dependencies:
+ playwright-core: 1.63.0
+
postcss@8.5.28:
dependencies:
nanoid: 3.3.19
@@ -2367,6 +2787,11 @@ snapshots:
dependencies:
hookified: 2.2.0
+ react-dom@19.3.0(react@19.3.0):
+ dependencies:
+ react: 19.3.0
+ scheduler: 0.28.0
+
react@19.3.0: {}
roarr@2.15.4:
@@ -2399,6 +2824,8 @@ snapshots:
'@rolldown/binding-win32-arm64-msvc': 1.2.12
'@rolldown/binding-win32-x64-msvc': 1.2.12
+ scheduler@0.28.0: {}
+
semver-compare@1.0.0: {}
semver@7.8.5: {}
@@ -2454,6 +2881,10 @@ snapshots:
string-argv@0.3.2: {}
+ tailwindcss@4.3.3: {}
+
+ tapable@2.3.3: {}
+
tar@7.5.22:
dependencies:
'@isaacs/fs-minipass': 4.0.1
@@ -2488,13 +2919,13 @@ snapshots:
type-fest@0.13.1: {}
- typescript-eslint@8.71.0(eslint@10.12.0)(typescript@6.0.3):
+ typescript-eslint@8.71.0(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3):
dependencies:
- '@typescript-eslint/eslint-plugin': 8.71.0(@typescript-eslint/parser@8.71.0(eslint@10.12.0)(typescript@6.0.3))(eslint@10.12.0)(typescript@6.0.3)
- '@typescript-eslint/parser': 8.71.0(eslint@10.12.0)(typescript@6.0.3)
+ '@typescript-eslint/eslint-plugin': 8.71.0(@typescript-eslint/parser@8.71.0(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3))(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3)
+ '@typescript-eslint/parser': 8.71.0(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3)
'@typescript-eslint/typescript-estree': 8.71.0(typescript@6.0.3)
- '@typescript-eslint/utils': 8.71.0(eslint@10.12.0)(typescript@6.0.3)
- eslint: 10.12.0
+ '@typescript-eslint/utils': 8.71.0(eslint@10.12.0(jiti@2.7.0))(typescript@6.0.3)
+ eslint: 10.12.0(jiti@2.7.0)
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
@@ -2507,7 +2938,7 @@ snapshots:
dependencies:
punycode: 2.3.1
- vite@8.3.2(@types/node@24.19.1)(yaml@2.9.1):
+ vite@8.3.2(@types/node@24.19.1)(jiti@2.7.0)(yaml@2.9.1):
dependencies:
lightningcss: 1.33.0
picomatch: 4.0.7
@@ -2517,12 +2948,13 @@ snapshots:
optionalDependencies:
'@types/node': 24.19.1
fsevents: 2.3.3
+ jiti: 2.7.0
yaml: 2.9.1
- vitest@5.0.3(@types/node@24.19.1)(@vitest/coverage-v8@5.0.3)(vite@8.3.2(@types/node@24.19.1)(yaml@2.9.1)):
+ vitest@5.0.3(@types/node@24.19.1)(@vitest/coverage-v8@5.0.3)(vite@8.3.2(@types/node@24.19.1)(jiti@2.7.0)(yaml@2.9.1)):
dependencies:
'@types/chai': 5.2.3
- '@vitest/mocker': 5.0.3(vite@8.3.2(@types/node@24.19.1)(yaml@2.9.1))
+ '@vitest/mocker': 5.0.3(vite@8.3.2(@types/node@24.19.1)(jiti@2.7.0)(yaml@2.9.1))
chai: 6.3.0
es-module-lexer: 2.3.2
expect-type: 1.4.0
@@ -2533,7 +2965,7 @@ snapshots:
tinybench: 6.2.0
tinyexec: 1.3.1
tinyglobby: 0.2.17
- vite: 8.3.2(@types/node@24.19.1)(yaml@2.9.1)
+ vite: 8.3.2(@types/node@24.19.1)(jiti@2.7.0)(yaml@2.9.1)
why-is-node-running: 3.2.1
optionalDependencies:
'@types/node': 24.19.1
diff --git a/tsconfig.json b/tsconfig.json
index 9b4faab..d21289f 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -4,5 +4,12 @@
"lib": ["ES2024", "DOM"],
"types": ["node"]
},
- "include": ["vitest.config.ts", "vitest.source.ts", "eslint.config.js", "tooling/**/*"]
+ "include": [
+ "vitest.config.ts",
+ "vitest.source.ts",
+ "eslint.config.js",
+ "tooling/**/*",
+ "e2e/**/*",
+ "playwright.config.ts"
+ ]
}