feat(ui): add structured manifest builder helper
This commit is contained in:
286
src/ui/public/index.html
Normal file
286
src/ui/public/index.html
Normal file
@@ -0,0 +1,286 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>AI Ops Control Plane</title>
|
||||
<link rel="stylesheet" href="./styles.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="app-shell">
|
||||
<header class="masthead">
|
||||
<div>
|
||||
<h1>AI Ops Control Plane</h1>
|
||||
<p>DAG topology, runtime economics, and security telemetry in one surface.</p>
|
||||
</div>
|
||||
<div id="server-status" class="server-status">Connecting...</div>
|
||||
</header>
|
||||
|
||||
<main class="layout">
|
||||
<section class="panel graph-panel">
|
||||
<div class="panel-head">
|
||||
<h2>Graph Visualizer</h2>
|
||||
<div class="panel-actions">
|
||||
<label>
|
||||
Session
|
||||
<select id="session-select"></select>
|
||||
</label>
|
||||
<label>
|
||||
Manifest
|
||||
<select id="graph-manifest-select"></select>
|
||||
</label>
|
||||
<button id="graph-refresh" type="button">Refresh</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="graph-wrap">
|
||||
<svg id="graph-svg" viewBox="0 0 1280 640" aria-label="Execution graph"></svg>
|
||||
</div>
|
||||
<div id="graph-banner" class="graph-banner"></div>
|
||||
</section>
|
||||
|
||||
<aside class="panel side-panel">
|
||||
<div class="panel-head">
|
||||
<h2>Job Trigger</h2>
|
||||
</div>
|
||||
<form id="run-form" class="stacked-form">
|
||||
<label>
|
||||
Prompt / Task
|
||||
<textarea id="run-prompt" rows="4" placeholder="Describe the run objective..."></textarea>
|
||||
</label>
|
||||
<label>
|
||||
Manifest
|
||||
<select id="run-manifest-select"></select>
|
||||
</label>
|
||||
<div class="inline-fields">
|
||||
<label>
|
||||
Execution Mode
|
||||
<select id="run-execution-mode">
|
||||
<option value="provider" selected>provider</option>
|
||||
<option value="mock">mock</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
Provider
|
||||
<select id="run-provider">
|
||||
<option value="codex" selected>codex</option>
|
||||
<option value="claude">claude</option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<label>
|
||||
Topology Hint
|
||||
<input id="run-topology-hint" type="text" placeholder="sequential | parallel | hierarchical | retry-unrolled" />
|
||||
</label>
|
||||
<label>
|
||||
Initial Flags (JSON)
|
||||
<textarea id="run-flags" rows="3" placeholder='{"needs_bootstrap": true}'></textarea>
|
||||
</label>
|
||||
<label>
|
||||
Simulate Validation Nodes (CSV)
|
||||
<input id="run-validation-nodes" type="text" placeholder="coder-1,qa-1" />
|
||||
</label>
|
||||
<div class="inline-actions">
|
||||
<button type="submit">Start Run</button>
|
||||
<button id="kill-run" type="button" class="danger">Cancel Run</button>
|
||||
</div>
|
||||
</form>
|
||||
<div id="run-status" class="subtle"></div>
|
||||
|
||||
<div class="divider"></div>
|
||||
<h3>Node Inspector</h3>
|
||||
<div id="node-inspector" class="inspector empty">Select a graph node.</div>
|
||||
</aside>
|
||||
|
||||
<section class="panel feed-panel">
|
||||
<div class="panel-head">
|
||||
<h2>Live Event Feed</h2>
|
||||
<div class="panel-actions">
|
||||
<label>
|
||||
Limit
|
||||
<select id="events-limit">
|
||||
<option value="80">80</option>
|
||||
<option value="150" selected>150</option>
|
||||
<option value="300">300</option>
|
||||
</select>
|
||||
</label>
|
||||
<button id="events-refresh" type="button">Refresh</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="event-feed" class="event-feed"></div>
|
||||
</section>
|
||||
|
||||
<section class="panel history-panel">
|
||||
<div class="panel-head">
|
||||
<h2>Run History</h2>
|
||||
<button id="history-refresh" type="button">Refresh</button>
|
||||
</div>
|
||||
<table class="history-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Session</th>
|
||||
<th>Status</th>
|
||||
<th>Attempts</th>
|
||||
<th>Duration</th>
|
||||
<th>Cost</th>
|
||||
<th>Updated</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="history-body"></tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section class="panel config-panel">
|
||||
<div class="panel-head">
|
||||
<h2>Definitions & Policies</h2>
|
||||
</div>
|
||||
|
||||
<div class="config-grid">
|
||||
<form id="notifications-form" class="stacked-form compact">
|
||||
<h3>Notifications / Webhook</h3>
|
||||
<label>
|
||||
Discord Webhook URL
|
||||
<input id="cfg-webhook-url" type="text" />
|
||||
</label>
|
||||
<label>
|
||||
Min Severity
|
||||
<select id="cfg-webhook-severity">
|
||||
<option value="info">info</option>
|
||||
<option value="warning">warning</option>
|
||||
<option value="critical">critical</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
Always Notify Types (CSV)
|
||||
<input id="cfg-webhook-always" type="text" />
|
||||
</label>
|
||||
<button type="submit">Save Notifications</button>
|
||||
</form>
|
||||
|
||||
<form id="security-form" class="stacked-form compact">
|
||||
<h3>Security Policy</h3>
|
||||
<label>
|
||||
Violation Mode
|
||||
<select id="cfg-security-mode">
|
||||
<option value="hard_abort">hard_abort</option>
|
||||
<option value="validation_fail">validation_fail</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
Allowed Binaries (CSV)
|
||||
<input id="cfg-security-binaries" type="text" />
|
||||
</label>
|
||||
<label>
|
||||
Command Timeout (ms)
|
||||
<input id="cfg-security-timeout" type="number" min="1" />
|
||||
</label>
|
||||
<label>
|
||||
Inherited Env (CSV)
|
||||
<input id="cfg-security-inherit" type="text" />
|
||||
</label>
|
||||
<label>
|
||||
Scrubbed Env (CSV)
|
||||
<input id="cfg-security-scrub" type="text" />
|
||||
</label>
|
||||
<button type="submit">Save Security</button>
|
||||
</form>
|
||||
|
||||
<form id="limits-form" class="stacked-form compact">
|
||||
<h3>Environment & Limits</h3>
|
||||
<label>AGENT_MAX_CONCURRENT<input id="cfg-limit-concurrent" type="number" min="1" /></label>
|
||||
<label>AGENT_MAX_SESSION<input id="cfg-limit-session" type="number" min="1" /></label>
|
||||
<label>AGENT_MAX_RECURSIVE_DEPTH<input id="cfg-limit-depth" type="number" min="1" /></label>
|
||||
<label>AGENT_TOPOLOGY_MAX_DEPTH<input id="cfg-topology-depth" type="number" min="1" /></label>
|
||||
<label>AGENT_TOPOLOGY_MAX_RETRIES<input id="cfg-topology-retries" type="number" min="0" /></label>
|
||||
<label>AGENT_RELATIONSHIP_MAX_CHILDREN<input id="cfg-relationship-children" type="number" min="1" /></label>
|
||||
<label>AGENT_PORT_BASE<input id="cfg-port-base" type="number" min="1" /></label>
|
||||
<label>AGENT_PORT_BLOCK_SIZE<input id="cfg-port-block-size" type="number" min="1" /></label>
|
||||
<label>AGENT_PORT_BLOCK_COUNT<input id="cfg-port-block-count" type="number" min="1" /></label>
|
||||
<label>AGENT_PORT_PRIMARY_OFFSET<input id="cfg-port-primary-offset" type="number" min="0" /></label>
|
||||
<button type="submit">Save Limits</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<form id="manifest-form" class="stacked-form">
|
||||
<h3>Manifest Builder</h3>
|
||||
<div class="inline-fields">
|
||||
<label>
|
||||
File Path
|
||||
<input id="manifest-path" type="text" placeholder=".ai_ops/manifests/default.json" />
|
||||
</label>
|
||||
<div class="inline-actions">
|
||||
<button id="manifest-load" type="button">Load</button>
|
||||
<button id="manifest-validate" type="button">Validate</button>
|
||||
<button type="submit">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
<textarea id="manifest-editor" rows="16" spellcheck="false"></textarea>
|
||||
<div id="manifest-status" class="subtle"></div>
|
||||
|
||||
<div class="divider"></div>
|
||||
<div class="manifest-helper-head">
|
||||
<h3>Manifest Helper</h3>
|
||||
<div class="inline-actions">
|
||||
<button id="manifest-template-minimal" type="button">Minimal Template</button>
|
||||
<button id="manifest-template-two-stage" type="button">Two-Stage Template</button>
|
||||
<button id="manifest-sync-from-editor" type="button">Sync From JSON</button>
|
||||
<button id="manifest-apply-to-editor" type="button">Apply To JSON</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="manifest-helper-grid">
|
||||
<fieldset class="helper-section">
|
||||
<legend>Topologies</legend>
|
||||
<div class="helper-topologies">
|
||||
<label><input id="helper-topology-sequential" type="checkbox" value="sequential" /> sequential</label>
|
||||
<label><input id="helper-topology-parallel" type="checkbox" value="parallel" /> parallel</label>
|
||||
<label><input id="helper-topology-hierarchical" type="checkbox" value="hierarchical" /> hierarchical</label>
|
||||
<label><input id="helper-topology-retry-unrolled" type="checkbox" value="retry-unrolled" /> retry-unrolled</label>
|
||||
</div>
|
||||
<div class="inline-fields">
|
||||
<label>
|
||||
Max Depth
|
||||
<input id="helper-topology-max-depth" type="number" min="1" />
|
||||
</label>
|
||||
<label>
|
||||
Max Retries
|
||||
<input id="helper-topology-max-retries" type="number" min="0" />
|
||||
</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="helper-section">
|
||||
<legend>Personas</legend>
|
||||
<div id="helper-personas" class="helper-list"></div>
|
||||
<button id="helper-add-persona" type="button">Add Persona</button>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="helper-section">
|
||||
<legend>Relationships</legend>
|
||||
<div id="helper-relationships" class="helper-list"></div>
|
||||
<button id="helper-add-relationship" type="button">Add Relationship</button>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="helper-section">
|
||||
<legend>Pipeline Nodes</legend>
|
||||
<label>
|
||||
Entry Node ID
|
||||
<input id="helper-entry-node-id" type="text" />
|
||||
</label>
|
||||
<div id="helper-nodes" class="helper-list"></div>
|
||||
<button id="helper-add-node" type="button">Add Node</button>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="helper-section">
|
||||
<legend>Pipeline Edges</legend>
|
||||
<div id="helper-edges" class="helper-list"></div>
|
||||
<button id="helper-add-edge" type="button">Add Edge</button>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div id="manifest-helper-status" class="subtle"></div>
|
||||
</form>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script type="module" src="./app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user