repositories / pi-ext
pi-ext
bugabingas pi extensions
owned by admin
extensions/autopsy/site/index.html
Raw<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="referrer" content="no-referrer">
<title>Autopsy</title>
<link rel="stylesheet" href="nugu.css">
<link rel="stylesheet" href="app.css">
<script src="app.js" defer></script>
</head>
<body>
<header class="header">
<h1>AUTOPSY</h1><strong id="session-name"></strong>
<nav aria-label="Session actions">
<button id="insights-button" type="button" aria-haspopup="dialog">Insights</button>
<button id="session-button" type="button" aria-haspopup="dialog">Session</button>
<button id="theme" type="button" aria-label="Theme: system">◐</button>
<button id="refresh" type="button">Refresh</button>
</nav>
</header>
<main>
<div class="search-bar">
<input id="search" type="search" autocomplete="off" placeholder="Search history" aria-label="Search text and raw JSON">
<button id="filters-button" type="button" aria-haspopup="dialog">Filters</button>
</div>
<section class="metrics-strip" aria-label="Matching scope totals"><span id="entry-count"></span><span id="scope-cost"></span><span id="scope-tokens"></span></section>
<p id="status" role="status" aria-live="polite" hidden></p>
<!-- biome-ignore lint/a11y/noNoninteractiveTabindex: Focus enables native keyboard scrolling within the transcript. -->
<section class="history" id="history" aria-label="Session transcript" tabindex="0">
<div id="history-start" class="sentinel"><span id="start-status" role="status"></span></div>
<div id="entries"></div>
<div id="history-end" class="sentinel"><span id="end-status" role="status"></span></div>
<button id="history-retry" type="button" hidden>Retry loading history</button>
<button id="history-more" class="keyboard-only" type="button">Continue scrolling history</button>
</section>
</main>
<dialog id="filters-panel" aria-labelledby="filters-heading">
<div class="panel-heading"><h2 id="filters-heading">Filters</h2><button type="button" data-close>Close</button></div>
<div class="filters">
<label>Role<select id="role"><option value="">All roles</option></select></label>
<label>Type<select id="type"><option value="">All types</option></select></label>
<label>History<select id="branch"><option value="current">Current branch</option><option value="all">All history</option></select></label>
<label>Order<select id="order"><option value="newest">Newest first</option><option value="oldest">Oldest first</option></select></label>
<label>Provider<select id="provider"><option value="">All providers</option></select></label>
<label>Model<select id="model"><option value="">All models</option></select></label>
<label>From (local, inclusive)<input id="from" type="datetime-local" step="0.001"></label>
<label>To (local, inclusive)<input id="to" type="datetime-local" step="0.001"></label>
</div>
<div class="panel-actions"><button id="system-instructions" type="button">System instructions</button><button id="reset-filters" type="button">Reset filters</button></div>
</dialog>
<dialog id="insights-panel" aria-labelledby="insights-heading">
<div class="panel-heading"><h2 id="insights-heading">Insights</h2><button type="button" data-close>Close</button></div>
<p id="metrics-status" role="status"></p><button id="metrics-retry" type="button" hidden>Retry metrics</button>
<div id="metrics-content" hidden>
<label>Graph<select id="timeline-view"><option value="cost">Cost per usage entry</option><option value="cumulative">Cumulative known cost</option><option value="tokens">Tokens</option><option value="duration">Measured duration</option><option value="size">Content size</option></select></label>
<div id="dashboard-timelines"></div>
<div id="usage-chart"></div><div id="dashboard-totals"></div><div id="dashboard-groups"></div><div id="dashboard-timing"></div><div id="dashboard-sizes"></div>
</div>
</dialog>
<dialog id="session-panel" aria-labelledby="session-heading">
<div class="panel-heading"><h2 id="session-heading">Session</h2><button type="button" data-close>Close</button></div>
<dl id="metadata" class="metadata"></dl>
<p class="session-note">Session history is not the context or provider payload of a particular request.</p>
<div id="warnings"></div>
<button id="session-system" type="button">System instructions</button>
<details id="captures"><summary>Runtime prompt captures</summary>
<p>Pi system prompt capture, not provider wire payload.
Captures exist only for the current runtime; recorded system instructions remain in history.</p>
<label for="prompt-select">Snapshot</label><select id="prompt-select"></select>
<p id="capture-status" role="status"></p><button id="capture-retry" type="button" hidden>Retry captures</button>
<p id="prompt-meta"></p><p id="prompt-empty" hidden>No runtime captures.</p>
<div id="prompt-content" hidden><h3>Exact raw prompt</h3><pre id="prompt-raw"></pre><h3>Grouped representation</h3><pre id="prompt-grouped"></pre></div>
</details>
</dialog>
</body>
</html>