Skip to content
TypeScript

Stage 3: consolidate renderers, finish the rebrand, fix packaging

Claude779b5ab57c5c
diff --git a/README.ja.md b/README.ja.md
index f68f5bc..c27f367 100644
--- a/README.ja.md
+++ b/README.ja.md
@@ -34,9 +34,9 @@ flowchart LR
RM --> V(["<b>可視化</b><br/>report · graph · TUI · view"]):::out
V -. "選択を見直して再実行" .-> S
- classDef pick fill:#c08a3e,stroke:#0b2942,color:#0b2942;
- classDef step fill:#0b2942,stroke:#7fb2c9,color:#f5f1e6;
- classDef out fill:#15324f,stroke:#c08a3e,color:#f5f1e6;
+ classDef pick fill:#cdd2d8,stroke:#0a0b0d,color:#0a0b0d;
+ classDef step fill:#15171b,stroke:#8b929b,color:#eef0f2;
+ classDef out fill:#1d2b33,stroke:#cdd2d8,color:#eef0f2;
```
実行ごとの成果物: 構造化データ(`results.jsonl` + 任意の `theseus.sqlite`)、**自己完結型** の
diff --git a/README.ko.md b/README.ko.md
index a88ba81..ec30fcb 100644
--- a/README.ko.md
+++ b/README.ko.md
@@ -33,9 +33,9 @@ flowchart LR
RM --> V(["<b>시각화</b><br/>report · graph · TUI · view"]):::out
V -. "선택을 다듬어 다시 실행" .-> S
- classDef pick fill:#c08a3e,stroke:#0b2942,color:#0b2942;
- classDef step fill:#0b2942,stroke:#7fb2c9,color:#f5f1e6;
- classDef out fill:#15324f,stroke:#c08a3e,color:#f5f1e6;
+ classDef pick fill:#cdd2d8,stroke:#0a0b0d,color:#0a0b0d;
+ classDef step fill:#15171b,stroke:#8b929b,color:#eef0f2;
+ classDef out fill:#1d2b33,stroke:#cdd2d8,color:#eef0f2;
```
매 실행 산출물: 구조화 데이터(`results.jsonl` + 선택 `theseus.sqlite`), **자기완결형(self‑contained)**
diff --git a/README.md b/README.md
index ebec2d7..e54f724 100644
--- a/README.md
+++ b/README.md
@@ -35,9 +35,9 @@ flowchart LR
RM --> V(["<b>visualize</b><br/>report · graph · TUI · view"]):::out
V -. "refine the selection — run again" .-> S
- classDef pick fill:#c08a3e,stroke:#0b2942,color:#0b2942;
- classDef step fill:#0b2942,stroke:#7fb2c9,color:#f5f1e6;
- classDef out fill:#15324f,stroke:#c08a3e,color:#f5f1e6;
+ classDef pick fill:#cdd2d8,stroke:#0a0b0d,color:#0a0b0d;
+ classDef step fill:#15171b,stroke:#8b929b,color:#eef0f2;
+ classDef out fill:#1d2b33,stroke:#cdd2d8,color:#eef0f2;
```
Every run emits: structured data (`results.jsonl` + optional `theseus.sqlite`), a **self‑contained**
diff --git a/README.zh.md b/README.zh.md
index fabcac9..ae5310a 100644
--- a/README.zh.md
+++ b/README.zh.md
@@ -33,9 +33,9 @@ flowchart LR
RM --> V(["<b>可视化</b><br/>report · graph · TUI · view"]):::out
V -. "调整选择后再次运行" .-> S
- classDef pick fill:#c08a3e,stroke:#0b2942,color:#0b2942;
- classDef step fill:#0b2942,stroke:#7fb2c9,color:#f5f1e6;
- classDef out fill:#15324f,stroke:#c08a3e,color:#f5f1e6;
+ classDef pick fill:#cdd2d8,stroke:#0a0b0d,color:#0a0b0d;
+ classDef step fill:#15171b,stroke:#8b929b,color:#eef0f2;
+ classDef out fill:#1d2b33,stroke:#cdd2d8,color:#eef0f2;
```
每次运行产出:结构化数据(`results.jsonl` + 可选 `theseus.sqlite`)、**自包含(self‑contained)** 的
diff --git a/docs/brand.md b/docs/brand.md
index 3ab1f8c..0bb5e07 100644
--- a/docs/brand.md
+++ b/docs/brand.md
@@ -12,7 +12,7 @@ calls, subagent flow) so you choose your own trade-off. This is the North Star:
then decide* — never a leaderboard.
Single source of truth: `src/brand.ts` (`THEME`, `PHILOSOPHY`, `TAGLINE`, `logoBanner`, `svgWordmark`,
-`wavePattern`).
+`svgWordmark`).
## Palette (nautical / cartographic)
diff --git a/package.json b/package.json
index bec2657..ff26b2c 100644
--- a/package.json
+++ b/package.json
@@ -2,6 +2,26 @@
"name": "theseus",
"version": "0.1.0",
"description": "theseus — compare model (L0) × agent (L1) × harness (L2) combinations on your own local tasks",
+ "license": "MIT",
+ "author": "OlympusResearch",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/OlympusResearch/theseus.git"
+ },
+ "homepage": "https://github.com/OlympusResearch/theseus#readme",
+ "bugs": {
+ "url": "https://github.com/OlympusResearch/theseus/issues"
+ },
+ "keywords": [
+ "llm",
+ "agent",
+ "benchmark",
+ "comparison",
+ "claude",
+ "codex",
+ "harness",
+ "cli"
+ ],
"type": "module",
"bin": {
"theseus": "dist/cli.js"
@@ -20,7 +40,8 @@
"lint": "biome check src tests scripts",
"format": "biome format --write src tests scripts",
"test": "vitest run",
- "test:cov": "vitest run --coverage"
+ "test:cov": "vitest run --coverage",
+ "prepublishOnly": "npm run build"
},
"dependencies": {
"cli-table3": "^0.6.5",
diff --git a/scripts/build-site.ts b/scripts/build-site.ts
index 08c0e36..ed2971d 100644
--- a/scripts/build-site.ts
+++ b/scripts/build-site.ts
@@ -1,14 +1,14 @@
/**
* GitHub Pages 사이트 빌드 (report gallery).
* mock 데모 비교를 1회 실행 → 생성된 self-contained report.html/graph.html 을 site/ 로 복사하고,
- * 항해 테마의 index.html(랜딩 + 갤러리)을 만든다. 외부 리소스 0(브랜딩 인라인).
+ * 알파인(Olympus) 테마의 index.html(랜딩 + 갤러리)을 만든다. 외부 리소스 0(브랜딩 인라인).
* 실행: `npm run build:site` (tsx scripts/build-site.ts).
*/
import { copyFileSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
import { mkdtempSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
-import { PHILOSOPHY, TAGLINE, THEME, svgWordmark } from "../src/brand";
+import { PHILOSOPHY, TAGLINE, THEME, principles, svgWordmark } from "../src/brand";
import { execute } from "../src/orchestrator";
const SITE = "site";
@@ -57,6 +57,7 @@ function indexHtml(): string {
return `<!doctype html><html lang="en"><head><meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>theseus — compare model × agent × harness</title>
+<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%230a0b0d'/%3E%3Cpath d='M5 24 L12 10 L15 15 L19 7 L23 16 L27 24 Z' fill='%23eef0f2'/%3E%3C/svg%3E">
<style>
:root{color-scheme:dark}
body{font-family:ui-sans-serif,system-ui,sans-serif;background:${THEME.sea};color:${THEME.sail};margin:0;padding:0;line-height:1.5}
@@ -71,20 +72,21 @@ header{display:flex;align-items:center;gap:16px;margin-bottom:8px}
.card h2{margin:0 0 6px;font-size:17px}
.card p{margin:0 0 10px;font-size:13px;opacity:.85}
.go{color:${THEME.rope};font-weight:700;font-size:13px}
-.banner{background:rgba(245,158,11,.15);border:1px solid ${THEME.rope};color:${THEME.sail};padding:9px 13px;border-radius:9px;font-size:13px;margin:24px 0}
+.banner{background:rgba(205,159,90,.12);border:1px solid #8a6a3a;color:#d9b98a;padding:9px 13px;border-radius:9px;font-size:13px;margin:24px 0}
.links{margin-top:28px;font-size:13px}
.links a{color:${THEME.rope};text-decoration:none;font-weight:600}
-.foot{margin-top:40px;color:${THEME.mist};font-size:12px}
+.principles{margin-top:36px;color:#565b62;font-size:10px;letter-spacing:.18em;text-align:center}
+.foot{margin-top:16px;color:${THEME.mist};font-size:12px}
code{font-family:ui-monospace,monospace;background:rgba(255,255,255,.06);padding:1px 6px;border-radius:5px}
</style></head><body><div class="wrap">
<header>${svgWordmark()}<span class="tag">${TAGLINE.en}</span></header>
-<p class="phil">⚓ ${PHILOSOPHY.en}</p>
+<p class="phil">▲ ${PHILOSOPHY.en}</p>
<div class="banner">This gallery is a <b>mock</b> (offline, deterministic) demo run — synthetic numbers, not real measurements. Run it yourself with <code>theseus --runner mock …</code>.</div>
<div class="cards">
- ${card("./report.html", "📊 Comparison report", "Accuracy, efficiency, cost/accuracy Pareto frontier, task pass/fail matrix, failure causes — one self-contained page.")}
- ${card("./graph.html", "🌳 Subagent flow graph", "Per-combo call-flow card tree: main loop → subagents, depth, tokens, cost, with expandable per-node detail.")}
+ ${card("./report.html", "Comparison report", "Accuracy, efficiency, cost/accuracy Pareto frontier, task pass/fail matrix, failure causes — one self-contained page.")}
+ ${card("./graph.html", "Subagent flow graph", "Per-combo call-flow card tree: main loop → subagents, depth, tokens, cost, with expandable per-node detail.")}
</div>
<div class="links">
@@ -93,6 +95,9 @@ code{font-family:ui-monospace,monospace;background:rgba(255,255,255,.06);padding
&nbsp;·&nbsp; <a href="${REPO}/blob/main/docs/brand.md">Philosophy</a>
</div>
+<div class="principles">${principles("en")
+ .map(([t]) => t.toUpperCase())
+ .join("&nbsp;&nbsp;·&nbsp;&nbsp;")}</div>
<p class="foot">Generated by <code>npm run build:site</code> · regenerated by CI on every push to <code>main</code>.</p>
</div></body></html>`;
}
diff --git a/src/brand.ts b/src/brand.ts
index 6684ec1..e4c9426 100644
--- a/src/brand.ts
+++ b/src/brand.ts
@@ -104,10 +104,3 @@ export function svgWordmark(): string {
<text x="61" y="37" font-family="ui-sans-serif,system-ui,sans-serif" font-size="8" font-weight="500" letter-spacing="4" fill="${mist}">OLYMPUS RESEARCH</text>
</svg>`;
}
-
-/** SVG 배경용 옅은 능선 격자(흐름 그래프 캔버스 장식). 매우 옅게. */
-export function wavePattern(id = "theseus-ridge"): string {
- return `<defs><pattern id="${id}" width="48" height="24" patternUnits="userSpaceOnUse">
-<path d="M0 22 L12 8 L20 16 L30 6 L40 18 L48 10" fill="none" stroke="${THEME.foam}" stroke-width="1" opacity="0.1"/>
-</pattern></defs>`;
-}
diff --git a/src/cli.ts b/src/cli.ts
index 79917e5..9ce88da 100644
--- a/src/cli.ts
+++ b/src/cli.ts
@@ -11,7 +11,6 @@ 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";
@@ -25,6 +24,7 @@ import { runTui } from "./tui";
import { verifyCombos } from "./verify";
import { openInBrowser, openUrl } from "./viz/open";
import { serveRuns } from "./viz/serve";
+import { resultsTableString } from "./viz/table";
import { renderTerminal } from "./viz/terminal";
function splitList(s: string | undefined): string[] {
@@ -77,7 +77,7 @@ function addCompareOptions(cmd: Command): Command {
.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("--runner <name>", "auto|mock|cc|codex|opencode|openclaw|hermes|tb", "auto")
.option("--concurrency <n>", "parallel executions", "4")
.option("--timeout <s>", "per-task timeout seconds", "600")
.option("--out <dir>", "output dir", "runs")
@@ -127,31 +127,8 @@ function printResultsTable(
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());
+ console.log(resultsTableString(results, lang));
const best = bestByPerspective(results, lang);
for (const [label, combo] of Object.entries(best))
diff --git a/src/config.ts b/src/config.ts
index 9ad4395..e6a36df 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -142,11 +142,3 @@ export function providerFor(family: Family): string {
if (family === "open") return "openrouter";
return "anthropic";
}
-
-export function harnessDef(name: string): HarnessDef | undefined {
- return HARNESSES[name];
-}
-
-export function benchDef(name: string): BenchDef | undefined {
- return BENCHES[name];
-}
diff --git a/src/pricing.ts b/src/pricing.ts
index 82ad2df..3b6c098 100644
--- a/src/pricing.ts
+++ b/src/pricing.ts
@@ -55,10 +55,6 @@ export function estimateCost(
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).
diff --git a/src/session.ts b/src/session.ts
index b22f075..19458dc 100644
--- a/src/session.ts
+++ b/src/session.ts
@@ -13,20 +13,20 @@
* 비동기 액션으로 분리해 루프에서 처리 → 테스트 가능.
*/
import * as readline from "node:readline";
-import Table from "cli-table3";
import pc from "picocolors";
import { listLocalBenches } from "./benches/index";
import { logoBanner } from "./brand";
import { expand } from "./combos";
import { AGENTS, HARNESSES, MODELS, isKnownModel } from "./config";
-import { type Translator, normalizeLang, translator } from "./i18n";
-import { type aggregateAll, bestByPerspective, sortCombos } from "./metrics";
+import { normalizeLang, translator } from "./i18n";
+import { bestByPerspective } from "./metrics";
import type { Lang, RunOptions, ViewMode } from "./models";
import { execute } from "./orchestrator";
import { analyze } from "./preflight";
import { listRuns } from "./recorder";
import { openUrl } from "./viz/open";
import { serveRuns } from "./viz/serve";
+import { resultsTableString } from "./viz/table";
export interface SessionState {
goal: string;
@@ -40,6 +40,8 @@ export interface SessionState {
runner: string;
judge: string;
score: boolean;
+ concurrency: number;
+ timeoutS: number;
view: ViewMode;
language: Lang;
outDir: string;
@@ -72,6 +74,8 @@ export function defaultState(language: Lang, outDir: string): SessionState {
runner: "auto",
judge: "none",
score: false,
+ concurrency: 4,
+ timeoutS: 600,
view: "inline",
language,
outDir,
@@ -139,6 +143,7 @@ function configLines(state: SessionState): string[] {
` harness : ${state.harnesses.join(", ")}`,
` bench : ${state.bench} tasks: ${state.tasks} runs: ${state.runs} seed: ${state.seed}`,
` runner : ${state.runner} judge: ${state.judge} score: ${state.score} lang: ${state.language}`,
+ ` limits : concurrency ${state.concurrency} · timeout ${state.timeoutS}s`,
` combos : ${pc.green(`${valid.length} valid`)}${
excluded.length ? pc.yellow(` · ${excluded.length} excluded`) : ""
}`,
@@ -155,7 +160,7 @@ const HELP = [
` ${pc.cyan("/agents")} <a,b,…> L1 — cc,codex,opencode,openclaw,hermes`,
` ${pc.cyan("/harness")} <a,b,…> L2 — none,superpowers,omc,ecc,omx,lazycodex,omo,ponytail,mattpocock`,
` ${pc.cyan("/bench")} <name> ${listLocalBenches().join(",")} | terminal-bench-v2`,
- ` ${pc.cyan("/runs")} ${pc.cyan("/tasks")} ${pc.cyan("/seed")} <n> sweep size`,
+ ` ${pc.cyan("/runs")} ${pc.cyan("/tasks")} ${pc.cyan("/seed")} ${pc.cyan("/concurrency")} <n> ${pc.cyan("/timeout")} <s> sweep size & limits`,
` ${pc.cyan("/runner")} <name> auto|mock|cc|codex|opencode|openclaw|hermes|tb`,
` ${pc.cyan("/judge")} <name> ${pc.cyan("/score")} on|off ${pc.cyan("/lang")} en|kr|ja|zh`,
` ${pc.cyan("/run")} run the comparison → table + report.html`,
@@ -242,8 +247,9 @@ export function reduce(prev: SessionState, raw: string): Reduced {
return none();
case "/runs":
case "/tasks":
- case "/seed": {
- const key = cmd.slice(1) as "runs" | "tasks" | "seed";
+ case "/seed":
+ case "/concurrency": {
+ const key = cmd.slice(1) as "runs" | "tasks" | "seed" | "concurrency";
const n = Number.parseInt(arg, 10);
if (Number.isFinite(n) && n >= 0) {
state[key] = n;
@@ -251,6 +257,14 @@ export function reduce(prev: SessionState, raw: string): Reduced {
} else lines.push(` ${key}: ${state[key]}`);
return none();
}
+ case "/timeout": {
+ const n = Number.parseInt(arg, 10);
+ if (Number.isFinite(n) && n > 0) {
+ state.timeoutS = n;
+ lines.push(` timeout: ${pc.green(`${n}s`)}`);
+ } else lines.push(` timeout: ${state.timeoutS}s`);
+ return none();
+ }
case "/runner":
if (arg) {
state.runner = arg;
@@ -305,8 +319,8 @@ function toRunOptions(s: SessionState): RunOptions {
runs: s.runs,
seed: s.seed,
runner: s.runner,
- concurrency: 4,
- timeoutS: 600,
+ concurrency: s.concurrency,
+ timeoutS: s.timeoutS,
outDir: s.outDir,
judge: s.judge,
score: s.score,
@@ -318,22 +332,6 @@ function toRunOptions(s: SessionState): RunOptions {
};
}
-function resultsTable(metrics: ReturnType<typeof aggregateAll>, lang: Lang, t: Translator): string {
- const table = new Table({
- head: [t("col_combo"), t("col_acc"), t("col_consistency"), t("col_effcost"), t("col_wall")],
- });
- for (const m of sortCombos(metrics)) {
- table.push([
- m.comboId,
- `${m.accuracy.toFixed(0)}%`,
- `${(m.consistency ?? 0).toFixed(0)}%`,
- m.effectiveCostUsd == null ? pc.dim("—") : `$${m.effectiveCostUsd.toFixed(4)}`,
- `${(m.wallTimeMs / 1000).toFixed(1)}s`,
- ]);
- }
- return table.toString();
-}
-
async function doRun(state: SessionState): Promise<void> {
const t = translator(state.language);
if (!state.models.length || !state.agents.length) {
@@ -360,7 +358,7 @@ async function doRun(state: SessionState): Promise<void> {
console.log(pc.dim(` running ${pf.scale} …`));
const res = await execute(toRunOptions(state));
if (res.mock) console.log(pc.yellow(` ${t("mock_banner")}`));
- console.log(resultsTable(res.metrics, state.language, t));
+ console.log(resultsTableString(res.metrics, state.language));
for (const [label, combo] of Object.entries(bestByPerspective(res.metrics, state.language)))
console.log(` ${pc.green("▸")} ${label}: ${combo}`);
console.log(` ${t("report_path")}: ${pc.bold(res.reportPath)}`);
diff --git a/src/tui.ts b/src/tui.ts
index cbb99eb..e40de3a 100644
--- a/src/tui.ts
+++ b/src/tui.ts
@@ -5,13 +5,13 @@
*/
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";
import { openInBrowser } from "./viz/open";
+import { resultsTableString } from "./viz/table";
export interface TuiOpts {
out: string;
@@ -32,26 +32,7 @@ function fallbackRender(t: Translator, lang: Lang, opts: TuiOpts): string | null
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());
+ console.log(resultsTableString(metrics, lang));
for (const [label, combo] of Object.entries(bestByPerspective(metrics, lang)))
console.log(` ${pc.green("▸")} ${label}: ${combo}`);
diff --git a/src/viz/open.ts b/src/viz/open.ts
index 6ac5f1e..5662211 100644
--- a/src/viz/open.ts
+++ b/src/viz/open.ts
@@ -24,7 +24,10 @@ export function openUrl(url: string): boolean {
function launch(target: string): boolean {
try {
- spawn(opener(), [target], { stdio: "ignore", detached: true }).unref();
+ // win32 의 start 는 cmd 내장 명령 — 직접 spawn 하면 ENOENT. cmd /c 로 감싼다.
+ const [bin, args] =
+ process.platform === "win32" ? ["cmd", ["/c", "start", "", target]] : [opener(), [target]];
+ spawn(bin, args as string[], { stdio: "ignore", detached: true }).unref();
return true;
} catch {
return false;
diff --git a/src/viz/table.ts b/src/viz/table.ts
new file mode 100644
index 0000000..8fea50d
--- /dev/null
+++ b/src/viz/table.ts
@@ -0,0 +1,38 @@
+/**
+ * 결과 표 렌더러 — 단일 진실원천. cli(compare/results)·session(/run)·tui(폴백)가 공유한다.
+ * 컬럼 = 결정지표(정확도·일관성·$/solved) 우선 + 핵심 진단(비용·시간·서브에이전트·토큰).
+ */
+import Table from "cli-table3";
+import pc from "picocolors";
+import { tr } from "../i18n";
+import type { ComboMetrics } from "../metrics";
+import { sortCombos } from "../metrics";
+import type { Lang } from "../models";
+
+export function resultsTableString(metrics: ComboMetrics[], lang: Lang): string {
+ const table = new Table({
+ head: [
+ tr(lang, "col_combo"),
+ tr(lang, "col_acc"),
+ tr(lang, "col_consistency"),
+ tr(lang, "col_effcost"),
+ tr(lang, "col_cost"),
+ tr(lang, "col_wall"),
+ tr(lang, "col_subagents"),
+ tr(lang, "col_tokens"),
+ ],
+ });
+ for (const m of sortCombos(metrics)) {
+ table.push([
+ m.comboId,
+ `${m.accuracy.toFixed(1)}%`,
+ `${m.runsPassed ?? 0}/${m.runCount}`,
+ m.effectiveCostUsd == null ? pc.dim("—") : `$${m.effectiveCostUsd.toFixed(4)}`,
+ m.costUsd === null ? pc.dim("null") : `$${m.costUsd.toFixed(4)}`,
+ `${(m.wallTimeMs / 1000).toFixed(1)}s`,
+ String(m.subagentCount),
+ m.totalTokens.toLocaleString("en-US"),
+ ]);
+ }
+ return table.toString();
+}
diff --git a/src/viz/terminal.ts b/src/viz/terminal.ts
index 6daf338..c00e0a1 100644
--- a/src/viz/terminal.ts
+++ b/src/viz/terminal.ts
@@ -45,23 +45,24 @@ export function renderTerminal(metrics: ComboMetrics[], graphs: FlowGraph[], lan
}
};
+ // Olympus 알파인 모노크롬 — 실버(white)·글레이셔(cyan)·스틸(gray)·딥(blue). 무지개 금지.
chart(
tr(lang, "col_acc"),
(m) => m.accuracy,
- pc.green,
+ pc.white,
(n) => `${n.toFixed(1)}%`,
);
chart(tr(lang, "col_tokens"), (m) => m.totalTokens, pc.cyan, fmtTokens);
chart(
tr(lang, "col_cost"),
(m) => m.costUsd ?? Number.NaN,
- pc.yellow,
+ pc.gray,
(n) => `$${n.toFixed(4)}`,
);
chart(
tr(lang, "col_subagents"),
(m) => m.subagentCount,
- pc.magenta,
+ pc.blue,
(n) => String(n),
);
@@ -102,8 +103,8 @@ export function renderFlowTree(graph: FlowGraph): string {
children.forEach((n, i) => {
const last = i === children.length - 1;
const branch = last ? "└─ " : "├─ ";
- const tag = n.isMain ? pc.cyan("main") : pc.magenta(`sub·${n.harness}`);
- const mark = n.status === "fail" ? pc.red(" ✗") : n.highlight ? pc.yellow(" ★") : "";
+ const tag = n.isMain ? pc.white("main") : pc.cyan(`sub·${n.harness}`);
+ const mark = n.status === "fail" ? pc.red(" ✗") : n.highlight ? pc.white(" ★") : "";
const stat = pc.dim(`${fmtTokens(n.tokens)} tok · ${n.toolCalls} tools`);
lines.push(` ${prefix}${branch}${tag}${mark} ${stat}`);
walk(idxOf.get(n.id) ?? null, prefix + (last ? " " : "│ "));