Skip to content
TypeScript

Implement theseus: TypeScript reimplementation of the dike comparison CLI

Claudeb4731e7e132a
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e515f2f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+node_modules/
+dist/
+runs/
+coverage/
+*.log
+.DS_Store
diff --git a/NOTES.md b/NOTES.md
new file mode 100644
index 0000000..334134e
--- /dev/null
+++ b/NOTES.md
@@ -0,0 +1,29 @@
+# NOTES
+
+비전문 감시자용 기록. 용어 최소화, AS-IS → TO-BE.
+
+## 2026-06-24 — theseus 초기 구현 (TypeScript)
+
+**AS-IS**: 빈 저장소(LICENSE 만). 비교 도구가 없어, 어떤 모델·도구 조합이 내 과제에 맞는지
+직접 돌려보고 나란히 비교할 방법이 없었다.
+
+**TO-BE**: PRD(dike 사양)대로 비교 CLI `theseus` 를 처음부터 만들었다. 이제 한 줄 명령으로
+여러 조합을 같은 과제에 돌려, **정확도·비용·시간·도구 호출·서브에이전트 흐름**을 표와
+그림으로 한눈에 비교한다. 인터넷 없이도(오프라인 가짜 실행기) 전체 흐름을 확인할 수 있다.
+
+무엇이 되는가:
+- `theseus --model … --agent … --harness …` 한 줄로 N개 조합 비교.
+- 결과는 자동으로 **표(터미널)** + **report.html(가성비 산점도·통과/실패표·실패 원인)** +
+ **graph.html(서브에이전트 호출 그림, 클릭하면 세부 펼침)** 으로 나온다.
+- 순위를 한 줄로 정해주지 않는다. 대신 "정확도 최고는 X, 가장 싼 건 Y" 처럼 **관점별 추천**을
+ 보여줘 사용자가 직접 trade-off 를 판단한다.
+- 모르는 값(예: 단가 미상)은 0 으로 채우지 않고 **"미수집"** 으로 정직하게 표시한다.
+- 같은 조건이면 항상 같은 과제 묶음을 고른다(재현 가능).
+
+검증: 타입체크·린트·테스트(32개, BR/CO/UX 20지표 매핑)·빌드 모두 통과. 가짜 실행기로
+end-to-end 실제 실행까지 확인. 실모델(cc/codex) 호출 경로는 어댑터로 구현돼 있으나, 비용·인증
+영향을 피하기 위해 이 환경에서 실과금 호출은 돌리지 않았다(코드 경로는 구현/타입 검증 완료).
+
+한계(정직히): headless 모드에서 강한 모델은 경계가 뚜렷한 과제를 직접 풀어 자율 fan-out 이
+잘 안 일어난다. 그래서 subagent 벤치는 지시문에 명시적 위임 한 문장을 동일하게 붙여 측정 가능한
+멀티레벨 트리를 유도한다(모든 조합에 byte-identical, 제품명 미포함 — 공정성 유지).
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..979cd84
--- /dev/null
+++ b/README.md
@@ -0,0 +1,83 @@
+# theseus
+
+> Compare **model (L0) × agent (L1) × harness (L2)** combinations on *your own* local tasks.
+
+theseus is a comparison CLI (a TypeScript reimplementation of the **dike** product spec). It runs the
+same task subset across combinations and visualizes, side by side, each combination's **accuracy, cost,
+time, tool calls, and subagent call flow** — so you can understand the flow and pick the trade-off that
+fits you. It is **not** a leaderboard and produces **no single composite ranking** by default.
+
+Outputs for every run:
+- structured data — `results.jsonl` (source of truth) + `theseus.sqlite` (query cache, optional)
+- a human-readable, **self-contained** `report.html` (no external JS/CDN)
+- a subagent **flow graph** `graph.html` (inline SVG + native toggles)
+
+## Install
+
+```bash
+pnpm install # or npm install
+pnpm build # → dist/cli.js
+npm link # exposes `theseus` (or: node dist/cli.js …)
+```
+
+Node ≥ 20, ESM. `better-sqlite3` and `ink` are *optional* — if their native build fails, theseus
+degrades gracefully (JSONL stays the source of truth; the TUI falls back to a table).
+
+## Usage
+
+Multi-select flags are comma-separated; unselected = skipped.
+
+```bash
+# shorthand (no subcommand → compare)
+theseus --model opus4.8,gpt5.5 --agent cc,codex --harness none,superpowers
+
+# subcommands
+theseus compare --model gpt5.5 --agent codex --harness none,superpowers --bench subagent
+theseus results [--run <id>]
+theseus install <cc|codex|tb|superpowers|omc|ecc|omx|lazycodex>
+theseus doctor
+theseus tui [--out runs] [--rich] [--open]
+```
+
+Try it fully offline with the deterministic mock runner:
+
+```bash
+theseus --model opus4.8,gpt5.5 --agent cc,codex --harness none,omc \
+ --bench subagent --tasks 4 --runner mock -L en
+```
+
+### Key flags
+
+`--model --agent --harness` · `--bench` (default `terminal-bench-v2`) · `--tasks` (20) · `--runs` (1)
+· `--seed` · `--runner` (auto|mock|cc|codex|tb) · `--concurrency` (4) · `--timeout` (600)
+· `--out` (runs) · `--judge` (none|heuristic|cc) · `--score` · `--balanced` · `--dry-run`
+· `--yes/-y` · `--language/-L` (kr default; en).
+
+## Benches
+
+- **terminal-bench-v2** — external Terminal-Bench (delegated; Docker). Falls back to mock if `tb` absent.
+- **local** — built-in, file-verified happy-path tasks (no Docker).
+- **subagent** — built-in hard tasks (`subagent-101…106`) whose verifiers **recompute the answer from the
+ input fixtures** (no hardcoded golden → no drift). Each carries one agent-agnostic delegation hint to
+ elicit real subagent fan-out in headless mode.
+
+## Invariants (do not break — see PRD §20)
+
+1. Sort base key `subagentCount → totalTokens → wallTimeMs` (only in `metrics.sortCombos`).
+2. No single composite score (perspective recommendations instead; `--score` is opt-in).
+3. Determinism: same `(bench, tasks, seed)` → same subset (sha256, no `Math.random`).
+4. fail-soft: a failed combo/task never blocks the run and is never silently dropped. `success ≠ resolved`.
+5. `null = uncollected` (never 0 / guessed).
+6. Runners are not reimplemented: tb/codex are called behind adapters; mock fallback (+banner) when absent.
+7. Self-contained HTML: no external JS/CDN, every external input escaped.
+8. Harness per-run: cc=`--plugin-dir`, codex=`CODEX_HOME` isolation. No global pollution.
+9. recompute-in-verify for subagent tasks.
+10. i18n: only display strings, kr fallback.
+
+## Development
+
+```bash
+pnpm typecheck && pnpm lint && pnpm test && pnpm build
+```
+
+See `docs/` for architecture, registry, transcript schema, and acceptance criteria.
diff --git a/biome.json b/biome.json
new file mode 100644
index 0000000..c1945b2
--- /dev/null
+++ b/biome.json
@@ -0,0 +1,26 @@
+{
+ "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
+ "organizeImports": { "enabled": true },
+ "files": {
+ "ignore": ["dist", "node_modules", "runs", "coverage"]
+ },
+ "formatter": {
+ "enabled": true,
+ "indentStyle": "space",
+ "indentWidth": 2,
+ "lineWidth": 100
+ },
+ "linter": {
+ "enabled": true,
+ "rules": {
+ "recommended": true,
+ "suspicious": {
+ "noExplicitAny": "off"
+ },
+ "style": {
+ "noNonNullAssertion": "off",
+ "useNodejsImportProtocol": "error"
+ }
+ }
+ }
+}
diff --git a/docs/acceptance.md b/docs/acceptance.md
new file mode 100644
index 0000000..0eb11e4
--- /dev/null
+++ b/docs/acceptance.md
@@ -0,0 +1,46 @@
+# Acceptance — 20 verification metrics (PRD §19)
+
+Each maps to a regression test under `tests/`. Run `pnpm test`.
+
+## BR — behavior (`tests/br_behavior.test.ts`)
+
+| id | check |
+|---|---|
+| BR1 | combo validity & exclude reasons (no silent drop) |
+| BR2 | subset determinism (same bench/tasks/seed → same subset; no Math.random) |
+| BR3 | runner never throws (returns success:false + artifacts) |
+| BR4 | harness per-run application (args/env/status) |
+| BR5 | bench setup + recompute-verify (independent solver writes correct answer → verify true; wrong → false) |
+| BR6 | multi-level subagent parsing (layout B, depth-2 via meta.toolUseId; token totals summed) |
+| BR7 | fail-soft (synthetic failure recorded, not dropped) |
+
+## CO — consistency (`tests/co_consistency.test.ts`)
+
+| id | check |
+|---|---|
+| CO1 | totalTokens == sum of token fields |
+| CO2 | subagentCount ≤ toolCalls; codex/gpt = 0 subagents |
+| CO3 | sort base key subagentCount → totalTokens → wallTimeMs |
+| CO4 | cost precedence actual > estimated > none |
+| CO5 | null ≠ 0 (uncollected stays null) |
+| CO6 | codex failure fail-soft (missing binary → success:false, artifacts written) |
+| CO7 | golden correctness via independent solvers (Bellman-Ford vs dijkstra; independent ledger sum) |
+
+## UX — presentation (`tests/ux_presentation.test.ts`)
+
+| id | check |
+|---|---|
+| UX1 | scatter present |
+| UX2 | task matrix present |
+| UX3 | flow graph present (inline SVG, MAIN LOOP) |
+| UX4 | node toggle present (skills/tools/log via native details) |
+| UX5 | i18n EN↔KR switch — no Korean leak in EN report; KR headers present |
+| UX6 | self-contained (no `<script>`, no CDN, no external `src`/`link`; only allowed http ref is the SVG namespace) |
+
+Integration (`tests/integration.test.ts`): full mock pipeline, recorder layout, determinism, accuracy bounds.
+
+## Definition of Done
+
+`pnpm typecheck && pnpm lint && pnpm test && pnpm build` all exit 0; runtime changes verified by real
+(mock) execution end-to-end. Real model (cc/codex) call paths are implemented and type-checked but not
+exercised with billable calls in CI.
diff --git a/docs/architecture.md b/docs/architecture.md
new file mode 100644
index 0000000..79eff36
--- /dev/null
+++ b/docs/architecture.md
@@ -0,0 +1,43 @@
+# Architecture
+
+Build/dependency order (= module layering):
+
+```
+models → config/pricing → combos/subset → runners → transcripts →
+metrics → flow → recorder → report → orchestrator → cli/tui
+```
+
+Cross-cutting: `i18n`, `harness`, `preflight`, `benches`, `judge`.
+
+## Data flow (one `compare`)
+
+```
+cli.compareAction
+ → combos.expand(models,agents,harnesses) → {valid, excluded}
+ → preflight.analyze (warnings + real-run gate)
+ → orchestrator.execute
+ → subset.select(Subset|Balanced) # deterministic (sha256)
+ → for each (combo × task × run), concurrency-bounded, fail-soft:
+ runners.runnerFor(agent, runner, {bench}) # auto dispatch / mock fallback
+ runner.run(inv) → RawRunArtifact # NEVER throws; always writes output+transcript
+ transcripts.parserFor(agent).parse(...) # tokens, subagentCount (★), tools, flow events
+ pricing.resolveCost(...) # actual > estimated > none
+ judge?.score(...) # opt-in
+ flow.buildFlow(...) → flow.json
+ recorder.appendResult(RunResult)
+ → metrics.aggregateAll → accuracy + perspectives
+ → recorder.writeMeta / writeAccuracy / finalizeSqlite(optional)
+ → report.renderReport (report.html) + flow.renderGraphHtml (graph.html)
+```
+
+## Key types (`models.ts`)
+
+`Combo`, `RunResult`, `TranscriptEvent`, `ParsedTranscript`, `FlowNode/Edge/Graph`,
+`RunInvocation`, `RawRunArtifact`, `RunOptions`. zod schemas guard every external input
+(headless JSON, transcript lines, persisted results).
+
+## Failure model
+
+- Runners are fail-soft: task failure/timeout/IO error → `success:false` + reason, never an exception.
+- The orchestrator additionally wraps `run()` defensively and records a synthetic fail-soft result.
+- `success` (ran to completion) and `resolved` (hidden verification passed) are independent axes.
diff --git a/docs/registry.md b/docs/registry.md
new file mode 100644
index 0000000..fcb74ea
--- /dev/null
+++ b/docs/registry.md
@@ -0,0 +1,37 @@
+# Registry (config.ts)
+
+## L0 models
+
+| alias | resolved id | family | pricing |
+|---|---|---|---|
+| opus4.8 / 4.7 / 4.6 | claude-opus-4-8 / -4-7 / -4-6 | claude | yes |
+| sonnet4.6 / 4.5 | claude-sonnet-4-6 / -4-5 | claude | yes |
+| haiku4.5 | claude-haiku-4-5 | claude | yes |
+| fable5 | claude-fable-5 | claude | **null (uncollected)** |
+| gpt5-codex | `default` (account default → omit `--model`) | gpt | **null** |
+| gpt5.5 | gpt-5.5 | gpt | estimated |
+| gpt5.1-codex | gpt-5.1-codex | gpt | estimated |
+
+## L1 agents
+
+`cc` (Claude Code, family=claude) · `codex` (Codex CLI, family=gpt).
+
+## L2 harnesses
+
+| harness | agents | orchestration |
+|---|---|---|
+| none | cc, codex | no |
+| superpowers | cc, codex | yes |
+| omc, ecc | cc only | yes |
+| omx, lazycodex | codex only | yes |
+
+## Compatibility rules (combos.expand)
+
+1. cc ↔ claude models only; codex ↔ gpt models only.
+2. omc/ecc are cc-only; omx/lazycodex are codex-only; superpowers is shared; none always allowed.
+3. `comboId = ${agent}+${model}+${harness}` (harness is the last `+` segment — safe even if the model id contains `+`).
+4. Incompatible combos are excluded **with a reason** (surfaced in meta.json / report) — never silently dropped.
+
+## Benches
+
+`terminal-bench-v2` (external, Docker, difficulty meta) · `local` (built-in) · `subagent` (built-in, hard).
diff --git a/docs/transcript_schema.md b/docs/transcript_schema.md
new file mode 100644
index 0000000..b1baa8c
--- /dev/null
+++ b/docs/transcript_schema.md
@@ -0,0 +1,37 @@
+# Transcript schema
+
+All parsing is defensive (zod, unknown fields allowed, malformed lines skipped). Common derivations:
+
+- `subagentCount` = tool_use with `name ∈ {Task, Agent}` (★ primary sort key)
+- `skillFires` = `{Skill, SlashCommand}`
+- `mcpCalls` = `name.startsWith("mcp__")`
+- tokens = sum of every assistant `usage` (input/output/cache_read/cache_creation), tracked separately
+
+## Claude Code (`transcripts/claudeCode.ts`) — two layouts
+
+**(A) inline sidechain** (older / mock): `isSidechain:true` events live inside a subagent; the
+`parentUuid` chain attributes them to the spawning `Task` tool_use. Nested spawns nest via parent links.
+
+**(B) separate files** (current cc, measured): subagent conversations are split into
+`<session>/subagents/agent-<id>.jsonl` + `agent-<id>.meta.json`; the main transcript has no sidechain.
+`meta.toolUseId` = the `Task` tool_use id that spawned this subagent → **multi-level parent link**. The
+cc runner copies `subagents/` into the work dir as `transcript_subagents/`; the parser reads them as
+siblings and **adds subagent tokens/tools to the totals** (correcting what single-file parsing missed).
+`subagentCount` = number of agent files (all levels).
+
+When layout B is present, inline `Task` tool_uses are treated only as spawns (counted as root tool calls)
+to avoid double-counting the same subagents.
+
+Per-node detail extracted at every level: `toolsUsed` (frequency-compressed, e.g. `Read×3`),
+`skillsUsed`, `steps` (action order), `logText`.
+
+## Codex (`transcripts/codex.ts`)
+
+`codex exec --json` thread events: `thread.started` (session), `turn.started` (numTurns),
+`turn.completed.usage` (tokens), `item.completed` (tools). Real codex has no in-process subagents (flat);
+only an explicit `parent_idx` (mock / legacy schema) is honored as nesting.
+
+## Synthetic transcripts (mock)
+
+The mock runner emits the same shapes: cc → assistant + sidechain JSONL with `Task` tool_uses and a
+`subagents/`-free inline layout; codex → thread-event JSONL. This makes parsers fully testable offline.
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..34dc871
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,5159 @@
+{
+ "name": "theseus",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "theseus",
+ "version": "0.1.0",
+ "dependencies": {
+ "cli-table3": "^0.6.5",
+ "commander": "^12.1.0",
+ "picocolors": "^1.1.1",
+ "zod": "^3.23.8"
+ },
+ "bin": {
+ "theseus": "dist/cli.js"
+ },
+ "devDependencies": {
+ "@biomejs/biome": "^1.9.4",
+ "@types/better-sqlite3": "^7.6.11",
+ "@types/node": "^20.14.0",
+ "@vitest/coverage-v8": "^2.1.0",
+ "tsup": "^8.2.0",
+ "tsx": "^4.19.0",
+ "typescript": "^5.5.0",
+ "vitest": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "optionalDependencies": {
+ "better-sqlite3": "^11.3.0",
+ "ink": "^5.0.1",
+ "react": "^18.3.1"
+ }
+ },
+ "node_modules/@alcalzone/ansi-tokenize": {
+ "version": "0.1.3",
+ "resolved": "https://registry.npmjs.org/@alcalzone/ansi-tokenize/-/ansi-tokenize-0.1.3.tgz",
+ "integrity": "sha512-3yWxPTq3UQ/FY9p1ErPxIyfT64elWaMvM9lIHnaqpyft63tkxodF5aUElYHrdisWve5cETkh1+KBw1yJuW0aRw==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "ansi-styles": "^6.2.1",
+ "is-fullwidth-code-point": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=14.13.1"
+ }
+ },
+ "node_modules/@ampproject/remapping": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz",
+ "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",
+ "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz",
+ "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.7"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.29.7",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz",
+ "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.29.7",
+ "@babel/helper-validator-identifier": "^7.29.7"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@bcoe/v8-coverage": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz",
+ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@biomejs/biome": {
+ "version": "1.9.4",
+ "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-1.9.4.tgz",
+ "integrity": "sha512-1rkd7G70+o9KkTn5KLmDYXihGoTaIGO9PIIN2ZB7UJxFrWw04CZHPYiMRjYsaDvVV7hP1dYNRLxSANLaBFGpog==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT OR Apache-2.0",
+ "bin": {
+ "biome": "bin/biome"
+ },
+ "engines": {
+ "node": ">=14.21.3"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/biome"
+ },
+ "optionalDependencies": {
+ "@biomejs/cli-darwin-arm64": "1.9.4",
+ "@biomejs/cli-darwin-x64": "1.9.4",
+ "@biomejs/cli-linux-arm64": "1.9.4",
+ "@biomejs/cli-linux-arm64-musl": "1.9.4",
+ "@biomejs/cli-linux-x64": "1.9.4",
+ "@biomejs/cli-linux-x64-musl": "1.9.4",
+ "@biomejs/cli-win32-arm64": "1.9.4",
+ "@biomejs/cli-win32-x64": "1.9.4"
+ }
+ },
+ "node_modules/@biomejs/cli-darwin-arm64": {
+ "version": "1.9.4",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.9.4.tgz",
+ "integrity": "sha512-bFBsPWrNvkdKrNCYeAp+xo2HecOGPAy9WyNyB/jKnnedgzl4W4Hb9ZMzYNbf8dMCGmUdSavlYHiR01QaYR58cw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT OR Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-darwin-x64": {
+ "version": "1.9.4",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.9.4.tgz",
+ "integrity": "sha512-ngYBh/+bEedqkSevPVhLP4QfVPCpb+4BBe2p7Xs32dBgs7rh9nY2AIYUL6BgLw1JVXV8GlpKmb/hNiuIxfPfZg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT OR Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-linux-arm64": {
+ "version": "1.9.4",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.9.4.tgz",
+ "integrity": "sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT OR Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-linux-arm64-musl": {
+ "version": "1.9.4",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.9.4.tgz",
+ "integrity": "sha512-v665Ct9WCRjGa8+kTr0CzApU0+XXtRgwmzIf1SeKSGAv+2scAlW6JR5PMFo6FzqqZ64Po79cKODKf3/AAmECqA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT OR Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-linux-x64": {
+ "version": "1.9.4",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.9.4.tgz",
+ "integrity": "sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT OR Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-linux-x64-musl": {
+ "version": "1.9.4",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.9.4.tgz",
+ "integrity": "sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT OR Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-win32-arm64": {
+ "version": "1.9.4",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.9.4.tgz",
+ "integrity": "sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT OR Apache-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@biomejs/cli-win32-x64": {
+ "version": "1.9.4",
+ "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-1.9.4.tgz",
+ "integrity": "sha512-8Y5wMhVIPaWe6jw2H+KlEm4wP/f7EW3810ZLmDlrEEy5KvBsb9ECEfu/kMWD484ijfQ8+nIi0giMgu9g1UAuuA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT OR Apache-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=14.21.3"
+ }
+ },
+ "node_modules/@colors/colors": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz",
+ "integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=0.1.90"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz",
+ "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz",
+ "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz",
+ "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz",
+ "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz",
+ "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz",
+ "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz",
+ "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz",
+ "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz",
+ "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz",
+ "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz",
+ "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz",
+ "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz",
+ "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz",
+ "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz",
+ "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz",
+ "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz",
+ "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz",
+ "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz",
+ "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz",
+ "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz",
+ "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz",
+ "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz",
+ "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz",
+ "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz",
+ "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz",
+ "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@isaacs/cliui": {
+ "version": "8.0.2",
+ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
+ "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^5.1.2",
+ "string-width-cjs": "npm:string-width@^4.2.0",
+ "strip-ansi": "^7.0.1",
+ "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",
+ "wrap-ansi": "^8.1.0",
+ "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@isaacs/cliui/node_modules/ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/@isaacs/cliui/node_modules/emoji-regex": {
+ "version": "9.2.2",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",
+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@isaacs/cliui/node_modules/string-width": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",
+ "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "eastasianwidth": "^0.2.0",
+ "emoji-regex": "^9.2.2",
+ "strip-ansi": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@isaacs/cliui/node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/@isaacs/cliui/node_modules/wrap-ansi": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",
+ "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^6.1.0",
+ "string-width": "^5.0.1",
+ "strip-ansi": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/@istanbuljs/schema": {
+ "version": "0.1.6",
+ "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.6.tgz",
+ "integrity": "sha512-+Sg6GCR/wy1oSmQDFq4LQDAhm3ETKnorxN+y5nbLULOR3P0c14f2Wurzj3/xqPXtasLFfHd5iRFQ7AJt4KH2cw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@pkgjs/parseargs": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",
+ "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=14"
+ }
+ },
+ "node_modules/@rollup/rollup-android-arm-eabi": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.62.2.tgz",
+ "integrity": "sha512-6o7ZLZK+BeenkZCFNDXqpbjw9bD6nuWonvS/lwQJp7NoVVxm6p3qE7qQ5jGuBjiFsgvqjD8mZAU5oWxTmbOeOg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-android-arm64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.62.2.tgz",
+ "integrity": "sha512-BaH7BllCACHoH1LguOU56UItGfUWjujlO65kS9LAodViaN4bwIKd7oeW/ZHJ/4ljr/7MIiENnNy3HJ0zXv8Zkw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-arm64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.62.2.tgz",
+ "integrity": "sha512-v39RCCvj4He82I9sFmk+M1VZ0PLM9sfsLVikjfx2hYBNALhrrOR2D3JjQA6AhlaSOgcR+RzrKY7e1+bT6SUO/A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-x64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.62.2.tgz",
+ "integrity": "sha512-yl0y2vq3S3lHeuXhEdss6TWfKW8vkujImO12tn4ZkG/4oghr09LvdYm2RElVjokTQiUvDUGXLGsYeLqUMCKpGA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-arm64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.62.2.tgz",
+ "integrity": "sha512-tT4pvt4qXD+vEoezupCWi+a1F0vvDiksiHc+PxRlYTOH1I6/X4id9jPxTP+Fg+545euaFT1jJVs4CEdHZAU1vw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-x64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.62.2.tgz",
+ "integrity": "sha512-6nU5F2wCW+qvCBhTn1pdIU3bzsIoF7EUwsCDRxilWGprQR6yd508YnH9+OKFCwpfS8pjZqDUmnCAr7exax0XCg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.62.2.tgz",
+ "integrity": "sha512-n1GJHPOvpIfhi3TmrCeh6S6URt9BFCt0KQE3qvexyGCTAKpR4Lg+eWvNZEqu7epxwus/8ElT3hacYEucm49SZg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.62.2.tgz",
+ "integrity": "sha512-JqgflS8wEB+UXV/vS1RpRbifGBeN4D5lz8D8oOFbFZw4vedvdOgCFAjfBmIMdW3yL10XpQQ0Ambepw6MXrhOnA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.62.2.tgz",
+ "integrity": "sha512-wnFJkogWvN4jm/hQRF2UBaeUmk20j5+DmHvoyWii2b8HJDyvz1MF2OU/6ynXt2KR63rbZLWkFpoytpdc/yBuSA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.62.2.tgz",
+ "integrity": "sha512-HVu2bp0zhvJ8xHEV9+UUs7S90VadmBSY3LcIMvozbPo4AuMGDWlz3ymHLHZPX4hR67TKTt8Qp5PJ5RBg/i+RMQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.62.2.tgz",
+ "integrity": "sha512-mQqqAV8QaoSgr9I2fKDLY2BAVvmKjWoGiu/cSYQonsLvtqwEn1E4QYfnCOcp5zoEqNhsDYin1s6jx/VJmrxlZg==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-musl": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.62.2.tgz",
+ "integrity": "sha512-IxKLoxCQ2IWi6bT2akyDUBGsOImDKB+sPp4EsTmwFQ/fMwpCKm8uLSSgP/Kx/QYUgKis6SEZ5/Nlhup0DIA0PQ==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.62.2.tgz",
+ "integrity": "sha512-Mk5ha2RQSgyFfmYYLkBpPnUk8D8FriBxesO1u9O75X0mHgXL1UQcH5Itl2lurWL2tj0RxV9b9tJgipac0hRY9A==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-musl": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.62.2.tgz",
+ "integrity": "sha512-CjvEnqJL/0/TQ3TXX3OPIJ/kmBellrWd4heXUmHeJlTnmwjKpSJzoehLaL6Xk0ZnMHBu9dZuFADNOrtjF4v+2w==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.62.2.tgz",
+ "integrity": "sha512-1SiZbzwdkaDURsew/tSOrooKiYy7EQGT6m8ufavAi9NEyQb/6VuIxFXAL1fqa4iZe3g4NbNk4P7J32z2tw5Mgg==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-musl": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.62.2.tgz",
+ "integrity": "sha512-nQts12zJ3NQRoE6uYljOH89v7szzLDvG2JD/vsX+vGXU8w/At1GowTZ5/7qeFQ8m7L55rpR8Okugnuo5bgjy2Q==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.62.2.tgz",
+ "integrity": "sha512-E9/ll019jhPIJgpzfZoIkBGhcz+kKNgVWYRY0zr9srBdPPFVpvOKW8VaJKUbeK+eZXyQF9ltME+Kk6affeaPgg==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.62.2.tgz",
+ "integrity": "sha512-5BqxR/pshjey51iliyzTD5Xi3EN0aLmQ2lZ3lvefVV9c82BvrLo2/6OT55iifpWBufs6kdwWbuOKS841DrmK9A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.62.2.tgz",
+ "integrity": "sha512-uNN83XxQrRAh/w0/pmAfibcwyb6YWt4gP+dpnQKPVJshAloQ785ii8CT8ZCIxkGg9opVsvAlGhFitSm6D1Jjpg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-openbsd-x64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.62.2.tgz",
+ "integrity": "sha512-srjEIxSH3LRnJN6THczDHWQplqEMFiAJrTab0msUryh9kwNpkICf3Ea6q6MN/2cZwRFUNx5w+h6Hpi4QuHS6Zg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-openharmony-arm64": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.62.2.tgz",
+ "integrity": "sha512-8hOJnxgbyObnCm5AlRA3A931xX19xq80RjVTKgJOvEKWqJruP/Uf12IbAOaDjjEXYRewwHLfmF0YRIdK3OwKWA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.62.2.tgz",
+ "integrity": "sha512-mmF4AY1i0hG/bLWUctUq59gtmgaSIRa3cu/A3JFRp/sCNEme2bgDEiDS22P9FbnJB8NJNF4jPJiSP5RHQpUTDg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.62.2.tgz",
+ "integrity": "sha512-DZgkknc6jhHrk46V25vbAM0zZkyP0nSDkJB8/dRkLTxv470dOmWDqGoEJl/9A0dFfS7yE3REOwNDxpHwSLSt0Q==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-gnu": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.62.2.tgz",
+ "integrity": "sha512-T6xr6ucWSFto+VGajA8YH26LdpHRuP4YLHEKAtCWvJDOlnmWcDZVCI2Jmjr+IFHDlt2zRaTAKE4tfjTaWLgJBg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.62.2.tgz",
+ "integrity": "sha512-BfzEnDJOt9T8M989/lA37EcJgat01wLRnoi5dQf3QzOH7jzpqTAzdDbVfRljVr5r+jzKqpbHeyOfAaXxAd0PAA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@types/better-sqlite3": {
+ "version": "7.6.13",
+ "resolved": "https://registry.npmjs.org/@types/better-sqlite3/-/better-sqlite3-7.6.13.tgz",
+ "integrity": "sha512-NMv9ASNARoKksWtsq/SHakpYAYnhBrQgGD8zkLYk/jaK8jUGn08CfEdTRgYhMypUQAfzSP8W6gNLe0q19/t4VA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.9",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",
+ "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/node": {
+ "version": "20.19.43",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz",
+ "integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~6.21.0"
+ }
+ },
+ "node_modules/@vitest/coverage-v8": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-2.1.9.tgz",
+ "integrity": "sha512-Z2cOr0ksM00MpEfyVE8KXIYPEcBFxdbLSs56L8PO0QQMxt/6bDj45uQfxoc96v05KW3clk7vvgP0qfDit9DmfQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@ampproject/remapping": "^2.3.0",
+ "@bcoe/v8-coverage": "^0.2.3",
+ "debug": "^4.3.7",
+ "istanbul-lib-coverage": "^3.2.2",
+ "istanbul-lib-report": "^3.0.1",
+ "istanbul-lib-source-maps": "^5.0.6",
+ "istanbul-reports": "^3.1.7",
+ "magic-string": "^0.30.12",
+ "magicast": "^0.3.5",
+ "std-env": "^3.8.0",
+ "test-exclude": "^7.0.1",
+ "tinyrainbow": "^1.2.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "@vitest/browser": "2.1.9",
+ "vitest": "2.1.9"
+ },
+ "peerDependenciesMeta": {
+ "@vitest/browser": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vitest/expect": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.9.tgz",
+ "integrity": "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/spy": "2.1.9",
+ "@vitest/utils": "2.1.9",
+ "chai": "^5.1.2",
+ "tinyrainbow": "^1.2.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/mocker": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.9.tgz",
+ "integrity": "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/spy": "2.1.9",
+ "estree-walker": "^3.0.3",
+ "magic-string": "^0.30.12"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "msw": "^2.4.9",
+ "vite": "^5.0.0"
+ },
+ "peerDependenciesMeta": {
+ "msw": {
+ "optional": true
+ },
+ "vite": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vitest/pretty-format": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.9.tgz",
+ "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tinyrainbow": "^1.2.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/runner": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.9.tgz",
+ "integrity": "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/utils": "2.1.9",
+ "pathe": "^1.1.2"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/runner/node_modules/pathe": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",
+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@vitest/snapshot": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.9.tgz",
+ "integrity": "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/pretty-format": "2.1.9",
+ "magic-string": "^0.30.12",
+ "pathe": "^1.1.2"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/snapshot/node_modules/pathe": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",
+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@vitest/spy": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.9.tgz",
+ "integrity": "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tinyspy": "^3.0.2"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/@vitest/utils": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.9.tgz",
+ "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/pretty-format": "2.1.9",
+ "loupe": "^3.1.2",
+ "tinyrainbow": "^1.2.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/acorn": {
+ "version": "8.17.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.17.0.tgz",
+ "integrity": "sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "acorn": "bin/acorn"
+ },
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/ansi-escapes": {
+ "version": "7.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.3.0.tgz",
+ "integrity": "sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "environment": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "6.2.3",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
+ "devOptional": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/any-promise": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/assertion-error": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",
+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/auto-bind": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-5.0.1.tgz",
+ "integrity": "sha512-ooviqdwwgfIfNmDwo94wlshcdzfO64XV0Cg6oDsDYBJfITDz1EngD2z7DkbvCWn+XIMsIqW27sEVF6qcpJrRcg==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "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",
+ "optional": true
+ },
+ "node_modules/better-sqlite3": {
+ "version": "11.10.0",
+ "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-11.10.0.tgz",
+ "integrity": "sha512-EwhOpyXiOEL/lKzHz9AW1msWFNzGc/z+LzeB3/jnFJpxu+th2yqvzsSWas1v9jgs9+xiXJcD5A8CJxAG2TaghQ==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "bindings": "^1.5.0",
+ "prebuild-install": "^7.1.1"
+ }
+ },
+ "node_modules/bindings": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
+ "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "file-uri-to-path": "1.0.0"
+ }
+ },
+ "node_modules/bl": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
+ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "buffer": "^5.5.0",
+ "inherits": "^2.0.4",
+ "readable-stream": "^3.4.0"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "5.0.6",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz",
+ "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/buffer": {
+ "version": "5.7.1",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+ "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",
+ "optional": true,
+ "dependencies": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
+ }
+ },
+ "node_modules/bundle-require": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/bundle-require/-/bundle-require-5.1.0.tgz",
+ "integrity": "sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "load-tsconfig": "^0.2.3"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "peerDependencies": {
+ "esbuild": ">=0.18"
+ }
+ },
+ "node_modules/cac": {
+ "version": "6.7.14",
+ "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",
+ "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/chai": {
+ "version": "5.3.3",
+ "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz",
+ "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "assertion-error": "^2.0.1",
+ "check-error": "^2.1.1",
+ "deep-eql": "^5.0.1",
+ "loupe": "^3.1.0",
+ "pathval": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/chalk": {
+ "version": "5.6.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz",
+ "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": "^12.17.0 || ^14.13 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/chalk?sponsor=1"
+ }
+ },
+ "node_modules/check-error": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz",
+ "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 16"
+ }
+ },
+ "node_modules/chokidar": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",
+ "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "readdirp": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 14.16.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/chownr": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
+ "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
+ "license": "ISC",
+ "optional": true
+ },
+ "node_modules/cli-boxes": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz",
+ "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-cursor": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-4.0.0.tgz",
+ "integrity": "sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "restore-cursor": "^4.0.0"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-table3": {
+ "version": "0.6.5",
+ "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.5.tgz",
+ "integrity": "sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==",
+ "license": "MIT",
+ "dependencies": {
+ "string-width": "^4.2.0"
+ },
+ "engines": {
+ "node": "10.* || >= 12.*"
+ },
+ "optionalDependencies": {
+ "@colors/colors": "1.5.0"
+ }
+ },
+ "node_modules/cli-truncate": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz",
+ "integrity": "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "slice-ansi": "^5.0.0",
+ "string-width": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-truncate/node_modules/ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/cli-truncate/node_modules/emoji-regex": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/cli-truncate/node_modules/slice-ansi": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz",
+ "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "ansi-styles": "^6.0.0",
+ "is-fullwidth-code-point": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"
+ }
+ },
+ "node_modules/cli-truncate/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cli-truncate/node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/code-excerpt": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-4.0.0.tgz",
+ "integrity": "sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "convert-to-spaces": "^2.0.1"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ }
+ },
+ "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/commander": {
+ "version": "12.1.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
+ "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "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==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/consola": {
+ "version": "3.4.2",
+ "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz",
+ "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^14.18.0 || >=16.10.0"
+ }
+ },
+ "node_modules/convert-to-spaces": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-2.0.1.tgz",
+ "integrity": "sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.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/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/decompress-response": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
+ "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "mimic-response": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/deep-eql": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",
+ "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/deep-extend": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
+ "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "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",
+ "optional": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/eastasianwidth": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",
+ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "license": "MIT"
+ },
+ "node_modules/end-of-stream": {
+ "version": "1.4.5",
+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",
+ "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "once": "^1.4.0"
+ }
+ },
+ "node_modules/environment": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",
+ "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/es-module-lexer": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz",
+ "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/es-toolkit": {
+ "version": "1.48.1",
+ "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.48.1.tgz",
+ "integrity": "sha512-wfnXlwd5I75eXRtdD2vuEs50xHHESECDsGD7yiQnfFVNoa5522NwXEbmgo98LfiukSQHs+mBM7/YG3qKJB9/mQ==",
+ "license": "MIT",
+ "optional": true,
+ "workspaces": [
+ "docs",
+ "benchmarks"
+ ]
+ },
+ "node_modules/esbuild": {
+ "version": "0.27.7",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz",
+ "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.27.7",
+ "@esbuild/android-arm": "0.27.7",
+ "@esbuild/android-arm64": "0.27.7",
+ "@esbuild/android-x64": "0.27.7",
+ "@esbuild/darwin-arm64": "0.27.7",
+ "@esbuild/darwin-x64": "0.27.7",
+ "@esbuild/freebsd-arm64": "0.27.7",
+ "@esbuild/freebsd-x64": "0.27.7",
+ "@esbuild/linux-arm": "0.27.7",
+ "@esbuild/linux-arm64": "0.27.7",
+ "@esbuild/linux-ia32": "0.27.7",
+ "@esbuild/linux-loong64": "0.27.7",
+ "@esbuild/linux-mips64el": "0.27.7",
+ "@esbuild/linux-ppc64": "0.27.7",
+ "@esbuild/linux-riscv64": "0.27.7",
+ "@esbuild/linux-s390x": "0.27.7",
+ "@esbuild/linux-x64": "0.27.7",
+ "@esbuild/netbsd-arm64": "0.27.7",
+ "@esbuild/netbsd-x64": "0.27.7",
+ "@esbuild/openbsd-arm64": "0.27.7",
+ "@esbuild/openbsd-x64": "0.27.7",
+ "@esbuild/openharmony-arm64": "0.27.7",
+ "@esbuild/sunos-x64": "0.27.7",
+ "@esbuild/win32-arm64": "0.27.7",
+ "@esbuild/win32-ia32": "0.27.7",
+ "@esbuild/win32-x64": "0.27.7"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",
+ "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/estree-walker": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.0"
+ }
+ },
+ "node_modules/expand-template": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
+ "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
+ "license": "(MIT OR WTFPL)",
+ "optional": true,
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/expect-type": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz",
+ "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/file-uri-to-path": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
+ "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/fix-dts-default-cjs-exports": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/fix-dts-default-cjs-exports/-/fix-dts-default-cjs-exports-1.0.1.tgz",
+ "integrity": "sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "magic-string": "^0.30.17",
+ "mlly": "^1.7.4",
+ "rollup": "^4.34.8"
+ }
+ },
+ "node_modules/foreground-child": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",
+ "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "cross-spawn": "^7.0.6",
+ "signal-exit": "^4.0.1"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/foreground-child/node_modules/signal-exit": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/fs-constants": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
+ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/get-east-asian-width": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz",
+ "integrity": "sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/github-from-package": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
+ "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/glob": {
+ "version": "10.5.0",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",
+ "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",
+ "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "foreground-child": "^3.1.0",
+ "jackspeak": "^3.1.2",
+ "minimatch": "^9.0.4",
+ "minipass": "^7.1.2",
+ "package-json-from-dist": "^1.0.0",
+ "path-scurry": "^1.11.1"
+ },
+ "bin": {
+ "glob": "dist/esm/bin.mjs"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/glob/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/glob/node_modules/brace-expansion": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.1.tgz",
+ "integrity": "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/glob/node_modules/minimatch": {
+ "version": "9.0.9",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz",
+ "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^2.0.2"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/html-escaper": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz",
+ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/ieee754": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
+ "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": "BSD-3-Clause",
+ "optional": true
+ },
+ "node_modules/indent-string": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz",
+ "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "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",
+ "optional": true
+ },
+ "node_modules/ini": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
+ "license": "ISC",
+ "optional": true
+ },
+ "node_modules/ink": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/ink/-/ink-5.2.1.tgz",
+ "integrity": "sha512-BqcUyWrG9zq5HIwW6JcfFHsIYebJkWWb4fczNah1goUO0vv5vneIlfwuS85twyJ5hYR/y18FlAYUxrO9ChIWVg==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@alcalzone/ansi-tokenize": "^0.1.3",
+ "ansi-escapes": "^7.0.0",
+ "ansi-styles": "^6.2.1",
+ "auto-bind": "^5.0.1",
+ "chalk": "^5.3.0",
+ "cli-boxes": "^3.0.0",
+ "cli-cursor": "^4.0.0",
+ "cli-truncate": "^4.0.0",
+ "code-excerpt": "^4.0.0",
+ "es-toolkit": "^1.22.0",
+ "indent-string": "^5.0.0",
+ "is-in-ci": "^1.0.0",
+ "patch-console": "^2.0.0",
+ "react-reconciler": "^0.29.0",
+ "scheduler": "^0.23.0",
+ "signal-exit": "^3.0.7",
+ "slice-ansi": "^7.1.0",
+ "stack-utils": "^2.0.6",
+ "string-width": "^7.2.0",
+ "type-fest": "^4.27.0",
+ "widest-line": "^5.0.0",
+ "wrap-ansi": "^9.0.0",
+ "ws": "^8.18.0",
+ "yoga-layout": "~3.2.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/react": ">=18.0.0",
+ "react": ">=18.0.0",
+ "react-devtools-core": "^4.19.1"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "react-devtools-core": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/ink/node_modules/ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/ink/node_modules/emoji-regex": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/ink/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/ink/node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz",
+ "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/is-in-ci": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-in-ci/-/is-in-ci-1.0.0.tgz",
+ "integrity": "sha512-eUuAjybVTHMYWm/U+vBO1sY/JOCgoPCXRxzdju0K+K0BiGW0SChEL1MLC0PoCIR1OlPo5YAp8HuQoUlsWEICwg==",
+ "license": "MIT",
+ "optional": true,
+ "bin": {
+ "is-in-ci": "cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/istanbul-lib-coverage": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz",
+ "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/istanbul-lib-report": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz",
+ "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "istanbul-lib-coverage": "^3.0.0",
+ "make-dir": "^4.0.0",
+ "supports-color": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/istanbul-lib-source-maps": {
+ "version": "5.0.6",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz",
+ "integrity": "sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "@jridgewell/trace-mapping": "^0.3.23",
+ "debug": "^4.1.1",
+ "istanbul-lib-coverage": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/istanbul-reports": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz",
+ "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "html-escaper": "^2.0.0",
+ "istanbul-lib-report": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/jackspeak": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",
+ "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "@isaacs/cliui": "^8.0.2"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ },
+ "optionalDependencies": {
+ "@pkgjs/parseargs": "^0.11.0"
+ }
+ },
+ "node_modules/joycon": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz",
+ "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/lilconfig": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",
+ "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antonk52"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/load-tsconfig": {
+ "version": "0.2.5",
+ "resolved": "https://registry.npmjs.org/load-tsconfig/-/load-tsconfig-0.2.5.tgz",
+ "integrity": "sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ }
+ },
+ "node_modules/loose-envify": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "js-tokens": "^3.0.0 || ^4.0.0"
+ },
+ "bin": {
+ "loose-envify": "cli.js"
+ }
+ },
+ "node_modules/loupe": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz",
+ "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lru-cache": {
+ "version": "10.4.3",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",
+ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/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/magicast": {
+ "version": "0.3.5",
+ "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.3.5.tgz",
+ "integrity": "sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.25.4",
+ "@babel/types": "^7.25.4",
+ "source-map-js": "^1.2.0"
+ }
+ },
+ "node_modules/make-dir": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz",
+ "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.5.3"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/mimic-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/mimic-response": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
+ "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "10.2.5",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz",
+ "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "brace-expansion": "^5.0.5"
+ },
+ "engines": {
+ "node": "18 || 20 || >=22"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/minimist": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "license": "MIT",
+ "optional": true,
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/minipass": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",
+ "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/mkdirp-classic": {
+ "version": "0.5.3",
+ "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
+ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/mlly": {
+ "version": "1.8.2",
+ "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz",
+ "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "acorn": "^8.16.0",
+ "pathe": "^2.0.3",
+ "pkg-types": "^1.3.1",
+ "ufo": "^1.6.3"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/mz": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",
+ "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "any-promise": "^1.0.0",
+ "object-assign": "^4.0.1",
+ "thenify-all": "^1.0.0"
+ }
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.15",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.15.tgz",
+ "integrity": "sha512-y7Wygv/7mEOvxTuEQDB8StXdMRBWf1kR/tlhAzBRUFkB2jfcLOAxO/SHmOO2zgz1pVgK29/kyupn059/bCHdjA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/napi-build-utils": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz",
+ "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/node-abi": {
+ "version": "3.92.0",
+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.92.0.tgz",
+ "integrity": "sha512-KdHvFWZjEKDf0cakgFjebl371GPsISX2oZHcuyKqM7DtogIsHrqKeLTo8wBHxaXRAQlY2PsPlZmfo+9ZCxEREQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "semver": "^7.3.5"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "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/once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+ "license": "ISC",
+ "optional": true,
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/onetime": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "mimic-fn": "^2.1.0"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/package-json-from-dist": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
+ "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",
+ "dev": true,
+ "license": "BlueOak-1.0.0"
+ },
+ "node_modules/patch-console": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/patch-console/-/patch-console-2.0.0.tgz",
+ "integrity": "sha512-0YNdUceMdaQwoKce1gatDScmMo5pu/tfABfnzEqeG0gtTmd7mh/WcwgUjtAeOU7N8nFFlbQBnFK2gXW5fGvmMA==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-scurry": {
+ "version": "1.11.1",
+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",
+ "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "dependencies": {
+ "lru-cache": "^10.2.0",
+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/pathe": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/pathval": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz",
+ "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 14.16"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "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/pirates": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",
+ "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/pkg-types": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz",
+ "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "confbox": "^0.1.8",
+ "mlly": "^1.7.4",
+ "pathe": "^2.0.1"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.15",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz",
+ "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.12",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/postcss-load-config": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz",
+ "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "lilconfig": "^3.1.1"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "peerDependencies": {
+ "jiti": ">=1.21.0",
+ "postcss": ">=8.0.9",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ },
+ "postcss": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/prebuild-install": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz",
+ "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==",
+ "deprecated": "No longer maintained. Please contact the author of the relevant native addon; alternatives are available.",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "detect-libc": "^2.0.0",
+ "expand-template": "^2.0.3",
+ "github-from-package": "0.0.0",
+ "minimist": "^1.2.3",
+ "mkdirp-classic": "^0.5.3",
+ "napi-build-utils": "^2.0.0",
+ "node-abi": "^3.3.0",
+ "pump": "^3.0.0",
+ "rc": "^1.2.7",
+ "simple-get": "^4.0.0",
+ "tar-fs": "^2.0.0",
+ "tunnel-agent": "^0.6.0"
+ },
+ "bin": {
+ "prebuild-install": "bin.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/pump": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz",
+ "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
+ "node_modules/rc": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
+ "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
+ "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
+ "optional": true,
+ "dependencies": {
+ "deep-extend": "^0.6.0",
+ "ini": "~1.3.0",
+ "minimist": "^1.2.0",
+ "strip-json-comments": "~2.0.1"
+ },
+ "bin": {
+ "rc": "cli.js"
+ }
+ },
+ "node_modules/react": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
+ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-reconciler": {
+ "version": "0.29.2",
+ "resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.29.2.tgz",
+ "integrity": "sha512-zZQqIiYgDCTP/f1N/mAR10nJGrPD2ZR+jDSEsKWJHYC7Cm2wodlwbR3upZRdC3cjIjSlTLNVyO7Iu0Yy7t2AYg==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "loose-envify": "^1.1.0",
+ "scheduler": "^0.23.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "peerDependencies": {
+ "react": "^18.3.1"
+ }
+ },
+ "node_modules/readable-stream": {
+ "version": "3.6.2",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/readdirp": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",
+ "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 14.18.0"
+ },
+ "funding": {
+ "type": "individual",
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/resolve-from": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",
+ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/restore-cursor": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz",
+ "integrity": "sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "onetime": "^5.1.0",
+ "signal-exit": "^3.0.2"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/rollup": {
+ "version": "4.62.2",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.62.2.tgz",
+ "integrity": "sha512-RFnrW4lhXA3s3eqHDZvN654g8OTjzRfqpIRJYczCGB6HzphckVAi/Qh4tbPUbRuDi7s1Llv8g/NspLkttY3gTA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "1.0.9"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-android-arm-eabi": "4.62.2",
+ "@rollup/rollup-android-arm64": "4.62.2",
+ "@rollup/rollup-darwin-arm64": "4.62.2",
+ "@rollup/rollup-darwin-x64": "4.62.2",
+ "@rollup/rollup-freebsd-arm64": "4.62.2",
+ "@rollup/rollup-freebsd-x64": "4.62.2",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.62.2",
+ "@rollup/rollup-linux-arm-musleabihf": "4.62.2",
+ "@rollup/rollup-linux-arm64-gnu": "4.62.2",
+ "@rollup/rollup-linux-arm64-musl": "4.62.2",
+ "@rollup/rollup-linux-loong64-gnu": "4.62.2",
+ "@rollup/rollup-linux-loong64-musl": "4.62.2",
+ "@rollup/rollup-linux-ppc64-gnu": "4.62.2",
+ "@rollup/rollup-linux-ppc64-musl": "4.62.2",
+ "@rollup/rollup-linux-riscv64-gnu": "4.62.2",
+ "@rollup/rollup-linux-riscv64-musl": "4.62.2",
+ "@rollup/rollup-linux-s390x-gnu": "4.62.2",
+ "@rollup/rollup-linux-x64-gnu": "4.62.2",
+ "@rollup/rollup-linux-x64-musl": "4.62.2",
+ "@rollup/rollup-openbsd-x64": "4.62.2",
+ "@rollup/rollup-openharmony-arm64": "4.62.2",
+ "@rollup/rollup-win32-arm64-msvc": "4.62.2",
+ "@rollup/rollup-win32-ia32-msvc": "4.62.2",
+ "@rollup/rollup-win32-x64-gnu": "4.62.2",
+ "@rollup/rollup-win32-x64-msvc": "4.62.2",
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+ "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",
+ "optional": true
+ },
+ "node_modules/scheduler": {
+ "version": "0.23.2",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ }
+ },
+ "node_modules/semver": {
+ "version": "7.8.5",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
+ "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
+ "devOptional": true,
+ "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",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/siginfo": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",
+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "license": "ISC",
+ "optional": true
+ },
+ "node_modules/simple-concat": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
+ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
+ "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",
+ "optional": true
+ },
+ "node_modules/simple-get": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
+ "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
+ "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",
+ "optional": true,
+ "dependencies": {
+ "decompress-response": "^6.0.0",
+ "once": "^1.3.1",
+ "simple-concat": "^1.0.0"
+ }
+ },
+ "node_modules/slice-ansi": {
+ "version": "7.1.2",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.2.tgz",
+ "integrity": "sha512-iOBWFgUX7caIZiuutICxVgX1SdxwAVFFKwt1EvMYYec/NWO5meOJ6K5uQxhrYBdQJne4KxiqZc+KptFOWFSI9w==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "ansi-styles": "^6.2.1",
+ "is-fullwidth-code-point": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/slice-ansi?sponsor=1"
+ }
+ },
+ "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.1.0.tgz",
+ "integrity": "sha512-5XHYaSyiqADb4RnZ1Bdad6cPp8Toise4TzEjcOYDHZkTCbKgiUl7WTUCpNWHuxmDt91wnsZBc9xinNzopv3JMQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "get-east-asian-width": "^1.3.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/source-map": {
+ "version": "0.7.6",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz",
+ "integrity": "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">= 12"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/stack-utils": {
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz",
+ "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "escape-string-regexp": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/stackback": {
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",
+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/std-env": {
+ "version": "3.10.0",
+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz",
+ "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/string_decoder": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/string-width-cjs": {
+ "name": "string-width",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/string-width/node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi-cjs": {
+ "name": "strip-ansi",
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
+ "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/sucrase": {
+ "version": "3.35.1",
+ "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz",
+ "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.2",
+ "commander": "^4.0.0",
+ "lines-and-columns": "^1.1.6",
+ "mz": "^2.7.0",
+ "pirates": "^4.0.1",
+ "tinyglobby": "^0.2.11",
+ "ts-interface-checker": "^0.1.9"
+ },
+ "bin": {
+ "sucrase": "bin/sucrase",
+ "sucrase-node": "bin/sucrase-node"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/sucrase/node_modules/commander": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/supports-color": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
+ "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "has-flag": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/tar-fs": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.4.tgz",
+ "integrity": "sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "chownr": "^1.1.1",
+ "mkdirp-classic": "^0.5.2",
+ "pump": "^3.0.0",
+ "tar-stream": "^2.1.4"
+ }
+ },
+ "node_modules/tar-stream": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
+ "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "bl": "^4.0.3",
+ "end-of-stream": "^1.4.1",
+ "fs-constants": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^3.1.1"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/test-exclude": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-7.0.2.tgz",
+ "integrity": "sha512-u9E6A+ZDYdp7a4WnarkXPZOx8Ilz46+kby6p1yZ8zsGTz9gYa6FIS7lj2oezzNKmtdyyJNNmmXDppga5GB7kSw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "@istanbuljs/schema": "^0.1.2",
+ "glob": "^10.4.1",
+ "minimatch": "^10.2.2"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/thenify": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",
+ "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "any-promise": "^1.0.0"
+ }
+ },
+ "node_modules/thenify-all": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",
+ "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "thenify": ">= 3.1.0 < 4"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/tinybench": {
+ "version": "2.9.0",
+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",
+ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tinyexec": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz",
+ "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tinyglobby": {
+ "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.4"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/tinypool": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz",
+ "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.0.0 || >=20.0.0"
+ }
+ },
+ "node_modules/tinyrainbow": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz",
+ "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/tinyspy": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz",
+ "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/tree-kill": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz",
+ "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "tree-kill": "cli.js"
+ }
+ },
+ "node_modules/ts-interface-checker": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",
+ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/tsup": {
+ "version": "8.5.1",
+ "resolved": "https://registry.npmjs.org/tsup/-/tsup-8.5.1.tgz",
+ "integrity": "sha512-xtgkqwdhpKWr3tKPmCkvYmS9xnQK3m3XgxZHwSUjvfTjp7YfXe5tT3GgWi0F2N+ZSMsOeWeZFh7ZZFg5iPhing==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bundle-require": "^5.1.0",
+ "cac": "^6.7.14",
+ "chokidar": "^4.0.3",
+ "consola": "^3.4.0",
+ "debug": "^4.4.0",
+ "esbuild": "^0.27.0",
+ "fix-dts-default-cjs-exports": "^1.0.0",
+ "joycon": "^3.1.1",
+ "picocolors": "^1.1.1",
+ "postcss-load-config": "^6.0.1",
+ "resolve-from": "^5.0.0",
+ "rollup": "^4.34.8",
+ "source-map": "^0.7.6",
+ "sucrase": "^3.35.0",
+ "tinyexec": "^0.3.2",
+ "tinyglobby": "^0.2.11",
+ "tree-kill": "^1.2.2"
+ },
+ "bin": {
+ "tsup": "dist/cli-default.js",
+ "tsup-node": "dist/cli-node.js"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@microsoft/api-extractor": "^7.36.0",
+ "@swc/core": "^1",
+ "postcss": "^8.4.12",
+ "typescript": ">=4.5.0"
+ },
+ "peerDependenciesMeta": {
+ "@microsoft/api-extractor": {
+ "optional": true
+ },
+ "@swc/core": {
+ "optional": true
+ },
+ "postcss": {
+ "optional": true
+ },
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/tsx": {
+ "version": "4.22.4",
+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.22.4.tgz",
+ "integrity": "sha512-X8EX+XV4QR5xCsrgxaED954zTDfY8KqlDtskKEL0cHhyS/P8b4IFOvGDQpsC9Q1XnLq915wEfwwY/zzskCtmhg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "~0.28.0"
+ },
+ "bin": {
+ "tsx": "dist/cli.mjs"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/aix-ppc64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz",
+ "integrity": "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/android-arm": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.1.tgz",
+ "integrity": "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/android-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.1.tgz",
+ "integrity": "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/android-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.1.tgz",
+ "integrity": "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/darwin-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.1.tgz",
+ "integrity": "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/darwin-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.1.tgz",
+ "integrity": "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.1.tgz",
+ "integrity": "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/freebsd-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.1.tgz",
+ "integrity": "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/linux-arm": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.1.tgz",
+ "integrity": "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/linux-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.1.tgz",
+ "integrity": "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/linux-ia32": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.1.tgz",
+ "integrity": "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/linux-loong64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.1.tgz",
+ "integrity": "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/linux-mips64el": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.1.tgz",
+ "integrity": "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/linux-ppc64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.1.tgz",
+ "integrity": "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/linux-riscv64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.1.tgz",
+ "integrity": "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/linux-s390x": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.1.tgz",
+ "integrity": "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/linux-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.1.tgz",
+ "integrity": "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.1.tgz",
+ "integrity": "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/netbsd-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.1.tgz",
+ "integrity": "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.1.tgz",
+ "integrity": "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/openbsd-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.1.tgz",
+ "integrity": "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.1.tgz",
+ "integrity": "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/sunos-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.1.tgz",
+ "integrity": "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/win32-arm64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.1.tgz",
+ "integrity": "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/win32-ia32": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.1.tgz",
+ "integrity": "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/@esbuild/win32-x64": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.1.tgz",
+ "integrity": "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/tsx/node_modules/esbuild": {
+ "version": "0.28.1",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.1.tgz",
+ "integrity": "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.28.1",
+ "@esbuild/android-arm": "0.28.1",
+ "@esbuild/android-arm64": "0.28.1",
+ "@esbuild/android-x64": "0.28.1",
+ "@esbuild/darwin-arm64": "0.28.1",
+ "@esbuild/darwin-x64": "0.28.1",
+ "@esbuild/freebsd-arm64": "0.28.1",
+ "@esbuild/freebsd-x64": "0.28.1",
+ "@esbuild/linux-arm": "0.28.1",
+ "@esbuild/linux-arm64": "0.28.1",
+ "@esbuild/linux-ia32": "0.28.1",
+ "@esbuild/linux-loong64": "0.28.1",
+ "@esbuild/linux-mips64el": "0.28.1",
+ "@esbuild/linux-ppc64": "0.28.1",
+ "@esbuild/linux-riscv64": "0.28.1",
+ "@esbuild/linux-s390x": "0.28.1",
+ "@esbuild/linux-x64": "0.28.1",
+ "@esbuild/netbsd-arm64": "0.28.1",
+ "@esbuild/netbsd-x64": "0.28.1",
+ "@esbuild/openbsd-arm64": "0.28.1",
+ "@esbuild/openbsd-x64": "0.28.1",
+ "@esbuild/openharmony-arm64": "0.28.1",
+ "@esbuild/sunos-x64": "0.28.1",
+ "@esbuild/win32-arm64": "0.28.1",
+ "@esbuild/win32-ia32": "0.28.1",
+ "@esbuild/win32-x64": "0.28.1"
+ }
+ },
+ "node_modules/tunnel-agent": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
+ "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
+ "license": "Apache-2.0",
+ "optional": true,
+ "dependencies": {
+ "safe-buffer": "^5.0.1"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/type-fest": {
+ "version": "4.41.0",
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz",
+ "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==",
+ "license": "(MIT OR CC0-1.0)",
+ "optional": true,
+ "engines": {
+ "node": ">=16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "5.9.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/ufo": {
+ "version": "1.6.4",
+ "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.4.tgz",
+ "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/undici-types": {
+ "version": "6.21.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/vite": {
+ "version": "5.4.21",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",
+ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "^0.21.3",
+ "postcss": "^8.4.43",
+ "rollup": "^4.20.0"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^18.0.0 || >=20.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^18.0.0 || >=20.0.0",
+ "less": "*",
+ "lightningcss": "^1.21.0",
+ "sass": "*",
+ "sass-embedded": "*",
+ "stylus": "*",
+ "sugarss": "*",
+ "terser": "^5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "lightningcss": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vite-node": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.9.tgz",
+ "integrity": "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cac": "^6.7.14",
+ "debug": "^4.3.7",
+ "es-module-lexer": "^1.5.4",
+ "pathe": "^1.1.2",
+ "vite": "^5.0.0"
+ },
+ "bin": {
+ "vite-node": "vite-node.mjs"
+ },
+ "engines": {
+ "node": "^18.0.0 || >=20.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ }
+ },
+ "node_modules/vite-node/node_modules/pathe": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",
+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/vite/node_modules/@esbuild/aix-ppc64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",
+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/android-arm": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",
+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/android-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",
+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/android-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",
+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/darwin-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",
+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/darwin-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",
+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",
+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/freebsd-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",
+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/linux-arm": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",
+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/linux-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",
+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/linux-ia32": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",
+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/linux-loong64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",
+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/linux-mips64el": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",
+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/linux-ppc64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",
+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/linux-riscv64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",
+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/linux-s390x": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",
+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/linux-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",
+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/netbsd-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",
+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/openbsd-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",
+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/sunos-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",
+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/win32-arm64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",
+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/win32-ia32": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",
+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/@esbuild/win32-x64": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",
+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/vite/node_modules/esbuild": {
+ "version": "0.21.5",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",
+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.21.5",
+ "@esbuild/android-arm": "0.21.5",
+ "@esbuild/android-arm64": "0.21.5",
+ "@esbuild/android-x64": "0.21.5",
+ "@esbuild/darwin-arm64": "0.21.5",
+ "@esbuild/darwin-x64": "0.21.5",
+ "@esbuild/freebsd-arm64": "0.21.5",
+ "@esbuild/freebsd-x64": "0.21.5",
+ "@esbuild/linux-arm": "0.21.5",
+ "@esbuild/linux-arm64": "0.21.5",
+ "@esbuild/linux-ia32": "0.21.5",
+ "@esbuild/linux-loong64": "0.21.5",
+ "@esbuild/linux-mips64el": "0.21.5",
+ "@esbuild/linux-ppc64": "0.21.5",
+ "@esbuild/linux-riscv64": "0.21.5",
+ "@esbuild/linux-s390x": "0.21.5",
+ "@esbuild/linux-x64": "0.21.5",
+ "@esbuild/netbsd-x64": "0.21.5",
+ "@esbuild/openbsd-x64": "0.21.5",
+ "@esbuild/sunos-x64": "0.21.5",
+ "@esbuild/win32-arm64": "0.21.5",
+ "@esbuild/win32-ia32": "0.21.5",
+ "@esbuild/win32-x64": "0.21.5"
+ }
+ },
+ "node_modules/vitest": {
+ "version": "2.1.9",
+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.9.tgz",
+ "integrity": "sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vitest/expect": "2.1.9",
+ "@vitest/mocker": "2.1.9",
+ "@vitest/pretty-format": "^2.1.9",
+ "@vitest/runner": "2.1.9",
+ "@vitest/snapshot": "2.1.9",
+ "@vitest/spy": "2.1.9",
+ "@vitest/utils": "2.1.9",
+ "chai": "^5.1.2",
+ "debug": "^4.3.7",
+ "expect-type": "^1.1.0",
+ "magic-string": "^0.30.12",
+ "pathe": "^1.1.2",
+ "std-env": "^3.8.0",
+ "tinybench": "^2.9.0",
+ "tinyexec": "^0.3.1",
+ "tinypool": "^1.0.1",
+ "tinyrainbow": "^1.2.0",
+ "vite": "^5.0.0",
+ "vite-node": "2.1.9",
+ "why-is-node-running": "^2.3.0"
+ },
+ "bin": {
+ "vitest": "vitest.mjs"
+ },
+ "engines": {
+ "node": "^18.0.0 || >=20.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/vitest"
+ },
+ "peerDependencies": {
+ "@edge-runtime/vm": "*",
+ "@types/node": "^18.0.0 || >=20.0.0",
+ "@vitest/browser": "2.1.9",
+ "@vitest/ui": "2.1.9",
+ "happy-dom": "*",
+ "jsdom": "*"
+ },
+ "peerDependenciesMeta": {
+ "@edge-runtime/vm": {
+ "optional": true
+ },
+ "@types/node": {
+ "optional": true
+ },
+ "@vitest/browser": {
+ "optional": true
+ },
+ "@vitest/ui": {
+ "optional": true
+ },
+ "happy-dom": {
+ "optional": true
+ },
+ "jsdom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vitest/node_modules/pathe": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",
+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/why-is-node-running": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",
+ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "siginfo": "^2.0.0",
+ "stackback": "0.0.2"
+ },
+ "bin": {
+ "why-is-node-running": "cli.js"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/widest-line": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-5.0.0.tgz",
+ "integrity": "sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "string-width": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/widest-line/node_modules/ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/widest-line/node_modules/emoji-regex": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/widest-line/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/widest-line/node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",
+ "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "ansi-styles": "^6.2.1",
+ "string-width": "^7.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi-cjs": {
+ "name": "wrap-ansi",
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/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/wrap-ansi/node_modules/ansi-regex": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/emoji-regex": {
+ "version": "10.6.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
+ "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/wrap-ansi/node_modules/string-width": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
+ "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "emoji-regex": "^10.3.0",
+ "get-east-asian-width": "^1.0.0",
+ "strip-ansi": "^7.1.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/wrap-ansi/node_modules/strip-ansi": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "ansi-regex": "^6.2.2"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+ "license": "ISC",
+ "optional": true
+ },
+ "node_modules/ws": {
+ "version": "8.21.0",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz",
+ "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==",
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": ">=5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/yoga-layout": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/yoga-layout/-/yoga-layout-3.2.1.tgz",
+ "integrity": "sha512-0LPOt3AxKqMdFBZA3HBAt/t/8vIKq7VaQYbuA8WxCgung+p9TVyKRYdpvCb80HcdTN2NkbIKbhNwKUfm3tQywQ==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/zod": {
+ "version": "3.25.76",
+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
+ "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..9ff1d93
--- /dev/null
+++ b/package.json
@@ -0,0 +1,45 @@
+{
+ "name": "theseus",
+ "version": "0.1.0",
+ "description": "theseus — compare model (L0) × agent (L1) × harness (L2) combinations on your own local tasks",
+ "type": "module",
+ "bin": {
+ "theseus": "dist/cli.js"
+ },
+ "files": [
+ "dist"
+ ],
+ "engines": {
+ "node": ">=20"
+ },
+ "scripts": {
+ "build": "tsup",
+ "dev": "tsx src/cli.ts",
+ "typecheck": "tsc --noEmit",
+ "lint": "biome check src tests",
+ "format": "biome format --write src tests",
+ "test": "vitest run",
+ "test:cov": "vitest run --coverage"
+ },
+ "dependencies": {
+ "cli-table3": "^0.6.5",
+ "commander": "^12.1.0",
+ "picocolors": "^1.1.1",
+ "zod": "^3.23.8"
+ },
+ "optionalDependencies": {
+ "better-sqlite3": "^11.3.0",
+ "ink": "^5.0.1",
+ "react": "^18.3.1"
+ },
+ "devDependencies": {
+ "@biomejs/biome": "^1.9.4",
+ "@types/better-sqlite3": "^7.6.11",
+ "@types/node": "^20.14.0",
+ "@vitest/coverage-v8": "^2.1.0",
+ "tsup": "^8.2.0",
+ "tsx": "^4.19.0",
+ "typescript": "^5.5.0",
+ "vitest": "^2.1.0"
+ }
+}
diff --git a/src/benches/index.ts b/src/benches/index.ts
new file mode 100644
index 0000000..a7b56b7
--- /dev/null
+++ b/src/benches/index.ts
@@ -0,0 +1,67 @@
+/**
+ * 벤치 레지스트리 (PRD §11).
+ * isLocalBench / listLocalBenches / taskIds / difficultyMap / findTask / verify / setupTask.
+ */
+import { BENCHES } from "../config";
+import type { Difficulty, LocalTask } from "./local";
+import { LOCAL_TASKS } from "./local";
+import { SUBAGENT_TASKS } from "./subagent";
+
+const LOCAL_BENCH_TASKS: Record<string, LocalTask[]> = {
+ local: LOCAL_TASKS,
+ subagent: SUBAGENT_TASKS,
+};
+
+export function isLocalBench(bench: string): boolean {
+ return BENCHES[bench]?.local === true && bench in LOCAL_BENCH_TASKS;
+}
+
+export function listLocalBenches(): string[] {
+ return Object.keys(LOCAL_BENCH_TASKS);
+}
+
+export function taskIds(bench: string): string[] {
+ return (LOCAL_BENCH_TASKS[bench] ?? []).map((t) => t.id);
+}
+
+export function difficultyMap(bench: string): Record<string, Difficulty> {
+ const out: Record<string, Difficulty> = {};
+ for (const t of LOCAL_BENCH_TASKS[bench] ?? []) if (t.difficulty) out[t.id] = t.difficulty;
+ return out;
+}
+
+/** 접두사로 유일하게 찾기(전체 일치 우선). 모든 로컬 벤치 통합 탐색. */
+export function findTask(id: string): LocalTask | undefined {
+ const all = Object.values(LOCAL_BENCH_TASKS).flat();
+ const exact = all.find((t) => t.id === id);
+ if (exact) return exact;
+ const prefix = all.filter((t) => t.id.startsWith(id));
+ return prefix.length === 1 ? prefix[0] : undefined;
+}
+
+export function setupTask(id: string, workDir: string): void {
+ const t = findTask(id);
+ if (t?.setup) {
+ try {
+ t.setup(workDir);
+ } catch {
+ // setup 실패도 fail-soft (verify 가 false 반환)
+ }
+ }
+}
+
+export function verify(id: string, workDir: string): boolean {
+ const t = findTask(id);
+ if (!t) return false;
+ try {
+ return t.verify(workDir);
+ } catch {
+ return false; // 절대 throw 금지
+ }
+}
+
+export function instructionFor(id: string): string | undefined {
+ return findTask(id)?.instruction;
+}
+
+export type { LocalTask, Difficulty };
diff --git a/src/benches/local.ts b/src/benches/local.ts
new file mode 100644
index 0000000..3cc8565
--- /dev/null
+++ b/src/benches/local.ts
@@ -0,0 +1,93 @@
+/**
+ * 로컬 벤치 (PRD §11). 파일로 검증 가능한 단순 과제(스모크/해피패스).
+ * verify/setup 는 오프라인·파일만, 절대 throw 금지(fail-soft).
+ */
+import { readFileSync, writeFileSync } from "node:fs";
+import { join } from "node:path";
+
+export type Difficulty = "easy" | "medium" | "hard";
+
+export interface LocalTask {
+ id: string;
+ instruction: string;
+ difficulty?: Difficulty;
+ /** 입력 픽스처를 work_dir 에 결정적으로 생성(순수·RNG/시계 금지). */
+ setup?: (workDir: string) => void;
+ /** 숨은 검증 — true=정답. 절대 throw 금지. */
+ verify: (workDir: string) => boolean;
+}
+
+function readSafe(workDir: string, name: string): string | null {
+ try {
+ return readFileSync(join(workDir, name), "utf8");
+ } catch {
+ return null;
+ }
+}
+
+function guard(fn: () => boolean): boolean {
+ try {
+ return fn();
+ } catch {
+ return false;
+ }
+}
+
+export const LOCAL_TASKS: LocalTask[] = [
+ {
+ id: "local-hello",
+ difficulty: "easy",
+ instruction:
+ "Create a file named hello.txt in the working directory whose exact contents are: hello world",
+ verify: (work) => guard(() => readSafe(work, "hello.txt")?.trim() === "hello world"),
+ },
+ {
+ id: "local-sum",
+ difficulty: "easy",
+ instruction:
+ "Read numbers.txt (one integer per line). Write their sum as a single integer to sum.txt.",
+ setup: (work) => writeFileSync(join(work, "numbers.txt"), "3\n8\n15\n21\n53\n"),
+ verify: (work) =>
+ guard(() => {
+ const out = readSafe(work, "sum.txt");
+ return out !== null && Number.parseInt(out.trim(), 10) === 100;
+ }),
+ },
+ {
+ id: "local-reverse",
+ difficulty: "easy",
+ instruction:
+ "Read input.txt and write its single line reversed (characters reversed) to output.txt.",
+ setup: (work) => writeFileSync(join(work, "input.txt"), "deterministic"),
+ verify: (work) =>
+ guard(
+ () => readSafe(work, "output.txt")?.trim() === "deterministic".split("").reverse().join(""),
+ ),
+ },
+ {
+ id: "local-config",
+ difficulty: "medium",
+ instruction:
+ 'Create config.json: a JSON object with key "version" set to the integer 2 and key "name" set to the string "theseus".',
+ verify: (work) =>
+ guard(() => {
+ const raw = readSafe(work, "config.json");
+ if (!raw) return false;
+ const obj = JSON.parse(raw);
+ return obj.version === 2 && obj.name === "theseus";
+ }),
+ },
+ {
+ id: "local-wordcount",
+ difficulty: "medium",
+ instruction:
+ "Read text.txt and write the number of whitespace-separated words as an integer to count.txt.",
+ setup: (work) =>
+ writeFileSync(join(work, "text.txt"), "the quick brown fox jumps over the lazy dog"),
+ verify: (work) =>
+ guard(() => {
+ const out = readSafe(work, "count.txt");
+ return out !== null && Number.parseInt(out.trim(), 10) === 9;
+ }),
+ },
+];
diff --git a/src/benches/subagent.ts b/src/benches/subagent.ts
new file mode 100644
index 0000000..36b7e58
--- /dev/null
+++ b/src/benches/subagent.ts
@@ -0,0 +1,373 @@
+/**
+ * subagent 하드 과제 (PRD §11, §5 공정).
+ * - 검증은 입력에서 정답을 재계산(recompute-in-verify) — 하드코딩 골든 금지(드리프트 불가).
+ * - 오프라인·파일만, 절대 throw 금지.
+ * - 지시문은 모든 조합 byte-identical, 하네스/스킬/위임 제품명 미포함.
+ * - 명시 위임 지시(_DELEGATE) 1문장을 모든 과제에 동일 append(agent-agnostic).
+ */
+import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
+import { join } from "node:path";
+import type { LocalTask } from "./local";
+
+const DELEGATE =
+ " If useful, split this problem into independent parts, solve each part separately, then combine the partial results into the final answer.";
+
+// ── 결정적 PRNG (RNG/시계 금지) ─────────────────────────
+function fnv(s: string): number {
+ let h = 0x811c9dc5;
+ for (let i = 0; i < s.length; i++) {
+ h ^= s.charCodeAt(i);
+ h = Math.imul(h, 0x01000193);
+ }
+ return h >>> 0;
+}
+class Rng {
+ private s: number;
+ constructor(seedStr: string) {
+ this.s = fnv(seedStr) || 1;
+ }
+ next(): number {
+ // xorshift32
+ let x = this.s;
+ x ^= x << 13;
+ x ^= x >>> 17;
+ x ^= x << 5;
+ this.s = x >>> 0;
+ return this.s / 0xffffffff;
+ }
+ int(lo: number, hi: number): number {
+ return lo + Math.floor(this.next() * (hi - lo + 1));
+ }
+}
+
+// ── 공통 IO 가드 ────────────────────────────────────────
+function readSafe(workDir: string, name: string): string | null {
+ try {
+ return readFileSync(join(workDir, name), "utf8");
+ } catch {
+ return null;
+ }
+}
+function guard(fn: () => boolean): boolean {
+ try {
+ return fn();
+ } catch {
+ return false;
+ }
+}
+
+// ── 솔버 (setup·verify 공용 재계산) ─────────────────────
+function dijkstra(n: number, edges: [number, number, number][], src: number): number[] {
+ const adj: [number, number][][] = Array.from({ length: n }, () => []);
+ for (const [u, v, w] of edges) adj[u]!.push([v, w]);
+ const dist = new Array(n).fill(Number.POSITIVE_INFINITY);
+ dist[src] = 0;
+ const visited = new Array(n).fill(false);
+ for (let it = 0; it < n; it++) {
+ let u = -1;
+ let best = Number.POSITIVE_INFINITY;
+ for (let i = 0; i < n; i++)
+ if (!visited[i] && dist[i] < best) {
+ best = dist[i];
+ u = i;
+ }
+ if (u === -1) break;
+ visited[u] = true;
+ for (const [v, w] of adj[u]!) if (dist[u] + w < dist[v]) dist[v] = dist[u] + w;
+ }
+ return dist.map((d) => (d === Number.POSITIVE_INFINITY ? -1 : d));
+}
+
+function evalArith(expr: string): number {
+ // 정수 + - * / ( ), 나눗셈은 0 방향 절삭. shunting-yard.
+ const toks = expr.match(/\d+|[+\-*/()]/g);
+ if (!toks) throw new Error("bad");
+ const prec: Record<string, number> = { "+": 1, "-": 1, "*": 2, "/": 2 };
+ const out: string[] = [];
+ const ops: string[] = [];
+ for (const t of toks) {
+ if (/\d+/.test(t)) out.push(t);
+ else if (t === "(") ops.push(t);
+ else if (t === ")") {
+ while (ops.length && ops[ops.length - 1] !== "(") out.push(ops.pop()!);
+ ops.pop();
+ } else {
+ while (ops.length && ops[ops.length - 1] !== "(" && prec[ops[ops.length - 1]!]! >= prec[t]!)
+ out.push(ops.pop()!);
+ ops.push(t);
+ }
+ }
+ while (ops.length) out.push(ops.pop()!);
+ return evalRpn(out);
+}
+
+function evalRpn(tokens: string[]): number {
+ const st: number[] = [];
+ for (const t of tokens) {
+ if (/^-?\d+$/.test(t)) st.push(Number.parseInt(t, 10));
+ else {
+ const b = st.pop()!;
+ const a = st.pop()!;
+ if (t === "+") st.push(a + b);
+ else if (t === "-") st.push(a - b);
+ else if (t === "*") st.push(a * b);
+ else if (t === "/") st.push(Math.trunc(a / b));
+ else throw new Error("op");
+ }
+ }
+ if (st.length !== 1) throw new Error("rpn");
+ return st[0]!;
+}
+
+function knapsack(capacity: number, items: [number, number][]): number {
+ const dp = new Array(capacity + 1).fill(0);
+ for (const [w, v] of items)
+ for (let c = capacity; c >= w; c--) dp[c] = Math.max(dp[c], dp[c - w] + v);
+ return dp[capacity];
+}
+
+interface Parsed {
+ literal?: number;
+ refs?: string[];
+ op?: string;
+ x?: string;
+ y?: string; // 셀 ref 또는 정수 문자열
+ bad?: boolean;
+}
+function parseCell(raw: string): Parsed {
+ if (!raw.startsWith("=")) {
+ const n = Number.parseInt(raw, 10);
+ return Number.isNaN(n) ? { bad: true } : { literal: n };
+ }
+ const m = raw.slice(1).match(/^([A-Z]\d+)(?:\s*([+\-*])\s*([A-Z]\d+|\d+))?$/);
+ if (!m) return { bad: true };
+ const refs = [m[1]!];
+ if (m[3] && /^[A-Z]\d+$/.test(m[3])) refs.push(m[3]);
+ return { refs, op: m[2], x: m[1], y: m[3] };
+}
+
+function evalSheet(cells: Record<string, string>): Record<string, string> {
+ const parsed: Record<string, Parsed> = {};
+ for (const [c, raw] of Object.entries(cells)) parsed[c] = parseCell(raw);
+
+ // 1) 사이클 멤버십 검출 (DFS back-edge).
+ const inCycle = new Set<string>();
+ const color: Record<string, 0 | 1 | 2> = {}; // 0 white,1 gray,2 black
+ const dfs = (u: string, stack: string[]): void => {
+ color[u] = 1;
+ stack.push(u);
+ for (const v of parsed[u]?.refs ?? []) {
+ if (!(v in cells)) continue; // 없는 셀은 사이클 아님(=>#ERR 로 따로 처리)
+ if (color[v] === 1) {
+ const from = stack.indexOf(v);
+ for (let i = from; i < stack.length; i++) inCycle.add(stack[i]!);
+ } else if (!color[v]) dfs(v, stack);
+ }
+ stack.pop();
+ color[u] = 2;
+ };
+ for (const c of Object.keys(cells)) if (!color[c]) dfs(c, []);
+
+ // 2) 값 평가 (사이클 외 셀은 DAG → 메모 재귀).
+ const memo: Record<string, string> = {};
+ const value = (c: string): string => {
+ if (!(c in cells)) return "#ERR";
+ if (inCycle.has(c)) return "#CYCLE";
+ if (c in memo) return memo[c]!;
+ const p = parsed[c]!;
+ let val: string;
+ if (p.bad) val = "#ERR";
+ else if (p.literal !== undefined) val = String(p.literal);
+ else {
+ const a = value(p.x!);
+ if (a === "#CYCLE" || a === "#ERR") val = "#ERR";
+ else if (!p.op) val = a;
+ else {
+ const rhs = /^\d+$/.test(p.y!) ? p.y! : value(p.y!);
+ if (rhs === "#CYCLE" || rhs === "#ERR") val = "#ERR";
+ else {
+ const x = Number.parseInt(a, 10);
+ const y = Number.parseInt(rhs, 10);
+ val = String(p.op === "+" ? x + y : p.op === "-" ? x - y : x * y);
+ }
+ }
+ }
+ memo[c] = val;
+ return val;
+ };
+ const result: Record<string, string> = {};
+ for (const c of Object.keys(cells)) result[c] = inCycle.has(c) ? "#CYCLE" : value(c);
+ return result;
+}
+
+function toHex(bytes: number[]): string {
+ return bytes.map((b) => b.toString(16).padStart(2, "0")).join("");
+}
+function fromHex(hex: string): number[] {
+ const out: number[] = [];
+ for (let i = 0; i < hex.length; i += 2) out.push(Number.parseInt(hex.slice(i, i + 2), 16));
+ return out;
+}
+
+// ── 과제 정의 ───────────────────────────────────────────
+export const SUBAGENT_TASKS: LocalTask[] = [
+ {
+ id: "subagent-101",
+ difficulty: "hard",
+ instruction: `Read graph.json = {n, edges:[[u,v,w],...]} (directed, non-negative weights). Compute the shortest-path distance from node 0 to every node. Write distances.json: a JSON array of length n, where index i is the distance to node i, or -1 if unreachable.${DELEGATE}`,
+ setup: (work) => {
+ const rng = new Rng("subagent-101");
+ const n = 12;
+ const edges: [number, number, number][] = [];
+ for (let u = 0; u < n; u++)
+ for (let k = 0; k < 3; k++) {
+ const v = rng.int(0, n - 1);
+ if (v !== u) edges.push([u, v, rng.int(1, 20)]);
+ }
+ writeFileSync(join(work, "graph.json"), JSON.stringify({ n, edges }));
+ },
+ verify: (work) =>
+ guard(() => {
+ const g = JSON.parse(readSafe(work, "graph.json")!);
+ const expected = dijkstra(g.n, g.edges, 0);
+ const got = JSON.parse(readSafe(work, "distances.json")!);
+ return Array.isArray(got) && JSON.stringify(got) === JSON.stringify(expected);
+ }),
+ },
+ {
+ id: "subagent-102",
+ difficulty: "hard",
+ instruction: `There are 24 shard files shards/shard-00.json .. shards/shard-23.json, each a JSON array of {account, delta} entries. Compute the net balance per account across ALL shards. Write balances.json: a JSON object mapping account -> integer balance (omit accounts whose balance is 0).${DELEGATE}`,
+ setup: (work) => {
+ const rng = new Rng("subagent-102");
+ mkdirSync(join(work, "shards"), { recursive: true });
+ for (let s = 0; s < 24; s++) {
+ const rows: { account: string; delta: number }[] = [];
+ const cnt = rng.int(5, 12);
+ for (let i = 0; i < cnt; i++)
+ rows.push({ account: `acct-${rng.int(0, 9)}`, delta: rng.int(-50, 50) });
+ writeFileSync(
+ join(work, "shards", `shard-${String(s).padStart(2, "0")}.json`),
+ JSON.stringify(rows),
+ );
+ }
+ },
+ verify: (work) =>
+ guard(() => {
+ const bal: Record<string, number> = {};
+ for (let s = 0; s < 24; s++) {
+ const rows = JSON.parse(
+ readSafe(work, `shards/shard-${String(s).padStart(2, "0")}.json`)!,
+ );
+ for (const r of rows) bal[r.account] = (bal[r.account] ?? 0) + r.delta;
+ }
+ const expected: Record<string, number> = {};
+ for (const [k, v] of Object.entries(bal)) if (v !== 0) expected[k] = v;
+ const got = JSON.parse(readSafe(work, "balances.json")!);
+ const norm = (o: Record<string, number>) =>
+ JSON.stringify(Object.fromEntries(Object.entries(o).sort()));
+ return norm(got) === norm(expected);
+ }),
+ },
+ {
+ id: "subagent-103",
+ difficulty: "hard",
+ instruction: `Read program.txt (one arithmetic expression per line, using integers and + - * / and parentheses; division truncates toward zero). Evaluate each line. Write results.txt with one integer result per line, in the same order.${DELEGATE}`,
+ setup: (work) => {
+ const rng = new Rng("subagent-103");
+ const lines: string[] = [];
+ for (let i = 0; i < 16; i++) {
+ const a = rng.int(1, 40);
+ const b = rng.int(1, 40);
+ const c = rng.int(1, 40);
+ const ops = ["+", "-", "*"];
+ lines.push(`(${a} ${ops[rng.int(0, 2)]} ${b}) * ${c} - ${rng.int(1, 30)}`);
+ }
+ writeFileSync(join(work, "program.txt"), lines.join("\n"));
+ },
+ verify: (work) =>
+ guard(() => {
+ const lines = readSafe(work, "program.txt")!
+ .split("\n")
+ .filter((l) => l.trim());
+ const expected = lines.map((l) => evalArith(l));
+ const got = readSafe(work, "results.txt")!
+ .split("\n")
+ .filter((l) => l.trim())
+ .map((l) => Number.parseInt(l.trim(), 10));
+ return JSON.stringify(got) === JSON.stringify(expected);
+ }),
+ },
+ {
+ id: "subagent-104",
+ difficulty: "hard",
+ instruction: `Read knapsack.json = {capacity, items:[[weight,value],...]}. Solve the 0/1 knapsack problem: pick a subset of items with total weight <= capacity maximizing total value. Write answer.txt: the maximum total value as a single integer.${DELEGATE}`,
+ setup: (work) => {
+ const rng = new Rng("subagent-104");
+ const items: [number, number][] = [];
+ for (let i = 0; i < 22; i++) items.push([rng.int(1, 15), rng.int(1, 30)]);
+ writeFileSync(join(work, "knapsack.json"), JSON.stringify({ capacity: 50, items }));
+ },
+ verify: (work) =>
+ guard(() => {
+ const k = JSON.parse(readSafe(work, "knapsack.json")!);
+ const expected = knapsack(k.capacity, k.items);
+ return Number.parseInt(readSafe(work, "answer.txt")!.trim(), 10) === expected;
+ }),
+ },
+ {
+ id: "subagent-105",
+ difficulty: "hard",
+ instruction: `Read encoded.txt (a hex string) and key.txt (a hex string). Decode: hex->bytes, XOR each byte with the repeating key bytes, interpret the resulting ASCII text as a space-separated RPN (postfix) expression over integers with operators + - *, and evaluate it. Write answer.txt: the resulting integer.${DELEGATE}`,
+ setup: (work) => {
+ const rng = new Rng("subagent-105");
+ // 결정적 RPN 식 생성: a b + c * d -
+ const a = rng.int(2, 9);
+ const b = rng.int(2, 9);
+ const c = rng.int(2, 9);
+ const d = rng.int(2, 9);
+ const rpn = `${a} ${b} + ${c} * ${d} -`;
+ const key = [rng.int(1, 255), rng.int(1, 255), rng.int(1, 255)];
+ const bytes = Array.from(rpn).map((ch, i) => ch.charCodeAt(0) ^ key[i % key.length]!);
+ writeFileSync(join(work, "encoded.txt"), toHex(bytes));
+ writeFileSync(join(work, "key.txt"), toHex(key));
+ },
+ verify: (work) =>
+ guard(() => {
+ const enc = fromHex(readSafe(work, "encoded.txt")!.trim());
+ const key = fromHex(readSafe(work, "key.txt")!.trim());
+ const text = enc.map((b, i) => String.fromCharCode(b ^ key[i % key.length]!)).join("");
+ const expected = evalRpn(text.trim().split(/\s+/));
+ return Number.parseInt(readSafe(work, "answer.txt")!.trim(), 10) === expected;
+ }),
+ },
+ {
+ id: "subagent-106",
+ difficulty: "hard",
+ instruction: `Read sheet.json = {cells: {"A1":"5","B1":"=A1+3",...}}. Each cell is either an integer literal or a formula "=X" or "=X op Y" where X is a cell ref, Y is a cell ref or integer, op in + - *. Evaluate every cell. A cell in a reference cycle must be "#CYCLE"; a cell referencing a missing cell or an error must be "#ERR". Write result.json: a JSON object mapping each cell name to its evaluated value (integers as strings, or "#CYCLE"/"#ERR").${DELEGATE}`,
+ setup: (work) => {
+ const cells: Record<string, string> = {
+ A1: "5",
+ B1: "=A1+3",
+ C1: "=A1*B1",
+ D1: "=C1-2",
+ // 사이클
+ E1: "=F1+1",
+ F1: "=E1+1",
+ // 에러 전파(없는 셀 참조)
+ G1: "=Z9+1",
+ H1: "=G1*2",
+ };
+ writeFileSync(join(work, "sheet.json"), JSON.stringify({ cells }));
+ },
+ verify: (work) =>
+ guard(() => {
+ const sheet = JSON.parse(readSafe(work, "sheet.json")!);
+ const expected = evalSheet(sheet.cells);
+ const got = JSON.parse(readSafe(work, "result.json")!);
+ const norm = (o: Record<string, string>) =>
+ JSON.stringify(Object.fromEntries(Object.entries(o).sort()));
+ return norm(got) === norm(expected);
+ }),
+ },
+];
diff --git a/src/cli.ts b/src/cli.ts
new file mode 100644
index 0000000..4259e4f
--- /dev/null
+++ b/src/cli.ts
@@ -0,0 +1,261 @@
+import Table from "cli-table3";
+/**
+ * CLI 엔트리 (PRD §17) — commander. compare(기본)/results/install/doctor/tui.
+ * 멀티셀렉트는 콤마 split, 미선택=skip. 서브커맨드 없이 플래그만 주면 compare 로 동작.
+ */
+import { Command } from "commander";
+import pc from "picocolors";
+import { listLocalBenches } from "./benches/index";
+import { expand } from "./combos";
+import { harnessStatus } from "./harness";
+import { type Translator, normalizeLang, translator } from "./i18n";
+import { runInstall } from "./install";
+import { sortCombos } from "./metrics";
+import { aggregateAll } from "./metrics";
+import { bestByPerspective } from "./metrics";
+import type { Lang, RunOptions } from "./models";
+import { execute } from "./orchestrator";
+import { analyze } from "./preflight";
+import { listRuns, loadMeta, loadResults } from "./recorder";
+import { getRunner } from "./runners/registry";
+import { commandExists } from "./runners/util";
+import { runTui } from "./tui";
+
+function splitList(s: string | undefined): string[] {
+ if (!s) return [];
+ return s
+ .split(",")
+ .map((x) => x.trim())
+ .filter(Boolean);
+}
+
+function toRunOptions(o: any): RunOptions {
+ return {
+ models: splitList(o.model),
+ agents: splitList(o.agent),
+ harnesses: splitList(o.harness).length ? splitList(o.harness) : ["none"],
+ bench: o.bench ?? "terminal-bench-v2",
+ tasks: Number.parseInt(o.tasks ?? "20", 10),
+ runs: Number.parseInt(o.runs ?? "1", 10),
+ seed: Number.parseInt(o.seed ?? "0", 10),
+ runner: o.runner ?? "auto",
+ concurrency: Number.parseInt(o.concurrency ?? "4", 10),
+ timeoutS: Number.parseInt(o.timeout ?? "600", 10),
+ outDir: o.out ?? "runs",
+ judge: o.judge ?? "none",
+ score: Boolean(o.score),
+ balanced: Boolean(o.balanced),
+ language: normalizeLang(o.language),
+ };
+}
+
+function addCompareOptions(cmd: Command): Command {
+ return cmd
+ .option("--model <list>", "L0 models (comma-separated)")
+ .option("--agent <list>", "L1 agents: cc,codex")
+ .option("--harness <list>", "L2 harnesses: none,superpowers,omc,ecc,omx,lazycodex", "none")
+ .option("--bench <name>", "benchmark", "terminal-bench-v2")
+ .option("--tasks <n>", "task subset size", "20")
+ .option("--runs <n>", "runs per task", "1")
+ .option("--seed <n>", "subset seed (deterministic)", "0")
+ .option("--runner <name>", "auto|mock|cc|codex|tb", "auto")
+ .option("--concurrency <n>", "parallel executions", "4")
+ .option("--timeout <s>", "per-task timeout seconds", "600")
+ .option("--out <dir>", "output dir", "runs")
+ .option("--judge <name>", "none|heuristic|cc", "none")
+ .option("--score", "compute composite score (opt-in)", false)
+ .option("--balanced", "difficulty-balanced subset", false)
+ .option("--dry-run", "plan only, do not execute", false)
+ .option("-y, --yes", "bypass real-runner gate", false)
+ .option("-L, --language <lang>", "en|kr", "kr");
+}
+
+function printPreflight(t: Translator, lang: Lang, opts: RunOptions, yes: boolean): boolean {
+ const { valid, excluded } = expand(opts.models, opts.agents, opts.harnesses);
+ const pf = analyze(opts.models, opts.agents, opts.harnesses, valid, excluded, {
+ bench: opts.bench,
+ runner: opts.runner,
+ tasks: opts.tasks,
+ runs: opts.runs,
+ yes,
+ });
+
+ console.log(pc.bold(`\n${t("preflight_title")}`));
+ console.log(` ${t("valid_combos")}: ${valid.map((c) => c.comboId).join(", ") || "—"}`);
+ if (excluded.length) {
+ console.log(pc.yellow(` ${t("excluded_combos")}:`));
+ for (const c of excluded) console.log(` - ${c.comboId}: ${c.excludeReason}`);
+ }
+ console.log(` ${t("runner_label")}: ${opts.runner}`);
+ console.log(` ${t("scale")}: ${pf.scale}`);
+ if (pf.warnings.length) {
+ console.log(pc.yellow(` ${t("warnings")}:`));
+ for (const w of pf.warnings) console.log(` ! ${w}`);
+ }
+ if (pf.gateBlocked) {
+ console.log(pc.red(`\n${t("gate_blocked")}`));
+ return false;
+ }
+ return true;
+}
+
+function printResultsTable(
+ t: Translator,
+ lang: Lang,
+ results: ReturnType<typeof aggregateAll>,
+): void {
+ const sorted = sortCombos(results);
+ const table = new Table({
+ head: [
+ t("col_combo"),
+ t("col_acc"),
+ t("col_subagents"),
+ t("col_tokens"),
+ t("col_cost"),
+ t("col_wall"),
+ t("col_toolcalls"),
+ ],
+ });
+ for (const m of sorted) {
+ table.push([
+ m.comboId,
+ `${m.accuracy.toFixed(1)}%`,
+ String(m.subagentCount),
+ m.totalTokens.toLocaleString("en-US"),
+ m.costUsd === null ? pc.dim("null") : `$${m.costUsd.toFixed(4)}`,
+ `${(m.wallTimeMs / 1000).toFixed(1)}s`,
+ String(m.toolCalls),
+ ]);
+ }
+ console.log(`\n${pc.bold(t("results_table"))}`);
+ console.log(table.toString());
+
+ const best = bestByPerspective(results, lang);
+ for (const [label, combo] of Object.entries(best))
+ console.log(` ${pc.green("▸")} ${label}: ${combo}`);
+}
+
+async function compareAction(o: any): Promise<void> {
+ const opts = toRunOptions(o);
+ const lang = opts.language;
+ const t = translator(lang);
+ console.log(pc.bold(pc.cyan(t("app_tagline"))));
+
+ if (!opts.models.length || !opts.agents.length) {
+ console.log(pc.red(`\n${t("no_models")}`));
+ process.exitCode = 1;
+ return;
+ }
+
+ const proceed = printPreflight(t, lang, opts, Boolean(o.yes));
+ if (!proceed) {
+ process.exitCode = 1;
+ return;
+ }
+ if (o.dryRun) {
+ console.log(pc.dim(`\n${t("dry_run_only")}`));
+ return;
+ }
+
+ const res = await execute(opts);
+ if (res.mock) console.log(pc.yellow(`\n${t("mock_banner")}`));
+ printResultsTable(t, lang, res.metrics);
+ console.log(`\n${t("run_complete")} — ${t("run_id")}: ${pc.bold(res.runId)}`);
+ console.log(` ${t("report_path")}: ${res.reportPath}`);
+ console.log(` ${t("graph_path")}: ${res.graphPath}`);
+}
+
+function buildProgram(): Command {
+ const program = new Command();
+ program
+ .name("theseus")
+ .description("compare model × agent × harness on your own tasks")
+ .version("0.1.0");
+
+ // 단축형: 서브커맨드 없이 플래그만 → compare
+ addCompareOptions(program).action(compareAction);
+
+ addCompareOptions(program.command("compare").description("run an N-combo comparison")).action(
+ compareAction,
+ );
+
+ program
+ .command("results")
+ .description("show recorded results")
+ .option("--run <id>", "run id (default: latest)")
+ .option("--out <dir>", "output dir", "runs")
+ .option("-L, --language <lang>", "en|kr", "kr")
+ .action((o) => {
+ const lang = normalizeLang(o.language);
+ const t = translator(lang);
+ const runs = listRuns(o.out);
+ if (!runs.length) {
+ console.log(pc.yellow("no runs found"));
+ return;
+ }
+ const runId = o.run ?? runs[0]!;
+ const meta = loadMeta(o.out, runId);
+ const results = loadResults(o.out, runId);
+ console.log(pc.bold(`${t("run_id")}: ${runId} (${meta?.bench ?? "?"})`));
+ printResultsTable(t, lang, aggregateAll(results));
+ console.log(pc.dim(`\nall runs: ${runs.join(", ")}`));
+ });
+
+ program
+ .command("install <component>")
+ .description("install agent/harness/bench (cc|codex|tb|<harness>)")
+ .action((component) => runInstall(component));
+
+ program
+ .command("doctor")
+ .description("self-diagnose the execution environment")
+ .action(() => {
+ const table = new Table({ head: ["component", "status"] });
+ table.push([
+ "claude (cc)",
+ commandExists("claude") ? pc.green("available") : pc.red("missing"),
+ ]);
+ table.push(["codex", commandExists("codex") ? pc.green("available") : pc.red("missing")]);
+ table.push(["tb", commandExists("tb") ? pc.green("available") : pc.red("missing")]);
+ table.push(["docker", commandExists("docker") ? pc.green("available") : pc.red("missing")]);
+ table.push(["mock runner", pc.green("always available")]);
+ for (const h of ["superpowers", "omc", "ecc", "omx", "lazycodex"])
+ table.push([`harness:${h}`, harnessStatus(h)]);
+ table.push(["local benches", listLocalBenches().join(", ")]);
+ console.log(table.toString());
+ // 러너 인스턴스화 확인(가용성)
+ console.log(
+ pc.dim(
+ `runners: ${["mock", "cc", "codex", "tb"].map((n) => `${n}=${getRunner(n).isAvailable()}`).join(" ")}`,
+ ),
+ );
+ });
+
+ program
+ .command("tui")
+ .description("TUI wrapper (best-effort)")
+ .option("--out <dir>", "output dir", "runs")
+ .option("--rich", "force cli-table3 fallback", false)
+ .option("--open", "open report.html in browser", false)
+ .option("-L, --language <lang>", "en|kr", "kr")
+ .action((o) =>
+ runTui({
+ out: o.out,
+ rich: Boolean(o.rich),
+ open: Boolean(o.open),
+ language: normalizeLang(o.language),
+ }),
+ );
+
+ return program;
+}
+
+export async function main(argv = process.argv): Promise<void> {
+ await buildProgram().parseAsync(argv);
+}
+
+// 직접 실행 시
+main().catch((e) => {
+ console.error(pc.red(`error: ${(e as Error).message}`));
+ process.exitCode = 1;
+});
diff --git a/src/combos.ts b/src/combos.ts
new file mode 100644
index 0000000..d669dfe
--- /dev/null
+++ b/src/combos.ts
@@ -0,0 +1,79 @@
+/**
+ * 조합 확장 & 유효성 (PRD §5).
+ * expand(models, agents, harnesses) → { valid, excluded }.
+ * silent drop 금지 — 비호환은 excludeReason 과 함께 excluded 에 기록.
+ */
+import { AGENTS, HARNESSES, modelFamily } from "./config";
+import type { Combo } from "./models";
+
+export interface ExpandResult {
+ valid: Combo[];
+ excluded: Combo[];
+}
+
+/** comboId = `${agent}+${model}+${harness}` */
+export function comboId(agent: string, model: string, harness: string): string {
+ return `${agent}+${model}+${harness}`;
+}
+
+/** harness 는 마지막 세그먼트 — 모델 id 에 '+' 가 있어도 안전(rsplit). */
+export function parseComboId(id: string): { agent: string; model: string; harness: string } {
+ const lastPlus = id.lastIndexOf("+");
+ const firstPlus = id.indexOf("+");
+ const agent = id.slice(0, firstPlus);
+ const harness = id.slice(lastPlus + 1);
+ const model = id.slice(firstPlus + 1, lastPlus);
+ return { agent, model, harness };
+}
+
+function checkCombo(agent: string, model: string, harness: string): string | null {
+ if (!AGENTS[agent]) return `unknown agent '${agent}'`;
+ const hdef = HARNESSES[harness];
+ if (!hdef) return `unknown harness '${harness}'`;
+
+ const aFam = AGENTS[agent].family;
+ const mFam = modelFamily(model);
+
+ // 1. cc 는 claude 모델만, codex 는 gpt 모델만
+ if (aFam !== mFam) {
+ return `agent '${agent}' (${aFam}) is incompatible with model '${model}' (${mFam})`;
+ }
+ // 2. 하네스-에이전트 호환
+ if (!hdef.agents.includes(agent as "cc" | "codex")) {
+ return `harness '${harness}' is not compatible with agent '${agent}'`;
+ }
+ return null;
+}
+
+export function expand(models: string[], agents: string[], harnesses: string[]): ExpandResult {
+ const valid: Combo[] = [];
+ const excluded: Combo[] = [];
+ const seen = new Set<string>();
+
+ for (const agent of agents) {
+ for (const model of models) {
+ for (const harness of harnesses) {
+ const id = comboId(agent, model, harness);
+ if (seen.has(id)) continue;
+ seen.add(id);
+
+ const reason = checkCombo(agent, model, harness);
+ // 미등록 alias 는 경고지만 치명적 제외는 아님(preflight 가 경고). family 판정은 진행.
+ if (reason) {
+ excluded.push({
+ comboId: id,
+ agent,
+ model,
+ harness,
+ valid: false,
+ excludeReason: reason,
+ });
+ } else {
+ // 미등록 alias 는 제외하지 않음(preflight 가 경고) — 유효로 통과시킨다.
+ valid.push({ comboId: id, agent, model, harness, valid: true, excludeReason: null });
+ }
+ }
+ }
+ }
+ return { valid, excluded };
+}
diff --git a/src/config.ts b/src/config.ts
new file mode 100644
index 0000000..d0c1189
--- /dev/null
+++ b/src/config.ts
@@ -0,0 +1,97 @@
+/**
+ * 레지스트리 (PRD §4): L0 모델 / L1 에이전트 / L2 하네스 / 벤치.
+ * alias 해석 + family 판정. 순수 데이터 + 조회 함수.
+ */
+import type { Family } from "./models";
+
+export interface ModelDef {
+ alias: string;
+ resolvedId: string; // 'default' = 계정 기본(codex), --model 생략
+ family: Family;
+}
+
+export interface AgentDef {
+ name: string; // 'cc' | 'codex'
+ family: Family; // cc→claude, codex→gpt
+ bin: string;
+}
+
+export interface HarnessDef {
+ name: string;
+ agents: ("cc" | "codex")[]; // 호환 에이전트
+ orchestration: boolean; // 오케스트레이션 계열(조합당 1개)
+}
+
+export interface BenchDef {
+ name: string;
+ local: boolean; // 내장 벤치(Docker 불필요)
+ difficulty: boolean; // 난이도 메타 보유(balanced 가능)
+}
+
+// ── L0 모델 ──────────────────────────────────────────────
+export const MODELS: Record<string, ModelDef> = {
+ "opus4.8": { alias: "opus4.8", resolvedId: "claude-opus-4-8", family: "claude" },
+ "opus4.7": { alias: "opus4.7", resolvedId: "claude-opus-4-7", family: "claude" },
+ "opus4.6": { alias: "opus4.6", resolvedId: "claude-opus-4-6", family: "claude" },
+ "sonnet4.6": { alias: "sonnet4.6", resolvedId: "claude-sonnet-4-6", family: "claude" },
+ "sonnet4.5": { alias: "sonnet4.5", resolvedId: "claude-sonnet-4-5", family: "claude" },
+ "haiku4.5": { alias: "haiku4.5", resolvedId: "claude-haiku-4-5", family: "claude" },
+ fable5: { alias: "fable5", resolvedId: "claude-fable-5", family: "claude" },
+ // gpt 계열
+ "gpt5-codex": { alias: "gpt5-codex", resolvedId: "default", family: "gpt" },
+ "gpt5.5": { alias: "gpt5.5", resolvedId: "gpt-5.5", family: "gpt" },
+ "gpt5.1-codex": { alias: "gpt5.1-codex", resolvedId: "gpt-5.1-codex", family: "gpt" },
+};
+
+// ── L1 에이전트 ──────────────────────────────────────────
+export const AGENTS: Record<string, AgentDef> = {
+ cc: { name: "cc", family: "claude", bin: "claude" },
+ codex: { name: "codex", family: "gpt", bin: "codex" },
+};
+
+// ── L2 하네스 ────────────────────────────────────────────
+export const HARNESSES: Record<string, HarnessDef> = {
+ none: { name: "none", agents: ["cc", "codex"], orchestration: false },
+ superpowers: { name: "superpowers", agents: ["cc", "codex"], orchestration: true },
+ omc: { name: "omc", agents: ["cc"], orchestration: true },
+ ecc: { name: "ecc", agents: ["cc"], orchestration: true },
+ omx: { name: "omx", agents: ["codex"], orchestration: true },
+ lazycodex: { name: "lazycodex", agents: ["codex"], orchestration: true },
+};
+
+// ── 벤치 ─────────────────────────────────────────────────
+export const BENCHES: Record<string, BenchDef> = {
+ "terminal-bench-v2": { name: "terminal-bench-v2", local: false, difficulty: true },
+ local: { name: "local", local: true, difficulty: true },
+ subagent: { name: "subagent", local: true, difficulty: true },
+};
+
+// ── 조회 / 해석 ──────────────────────────────────────────
+export function resolveModelAlias(alias: string): string {
+ return MODELS[alias]?.resolvedId ?? alias;
+}
+
+export function modelFamily(model: string): Family {
+ if (MODELS[model]) return MODELS[model].family;
+ // resolved id 로 들어온 경우도 family 추정
+ const byResolved = Object.values(MODELS).find((m) => m.resolvedId === model);
+ if (byResolved) return byResolved.family;
+ if (model === "default" || model.startsWith("gpt")) return "gpt";
+ return "claude";
+}
+
+export function isKnownModel(alias: string): boolean {
+ return alias in MODELS || Object.values(MODELS).some((m) => m.resolvedId === alias);
+}
+
+export function agentFamily(agent: string): Family | null {
+ return AGENTS[agent]?.family ?? null;
+}
+
+export function harnessDef(name: string): HarnessDef | undefined {
+ return HARNESSES[name];
+}
+
+export function benchDef(name: string): BenchDef | undefined {
+ return BENCHES[name];
+}
diff --git a/src/flow.ts b/src/flow.ts
new file mode 100644
index 0000000..3d83422
--- /dev/null
+++ b/src/flow.ts
@@ -0,0 +1,264 @@
+/**
+ * 흐름 그래프 (PRD §9).
+ * buildFlow → FlowGraph(root + 서브에이전트 노드, depth, 최고비용 highlight).
+ * renderGraphSvg(카드 트리) / renderGraphHtml(self-contained, 외부 JS/CDN 0, 모든 입력 esc).
+ * 노드별 토글(<details>)로 skills·tools·steps·in·log.
+ */
+import { writeFileSync } from "node:fs";
+import { tr } from "./i18n";
+import type { FlowEdge, FlowGraph, FlowNode, Lang, ParsedTranscript } from "./models";
+
+export function esc(s: unknown): string {
+ return String(s ?? "")
+ .replaceAll("&", "&amp;")
+ .replaceAll("<", "&lt;")
+ .replaceAll(">", "&gt;")
+ .replaceAll('"', "&quot;")
+ .replaceAll("'", "&#39;");
+}
+
+const HARNESS_COLORS: Record<string, string> = {
+ none: "#64748b",
+ superpowers: "#7c3aed",
+ omc: "#0ea5e9",
+ ecc: "#10b981",
+ omx: "#f59e0b",
+ lazycodex: "#ef4444",
+ main: "#1e293b",
+};
+
+export interface BuildFlowOpts {
+ harness: string;
+ costPerToken?: number;
+ success: boolean;
+ error?: string | null;
+}
+
+export function buildFlow(
+ parsed: ParsedTranscript,
+ comboId: string,
+ taskId: string,
+ runIdx: number,
+ opts: BuildFlowOpts,
+): FlowGraph {
+ const cpt = opts.costPerToken ?? 0;
+ const events = parsed.events;
+
+ // depth 계산 (parentIdx 체인, 순환 방어)
+ const depthOf = (idx: number): number => {
+ let d = 0;
+ let cur = events[idx]?.parentIdx ?? null;
+ const guard = new Set<number>([idx]);
+ while (cur !== null && cur !== undefined && !guard.has(cur)) {
+ guard.add(cur);
+ d += 1;
+ cur = events[cur]?.parentIdx ?? null;
+ }
+ return d;
+ };
+
+ const nodes: FlowNode[] = events.map((e) => {
+ const tokens = e.inputTokens + e.outputTokens + e.cacheReadTokens + e.cacheCreationTokens;
+ const isMain = e.idx === 0;
+ return {
+ id: `n${e.idx}`,
+ label: isMain ? comboId : (e.name ?? `sub ${e.idx}`),
+ startMs: e.tsMs,
+ endMs: e.endMs,
+ durationMs: e.durationMs,
+ summaryIn: e.summaryIn,
+ summaryOut: e.summaryOut,
+ status: opts.success ? e.status : "fail",
+ tokens,
+ toolCalls: e.toolCalls,
+ costUsd: Math.round(tokens * cpt * 1e6) / 1e6,
+ depth: depthOf(e.idx),
+ highlight: false,
+ harness: isMain ? "main" : opts.harness,
+ isMain,
+ skillsUsed: e.skillsUsed,
+ toolsUsed: e.toolsUsed,
+ steps: e.steps,
+ logText: e.logText,
+ };
+ });
+
+ // 최고 비용 노드 1개 highlight (cost 우선, 동률/0 이면 tokens) — 결정적
+ if (nodes.length) {
+ let best = nodes[0]!;
+ for (const n of nodes) {
+ if (n.costUsd > best.costUsd || (n.costUsd === best.costUsd && n.tokens > best.tokens))
+ best = n;
+ }
+ best.highlight = true;
+ }
+
+ const edges: FlowEdge[] = [];
+ let order = 1;
+ for (const e of events) {
+ if (e.parentIdx !== null && e.parentIdx !== undefined) {
+ edges.push({ src: `n${e.parentIdx}`, dst: `n${e.idx}`, order: order++ });
+ }
+ }
+
+ return { comboId, taskId, runIdx, nodes, edges };
+}
+
+// ── 렌더링 ───────────────────────────────────────────────
+const CARD_W = 230;
+const CARD_H = 96;
+const H_GAP = 30;
+const V_GAP = 70;
+
+export function renderGraphSvg(graph: FlowGraph): string {
+ // depth 별 행 배치
+ const byDepth = new Map<number, FlowNode[]>();
+ for (const n of graph.nodes) {
+ const arr = byDepth.get(n.depth) ?? [];
+ arr.push(n);
+ byDepth.set(n.depth, arr);
+ }
+ const depths = [...byDepth.keys()].sort((a, b) => a - b);
+ const pos = new Map<string, { x: number; y: number }>();
+ let maxCols = 1;
+ for (const d of depths) maxCols = Math.max(maxCols, byDepth.get(d)!.length);
+ const width = Math.max(CARD_W + 40, maxCols * (CARD_W + H_GAP) + H_GAP);
+
+ for (const d of depths) {
+ const row = byDepth.get(d)!;
+ const rowWidth = row.length * (CARD_W + H_GAP) - H_GAP;
+ const startX = (width - rowWidth) / 2;
+ row.forEach((n, i) => {
+ pos.set(n.id, { x: startX + i * (CARD_W + H_GAP), y: H_GAP + d * (CARD_H + V_GAP) });
+ });
+ }
+ const height = (depths.length || 1) * (CARD_H + V_GAP) + H_GAP;
+
+ const parts: string[] = [];
+ parts.push(
+ `<svg viewBox="0 0 ${width} ${height}" width="${width}" height="${height}" xmlns="http://www.w3.org/2000/svg" font-family="ui-sans-serif,system-ui,sans-serif">`,
+ );
+ parts.push(
+ `<defs><marker id="arrow" markerWidth="8" markerHeight="8" refX="6" refY="3" orient="auto"><path d="M0,0 L6,3 L0,6 Z" fill="#94a3b8"/></marker></defs>`,
+ );
+
+ // edges (곡선 + 호출순서 배지)
+ for (const e of graph.edges) {
+ const p = pos.get(e.src);
+ const c = pos.get(e.dst);
+ if (!p || !c) continue;
+ const x1 = p.x + CARD_W / 2;
+ const y1 = p.y + CARD_H;
+ const x2 = c.x + CARD_W / 2;
+ const y2 = c.y;
+ const my = (y1 + y2) / 2;
+ parts.push(
+ `<path d="M${x1},${y1} C${x1},${my} ${x2},${my} ${x2},${y2}" fill="none" stroke="#94a3b8" stroke-width="1.5" marker-end="url(#arrow)"/>`,
+ );
+ const bx = (x1 + x2) / 2;
+ parts.push(
+ `<circle cx="${bx}" cy="${my}" r="9" fill="#fff" stroke="#94a3b8"/><text x="${bx}" y="${my + 3}" font-size="10" text-anchor="middle" fill="#475569">${e.order}</text>`,
+ );
+ }
+
+ // nodes (카드)
+ for (const n of graph.nodes) {
+ const p = pos.get(n.id)!;
+ const color = HARNESS_COLORS[n.harness] ?? "#64748b";
+ const stroke = n.highlight ? "#facc15" : "#e2e8f0";
+ const sw = n.highlight ? 3 : 1;
+ const tag = n.isMain
+ ? tr("en", "tag_main")
+ : `${tr("en", "tag_sub")}·${esc(n.harness).toUpperCase()}`;
+ const statusMark = n.status === "fail" ? "✗" : n.highlight ? "★" : "";
+ const tokK = (n.tokens / 1000).toFixed(1);
+ const barW = Math.min(CARD_W - 24, Math.max(2, (n.tokens / 200000) * (CARD_W - 24)));
+ parts.push("<g>");
+ parts.push(
+ `<rect x="${p.x}" y="${p.y}" rx="10" width="${CARD_W}" height="${CARD_H}" fill="#fff" stroke="${stroke}" stroke-width="${sw}"/>`,
+ );
+ parts.push(
+ `<rect x="${p.x}" y="${p.y}" rx="10" width="${CARD_W}" height="22" fill="${color}"/>`,
+ );
+ parts.push(
+ `<text x="${p.x + 10}" y="${p.y + 15}" font-size="11" font-weight="600" fill="#fff">${esc(tag)} ${statusMark}</text>`,
+ );
+ parts.push(
+ `<text x="${p.x + 10}" y="${p.y + 40}" font-size="11" fill="#0f172a">${esc(truncateLabel(n.label))}</text>`,
+ );
+ parts.push(
+ `<text x="${p.x + 10}" y="${p.y + 58}" font-size="10" fill="#475569">⏱${(n.durationMs / 1000).toFixed(1)}s · ${tokK}k tok · $${n.costUsd.toFixed(4)}</text>`,
+ );
+ parts.push(
+ `<rect x="${p.x + 10}" y="${p.y + 70}" width="${CARD_W - 24}" height="6" rx="3" fill="#f1f5f9"/>`,
+ );
+ parts.push(
+ `<rect x="${p.x + 10}" y="${p.y + 70}" width="${barW}" height="6" rx="3" fill="${color}"/>`,
+ );
+ parts.push("</g>");
+ }
+ parts.push("</svg>");
+ return parts.join("");
+}
+
+function truncateLabel(s: string): string {
+ return s.length > 32 ? `${s.slice(0, 31)}…` : s;
+}
+
+export const DETAILS_CSS = `
+.dike-details{margin:4px 0;border:1px solid #e2e8f0;border-radius:8px;background:#fff}
+.dike-details>summary{cursor:pointer;padding:6px 10px;font-size:13px;font-weight:600;color:#1e293b;list-style:none}
+.dike-details>summary::-webkit-details-marker{display:none}
+.dike-details>summary::before{content:'▸ ';color:#94a3b8}
+.dike-details[open]>summary::before{content:'▾ '}
+.dike-details .body{padding:6px 12px;font-size:12px;color:#334155;border-top:1px solid #f1f5f9}
+.dike-details .body div{margin:3px 0;word-break:break-word}
+.dike-details .k{color:#64748b;font-weight:600;margin-right:4px}
+`;
+
+function row(label: string, value: string): string {
+ if (!value) return "";
+ return `<div><span class="k">${esc(label)}:</span>${esc(value)}</div>`;
+}
+
+/** 노드별 토글(네이티브 details, 외부 JS 0) */
+export function nodeDetailsBlock(node: FlowNode, lang: Lang): string {
+ const body = [
+ row(tr(lang, "node_skills"), node.skillsUsed.join(", ")),
+ row(tr(lang, "node_tools"), node.toolsUsed.join(", ")),
+ row(tr(lang, "node_steps"), node.steps.slice(0, 30).join(" → ")),
+ row(tr(lang, "node_input"), node.summaryIn),
+ row(tr(lang, "node_log"), node.logText),
+ ].join("");
+ return `<details class="dike-details"><summary>${esc(node.label)} (${esc(node.harness)})</summary><div class="body">${body}</div></details>`;
+}
+
+/** graph.html / report.html 공용 — 한 그래프 섹션(인라인 SVG + 노드 토글) */
+export function graphSection(graph: FlowGraph, lang: Lang): string {
+ const svg = renderGraphSvg(graph);
+ const toggles = graph.nodes.map((n) => nodeDetailsBlock(n, lang)).join("");
+ return `<div class="dike-graph"><h3>${esc(graph.comboId)} — ${esc(graph.taskId)} #${graph.runIdx}</h3><div class="svg-wrap">${svg}</div>${toggles}</div>`;
+}
+
+export function renderGraphHtml(graphs: FlowGraph[], path: string, opts: { language: Lang }): void {
+ const lang = opts.language;
+ const sections = graphs.map((g) => graphSection(g, lang)).join("\n");
+ const html = `<!doctype html><html lang="${lang}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
+<title>${esc(tr(lang, "graph_title"))}</title>
+<style>
+body{font-family:ui-sans-serif,system-ui,sans-serif;background:#f8fafc;color:#0f172a;margin:0;padding:20px}
+h1{font-size:20px}
+.dike-graph{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px;margin:16px 0;overflow:auto}
+.dike-graph h3{font-size:14px;margin:0 0 10px}
+.svg-wrap{overflow:auto}
+${DETAILS_CSS}
+</style></head><body>
+<h1>${esc(tr(lang, "graph_title"))}</h1>
+${sections}
+</body></html>`;
+ writeFileSync(path, html);
+}
+
+export function writeFlowJson(graph: FlowGraph, path: string): void {
+ writeFileSync(path, JSON.stringify(graph, null, 2));
+}
diff --git a/src/harness.ts b/src/harness.ts
new file mode 100644
index 0000000..a2fd749
--- /dev/null
+++ b/src/harness.ts
@@ -0,0 +1,91 @@
+/**
+ * 하네스 per-run 적용 (PRD §10). 전역 오염 없음 — 조합별로만 적용.
+ * - cc 하네스: --plugin-dir <설치경로>
+ * - codex 하네스: CODEX_HOME 격리 홈
+ */
+import { existsSync, readdirSync } from "node:fs";
+import { homedir } from "node:os";
+import { join } from "node:path";
+
+export type HarnessStatus = "none" | "applied" | "unavailable";
+export type CodexHomeStatus = "none" | "built" | "pending";
+
+const CC_HARNESSES = new Set(["superpowers", "omc", "ecc"]);
+const CODEX_HARNESSES = new Set(["omx", "lazycodex"]);
+
+// 하네스 → 플러그인 디렉터리 이름 후보
+const PLUGIN_DIR_NAMES: Record<string, string[]> = {
+ superpowers: ["superpowers"],
+ omc: ["oh-my-claudecode", "omc"],
+ ecc: ["ecc", "enhanced-claude-code"],
+ omx: ["oh-my-codex", "omx"],
+ lazycodex: ["lazycodex", "lazy-codex"],
+};
+
+function pluginCacheRoot(): string {
+ return join(homedir(), ".claude", "plugins", "cache");
+}
+
+// 탐지: ~/.claude/plugins/cache/<marketplace>/<plugin>[/<version>]/.claude-plugin/plugin.json
+export function findCcPluginDir(harness: string): string | null {
+ if (!CC_HARNESSES.has(harness)) return null;
+ const root = pluginCacheRoot();
+ if (!existsSync(root)) return null;
+ const names = PLUGIN_DIR_NAMES[harness] ?? [harness];
+ try {
+ for (const marketplace of readdirSync(root)) {
+ const mp = join(root, marketplace);
+ for (const name of names) {
+ const candidate = join(mp, name);
+ if (existsSync(join(candidate, ".claude-plugin", "plugin.json"))) return candidate;
+ // 한 단계 더(버전 폴더)
+ if (existsSync(candidate)) {
+ for (const sub of safeReaddir(candidate)) {
+ const c2 = join(candidate, sub);
+ if (existsSync(join(c2, ".claude-plugin", "plugin.json"))) return c2;
+ }
+ }
+ }
+ }
+ } catch {
+ return null;
+ }
+ return null;
+}
+
+function safeReaddir(p: string): string[] {
+ try {
+ return readdirSync(p);
+ } catch {
+ return [];
+ }
+}
+
+export function codexHomePath(harness: string): string {
+ return join(homedir(), ".cache", "dike", "codex-homes", harness);
+}
+
+export function harnessClaudeArgs(harness: string): string[] {
+ if (harness === "none") return [];
+ const dir = findCcPluginDir(harness);
+ return dir ? ["--plugin-dir", dir] : [];
+}
+
+export function harnessCodexEnv(harness: string): Record<string, string> {
+ if (harness === "none" || !CODEX_HARNESSES.has(harness)) return {};
+ const home = codexHomePath(harness);
+ return existsSync(home) ? { CODEX_HOME: home } : {};
+}
+
+export function harnessStatus(harness: string): HarnessStatus {
+ if (harness === "none") return "none";
+ if (CC_HARNESSES.has(harness)) return findCcPluginDir(harness) ? "applied" : "unavailable";
+ if (CODEX_HARNESSES.has(harness))
+ return existsSync(codexHomePath(harness)) ? "applied" : "unavailable";
+ return "unavailable";
+}
+
+export function codexHomeStatus(harness: string): CodexHomeStatus {
+ if (harness === "none" || !CODEX_HARNESSES.has(harness)) return "none";
+ return existsSync(codexHomePath(harness)) ? "built" : "pending";
+}
diff --git a/src/i18n.ts b/src/i18n.ts
new file mode 100644
index 0000000..20ad793
--- /dev/null
+++ b/src/i18n.ts
@@ -0,0 +1,108 @@
+/**
+ * 다국어 (PRD §16). 사용자에게 보이는 표시 문자열만 i18n. 기본 kr 폴백.
+ */
+import type { Lang } from "./models";
+
+type Entry = { en: string; kr: string };
+
+export const STRINGS: Record<string, Entry> = {
+ // CLI / banner
+ app_tagline: {
+ en: "theseus — compare model × agent × harness on your own tasks",
+ kr: "theseus — 내 과제로 모델 × 에이전트 × 하네스 비교",
+ },
+ preflight_title: { en: "Preflight", kr: "사전점검" },
+ valid_combos: { en: "Valid combos", kr: "유효 조합" },
+ excluded_combos: { en: "Excluded combos", kr: "제외 조합" },
+ scale: { en: "Scale (combos × tasks × runs)", kr: "실행 규모 (조합 × 과제 × 반복)" },
+ runner_label: { en: "Runner", kr: "러너" },
+ warnings: { en: "Warnings", kr: "경고" },
+ gate_blocked: {
+ en: "Blocked: real runner with >30 executions requires --yes",
+ kr: "차단됨: real 러너 30회 초과 실행은 --yes 필요",
+ },
+ dry_run_only: { en: "Dry run — plan only, nothing executed", kr: "드라이런 — 계획만, 미실행" },
+ run_complete: { en: "Run complete", kr: "실행 완료" },
+ report_path: { en: "Report", kr: "리포트" },
+ graph_path: { en: "Flow graph", kr: "흐름 그래프" },
+ run_id: { en: "Run id", kr: "런 ID" },
+ results_table: { en: "Results", kr: "결과" },
+ no_models: {
+ en: "No models/agents specified. Example: dike --model opus4.8 --agent cc --harness none",
+ kr: "모델/에이전트 미지정. 예: dike --model opus4.8 --agent cc --harness none",
+ },
+ mock_banner: {
+ en: "MOCK runner — results are synthetic (offline). Not real measurements.",
+ kr: "MOCK 러너 — 합성 결과(오프라인). 실측 아님.",
+ },
+
+ // report sections
+ sec_best: { en: "0. Best by perspective", kr: "0. 관점별 최적" },
+ sec_score: { en: "0.5 Composite score (opt-in)", kr: "0.5 종합점수 (opt-in)" },
+ sec_accuracy: { en: "1. Accuracy", kr: "1. 정확도" },
+ sec_efficiency: { en: "2. Efficiency", kr: "2. 효율" },
+ sec_scatter: { en: "3. Cost-performance scatter", kr: "3. 가성비 산점도" },
+ sec_matrix: { en: "4. Task pass/fail matrix", kr: "4. 과제별 통과/실패 매트릭스" },
+ sec_flow: { en: "5. Subagent flow graphs", kr: "5. 서브에이전트 흐름 그래프" },
+ sec_failures: { en: "6. Failed tasks & causes", kr: "6. 실패 과제 & 원인" },
+ sec_uncollected: { en: "7. Uncollected metrics", kr: "7. 미수집 지표" },
+
+ // perspectives
+ persp_accuracy: { en: "Highest accuracy", kr: "최고 정확도" },
+ persp_cost: { en: "Lowest cost", kr: "최저 비용" },
+ persp_tokens: { en: "Fewest tokens", kr: "최소 토큰" },
+ persp_time: { en: "Fastest", kr: "최단 시간" },
+ persp_toolcalls: { en: "Fewest tool calls", kr: "최소 툴콜" },
+ persp_subagents: { en: "Fewest subagents", kr: "최소 서브에이전트" },
+ persp_quality: { en: "Highest quality", kr: "최고 품질" },
+
+ // graph
+ graph_title: { en: "Subagent flow", kr: "서브에이전트 흐름" },
+ tag_main: { en: "MAIN LOOP", kr: "메인 루프" },
+ tag_sub: { en: "SUB", kr: "서브" },
+ node_skills: { en: "Skills", kr: "스킬" },
+ node_tools: { en: "Tools", kr: "도구" },
+ node_steps: { en: "Steps", kr: "행동" },
+ node_input: { en: "Input", kr: "입력" },
+ node_log: { en: "Log", kr: "로그" },
+ legend: { en: "Legend", kr: "범례" },
+ uncollected_note: { en: "null = not collected", kr: "null = 미수집" },
+
+ // misc columns
+ col_combo: { en: "combo", kr: "조합" },
+ col_acc: { en: "accuracy", kr: "정확도" },
+ col_subagents: { en: "subagents", kr: "서브에이전트" },
+ col_tokens: { en: "total tok", kr: "총 토큰" },
+ col_cost: { en: "cost", kr: "비용" },
+ col_wall: { en: "wall", kr: "시간" },
+ col_toolcalls: { en: "tool calls", kr: "툴콜" },
+ col_perspective: { en: "perspective", kr: "관점" },
+ col_value: { en: "value", kr: "값" },
+};
+
+export function normalizeLang(input: string | undefined | null): Lang {
+ if (!input) return "kr";
+ const s = input.trim().toLowerCase();
+ if (["en", "english", "eng"].includes(s)) return "en";
+ if (["kr", "ko", "korean", "kor", "한국어"].includes(s)) return "kr";
+ return "kr"; // 미상 → 기본 kr
+}
+
+export function tr(lang: Lang, key: string, fmt?: Record<string, string | number>): string {
+ const entry = STRINGS[key];
+ let s: string;
+ if (!entry) s = key;
+ else s = entry[lang] ?? entry.kr ?? key; // 누락 키는 kr 폴백
+ if (fmt) {
+ for (const [k, v] of Object.entries(fmt)) {
+ s = s.replaceAll(`{${k}}`, String(v));
+ }
+ }
+ return s;
+}
+
+export type Translator = (key: string, fmt?: Record<string, string | number>) => string;
+
+export function translator(lang: Lang): Translator {
+ return (key, fmt) => tr(lang, key, fmt);
+}
diff --git a/src/install.ts b/src/install.ts
new file mode 100644
index 0000000..bd94375
--- /dev/null
+++ b/src/install.ts
@@ -0,0 +1,104 @@
+/**
+ * install 커맨드 (PRD §22.5).
+ * 바이너리: 설치 확인 후 힌트. cc 하네스: marketplace add + install + 전역 disable.
+ * codex 하네스: per-run 격리 홈 빌드. 실패 시 수동 명령 안내로 폴백(치명적이지 않게).
+ */
+import pc from "picocolors";
+import { codexHomePath } from "./harness";
+import { commandExists, execCapture } from "./runners/util";
+
+const BIN_MAP: Record<string, string> = {
+ cc: "claude",
+ codex: "codex",
+ tb: "tb",
+ "terminal-bench": "tb",
+};
+
+const INSTALL_HINTS: Record<string, string> = {
+ claude: "npm i -g @anthropic-ai/claude-code",
+ codex: "npm i -g @openai/codex",
+ tb: "uv tool install terminal-bench",
+};
+
+// 하네스 → marketplace source / plugin id
+const CC_HARNESS_SRC: Record<string, { src: string; plugin: string }> = {
+ superpowers: { src: "obra/superpowers", plugin: "superpowers" },
+ omc: { src: "oh-my-claudecode/marketplace", plugin: "oh-my-claudecode" },
+ ecc: { src: "ecc/marketplace", plugin: "ecc" },
+};
+const CODEX_HARNESS_SRC: Record<string, { src: string; plugin: string }> = {
+ omx: { src: "oh-my-codex/marketplace", plugin: "oh-my-codex" },
+ lazycodex: { src: "lazycodex/marketplace", plugin: "lazycodex" },
+};
+
+export async function runInstall(component: string): Promise<void> {
+ const c = component.toLowerCase();
+
+ // 1) 바이너리
+ if (c in BIN_MAP) {
+ const bin = BIN_MAP[c]!;
+ if (commandExists(bin)) {
+ console.log(pc.green(`✓ ${bin} already installed`));
+ } else {
+ console.log(pc.yellow(`✗ ${bin} not found`));
+ console.log(` install: ${INSTALL_HINTS[bin] ?? `(see ${bin} docs)`}`);
+ }
+ return;
+ }
+
+ // 2) cc 하네스
+ if (c in CC_HARNESS_SRC) {
+ const { src, plugin } = CC_HARNESS_SRC[c]!;
+ if (!commandExists("claude")) {
+ console.log(pc.red("claude not installed — install cc first"));
+ return;
+ }
+ console.log(`installing cc harness '${c}'…`);
+ const a = await execCapture("claude", ["plugin", "marketplace", "add", src], { timeoutS: 120 });
+ const b = await execCapture("claude", ["plugin", "install", plugin], { timeoutS: 120 });
+ if (a.code === 0 && b.code === 0) {
+ await execCapture("claude", ["plugin", "disable", plugin], { timeoutS: 60 });
+ console.log(
+ pc.green(`✓ ${plugin} installed (globally disabled — loaded per-run via --plugin-dir)`),
+ );
+ } else {
+ console.log(pc.yellow("auto-install failed — run manually:"));
+ console.log(` claude plugin marketplace add ${src}`);
+ console.log(` claude plugin install ${plugin}`);
+ console.log(` claude plugin disable ${plugin}`);
+ }
+ return;
+ }
+
+ // 3) codex 하네스 (격리 홈)
+ if (c in CODEX_HARNESS_SRC) {
+ const { src, plugin } = CODEX_HARNESS_SRC[c]!;
+ const home = codexHomePath(c);
+ console.log(`building isolated CODEX_HOME for '${c}' at ${home}…`);
+ if (!commandExists("codex")) {
+ console.log(pc.red("codex not installed — install codex first"));
+ return;
+ }
+ const env = { CODEX_HOME: home };
+ const a = await execCapture("codex", ["plugin", "marketplace", "add", src], {
+ timeoutS: 120,
+ env,
+ });
+ const b = await execCapture("codex", ["plugin", "add", plugin], { timeoutS: 120, env });
+ if (a.code === 0 && b.code === 0) {
+ console.log(
+ pc.green(`✓ ${plugin} isolated home built (auth symlinked; global ~/.codex untouched)`),
+ );
+ } else {
+ console.log(pc.yellow("auto-build failed — run manually:"));
+ console.log(` CODEX_HOME=${home} codex plugin marketplace add ${src}`);
+ console.log(` CODEX_HOME=${home} codex plugin add ${plugin}`);
+ }
+ return;
+ }
+
+ console.log(pc.red(`unknown component '${component}'`));
+ console.log(" binaries: cc, codex, tb");
+ console.log(" cc harnesses: superpowers, omc, ecc");
+ console.log(" codex harnesses: omx, lazycodex");
+}
diff --git a/src/judge.ts b/src/judge.ts
new file mode 100644
index 0000000..59383b5
--- /dev/null
+++ b/src/judge.ts
@@ -0,0 +1,73 @@
+/**
+ * 품질 채점 (PRD §13, §22.2) — opt-in (--judge none|heuristic|cc).
+ * 미채점(off)이면 quality 컬럼·품질 관점 숨김.
+ */
+import { commandExists, execCapture } from "./runners/util";
+
+export interface Judge {
+ name: string;
+ score(text: string, instruction?: string): Promise<number | null>;
+}
+
+const NEGATIVE = [/error/i, /traceback/i, /exception/i, /\bfail/i, /실패/, /오류/];
+
+export class HeuristicJudge implements Judge {
+ name = "heuristic";
+ async score(text: string): Promise<number | null> {
+ if (!text || !text.trim()) return 0;
+ let s = 5;
+ if (NEGATIVE.some((re) => re.test(text))) s -= 3;
+ const len = text.length;
+ if (len >= 5 && len <= 600) s += 3;
+ if (len > 2000) s -= 1;
+ if (/[\n.!]$/.test(text.trimEnd()) || /[다요]$/.test(text.trimEnd())) s += 1;
+ return Math.max(0, Math.min(10, s));
+ }
+}
+
+export class ClaudeJudge implements Judge {
+ name = "cc";
+ async score(text: string, instruction?: string): Promise<number | null> {
+ if (!commandExists("claude")) return null;
+ const rubric = `Score the following task result from 0 to 10 (10 = perfect). Answer with ONLY a single integer 0-10, nothing else.\n\n${instruction ? `TASK: ${instruction}\n\n` : ""}RESULT:\n${text.slice(0, 4000)}`;
+ try {
+ const res = await execCapture(
+ "claude",
+ [
+ "-p",
+ rubric,
+ "--output-format",
+ "json",
+ "--model",
+ "claude-haiku-4-5",
+ "--dangerously-skip-permissions",
+ ],
+ { timeoutS: 60 },
+ );
+ let out = res.stdout;
+ try {
+ out = JSON.parse(res.stdout).result ?? res.stdout;
+ } catch {
+ // raw
+ }
+ return extractScore(out);
+ } catch {
+ return null;
+ }
+ }
+}
+
+export function extractScore(text: string): number | null {
+ const m = text.match(/\b(10(\.0)?|\d(\.\d)?)\b/);
+ if (!m) return null;
+ const v = Number.parseFloat(m[1]!);
+ if (Number.isNaN(v)) return null;
+ return Math.max(0, Math.min(10, v));
+}
+
+export function getJudge(name: string | null | undefined): Judge | null {
+ if (!name || name === "none") return null;
+ if (name === "heuristic") return new HeuristicJudge();
+ if (name === "cc") return new ClaudeJudge();
+ return null;
+}
diff --git a/src/metrics.ts b/src/metrics.ts
new file mode 100644
index 0000000..a9aa7c9
--- /dev/null
+++ b/src/metrics.ts
@@ -0,0 +1,237 @@
+import { tr } from "./i18n";
+/**
+ * 메트릭 (PRD §13, §22.1).
+ * 정렬 기본키 = subagentCount → totalTokens → wallTimeMs (한 곳: sortCombos).
+ * 단일 종합점수 없음 — bestByPerspective(관점별 최적). compositeScore 는 opt-in 보조.
+ */
+import type { CostSource, Lang, RunResult } from "./models";
+
+export interface ComboMetrics {
+ comboId: string;
+ runCount: number;
+ accuracy: number; // 다수결 통과율 %
+ accuracyAtK: number; // 평균 통과율 %
+ subagentCount: number; // ★ 1순위 정렬키 (mean)
+ totalTokens: number; // tie-break #2 (mean)
+ wallTimeMs: number; // tie-break #3 (mean)
+ inputTokens: number;
+ outputTokens: number;
+ cacheReadTokens: number;
+ cacheCreationTokens: number;
+ costUsd: number | null;
+ estimatedCostUsd: number | null;
+ costSource: CostSource;
+ toolCalls: number;
+ skillFires: number;
+ mcpCalls: number;
+ numTurns: number;
+ qualityScore: number | null;
+ perTask: Record<string, { passRate: number; resolved: boolean }>;
+}
+
+const round4 = (n: number) => Math.round(n * 1e4) / 1e4;
+const mean = (xs: number[]) => (xs.length ? xs.reduce((a, b) => a + b, 0) / xs.length : 0);
+
+/** 정확도 (PRD §22.1) — task 별 run 들의 resolved 다수결. */
+export function computeAccuracy(results: RunResult[]): {
+ accuracy: number;
+ accuracyAtK: number;
+ perTask: Record<string, { passRate: number; resolved: boolean }>;
+} {
+ const byTask = new Map<string, RunResult[]>();
+ for (const r of results) {
+ const arr = byTask.get(r.taskId) ?? [];
+ arr.push(r);
+ byTask.set(r.taskId, arr);
+ }
+ const perTask: Record<string, { passRate: number; resolved: boolean }> = {};
+ const passRates: number[] = [];
+ let passedTasks = 0;
+ for (const [taskId, runs] of byTask) {
+ const passRate = mean(runs.map((r) => (r.resolved === true ? 1 : 0)));
+ const resolved = passRate >= 0.5;
+ perTask[taskId] = { passRate: round4(passRate), resolved };
+ passRates.push(passRate);
+ if (resolved) passedTasks += 1;
+ }
+ const nTasks = byTask.size;
+ return {
+ accuracy: nTasks ? round4((100 * passedTasks) / nTasks) : 0,
+ accuracyAtK: nTasks ? round4(100 * mean(passRates)) : 0,
+ perTask,
+ };
+}
+
+function aggregateCost(results: RunResult[]): {
+ costUsd: number | null;
+ estimatedCostUsd: number | null;
+ costSource: CostSource;
+} {
+ const actuals = results.map((r) => r.costUsd).filter((c): c is number => c !== null);
+ const ests = results.map((r) => r.estimatedCostUsd).filter((c): c is number => c !== null);
+ const sources = new Set(results.map((r) => r.costSource));
+ let costSource: CostSource;
+ if (sources.size === 1 && sources.has("none")) costSource = "none";
+ else if (sources.has("actual")) costSource = "actual";
+ else costSource = "estimated";
+ return {
+ costUsd: actuals.length ? round4(mean(actuals)) : null,
+ estimatedCostUsd: ests.length ? round4(mean(ests)) : null,
+ costSource,
+ };
+}
+
+export function aggregateCombo(comboId: string, results: RunResult[]): ComboMetrics {
+ const acc = computeAccuracy(results);
+ const cost = aggregateCost(results);
+ const quals = results.map((r) => r.qualityScore).filter((q): q is number => q !== null);
+ return {
+ comboId,
+ runCount: results.length,
+ accuracy: acc.accuracy,
+ accuracyAtK: acc.accuracyAtK,
+ perTask: acc.perTask,
+ subagentCount: round4(mean(results.map((r) => r.subagentCount))),
+ totalTokens: Math.round(mean(results.map((r) => r.totalTokens))),
+ wallTimeMs: Math.round(mean(results.map((r) => r.wallTimeMs))),
+ inputTokens: Math.round(mean(results.map((r) => r.inputTokens))),
+ outputTokens: Math.round(mean(results.map((r) => r.outputTokens))),
+ cacheReadTokens: Math.round(mean(results.map((r) => r.cacheReadTokens))),
+ cacheCreationTokens: Math.round(mean(results.map((r) => r.cacheCreationTokens))),
+ costUsd: cost.costUsd,
+ estimatedCostUsd: cost.estimatedCostUsd,
+ costSource: cost.costSource,
+ toolCalls: round4(mean(results.map((r) => r.toolCalls))),
+ skillFires: round4(mean(results.map((r) => r.skillFires))),
+ mcpCalls: round4(mean(results.map((r) => r.mcpCalls))),
+ numTurns: round4(mean(results.map((r) => r.numTurns))),
+ qualityScore: quals.length ? round4(mean(quals)) : null,
+ };
+}
+
+export function aggregateAll(results: RunResult[]): ComboMetrics[] {
+ const byCombo = new Map<string, RunResult[]>();
+ for (const r of results) {
+ const arr = byCombo.get(r.comboId) ?? [];
+ arr.push(r);
+ byCombo.set(r.comboId, arr);
+ }
+ return [...byCombo.entries()].map(([id, rs]) => aggregateCombo(id, rs));
+}
+
+/** ★ 정렬 기본키 — subagentCount → totalTokens → wallTimeMs. 오름차순(적을수록 우선). */
+export function sortCombos(metrics: ComboMetrics[]): ComboMetrics[] {
+ return [...metrics].sort(
+ (a, b) =>
+ a.subagentCount - b.subagentCount ||
+ a.totalTokens - b.totalTokens ||
+ a.wallTimeMs - b.wallTimeMs ||
+ (a.comboId < b.comboId ? -1 : a.comboId > b.comboId ? 1 : 0),
+ );
+}
+
+// ── 관점별 최적 ─────────────────────────────────────────
+type Dir = "max" | "min";
+interface Perspective {
+ key: string; // i18n persp_*
+ metric: keyof ComboMetrics;
+ dir: Dir;
+ requiresQuality?: boolean;
+}
+const PERSPECTIVES: Perspective[] = [
+ { key: "persp_accuracy", metric: "accuracy", dir: "max" },
+ { key: "persp_cost", metric: "costUsd", dir: "min" },
+ { key: "persp_tokens", metric: "totalTokens", dir: "min" },
+ { key: "persp_time", metric: "wallTimeMs", dir: "min" },
+ { key: "persp_toolcalls", metric: "toolCalls", dir: "min" },
+ { key: "persp_subagents", metric: "subagentCount", dir: "min" },
+ { key: "persp_quality", metric: "qualityScore", dir: "max", requiresQuality: true },
+];
+
+export interface PerspectiveBest {
+ perspectiveKey: string;
+ label: string;
+ comboId: string;
+ metric: keyof ComboMetrics;
+ value: number;
+}
+
+export function bestByPerspectiveDetailed(
+ metrics: ComboMetrics[],
+ lang: Lang,
+ opts?: { judge?: boolean },
+): PerspectiveBest[] {
+ const out: PerspectiveBest[] = [];
+ for (const p of PERSPECTIVES) {
+ if (p.requiresQuality && !opts?.judge) continue; // judge off → 품질 관점 숨김
+ // 값 None/미수집 조합은 제외
+ const candidates = metrics.filter((m) => {
+ const v = m[p.metric];
+ return typeof v === "number" && Number.isFinite(v);
+ });
+ if (!candidates.length) continue;
+ const best = candidates.reduce((a, b) => {
+ const va = a[p.metric] as number;
+ const vb = b[p.metric] as number;
+ if (p.dir === "max") return vb > va ? b : a;
+ return vb < va ? b : a;
+ });
+ out.push({
+ perspectiveKey: p.key,
+ label: tr(lang, p.key),
+ comboId: best.comboId,
+ metric: p.metric,
+ value: best[p.metric] as number,
+ });
+ }
+ return out;
+}
+
+export function bestByPerspective(
+ metrics: ComboMetrics[],
+ lang: Lang,
+ opts?: { judge?: boolean },
+): Record<string, string> {
+ const out: Record<string, string> = {};
+ for (const b of bestByPerspectiveDetailed(metrics, lang, opts)) out[b.label] = b.comboId;
+ return out;
+}
+
+// ── compositeScore (opt-in, --score) ────────────────────
+const SCORE_WEIGHTS: { metric: keyof ComboMetrics; dir: Dir; w: number }[] = [
+ { metric: "accuracy", dir: "max", w: 0.4 },
+ { metric: "costUsd", dir: "min", w: 0.15 },
+ { metric: "totalTokens", dir: "min", w: 0.15 },
+ { metric: "wallTimeMs", dir: "min", w: 0.1 },
+ { metric: "toolCalls", dir: "min", w: 0.1 },
+ { metric: "subagentCount", dir: "min", w: 0.1 },
+];
+
+export function compositeScore(metrics: ComboMetrics[]): Record<string, number> {
+ const out: Record<string, number> = {};
+ if (!metrics.length) return out;
+ const ranges = new Map<keyof ComboMetrics, { min: number; max: number }>();
+ for (const { metric } of SCORE_WEIGHTS) {
+ const vals = metrics
+ .map((m) => m[metric])
+ .filter((v): v is number => typeof v === "number" && Number.isFinite(v));
+ if (vals.length) ranges.set(metric, { min: Math.min(...vals), max: Math.max(...vals) });
+ }
+ for (const m of metrics) {
+ let score = 0;
+ let wsum = 0;
+ for (const { metric, dir, w } of SCORE_WEIGHTS) {
+ const r = ranges.get(metric);
+ const v = m[metric];
+ if (!r || typeof v !== "number" || !Number.isFinite(v)) continue;
+ const span = r.max - r.min;
+ let norm: number;
+ if (span === 0) norm = 1;
+ else norm = dir === "max" ? (v - r.min) / span : (r.max - v) / span;
+ score += norm * w;
+ wsum += w;
+ }
+ out[m.comboId] = wsum ? round4(score / wsum) : 0;
+ }
+ return out;
+}
diff --git a/src/models.ts b/src/models.ts
new file mode 100644
index 0000000..acdc320
--- /dev/null
+++ b/src/models.ts
@@ -0,0 +1,279 @@
+/**
+ * 데이터 계약 (PRD §3). 순수 타입 + 외부 JSON 파싱용 zod 스키마.
+ * 로직/IO 없음 — 모든 모듈이 여기서 import 한다.
+ */
+import { z } from "zod";
+
+// ─────────────────────────────────────────────────────────────
+// 공통
+// ─────────────────────────────────────────────────────────────
+export type Family = "claude" | "gpt";
+export type Lang = "en" | "kr";
+export type CostSource = "actual" | "estimated" | "none";
+export type EventKind = "assistant" | "tool_use" | "subagent" | "result";
+export type Status = "success" | "fail";
+
+// ─────────────────────────────────────────────────────────────
+// L0×L1×L2 조합
+// ─────────────────────────────────────────────────────────────
+export interface Combo {
+ comboId: string; // `${agent}+${model}+${harness}`
+ agent: string; // L1: 'cc' | 'codex'
+ model: string; // L0 alias 또는 resolved id
+ harness: string; // L2: none|superpowers|omc|ecc|omx|lazycodex
+ valid: boolean;
+ excludeReason?: string | null;
+}
+
+// ─────────────────────────────────────────────────────────────
+// (combo, task, run_idx) 당 1개 결과
+// ─────────────────────────────────────────────────────────────
+export interface RunResult {
+ comboId: string;
+ taskId: string;
+ runIdx: number;
+ success: boolean; // 실행 완료(에러/타임아웃 아님). 품질 pass/fail 아님
+ resolved?: boolean | null; // 숨은 검증 통과 — null=미채점
+ resultPath: string;
+ inputTokens: number;
+ outputTokens: number;
+ cacheReadTokens: number;
+ cacheCreationTokens: number;
+ totalTokens: number; // tie-break #2
+ costUsd: number | null; // 단가 미상 모델은 null
+ estimatedCostUsd: number | null;
+ costSource: CostSource;
+ latencyMs: number;
+ wallTimeMs: number; // wall = tie-break #3
+ numTurns: number;
+ toolCalls: number;
+ subagentCount: number; // ★ 1순위 정렬키
+ skillFires: number;
+ mcpCalls: number;
+ sessionId: string;
+ transcriptPath: string;
+ model: string;
+ qualityScore: number | null; // (opt-in) LLM-judge 0~10
+ error?: string | null;
+}
+
+// ─────────────────────────────────────────────────────────────
+// Transcript
+// ─────────────────────────────────────────────────────────────
+export interface TranscriptEvent {
+ idx: number;
+ tsMs: number;
+ endMs: number;
+ durationMs: number;
+ kind: EventKind;
+ name: string | null;
+ parentIdx: number | null; // 중첩(서브에이전트 트리) 링크
+ inputTokens: number;
+ outputTokens: number;
+ cacheReadTokens: number;
+ cacheCreationTokens: number;
+ summaryIn: string;
+ summaryOut: string;
+ status: Status;
+ isSidechain: boolean;
+ // 세분화
+ toolCalls: number;
+ skillFires: number;
+ toolsUsed: string[]; // ['Read×3','Bash×5']
+ skillsUsed: string[];
+ steps: string[];
+ logText: string;
+}
+
+export interface ParsedTranscript {
+ agent: "cc" | "codex";
+ events: TranscriptEvent[];
+ sessionId: string;
+ model: string;
+ numTurns: number;
+ toolCalls: number;
+ subagentCount: number;
+ skillFires: number;
+ mcpCalls: number;
+ inputTokens: number;
+ outputTokens: number;
+ cacheReadTokens: number;
+ cacheCreationTokens: number;
+ totalTokens: number;
+ latencyMs: number;
+ skillsUsed: string[];
+ toolsUsed: string[];
+ steps: string[];
+}
+
+// ─────────────────────────────────────────────────────────────
+// Flow graph
+// ─────────────────────────────────────────────────────────────
+export interface FlowNode {
+ id: string;
+ label: string;
+ startMs: number;
+ endMs: number;
+ durationMs: number;
+ summaryIn: string;
+ summaryOut: string;
+ status: Status;
+ tokens: number;
+ toolCalls: number;
+ costUsd: number;
+ depth: number;
+ highlight: boolean;
+ harness: string;
+ isMain: boolean;
+ skillsUsed: string[];
+ toolsUsed: string[];
+ steps: string[];
+ logText: string;
+}
+export interface FlowEdge {
+ src: string;
+ dst: string;
+ order: number;
+}
+export interface FlowGraph {
+ comboId: string;
+ taskId: string;
+ runIdx: number;
+ nodes: FlowNode[];
+ edges: FlowEdge[];
+}
+
+// ─────────────────────────────────────────────────────────────
+// Runner I/O
+// ─────────────────────────────────────────────────────────────
+export interface RunInvocation {
+ combo: Combo;
+ taskId: string;
+ runIdx: number;
+ workDir: string;
+ timeoutS: number;
+ seed: number;
+ bench: string;
+ instruction?: string;
+}
+
+export interface RawRunArtifact {
+ invocation: RunInvocation;
+ success: boolean;
+ resultPath: string;
+ transcriptPath: string;
+ wallTimeMs: number;
+ rawResolved: boolean | null;
+ totalCostUsd?: number | null;
+ numTurns?: number | null;
+ error?: string | null;
+}
+
+// ─────────────────────────────────────────────────────────────
+// Orchestrator options
+// ─────────────────────────────────────────────────────────────
+export interface RunOptions {
+ models: string[];
+ agents: string[];
+ harnesses: string[];
+ bench: string;
+ tasks: number;
+ runs: number;
+ seed: number;
+ runner: string; // 'auto' | 'mock' | explicit
+ concurrency: number;
+ timeoutS: number;
+ outDir: string;
+ judge: string; // none|heuristic|cc
+ score: boolean;
+ balanced: boolean;
+ language: Lang;
+ failRate?: number; // mock 전용 (테스트)
+}
+
+// ─────────────────────────────────────────────────────────────
+// zod 스키마 — 외부(transcript/headless JSON) 방어적 파싱용
+// ─────────────────────────────────────────────────────────────
+const num = z.number().finite();
+
+/** cc headless `claude -p --output-format json` 결과 */
+export const CcHeadlessSchema = z
+ .object({
+ result: z.string().optional(),
+ total_cost_usd: num.nullable().optional(),
+ num_turns: num.nullable().optional(),
+ session_id: z.string().optional(),
+ is_error: z.boolean().optional(),
+ usage: z
+ .object({
+ input_tokens: num.optional(),
+ output_tokens: num.optional(),
+ cache_read_input_tokens: num.optional(),
+ cache_creation_input_tokens: num.optional(),
+ })
+ .partial()
+ .optional(),
+ })
+ .passthrough();
+export type CcHeadless = z.infer<typeof CcHeadlessSchema>;
+
+/** cc transcript JSONL 한 줄 (방어적: 알 수 없는 필드 허용) */
+export const CcLineSchema = z
+ .object({
+ type: z.string().optional(),
+ uuid: z.string().optional(),
+ parentUuid: z.string().nullable().optional(),
+ isSidechain: z.boolean().optional(),
+ timestamp: z.union([z.string(), z.number()]).optional(),
+ message: z.unknown().optional(),
+ })
+ .passthrough();
+
+/** cc 서브에이전트 meta.json */
+export const CcSubagentMetaSchema = z
+ .object({
+ toolUseId: z.string().optional(),
+ agentId: z.string().optional(),
+ })
+ .passthrough();
+
+/** codex thread-event 한 줄 */
+export const CodexEventSchema = z
+ .object({
+ type: z.string().optional(),
+ // 일부 codex 빌드는 { msg: { type } } 형태
+ msg: z.unknown().optional(),
+ })
+ .passthrough();
+
+/** results.jsonl 한 줄 = RunResult */
+export const RunResultSchema: z.ZodType<RunResult> = z
+ .object({
+ comboId: z.string(),
+ taskId: z.string(),
+ runIdx: num,
+ success: z.boolean(),
+ resolved: z.boolean().nullable().optional(),
+ resultPath: z.string(),
+ inputTokens: num,
+ outputTokens: num,
+ cacheReadTokens: num,
+ cacheCreationTokens: num,
+ totalTokens: num,
+ costUsd: num.nullable(),
+ estimatedCostUsd: num.nullable(),
+ costSource: z.enum(["actual", "estimated", "none"]),
+ latencyMs: num,
+ wallTimeMs: num,
+ numTurns: num,
+ toolCalls: num,
+ subagentCount: num,
+ skillFires: num,
+ mcpCalls: num,
+ sessionId: z.string(),
+ transcriptPath: z.string(),
+ model: z.string(),
+ qualityScore: num.nullable(),
+ error: z.string().nullable().optional(),
+ })
+ .passthrough() as unknown as z.ZodType<RunResult>;
diff --git a/src/orchestrator.ts b/src/orchestrator.ts
new file mode 100644
index 0000000..28860a6
--- /dev/null
+++ b/src/orchestrator.ts
@@ -0,0 +1,241 @@
+/**
+ * 오케스트레이터 (PRD §18).
+ * expand+validate → subset → (조합×task×run) 실행(동시성, fail-soft) → 파서 →
+ * metrics/accuracy/flow → recorder → report+graph 렌더(언어 반영).
+ */
+import { readFileSync } from "node:fs";
+import { join } from "node:path";
+import { difficultyMap, instructionFor, isLocalBench, taskIds } from "./benches/index";
+import { expand, parseComboId } from "./combos";
+import { resolveModelAlias } from "./config";
+import { buildFlow, renderGraphHtml, writeFlowJson } from "./flow";
+import { getJudge } from "./judge";
+import { aggregateAll } from "./metrics";
+import type { Combo, FlowGraph, RunOptions, RunResult } from "./models";
+import { estimateCost, resolveCost } from "./pricing";
+import { Recorder, makeRunId } from "./recorder";
+import { renderReport } from "./report";
+import { MockRunner } from "./runners/mock";
+import { runnerFor } from "./runners/registry";
+import { TerminalBenchRunner } from "./runners/terminalBench";
+import { selectBalanced, selectSubset } from "./subset";
+import { parserFor } from "./transcripts/index";
+
+export interface ExecuteResult {
+ runId: string;
+ runDir: string;
+ reportPath: string;
+ graphPath: string;
+ metrics: ReturnType<typeof aggregateAll>;
+ mock: boolean;
+}
+
+function loadCatalog(bench: string): string[] {
+ if (isLocalBench(bench)) return taskIds(bench);
+ try {
+ return new TerminalBenchRunner().loadTaskCatalog(bench);
+ } catch {
+ return new MockRunner().loadTaskCatalog(bench);
+ }
+}
+
+async function pool<T>(items: T[], size: number, fn: (item: T) => Promise<void>): Promise<void> {
+ const n = Math.max(1, size);
+ let i = 0;
+ const workers = Array.from({ length: Math.min(n, items.length || 1) }, async () => {
+ while (i < items.length) {
+ const idx = i++;
+ await fn(items[idx]!);
+ }
+ });
+ await Promise.all(workers);
+}
+
+interface Job {
+ combo: Combo;
+ taskId: string;
+ runIdx: number;
+}
+
+export async function execute(opts: RunOptions): Promise<ExecuteResult> {
+ const { valid, excluded } = expand(opts.models, opts.agents, opts.harnesses);
+
+ // subset
+ const catalog = loadCatalog(opts.bench);
+ const tasks = opts.balanced
+ ? selectBalanced(catalog, opts.tasks, opts.seed, difficultyMap(opts.bench))
+ : selectSubset(catalog, opts.tasks, opts.seed);
+
+ const runId = makeRunId();
+ const recorder = new Recorder(opts.outDir, runId);
+ const judge = getJudge(opts.judge);
+
+ // jobs
+ const jobs: Job[] = [];
+ for (const combo of valid)
+ for (const taskId of tasks)
+ for (let runIdx = 0; runIdx < Math.max(1, opts.runs); runIdx++)
+ jobs.push({ combo, taskId, runIdx });
+
+ const results: RunResult[] = [];
+ const graphs: FlowGraph[] = [];
+ let anyMock = opts.runner === "mock";
+
+ await pool(jobs, opts.concurrency, async (job) => {
+ const { combo, taskId, runIdx } = job;
+ const { agent, model } = parseComboId(combo.comboId);
+ const choice = runnerFor(agent, opts.runner, { bench: opts.bench }, opts.failRate ?? 0);
+ if (choice.mock) anyMock = true;
+
+ const workDir = recorder.workDir(combo.comboId, taskId, runIdx);
+ const inv = {
+ combo,
+ taskId,
+ runIdx,
+ workDir,
+ timeoutS: opts.timeoutS,
+ seed: opts.seed,
+ bench: opts.bench,
+ instruction: instructionFor(taskId),
+ };
+
+ let artifact: Awaited<ReturnType<typeof choice.runner.run>>;
+ try {
+ artifact = await choice.runner.run(inv);
+ } catch (e) {
+ // 계약상 throw 금지지만 방어적으로 fail-soft 결과 생성
+ artifact = {
+ invocation: inv,
+ success: false,
+ resultPath: join(workDir, "output.txt"),
+ transcriptPath: join(workDir, "transcript.jsonl"),
+ wallTimeMs: 0,
+ rawResolved: null,
+ totalCostUsd: null,
+ numTurns: null,
+ error: `runner threw: ${(e as Error).message}`,
+ };
+ }
+
+ const parsed = parserFor(agent).parse(artifact.transcriptPath, {
+ model: resolveModelAlias(model),
+ });
+
+ const estimated = estimateCost(
+ model,
+ parsed.inputTokens,
+ parsed.outputTokens,
+ parsed.cacheReadTokens,
+ parsed.cacheCreationTokens,
+ );
+ const { costUsd, costSource } = resolveCost(
+ model,
+ parsed.inputTokens,
+ parsed.outputTokens,
+ parsed.cacheReadTokens,
+ parsed.cacheCreationTokens,
+ artifact.totalCostUsd,
+ );
+
+ let qualityScore: number | null = null;
+ if (judge) {
+ let text = "";
+ try {
+ text = readFileSync(artifact.resultPath, "utf8");
+ } catch {
+ // ignore
+ }
+ qualityScore = await judge.score(text, inv.instruction);
+ }
+
+ const result: RunResult = {
+ comboId: combo.comboId,
+ taskId,
+ runIdx,
+ success: artifact.success,
+ resolved: artifact.rawResolved,
+ resultPath: artifact.resultPath,
+ inputTokens: parsed.inputTokens,
+ outputTokens: parsed.outputTokens,
+ cacheReadTokens: parsed.cacheReadTokens,
+ cacheCreationTokens: parsed.cacheCreationTokens,
+ totalTokens: parsed.totalTokens,
+ costUsd,
+ estimatedCostUsd: estimated,
+ costSource,
+ latencyMs: parsed.latencyMs || artifact.wallTimeMs,
+ wallTimeMs: artifact.wallTimeMs,
+ numTurns: artifact.numTurns ?? parsed.numTurns,
+ toolCalls: parsed.toolCalls,
+ subagentCount: parsed.subagentCount,
+ skillFires: parsed.skillFires,
+ mcpCalls: parsed.mcpCalls,
+ sessionId: parsed.sessionId,
+ transcriptPath: artifact.transcriptPath,
+ model: resolveModelAlias(model),
+ qualityScore,
+ error: artifact.error ?? null,
+ };
+ results.push(result);
+ recorder.appendResult(result);
+
+ // flow
+ const totalTok = parsed.totalTokens || 1;
+ const costForFlow = costUsd ?? estimated ?? 0;
+ const graph = buildFlow(parsed, combo.comboId, taskId, runIdx, {
+ harness: parseComboId(combo.comboId).harness,
+ costPerToken: costForFlow / totalTok,
+ success: artifact.success,
+ error: artifact.error,
+ });
+ writeFlowJson(graph, join(workDir, "flow.json"));
+ if (runIdx === 0) graphs.push(graph); // 리포트엔 run0 대표 그래프
+ });
+
+ // metrics & accuracy
+ const metrics = aggregateAll(results);
+ for (const m of metrics) recorder.writeAccuracy(m.comboId, m);
+
+ // meta
+ recorder.writeMeta({
+ runId,
+ bench: opts.bench,
+ tasks,
+ seed: opts.seed,
+ runs: opts.runs,
+ runner: opts.runner,
+ excluded,
+ createdAt: new Date().toISOString(),
+ language: opts.language,
+ mock: anyMock,
+ });
+
+ // report + graph
+ renderReport(
+ {
+ metrics,
+ graphs,
+ results,
+ excluded,
+ tasks,
+ bench: opts.bench,
+ language: opts.language,
+ judge: judge !== null,
+ score: opts.score,
+ mock: anyMock,
+ },
+ recorder.reportPath,
+ );
+ renderGraphHtml(graphs, recorder.graphPath, { language: opts.language });
+
+ await recorder.finalizeSqlite(results);
+
+ return {
+ runId,
+ runDir: recorder.runDir,
+ reportPath: recorder.reportPath,
+ graphPath: recorder.graphPath,
+ metrics,
+ mock: anyMock,
+ };
+}
diff --git a/src/preflight.ts b/src/preflight.ts
new file mode 100644
index 0000000..881afe9
--- /dev/null
+++ b/src/preflight.ts
@@ -0,0 +1,67 @@
+import { isKnownModel, modelFamily } from "./config";
+import { codexHomeStatus, harnessStatus } from "./harness";
+/**
+ * 사전점검 & 게이트 (PRD §15).
+ * 유효/제외 조합 + 휴리스틱 경고 + 실행 규모 + real-run 게이트.
+ */
+import type { Combo } from "./models";
+
+export interface PreflightInput {
+ bench: string;
+ runner: string;
+ tasks: number;
+ runs: number;
+}
+
+export interface PreflightResult {
+ valid: Combo[];
+ excluded: Combo[];
+ warnings: string[];
+ scale: number; // combos × tasks × runs
+ isReal: boolean;
+ gateBlocked: boolean; // real & scale>30 & !yes
+}
+
+const REAL_GATE = 30;
+
+export function analyze(
+ _models: string[],
+ _agents: string[],
+ _harnesses: string[],
+ valid: Combo[],
+ excluded: Combo[],
+ opts: PreflightInput & { yes?: boolean },
+): PreflightResult {
+ const warnings: string[] = [];
+
+ // 미등록 모델 alias
+ for (const c of valid) {
+ if (!isKnownModel(c.model))
+ warnings.push(`unregistered model alias '${c.model}' (combo ${c.comboId})`);
+ }
+
+ // codex + 명시 gpt 모델(ChatGPT 계정 거부 가능)
+ for (const c of valid) {
+ if (c.agent === "codex" && modelFamily(c.model) === "gpt" && c.model !== "gpt5-codex") {
+ warnings.push(
+ `codex with explicit model '${c.model}': ChatGPT account may reject --model override; consider gpt5-codex`,
+ );
+ }
+ }
+
+ // 미설치 하네스 → base
+ const harnessesSeen = new Set(valid.map((c) => c.harness));
+ for (const h of harnessesSeen) {
+ if (h === "none") continue;
+ if (harnessStatus(h) === "unavailable")
+ warnings.push(`harness '${h}' not installed → falls back to base (none)`);
+ if (codexHomeStatus(h) === "pending")
+ warnings.push(`codex harness '${h}' isolated CODEX_HOME not built (first run ~20s)`);
+ }
+
+ const isReal = opts.runner !== "mock";
+ const scale = valid.length * Math.max(0, opts.tasks) * Math.max(1, opts.runs);
+ const gateBlocked = isReal && scale > REAL_GATE && !opts.yes;
+
+ return { valid, excluded, warnings, scale, isReal, gateBlocked };
+}
diff --git a/src/pricing.ts b/src/pricing.ts
new file mode 100644
index 0000000..46d17ff
--- /dev/null
+++ b/src/pricing.ts
@@ -0,0 +1,74 @@
+/**
+ * 비용 모델 (PRD §12 / §22 보조).
+ * estimateCost → number | null. 단가 미상이면 null("미수집"), 절대 0/추측 금지.
+ * 단가는 1M 토큰당 USD.
+ */
+import { MODELS, resolveModelAlias } from "./config";
+
+interface Rate {
+ input: number;
+ output: number;
+ cacheRead: number;
+ cacheCreate: number;
+}
+
+// resolved id → 1M 토큰당 USD. 미상 모델은 누락(=> null).
+const PRICES: Record<string, Rate> = {
+ "claude-opus-4-8": { input: 15, output: 75, cacheRead: 1.5, cacheCreate: 18.75 },
+ "claude-opus-4-7": { input: 15, output: 75, cacheRead: 1.5, cacheCreate: 18.75 },
+ "claude-opus-4-6": { input: 15, output: 75, cacheRead: 1.5, cacheCreate: 18.75 },
+ "claude-sonnet-4-6": { input: 3, output: 15, cacheRead: 0.3, cacheCreate: 3.75 },
+ "claude-sonnet-4-5": { input: 3, output: 15, cacheRead: 0.3, cacheCreate: 3.75 },
+ "claude-haiku-4-5": { input: 1, output: 5, cacheRead: 0.1, cacheCreate: 1.25 },
+ // gpt 계열 — ChatGPT 구독제는 실청구 없음 → API 공시 단가로 "추정"
+ "gpt-5.5": { input: 1.25, output: 10, cacheRead: 0.125, cacheCreate: 1.25 },
+ "gpt-5.1-codex": { input: 1.25, output: 10, cacheRead: 0.125, cacheCreate: 1.25 },
+ // 'default'(gpt5-codex 계정 기본)·fable5 는 단가 미상 → null
+};
+
+function rateFor(model: string): Rate | null {
+ const resolved = MODELS[model]?.resolvedId ?? resolveModelAlias(model);
+ return PRICES[resolved] ?? PRICES[model] ?? null;
+}
+
+export function estimateCost(
+ model: string,
+ inputTokens: number,
+ outputTokens: number,
+ cacheReadTokens = 0,
+ cacheCreationTokens = 0,
+): number | null {
+ const rate = rateFor(model);
+ if (!rate) return null;
+ const cost =
+ (inputTokens * rate.input +
+ outputTokens * rate.output +
+ cacheReadTokens * rate.cacheRead +
+ cacheCreationTokens * rate.cacheCreate) /
+ 1_000_000;
+ return Math.round(cost * 1e6) / 1e6;
+}
+
+export function hasPricing(model: string): boolean {
+ return rateFor(model) !== null;
+}
+
+/**
+ * 비용 출처 우선순위 (PRD §12): 실측 > 추정 > none.
+ * 실측 total_cost_usd 가 있으면 actual, 없으면 단가맵 추정, 둘 다 없으면 none(null).
+ */
+export function resolveCost(
+ model: string,
+ inputTokens: number,
+ outputTokens: number,
+ cacheReadTokens: number,
+ cacheCreationTokens: number,
+ actualCostUsd: number | null | undefined,
+): { costUsd: number | null; costSource: "actual" | "estimated" | "none" } {
+ if (actualCostUsd !== null && actualCostUsd !== undefined && Number.isFinite(actualCostUsd)) {
+ return { costUsd: actualCostUsd, costSource: "actual" };
+ }
+ const est = estimateCost(model, inputTokens, outputTokens, cacheReadTokens, cacheCreationTokens);
+ if (est !== null) return { costUsd: est, costSource: "estimated" };
+ return { costUsd: null, costSource: "none" };
+}
diff --git a/src/recorder.ts b/src/recorder.ts
new file mode 100644
index 0000000..dd5799a
--- /dev/null
+++ b/src/recorder.ts
@@ -0,0 +1,149 @@
+/**
+ * 산출/기록 (PRD §14). run 디렉터리 레이아웃 + JSONL(1차 소스) + SQLite(질의 캐시, optional).
+ */
+import {
+ appendFileSync,
+ existsSync,
+ mkdirSync,
+ readFileSync,
+ readdirSync,
+ writeFileSync,
+} from "node:fs";
+import { join } from "node:path";
+import type { ComboMetrics } from "./metrics";
+import type { Combo, Lang, RunResult } from "./models";
+import { RunResultSchema } from "./models";
+
+export interface RunMeta {
+ runId: string;
+ bench: string;
+ tasks: string[];
+ seed: number;
+ runs: number;
+ runner: string;
+ excluded: Combo[];
+ createdAt: string;
+ language: Lang;
+ mock: boolean;
+}
+
+export function makeRunId(date = new Date()): string {
+ const p = (n: number, w = 2) => String(n).padStart(w, "0");
+ return (
+ `${date.getUTCFullYear()}${p(date.getUTCMonth() + 1)}${p(date.getUTCDate())}-` +
+ `${p(date.getUTCHours())}${p(date.getUTCMinutes())}${p(date.getUTCSeconds())}-` +
+ `${p(date.getUTCMilliseconds(), 3)}`
+ );
+}
+
+function safe(s: string): string {
+ return s.replace(/[^A-Za-z0-9._+-]/g, "_");
+}
+
+export class Recorder {
+ readonly runDir: string;
+ private resultsFile: string;
+
+ constructor(
+ private outDir: string,
+ readonly runId: string,
+ ) {
+ this.runDir = join(outDir, runId);
+ mkdirSync(this.runDir, { recursive: true });
+ this.resultsFile = join(this.runDir, "results.jsonl");
+ }
+
+ workDir(comboId: string, taskId: string, runIdx: number): string {
+ const d = join(this.runDir, "work", safe(comboId), safe(taskId), String(runIdx));
+ mkdirSync(d, { recursive: true });
+ return d;
+ }
+
+ writeMeta(meta: RunMeta): void {
+ writeFileSync(join(this.runDir, "meta.json"), JSON.stringify(meta, null, 2));
+ }
+
+ appendResult(r: RunResult): void {
+ appendFileSync(this.resultsFile, `${JSON.stringify(r)}\n`);
+ }
+
+ writeAccuracy(comboId: string, m: ComboMetrics): void {
+ const dir = join(this.runDir, "accuracy");
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(join(dir, `${safe(comboId)}.json`), JSON.stringify(m, null, 2));
+ }
+
+ get reportPath(): string {
+ return join(this.runDir, "report.html");
+ }
+ get graphPath(): string {
+ return join(this.runDir, "graph.html");
+ }
+
+ /** SQLite 질의 캐시(optional). 네이티브 미설치면 조용히 skip — JSONL 이 1차 소스. */
+ async finalizeSqlite(results: RunResult[]): Promise<boolean> {
+ try {
+ const mod = await import("better-sqlite3");
+ const Database = mod.default;
+ const db = new Database(join(this.runDir, "theseus.sqlite"));
+ db.exec(`CREATE TABLE IF NOT EXISTS results (
+ comboId TEXT, taskId TEXT, runIdx INTEGER, success INTEGER, resolved INTEGER,
+ totalTokens INTEGER, costUsd REAL, costSource TEXT, wallTimeMs INTEGER,
+ subagentCount INTEGER, toolCalls INTEGER, skillFires INTEGER, mcpCalls INTEGER,
+ model TEXT, qualityScore REAL
+ )`);
+ const stmt = db.prepare(`INSERT INTO results VALUES
+ (@comboId,@taskId,@runIdx,@success,@resolved,@totalTokens,@costUsd,@costSource,
+ @wallTimeMs,@subagentCount,@toolCalls,@skillFires,@mcpCalls,@model,@qualityScore)`);
+ const tx = db.transaction((rows: RunResult[]) => {
+ for (const r of rows)
+ stmt.run({
+ ...r,
+ success: r.success ? 1 : 0,
+ resolved: r.resolved === true ? 1 : r.resolved === false ? 0 : null,
+ });
+ });
+ tx(results);
+ db.close();
+ return true;
+ } catch {
+ return false; // fail-soft
+ }
+ }
+}
+
+// ── results 커맨드용 로더 ─────────────────────────────────
+export function listRuns(outDir: string): string[] {
+ if (!existsSync(outDir)) return [];
+ return readdirSync(outDir)
+ .filter((d) => existsSync(join(outDir, d, "meta.json")))
+ .sort()
+ .reverse();
+}
+
+export function loadResults(outDir: string, runId: string): RunResult[] {
+ const file = join(outDir, runId, "results.jsonl");
+ if (!existsSync(file)) return [];
+ const out: RunResult[] = [];
+ for (const line of readFileSync(file, "utf8").split("\n")) {
+ const s = line.trim();
+ if (!s) continue;
+ try {
+ const parsed = RunResultSchema.safeParse(JSON.parse(s));
+ if (parsed.success) out.push(parsed.data);
+ } catch {
+ // skip
+ }
+ }
+ return out;
+}
+
+export function loadMeta(outDir: string, runId: string): RunMeta | null {
+ const file = join(outDir, runId, "meta.json");
+ if (!existsSync(file)) return null;
+ try {
+ return JSON.parse(readFileSync(file, "utf8")) as RunMeta;
+ } catch {
+ return null;
+ }
+}
diff --git a/src/report.ts b/src/report.ts
new file mode 100644
index 0000000..d64fde9
--- /dev/null
+++ b/src/report.ts
@@ -0,0 +1,314 @@
+/**
+ * 리포트 (PRD §14, §22.3). self-contained HTML(외부 JS/CDN 0, 모든 외부 입력 escape) + 산점도 SVG.
+ * 섹션 0 관점별 최적 · 0.5 종합점수(opt-in) · 1 정확도 · 2 효율 · 3 가성비 산점도 ·
+ * 4 task 매트릭스 · 5 흐름 그래프(+토글) · 6 실패 원인 · 7 미수집 지표.
+ */
+import { writeFileSync } from "node:fs";
+import { DETAILS_CSS, esc, graphSection } from "./flow";
+import { tr } from "./i18n";
+import type { ComboMetrics } from "./metrics";
+import { bestByPerspectiveDetailed, compositeScore, sortCombos } from "./metrics";
+import type { Combo, FlowGraph, Lang, RunResult } from "./models";
+
+export interface ReportInput {
+ metrics: ComboMetrics[];
+ graphs: FlowGraph[];
+ results: RunResult[];
+ excluded: Combo[];
+ tasks: string[];
+ bench: string;
+ language: Lang;
+ judge: boolean;
+ score: boolean;
+ mock: boolean;
+}
+
+const COST_MARK = { actual: "✓", estimated: "~", none: "" } as const;
+
+function fmtMetric(metric: keyof ComboMetrics, v: number): string {
+ switch (metric) {
+ case "accuracy":
+ case "accuracyAtK":
+ return `${v.toFixed(1)}%`;
+ case "costUsd":
+ case "estimatedCostUsd":
+ return `$${v.toFixed(4)}`;
+ case "wallTimeMs":
+ return `${(v / 1000).toFixed(1)}s`;
+ case "totalTokens":
+ return v.toLocaleString("en-US");
+ case "qualityScore":
+ return `${v.toFixed(1)}/10`;
+ default:
+ return String(Math.round(v * 100) / 100);
+ }
+}
+
+function th(cells: string[]): string {
+ return `<tr>${cells.map((c) => `<th>${esc(c)}</th>`).join("")}</tr>`;
+}
+function td(cells: string[], cls: (i: number) => string = () => ""): string {
+ return `<tr>${cells.map((c, i) => `<td class="${cls(i)}">${c}</td>`).join("")}</tr>`;
+}
+
+function section(title: string, body: string): string {
+ return `<section><h2>${esc(title)}</h2>${body}</section>`;
+}
+
+// ── 산점도 ───────────────────────────────────────────────
+function renderScatter(metrics: ComboMetrics[], lang: Lang): string {
+ const pts = metrics.filter((m) => m.costUsd !== null && Number.isFinite(m.costUsd));
+ if (!pts.length) return `<p>${esc(tr(lang, "uncollected_note"))}</p>`;
+ const W = 520;
+ const H = 320;
+ const pad = 50;
+ const costs = pts.map((m) => m.costUsd!);
+ const maxCost = Math.max(...costs, 0.0001);
+ const xf = (c: number) => pad + (c / maxCost) * (W - 2 * pad);
+ const yf = (a: number) => H - pad - (a / 100) * (H - 2 * pad);
+ const colors = ["#7c3aed", "#0ea5e9", "#10b981", "#f59e0b", "#ef4444", "#64748b", "#db2777"];
+ const parts: string[] = [];
+ parts.push(
+ `<svg viewBox="0 0 ${W + 180} ${H}" width="${W + 180}" height="${H}" xmlns="http://www.w3.org/2000/svg" font-family="system-ui,sans-serif">`,
+ );
+ parts.push(
+ `<line x1="${pad}" y1="${H - pad}" x2="${W - pad}" y2="${H - pad}" stroke="#94a3b8"/>`,
+ );
+ parts.push(`<line x1="${pad}" y1="${pad}" x2="${pad}" y2="${H - pad}" stroke="#94a3b8"/>`);
+ parts.push(
+ `<text x="${W / 2}" y="${H - 12}" font-size="11" text-anchor="middle" fill="#475569">${esc(tr(lang, "col_cost"))} ($)</text>`,
+ );
+ parts.push(
+ `<text x="14" y="${H / 2}" font-size="11" text-anchor="middle" fill="#475569" transform="rotate(-90 14 ${H / 2})">${esc(tr(lang, "col_acc"))} (%)</text>`,
+ );
+ pts.forEach((m, i) => {
+ const color = colors[i % colors.length]!;
+ parts.push(
+ `<circle cx="${xf(m.costUsd!).toFixed(1)}" cy="${yf(m.accuracy).toFixed(1)}" r="6" fill="${color}" opacity="0.8"/>`,
+ );
+ parts.push(
+ `<text x="${W - pad + 14}" y="${pad + 8 + i * 16}" font-size="10" fill="#334155"><tspan fill="${color}">●</tspan> ${esc(m.comboId)}</text>`,
+ );
+ });
+ parts.push("</svg>");
+ return `<div class="svg-wrap">${parts.join("")}</div>`;
+}
+
+export function renderReportHtml(input: ReportInput): string {
+ const { language: lang } = input;
+ const sorted = sortCombos(input.metrics);
+ const blocks: string[] = [];
+
+ if (input.mock) {
+ blocks.push(`<div class="banner mock">${esc(tr(lang, "mock_banner"))}</div>`);
+ }
+
+ // 0. 관점별 최적
+ {
+ const best = bestByPerspectiveDetailed(input.metrics, lang, { judge: input.judge });
+ const rows = best
+ .map((b) =>
+ td([esc(b.label), `<code>${esc(b.comboId)}</code>`, fmtMetric(b.metric, b.value)]),
+ )
+ .join("");
+ blocks.push(
+ section(
+ tr(lang, "sec_best"),
+ `<table>${th([tr(lang, "col_perspective"), tr(lang, "col_combo"), tr(lang, "col_value")])}${rows}</table>`,
+ ),
+ );
+ }
+
+ // 0.5 종합점수 (opt-in)
+ if (input.score) {
+ const scores = compositeScore(input.metrics);
+ const rows = Object.entries(scores)
+ .sort((a, b) => b[1] - a[1])
+ .map(([id, s]) => td([`<code>${esc(id)}</code>`, s.toFixed(4)]))
+ .join("");
+ blocks.push(
+ section(
+ tr(lang, "sec_score"),
+ `<table>${th([tr(lang, "col_combo"), "score"])}${rows}</table>`,
+ ),
+ );
+ }
+
+ // 1. 정확도
+ {
+ const rows = sorted
+ .map((m) =>
+ td([
+ `<code>${esc(m.comboId)}</code>`,
+ `${m.accuracy.toFixed(1)}%`,
+ `${m.accuracyAtK.toFixed(1)}%`,
+ ]),
+ )
+ .join("");
+ blocks.push(
+ section(
+ tr(lang, "sec_accuracy"),
+ `<table>${th([tr(lang, "col_combo"), "accuracy", "accuracy@k"])}${rows}</table>`,
+ ),
+ );
+ }
+
+ // 2. 효율 (combo-id · subagents · total tok · cost · est.cost · Δcost · wall · turns · tool calls)
+ {
+ const minSub = Math.min(...sorted.map((m) => m.subagentCount));
+ const minTok = Math.min(...sorted.map((m) => m.totalTokens));
+ const minWall = Math.min(...sorted.map((m) => m.wallTimeMs));
+ const rows = sorted
+ .map((m) => {
+ const cost =
+ m.costUsd === null
+ ? `<span class="muted">${esc(tr(lang, "uncollected_note"))}</span>`
+ : `${COST_MARK[m.costSource]}$${m.costUsd.toFixed(4)}`;
+ const est = m.estimatedCostUsd === null ? "—" : `$${m.estimatedCostUsd.toFixed(4)}`;
+ const delta =
+ m.costUsd !== null && m.estimatedCostUsd !== null
+ ? `$${(m.costUsd - m.estimatedCostUsd).toFixed(4)}`
+ : "—";
+ return td(
+ [
+ `<code>${esc(m.comboId)}</code>`,
+ String(m.subagentCount),
+ m.totalTokens.toLocaleString("en-US"),
+ cost,
+ est,
+ delta,
+ `${(m.wallTimeMs / 1000).toFixed(1)}s`,
+ String(m.numTurns),
+ String(m.toolCalls),
+ ],
+ (i) => {
+ if (i === 1 && m.subagentCount === minSub) return "best";
+ if (i === 2 && m.totalTokens === minTok) return "best";
+ if (i === 6 && m.wallTimeMs === minWall) return "best";
+ return "";
+ },
+ );
+ })
+ .join("");
+ blocks.push(
+ section(
+ tr(lang, "sec_efficiency"),
+ `<table>${th(["combo-id", "subagents", "total tok", "cost", "est.cost", "Δcost", "wall", "turns", "tool calls"])}${rows}</table>`,
+ ),
+ );
+ }
+
+ // 3. 산점도
+ blocks.push(section(tr(lang, "sec_scatter"), renderScatter(input.metrics, lang)));
+
+ // 4. task 매트릭스
+ {
+ const head = th([tr(lang, "col_combo"), ...input.tasks]);
+ const rows = sorted
+ .map((m) => {
+ const cells = input.tasks.map((t) => {
+ const pt = m.perTask[t];
+ if (!pt) return `<td class="na">·</td>`;
+ return pt.resolved ? `<td class="pass">✓</td>` : `<td class="failc">✗</td>`;
+ });
+ return `<tr><td><code>${esc(m.comboId)}</code></td>${cells.join("")}</tr>`;
+ })
+ .join("");
+ blocks.push(section(tr(lang, "sec_matrix"), `<table class="matrix">${head}${rows}</table>`));
+ }
+
+ // 5. 흐름 그래프
+ {
+ const g = input.graphs.map((gr) => graphSection(gr, lang)).join("\n");
+ blocks.push(section(tr(lang, "sec_flow"), g || "<p>—</p>"));
+ }
+
+ // 6. 실패 task & 원인
+ {
+ const fails = input.results.filter((r) => !r.success || r.resolved === false);
+ const rows = fails
+ .slice(0, 200)
+ .map((r) =>
+ td([
+ `<code>${esc(r.comboId)}</code>`,
+ esc(r.taskId),
+ r.success ? "resolved=false" : "success=false",
+ esc(r.error ?? ""),
+ ]),
+ )
+ .join("");
+ blocks.push(
+ section(
+ tr(lang, "sec_failures"),
+ fails.length
+ ? `<table>${th([tr(lang, "col_combo"), "task", "kind", "error"])}${rows}</table>`
+ : "<p>—</p>",
+ ),
+ );
+ }
+
+ // 7. 미수집 지표
+ {
+ const rows = sorted
+ .filter((m) => m.costUsd === null || m.qualityScore === null)
+ .map((m) =>
+ td([
+ `<code>${esc(m.comboId)}</code>`,
+ m.costUsd === null ? "cost" : "",
+ m.qualityScore === null ? "quality" : "",
+ ]),
+ )
+ .join("");
+ blocks.push(
+ section(
+ tr(lang, "sec_uncollected"),
+ `<p>${esc(tr(lang, "uncollected_note"))}</p>${
+ rows
+ ? `<table>${th([tr(lang, "col_combo"), "null#1", "null#2"])}${rows}</table>`
+ : "<p>—</p>"
+ }`,
+ ),
+ );
+ }
+
+ // 제외 조합
+ if (input.excluded.length) {
+ const rows = input.excluded
+ .map((c) => td([`<code>${esc(c.comboId)}</code>`, esc(c.excludeReason ?? "")]))
+ .join("");
+ blocks.push(
+ section(
+ tr(lang, "excluded_combos"),
+ `<table>${th([tr(lang, "col_combo"), "reason"])}${rows}</table>`,
+ ),
+ );
+ }
+
+ return `<!doctype html><html lang="${lang}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
+<title>theseus — ${esc(tr(lang, "results_table"))}</title>
+<style>
+body{font-family:ui-sans-serif,system-ui,sans-serif;background:#f8fafc;color:#0f172a;margin:0;padding:24px;line-height:1.45}
+h1{font-size:22px}h2{font-size:16px;border-bottom:2px solid #e2e8f0;padding-bottom:4px;margin-top:28px}
+table{border-collapse:collapse;margin:8px 0;font-size:13px;background:#fff}
+th,td{border:1px solid #e2e8f0;padding:5px 9px;text-align:left}
+th{background:#f1f5f9}
+code{font-family:ui-monospace,monospace;font-size:12px}
+.best{background:#dcfce7;font-weight:600}
+.pass{background:#dcfce7;text-align:center;color:#15803d}
+.failc{background:#fee2e2;text-align:center;color:#b91c1c}
+.na{text-align:center;color:#cbd5e1}
+.muted{color:#94a3b8}
+.banner.mock{background:#fef3c7;border:1px solid #f59e0b;color:#92400e;padding:8px 12px;border-radius:8px;margin-bottom:12px;font-weight:600}
+.dike-graph{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px;margin:12px 0;overflow:auto}
+.dike-graph h3{font-size:13px;margin:0 0 8px}
+.svg-wrap{overflow:auto}
+${DETAILS_CSS}
+</style></head><body>
+<h1>theseus — ${esc(tr(lang, "results_table"))} <span class="muted">(${esc(input.bench)})</span></h1>
+${blocks.join("\n")}
+</body></html>`;
+}
+
+export function renderReport(input: ReportInput, path: string): void {
+ writeFileSync(path, renderReportHtml(input));
+}
diff --git a/src/runners/base.ts b/src/runners/base.ts
new file mode 100644
index 0000000..43d6270
--- /dev/null
+++ b/src/runners/base.ts
@@ -0,0 +1,22 @@
+/**
+ * RunnerAdapter 계약 (PRD §7).
+ * run() 은 task 실패/타임아웃/IO 오류에 **예외를 던지지 않고** success:false 를 반환하며,
+ * 항상 output.txt 와 transcript.jsonl 을 남긴다(fail-soft).
+ */
+import type { RawRunArtifact, RunInvocation } from "../models";
+
+export class RunnerUnavailable extends Error {
+ constructor(message: string) {
+ super(message);
+ this.name = "RunnerUnavailable";
+ }
+}
+
+export interface RunnerAdapter {
+ name: string;
+ isAvailable(): boolean;
+ /** 미지원 벤치 → RunnerUnavailable throw */
+ loadTaskCatalog(bench: string): string[];
+ /** ★ task 실패에 throw 금지 */
+ run(inv: RunInvocation): Promise<RawRunArtifact>;
+}
diff --git a/src/runners/claudeCode.ts b/src/runners/claudeCode.ts
new file mode 100644
index 0000000..e91016b
--- /dev/null
+++ b/src/runners/claudeCode.ts
@@ -0,0 +1,136 @@
+/**
+ * Claude Code 러너 (PRD §7).
+ * `claude -p "<instruction>" --output-format json --model <id> --dangerously-skip-permissions [--plugin-dir <harness>]`
+ * 세션 transcript + subagents/ 를 work_dir 로 복사. 끝나면 verify(taskId, work) 로 resolved.
+ * fail-soft: 절대 throw 금지, 항상 output.txt + transcript.jsonl.
+ */
+import { copyFileSync, existsSync, mkdirSync, readdirSync, writeFileSync } from "node:fs";
+import { homedir } from "node:os";
+import { join } from "node:path";
+import { instructionFor, isLocalBench, setupTask, taskIds, verify } from "../benches/index";
+import { parseComboId } from "../combos";
+import { resolveModelAlias } from "../config";
+import { harnessClaudeArgs } from "../harness";
+import { CcHeadlessSchema, type RawRunArtifact, type RunInvocation } from "../models";
+import { type RunnerAdapter, RunnerUnavailable } from "./base";
+import { commandExists, execCapture } from "./util";
+
+export class ClaudeCodeRunner implements RunnerAdapter {
+ name = "cc";
+
+ isAvailable(): boolean {
+ return commandExists("claude");
+ }
+
+ loadTaskCatalog(bench: string): string[] {
+ if (isLocalBench(bench)) return taskIds(bench);
+ throw new RunnerUnavailable(`cc runner: external bench '${bench}' not supported directly`);
+ }
+
+ async run(inv: RunInvocation): Promise<RawRunArtifact> {
+ const { model, harness } = parseComboId(inv.combo.comboId);
+ const work = inv.workDir;
+ mkdirSync(work, { recursive: true });
+ const resultPath = join(work, "output.txt");
+ const transcriptPath = join(work, "transcript.jsonl");
+
+ if (isLocalBench(inv.bench)) setupTask(inv.taskId, work);
+
+ const instruction =
+ inv.instruction ?? instructionFor(inv.taskId) ?? `Complete task ${inv.taskId}`;
+ const resolved = resolveModelAlias(model);
+ const args = [
+ "-p",
+ instruction,
+ "--output-format",
+ "json",
+ "--dangerously-skip-permissions",
+ ...(resolved && resolved !== "default" ? ["--model", resolved] : []),
+ ...harnessClaudeArgs(harness),
+ ];
+
+ const res = await execCapture("claude", args, { cwd: work, timeoutS: inv.timeoutS });
+
+ let costUsd: number | null = null;
+ let numTurns: number | null = null;
+ let sessionId = "";
+ let resultText = res.stdout;
+ let ok = res.error === null && !res.timedOut;
+
+ try {
+ const parsed = CcHeadlessSchema.parse(JSON.parse(res.stdout));
+ costUsd = parsed.total_cost_usd ?? null;
+ numTurns = parsed.num_turns ?? null;
+ sessionId = parsed.session_id ?? "";
+ resultText = parsed.result ?? res.stdout;
+ if (parsed.is_error) ok = false;
+ } catch {
+ // 비-JSON 출력도 fail-soft: 결과 텍스트 유지
+ }
+
+ writeFileSync(resultPath, resultText || res.stderr || "(no output)");
+
+ // 세션 transcript + subagents/ 복사
+ const copied = sessionId ? this.copySession(sessionId, work, transcriptPath) : false;
+ if (!copied) {
+ // 최소 transcript 합성(파서가 토큰만이라도 읽도록)
+ writeFileSync(transcriptPath, this.fallbackTranscript(res.stdout, model, sessionId));
+ }
+
+ const rawResolved = isLocalBench(inv.bench) ? verify(inv.taskId, work) : null;
+
+ return {
+ invocation: inv,
+ success: ok,
+ resultPath,
+ transcriptPath,
+ wallTimeMs: res.wallTimeMs,
+ rawResolved,
+ totalCostUsd: costUsd,
+ numTurns,
+ error: res.error ?? (res.timedOut ? "timeout" : null),
+ };
+ }
+
+ // ~/.claude/projects/<proj>/<session>.jsonl + subagents/ 탐색·복사
+ private copySession(sessionId: string, work: string, transcriptPath: string): boolean {
+ const root = join(homedir(), ".claude", "projects");
+ if (!existsSync(root)) return false;
+ try {
+ for (const proj of readdirSync(root)) {
+ const dir = join(root, proj);
+ const file = join(dir, `${sessionId}.jsonl`);
+ if (existsSync(file)) {
+ copyFileSync(file, transcriptPath);
+ const subSrc = join(dir, "subagents");
+ if (existsSync(subSrc)) {
+ const subDst = join(work, "transcript_subagents");
+ mkdirSync(subDst, { recursive: true });
+ for (const f of readdirSync(subSrc)) copyFileSync(join(subSrc, f), join(subDst, f));
+ }
+ return true;
+ }
+ }
+ } catch {
+ return false;
+ }
+ return false;
+ }
+
+ private fallbackTranscript(stdout: string, model: string, sessionId: string): string {
+ let usage: any = {};
+ try {
+ usage = JSON.parse(stdout).usage ?? {};
+ } catch {
+ // ignore
+ }
+ return `${JSON.stringify({
+ type: "assistant",
+ uuid: "fallback",
+ parentUuid: null,
+ isSidechain: false,
+ session_id: sessionId,
+ message: { role: "assistant", model, usage, content: [{ type: "text", text: "result" }] },
+ })}\n`;
+ }
+}
diff --git a/src/runners/codexCli.ts b/src/runners/codexCli.ts
new file mode 100644
index 0000000..5141248
--- /dev/null
+++ b/src/runners/codexCli.ts
@@ -0,0 +1,91 @@
+/**
+ * Codex CLI 러너 (PRD §7).
+ * `codex exec "<instruction>" --json [--model <id>] --dangerously-bypass-approvals-and-sandbox -o <last>`
+ * stdout 의 thread-event JSONL = transcript. CODEX_HOME 격리(하네스). model_id='default' 면 --model 생략.
+ * 401 등 실패는 fail-soft.
+ */
+import { mkdirSync, writeFileSync } from "node:fs";
+import { join } from "node:path";
+import { instructionFor, isLocalBench, setupTask, taskIds, verify } from "../benches/index";
+import { parseComboId } from "../combos";
+import { resolveModelAlias } from "../config";
+import { harnessCodexEnv } from "../harness";
+import type { RawRunArtifact, RunInvocation } from "../models";
+import { type RunnerAdapter, RunnerUnavailable } from "./base";
+import { commandExists, execCapture } from "./util";
+
+export class CodexCliRunner implements RunnerAdapter {
+ name = "codex";
+
+ isAvailable(): boolean {
+ return commandExists("codex");
+ }
+
+ loadTaskCatalog(bench: string): string[] {
+ if (isLocalBench(bench)) return taskIds(bench);
+ throw new RunnerUnavailable(`codex runner: external bench '${bench}' not supported directly`);
+ }
+
+ async run(inv: RunInvocation): Promise<RawRunArtifact> {
+ const { model, harness } = parseComboId(inv.combo.comboId);
+ const work = inv.workDir;
+ mkdirSync(work, { recursive: true });
+ const resultPath = join(work, "output.txt");
+ const transcriptPath = join(work, "transcript.jsonl");
+
+ if (isLocalBench(inv.bench)) setupTask(inv.taskId, work);
+
+ const instruction =
+ inv.instruction ?? instructionFor(inv.taskId) ?? `Complete task ${inv.taskId}`;
+ const resolved = resolveModelAlias(model);
+ const lastPath = join(work, "codex-last.txt");
+ const args = [
+ "exec",
+ instruction,
+ "--json",
+ "--dangerously-bypass-approvals-and-sandbox",
+ "-o",
+ lastPath,
+ // 계정 기본('default')은 명시 override 거부 → --model 생략
+ ...(resolved && resolved !== "default" ? ["--model", resolved] : []),
+ ];
+
+ const env = harnessCodexEnv(harness);
+ const res = await execCapture("codex", args, { cwd: work, timeoutS: inv.timeoutS, env });
+
+ // stdout = thread-event JSONL
+ writeFileSync(transcriptPath, res.stdout || "");
+ writeFileSync(resultPath, res.stdout ? lastSummary(res.stdout) : res.stderr || "(no output)");
+
+ const ok = res.error === null && !res.timedOut && res.code === 0;
+ const rawResolved = isLocalBench(inv.bench) ? verify(inv.taskId, work) : null;
+
+ return {
+ invocation: inv,
+ success: ok,
+ resultPath,
+ transcriptPath,
+ wallTimeMs: res.wallTimeMs,
+ rawResolved,
+ totalCostUsd: null, // 구독제 → 추정으로 위임
+ numTurns: null,
+ error: res.error ?? (res.timedOut ? "timeout" : res.code !== 0 ? `exit ${res.code}` : null),
+ };
+ }
+}
+
+function lastSummary(stdout: string): string {
+ const texts: string[] = [];
+ for (const line of stdout.split("\n")) {
+ const s = line.trim();
+ if (!s) continue;
+ try {
+ const o = JSON.parse(s);
+ const item = o.item ?? o.msg?.item;
+ if (item?.text) texts.push(String(item.text));
+ } catch {
+ // ignore
+ }
+ }
+ return texts.join("\n") || "(no result text)";
+}
diff --git a/src/runners/mock.ts b/src/runners/mock.ts
new file mode 100644
index 0000000..4917024
--- /dev/null
+++ b/src/runners/mock.ts
@@ -0,0 +1,343 @@
+/**
+ * 오프라인 결정적 합성 러너 (PRD §7, §22.4).
+ * (comboId, taskId, runIdx, seed) 해시로 토큰/시간/서브에이전트 수 생성. Math.random 금지.
+ * 하네스 경향 반영. codex/gpt 는 서브에이전트 0(단일 루프).
+ * 로컬-스타일 벤치는 실제 task id + setup 훅 존중(verify 는 호출 안 하고 합성 rawResolved 사용).
+ */
+import { createHash } from "node:crypto";
+import { mkdirSync, writeFileSync } from "node:fs";
+import { join } from "node:path";
+import { isLocalBench, setupTask, taskIds } from "../benches/index";
+import { parseComboId } from "../combos";
+import { modelFamily } from "../config";
+import type { RawRunArtifact, RunInvocation } from "../models";
+import { type RunnerAdapter, RunnerUnavailable } from "./base";
+
+class Det {
+ private buf: string;
+ private counter = 0;
+ constructor(...material: (string | number)[]) {
+ this.buf = material.join(":");
+ }
+ private hash(): bigint {
+ const h = createHash("sha256")
+ .update(`${this.buf}:${this.counter++}`)
+ .digest("hex")
+ .slice(0, 12);
+ return BigInt(`0x${h}`);
+ }
+ randint(lo: number, hi: number): number {
+ if (hi <= lo) return lo;
+ const span = BigInt(hi - lo + 1);
+ return lo + Number(this.hash() % span);
+ }
+ chance(p: number): boolean {
+ return this.randint(0, 9999) / 10000 < p;
+ }
+}
+
+const HARNESS_SUBAGENTS: Record<string, [number, number]> = {
+ none: [0, 0],
+ superpowers: [1, 3],
+ omc: [2, 5],
+ omx: [2, 5],
+ ecc: [0, 1],
+ lazycodex: [0, 1],
+};
+
+const DIFFICULTY_SCALE: Record<string, number> = {
+ "subagent-": 1.8,
+ "local-": 1.0,
+};
+function scaleFor(taskId: string): number {
+ for (const [pre, s] of Object.entries(DIFFICULTY_SCALE)) if (taskId.startsWith(pre)) return s;
+ return 1.0;
+}
+
+export class MockRunner implements RunnerAdapter {
+ name = "mock";
+ constructor(private failRate = 0) {}
+
+ isAvailable(): boolean {
+ return true;
+ }
+
+ loadTaskCatalog(bench: string): string[] {
+ if (isLocalBench(bench)) return taskIds(bench);
+ // 외부 벤치도 합성 카탈로그(tb mock 폴백)
+ if (bench === "terminal-bench-v2")
+ return Array.from({ length: 40 }, (_, i) => `tb-${String(i + 1).padStart(3, "0")}`);
+ throw new RunnerUnavailable(`mock: unknown bench '${bench}'`);
+ }
+
+ async run(inv: RunInvocation): Promise<RawRunArtifact> {
+ const { agent, model, harness } = parseComboId(inv.combo.comboId);
+ const work = inv.workDir;
+ mkdirSync(work, { recursive: true });
+ const resultPath = join(work, "output.txt");
+ const transcriptPath = join(work, "transcript.jsonl");
+
+ // 로컬-스타일 벤치는 setup 픽스처 생성(러너 3개 공통)
+ if (isLocalBench(inv.bench)) setupTask(inv.taskId, work);
+
+ const det = new Det(inv.combo.comboId, inv.taskId, inv.runIdx, inv.seed);
+ const scale = scaleFor(inv.taskId);
+
+ // 실행 성공 여부(fail-soft 경로 검증용)
+ const failed = det.chance(this.failRate);
+
+ // 서브에이전트 수
+ const fam = modelFamily(model);
+ let subagentCount = 0;
+ if (agent !== "codex" && fam !== "gpt") {
+ const [lo, hi] = HARNESS_SUBAGENTS[harness] ?? [0, 0];
+ subagentCount = det.randint(lo, hi);
+ }
+
+ // 토큰
+ const inputTokens = Math.round(det.randint(8000, 30000) * scale);
+ const outputTokens = Math.round(det.randint(1500, 6000) * scale);
+ const cacheRead = Math.round(det.randint(20000, 120000) * scale);
+ const cacheCreate = Math.round(det.randint(2000, 15000) * scale);
+ const wallTimeMs = det.randint(3000, 90000);
+
+ const rawResolved = failed ? false : det.chance(0.7 - (scale - 1) * 0.15);
+
+ // transcript 합성
+ const lines: string[] =
+ agent === "codex"
+ ? this.codexTranscript(det, model, inputTokens, outputTokens, cacheRead, cacheCreate)
+ : this.ccTranscript(
+ det,
+ model,
+ harness,
+ subagentCount,
+ inputTokens,
+ outputTokens,
+ cacheRead,
+ cacheCreate,
+ );
+
+ writeFileSync(transcriptPath, lines.join("\n"));
+ writeFileSync(
+ resultPath,
+ failed
+ ? `mock failure for ${inv.taskId}`
+ : `mock result for ${inv.taskId} (${subagentCount} subagents)\nDone.`,
+ );
+
+ // claude family 는 실측 비용 시뮬레이션(actual), gpt 는 null(=> estimated/none)
+ const totalCostUsd = fam === "claude" ? Math.round((inputTokens / 1e6) * 15 * 100) / 100 : null;
+
+ return {
+ invocation: inv,
+ success: !failed,
+ resultPath,
+ transcriptPath,
+ wallTimeMs,
+ rawResolved,
+ totalCostUsd,
+ numTurns: det.randint(2, 12),
+ error: failed ? "mock: synthetic failure" : null,
+ };
+ }
+
+ private ccTranscript(
+ det: Det,
+ model: string,
+ harness: string,
+ subagents: number,
+ inT: number,
+ outT: number,
+ cr: number,
+ cc: number,
+ ): string[] {
+ const lines: string[] = [];
+ let uuid = 0;
+ const nextId = () => `m${uuid++}`;
+ const tools = ["Read", "Bash", "Grep", "Edit", "Glob"];
+ let ts = 1_000;
+ const stamp = () => {
+ ts += det.randint(100, 2000);
+ return new Date(ts).toISOString();
+ };
+
+ // 메인 루프 첫 assistant
+ const rootId = nextId();
+ lines.push(
+ JSON.stringify({
+ type: "assistant",
+ uuid: rootId,
+ parentUuid: null,
+ isSidechain: false,
+ timestamp: stamp(),
+ message: {
+ role: "assistant",
+ model,
+ usage: {
+ input_tokens: Math.round(inT * 0.5),
+ output_tokens: Math.round(outT * 0.5),
+ cache_read_input_tokens: Math.round(cr * 0.5),
+ cache_creation_input_tokens: Math.round(cc * 0.5),
+ },
+ content: [{ type: "text", text: "Working on the task." }],
+ },
+ }),
+ );
+
+ // 메인 루프 tool_use 몇 개
+ let prev = rootId;
+ for (let i = 0; i < det.randint(2, 6); i++) {
+ const id = nextId();
+ const tool = tools[det.randint(0, tools.length - 1)]!;
+ lines.push(
+ JSON.stringify({
+ type: "assistant",
+ uuid: id,
+ parentUuid: prev,
+ isSidechain: false,
+ timestamp: stamp(),
+ message: {
+ role: "assistant",
+ model,
+ content: [{ type: "tool_use", id: `t${id}`, name: tool, input: { path: "x" } }],
+ usage: { input_tokens: 0, output_tokens: det.randint(50, 300) },
+ },
+ }),
+ );
+ prev = id;
+ }
+
+ // 스킬 사용 (하네스 있을 때)
+ if (harness !== "none") {
+ const id = nextId();
+ lines.push(
+ JSON.stringify({
+ type: "assistant",
+ uuid: id,
+ parentUuid: prev,
+ isSidechain: false,
+ timestamp: stamp(),
+ message: {
+ role: "assistant",
+ model,
+ content: [
+ { type: "tool_use", id: `t${id}`, name: "Skill", input: { command: "planning" } },
+ ],
+ usage: { input_tokens: 0, output_tokens: det.randint(20, 100) },
+ },
+ }),
+ );
+ prev = id;
+ }
+
+ // 서브에이전트 (Task tool_use + sidechain 대화)
+ for (let s = 0; s < subagents; s++) {
+ const taskId = nextId();
+ const taskUuid = taskId;
+ lines.push(
+ JSON.stringify({
+ type: "assistant",
+ uuid: taskUuid,
+ parentUuid: rootId,
+ isSidechain: false,
+ timestamp: stamp(),
+ message: {
+ role: "assistant",
+ model,
+ content: [
+ { type: "tool_use", id: `task${s}`, name: "Task", input: { subagent_type: harness } },
+ ],
+ usage: { input_tokens: 0, output_tokens: det.randint(50, 200) },
+ },
+ }),
+ );
+ // sidechain assistant 라인 (서브에이전트 내부)
+ const subTurns = det.randint(1, 3);
+ let subPrev = taskUuid;
+ for (let k = 0; k < subTurns; k++) {
+ const sid = nextId();
+ lines.push(
+ JSON.stringify({
+ type: "assistant",
+ uuid: sid,
+ parentUuid: subPrev,
+ isSidechain: true,
+ timestamp: stamp(),
+ message: {
+ role: "assistant",
+ model,
+ content: [
+ { type: "text", text: `subagent ${s} step ${k}` },
+ { type: "tool_use", id: `st${s}_${k}`, name: tools[det.randint(0, 4)]!, input: {} },
+ ],
+ usage: {
+ input_tokens: Math.round((inT * 0.5) / Math.max(1, subagents * subTurns)),
+ output_tokens: Math.round((outT * 0.5) / Math.max(1, subagents * subTurns)),
+ cache_read_input_tokens: Math.round((cr * 0.5) / Math.max(1, subagents * subTurns)),
+ cache_creation_input_tokens: Math.round((cc * 0.5) / Math.max(1, subagents)),
+ },
+ },
+ }),
+ );
+ subPrev = sid;
+ }
+ }
+
+ // result 라인
+ lines.push(
+ JSON.stringify({
+ type: "result",
+ uuid: nextId(),
+ parentUuid: prev,
+ isSidechain: false,
+ timestamp: stamp(),
+ session_id: `sess-${det.randint(1000, 9999)}`,
+ message: { role: "assistant", content: [{ type: "text", text: "Done." }] },
+ }),
+ );
+ return lines;
+ }
+
+ private codexTranscript(
+ det: Det,
+ model: string,
+ inT: number,
+ outT: number,
+ cr: number,
+ cc: number,
+ ): string[] {
+ const lines: string[] = [];
+ lines.push(
+ JSON.stringify({ type: "thread.started", thread_id: `th-${det.randint(1000, 9999)}` }),
+ );
+ const turns = det.randint(2, 8);
+ for (let i = 0; i < turns; i++) {
+ lines.push(JSON.stringify({ type: "turn.started" }));
+ const nItems = det.randint(1, 4);
+ for (let k = 0; k < nItems; k++) {
+ lines.push(
+ JSON.stringify({
+ type: "item.completed",
+ item: {
+ type: det.chance(0.5) ? "command_execution" : "file_change",
+ command: "ls -la",
+ },
+ }),
+ );
+ }
+ }
+ lines.push(
+ JSON.stringify({
+ type: "turn.completed",
+ usage: {
+ input_tokens: inT,
+ output_tokens: outT,
+ cached_input_tokens: cr,
+ cache_creation_input_tokens: cc,
+ },
+ }),
+ );
+ return lines;
+ }
+}
diff --git a/src/runners/registry.ts b/src/runners/registry.ts
new file mode 100644
index 0000000..2790fde
--- /dev/null
+++ b/src/runners/registry.ts
@@ -0,0 +1,71 @@
+/**
+ * 러너 레지스트리 (PRD §7).
+ * runnerFor(agent, name, {bench}) — name 이 none/''/'auto' 면 조합별 자동 디스패치
+ * (cc→claudeCode, codex→codexCli; 로컬-스타일 미설치 시 mock 폴백; 외부 벤치 tb).
+ * 명시 name 은 강제. ('auto' 를 강제 러너명으로 오인하지 말 것 — 과거 버그.)
+ */
+import { isLocalBench } from "../benches/index";
+import type { RunnerAdapter } from "./base";
+import { ClaudeCodeRunner } from "./claudeCode";
+import { CodexCliRunner } from "./codexCli";
+import { MockRunner } from "./mock";
+import { TerminalBenchRunner } from "./terminalBench";
+
+export interface RunnerChoice {
+ runner: RunnerAdapter;
+ mock: boolean; // mock 폴백/강제 여부(provenance 배너)
+}
+
+const AUTO_NAMES = new Set(["", "none", "auto"]);
+
+export function getRunner(name: string, failRate = 0): RunnerAdapter {
+ switch (name) {
+ case "cc":
+ return new ClaudeCodeRunner();
+ case "codex":
+ return new CodexCliRunner();
+ case "tb":
+ return new TerminalBenchRunner();
+ default:
+ return new MockRunner(failRate);
+ }
+}
+
+export function runnerFor(
+ agent: string,
+ name: string,
+ opts: { bench: string },
+ failRate = 0,
+): RunnerChoice {
+ const opt = (name ?? "auto").toLowerCase();
+
+ if (opt === "mock") return { runner: new MockRunner(failRate), mock: true };
+
+ // 명시 러너 강제
+ if (opt === "cc") return { runner: new ClaudeCodeRunner(), mock: false };
+ if (opt === "codex") return { runner: new CodexCliRunner(), mock: false };
+ if (opt === "tb") {
+ const tb = new TerminalBenchRunner();
+ return tb.isAvailable()
+ ? { runner: tb, mock: false }
+ : { runner: new MockRunner(failRate), mock: true };
+ }
+
+ // 자동 디스패치
+ if (AUTO_NAMES.has(opt)) {
+ if (isLocalBench(opts.bench)) {
+ const r = agent === "codex" ? new CodexCliRunner() : new ClaudeCodeRunner();
+ return r.isAvailable()
+ ? { runner: r, mock: false }
+ : { runner: new MockRunner(failRate), mock: true };
+ }
+ // 외부 벤치 → tb, 미설치 시 mock
+ const tb = new TerminalBenchRunner();
+ return tb.isAvailable()
+ ? { runner: tb, mock: false }
+ : { runner: new MockRunner(failRate), mock: true };
+ }
+
+ // 알 수 없는 이름 → mock 안전 폴백
+ return { runner: new MockRunner(failRate), mock: true };
+}
diff --git a/src/runners/terminalBench.ts b/src/runners/terminalBench.ts
new file mode 100644
index 0000000..cfe4519
--- /dev/null
+++ b/src/runners/terminalBench.ts
@@ -0,0 +1,49 @@
+/**
+ * Terminal-Bench 어댑터 (PRD §7). 외부 tb 호출만 위임(재구현 금지).
+ * 미설치 시 registry 가 mock 폴백(리포트에 mock provenance 배너).
+ */
+import { mkdirSync, writeFileSync } from "node:fs";
+import { join } from "node:path";
+import type { RawRunArtifact, RunInvocation } from "../models";
+import { type RunnerAdapter, RunnerUnavailable } from "./base";
+import { commandExists, execCapture } from "./util";
+
+export class TerminalBenchRunner implements RunnerAdapter {
+ name = "tb";
+
+ isAvailable(): boolean {
+ return commandExists("tb");
+ }
+
+ loadTaskCatalog(bench: string): string[] {
+ if (!this.isAvailable()) throw new RunnerUnavailable("tb not installed");
+ if (bench !== "terminal-bench-v2") throw new RunnerUnavailable(`tb: unknown bench '${bench}'`);
+ // 실제로는 tb 카탈로그를 질의해야 하나, 본 어댑터는 위임만 — 합성 id 사용.
+ return Array.from({ length: 40 }, (_, i) => `tb-${String(i + 1).padStart(3, "0")}`);
+ }
+
+ async run(inv: RunInvocation): Promise<RawRunArtifact> {
+ const work = inv.workDir;
+ mkdirSync(work, { recursive: true });
+ const resultPath = join(work, "output.txt");
+ const transcriptPath = join(work, "transcript.jsonl");
+ // 위임: tb run <task> (실제 인자 스펙은 tb 버전에 종속). fail-soft.
+ const res = await execCapture("tb", ["run", "--task", inv.taskId], {
+ cwd: work,
+ timeoutS: inv.timeoutS,
+ });
+ writeFileSync(resultPath, res.stdout || res.stderr || "(no output)");
+ writeFileSync(transcriptPath, res.stdout || "");
+ return {
+ invocation: inv,
+ success: res.error === null && !res.timedOut && res.code === 0,
+ resultPath,
+ transcriptPath,
+ wallTimeMs: res.wallTimeMs,
+ rawResolved: null,
+ totalCostUsd: null,
+ numTurns: null,
+ error: res.error ?? (res.timedOut ? "timeout" : null),
+ };
+ }
+}
diff --git a/src/runners/util.ts b/src/runners/util.ts
new file mode 100644
index 0000000..6ceeaef
--- /dev/null
+++ b/src/runners/util.ts
@@ -0,0 +1,76 @@
+/**
+ * 서브프로세스 실행 헬퍼 (timeout, never-throw).
+ */
+import { type SpawnOptions, spawn, spawnSync } from "node:child_process";
+
+export interface ExecResult {
+ stdout: string;
+ stderr: string;
+ code: number | null;
+ timedOut: boolean;
+ error: string | null;
+ wallTimeMs: number;
+}
+
+export function commandExists(bin: string): boolean {
+ try {
+ const r = spawnSync(process.platform === "win32" ? "where" : "which", [bin], {
+ stdio: "ignore",
+ });
+ return r.status === 0;
+ } catch {
+ return false;
+ }
+}
+
+export async function execCapture(
+ cmd: string,
+ args: string[],
+ opts: { cwd?: string; timeoutS: number; env?: NodeJS.ProcessEnv },
+): Promise<ExecResult> {
+ const start = performance.now();
+ return new Promise<ExecResult>((resolve) => {
+ let stdout = "";
+ let stderr = "";
+ let timedOut = false;
+ let settled = false;
+ const so: SpawnOptions = {
+ cwd: opts.cwd,
+ env: { ...process.env, ...opts.env },
+ stdio: ["ignore", "pipe", "pipe"],
+ };
+ let child: ReturnType<typeof spawn>;
+ try {
+ child = spawn(cmd, args, so);
+ } catch (e) {
+ resolve({
+ stdout: "",
+ stderr: "",
+ code: null,
+ timedOut: false,
+ error: `spawn failed: ${(e as Error).message}`,
+ wallTimeMs: performance.now() - start,
+ });
+ return;
+ }
+ const timer = setTimeout(() => {
+ timedOut = true;
+ child.kill("SIGKILL");
+ }, opts.timeoutS * 1000);
+
+ child.stdout?.on("data", (d) => {
+ stdout += d.toString();
+ });
+ child.stderr?.on("data", (d) => {
+ stderr += d.toString();
+ });
+ const finish = (code: number | null, error: string | null) => {
+ if (settled) return;
+ settled = true;
+ clearTimeout(timer);
+ resolve({ stdout, stderr, code, timedOut, error, wallTimeMs: performance.now() - start });
+ };
+ child.on("error", (e) => finish(null, e.message));
+ child.on("close", (code) => finish(code, timedOut ? "timeout" : null));
+ });
+}
diff --git a/src/subset.ts b/src/subset.ts
new file mode 100644
index 0000000..9190cc6
--- /dev/null
+++ b/src/subset.ts
@@ -0,0 +1,70 @@
+/**
+ * 결정적 subset (PRD §6).
+ * 같은 (bench, tasks, seed) → 항상 같은 subset. Math.random 금지, sha256 정렬.
+ */
+import { createHash } from "node:crypto";
+
+export type Difficulty = "easy" | "medium" | "hard";
+
+function rank(seed: number, id: string): string {
+ return createHash("sha256").update(`${seed}:${id}`).digest("hex");
+}
+
+/** sha256(`${seed}:${id}`) 오름차순 정렬 후 앞 k 개. */
+export function selectSubset(catalog: string[], k: number, seed: number): string[] {
+ if (k <= 0) return [];
+ const sorted = [...new Set(catalog)].sort((a, b) => {
+ const ra = rank(seed, a);
+ const rb = rank(seed, b);
+ return ra < rb ? -1 : ra > rb ? 1 : a < b ? -1 : a > b ? 1 : 0;
+ });
+ return sorted.slice(0, k);
+}
+
+/**
+ * easy/medium/hard 버킷 균형 선택 (난이도 메타 있는 벤치만).
+ * 각 버킷 내부는 결정적 sha256 정렬. 라운드로빈으로 k 개를 채운다.
+ */
+export function selectBalanced(
+ catalog: string[],
+ k: number,
+ seed: number,
+ difficultyMap: Record<string, Difficulty>,
+): string[] {
+ if (k <= 0) return [];
+ const buckets: Record<Difficulty, string[]> = { easy: [], medium: [], hard: [] };
+ const unknown: string[] = [];
+ for (const id of new Set(catalog)) {
+ const d = difficultyMap[id];
+ if (d) buckets[d].push(id);
+ else unknown.push(id);
+ }
+ for (const d of ["easy", "medium", "hard"] as Difficulty[]) {
+ buckets[d] = selectSubset(buckets[d], buckets[d].length, seed);
+ }
+ const orderedUnknown = selectSubset(unknown, unknown.length, seed);
+
+ const order: Difficulty[] = ["easy", "medium", "hard"];
+ const out: string[] = [];
+ const cursors: Record<Difficulty, number> = { easy: 0, medium: 0, hard: 0 };
+ let progressed = true;
+ while (out.length < k && progressed) {
+ progressed = false;
+ for (const d of order) {
+ if (out.length >= k) break;
+ const arr = buckets[d];
+ const c = cursors[d];
+ if (c < arr.length) {
+ out.push(arr[c]!);
+ cursors[d] = c + 1;
+ progressed = true;
+ }
+ }
+ }
+ // 버킷이 모자라면 난이도 미상으로 채움
+ for (const id of orderedUnknown) {
+ if (out.length >= k) break;
+ out.push(id);
+ }
+ return out.slice(0, k);
+}
diff --git a/src/transcripts/base.ts b/src/transcripts/base.ts
new file mode 100644
index 0000000..836c130
--- /dev/null
+++ b/src/transcripts/base.ts
@@ -0,0 +1,39 @@
+/**
+ * TranscriptParser 인터페이스 (PRD §8).
+ * 공통: subagentCount = name ∈ {Task, Agent} 인 tool_use 수(★ 정렬키).
+ * skillFires = {Skill, SlashCommand}. mcpCalls = name.startsWith('mcp__').
+ * 토큰 = 모든 assistant usage 합.
+ */
+import type { ParsedTranscript } from "../models";
+
+export interface TranscriptParser {
+ agent: "cc" | "codex";
+ parse(transcriptPath: string, opts?: { model?: string }): ParsedTranscript;
+}
+
+export const SUBAGENT_NAMES = new Set(["Task", "Agent"]);
+export const SKILL_NAMES = new Set(["Skill", "SlashCommand"]);
+
+export function isMcp(name: string | null | undefined): boolean {
+ return typeof name === "string" && name.startsWith("mcp__");
+}
+
+/** ['Read','Read','Bash'] → ['Read×2','Bash×1'] (빈도 압축) */
+export function compressTools(tools: string[]): string[] {
+ const counts = new Map<string, number>();
+ for (const t of tools) counts.set(t, (counts.get(t) ?? 0) + 1);
+ return [...counts.entries()].map(([t, c]) => `${t}×${c}`);
+}
+
+export function tsToMs(ts: unknown): number | null {
+ if (typeof ts === "number") return ts;
+ if (typeof ts === "string") {
+ const ms = Date.parse(ts);
+ return Number.isNaN(ms) ? null : ms;
+ }
+ return null;
+}
+
+export function truncate(s: string, n = 240): string {
+ return s.length > n ? `${s.slice(0, n)}…` : s;
+}
diff --git a/src/transcripts/claudeCode.ts b/src/transcripts/claudeCode.ts
new file mode 100644
index 0000000..432cc4c
--- /dev/null
+++ b/src/transcripts/claudeCode.ts
@@ -0,0 +1,373 @@
+/**
+ * Claude Code transcript 파서 (PRD §8). 두 레이아웃 모두 지원:
+ * (A) 인라인 sidechain (구버전/mock): isSidechain:true 이벤트가 서브에이전트 내부, parentUuid 체인.
+ * (B) 별도 파일 (현행 cc): <session>/subagents/agent-<id>.jsonl + meta.json(toolUseId 로 멀티레벨 부모 링크).
+ * 러너가 subagents/ 를 work_dir 의 transcript_subagents/ 로 복사 → 파서가 sibling 으로 읽어 토큰/도구 총합 합산.
+ */
+import { existsSync, readFileSync, readdirSync } from "node:fs";
+import { dirname, join } from "node:path";
+import { CcLineSchema, CcSubagentMetaSchema } from "../models";
+import type { ParsedTranscript, TranscriptEvent } from "../models";
+import {
+ SKILL_NAMES,
+ SUBAGENT_NAMES,
+ type TranscriptParser,
+ compressTools,
+ isMcp,
+ truncate,
+ tsToMs,
+} from "./base";
+
+interface ToolUse {
+ id: string;
+ name: string;
+ input: any;
+}
+interface Entry {
+ uuid: string;
+ parentUuid: string | null;
+ isSidechain: boolean;
+ tsMs: number | null;
+ model: string | null;
+ usage: { in: number; out: number; cr: number; cc: number };
+ toolUses: ToolUse[];
+ texts: string[];
+ isResult: boolean;
+ sessionId: string | null;
+}
+
+interface Agg {
+ key: string;
+ label: string;
+ tIn: number;
+ tOut: number;
+ tCr: number;
+ tCc: number;
+ toolCalls: number;
+ skillFires: number;
+ mcpCalls: number;
+ tools: string[];
+ skills: string[];
+ steps: string[];
+ logs: string[];
+ startMs: number | null;
+ endMs: number | null;
+ parentKey: string | null; // root 면 null
+ status: "success" | "fail";
+}
+
+function readLines(path: string): Entry[] {
+ let raw: string;
+ try {
+ raw = readFileSync(path, "utf8");
+ } catch {
+ return [];
+ }
+ const entries: Entry[] = [];
+ for (const line of raw.split("\n")) {
+ const s = line.trim();
+ if (!s) continue;
+ let obj: any;
+ try {
+ obj = JSON.parse(s);
+ } catch {
+ continue;
+ }
+ const parsed = CcLineSchema.safeParse(obj);
+ if (!parsed.success) continue;
+ const o: any = obj;
+ const msg: any = o.message ?? {};
+ const usage: any = msg.usage ?? {};
+ const content: any[] = Array.isArray(msg.content) ? msg.content : [];
+ const toolUses: ToolUse[] = [];
+ const texts: string[] = [];
+ for (const c of content) {
+ if (c && c.type === "tool_use")
+ toolUses.push({ id: c.id ?? "", name: c.name ?? "", input: c.input ?? {} });
+ else if (c && c.type === "text" && typeof c.text === "string") texts.push(c.text);
+ }
+ entries.push({
+ uuid: o.uuid ?? "",
+ parentUuid: o.parentUuid ?? null,
+ isSidechain: o.isSidechain === true,
+ tsMs: tsToMs(o.timestamp),
+ model: msg.model ?? null,
+ usage: {
+ in: usage.input_tokens ?? 0,
+ out: usage.output_tokens ?? 0,
+ cr: usage.cache_read_input_tokens ?? 0,
+ cc: usage.cache_creation_input_tokens ?? 0,
+ },
+ toolUses,
+ texts,
+ isResult: o.type === "result",
+ sessionId: o.session_id ?? msg.session_id ?? null,
+ });
+ }
+ return entries;
+}
+
+function newAgg(key: string, label: string, parentKey: string | null): Agg {
+ return {
+ key,
+ label,
+ tIn: 0,
+ tOut: 0,
+ tCr: 0,
+ tCc: 0,
+ toolCalls: 0,
+ skillFires: 0,
+ mcpCalls: 0,
+ tools: [],
+ skills: [],
+ steps: [],
+ logs: [],
+ startMs: null,
+ endMs: null,
+ parentKey,
+ status: "success",
+ };
+}
+
+function attribute(agg: Agg, e: Entry): void {
+ agg.tIn += e.usage.in;
+ agg.tOut += e.usage.out;
+ agg.tCr += e.usage.cr;
+ agg.tCc += e.usage.cc;
+ if (e.tsMs !== null) {
+ if (agg.startMs === null || e.tsMs < agg.startMs) agg.startMs = e.tsMs;
+ if (agg.endMs === null || e.tsMs > agg.endMs) agg.endMs = e.tsMs;
+ }
+ for (const tu of e.toolUses) {
+ agg.toolCalls += 1;
+ agg.tools.push(tu.name);
+ if (SKILL_NAMES.has(tu.name)) {
+ agg.skillFires += 1;
+ const cmd = tu.input?.command ?? tu.input?.name;
+ if (cmd) agg.skills.push(String(cmd));
+ }
+ if (isMcp(tu.name)) agg.mcpCalls += 1;
+ agg.steps.push(SUBAGENT_NAMES.has(tu.name) ? `spawn ${tu.name}` : tu.name);
+ }
+ for (const t of e.texts) agg.logs.push(t);
+}
+
+export class ClaudeCodeParser implements TranscriptParser {
+ agent = "cc" as const;
+
+ parse(transcriptPath: string, opts?: { model?: string }): ParsedTranscript {
+ const entries = readLines(transcriptPath);
+ const byUuid = new Map<string, Entry>();
+ for (const e of entries) if (e.uuid) byUuid.set(e.uuid, e);
+
+ const root = newAgg("__root__", "main loop", null);
+ const subs = new Map<string, Agg>(); // key = 컨테이너 메시지 uuid (Task tool_use 보유)
+ const toolUseOwner = new Map<string, string>(); // Task tool_use id → 소유 agg key
+
+ // 레이아웃 판정: 별도 파일이 있으면 그 파일들이 권위(인라인 Task 는 spawn 으로만 취급).
+ const subDir = join(dirname(transcriptPath), "transcript_subagents");
+ const hasSeparate = existsSync(subDir);
+
+ // 1) Task/Agent tool_use 처리
+ if (!hasSeparate) {
+ // 레이아웃 A: 인라인 Task → subagent agg (컨테이너 메시지 uuid 로 키)
+ for (const e of entries) {
+ for (const tu of e.toolUses) {
+ if (SUBAGENT_NAMES.has(tu.name)) {
+ if (!subs.has(e.uuid)) subs.set(e.uuid, newAgg(e.uuid, `sub ${subs.size + 1}`, null));
+ if (tu.id) toolUseOwner.set(tu.id, e.uuid);
+ }
+ }
+ }
+ } else {
+ // 레이아웃 B: 메인 transcript 의 Task spawn 은 root 소유로만 기록(파일이 실 서브에이전트)
+ for (const e of entries)
+ for (const tu of e.toolUses)
+ if (SUBAGENT_NAMES.has(tu.name) && tu.id) toolUseOwner.set(tu.id, "__root__");
+ }
+
+ // owner(entry) — sidechain 은 parentUuid climb 으로 소속 subagent 결정
+ const ownerOf = (e: Entry): Agg => {
+ if (!e.isSidechain) {
+ return subs.get(e.uuid) ?? root;
+ }
+ let cur: Entry | undefined = e;
+ const guard = new Set<string>();
+ while (cur && !guard.has(cur.uuid)) {
+ guard.add(cur.uuid);
+ if (subs.has(cur.uuid)) return subs.get(cur.uuid)!;
+ cur = cur.parentUuid ? byUuid.get(cur.parentUuid) : undefined;
+ }
+ return root;
+ };
+
+ // 2) 각 entry 토큰/도구 귀속. Task 메시지 자체(spawn)는 root 의 tool call.
+ for (const e of entries) {
+ const owner = ownerOf(e);
+ attribute(owner, e);
+ }
+
+ // 3) subagent 부모 링크 — 컨테이너 메시지의 owner(= 그 entry 의 부모 agg)
+ for (const [uuid, agg] of subs) {
+ const container = byUuid.get(uuid);
+ if (!container) {
+ agg.parentKey = "__root__";
+ continue;
+ }
+ // 컨테이너가 sidechain 이면 그 owner subagent, 아니면 root
+ if (container.isSidechain) {
+ // climb 시작은 부모부터(자기 자신 제외)
+ let cur: Entry | undefined = container.parentUuid
+ ? byUuid.get(container.parentUuid)
+ : undefined;
+ const guard = new Set<string>();
+ let parentKey = "__root__";
+ while (cur && !guard.has(cur.uuid)) {
+ guard.add(cur.uuid);
+ if (subs.has(cur.uuid)) {
+ parentKey = cur.uuid;
+ break;
+ }
+ cur = cur.parentUuid ? byUuid.get(cur.parentUuid) : undefined;
+ }
+ agg.parentKey = parentKey;
+ } else {
+ agg.parentKey = "__root__";
+ }
+ }
+
+ // 4) 레이아웃 B — transcript_subagents/agent-*.jsonl + meta.json
+ if (hasSeparate) {
+ this.parseSeparateFiles(subDir, subs, toolUseOwner);
+ }
+
+ const sessionId =
+ entries.find((e) => e.sessionId)?.sessionId ??
+ `cc-${Math.abs(hashStr(transcriptPath)) % 100000}`;
+ const model = opts?.model ?? entries.find((e) => e.model)?.model ?? "unknown";
+
+ return assemble("cc", root, subs, sessionId, model, entries.length);
+ }
+
+ private parseSeparateFiles(
+ subDir: string,
+ subs: Map<string, Agg>,
+ toolUseOwner: Map<string, string>,
+ ): void {
+ let files: string[];
+ try {
+ files = readdirSync(subDir).filter((f) => f.endsWith(".jsonl"));
+ } catch {
+ return;
+ }
+ // 1차 패스: 모든 파일 attribute + toolUseOwner 채우기(부모-자식 순서 무관)
+ const fileAggs: { id: string; agg: Agg }[] = [];
+ for (const file of files.sort()) {
+ const id = file.replace(/\.jsonl$/, "");
+ const entries = readLines(join(subDir, file));
+ const agg = newAgg(`file:${id}`, id, "__root__");
+ for (const e of entries) {
+ attribute(agg, e);
+ for (const tu of e.toolUses)
+ if (SUBAGENT_NAMES.has(tu.name) && tu.id) toolUseOwner.set(tu.id, `file:${id}`);
+ }
+ fileAggs.push({ id, agg });
+ }
+ // 2차 패스: meta.toolUseId → 부모 결정 (멀티레벨)
+ for (const { id, agg } of fileAggs) {
+ let parentKey = "__root__";
+ try {
+ const metaRaw = readFileSync(join(subDir, `${id}.meta.json`), "utf8");
+ const meta = CcSubagentMetaSchema.parse(JSON.parse(metaRaw));
+ if (meta.toolUseId && toolUseOwner.has(meta.toolUseId)) {
+ parentKey = toolUseOwner.get(meta.toolUseId)!;
+ }
+ } catch {
+ // meta 없으면 root
+ }
+ agg.parentKey = parentKey;
+ subs.set(`file:${id}`, agg);
+ }
+ }
+}
+
+function hashStr(s: string): number {
+ let h = 0;
+ for (let i = 0; i < s.length; i++) h = (Math.imul(31, h) + s.charCodeAt(i)) | 0;
+ return h;
+}
+
+function assemble(
+ agent: "cc",
+ root: Agg,
+ subs: Map<string, Agg>,
+ sessionId: string,
+ model: string,
+ rawCount: number,
+): ParsedTranscript {
+ // 이벤트 배열: [root, ...subs]. 부모는 events 인덱스로 링크.
+ const aggList = [root, ...subs.values()];
+ const keyToIdx = new Map<string, number>();
+ aggList.forEach((a, i) => keyToIdx.set(a.key, i));
+
+ const events: TranscriptEvent[] = aggList.map((a, idx) => {
+ const parentIdx = a.parentKey ? (keyToIdx.get(a.parentKey) ?? 0) : null;
+ const dur = a.startMs !== null && a.endMs !== null ? Math.max(0, a.endMs - a.startMs) : 0;
+ return {
+ idx,
+ tsMs: a.startMs ?? 0,
+ endMs: a.endMs ?? 0,
+ durationMs: dur,
+ kind: idx === 0 ? "assistant" : "subagent",
+ name: idx === 0 ? "main" : a.label,
+ parentIdx,
+ inputTokens: a.tIn,
+ outputTokens: a.tOut,
+ cacheReadTokens: a.tCr,
+ cacheCreationTokens: a.tCc,
+ summaryIn: truncate(a.logs[0] ?? ""),
+ summaryOut: truncate(a.logs[a.logs.length - 1] ?? ""),
+ status: a.status,
+ isSidechain: idx !== 0,
+ toolCalls: a.toolCalls,
+ skillFires: a.skillFires,
+ toolsUsed: compressTools(a.tools),
+ skillsUsed: [...new Set(a.skills)],
+ steps: a.steps,
+ logText: truncate(a.logs.join("\n"), 1000),
+ };
+ });
+
+ const sum = (f: (a: Agg) => number) => aggList.reduce((acc, a) => acc + f(a), 0);
+ const inputTokens = sum((a) => a.tIn);
+ const outputTokens = sum((a) => a.tOut);
+ const cacheReadTokens = sum((a) => a.tCr);
+ const cacheCreationTokens = sum((a) => a.tCc);
+ const subagentCount = subs.size;
+ const toolCalls = sum((a) => a.toolCalls);
+ const skillFires = sum((a) => a.skillFires);
+ const mcpCalls = sum((a) => a.mcpCalls);
+ const latency =
+ root.startMs !== null && root.endMs !== null ? Math.max(0, root.endMs - root.startMs) : 0;
+
+ return {
+ agent,
+ events,
+ sessionId,
+ model,
+ numTurns: rawCount,
+ toolCalls,
+ subagentCount,
+ skillFires,
+ mcpCalls,
+ inputTokens,
+ outputTokens,
+ cacheReadTokens,
+ cacheCreationTokens,
+ totalTokens: inputTokens + outputTokens + cacheReadTokens + cacheCreationTokens,
+ latencyMs: latency,
+ skillsUsed: [...new Set(root.skills)],
+ toolsUsed: compressTools(root.tools),
+ steps: root.steps,
+ };
+}
diff --git a/src/transcripts/codex.ts b/src/transcripts/codex.ts
new file mode 100644
index 0000000..b0aa77b
--- /dev/null
+++ b/src/transcripts/codex.ts
@@ -0,0 +1,129 @@
+/**
+ * Codex transcript 파서 (PRD §8).
+ * `codex exec --json` thread-event: thread.started(session) / turn.started(numTurns) /
+ * turn.completed.usage(토큰) / item.completed(도구). 실제 codex 는 in-process 서브에이전트 없음(평탄).
+ * mock/구 스키마의 명시 parent_idx 만 중첩으로 인정.
+ */
+import { readFileSync } from "node:fs";
+import { CodexEventSchema } from "../models";
+import type { ParsedTranscript, TranscriptEvent } from "../models";
+import { type TranscriptParser, compressTools, isMcp, truncate } from "./base";
+
+function readEvents(path: string): any[] {
+ let raw: string;
+ try {
+ raw = readFileSync(path, "utf8");
+ } catch {
+ return [];
+ }
+ const out: any[] = [];
+ for (const line of raw.split("\n")) {
+ const s = line.trim();
+ if (!s) continue;
+ try {
+ const obj = JSON.parse(s);
+ if (CodexEventSchema.safeParse(obj).success) out.push(obj);
+ } catch {
+ // skip
+ }
+ }
+ return out;
+}
+
+function eventType(o: any): string {
+ if (typeof o.type === "string") return o.type;
+ if (o.msg && typeof o.msg.type === "string") return o.msg.type;
+ return "";
+}
+
+export class CodexParser implements TranscriptParser {
+ agent = "codex" as const;
+
+ parse(transcriptPath: string, opts?: { model?: string }): ParsedTranscript {
+ const events = readEvents(transcriptPath);
+ let sessionId = "";
+ let numTurns = 0;
+ let inputTokens = 0;
+ let outputTokens = 0;
+ let cacheReadTokens = 0;
+ let cacheCreationTokens = 0;
+ let toolCalls = 0;
+ let mcpCalls = 0;
+ const tools: string[] = [];
+ const steps: string[] = [];
+ const logs: string[] = [];
+ // 명시 parent_idx 가 있는 평탄-외 중첩(구 스키마/mock)
+ let explicitSubagents = 0;
+
+ for (const o of events) {
+ const t = eventType(o);
+ if (t === "thread.started") sessionId = o.thread_id ?? o.thread?.id ?? sessionId;
+ else if (t === "turn.started") numTurns += 1;
+ else if (t === "turn.completed") {
+ const u = o.usage ?? o.msg?.usage ?? {};
+ inputTokens += u.input_tokens ?? 0;
+ outputTokens += u.output_tokens ?? 0;
+ cacheReadTokens += u.cached_input_tokens ?? u.cache_read_input_tokens ?? 0;
+ cacheCreationTokens += u.cache_creation_input_tokens ?? 0;
+ } else if (t === "item.completed") {
+ const item = o.item ?? o.msg?.item ?? {};
+ const name = item.type ?? "item";
+ toolCalls += 1;
+ tools.push(name);
+ if (isMcp(name) || isMcp(item.name)) mcpCalls += 1;
+ steps.push(String(item.command ?? name));
+ if (typeof item.text === "string") logs.push(item.text);
+ if (typeof o.parent_idx === "number" || typeof item.parent_idx === "number")
+ explicitSubagents += 1;
+ }
+ }
+
+ if (!sessionId) sessionId = "codex-session";
+ const model = opts?.model ?? "unknown";
+
+ const rootEvent: TranscriptEvent = {
+ idx: 0,
+ tsMs: 0,
+ endMs: 0,
+ durationMs: 0,
+ kind: "assistant",
+ name: "main",
+ parentIdx: null,
+ inputTokens,
+ outputTokens,
+ cacheReadTokens,
+ cacheCreationTokens,
+ summaryIn: truncate(logs[0] ?? ""),
+ summaryOut: truncate(logs[logs.length - 1] ?? ""),
+ status: "success",
+ isSidechain: false,
+ toolCalls,
+ skillFires: 0,
+ toolsUsed: compressTools(tools),
+ skillsUsed: [],
+ steps,
+ logText: truncate(logs.join("\n"), 1000),
+ };
+
+ return {
+ agent: "codex",
+ events: [rootEvent],
+ sessionId,
+ model,
+ numTurns,
+ toolCalls,
+ subagentCount: explicitSubagents, // 실제 codex=0
+ skillFires: 0,
+ mcpCalls,
+ inputTokens,
+ outputTokens,
+ cacheReadTokens,
+ cacheCreationTokens,
+ totalTokens: inputTokens + outputTokens + cacheReadTokens + cacheCreationTokens,
+ latencyMs: 0,
+ skillsUsed: [],
+ toolsUsed: compressTools(tools),
+ steps,
+ };
+ }
+}
diff --git a/src/transcripts/index.ts b/src/transcripts/index.ts
new file mode 100644
index 0000000..dbe0a6b
--- /dev/null
+++ b/src/transcripts/index.ts
@@ -0,0 +1,11 @@
+import type { TranscriptParser } from "./base";
+import { ClaudeCodeParser } from "./claudeCode";
+import { CodexParser } from "./codex";
+
+export function parserFor(agent: string): TranscriptParser {
+ return agent === "codex" ? new CodexParser() : new ClaudeCodeParser();
+}
+
+export * from "./base";
+export { ClaudeCodeParser } from "./claudeCode";
+export { CodexParser } from "./codex";
diff --git a/src/tui.ts b/src/tui.ts
new file mode 100644
index 0000000..7d45e18
--- /dev/null
+++ b/src/tui.ts
@@ -0,0 +1,92 @@
+/**
+ * TUI 래핑 (PRD §17, §22.7).
+ * run 선택 → 비교표 + 관점별 추천 + 흐름 요약. 기본 ink, 미설치/--rich 시 cli-table3 폴백.
+ * --open 시 report.html 브라우저 오픈.
+ */
+import { spawn } from "node:child_process";
+import { existsSync } from "node:fs";
+import { join } from "node:path";
+import Table from "cli-table3";
+import pc from "picocolors";
+import { type Translator, translator } from "./i18n";
+import { aggregateAll, bestByPerspective, sortCombos } from "./metrics";
+import type { Lang } from "./models";
+import { listRuns, loadMeta, loadResults } from "./recorder";
+
+export interface TuiOpts {
+ out: string;
+ rich: boolean;
+ open: boolean;
+ language: Lang;
+}
+
+function fallbackRender(t: Translator, lang: Lang, opts: TuiOpts): string | null {
+ const runs = listRuns(opts.out);
+ if (!runs.length) {
+ console.log(pc.yellow("no runs found"));
+ return null;
+ }
+ const runId = runs[0]!;
+ const meta = loadMeta(opts.out, runId);
+ const results = loadResults(opts.out, runId);
+ const metrics = sortCombos(aggregateAll(results));
+
+ console.log(pc.bold(`${t("run_id")}: ${runId} (${meta?.bench ?? "?"})`));
+ const table = new Table({
+ head: [
+ t("col_combo"),
+ t("col_acc"),
+ t("col_subagents"),
+ t("col_tokens"),
+ t("col_cost"),
+ t("col_wall"),
+ ],
+ });
+ for (const m of metrics)
+ table.push([
+ m.comboId,
+ `${m.accuracy.toFixed(1)}%`,
+ String(m.subagentCount),
+ m.totalTokens.toLocaleString("en-US"),
+ m.costUsd === null ? pc.dim("null") : `$${m.costUsd.toFixed(4)}`,
+ `${(m.wallTimeMs / 1000).toFixed(1)}s`,
+ ]);
+ console.log(table.toString());
+
+ for (const [label, combo] of Object.entries(bestByPerspective(metrics, lang)))
+ console.log(` ${pc.green("▸")} ${label}: ${combo}`);
+
+ // 흐름 요약
+ console.log(pc.dim("\nflow summary (subagents per combo):"));
+ for (const m of metrics)
+ console.log(` ${m.comboId}: ${m.subagentCount} subagents, ${m.toolCalls} tool calls`);
+
+ return join(opts.out, runId, "report.html");
+}
+
+function openInBrowser(file: string): void {
+ const opener =
+ process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
+ try {
+ spawn(opener, [file], { stdio: "ignore", detached: true }).unref();
+ } catch {
+ // ignore
+ }
+}
+
+export async function runTui(opts: TuiOpts): Promise<void> {
+ const t = translator(opts.language);
+
+ // best-effort ink — 미설치/실패 시 cli-table3 폴백
+ if (!opts.rich) {
+ try {
+ await import("ink");
+ // ink 가 있어도 안전한 폴백 렌더를 사용(JSX 빌드 의존 회피). 향후 ink 앱으로 확장.
+ } catch {
+ // ink 없음 — 폴백
+ }
+ }
+
+ const reportPath = fallbackRender(t, opts.language, opts);
+ if (opts.open && reportPath && existsSync(reportPath)) openInBrowser(reportPath);
+}
diff --git a/tests/br_behavior.test.ts b/tests/br_behavior.test.ts
new file mode 100644
index 0000000..3f82ef0
--- /dev/null
+++ b/tests/br_behavior.test.ts
@@ -0,0 +1,224 @@
+/**
+ * BR (동작) 검증 지표 — PRD §19.
+ * BR1 조합 유효성/제외 사유 · BR2 subset 결정성 · BR3 러너 never-throw ·
+ * BR4 하네스 per-run · BR5 벤치 setup+recompute-verify · BR6 멀티레벨 파싱 · BR7 fail-soft
+ */
+import { mkdirSync, mkdtempSync, readFileSync, writeFileSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import { describe, expect, it } from "vitest";
+import { findTask, setupTask, verify } from "../src/benches/index";
+import { expand } from "../src/combos";
+import { harnessClaudeArgs, harnessCodexEnv, harnessStatus } from "../src/harness";
+import { MockRunner } from "../src/runners/mock";
+import { selectBalanced, selectSubset } from "../src/subset";
+import { ClaudeCodeParser } from "../src/transcripts/claudeCode";
+
+function tmp(): string {
+ return mkdtempSync(join(tmpdir(), "theseus-"));
+}
+
+describe("BR1 combo validity & exclude reasons", () => {
+ it("excludes incompatible agent×model and harness with reasons (no silent drop)", () => {
+ const { valid, excluded } = expand(["opus4.8", "gpt5.5"], ["cc", "codex"], ["none", "omc"]);
+ expect(valid.map((c) => c.comboId)).toContain("cc+opus4.8+none");
+ expect(valid.map((c) => c.comboId)).toContain("codex+gpt5.5+none");
+ // cc cannot use gpt model
+ const cross = excluded.find((c) => c.comboId === "cc+gpt5.5+none");
+ expect(cross?.excludeReason).toMatch(/incompatible/);
+ // omc is cc-only → codex+gpt5.5+omc excluded
+ const harnessBad = excluded.find((c) => c.comboId === "codex+gpt5.5+omc");
+ expect(harnessBad?.excludeReason).toMatch(/not compatible/);
+ // every excluded has a reason
+ expect(excluded.every((c) => !!c.excludeReason)).toBe(true);
+ });
+});
+
+describe("BR2 subset determinism", () => {
+ const catalog = Array.from({ length: 50 }, (_, i) => `task-${i}`);
+ it("same (catalog,k,seed) → identical subset; no Math.random", () => {
+ const a = selectSubset(catalog, 10, 42);
+ const b = selectSubset(catalog, 10, 42);
+ expect(a).toEqual(b);
+ expect(a).toHaveLength(10);
+ });
+ it("different seed → (generally) different ordering", () => {
+ const a = selectSubset(catalog, 10, 1);
+ const b = selectSubset(catalog, 10, 2);
+ expect(a).not.toEqual(b);
+ });
+ it("balanced subset is deterministic and spans buckets", () => {
+ const levels = ["easy", "medium", "hard"] as const;
+ const dm: Record<string, "easy" | "medium" | "hard"> = {};
+ catalog.forEach((t, i) => {
+ dm[t] = levels[i % 3]!;
+ });
+ const a = selectBalanced(catalog, 9, 7, dm);
+ const b = selectBalanced(catalog, 9, 7, dm);
+ expect(a).toEqual(b);
+ });
+});
+
+describe("BR3 runner never-throw", () => {
+ it("mock.run resolves with success flag even when fail injected", async () => {
+ const runner = new MockRunner(1.0); // always fail
+ const work = tmp();
+ const art = await runner.run({
+ combo: {
+ comboId: "cc+opus4.8+none",
+ agent: "cc",
+ model: "opus4.8",
+ harness: "none",
+ valid: true,
+ },
+ taskId: "local-hello",
+ runIdx: 0,
+ workDir: work,
+ timeoutS: 1,
+ seed: 0,
+ bench: "local",
+ });
+ expect(art.success).toBe(false);
+ expect(art.resultPath).toBeTruthy();
+ expect(art.transcriptPath).toBeTruthy();
+ });
+});
+
+describe("BR4 harness per-run application", () => {
+ it("none → no args/env; status reflects availability", () => {
+ expect(harnessClaudeArgs("none")).toEqual([]);
+ expect(harnessCodexEnv("none")).toEqual({});
+ expect(harnessStatus("none")).toBe("none");
+ // unavailable when not installed (offline)
+ expect(["applied", "unavailable"]).toContain(harnessStatus("omc"));
+ });
+});
+
+describe("BR5 bench setup + recompute-verify", () => {
+ it("setup creates fixtures; verify recomputes (no hardcoded golden)", () => {
+ const work = tmp();
+ setupTask("subagent-104", work);
+ // 정답을 직접(독립) 풀어서 기록 → verify 통과해야 함
+ const k = JSON.parse(readFileSync(join(work, "knapsack.json"), "utf8"));
+ // 독립 2D DP
+ const n = k.items.length;
+ const dp: number[][] = Array.from({ length: n + 1 }, () =>
+ new Array(k.capacity + 1).fill(0),
+ ) as number[][];
+ const at = (i: number, c: number): number => dp[i]![c]!;
+ const set = (i: number, c: number, val: number) => {
+ dp[i]![c] = val;
+ };
+ for (let i = 1; i <= n; i++) {
+ const [w, v] = k.items[i - 1];
+ for (let c = 0; c <= k.capacity; c++)
+ set(i, c, c >= w ? Math.max(at(i - 1, c), at(i - 1, c - w) + v) : at(i - 1, c));
+ }
+ writeFileSync(join(work, "answer.txt"), String(at(n, k.capacity)));
+ expect(verify("subagent-104", work)).toBe(true);
+ // 틀린 답 → false
+ writeFileSync(join(work, "answer.txt"), String(at(n, k.capacity) + 1));
+ expect(verify("subagent-104", work)).toBe(false);
+ });
+ it("verify never throws on missing files", () => {
+ expect(verify("subagent-101", tmp())).toBe(false);
+ expect(verify("nonexistent", tmp())).toBe(false);
+ });
+});
+
+describe("BR6 multi-level subagent parsing (layout B)", () => {
+ it("links nested subagents via meta.toolUseId (depth 2)", () => {
+ const work = tmp();
+ const transcriptPath = join(work, "transcript.jsonl");
+ // main: spawns Task TU1
+ writeFileSync(
+ transcriptPath,
+ `${JSON.stringify({
+ type: "assistant",
+ uuid: "root1",
+ parentUuid: null,
+ isSidechain: false,
+ message: {
+ role: "assistant",
+ model: "claude-opus-4-8",
+ usage: { input_tokens: 1000, output_tokens: 200 },
+ content: [{ type: "tool_use", id: "TU1", name: "Task", input: {} }],
+ },
+ })}\n`,
+ );
+ const subDir = join(work, "transcript_subagents");
+ mkdirSync(subDir, { recursive: true });
+ // agent-1 spawns Task TU2
+ writeFileSync(
+ join(subDir, "agent-1.jsonl"),
+ `${JSON.stringify({
+ type: "assistant",
+ uuid: "a1",
+ message: {
+ role: "assistant",
+ usage: { input_tokens: 500, output_tokens: 100 },
+ content: [
+ { type: "tool_use", id: "TU2", name: "Task", input: {} },
+ { type: "tool_use", id: "r1", name: "Read", input: {} },
+ ],
+ },
+ })}\n`,
+ );
+ writeFileSync(
+ join(subDir, "agent-1.meta.json"),
+ JSON.stringify({ toolUseId: "TU1", agentId: "agent-1" }),
+ );
+ // agent-2 child of agent-1
+ writeFileSync(
+ join(subDir, "agent-2.jsonl"),
+ `${JSON.stringify({
+ type: "assistant",
+ uuid: "a2",
+ message: {
+ role: "assistant",
+ usage: { input_tokens: 300, output_tokens: 50 },
+ content: [],
+ },
+ })}\n`,
+ );
+ writeFileSync(
+ join(subDir, "agent-2.meta.json"),
+ JSON.stringify({ toolUseId: "TU2", agentId: "agent-2" }),
+ );
+
+ const parsed = new ClaudeCodeParser().parse(transcriptPath);
+ expect(parsed.subagentCount).toBe(2); // 파일 2개 (인라인 중복 없음)
+ // 토큰 총합 = root + 두 서브에이전트
+ expect(parsed.inputTokens).toBe(1000 + 500 + 300);
+ expect(parsed.outputTokens).toBe(200 + 100 + 50);
+ // 부모 링크: agent-2 의 parentIdx 가 agent-1 이벤트를 가리켜 depth 2
+ const ev = parsed.events;
+ const a1 = ev.find((e) => e.name === "agent-1")!;
+ const a2 = ev.find((e) => e.name === "agent-2")!;
+ expect(ev[a2.parentIdx!]!.name).toBe("agent-1");
+ expect(ev[a1.parentIdx!]!.name).toBe("main");
+ });
+});
+
+describe("BR7 fail-soft (synthetic failure recorded, not dropped)", () => {
+ it("mock with failRate=1 produces success:false but still resolves", async () => {
+ const runner = new MockRunner(1.0);
+ const art = await runner.run({
+ combo: {
+ comboId: "cc+opus4.8+omc",
+ agent: "cc",
+ model: "opus4.8",
+ harness: "omc",
+ valid: true,
+ },
+ taskId: "subagent-101",
+ runIdx: 0,
+ workDir: tmp(),
+ timeoutS: 1,
+ seed: 3,
+ bench: "subagent",
+ });
+ expect(art.success).toBe(false);
+ expect(art.error).toBeTruthy();
+ });
+});
diff --git a/tests/co_consistency.test.ts b/tests/co_consistency.test.ts
new file mode 100644
index 0000000..b9b0b92
--- /dev/null
+++ b/tests/co_consistency.test.ts
@@ -0,0 +1,210 @@
+/**
+ * CO (정합) 검증 지표 — PRD §19.
+ * CO1 total=필드합 · CO2 서브카운트≤툴콜 · CO3 정렬 기본키 · CO4 실측>추정>none ·
+ * CO5 null≠0 · CO6 codex 실패 fail-soft · CO7 골든 정확성(독립 솔버 교차검증)
+ */
+import { mkdtempSync, readFileSync, writeFileSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import { describe, expect, it } from "vitest";
+import { setupTask, verify } from "../src/benches/index";
+import { type ComboMetrics, sortCombos } from "../src/metrics";
+import { estimateCost, resolveCost } from "../src/pricing";
+import { CodexCliRunner } from "../src/runners/codexCli";
+import { MockRunner } from "../src/runners/mock";
+import { parserFor } from "../src/transcripts/index";
+
+function tmp(): string {
+ return mkdtempSync(join(tmpdir(), "theseus-"));
+}
+
+async function mockResult(
+ comboId: string,
+ agent: string,
+ model: string,
+ harness: string,
+ bench: string,
+ taskId: string,
+) {
+ const runner = new MockRunner(0);
+ const work = tmp();
+ const art = await runner.run({
+ combo: { comboId, agent, model, harness, valid: true },
+ taskId,
+ runIdx: 0,
+ workDir: work,
+ timeoutS: 5,
+ seed: 1,
+ bench,
+ });
+ const parsed = parserFor(agent).parse(art.transcriptPath, { model });
+ return { art, parsed };
+}
+
+describe("CO1 totalTokens == sum of token fields", () => {
+ it("holds for cc and codex parsed transcripts", async () => {
+ for (const [agent, model, harness] of [
+ ["cc", "opus4.8", "omc"],
+ ["codex", "gpt5.5", "none"],
+ ] as const) {
+ const { parsed } = await mockResult(
+ `${agent}+${model}+${harness}`,
+ agent,
+ model,
+ harness,
+ "subagent",
+ "subagent-102",
+ );
+ expect(parsed.totalTokens).toBe(
+ parsed.inputTokens +
+ parsed.outputTokens +
+ parsed.cacheReadTokens +
+ parsed.cacheCreationTokens,
+ );
+ }
+ });
+});
+
+describe("CO2 subagentCount <= toolCalls", () => {
+ it("subagents are a subset of tool calls", async () => {
+ const { parsed } = await mockResult(
+ "cc+opus4.8+omc",
+ "cc",
+ "opus4.8",
+ "omc",
+ "subagent",
+ "subagent-101",
+ );
+ expect(parsed.subagentCount).toBeLessThanOrEqual(parsed.toolCalls);
+ });
+ it("codex/gpt has zero subagents (single loop)", async () => {
+ const { parsed } = await mockResult(
+ "codex+gpt5.5+none",
+ "codex",
+ "gpt5.5",
+ "none",
+ "subagent",
+ "subagent-101",
+ );
+ expect(parsed.subagentCount).toBe(0);
+ });
+});
+
+describe("CO3 sort base key: subagentCount → totalTokens → wallTimeMs", () => {
+ it("orders ascending across the three keys", () => {
+ const base = (over: Partial<ComboMetrics>): ComboMetrics =>
+ ({
+ comboId: "x",
+ runCount: 1,
+ accuracy: 0,
+ accuracyAtK: 0,
+ subagentCount: 0,
+ totalTokens: 0,
+ wallTimeMs: 0,
+ inputTokens: 0,
+ outputTokens: 0,
+ cacheReadTokens: 0,
+ cacheCreationTokens: 0,
+ costUsd: null,
+ estimatedCostUsd: null,
+ costSource: "none",
+ toolCalls: 0,
+ skillFires: 0,
+ mcpCalls: 0,
+ numTurns: 0,
+ qualityScore: null,
+ perTask: {},
+ ...over,
+ }) as ComboMetrics;
+ const m = [
+ base({ comboId: "a", subagentCount: 2, totalTokens: 100, wallTimeMs: 100 }),
+ base({ comboId: "b", subagentCount: 0, totalTokens: 999, wallTimeMs: 50 }),
+ base({ comboId: "c", subagentCount: 0, totalTokens: 100, wallTimeMs: 80 }),
+ base({ comboId: "d", subagentCount: 0, totalTokens: 100, wallTimeMs: 10 }),
+ ];
+ expect(sortCombos(m).map((x) => x.comboId)).toEqual(["d", "c", "b", "a"]);
+ });
+});
+
+describe("CO4 cost precedence: actual > estimated > none", () => {
+ it("uses actual when present", () => {
+ const r = resolveCost("opus4.8", 1000, 1000, 0, 0, 1.23);
+ expect(r.costSource).toBe("actual");
+ expect(r.costUsd).toBe(1.23);
+ });
+ it("falls back to estimate when no actual but pricing known", () => {
+ const r = resolveCost("gpt5.5", 1_000_000, 0, 0, 0, null);
+ expect(r.costSource).toBe("estimated");
+ expect(r.costUsd).toBeCloseTo(1.25, 5);
+ });
+ it("none when pricing unknown and no actual", () => {
+ const r = resolveCost("gpt5-codex", 1000, 1000, 0, 0, null); // resolved 'default' → no pricing
+ expect(r.costSource).toBe("none");
+ expect(r.costUsd).toBeNull();
+ });
+});
+
+describe("CO5 null != 0 (uncollected stays null)", () => {
+ it("estimateCost returns null (not 0) for unpriced models", () => {
+ expect(estimateCost("gpt5-codex", 1000, 1000, 0, 0)).toBeNull();
+ expect(estimateCost("fable5", 1000, 1000, 0, 0)).toBeNull();
+ });
+});
+
+describe("CO6 codex failure is fail-soft", () => {
+ it("missing codex binary → success:false, artifact still written", async () => {
+ const runner = new CodexCliRunner();
+ const work = tmp();
+ const art = await runner.run({
+ combo: {
+ comboId: "codex+gpt5.5+none",
+ agent: "codex",
+ model: "gpt5.5",
+ harness: "none",
+ valid: true,
+ },
+ taskId: "local-hello",
+ runIdx: 0,
+ workDir: work,
+ timeoutS: 2,
+ seed: 0,
+ bench: "local",
+ });
+ expect(art.success).toBe(false);
+ expect(art.error).toBeTruthy();
+ // transcript + output 항상 존재
+ expect(() => readFileSync(art.transcriptPath, "utf8")).not.toThrow();
+ expect(() => readFileSync(art.resultPath, "utf8")).not.toThrow();
+ });
+});
+
+describe("CO7 golden correctness via independent solvers", () => {
+ it("dijkstra (independent Bellman-Ford) matches verify", () => {
+ const work = tmp();
+ setupTask("subagent-101", work);
+ const g = JSON.parse(readFileSync(join(work, "graph.json"), "utf8"));
+ // 독립 Bellman-Ford
+ const dist = new Array(g.n).fill(Number.POSITIVE_INFINITY);
+ dist[0] = 0;
+ for (let i = 0; i < g.n - 1; i++)
+ for (const [u, v, w] of g.edges) if (dist[u] + w < dist[v]) dist[v] = dist[u] + w;
+ const ans = dist.map((d: number) => (d === Number.POSITIVE_INFINITY ? -1 : d));
+ writeFileSync(join(work, "distances.json"), JSON.stringify(ans));
+ expect(verify("subagent-101", work)).toBe(true);
+ });
+ it("ledger rollup (independent sum) matches verify", () => {
+ const work = tmp();
+ setupTask("subagent-102", work);
+ const bal: Record<string, number> = {};
+ for (let s = 0; s < 24; s++) {
+ const rows = JSON.parse(
+ readFileSync(join(work, "shards", `shard-${String(s).padStart(2, "0")}.json`), "utf8"),
+ );
+ for (const r of rows) bal[r.account] = (bal[r.account] ?? 0) + r.delta;
+ }
+ const out: Record<string, number> = {};
+ for (const [k, v] of Object.entries(bal)) if (v !== 0) out[k] = v;
+ writeFileSync(join(work, "balances.json"), JSON.stringify(out));
+ expect(verify("subagent-102", work)).toBe(true);
+ });
+});
diff --git a/tests/integration.test.ts b/tests/integration.test.ts
new file mode 100644
index 0000000..4060d8b
--- /dev/null
+++ b/tests/integration.test.ts
@@ -0,0 +1,94 @@
+/**
+ * 통합 — 오케스트레이터 파이프라인 + 기록 레이아웃 + 결정성.
+ */
+import { existsSync, mkdtempSync, readFileSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import { describe, expect, it } from "vitest";
+import { aggregateAll, sortCombos } from "../src/metrics";
+import type { RunOptions } from "../src/models";
+import { execute } from "../src/orchestrator";
+import { loadMeta, loadResults } from "../src/recorder";
+
+function opts(out: string, over: Partial<RunOptions> = {}): RunOptions {
+ return {
+ models: ["opus4.8"],
+ agents: ["cc"],
+ harnesses: ["none", "omc"],
+ bench: "subagent",
+ tasks: 3,
+ runs: 2,
+ seed: 11,
+ runner: "mock",
+ concurrency: 4,
+ timeoutS: 5,
+ outDir: out,
+ judge: "heuristic",
+ score: false,
+ balanced: false,
+ language: "kr",
+ ...over,
+ };
+}
+
+describe("orchestrator pipeline & recorder layout", () => {
+ it("writes results.jsonl, meta.json, accuracy/, flow.json; results reload", async () => {
+ const out = mkdtempSync(join(tmpdir(), "theseus-int-"));
+ const res = await execute(opts(out));
+ expect(existsSync(join(res.runDir, "results.jsonl"))).toBe(true);
+ expect(existsSync(join(res.runDir, "meta.json"))).toBe(true);
+ expect(existsSync(res.reportPath)).toBe(true);
+ expect(existsSync(res.graphPath)).toBe(true);
+
+ const meta = loadMeta(out, res.runId)!;
+ expect(meta.bench).toBe("subagent");
+ expect(meta.tasks).toHaveLength(3);
+ expect(meta.mock).toBe(true);
+
+ const results = loadResults(out, res.runId);
+ // 2 combos × 3 tasks × 2 runs = 12
+ expect(results).toHaveLength(12);
+ // judge=heuristic → quality 채점됨(비-null)
+ expect(results.every((r) => r.qualityScore !== null)).toBe(true);
+
+ // flow.json 존재(한 work dir 샘플)
+ const sample = results[0]!;
+ const wd = join(res.runDir, "work");
+ expect(existsSync(wd)).toBe(true);
+ void sample;
+
+ // accuracy 파일
+ expect(existsSync(join(res.runDir, "accuracy"))).toBe(true);
+ });
+
+ it("determinism: same opts → identical aggregated metrics", async () => {
+ const out1 = mkdtempSync(join(tmpdir(), "theseus-d1-"));
+ const out2 = mkdtempSync(join(tmpdir(), "theseus-d2-"));
+ const a = await execute(opts(out1));
+ const b = await execute(opts(out2));
+ const ma = sortCombos(a.metrics).map((m) => [
+ m.comboId,
+ m.subagentCount,
+ m.totalTokens,
+ m.accuracy,
+ ]);
+ const mb = sortCombos(b.metrics).map((m) => [
+ m.comboId,
+ m.subagentCount,
+ m.totalTokens,
+ m.accuracy,
+ ]);
+ expect(ma).toEqual(mb);
+ });
+
+ it("aggregateAll accuracy is bounded 0..100", async () => {
+ const out = mkdtempSync(join(tmpdir(), "theseus-acc-"));
+ const res = await execute(opts(out));
+ for (const m of res.metrics) {
+ expect(m.accuracy).toBeGreaterThanOrEqual(0);
+ expect(m.accuracy).toBeLessThanOrEqual(100);
+ expect(m.accuracyAtK).toBeGreaterThanOrEqual(0);
+ expect(m.accuracyAtK).toBeLessThanOrEqual(100);
+ }
+ });
+});
diff --git a/tests/ux_presentation.test.ts b/tests/ux_presentation.test.ts
new file mode 100644
index 0000000..551b351
--- /dev/null
+++ b/tests/ux_presentation.test.ts
@@ -0,0 +1,107 @@
+/**
+ * UX (표현) 검증 지표 — PRD §19.
+ * UX1 산점도 · UX2 매트릭스 · UX3 흐름그래프 · UX4 노드 토글(스킬·로그) ·
+ * UX5 i18n EN↔KR(한국어 누수 0) · UX6 self-contained(외부 JS/CDN/script 0)
+ */
+import { existsSync, mkdtempSync, readFileSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import { beforeAll, describe, expect, it } from "vitest";
+import { normalizeLang, tr } from "../src/i18n";
+import type { Lang, RunOptions } from "../src/models";
+import { execute } from "../src/orchestrator";
+
+function baseOpts(out: string, language: Lang): RunOptions {
+ return {
+ models: ["opus4.8", "gpt5.5"],
+ agents: ["cc", "codex"],
+ harnesses: ["none", "omc"],
+ bench: "subagent",
+ tasks: 4,
+ runs: 1,
+ seed: 7,
+ runner: "mock",
+ concurrency: 4,
+ timeoutS: 5,
+ outDir: out,
+ judge: "none",
+ score: true,
+ balanced: false,
+ language,
+ };
+}
+
+let enHtml = "";
+let krHtml = "";
+let graphHtml = "";
+
+beforeAll(async () => {
+ const out = mkdtempSync(join(tmpdir(), "theseus-run-"));
+ const en = await execute(baseOpts(out, "en"));
+ enHtml = readFileSync(en.reportPath, "utf8");
+ graphHtml = readFileSync(en.graphPath, "utf8");
+ const kr = await execute(baseOpts(out, "kr"));
+ krHtml = readFileSync(kr.reportPath, "utf8");
+});
+
+describe("UX1 scatter present", () => {
+ it("report contains a cost-performance scatter SVG", () => {
+ expect(enHtml).toMatch(/Cost-performance scatter/);
+ expect(enHtml).toContain("<svg");
+ });
+});
+
+describe("UX2 task matrix present", () => {
+ it("report contains the pass/fail matrix", () => {
+ expect(enHtml).toMatch(/Task pass\/fail matrix/);
+ expect(enHtml).toContain('class="matrix"');
+ });
+});
+
+describe("UX3 flow graph present", () => {
+ it("report and graph.html contain inline flow SVGs", () => {
+ expect(enHtml).toMatch(/Subagent flow graphs/);
+ expect(graphHtml).toContain("<svg");
+ expect(graphHtml).toMatch(/MAIN LOOP/);
+ });
+});
+
+describe("UX4 node toggle (skills/log)", () => {
+ it("native details toggles exist with no external JS", () => {
+ expect(graphHtml).toContain("<details");
+ expect(graphHtml).toMatch(/Skills|Tools|Log/);
+ });
+});
+
+describe("UX5 i18n EN↔KR switch (no korean leak in EN)", () => {
+ it("EN report has english headers and no Korean section titles", () => {
+ expect(enHtml).toMatch(/Accuracy/);
+ expect(enHtml).toMatch(/Efficiency/);
+ expect(enHtml).not.toMatch(/정확도|효율|관점별 최적/);
+ });
+ it("KR report has Korean headers", () => {
+ expect(krHtml).toMatch(/정확도/);
+ expect(krHtml).toMatch(/효율/);
+ });
+ it("normalizeLang + tr behave", () => {
+ expect(normalizeLang("english")).toBe("en");
+ expect(normalizeLang("한국어")).toBe("kr");
+ expect(normalizeLang("zzz")).toBe("kr");
+ expect(tr("en", "sec_accuracy")).toMatch(/Accuracy/);
+ expect(tr("kr", "sec_accuracy")).toMatch(/정확도/);
+ });
+});
+
+describe("UX6 self-contained HTML", () => {
+ it("no <script>, no CDN, no external src/link", () => {
+ for (const html of [enHtml, krHtml, graphHtml]) {
+ expect(html).not.toMatch(/<script/i);
+ expect(html).not.toMatch(/cdn|googleapis|unpkg|jsdelivr/i);
+ expect(html).not.toMatch(/src=/i);
+ expect(html).not.toMatch(/<link/i);
+ // 유일하게 허용되는 http 참조는 SVG 네임스페이스
+ const urls = html.match(/https?:\/\/[^"'\s]*/g) ?? [];
+ expect(urls.every((u) => u === "http://www.w3.org/2000/svg")).toBe(true);
+ }
+ });
+});
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000..07ae51b
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,24 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "module": "ESNext",
+ "moduleResolution": "Bundler",
+ "lib": ["ES2023"],
+ "types": ["node"],
+ "strict": true,
+ "noUncheckedIndexedAccess": true,
+ "noImplicitOverride": true,
+ "noFallthroughCasesInSwitch": true,
+ "esModuleInterop": true,
+ "skipLibCheck": true,
+ "resolveJsonModule": true,
+ "forceConsistentCasingInFileNames": true,
+ "declaration": false,
+ "sourceMap": true,
+ "outDir": "dist",
+ "rootDir": ".",
+ "noEmit": true
+ },
+ "include": ["src", "tests"],
+ "exclude": ["node_modules", "dist"]
+}
diff --git a/tsup.config.ts b/tsup.config.ts
new file mode 100644
index 0000000..df29d99
--- /dev/null
+++ b/tsup.config.ts
@@ -0,0 +1,13 @@
+import { defineConfig } from "tsup";
+
+export default defineConfig({
+ entry: { cli: "src/cli.ts" },
+ format: ["esm"],
+ target: "node20",
+ platform: "node",
+ clean: true,
+ sourcemap: true,
+ // Native / optional deps stay external so install failures degrade softly.
+ external: ["better-sqlite3", "ink", "react"],
+ banner: { js: "#!/usr/bin/env node" },
+});
diff --git a/vitest.config.ts b/vitest.config.ts
new file mode 100644
index 0000000..09657cb
--- /dev/null
+++ b/vitest.config.ts
@@ -0,0 +1,13 @@
+import { defineConfig } from "vitest/config";
+
+export default defineConfig({
+ test: {
+ include: ["tests/**/*.test.ts"],
+ environment: "node",
+ coverage: {
+ provider: "v8",
+ include: ["src/**/*.ts"],
+ reporter: ["text", "html"],
+ },
+ },
+});