import { useState } from 'react' import { mockToolInspection } from '../mocks/data' export function ToolInspection() { const [activeDiffTab, setActiveDiffTab] = useState<'split' | 'unified'>('split') const { toolType, toolName, description, filePath, dryRunStatus, linesChanged, diffLines } = mockToolInspection return (
{/* Separator */}
{/* Content */}
{/* ── Title row + action buttons ─────────────────── */}
{toolType}

{toolName}

{description}

{/* ── Metadata cards ─────────────────────────────── */}
Target File
description {filePath}
Status
check_circle {dryRunStatus}
Lines Modified
edit_note +{linesChanged.added} / -{linesChanged.removed} lines
{/* ── Diff Viewer ────────────────────────────────── */}
{filePath} — Diff View
L{diffLines[0]?.lineNo ?? 1} — L{diffLines[diffLines.length - 1]?.lineNo ?? 1}
{diffLines.map((line, idx) => { const isAdded = line.type === 'added' const isRemoved = line.type === 'removed' let rowBg = '' if (isAdded) rowBg = 'bg-[rgba(103,123,78,0.15)]' else if (isRemoved) rowBg = 'bg-[rgba(143,72,47,0.15)]' let lineNoColor = 'text-[var(--color-outline)] opacity-40' if (isAdded) lineNoColor = 'text-[var(--color-tertiary)] opacity-40' else if (isRemoved) lineNoColor = 'text-[var(--color-error)] opacity-40' const prefix = isAdded ? '+ ' : isRemoved ? '- ' : ' ' return (
{line.lineNo} {prefix} {line.content}
) })}
{/* ── Implementation Context ─────────────────────── */}

Implementation Context

psychology

Reasoning

The legacyAuthService was deprecated in RFC-204. The new SDK provides automatic session refresh and better error typing. This migration ensures the login flow is compliant with the new security standards.

science

Impact Analysis

No changes needed in calling components. The interface remains compatible but internal state management is improved.

description
auth.ts
keyboard_double_arrow_right
check_circle
Verified
) }