ctxtop 0.0.0-stage → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.antigravity-plugin/plugin.json +36 -0
- package/.claude-plugin/plugin.json +18 -0
- package/CHECKSUMS.sha256 +166 -0
- package/LICENSE +27 -0
- package/README.md +350 -2
- package/SECURITY.md +22 -0
- package/agents/ah-flash-scout.md +25 -0
- package/assets/advanced_view_loaded_420px.png +0 -0
- package/assets/hero-demo.svg +188 -0
- package/assets/logo.svg +19 -0
- package/assets/simple_view_lean_420px.png +0 -0
- package/assets/simple_view_loaded_420px.png +0 -0
- package/assets/social-preview.svg +72 -0
- package/assets/zone_c_step3_shield_full.png +0 -0
- package/bin/ah-statusline.mjs +175 -0
- package/bin/cli.mjs +3 -0
- package/bin/ctxtop.mjs +1799 -0
- package/commands/cost-radar.md +11 -0
- package/commands/evolve.md +10 -0
- package/commands/handoff.md +10 -0
- package/commands/horizon.md +10 -0
- package/commands/inspect.md +10 -0
- package/commands/precheck.md +10 -0
- package/config/default_flightcheck.json +133 -0
- package/config/modelCatalog.json +785 -0
- package/config/platformQuirks.json +19 -0
- package/hooks/handlers/compact-lifecycle.mjs +577 -0
- package/hooks/handlers/config-change.mjs +402 -0
- package/hooks/handlers/hookIo.mjs +311 -0
- package/hooks/handlers/hookIpcClient.mjs +83 -0
- package/hooks/handlers/post-model-switch.mjs +111 -0
- package/hooks/handlers/post-tool-use.mjs +366 -0
- package/hooks/handlers/pre-model-switch.mjs +1048 -0
- package/hooks/handlers/pre-tool-use.mjs +632 -0
- package/hooks/handlers/stop-gate.mjs +526 -0
- package/hooks/handlers/user-prompt-submit.mjs +367 -0
- package/hooks/hooks.json +131 -0
- package/hooks/post_invocation.mjs +13 -0
- package/hooks/post_tool_use.mjs +25 -0
- package/hooks/pre_invocation.mjs +14 -0
- package/hooks/pre_tool_use.mjs +97 -0
- package/hooks/register.js +726 -0
- package/hooks/session_start.mjs +24 -0
- package/hooks/stop.mjs +23 -0
- package/hooks.json +56 -0
- package/package.json +110 -4
- package/packages/antigravity/package.json +14 -0
- package/packages/antigravity/src/index.mjs +1 -0
- package/packages/claude-code/package.json +14 -0
- package/packages/claude-code/src/index.mjs +2 -0
- package/packages/core/package.json +14 -0
- package/packages/core/src/index.mjs +1 -0
- package/packages/engine-node/package.json +14 -0
- package/packages/engine-node/src/index.mjs +1 -0
- package/packages/mcp/package.json +17 -0
- package/packages/mcp/src/server.mjs +396 -0
- package/packages/pro/LICENSE-COMMERCIAL.md +19 -0
- package/packages/pro/README-SIGNING.md +30 -0
- package/packages/pro/package.json +16 -0
- package/packages/pro/src/index.mjs +3 -0
- package/packages/pro/src/team_finops_pack.mjs +241 -0
- package/packages/pro/workers/polar_webhook_worker.mjs +215 -0
- package/plugin.json +36 -0
- package/rules/AGENTS.md +10 -0
- package/sidecars/horizon-daemon/ipcServer.mjs +24 -0
- package/sidecars/horizon-daemon/server.mjs +2038 -0
- package/sidecars/horizon-daemon/sidecar.json +19 -0
- package/skills/cost-radar/SKILL.md +21 -0
- package/skills/evolve/SKILL.md +21 -0
- package/skills/handoff/SKILL.md +50 -0
- package/skills/horizon/SKILL.md +17 -0
- package/skills/inspect/SKILL.md +18 -0
- package/skills/precheck/SKILL.md +44 -0
- package/src/adapters/antigravity/index.mjs +109 -0
- package/src/adapters/claude-code/index.mjs +194 -0
- package/src/cli/cost_radar.mjs +70 -0
- package/src/cli/doctor.mjs +351 -0
- package/src/cli/horizon_hud.mjs +888 -0
- package/src/cli/init.mjs +425 -0
- package/src/cli/postmortem.mjs +515 -0
- package/src/coach/cacheGravityRouter.mjs +12 -0
- package/src/config/modelCatalog.json +704 -0
- package/src/config/platformQuirks.json +19 -0
- package/src/core/action_queue.mjs +264 -0
- package/src/core/ag_bridge.mjs +346 -0
- package/src/core/atomic_io.mjs +124 -0
- package/src/core/baseline.mjs +607 -0
- package/src/core/blindspot_sensors.mjs +399 -0
- package/src/core/bucket_b_runtime.mjs +1200 -0
- package/src/core/classifier.mjs +1757 -0
- package/src/core/coach/circuit_breakers.mjs +650 -0
- package/src/core/coach/contradiction_auditor.mjs +239 -0
- package/src/core/coach/effort_advisor.mjs +143 -0
- package/src/core/coach/handoff_hydrator.mjs +483 -0
- package/src/core/coach/progressive_checkpointer.mjs +551 -0
- package/src/core/coach/prompt_decomposer_coach.mjs +141 -0
- package/src/core/coach/reflector_queue.mjs +505 -0
- package/src/core/coach/saved_quota_ledger.mjs +615 -0
- package/src/core/coach/subagent_ipi_sanitizer.mjs +200 -0
- package/src/core/coach/subagent_phantom_auditor.mjs +261 -0
- package/src/core/coach/task_quota_router.mjs +955 -0
- package/src/core/coach/turn_zero_gate.mjs +574 -0
- package/src/core/compaction_coach.mjs +1126 -0
- package/src/core/config.mjs +214 -0
- package/src/core/constants.mjs +1987 -0
- package/src/core/detectors_det01_to_16.mjs +1523 -0
- package/src/core/doc_indexer.mjs +338 -0
- package/src/core/episodic_memory.mjs +135 -0
- package/src/core/fts5_output_compressor.mjs +359 -0
- package/src/core/git_ledger.mjs +189 -0
- package/src/core/handoff_audit.mjs +558 -0
- package/src/core/history.mjs +221 -0
- package/src/core/hook_diagnostics.mjs +158 -0
- package/src/core/horizon_classifier.mjs +326 -0
- package/src/core/horizon_config.mjs +802 -0
- package/src/core/host_watchdog.mjs +200 -0
- package/src/core/layer5_hygiene.mjs +1084 -0
- package/src/core/log_resolver.mjs +231 -0
- package/src/core/mcp_auditor.mjs +138 -0
- package/src/core/micro_skills_store.mjs +91 -0
- package/src/core/offenders.mjs +161 -0
- package/src/core/parser.mjs +1997 -0
- package/src/core/path_canonicalizer.mjs +73 -0
- package/src/core/paths.mjs +311 -0
- package/src/core/prefix_cache_shield.mjs +386 -0
- package/src/core/pro_license.mjs +385 -0
- package/src/core/prompt_rubric.mjs +518 -0
- package/src/core/pruner.mjs +433 -0
- package/src/core/quota.mjs +1860 -0
- package/src/core/rsi_instinct_engine.mjs +1197 -0
- package/src/core/rsl_clash_auditor.mjs +423 -0
- package/src/core/rsl_distiller.mjs +372 -0
- package/src/core/rsl_ledger.mjs +969 -0
- package/src/core/rsl_triage.mjs +909 -0
- package/src/core/sanitizer.mjs +121 -0
- package/src/core/session_auditor.mjs +658 -0
- package/src/core/session_forensics.mjs +303 -0
- package/src/core/session_timeline.mjs +358 -0
- package/src/core/settings.mjs +99 -0
- package/src/core/shared/detectors.mjs +1342 -0
- package/src/core/shared/fnv1a64.mjs +85 -0
- package/src/core/shared/handoff_schema.mjs +123 -0
- package/src/core/shared/index.mjs +5 -0
- package/src/core/shared/ipi_sanitizer.mjs +165 -0
- package/src/core/shared/micro_skills.mjs +1 -0
- package/src/core/shared/plugin_validator.mjs +202 -0
- package/src/core/shared/prompt_hygiene_governor.mjs +1 -0
- package/src/core/shield_manager.mjs +1417 -0
- package/src/core/sidecar_store.mjs +302 -0
- package/src/core/sprint_metrics.mjs +366 -0
- package/src/core/sqlite_client.mjs +283 -0
- package/src/core/storage_doctor.mjs +358 -0
- package/src/core/subagents.mjs +609 -0
- package/src/core/swarm_topology.mjs +360 -0
- package/src/core/task_quota_router.mjs +1656 -0
- package/src/core/telemetry/cache_ttl_watchdog.mjs +284 -0
- package/src/core/telemetry/scope_lock_registry.mjs +578 -0
- package/src/core/telemetry/shadow_file_detector.mjs +291 -0
- package/src/core/telemetry/trajectory_watcher.mjs +259 -0
- package/src/core/timeline_svg.mjs +236 -0
- package/src/core/tool_surgeon.mjs +305 -0
- package/src/core/trajectory_stitcher.mjs +645 -0
- package/src/core/u_shaped_optimizer.mjs +789 -0
- package/src/core/wal_hygiene.mjs +233 -0
- package/src/core-isomorphic/catalog/detectorCatalog.mjs +558 -0
- package/src/core-isomorphic/catalog/index.mjs +1 -0
- package/src/core-isomorphic/coach/cacheGravityRouter.mjs +1547 -0
- package/src/core-isomorphic/coach/microSkills.mjs +1 -0
- package/src/core-isomorphic/coach/promptHygieneGovernor.mjs +1 -0
- package/src/core-isomorphic/coach/repoCalibration.mjs +254 -0
- package/src/core-isomorphic/coach/resumeToolsetAuditor.mjs +321 -0
- package/src/core-isomorphic/coach/savedQuotaLedger.mjs +527 -0
- package/src/core-isomorphic/coach/smartCompactAdvisor.mjs +305 -0
- package/src/core-isomorphic/coach/stateBatonHydrator.mjs +810 -0
- package/src/core-isomorphic/coach/ttlWatchdog.mjs +464 -0
- package/src/core-isomorphic/config/anthropicModelCatalog.json +606 -0
- package/src/core-isomorphic/config/catalogLoader.mjs +1268 -0
- package/src/core-isomorphic/config/horizonConfig.mjs +1055 -0
- package/src/core-isomorphic/control/callTree.mjs +338 -0
- package/src/core-isomorphic/control/coachLatches.mjs +126 -0
- package/src/core-isomorphic/control/controlStateMachine.mjs +205 -0
- package/src/core-isomorphic/control/index.mjs +49 -0
- package/src/core-isomorphic/control/swarmWorktree.mjs +109 -0
- package/src/core-isomorphic/control/toolSuspension.mjs +197 -0
- package/src/core-isomorphic/diagnostics/drift_guard.mjs +382 -0
- package/src/core-isomorphic/diagnostics/index.mjs +9 -0
- package/src/core-isomorphic/diagnostics/micro_skills.mjs +471 -0
- package/src/core-isomorphic/diagnostics/prompt_hygiene_governor.mjs +888 -0
- package/src/core-isomorphic/economics/billingBlocks.mjs +251 -0
- package/src/core-isomorphic/economics/cacheGravity.mjs +369 -0
- package/src/core-isomorphic/economics/cliffBreaker.mjs +256 -0
- package/src/core-isomorphic/economics/driftLatency.mjs +433 -0
- package/src/core-isomorphic/economics/dualTtl.mjs +198 -0
- package/src/core-isomorphic/economics/index.mjs +47 -0
- package/src/core-isomorphic/economics/retentionRadar.mjs +348 -0
- package/src/core-isomorphic/guards/bucketBAlphaBeta.mjs +860 -0
- package/src/core-isomorphic/guards/bucketBGamma.mjs +442 -0
- package/src/core-isomorphic/guards/bucketBHeuristics.mjs +37 -0
- package/src/core-isomorphic/guards/circuitBreakers.mjs +1202 -0
- package/src/core-isomorphic/guards/det01_03_shell_secret.mjs +1184 -0
- package/src/core-isomorphic/guards/det04_12_thrash_rot.mjs +572 -0
- package/src/core-isomorphic/guards/det13_20_mcp_scope.mjs +913 -0
- package/src/core-isomorphic/guards/docIndexCore.mjs +446 -0
- package/src/core-isomorphic/guards/losslessPostSanitizer.mjs +317 -0
- package/src/core-isomorphic/guards/slopsquatGate.mjs +551 -0
- package/src/core-isomorphic/index.js +27 -0
- package/src/core-isomorphic/telemetry/otelExporter.mjs +187 -0
- package/src/core-isomorphic/telemetry/scopeLockRegistry.mjs +522 -0
- package/src/core-isomorphic/telemetry/sprintMetrics.mjs +327 -0
- package/src/core-isomorphic/telemetry/swarmTopology.mjs +152 -0
- package/src/core-isomorphic/telemetry/telemetryBridge.mjs +1156 -0
- package/src/core-isomorphic/ui/brailleSparkline.mjs +142 -0
- package/src/core-isomorphic/ui/costRadarSvg.mjs +276 -0
- package/src/core-isomorphic/ui/horizonGrid.mjs +475 -0
- package/src/core-isomorphic/ui/horizonPanelHtml.mjs +1237 -0
- package/src/core-isomorphic/ui/modViews.mjs +1504 -0
- package/src/core-isomorphic/ui/pdfReceiptGenerator.mjs +329 -0
- package/src/core-isomorphic/ustf/index.mjs +7 -0
- package/src/core-isomorphic/ustf/normalizer.mjs +512 -0
- package/src/core-isomorphic/ustf/schema.mjs +186 -0
- package/src/core-isomorphic/utils/runtime.mjs +962 -0
- package/src/demo/synthetic_states.mjs +661 -0
- package/src/diagnostics/bugReportGenerator.mjs +253 -0
- package/src/diagnostics/claudeHookCapabilities.mjs +396 -0
- package/src/diagnostics/doctorEngine.mjs +295 -0
- package/src/engine-node/db/index.mjs +58 -0
- package/src/engine-node/db/jsonl_fallback.mjs +184 -0
- package/src/engine-node/db/probe.mjs +342 -0
- package/src/engine-node/db/sqlite_wrapper.mjs +122 -0
- package/src/engine-node/index.mjs +12 -0
- package/src/engine-node/ipc/client.mjs +447 -0
- package/src/engine-node/ipc/index.mjs +22 -0
- package/src/engine-node/ipc/protocol.mjs +177 -0
- package/src/engine-node/ipc/server.mjs +445 -0
- package/src/engine-node/offloader/index.mjs +6 -0
- package/src/engine-node/offloader/tool_offloader.mjs +241 -0
- package/src/engine-node/sensors/blindspots.mjs +376 -0
- package/src/engine-node/sensors/git_merge_tree.mjs +223 -0
- package/src/engine-node/sensors/index.mjs +7 -0
- package/src/hooks/antigravity_rsl_hook.mjs +250 -0
- package/src/hooks/claude_rsl_hook.mjs +288 -0
- package/src/hooks/portfolio_runtime.mjs +858 -0
- package/src/hooks/post_invocation.mjs +611 -0
- package/src/hooks/pre_invocation.mjs +1725 -0
- package/src/hooks/session_start.mjs +199 -0
- package/src/shims/agy_cli_compressor.mjs +705 -0
- package/src/shims/agy_git_guard.mjs +749 -0
- package/src/shims/ah_log_query.mjs +39 -0
- package/src/ui/costRadarSvg.mjs +6 -0
- package/src/ui/horizonGrid.mjs +1 -0
- package/src/ui/horizonPanelHtml.mjs +1 -0
- package/src/ui/horizon_panel.css +167 -0
- package/src/ui/horizon_panel.js +212 -0
- package/src/ui/modViews.mjs +1 -0
- package/src/utils/modelSwitchTelemetry.mjs +308 -0
- package/src/utils/nodeIo.mjs +59 -0
- package/src/utils/runtime.mjs +1 -0
- package/src/utils/sessionCalibration.mjs +657 -0
- package/src/webview/advanced_view.html +1808 -0
- package/src/webview/horizon_panel.html +12397 -0
- package/src/webview/registry.mjs +80 -0
- package/src/webview/simple_view.html +1370 -0
|
@@ -0,0 +1,1237 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file src/ui/horizonPanelHtml.mjs
|
|
3
|
+
* Zero-Socket, Self-Contained 420px Side-Panel HTML HUD for Highbeam (`ah` v4.0 — Claude Code Studio).
|
|
4
|
+
*
|
|
5
|
+
* Enforces:
|
|
6
|
+
* 1. Simple View (4-Rank Glanceable Hierarchy, <= 440px height at 420px width):
|
|
7
|
+
* - Rank 1: Plain-English Status Verdict + Claude Model & Flight Mode (`COACH` / `AUTO_PILOT`)
|
|
8
|
+
* - Rank 2: 40-Cell `[S]/[C]/[D]/[W]` Horizon Bar + 3-Stat Row + Anthropic 5m/1h Cache TTL Shield
|
|
9
|
+
* - Rank 3: Single Priority Next Action (1-click Copy `/compact` button `#btnCompactPrimary` alongside `#compactInstruction`)
|
|
10
|
+
* - Rank 4: Elevated "Tokens & USD Saved" Card (`+X.Xk ($Y.YY) this session · +X.XM ($Z.ZZ) 30d`)
|
|
11
|
+
* 2. Advanced View (5 `<details>` Accordions):
|
|
12
|
+
* - Accordion 1: Verified 5-Category Savings, Anthropic Cache ROI (`C*` & `0.263` R/W) & Signed PDF Expense Receipt
|
|
13
|
+
* - Accordion 2: 40-Cell `[S]/[C]/[D]/[W]` Context Anatomy & Top Context Offenders (`.claudeignore` only on ignorable paths)
|
|
14
|
+
* - Accordion 3: 6 Core Auditable Guards (`DET-01..32`), Thinking Drift & Prefix Retention
|
|
15
|
+
* - Accordion 4: Subagent Swarm (`Task`/`Agent`), Worktrees & `DET-20` Scope Locks
|
|
16
|
+
* - Accordion 5: `PreCompact` State Baton (`HANDOFF_LATEST.md`) & Session Forensics
|
|
17
|
+
* 3. Pure relative imports and zero `node:*` dependencies (Mod Law 4 compliant).
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import { computeHorizonGrid, CELL_CATEGORIES } from './horizonGrid.mjs';
|
|
21
|
+
import { summarizeCoreAuditableGuards } from '../catalog/detectorCatalog.mjs';
|
|
22
|
+
import {
|
|
23
|
+
formatTokensCompact,
|
|
24
|
+
formatUsd,
|
|
25
|
+
deriveSurfaceMetrics,
|
|
26
|
+
deriveClaudeCodeVerdictAndActions,
|
|
27
|
+
isIgnorableClaudePath,
|
|
28
|
+
renderSimpleViewPane,
|
|
29
|
+
renderAdvancedViewPane
|
|
30
|
+
} from './modViews.mjs';
|
|
31
|
+
import {
|
|
32
|
+
computeBreakEvenCachedTokens,
|
|
33
|
+
resolveNaturalDownshiftPeer
|
|
34
|
+
} from '../coach/cacheGravityRouter.mjs';
|
|
35
|
+
import { formatRetentionLabel, formatDriftLabel } from '../telemetry/sprintMetrics.mjs';
|
|
36
|
+
import { computeSwarmSummary } from '../telemetry/swarmTopology.mjs';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Escapes HTML special characters safely.
|
|
40
|
+
* @param {any} value
|
|
41
|
+
* @returns {string}
|
|
42
|
+
*/
|
|
43
|
+
export function escapeHtml(value) {
|
|
44
|
+
return String(value ?? '')
|
|
45
|
+
.replace(/&/g, '&')
|
|
46
|
+
.replace(/</g, '<')
|
|
47
|
+
.replace(/>/g, '>')
|
|
48
|
+
.replace(/"/g, '"')
|
|
49
|
+
.replace(/'/g, ''');
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Renders the 40-cell graphical HTML grid bar using canonical `[S]/[C]/[D]/[W]/[.]` colors.
|
|
54
|
+
* @param {object} grid
|
|
55
|
+
* @returns {string}
|
|
56
|
+
*/
|
|
57
|
+
function renderHtmlHorizonCells(grid) {
|
|
58
|
+
return grid.cells
|
|
59
|
+
.map((cell, idx) => {
|
|
60
|
+
const cat = cell.category;
|
|
61
|
+
const bg =
|
|
62
|
+
cat === 'S'
|
|
63
|
+
? CELL_CATEGORIES.S.colorHex
|
|
64
|
+
: cat === 'C'
|
|
65
|
+
? CELL_CATEGORIES.C.colorHex
|
|
66
|
+
: cat === 'D'
|
|
67
|
+
? CELL_CATEGORIES.D.colorHex
|
|
68
|
+
: cat === 'W'
|
|
69
|
+
? CELL_CATEGORIES.W.colorHex
|
|
70
|
+
: 'var(--bg-elevated)';
|
|
71
|
+
const label =
|
|
72
|
+
cat === '.'
|
|
73
|
+
? `Cell ${idx + 1}: Available capacity`
|
|
74
|
+
: `Cell ${idx + 1}: [${cat}] ${cell.label}`;
|
|
75
|
+
return `<span class="ah-cell ah-cell-${cat === '.' ? 'empty' : cat}" style="background:${bg}" title="${escapeHtml(label)}"></span>`;
|
|
76
|
+
})
|
|
77
|
+
.join('');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const FLIGHT_SLOTS = 40;
|
|
81
|
+
const FLIGHT_GLYPH = { COLD_GAP: '\u25D0', COMPACT: '\u25B2', MODEL_SWITCH: '\u21C4', CHECKPOINT: '\u25C6' };
|
|
82
|
+
const FLIGHT_GLYPH_ORDER = ['COLD_GAP', 'COMPACT', 'MODEL_SWITCH', 'CHECKPOINT'];
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Coalesces repeated identical auto-fix events (same type/label, turn, detail) into one row with an xN count badge.
|
|
86
|
+
* @param {Array<object>} items
|
|
87
|
+
* @returns {Array<object>}
|
|
88
|
+
*/
|
|
89
|
+
function coalesceClaudeAutoFixItems(items) {
|
|
90
|
+
const grouped = [];
|
|
91
|
+
const byKey = new Map();
|
|
92
|
+
for (const it of items) {
|
|
93
|
+
if (!it) continue;
|
|
94
|
+
const key = `${it.type || it.label || ''}|${it.turn || 0}|${it.detail || ''}`;
|
|
95
|
+
const existing = byKey.get(key);
|
|
96
|
+
if (existing) {
|
|
97
|
+
existing.count += 1;
|
|
98
|
+
existing.tokensSaved += Number(it.tokensSaved || 0);
|
|
99
|
+
existing.usd += Number(it.usd || 0);
|
|
100
|
+
} else {
|
|
101
|
+
const merged = {
|
|
102
|
+
...it,
|
|
103
|
+
count: 1,
|
|
104
|
+
tokensSaved: Number(it.tokensSaved || 0),
|
|
105
|
+
usd: Number(it.usd || 0)
|
|
106
|
+
};
|
|
107
|
+
byKey.set(key, merged);
|
|
108
|
+
grouped.push(merged);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return grouped;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Computes SVG stroke-dashoffset for the 48x48 Watch Cache Ring (`r = 19`, circumference `119.38`).
|
|
116
|
+
* @param {number} pct
|
|
117
|
+
* @returns {string}
|
|
118
|
+
*/
|
|
119
|
+
function computeCacheRingDashOffset(pct) {
|
|
120
|
+
const clamped = Math.max(0, Math.min(100, Number(pct) || 0));
|
|
121
|
+
const circ = 2 * Math.PI * 19;
|
|
122
|
+
return (circ * (1 - clamped / 100)).toFixed(2);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Static (zero-script) Simple View Session Activity & Auto-Guard Rail + canonical Saved pill.
|
|
127
|
+
* Consumes the same `sessionTimeline` / `autoFixLog` contract as the Antigravity panel.
|
|
128
|
+
* @param {object|null} tl
|
|
129
|
+
* @param {object|null} log
|
|
130
|
+
* @param {object} metrics
|
|
131
|
+
* @param {Array<object>} catList
|
|
132
|
+
* @returns {string}
|
|
133
|
+
*/
|
|
134
|
+
function renderFlightRecorderHtml(tl, log, metrics, catList) {
|
|
135
|
+
const turns = tl && Array.isArray(tl.turns) ? tl.turns : [];
|
|
136
|
+
const slots = [];
|
|
137
|
+
if (turns.length > 0) {
|
|
138
|
+
if (tl.earlier && tl.earlier.turns > 0) slots.push({ kind: 'earlier' });
|
|
139
|
+
for (const t of turns) slots.push({ kind: 'turn', t });
|
|
140
|
+
}
|
|
141
|
+
const visible = slots.slice(-FLIGHT_SLOTS);
|
|
142
|
+
const maxAdd = Math.max(1, ...turns.map((t) => t.tokensAdded));
|
|
143
|
+
let bars = '';
|
|
144
|
+
for (let i = 0; i < FLIGHT_SLOTS; i++) {
|
|
145
|
+
const s = visible[i];
|
|
146
|
+
if (!s) {
|
|
147
|
+
bars += '<span class="ah-tl-slot ah-tl-empty"><span class="ah-tl-bar"></span></span>';
|
|
148
|
+
} else if (s.kind === 'earlier') {
|
|
149
|
+
const e = tl.earlier;
|
|
150
|
+
bars += `<span class="ah-tl-slot ah-tl-earlier" title="${escapeHtml(`Earlier ${e.turns} turns \u00B7 ${formatTokensCompact(e.tokens)} added \u00B7 ${e.bad} bad \u00B7 ${e.good} good`)}"><span class="ah-tl-bar" style="height:40%"></span></span>`;
|
|
151
|
+
} else {
|
|
152
|
+
const h = Math.max(4, Math.round((s.t.tokensAdded / maxAdd) * 100));
|
|
153
|
+
bars += `<span class="ah-tl-slot" title="${escapeHtml(`T${s.t.turn} \u00B7 ${s.t.reason}`)}"><span class="ah-tl-bar ah-tl-${escapeHtml(s.t.practice)}" style="height:${h}%"></span></span>`;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
const peak = Math.max(0, ...turns.map((t) => t.cumulative));
|
|
157
|
+
const limit = Number((tl && tl.safeLimit) || 0);
|
|
158
|
+
const yMax = Math.max(limit * 1.1, peak * 1.05, 1);
|
|
159
|
+
const pts = [];
|
|
160
|
+
visible.forEach((s, i) => {
|
|
161
|
+
if (s.kind !== 'turn') return;
|
|
162
|
+
pts.push(`${(((i + 0.5) / FLIGHT_SLOTS) * 100).toFixed(2)},${(100 - Math.min(100, (s.t.cumulative / yMax) * 100)).toFixed(2)}`);
|
|
163
|
+
});
|
|
164
|
+
const limitY = limit > 0 ? 100 - Math.min(100, (limit / yMax) * 100) : null;
|
|
165
|
+
const overlay = turns.length > 0
|
|
166
|
+
? `<svg class="ah-tl-line" viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true">${
|
|
167
|
+
limitY !== null ? `<line x1="0" y1="${limitY.toFixed(2)}" x2="100" y2="${limitY.toFixed(2)}" stroke="currentColor" class="ah-tl-limit-svg" stroke-width="1" stroke-dasharray="3 3" vector-effect="non-scaling-stroke"/>` : ''
|
|
168
|
+
}${pts.length > 1 ? `<polyline points="${pts.join(' ')}" fill="none" stroke="currentColor" class="ah-tl-poly-svg" stroke-width="1.25" vector-effect="non-scaling-stroke"/>` : ''}</svg>`
|
|
169
|
+
: '';
|
|
170
|
+
let marks = '';
|
|
171
|
+
for (let i = 0; i < FLIGHT_SLOTS; i++) {
|
|
172
|
+
const s = visible[i];
|
|
173
|
+
const list = s && s.kind === 'turn' ? (tl.markers || []).filter((m) => m.turn === s.t.turn) : [];
|
|
174
|
+
if (!list.length) { marks += '<span class="ah-tl-mk"></span>'; continue; }
|
|
175
|
+
const top = FLIGHT_GLYPH_ORDER.find((k) => list.some((m) => m.kind === k)) || list[0].kind;
|
|
176
|
+
marks += `<span class="ah-tl-mk" title="${escapeHtml(list.map((m) => m.label).join(' \u00B7 '))}">${FLIGHT_GLYPH[top] || '\u00B7'}</span>`;
|
|
177
|
+
}
|
|
178
|
+
const focus = [...turns].reverse().find((t) => t.practice === 'bad') || turns[turns.length - 1];
|
|
179
|
+
const detail = focus
|
|
180
|
+
? `<span class="ah-tl-dot ah-tl-${escapeHtml(focus.practice)}"></span>${escapeHtml(`T${focus.turn} \u00B7 ${focus.reason}`)}`
|
|
181
|
+
: 'Pulse tracking starts after the first turn.';
|
|
182
|
+
|
|
183
|
+
const rawItems = log && Array.isArray(log.items) ? log.items : [];
|
|
184
|
+
const items = coalesceClaudeAutoFixItems(rawItems);
|
|
185
|
+
const total = Math.max(Number((log && log.total) || 0), rawItems.length);
|
|
186
|
+
const visibleItems = items.slice(0, 4);
|
|
187
|
+
const hiddenCount = Math.max(0, items.length - visibleItems.length);
|
|
188
|
+
const renderRow = (it) => {
|
|
189
|
+
const mult = it.count > 1 ? `<span class="ah-fx-mult">\u00D7${it.count}</span>` : '';
|
|
190
|
+
const extra = `${it.detail || it.label} \u00B7 ${formatTokensCompact(it.tokensSaved)} tokens${Number(it.usd) > 0 ? ` \u00B7 ~${formatUsd(it.usd)}` : ''}`;
|
|
191
|
+
return `<details class="ah-fx-row"><summary><span class="ah-fx-turn">${it.turn ? `T${escapeHtml(it.turn)}` : '\u00B7'}</span><span class="ah-fx-label">\u2713 ${escapeHtml(it.label)}${mult}</span><span class="ah-fx-detail">${escapeHtml(it.detail || '')}</span><span class="ah-fx-saved">+${escapeHtml(formatTokensCompact(it.tokensSaved))}</span></summary><div class="ah-fx-more">${escapeHtml(extra)}</div></details>`;
|
|
192
|
+
};
|
|
193
|
+
const rowsHtml = items.length === 0
|
|
194
|
+
? '<div class="ah-fx-empty">No auto-fixes yet.</div>'
|
|
195
|
+
: visibleItems.map(renderRow).join('') +
|
|
196
|
+
(hiddenCount > 0
|
|
197
|
+
? `<details class="ah-fx-overflow"><summary>+${hiddenCount} older guard event${hiddenCount === 1 ? '' : 's'}</summary>${items.slice(4).map(renderRow).join('')}</details>`
|
|
198
|
+
: '');
|
|
199
|
+
|
|
200
|
+
const savedMainTxt = `+${formatTokensCompact(metrics.sessionSavedTokens)} (${formatUsd(metrics.sessionSavedUSD)})`;
|
|
201
|
+
const saved30dTxt = `+${formatTokensCompact(metrics.workspace30dSavedTokens)} (${formatUsd(metrics.workspace30dSavedUSD)}) 30d`;
|
|
202
|
+
const driverTxt = `${metrics.topSavingsDriver.label} (+${formatTokensCompact(metrics.topSavingsDriver.savedTokens)})`;
|
|
203
|
+
|
|
204
|
+
return `<section class="ah-card ah-flight" id="simpleFlightRecorder" aria-label="Session activity and savings">
|
|
205
|
+
<div class="ah-fr-topbar">
|
|
206
|
+
<span class="ah-fr-title">SESSION ACTIVITY</span>
|
|
207
|
+
<details class="ah-saved-pill-wrap" id="tokensSavedCard" data-rank="4">
|
|
208
|
+
<summary class="ah-saved-pill" id="savedSessionHeadline" title="View verified session savings breakdown">
|
|
209
|
+
<span class="ah-saved-kicker">Saved this chat</span>
|
|
210
|
+
<strong class="ah-saved-num">${escapeHtml(savedMainTxt)}</strong>
|
|
211
|
+
<span class="ah-saved-30d" id="savedWorkspace30d" title="Tokens saved across all your chats in this workspace over the last 30 days">${escapeHtml(saved30dTxt)}</span>
|
|
212
|
+
</summary>
|
|
213
|
+
<div class="ah-saved-why">
|
|
214
|
+
<div class="ah-saved-driver" id="savedTopDriver">Top driver: ${escapeHtml(driverTxt)}</div>
|
|
215
|
+
${catList.map((c) => `<div class="ah-saved-cat-row"><span>${escapeHtml(c.label)}</span><strong>+${escapeHtml(formatTokensCompact(c.savedTokens))} (${escapeHtml(formatUsd(c.savedUSD))})</strong></div>`).join('')}
|
|
216
|
+
</div>
|
|
217
|
+
</details>
|
|
218
|
+
</div>
|
|
219
|
+
<div class="ah-sec-blurb">What happened in this chat, what the guard fixed for you, and the tokens that saved.</div>
|
|
220
|
+
<div class="ah-fr-zones-body">
|
|
221
|
+
<div class="ah-fr-zone">
|
|
222
|
+
<div class="ah-fr-head"><span>TURN PULSE</span><span class="ah-fr-legend" aria-hidden="true"><i class="ah-lg ah-lg-good"></i>clean <i class="ah-lg ah-lg-bad"></i>waste <i class="ah-lg ah-lg-limit"></i>safe limit</span></div>
|
|
223
|
+
<div class="ah-sec-blurb">Memory growth turn by turn. Green marks clean turns, red marks wasteful ones.</div>
|
|
224
|
+
<div class="ah-tl-chart" id="timelineChart" role="img" aria-label="Per-turn context growth">${bars}${overlay}</div>
|
|
225
|
+
<div class="ah-tl-markers" id="timelineMarkers" aria-hidden="true">${marks}</div>
|
|
226
|
+
<div class="ah-tl-detail" id="timelineDetail">${detail}</div>
|
|
227
|
+
</div>
|
|
228
|
+
<div class="ah-fr-zone ah-fr-log">
|
|
229
|
+
<div class="ah-fr-head"><span>AUTO-GUARD STREAM</span><span class="ah-fr-count" id="autoFixCount">${total}</span></div>
|
|
230
|
+
<div class="ah-sec-blurb">Wasteful reads and loops the guard fixed automatically. Nothing to do.</div>
|
|
231
|
+
<div class="ah-fx-list" id="autoFixList">${rowsHtml}<div class="ah-fx-rail-armed"><span class="ah-rail-dot" aria-hidden="true"></span>Auto-guard armed · watching reads & CLI spikes</div></div>
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
</section>`;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Renders the self-contained Claude Code Highbeam HTML HUD (`horizon_panel.html`).
|
|
239
|
+
*
|
|
240
|
+
* @param {object} [state={}]
|
|
241
|
+
* @param {object} [options={}]
|
|
242
|
+
* @param {'simple'|'advanced'} [options.initialView='simple']
|
|
243
|
+
* @returns {{
|
|
244
|
+
* html: string,
|
|
245
|
+
* simplePane: object,
|
|
246
|
+
* advancedPane: object,
|
|
247
|
+
* grid: object,
|
|
248
|
+
* metrics: object,
|
|
249
|
+
* verdict: object,
|
|
250
|
+
* priorityAction: object
|
|
251
|
+
* }}
|
|
252
|
+
*/
|
|
253
|
+
export function renderHorizonPanelHtml(state = {}, options = {}) {
|
|
254
|
+
const initialView =
|
|
255
|
+
String(options.initialView || options.viewMode || 'simple').toLowerCase() === 'advanced'
|
|
256
|
+
? 'advanced'
|
|
257
|
+
: 'simple';
|
|
258
|
+
|
|
259
|
+
const grid = computeHorizonGrid(state, options);
|
|
260
|
+
const metrics = deriveSurfaceMetrics(state, options);
|
|
261
|
+
const { verdict, priorityAction, secondaryActions, overflowActionCount } =
|
|
262
|
+
deriveClaudeCodeVerdictAndActions(state, grid, metrics, options);
|
|
263
|
+
const simplePane = renderSimpleViewPane(state, options);
|
|
264
|
+
const advancedPane = renderAdvancedViewPane(state, options);
|
|
265
|
+
|
|
266
|
+
const peerModel = resolveNaturalDownshiftPeer(grid.modelId);
|
|
267
|
+
const breakEven = computeBreakEvenCachedTokens(
|
|
268
|
+
{
|
|
269
|
+
currentModel: grid.modelId,
|
|
270
|
+
targetModel: peerModel,
|
|
271
|
+
expectedOutputTokens: 1500,
|
|
272
|
+
cacheTtlTier: metrics.ttlTier
|
|
273
|
+
},
|
|
274
|
+
options
|
|
275
|
+
);
|
|
276
|
+
const swarmSummary = computeSwarmSummary(state, { nowMs: options.nowMs || Date.now() });
|
|
277
|
+
const headroomTokens = Math.max(0, grid.zoomTier.ceilingTokens - grid.totalInputTokens);
|
|
278
|
+
|
|
279
|
+
const rawOffenders = Array.isArray(options.offenders) && options.offenders.length > 0
|
|
280
|
+
? options.offenders.slice(0, 4).map((o) => {
|
|
281
|
+
const name = String(o.name || o.target || o.path || 'Context Item');
|
|
282
|
+
const tokens = Math.max(0, Number(o.tokens ?? o.wastedTokens ?? 0));
|
|
283
|
+
const occ = Number(o.occurrences || 0);
|
|
284
|
+
return {
|
|
285
|
+
name,
|
|
286
|
+
tokens,
|
|
287
|
+
occurrences: occ,
|
|
288
|
+
category: String(o.category || '[D]'),
|
|
289
|
+
ignorable: isIgnorableClaudePath(name),
|
|
290
|
+
pct:
|
|
291
|
+
grid.totalInputTokens > 0
|
|
292
|
+
? Number(((tokens / grid.totalInputTokens) * 100).toFixed(1))
|
|
293
|
+
: 0
|
|
294
|
+
};
|
|
295
|
+
})
|
|
296
|
+
: [
|
|
297
|
+
{
|
|
298
|
+
name: 'Middle-Window Distractor / Stale Tool Output',
|
|
299
|
+
tokens: grid.tokens.D,
|
|
300
|
+
category: '[D]',
|
|
301
|
+
ignorable: false
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: 'System Prompt & MCP Tool Schemas',
|
|
305
|
+
tokens: grid.tokens.S,
|
|
306
|
+
category: '[S]',
|
|
307
|
+
ignorable: false
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
name: 'Fresh 1.25x Cache Write Delta',
|
|
311
|
+
tokens: grid.tokens.W,
|
|
312
|
+
category: '[W]',
|
|
313
|
+
ignorable: false
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: 'Warm Cached Conversation Prefix',
|
|
317
|
+
tokens: grid.tokens.C,
|
|
318
|
+
category: '[C]',
|
|
319
|
+
ignorable: false
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
.filter((e) => e.tokens > 0)
|
|
323
|
+
.sort((a, b) => b.tokens - a.tokens)
|
|
324
|
+
.map((e) => ({
|
|
325
|
+
...e,
|
|
326
|
+
pct:
|
|
327
|
+
grid.totalInputTokens > 0
|
|
328
|
+
? Number(((e.tokens / grid.totalInputTokens) * 100).toFixed(1))
|
|
329
|
+
: 0
|
|
330
|
+
}));
|
|
331
|
+
|
|
332
|
+
const midTickLabel =
|
|
333
|
+
grid.zoomTier.id === '100k'
|
|
334
|
+
? '50k'
|
|
335
|
+
: grid.zoomTier.id === '1M'
|
|
336
|
+
? '500k'
|
|
337
|
+
: `${Math.round(grid.zoomTier.ceilingTokens / 2000)}k`;
|
|
338
|
+
const maxTickLabel =
|
|
339
|
+
grid.zoomTier.id === '100k' ? '100k (5x Haiku Cliff)' : grid.zoomTier.id;
|
|
340
|
+
|
|
341
|
+
const isCompactRecommended =
|
|
342
|
+
priorityAction.commandHint.includes('/compact') ||
|
|
343
|
+
priorityAction.instruction.includes('/compact');
|
|
344
|
+
|
|
345
|
+
const compactInstructionText = isCompactRecommended
|
|
346
|
+
? 'Type /compact in the chat box and press Enter'
|
|
347
|
+
: priorityAction.instruction;
|
|
348
|
+
const compactReclaimText =
|
|
349
|
+
priorityAction.reclaimTokens > 0
|
|
350
|
+
? `Reclaims ~${formatTokensCompact(priorityAction.reclaimTokens)} (${metrics.cacheWarm && metrics.remainingSeconds > 60 ? `after ${metrics.ttlCompact} warm TTL` : 'ready now'})`
|
|
351
|
+
: metrics.cacheWarm
|
|
352
|
+
? `${formatTokensCompact(metrics.cachedTokens)} warm at 0.10x read discount`
|
|
353
|
+
: 'Cold prefix — ready for next turn';
|
|
354
|
+
|
|
355
|
+
const catList = [
|
|
356
|
+
metrics.savingsCategories.cacheReadDiscount,
|
|
357
|
+
metrics.savingsCategories.prefixBustAvoided,
|
|
358
|
+
metrics.savingsCategories.toolOutputCompressed,
|
|
359
|
+
metrics.savingsCategories.loopAndReadGuarded,
|
|
360
|
+
metrics.savingsCategories.subagentIsolated
|
|
361
|
+
];
|
|
362
|
+
|
|
363
|
+
const tl = options.sessionTimeline || state.sessionTimeline || null;
|
|
364
|
+
const k = (tl && tl.kpis) || {};
|
|
365
|
+
let runwayText = headroomTokens > 0 ? `${formatTokensCompact(headroomTokens)} headroom` : 'Over safe limit';
|
|
366
|
+
let runwayLevel = headroomTokens <= 0 ? 'bad' : 'good';
|
|
367
|
+
if (k.overLimit || headroomTokens === 0) {
|
|
368
|
+
runwayText = 'Over safe limit';
|
|
369
|
+
runwayLevel = 'bad';
|
|
370
|
+
} else if (k.turnsLeft !== null && k.turnsLeft !== undefined) {
|
|
371
|
+
runwayText = `~${k.turnsLeft} turn${k.turnsLeft === 1 ? '' : 's'} left`;
|
|
372
|
+
runwayLevel = k.turnsLeft <= 3 ? 'bad' : (k.turnsLeft <= 8 ? 'warn' : 'good');
|
|
373
|
+
}
|
|
374
|
+
const burnRateSub = k.burnRateTokens > 0 ? `\u00B7 ${formatTokensCompact(k.burnRateTokens)}/turn` : '';
|
|
375
|
+
const runwaySub = `${formatTokensCompact(grid.totalInputTokens)} / ${grid.zoomTier.id} (${grid.utilizationPct}%) ${burnRateSub}`.trim();
|
|
376
|
+
const ringDashOffset = computeCacheRingDashOffset(metrics.cacheHitPct);
|
|
377
|
+
const ringWarm = Boolean(metrics.cacheWarm);
|
|
378
|
+
const ringExpiring = Boolean(metrics.cacheWarm && metrics.remainingSeconds > 0 && metrics.remainingSeconds <= 60);
|
|
379
|
+
const rawCompactCmd = typeof options.compactCommand === 'string' ? options.compactCommand : (typeof state.compactCommand === 'string' ? state.compactCommand : '');
|
|
380
|
+
const compactCommand = rawCompactCmd.startsWith('/compact ') ? rawCompactCmd : '/compact';
|
|
381
|
+
const compactCommandJs = compactCommand.replace(/\\/g, '\\\\').replace(/'/g, "\\'");
|
|
382
|
+
const amnesiaAtRisk = Boolean(state.amnesiaRisk || Number(state.anchorsAtRisk || 0) > 0 || state.cliffTriggered || grid.utilizationPct >= 85);
|
|
383
|
+
const hasExplicitOffenders = Boolean(Array.isArray(options.offenders) && options.offenders.length > 0 && grid.tokens.D > 0);
|
|
384
|
+
const usefulTokens = Math.max(0, grid.totalInputTokens - grid.tokens.D);
|
|
385
|
+
const holdWarmActive = Boolean(metrics.cacheWarm && grid.tokens.D > 0 && verdict.severity !== 'critical');
|
|
386
|
+
|
|
387
|
+
const html = `<!doctype html>
|
|
388
|
+
<html lang="en">
|
|
389
|
+
<head>
|
|
390
|
+
<meta charset="utf-8">
|
|
391
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
392
|
+
<title>Highbeam — Claude Code</title>
|
|
393
|
+
<style>
|
|
394
|
+
:root {
|
|
395
|
+
color-scheme: dark;
|
|
396
|
+
--bg-canvas: #0B0C0E;
|
|
397
|
+
--bg-surface: #121417;
|
|
398
|
+
--bg-elevated: #1B1E23;
|
|
399
|
+
--hairline: rgba(255, 255, 255, 0.07);
|
|
400
|
+
--text-primary: #F1F3F4;
|
|
401
|
+
--text-secondary: #9AA0A6;
|
|
402
|
+
--text-muted: #80868B;
|
|
403
|
+
--status-critical: #D93025;
|
|
404
|
+
--status-warning: #F29900;
|
|
405
|
+
--status-nominal: #1E8E3E;
|
|
406
|
+
--accent-focus: #1A73E8;
|
|
407
|
+
--font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Google Sans", sans-serif;
|
|
408
|
+
--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
409
|
+
--control-height: 28px;
|
|
410
|
+
--control-radius: 6px;
|
|
411
|
+
--ease-snappy: 140ms cubic-bezier(0.2, 0, 0, 1);
|
|
412
|
+
|
|
413
|
+
--bg: var(--bg-canvas);
|
|
414
|
+
--card: var(--bg-surface);
|
|
415
|
+
--card-alt: var(--bg-elevated);
|
|
416
|
+
--border: var(--hairline);
|
|
417
|
+
--fg: var(--text-primary);
|
|
418
|
+
--muted: var(--text-muted);
|
|
419
|
+
--good: var(--status-nominal);
|
|
420
|
+
--warn: var(--status-warning);
|
|
421
|
+
--bad: var(--status-critical);
|
|
422
|
+
--accent: var(--accent-focus);
|
|
423
|
+
--ring-track: var(--bg-elevated);
|
|
424
|
+
}
|
|
425
|
+
@media (prefers-color-scheme: light) {
|
|
426
|
+
:root {
|
|
427
|
+
color-scheme: light;
|
|
428
|
+
--bg-canvas: #F8F9FA;
|
|
429
|
+
--bg-surface: #FFFFFF;
|
|
430
|
+
--bg-elevated: #F1F3F4;
|
|
431
|
+
--hairline: rgba(0, 0, 0, 0.08);
|
|
432
|
+
--text-primary: #111315;
|
|
433
|
+
--text-secondary: #3C4043;
|
|
434
|
+
--text-muted: #5F6368;
|
|
435
|
+
--status-critical: #D93025;
|
|
436
|
+
--status-warning: #B06000;
|
|
437
|
+
--status-nominal: #137333;
|
|
438
|
+
--accent-focus: #1A73E8;
|
|
439
|
+
}
|
|
440
|
+
.ah-wordmark { filter: invert(1) brightness(0.14); }
|
|
441
|
+
}
|
|
442
|
+
[data-theme="light"] {
|
|
443
|
+
color-scheme: light;
|
|
444
|
+
--bg-canvas: #F8F9FA;
|
|
445
|
+
--bg-surface: #FFFFFF;
|
|
446
|
+
--bg-elevated: #F1F3F4;
|
|
447
|
+
--hairline: rgba(0, 0, 0, 0.08);
|
|
448
|
+
--text-primary: #111315;
|
|
449
|
+
--text-secondary: #3C4043;
|
|
450
|
+
--text-muted: #5F6368;
|
|
451
|
+
--status-critical: #D93025;
|
|
452
|
+
--status-warning: #B06000;
|
|
453
|
+
--status-nominal: #137333;
|
|
454
|
+
--accent-focus: #1A73E8;
|
|
455
|
+
}
|
|
456
|
+
[data-theme="light"] .ah-wordmark { filter: invert(1) brightness(0.14); }
|
|
457
|
+
* { box-sizing: border-box; }
|
|
458
|
+
body {
|
|
459
|
+
margin: 0;
|
|
460
|
+
padding: 8px 12px;
|
|
461
|
+
background: var(--bg-canvas);
|
|
462
|
+
color: var(--text-primary);
|
|
463
|
+
font: 12px/1.4 var(--font-sans);
|
|
464
|
+
font-variant-numeric: tabular-nums;
|
|
465
|
+
-webkit-font-smoothing: antialiased;
|
|
466
|
+
}
|
|
467
|
+
.ah-wrap {
|
|
468
|
+
max-width: 420px;
|
|
469
|
+
margin: 0 auto;
|
|
470
|
+
display: flex;
|
|
471
|
+
flex-direction: column;
|
|
472
|
+
gap: 4px;
|
|
473
|
+
}
|
|
474
|
+
.ah-view-radio {
|
|
475
|
+
position: absolute;
|
|
476
|
+
opacity: 0;
|
|
477
|
+
pointer-events: none;
|
|
478
|
+
}
|
|
479
|
+
.ah-topbar {
|
|
480
|
+
display: flex;
|
|
481
|
+
align-items: center;
|
|
482
|
+
justify-content: space-between;
|
|
483
|
+
gap: 6px;
|
|
484
|
+
padding-bottom: 4px;
|
|
485
|
+
border-bottom: 1px solid var(--hairline);
|
|
486
|
+
}
|
|
487
|
+
.ah-brand-sub { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--text-muted); margin-left: 6px; }
|
|
488
|
+
.ah-brand {
|
|
489
|
+
display: flex;
|
|
490
|
+
flex-direction: row;
|
|
491
|
+
align-items: baseline;
|
|
492
|
+
flex-wrap: wrap;
|
|
493
|
+
min-width: 0;
|
|
494
|
+
color: var(--text-primary);
|
|
495
|
+
}
|
|
496
|
+
.ah-wordmark { height: 20px; width: auto; max-width: 100%; object-fit: contain; display: block; }
|
|
497
|
+
.ah-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
|
498
|
+
.ah-logo { width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; display: block; }
|
|
499
|
+
.ah-tabs.ah-tabs-row { display: flex; }
|
|
500
|
+
.ah-tabs-row .ah-tab-label { flex: 1 1 0; text-align: center; }
|
|
501
|
+
.ah-tabs {
|
|
502
|
+
display: inline-flex;
|
|
503
|
+
background: var(--bg-surface);
|
|
504
|
+
border: 1px solid var(--hairline);
|
|
505
|
+
border-radius: 6px;
|
|
506
|
+
padding: 2px;
|
|
507
|
+
}
|
|
508
|
+
.ah-tab-label {
|
|
509
|
+
padding: 2px 8px;
|
|
510
|
+
font-size: 10.5px;
|
|
511
|
+
font-weight: 600;
|
|
512
|
+
color: var(--text-muted);
|
|
513
|
+
border-radius: 4px;
|
|
514
|
+
cursor: pointer;
|
|
515
|
+
user-select: none;
|
|
516
|
+
transition: opacity var(--ease-snappy);
|
|
517
|
+
}
|
|
518
|
+
#viewModeSimple:checked ~ .ah-wrap .ah-tabs label[for="viewModeSimple"],
|
|
519
|
+
#viewModeAdvanced:checked ~ .ah-wrap .ah-tabs label[for="viewModeAdvanced"] {
|
|
520
|
+
background: var(--bg-elevated);
|
|
521
|
+
color: var(--text-primary);
|
|
522
|
+
}
|
|
523
|
+
#viewModeSimple:checked ~ .ah-wrap #advancedViewContainer {
|
|
524
|
+
display: none;
|
|
525
|
+
}
|
|
526
|
+
#viewModeAdvanced:checked ~ .ah-wrap #simpleViewContainer {
|
|
527
|
+
display: none;
|
|
528
|
+
}
|
|
529
|
+
#simpleViewContainer {
|
|
530
|
+
display: flex;
|
|
531
|
+
flex-direction: column;
|
|
532
|
+
gap: 0;
|
|
533
|
+
}
|
|
534
|
+
.ah-card {
|
|
535
|
+
background: var(--bg-surface);
|
|
536
|
+
border: 1px solid var(--hairline);
|
|
537
|
+
border-radius: 6px;
|
|
538
|
+
padding: 8px 10px;
|
|
539
|
+
}
|
|
540
|
+
/* Full-bleed 1px hairline telemetry rows (preserves #simpleViewContainer .ah-card selector) */
|
|
541
|
+
#simpleViewContainer .ah-card {
|
|
542
|
+
background: transparent;
|
|
543
|
+
border: 0;
|
|
544
|
+
border-bottom: 1px solid var(--hairline);
|
|
545
|
+
border-radius: 0;
|
|
546
|
+
padding: 8px 0;
|
|
547
|
+
margin-bottom: 0;
|
|
548
|
+
}
|
|
549
|
+
.ah-verdict-row {
|
|
550
|
+
display: flex;
|
|
551
|
+
align-items: center;
|
|
552
|
+
justify-content: space-between;
|
|
553
|
+
gap: 6px;
|
|
554
|
+
margin-bottom: 4px;
|
|
555
|
+
}
|
|
556
|
+
.ah-verdict-left {
|
|
557
|
+
display: flex;
|
|
558
|
+
align-items: center;
|
|
559
|
+
gap: 6px;
|
|
560
|
+
min-width: 0;
|
|
561
|
+
}
|
|
562
|
+
.ah-dot {
|
|
563
|
+
width: 7px;
|
|
564
|
+
height: 7px;
|
|
565
|
+
border-radius: 50%;
|
|
566
|
+
flex-shrink: 0;
|
|
567
|
+
}
|
|
568
|
+
.ah-dot-healthy { background: var(--text-secondary); }
|
|
569
|
+
.ah-dot-warn { background: var(--status-warning); }
|
|
570
|
+
.ah-dot-critical { background: var(--status-critical); }
|
|
571
|
+
.ah-verdict-title {
|
|
572
|
+
font-size: 12px;
|
|
573
|
+
font-weight: 600;
|
|
574
|
+
color: var(--text-primary);
|
|
575
|
+
white-space: nowrap;
|
|
576
|
+
overflow: hidden;
|
|
577
|
+
text-overflow: ellipsis;
|
|
578
|
+
}
|
|
579
|
+
.ah-pills {
|
|
580
|
+
display: flex;
|
|
581
|
+
flex-wrap: nowrap;
|
|
582
|
+
align-items: center;
|
|
583
|
+
gap: 5px;
|
|
584
|
+
width: 100%;
|
|
585
|
+
min-width: 0;
|
|
586
|
+
padding: 4px 0 6px;
|
|
587
|
+
border-bottom: 1px solid var(--hairline);
|
|
588
|
+
}
|
|
589
|
+
#modelBadge { flex-shrink: 1; margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: right; }
|
|
590
|
+
.ah-pill {
|
|
591
|
+
font-family: var(--font-mono);
|
|
592
|
+
font-size: 10px;
|
|
593
|
+
font-weight: 500;
|
|
594
|
+
font-variant-numeric: tabular-nums;
|
|
595
|
+
box-sizing: border-box;
|
|
596
|
+
height: 20px;
|
|
597
|
+
line-height: 18px;
|
|
598
|
+
white-space: nowrap;
|
|
599
|
+
flex-shrink: 0;
|
|
600
|
+
padding: 0 6px;
|
|
601
|
+
border-radius: 4px;
|
|
602
|
+
background: var(--bg-surface);
|
|
603
|
+
border: 1px solid var(--hairline);
|
|
604
|
+
color: var(--text-secondary);
|
|
605
|
+
}
|
|
606
|
+
.ah-pill-risk {
|
|
607
|
+
color: var(--status-critical);
|
|
608
|
+
border-color: var(--status-critical);
|
|
609
|
+
font-weight: 600;
|
|
610
|
+
}
|
|
611
|
+
.ah-verdict-sub {
|
|
612
|
+
font-size: 10.5px;
|
|
613
|
+
color: var(--text-secondary);
|
|
614
|
+
margin-top: 3px;
|
|
615
|
+
white-space: nowrap;
|
|
616
|
+
overflow: hidden;
|
|
617
|
+
text-overflow: ellipsis;
|
|
618
|
+
}
|
|
619
|
+
/* Runway Hero + 1D Prompt Cache BulletBar (Zero Radial Gauge Chartjunk) */
|
|
620
|
+
.ah-hero-row {
|
|
621
|
+
display: grid;
|
|
622
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
623
|
+
align-items: end;
|
|
624
|
+
gap: 10px;
|
|
625
|
+
margin-bottom: 6px;
|
|
626
|
+
}
|
|
627
|
+
.ah-runway-hero {
|
|
628
|
+
font-size: 15px;
|
|
629
|
+
font-weight: 600;
|
|
630
|
+
letter-spacing: -0.015em;
|
|
631
|
+
line-height: 1.2;
|
|
632
|
+
color: var(--text-primary);
|
|
633
|
+
font-variant-numeric: tabular-nums;
|
|
634
|
+
}
|
|
635
|
+
.ah-runway-hero[data-level="bad"] { color: var(--status-critical); }
|
|
636
|
+
.ah-runway-hero[data-level="warn"] { color: var(--status-warning); }
|
|
637
|
+
.ah-runway-hero[data-level="good"] { color: var(--text-primary); }
|
|
638
|
+
.ah-runway-sub {
|
|
639
|
+
font-family: var(--font-mono);
|
|
640
|
+
font-size: 10.5px;
|
|
641
|
+
color: var(--text-secondary);
|
|
642
|
+
margin-top: 1px;
|
|
643
|
+
font-variant-numeric: tabular-nums;
|
|
644
|
+
}
|
|
645
|
+
.ah-ring-col { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
|
|
646
|
+
.ah-ring-cap { font-size: 9.5px; font-weight: 500; color: var(--text-muted); white-space: nowrap; line-height: 1.1; }
|
|
647
|
+
.ah-cache-ring-wrap {
|
|
648
|
+
display: flex;
|
|
649
|
+
flex-direction: column;
|
|
650
|
+
align-items: flex-end;
|
|
651
|
+
gap: 3px;
|
|
652
|
+
flex-shrink: 0;
|
|
653
|
+
}
|
|
654
|
+
.ah-ring-center {
|
|
655
|
+
display: inline-flex;
|
|
656
|
+
align-items: baseline;
|
|
657
|
+
gap: 5px;
|
|
658
|
+
font-family: var(--font-mono);
|
|
659
|
+
line-height: 1.1;
|
|
660
|
+
font-variant-numeric: tabular-nums;
|
|
661
|
+
}
|
|
662
|
+
.ah-ring-pct { font-size: 11px; font-weight: 600; color: var(--text-primary); }
|
|
663
|
+
.ah-ring-ttl { font-size: 10px; color: var(--text-secondary); }
|
|
664
|
+
.ah-cache-bullet {
|
|
665
|
+
position: relative;
|
|
666
|
+
width: 68px;
|
|
667
|
+
height: 6px;
|
|
668
|
+
background: var(--bg-elevated);
|
|
669
|
+
border: 1px solid var(--hairline);
|
|
670
|
+
border-radius: 2px;
|
|
671
|
+
overflow: hidden;
|
|
672
|
+
}
|
|
673
|
+
.ah-cache-bullet-fill {
|
|
674
|
+
height: 100%;
|
|
675
|
+
background: var(--text-secondary);
|
|
676
|
+
transition: width var(--ease-snappy);
|
|
677
|
+
}
|
|
678
|
+
.ah-cache-ring-wrap[data-warm="true"] .ah-cache-bullet-fill { background: var(--status-nominal); }
|
|
679
|
+
.ah-cache-ring-wrap[data-expiring="true"] .ah-cache-bullet-fill { background: var(--status-warning); }
|
|
680
|
+
.ah-cache-bullet-tick {
|
|
681
|
+
position: absolute;
|
|
682
|
+
top: 0;
|
|
683
|
+
bottom: 0;
|
|
684
|
+
left: 80%;
|
|
685
|
+
width: 1.5px;
|
|
686
|
+
background: var(--text-muted);
|
|
687
|
+
}
|
|
688
|
+
.ah-sec-blurb { font-size: 10px; line-height: 1.3; color: var(--text-muted); margin: 0 0 4px 0; overflow-wrap: anywhere; }
|
|
689
|
+
.ah-sec-name.ah-sec-gap { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--hairline); }
|
|
690
|
+
.ah-sec-name { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); line-height: 1.2; margin: 0 0 2px 0; }
|
|
691
|
+
@media (max-height: 580px) { .ah-sec-blurb { display: none; } }
|
|
692
|
+
/* Clean 40-Cell 1D Horizon Bar + Quantitative Legend */
|
|
693
|
+
.ah-grid-bar {
|
|
694
|
+
display: grid;
|
|
695
|
+
grid-template-columns: repeat(40, 1fr);
|
|
696
|
+
gap: 1px;
|
|
697
|
+
height: 7px;
|
|
698
|
+
border-radius: 2px;
|
|
699
|
+
overflow: hidden;
|
|
700
|
+
background: var(--bg-elevated);
|
|
701
|
+
border: 1px solid var(--hairline);
|
|
702
|
+
}
|
|
703
|
+
.ah-cell { display: block; height: 100%; }
|
|
704
|
+
.ah-ruler {
|
|
705
|
+
display: flex;
|
|
706
|
+
justify-content: space-between;
|
|
707
|
+
font-family: var(--font-mono);
|
|
708
|
+
font-size: 9.5px;
|
|
709
|
+
font-variant-numeric: tabular-nums;
|
|
710
|
+
color: var(--text-muted);
|
|
711
|
+
margin-top: 2px;
|
|
712
|
+
}
|
|
713
|
+
.ah-bar-legend {
|
|
714
|
+
display: flex;
|
|
715
|
+
align-items: center;
|
|
716
|
+
justify-content: space-between;
|
|
717
|
+
gap: 8px;
|
|
718
|
+
margin-top: 4px;
|
|
719
|
+
font-size: 10.5px;
|
|
720
|
+
color: var(--text-secondary);
|
|
721
|
+
font-variant-numeric: tabular-nums;
|
|
722
|
+
}
|
|
723
|
+
.ah-bar-legend strong { font-family: var(--font-mono); color: var(--text-primary); font-weight: 600; }
|
|
724
|
+
.ah-top-offender {
|
|
725
|
+
margin-top: 4px;
|
|
726
|
+
font-family: var(--font-mono);
|
|
727
|
+
font-size: 10.5px;
|
|
728
|
+
font-variant-numeric: tabular-nums;
|
|
729
|
+
color: var(--text-primary);
|
|
730
|
+
white-space: nowrap;
|
|
731
|
+
overflow: hidden;
|
|
732
|
+
text-overflow: ellipsis;
|
|
733
|
+
}
|
|
734
|
+
.ah-offender-kicker { font-family: var(--font-sans); font-weight: 600; color: var(--status-warning); }
|
|
735
|
+
.ah-hogs-drawer {
|
|
736
|
+
margin-top: 4px;
|
|
737
|
+
font-size: 10.5px;
|
|
738
|
+
color: var(--text-secondary);
|
|
739
|
+
}
|
|
740
|
+
.ah-hogs-drawer summary {
|
|
741
|
+
cursor: pointer;
|
|
742
|
+
color: var(--text-secondary);
|
|
743
|
+
font-weight: 500;
|
|
744
|
+
}
|
|
745
|
+
.ah-hog-row {
|
|
746
|
+
display: flex;
|
|
747
|
+
align-items: center;
|
|
748
|
+
justify-content: space-between;
|
|
749
|
+
gap: 6px;
|
|
750
|
+
padding: 3px 0;
|
|
751
|
+
border-bottom: 1px solid var(--hairline);
|
|
752
|
+
}
|
|
753
|
+
.ah-hog-row:last-child { border-bottom: none; }
|
|
754
|
+
.ah-hog-name { font-family: var(--font-mono); color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
755
|
+
.ah-hog-meta { font-family: var(--font-mono); display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
|
|
756
|
+
/* Primary Remediation ActionPill (28px Tactile Control) */
|
|
757
|
+
.ah-action-hdr {
|
|
758
|
+
display: flex;
|
|
759
|
+
align-items: center;
|
|
760
|
+
justify-content: space-between;
|
|
761
|
+
gap: 8px;
|
|
762
|
+
font-size: 11px;
|
|
763
|
+
font-weight: 600;
|
|
764
|
+
color: var(--text-primary);
|
|
765
|
+
}
|
|
766
|
+
.ah-action-instr {
|
|
767
|
+
margin-top: 4px;
|
|
768
|
+
font-size: 10.5px;
|
|
769
|
+
color: var(--text-secondary);
|
|
770
|
+
font-family: var(--font-mono);
|
|
771
|
+
}
|
|
772
|
+
.ah-action-reclaim {
|
|
773
|
+
font-family: var(--font-mono);
|
|
774
|
+
font-size: 10px;
|
|
775
|
+
font-variant-numeric: tabular-nums;
|
|
776
|
+
color: var(--text-secondary);
|
|
777
|
+
font-weight: 500;
|
|
778
|
+
margin-left: auto;
|
|
779
|
+
}
|
|
780
|
+
.ah-btn-copy-compact {
|
|
781
|
+
cursor: pointer;
|
|
782
|
+
min-height: var(--control-height);
|
|
783
|
+
border-radius: var(--control-radius);
|
|
784
|
+
border: 1px solid var(--hairline);
|
|
785
|
+
background: var(--bg-elevated);
|
|
786
|
+
color: var(--text-primary);
|
|
787
|
+
font-family: var(--font-sans);
|
|
788
|
+
font-size: 11px;
|
|
789
|
+
font-weight: 600;
|
|
790
|
+
padding: 4px 10px;
|
|
791
|
+
flex-shrink: 0;
|
|
792
|
+
transition: opacity var(--ease-snappy), transform var(--ease-snappy);
|
|
793
|
+
}
|
|
794
|
+
.ah-btn-copy-compact:hover { opacity: 0.9; }
|
|
795
|
+
.ah-btn-copy-compact:active { transform: scale(0.985); }
|
|
796
|
+
#priorityActionCard[data-severity="warn"][data-hold="false"] .ah-btn-copy-compact {
|
|
797
|
+
background: var(--accent-focus);
|
|
798
|
+
border-color: var(--accent-focus);
|
|
799
|
+
color: #FFFFFF;
|
|
800
|
+
}
|
|
801
|
+
#priorityActionCard[data-severity="critical"] .ah-btn-copy-compact {
|
|
802
|
+
background: var(--status-critical);
|
|
803
|
+
border-color: var(--status-critical);
|
|
804
|
+
color: #FFFFFF;
|
|
805
|
+
}
|
|
806
|
+
details.ah-overflow {
|
|
807
|
+
margin-top: 5px;
|
|
808
|
+
font-size: 10.5px;
|
|
809
|
+
color: var(--text-secondary);
|
|
810
|
+
}
|
|
811
|
+
details.ah-overflow summary {
|
|
812
|
+
cursor: pointer;
|
|
813
|
+
color: var(--text-secondary);
|
|
814
|
+
font-weight: 500;
|
|
815
|
+
}
|
|
816
|
+
/* Session Activity + Saved Quantitative Row */
|
|
817
|
+
.ah-flight {
|
|
818
|
+
display: flex;
|
|
819
|
+
flex-direction: column;
|
|
820
|
+
gap: 6px;
|
|
821
|
+
}
|
|
822
|
+
.ah-fr-topbar {
|
|
823
|
+
display: flex;
|
|
824
|
+
align-items: center;
|
|
825
|
+
justify-content: space-between;
|
|
826
|
+
gap: 6px;
|
|
827
|
+
flex-wrap: wrap;
|
|
828
|
+
}
|
|
829
|
+
.ah-fr-title {
|
|
830
|
+
font-size: 10.5px;
|
|
831
|
+
font-weight: 600;
|
|
832
|
+
letter-spacing: 0.04em;
|
|
833
|
+
text-transform: uppercase;
|
|
834
|
+
color: var(--text-secondary);
|
|
835
|
+
}
|
|
836
|
+
.ah-saved-pill-wrap {
|
|
837
|
+
margin-left: auto;
|
|
838
|
+
}
|
|
839
|
+
.ah-saved-pill {
|
|
840
|
+
display: inline-flex;
|
|
841
|
+
align-items: baseline;
|
|
842
|
+
gap: 6px;
|
|
843
|
+
cursor: pointer;
|
|
844
|
+
list-style: none;
|
|
845
|
+
padding: 2px 6px;
|
|
846
|
+
border-radius: 4px;
|
|
847
|
+
background: var(--bg-surface);
|
|
848
|
+
border: 1px solid var(--hairline);
|
|
849
|
+
font-family: var(--font-mono);
|
|
850
|
+
font-size: 10.5px;
|
|
851
|
+
font-variant-numeric: tabular-nums;
|
|
852
|
+
}
|
|
853
|
+
.ah-saved-pill::-webkit-details-marker { display: none; }
|
|
854
|
+
.ah-saved-kicker { font-family: var(--font-sans); color: var(--text-secondary); font-weight: 600; font-size: 10px; }
|
|
855
|
+
.ah-saved-num { color: var(--text-primary); font-weight: 600; }
|
|
856
|
+
.ah-saved-30d { color: var(--text-muted); font-size: 10px; }
|
|
857
|
+
.ah-saved-why {
|
|
858
|
+
margin-top: 5px;
|
|
859
|
+
padding: 6px 8px;
|
|
860
|
+
border-radius: 4px;
|
|
861
|
+
background: var(--bg-surface);
|
|
862
|
+
border: 1px solid var(--hairline);
|
|
863
|
+
font-size: 10px;
|
|
864
|
+
display: flex;
|
|
865
|
+
flex-direction: column;
|
|
866
|
+
gap: 3px;
|
|
867
|
+
}
|
|
868
|
+
.ah-saved-driver { color: var(--text-secondary); font-weight: 600; }
|
|
869
|
+
.ah-saved-cat-row { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
|
|
870
|
+
.ah-fr-zones-body {
|
|
871
|
+
display: flex;
|
|
872
|
+
flex-direction: column;
|
|
873
|
+
gap: 6px;
|
|
874
|
+
}
|
|
875
|
+
.ah-fr-zone { display: flex; flex-direction: column; min-height: 0; }
|
|
876
|
+
.ah-fr-head > span:first-child { font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }
|
|
877
|
+
.ah-fr-head {
|
|
878
|
+
display: flex;
|
|
879
|
+
align-items: center;
|
|
880
|
+
justify-content: space-between;
|
|
881
|
+
gap: 6px;
|
|
882
|
+
font-size: 9.5px;
|
|
883
|
+
font-weight: 500;
|
|
884
|
+
color: var(--text-muted);
|
|
885
|
+
white-space: nowrap;
|
|
886
|
+
font-variant-numeric: tabular-nums;
|
|
887
|
+
}
|
|
888
|
+
.ah-fr-count { font-family: var(--font-mono); font-size: 10px; color: var(--text-primary); font-weight: 600; }
|
|
889
|
+
.ah-fr-legend { display: inline-flex; align-items: center; gap: 3px 6px; font-weight: 500; }
|
|
890
|
+
.ah-lg { display: inline-block; width: 6px; height: 6px; border-radius: 1px; }
|
|
891
|
+
.ah-lg-good { background: var(--text-secondary); }
|
|
892
|
+
.ah-lg-bad { background: var(--status-critical); }
|
|
893
|
+
.ah-lg-limit { height: 0; width: 8px; border-radius: 0; border-top: 1px dashed var(--text-muted); }
|
|
894
|
+
.ah-tl-chart {
|
|
895
|
+
position: relative;
|
|
896
|
+
display: flex;
|
|
897
|
+
align-items: flex-end;
|
|
898
|
+
gap: 2px;
|
|
899
|
+
height: clamp(56px, 12vh, 84px);
|
|
900
|
+
margin-top: 3px;
|
|
901
|
+
border-bottom: 1px solid var(--hairline);
|
|
902
|
+
}
|
|
903
|
+
.ah-tl-slot { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
|
|
904
|
+
.ah-tl-bar { display: block; width: 100%; min-height: 2px; border-radius: 1px 1px 0 0; }
|
|
905
|
+
.ah-tl-bar.ah-tl-good { background: var(--text-secondary); opacity: 0.75; }
|
|
906
|
+
.ah-tl-bar.ah-tl-bad { background: var(--status-critical); }
|
|
907
|
+
.ah-tl-bar.ah-tl-neutral { background: var(--text-muted); opacity: 0.5; }
|
|
908
|
+
.ah-tl-empty .ah-tl-bar { height: 2px; background: var(--bg-elevated); }
|
|
909
|
+
.ah-tl-earlier .ah-tl-bar { background: repeating-linear-gradient(135deg, var(--text-muted) 0 2px, transparent 2px 4px); }
|
|
910
|
+
.ah-tl-line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
|
|
911
|
+
.ah-tl-poly-svg { color: var(--text-primary); opacity: 0.85; }
|
|
912
|
+
.ah-tl-limit-svg { color: var(--text-muted); opacity: 0.7; }
|
|
913
|
+
.ah-tl-markers { display: flex; gap: 2px; height: 11px; margin-top: 2px; font-size: 8.5px; line-height: 11px; color: var(--text-muted); }
|
|
914
|
+
.ah-tl-mk { flex: 1 1 0; min-width: 0; text-align: center; overflow: hidden; }
|
|
915
|
+
.ah-tl-detail {
|
|
916
|
+
min-height: 14px;
|
|
917
|
+
margin-top: 2px;
|
|
918
|
+
font-size: 10px;
|
|
919
|
+
color: var(--text-secondary);
|
|
920
|
+
white-space: nowrap;
|
|
921
|
+
overflow: hidden;
|
|
922
|
+
text-overflow: ellipsis;
|
|
923
|
+
font-variant-numeric: tabular-nums;
|
|
924
|
+
}
|
|
925
|
+
.ah-tl-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--text-muted); }
|
|
926
|
+
.ah-tl-dot.ah-tl-good { background: var(--text-secondary); }
|
|
927
|
+
.ah-tl-dot.ah-tl-bad { background: var(--status-critical); }
|
|
928
|
+
.ah-fx-list { margin-top: 3px; font-variant-numeric: tabular-nums; }
|
|
929
|
+
.ah-fx-empty { padding: 3px 0; font-size: 10.5px; color: var(--text-muted); }
|
|
930
|
+
.ah-fx-row { border-bottom: 1px solid var(--hairline); font-size: 10.5px; }
|
|
931
|
+
.ah-fx-row:last-of-type { border-bottom: none; }
|
|
932
|
+
.ah-fx-row summary {
|
|
933
|
+
display: grid;
|
|
934
|
+
grid-template-columns: 26px auto minmax(0, 1fr) auto;
|
|
935
|
+
align-items: baseline;
|
|
936
|
+
gap: 6px;
|
|
937
|
+
padding: 3px 0;
|
|
938
|
+
cursor: pointer;
|
|
939
|
+
list-style: none;
|
|
940
|
+
}
|
|
941
|
+
.ah-fx-row summary::-webkit-details-marker { display: none; }
|
|
942
|
+
.ah-fx-turn { font-family: var(--font-mono); color: var(--text-muted); }
|
|
943
|
+
.ah-fx-label { color: var(--text-primary); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
|
|
944
|
+
.ah-fx-mult { font-family: var(--font-mono); font-size: 9px; padding: 0 4px; border-radius: 4px; background: var(--bg-elevated); border: 1px solid var(--hairline); color: var(--text-secondary); }
|
|
945
|
+
.ah-fx-detail { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
946
|
+
.ah-fx-saved { font-family: var(--font-mono); color: var(--text-primary); font-weight: 600; }
|
|
947
|
+
.ah-fx-more { padding: 0 0 4px 32px; font-size: 10px; color: var(--text-muted); overflow-wrap: anywhere; }
|
|
948
|
+
.ah-fx-overflow summary { cursor: pointer; font-size: 10px; color: var(--text-secondary); padding: 3px 0; }
|
|
949
|
+
.ah-fx-rail-armed {
|
|
950
|
+
display: flex;
|
|
951
|
+
align-items: center;
|
|
952
|
+
gap: 6px;
|
|
953
|
+
padding-top: 4px;
|
|
954
|
+
margin-top: 3px;
|
|
955
|
+
border-top: 1px solid var(--hairline);
|
|
956
|
+
font-size: 10px;
|
|
957
|
+
color: var(--text-muted);
|
|
958
|
+
}
|
|
959
|
+
.ah-rail-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-nominal); flex-shrink: 0; }
|
|
960
|
+
@media (max-height: 580px) {
|
|
961
|
+
#simpleViewContainer[data-verdict-state="healthy"] .ah-fr-zones-body {
|
|
962
|
+
display: none;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
/* Advanced View Accordions */
|
|
966
|
+
#advancedViewContainer {
|
|
967
|
+
display: flex;
|
|
968
|
+
flex-direction: column;
|
|
969
|
+
gap: 6px;
|
|
970
|
+
}
|
|
971
|
+
details.adv-accordion {
|
|
972
|
+
background: var(--card);
|
|
973
|
+
border: 1px solid var(--border);
|
|
974
|
+
border-radius: 6px;
|
|
975
|
+
padding: 6px 9px;
|
|
976
|
+
}
|
|
977
|
+
details.adv-accordion summary {
|
|
978
|
+
cursor: pointer;
|
|
979
|
+
font-size: 11px;
|
|
980
|
+
font-weight: 700;
|
|
981
|
+
color: var(--fg);
|
|
982
|
+
display: flex;
|
|
983
|
+
align-items: center;
|
|
984
|
+
justify-content: space-between;
|
|
985
|
+
}
|
|
986
|
+
.adv-body {
|
|
987
|
+
margin-top: 6px;
|
|
988
|
+
padding-top: 6px;
|
|
989
|
+
border-top: 1px solid var(--border);
|
|
990
|
+
font-size: 11px;
|
|
991
|
+
display: flex;
|
|
992
|
+
flex-direction: column;
|
|
993
|
+
gap: 4px;
|
|
994
|
+
}
|
|
995
|
+
.adv-row {
|
|
996
|
+
display: flex;
|
|
997
|
+
align-items: center;
|
|
998
|
+
justify-content: space-between;
|
|
999
|
+
gap: 8px;
|
|
1000
|
+
}
|
|
1001
|
+
.adv-badge-ignore {
|
|
1002
|
+
font-size: 9px;
|
|
1003
|
+
padding: 1px 4px;
|
|
1004
|
+
border-radius: 3px;
|
|
1005
|
+
background: #3b2f13;
|
|
1006
|
+
color: var(--warn);
|
|
1007
|
+
border: 1px solid #785a1a;
|
|
1008
|
+
}
|
|
1009
|
+
</style>
|
|
1010
|
+
</head>
|
|
1011
|
+
<body>
|
|
1012
|
+
<input class="ah-view-radio" type="radio" name="ah-view" id="viewModeSimple" ${initialView === 'simple' ? 'checked' : ''}>
|
|
1013
|
+
<input class="ah-view-radio" type="radio" name="ah-view" id="viewModeAdvanced" ${initialView === 'advanced' ? 'checked' : ''}>
|
|
1014
|
+
<div class="ah-wrap" id="ahPanelRoot">
|
|
1015
|
+
<header class="ah-topbar">
|
|
1016
|
+
<span class="ah-brand"><img class="ah-wordmark" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVsAAAA4CAYAAABT2FutAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABOvSURBVHhe7Z0HsCxFFYZNGFEwgZhzzgkEIwYUERMq5iwqigHFjAFFUaoMoCiKoJizYs455xxKQQSzYkRF/dv6r2eWef/r6T4903fDu/1VTfHYO+dM7+7sPzP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FyFLYHMZjNftvHz57bJU0ejEtZY8Ip2wj/OGvNR0PildCfPYy0zjUVnshPxjUaj0Wg0Go1Go9FoNBqNRmPD8T/F+uEvRNc4AwAAAABJRU5ErkJggg==" width="161" height="26" alt="Highbeam"><span class="ah-sr-only">Highbeam</span><span class="ah-brand-sub">Claude Code</span></span>
|
|
1017
|
+
<img class="ah-logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAWCSURBVHhe7ZzLLyxLGMCnRUTEI14JIjZCXBvx2LDwjAg2jkQIYkUIYWEt8V7YeCVskDgeS3KPf4B4u2fhH7j3LBEx3ivume/ka7fc9s04Zkx3V9VMfckvPUr1VNX36+6pmX44NE37oWnatYILPxyapj1qmgYKLjygADRB/6GwB6cSwBclgDNKAGeUAM4oAZxRAjijBHBGCeCMEsAZJYAzSgBn5BTgcDjehdYVHLkEsCSnpqZCS0sLjIyMwOjoKLS1tUFaWpqMEuQRgIkNCwuDiYkJuLu7AxoPDw8wOTkJ4eHhMkmQQwAmNCIiAra3t0naf4LL9S+4XD9fS/b29iAyMlIWCfIIWFxcfJN6Gi6XSwdj+etXJcAsMJE5OTk03x6DCcDIzc2VQYIcAoaHh98k+nfBJOCHsxJgApjEjY0NmucPY3NzUwnwFzat3Nraovn9MHAdCaalYgtAMIHT09M0vx/G7Oys6MlH5BBQUVFB8/thVFVVKQFmwJKI83tv4+DgAEJCQpQAs8BEpqenw8XFBc21W1xeXkJGRoYMyUfkEIBgQrOysmB/f5/m/DUODw8hOztbluQj8ghA2Kymvr4eVlZW4Pj4GE5OTmB1dRUaGhpe69D1BEYuAQiT8B60vuDIJ8CIpEk3IreAAEBsAfTw8lno+wqE+AIaGxuhq6sLOjs7fQLXaWpqUgI+CyauuLiYzjR9jpKSEpEliCmAHTrwG62/gd8NBD4UiSugrq6O5tLHwNOUL+c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CeCMEsAZJYAzuoBHD/9Q2MMDCvgHTSi48PcvmVq6/q7R8mwAAAAASUVORK5CYII=" width="26" height="26" alt="" aria-hidden="true">
|
|
1018
|
+
</header>
|
|
1019
|
+
<nav class="ah-tabs ah-tabs-row" aria-label="View Mode">
|
|
1020
|
+
<label class="ah-tab-label" for="viewModeSimple" id="tabSimple">Simple</label>
|
|
1021
|
+
<label class="ah-tab-label" for="viewModeAdvanced" id="tabAdvanced">Advanced</label>
|
|
1022
|
+
</nav>
|
|
1023
|
+
|
|
1024
|
+
<!-- SIMPLE VIEW: Option A+ Hybrid Glanceable Architecture -->
|
|
1025
|
+
<main id="simpleViewContainer" data-verdict-state="${escapeHtml(verdict.severity)}">
|
|
1026
|
+
<div class="ah-pills" id="activeChatPills">
|
|
1027
|
+
<span class="ah-pill${amnesiaAtRisk ? ' ah-pill-risk' : ''}" id="simpleAmnesiaPill" title="Memory check: whether your rules and pinned instructions are still inside the AI's working memory.">${amnesiaAtRisk ? 'Memory: anchors at risk' : 'Memory: anchors pinned'}</span>
|
|
1028
|
+
<span class="ah-pill" id="flightModeBadge">${escapeHtml(metrics.flightMode)}</span>
|
|
1029
|
+
<span class="ah-pill" id="modelBadge" title="Active model. Switching model or effort mid-session rewrites the prompt cache, so the next turn costs full price.">Model: ${escapeHtml(state.modelLabel || grid.modelId)}</span>
|
|
1030
|
+
</div>
|
|
1031
|
+
<!-- Zone 1+2: Apple Bento Hero Card (Verdict Pill, Runway Hero, Watch Cache Ring, Horizon Bar & Surgical Hogs) -->
|
|
1032
|
+
<section class="ah-card" id="capacityAndCacheCard" data-severity="${escapeHtml(verdict.severity)}" data-hold="${holdWarmActive ? 'true' : 'false'}" data-rank="1">
|
|
1033
|
+
<div class="ah-sec-name">Context health</div>
|
|
1034
|
+
<div class="ah-sec-blurb">How full the AI's working memory is. Past the safe limit it starts forgetting your earliest instructions.</div>
|
|
1035
|
+
<div class="ah-verdict-row" id="verdictBanner">
|
|
1036
|
+
<div class="ah-verdict-left">
|
|
1037
|
+
<span class="ah-dot ah-dot-${escapeHtml(verdict.severity)}"></span>
|
|
1038
|
+
<span class="ah-verdict-title" id="verdictHeadline">${escapeHtml(verdict.headline)}</span>
|
|
1039
|
+
</div>
|
|
1040
|
+
</div>
|
|
1041
|
+
|
|
1042
|
+
<div class="ah-hero-row">
|
|
1043
|
+
<div>
|
|
1044
|
+
<div class="ah-runway-hero" id="simpleRunwayHero" data-level="${escapeHtml(runwayLevel)}">${escapeHtml(runwayText)}</div>
|
|
1045
|
+
<div class="ah-runway-sub" id="simpleRunwaySub">${escapeHtml(runwaySub)}</div>
|
|
1046
|
+
</div>
|
|
1047
|
+
<div class="ah-ring-col">
|
|
1048
|
+
<span class="ah-ring-cap">Prompt cache</span>
|
|
1049
|
+
<div class="ah-cache-ring-wrap" id="simpleCacheRingWrap" role="img" aria-label="Prompt cache" data-warm="${ringWarm ? 'true' : 'false'}" data-expiring="${ringExpiring ? 'true' : 'false'}" title="Prompt cache ${ringWarm ? `warm ${metrics.ttlClock} (${metrics.ttlTier})` : 'cold'} · ${metrics.cacheHitPct}% hit. 'hit' = share of your prompt served from cache at a discount; 'warm' = time left before the cache expires and the next turn costs full price.">
|
|
1050
|
+
<div class="ah-ring-center">
|
|
1051
|
+
<span class="ah-ring-pct" id="simpleCacheRingPct">${metrics.cacheHitPct}%</span>
|
|
1052
|
+
<span class="ah-ring-ttl" id="simpleCacheRingTtl">${escapeHtml(metrics.cacheWarm ? metrics.ttlCompact : 'cold')}</span>
|
|
1053
|
+
</div>
|
|
1054
|
+
<div class="ah-cache-bullet" aria-hidden="true">
|
|
1055
|
+
<div class="ah-cache-bullet-fill" style="width:${Math.max(0, Math.min(100, Number(metrics.cacheHitPct) || 0))}%"></div>
|
|
1056
|
+
<div class="ah-cache-bullet-tick" title="80% cache hit target"></div>
|
|
1057
|
+
</div>
|
|
1058
|
+
</div>
|
|
1059
|
+
</div>
|
|
1060
|
+
</div>
|
|
1061
|
+
|
|
1062
|
+
<div class="ah-grid-bar" id="horizonGridBar" role="img" aria-label="40-Cell Context Horizon Bar">
|
|
1063
|
+
${renderHtmlHorizonCells(grid)}
|
|
1064
|
+
</div>
|
|
1065
|
+
<div class="ah-ruler">
|
|
1066
|
+
<span>0k</span>
|
|
1067
|
+
<span>${escapeHtml(midTickLabel)}</span>
|
|
1068
|
+
<span>${escapeHtml(maxTickLabel)}</span>
|
|
1069
|
+
</div>
|
|
1070
|
+
|
|
1071
|
+
<div class="ah-bar-legend">
|
|
1072
|
+
<span>Useful <strong id="statUsed">${escapeHtml(`${formatTokensCompact(usefulTokens)} / ${grid.zoomTier.id}`)}</strong></span>
|
|
1073
|
+
<span>Reclaimable <strong id="statDebt">${escapeHtml(formatTokensCompact(grid.tokens.D))}</strong></span>
|
|
1074
|
+
<span>Free <strong id="statHeadroom">${escapeHtml(formatTokensCompact(headroomTokens))}</strong></span>
|
|
1075
|
+
</div>
|
|
1076
|
+
<div class="ah-verdict-sub" id="verdictDetail">${escapeHtml(verdict.detail)}</div>
|
|
1077
|
+
|
|
1078
|
+
${
|
|
1079
|
+
hasExplicitOffenders
|
|
1080
|
+
? `<div class="ah-sec-name ah-sec-gap">Waste & prompt cache</div>
|
|
1081
|
+
<div class="ah-sec-blurb">Files and old errors wasting memory that you can free, plus when the prompt cache (a discount on re-sent text) expires.</div>
|
|
1082
|
+
<div class="ah-top-offender" id="simpleTopOffender"><span class="ah-offender-kicker">Cause:</span> ${escapeHtml(
|
|
1083
|
+
rawOffenders
|
|
1084
|
+
.slice(0, 2)
|
|
1085
|
+
.map((o) => {
|
|
1086
|
+
const shortName = String(o.name).replace(/\\/g, '/').split('/').filter(Boolean).pop() || o.name;
|
|
1087
|
+
return o.occurrences > 1
|
|
1088
|
+
? `${shortName} (${o.occurrences}x · ${formatTokensCompact(o.tokens)})`
|
|
1089
|
+
: `${shortName} (${formatTokensCompact(o.tokens)})`;
|
|
1090
|
+
})
|
|
1091
|
+
.join(' · ')
|
|
1092
|
+
)}</div>
|
|
1093
|
+
<details class="ah-hogs-drawer" id="simpleTopHogsDrawer">
|
|
1094
|
+
<summary>Top context hogs (${rawOffenders.length})</summary>
|
|
1095
|
+
${rawOffenders
|
|
1096
|
+
.slice(0, 3)
|
|
1097
|
+
.map((o) => {
|
|
1098
|
+
const shortName = String(o.name).replace(/\\/g, '/').split('/').filter(Boolean).pop() || o.name;
|
|
1099
|
+
return `<div class="ah-hog-row"><span class="ah-hog-name">${escapeHtml(shortName)}</span><span class="ah-hog-meta">${o.ignorable ? '<span class="adv-badge-ignore">.claudeignore</span>' : ''}<strong>${escapeHtml(formatTokensCompact(o.tokens))}</strong> (${o.pct}%)</span></div>`;
|
|
1100
|
+
})
|
|
1101
|
+
.join('')}
|
|
1102
|
+
</details>`
|
|
1103
|
+
: ''
|
|
1104
|
+
}
|
|
1105
|
+
</section>
|
|
1106
|
+
|
|
1107
|
+
<!-- Zone 3: GitHub Check-Run Action Slot -->
|
|
1108
|
+
<section class="ah-card" id="priorityActionCard" data-severity="${escapeHtml(verdict.severity)}" data-hold="${holdWarmActive ? 'true' : 'false'}" data-rank="3">
|
|
1109
|
+
<div class="ah-sec-name">Next best step</div>
|
|
1110
|
+
<div class="ah-sec-blurb">The one action that protects this session most right now. Copy it, then paste it into the chat.</div>
|
|
1111
|
+
<div class="ah-action-hdr">
|
|
1112
|
+
<span id="priorityActionTitle">${escapeHtml(priorityAction.title)}</span>
|
|
1113
|
+
<span class="ah-action-reclaim" id="compactReclaim">${escapeHtml(compactReclaimText)}</span>
|
|
1114
|
+
<button type="button" class="ah-btn-copy-compact" id="btnCompactPrimary" onclick="navigator.clipboard&&navigator.clipboard.writeText('${escapeHtml(compactCommandJs)}')">Copy /compact</button>
|
|
1115
|
+
</div>
|
|
1116
|
+
<div class="ah-action-instr" id="compactInstruction">${escapeHtml(compactInstructionText)}</div>
|
|
1117
|
+
${
|
|
1118
|
+
overflowActionCount > 0
|
|
1119
|
+
? `<details class="ah-overflow"><summary>+${overflowActionCount} more optimization${overflowActionCount === 1 ? '' : 's'}</summary><ul>${secondaryActions.map((a) => `<li><strong>${escapeHtml(a.title)}:</strong> ${escapeHtml(a.instruction)}</li>`).join('')}</ul></details>`
|
|
1120
|
+
: ''
|
|
1121
|
+
}
|
|
1122
|
+
</section>
|
|
1123
|
+
|
|
1124
|
+
<!-- Zone 4+5: Unified Session Activity + Auto-Guard Stream + Canonical Saved Pill -->
|
|
1125
|
+
${renderFlightRecorderHtml(tl, options.autoFixLog || state.autoFixLog || null, metrics, catList)}
|
|
1126
|
+
</main>
|
|
1127
|
+
|
|
1128
|
+
<!-- ADVANCED VIEW: 5 Progressive-Disclosure Accordions -->
|
|
1129
|
+
<section id="advancedViewContainer">
|
|
1130
|
+
<!-- Accordion 1: Verified 5-Category Savings & Anthropic Cache ROI -->
|
|
1131
|
+
<details class="adv-accordion" id="advSavingsAccordion" open>
|
|
1132
|
+
<summary>
|
|
1133
|
+
<span>1. Verified Savings Breakdown & Cache ROI</span>
|
|
1134
|
+
<span>+${escapeHtml(formatTokensCompact(metrics.sessionSavedTokens))} (${escapeHtml(formatUsd(metrics.sessionSavedUSD))})</span>
|
|
1135
|
+
</summary>
|
|
1136
|
+
<div class="adv-body">
|
|
1137
|
+
${catList
|
|
1138
|
+
.map(
|
|
1139
|
+
(c) =>
|
|
1140
|
+
`<div class="adv-row"><span>${escapeHtml(c.label)}</span><strong>+${escapeHtml(formatTokensCompact(c.savedTokens))} (${escapeHtml(formatUsd(c.savedUSD))})</strong></div>`
|
|
1141
|
+
)
|
|
1142
|
+
.join('')}
|
|
1143
|
+
<div class="adv-row"><span>Break-Even Gravity C* (${escapeHtml(grid.modelId)} → ${escapeHtml(peerModel)})</span><strong>${escapeHtml(breakEven.breakEvenTokens.toLocaleString('en-US'))} tok</strong></div>
|
|
1144
|
+
<div class="adv-row"><span>Reads / Write Ratio (Break-Even ≥ ${escapeHtml(metrics.breakEvenReadsPerWrite)})</span><strong>${escapeHtml(metrics.readsPerWriteRatio.toFixed(2))}</strong></div>
|
|
1145
|
+
<div class="adv-row"><span>Corporate Expense Receipt (PDF 1.4)</span><strong>npx ah receipt --pdf</strong></div>
|
|
1146
|
+
</div>
|
|
1147
|
+
</details>
|
|
1148
|
+
|
|
1149
|
+
<!-- Accordion 2: 40-Cell Context Anatomy & Top Offenders -->
|
|
1150
|
+
<details class="adv-accordion" id="advAnatomyAccordion">
|
|
1151
|
+
<summary>
|
|
1152
|
+
<span>2. Context Anatomy ([S]/[C]/[D]/[W]) & Top Offenders</span>
|
|
1153
|
+
<span>${escapeHtml(formatTokensCompact(grid.totalInputTokens))} / ${escapeHtml(grid.zoomTier.id)}</span>
|
|
1154
|
+
</summary>
|
|
1155
|
+
<div class="adv-body">
|
|
1156
|
+
<div class="adv-row"><span>[S] System & MCP Tool Schemas</span><strong>${grid.cellCounts.S} cells (${escapeHtml(formatTokensCompact(grid.tokens.S))})</strong></div>
|
|
1157
|
+
<div class="adv-row"><span>[C] Warm Cached Prefix</span><strong>${grid.cellCounts.C} cells (${escapeHtml(formatTokensCompact(grid.tokens.C))})</strong></div>
|
|
1158
|
+
<div class="adv-row"><span>[D] Stale Tool Output Debt</span><strong>${grid.cellCounts.D} cells (${escapeHtml(formatTokensCompact(grid.tokens.D))})</strong></div>
|
|
1159
|
+
<div class="adv-row"><span>[W] Fresh 1.25x Cache Write Delta</span><strong>${grid.cellCounts.W} cells (${escapeHtml(formatTokensCompact(grid.tokens.W))})</strong></div>
|
|
1160
|
+
${rawOffenders
|
|
1161
|
+
.map(
|
|
1162
|
+
(o) =>
|
|
1163
|
+
`<div class="adv-row"><span>${escapeHtml(o.category)} ${escapeHtml(o.name)} ${o.ignorable ? '<span class="adv-badge-ignore">.claudeignore candidate</span>' : ''}</span><strong>${escapeHtml(formatTokensCompact(o.tokens))} (${o.pct}%)</strong></div>`
|
|
1164
|
+
)
|
|
1165
|
+
.join('')}
|
|
1166
|
+
</div>
|
|
1167
|
+
</details>
|
|
1168
|
+
|
|
1169
|
+
<!-- Accordion 3: 6 Core Auditable Guards (DET-01..32), Thinking Drift & Retention -->
|
|
1170
|
+
<details class="adv-accordion" id="advBreakersAccordion">
|
|
1171
|
+
<summary>
|
|
1172
|
+
<span>3. 6 Core Auditable Guards (32 rules) & Thinking Drift</span>
|
|
1173
|
+
<span>${escapeHtml(summarizeCoreAuditableGuards(options.breakerVerdict?.triggered ? options.breakerVerdict.detectorId : null).label)}</span>
|
|
1174
|
+
</summary>
|
|
1175
|
+
<div class="adv-body">
|
|
1176
|
+
<div class="adv-row"><span>Flight Mode</span><strong>${escapeHtml(metrics.flightMode)}</strong></div>
|
|
1177
|
+
<div class="adv-row"><span>Prefix Retention</span><strong>${escapeHtml(formatRetentionLabel(state.prefixRetention))}</strong></div>
|
|
1178
|
+
<div class="adv-row"><span>Thinking Drift (DET-30)</span><strong>${escapeHtml(formatDriftLabel(state.thinkingDrift))}</strong></div>
|
|
1179
|
+
<div class="adv-row"><span>Haiku 5.5 100k 5x Cliff (DET-12)</span><strong>${escapeHtml(state.cliffTriggered ? 'EXCEEDED (5x)' : state.preCliffWarningTriggered ? 'PRE-CLIFF (>=90k)' : 'Nominal')}</strong></div>
|
|
1180
|
+
</div>
|
|
1181
|
+
</details>
|
|
1182
|
+
|
|
1183
|
+
<!-- Accordion 4: Subagent Swarm (Task/Agent), Worktrees & Scope Locks -->
|
|
1184
|
+
<details class="adv-accordion" id="advSwarmAccordion">
|
|
1185
|
+
<summary>
|
|
1186
|
+
<span>4. Subagent Swarm (Task/Agent) & Worktrees</span>
|
|
1187
|
+
<span>${escapeHtml(swarmSummary.active ? `${swarmSummary.workers.length} workers` : 'Solo')}</span>
|
|
1188
|
+
</summary>
|
|
1189
|
+
<div class="adv-body">
|
|
1190
|
+
<div class="adv-row"><span>Swarm Status</span><strong>${escapeHtml(swarmSummary.active ? swarmSummary.label : 'Solo main agent')}</strong></div>
|
|
1191
|
+
${
|
|
1192
|
+
swarmSummary.active
|
|
1193
|
+
? swarmSummary.workers
|
|
1194
|
+
.map(
|
|
1195
|
+
(w) =>
|
|
1196
|
+
`<div class="adv-row"><span>${escapeHtml(w.agentId)} (${escapeHtml(w.state)}${w.state === 'waiting' ? ' $0' : ''})</span><strong>${escapeHtml(formatTokensCompact(w.totalTokens))} · ${w.turns}t</strong></div>`
|
|
1197
|
+
)
|
|
1198
|
+
.join('')
|
|
1199
|
+
: '<div class="adv-row"><span>Isolated Subagent Tokens</span><strong>0</strong></div>'
|
|
1200
|
+
}
|
|
1201
|
+
</div>
|
|
1202
|
+
</details>
|
|
1203
|
+
|
|
1204
|
+
<!-- Accordion 5: PreCompact State Baton & Claude Code Forensics -->
|
|
1205
|
+
<details class="adv-accordion" id="advForensicsAccordion">
|
|
1206
|
+
<summary>
|
|
1207
|
+
<span>5. PreCompact State Baton & Session Forensics</span>
|
|
1208
|
+
<span>${escapeHtml(grid.zoomTier.label)}</span>
|
|
1209
|
+
</summary>
|
|
1210
|
+
<div class="adv-body">
|
|
1211
|
+
<div class="adv-row"><span>Session ID</span><strong>${escapeHtml(state.sessionId || 'default')}</strong></div>
|
|
1212
|
+
<div class="adv-row"><span>State Baton Handoff</span><strong>.claude/cache/HANDOFF_LATEST.md</strong></div>
|
|
1213
|
+
<div class="adv-row"><span>Prefix Config Files</span><strong>CLAUDE.md · .claude/rules/ · .mcp.json</strong></div>
|
|
1214
|
+
<div class="adv-row"><span>Diagnostics CLI</span><strong>npx ah-claude doctor</strong></div>
|
|
1215
|
+
</div>
|
|
1216
|
+
</details>
|
|
1217
|
+
</section>
|
|
1218
|
+
</div>
|
|
1219
|
+
</body>
|
|
1220
|
+
</html>
|
|
1221
|
+
`;
|
|
1222
|
+
|
|
1223
|
+
return {
|
|
1224
|
+
html,
|
|
1225
|
+
simplePane,
|
|
1226
|
+
advancedPane,
|
|
1227
|
+
grid,
|
|
1228
|
+
metrics,
|
|
1229
|
+
verdict,
|
|
1230
|
+
priorityAction
|
|
1231
|
+
};
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
export default {
|
|
1235
|
+
escapeHtml,
|
|
1236
|
+
renderHorizonPanelHtml
|
|
1237
|
+
};
|