Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.
TypeScript ai-agentsanthropicclaude-codeclicode-graphcodexcontext-engineeringcursordeveloper-toolsgeminiknowledge-graphllmmcpmcp-serveropen-sourceopenaitree-sitter
chore: drop 'enriched' segment from statusline
anirudhkumar-nanonets3e43368b70cb
diff --git a/src/claude/format.ts b/src/claude/format.tsindex 20a3287b..a07bce53 100644--- a/src/claude/format.ts+++ b/src/claude/format.ts@@ -10,12 +10,6 @@ const C = {};const SEP = C.muted(' · ');-export function enrichedSegment(s: Stats): string | null {- if (s.readyCount < 1) return null;- const pct = s.totalCount ? Math.round((s.readyCount / s.totalCount) * 100) : 0;- return C.indigo(`${pct}% enriched`);-}-export function freshnessSegment(s: Stats): string {if (s.syncing) return C.amber('syncing…');if (s.dirty && s.staleCount > 0) return C.amber(`⚠ ${s.staleCount} stale`);@@ -32,8 +26,6 @@ export function renderStatusline(return [C.muted('◤ graft · not built · run ') + C.text('graft build')];}const top = [C.muted('◤ ') + C.indigo('graft'), C.text(`${stats.nodeCount} nodes / ${stats.edgeCount} edges`)];- const enr = enrichedSegment(stats);- if (enr) top.push(enr);top.push(freshnessSegment(stats));const saved = session?.savedTokens ?? 0;if (saved > 0) top.push(C.indigo(`~${saved.toLocaleString()} tok saved`));diff --git a/test/claude-format.test.ts b/test/claude-format.test.tsindex fcf0984d..6f8f1d73 100644--- a/test/claude-format.test.ts+++ b/test/claude-format.test.ts@@ -1,6 +1,6 @@import { test } from 'node:test';import assert from 'node:assert/strict';-import { renderStatusline, enrichedSegment, incomingEdges, formatBlastRadius, formatRetrieval, formatOrientation, renderSubagent, relevantRetrieval, INJECT_MIN_COVERAGE } from '../src/claude/format.js';+import { renderStatusline, incomingEdges, formatBlastRadius, formatRetrieval, formatOrientation, renderSubagent, relevantRetrieval, INJECT_MIN_COVERAGE } from '../src/claude/format.js';import { emptyStats } from '../src/claude/state.js';const strip = (s: string) => s.replace(/\x1b\[[0-9;]*m/g, '');@@ -10,22 +10,13 @@ test('not-built state', () => {assert.match(strip(lines[0]), /not built/);});-test('enriched segment hidden when zero ready', () => {- assert.equal(enrichedSegment({ ...emptyStats(), totalCount: 10, readyCount: 0 }), null);-});--test('enriched segment shown when >=1 ready', () => {- const seg = enrichedSegment({ ...emptyStats(), totalCount: 4, readyCount: 2 });- assert.equal(strip(seg!), '50% enriched');-});-test('two-line bar: size + freshness + ctx + last', () => {const stats = { ...emptyStats(), nodeCount: 319, edgeCount: 730, totalCount: 319, readyCount: 0,dirty: true, staleCount: 4, lastFile: 'pkce.ts' };const lines = renderStatusline(stats, null, { ctxPct: 34 }).map(strip);assert.match(lines[0], /graft/);assert.match(lines[0], /319 nodes \/ 730 edges/);- assert.doesNotMatch(lines[0], /enriched/); // hidden at readyCount 0+ assert.doesNotMatch(lines[0], /enriched/); // enriched segment removed from the barassert.match(lines[0], /⚠ 4 stale/);assert.match(lines[1], /ctx 34%/);assert.match(lines[1], /last: pkce\.ts/);