Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

feat(web): add managed workstream operations view

AkitaOnRails1e6db2b6d91e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a394cdc4..46bdb924 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,14 @@ version in [`docs/changelog/`](docs/changelog/):
### Added
+- Added a read-only managed-workstream operations page at
+ `/web/workstreams`. On multi-user servers it is root-only; single-operator
+ installs retain their existing admin access. The bounded overview orders
+ live and interrupted work first and derives `active`, `interrupted`,
+ `completed`, and `empty` only from trusted run lifecycle fields and imported
+ event counts. It exposes no checkout paths, repository fingerprints, lease
+ owners, native session ids, source metadata, or transcript content, and it
+ does not broaden checkout-local `resume` discovery.
- Added `ai-memory recent` and `GET /admin/recent` to list the most recently
updated wiki pages, newest first. The listing is scoped to the current
project by default (cwd / marker, or `--workspace`/`--project`); `--global`
diff --git a/README.md b/README.md
index 47767051..bc7aeea0 100644
--- a/README.md
+++ b/README.md
@@ -593,7 +593,8 @@ readable wiki pages; the next session starts with a handoff.
- Run `ai-memory bootstrap` once when adopting an existing project with
months of history.
- Start the server with `--enable-web` for a read-only browser view of
- the wiki and a JSON API under `/api/v1`. On a server with a bearer token
+ the wiki, a root/operator managed-workstream overview at `/web/workstreams`,
+ and a JSON API under `/api/v1`. On a server with a bearer token
and no user accounts (every fresh install), the browser asks for a username
and password: any username, and the contents of
`<data_dir>/auth-tokens/default` as the password.
diff --git a/crates/ai-memory-store/src/lib.rs b/crates/ai-memory-store/src/lib.rs
index 0f6a4524..5546bd61 100644
--- a/crates/ai-memory-store/src/lib.rs
+++ b/crates/ai-memory-store/src/lib.rs
@@ -119,8 +119,9 @@ pub use web_sessions::{LiveWebSession, WebSession, hash_session_secret};
pub use workstream::{
FinishWorkstreamRun, FinishedWorkstreamRun, LinkManagedRunSessionInScope,
LinkOrAdoptManagedRunSession, ManagedRunAuthority, ManagedRunContext, ManagedRunSessionLink,
- PrepareWorkstreamRun, PreparedWorkstreamRun, RenameWorkstream, RenamedWorkstream,
- StoredManagedRunStatus, StoredWorkstreamSummary, WorkstreamSelection, WorkstreamSelector,
+ OperationalWorkstreamSummary, PrepareWorkstreamRun, PreparedWorkstreamRun, RenameWorkstream,
+ RenamedWorkstream, StoredManagedRunStatus, StoredWorkstreamSummary,
+ WorkstreamOperationalStatus, WorkstreamSelection, WorkstreamSelector,
};
pub use writer::{StartupContextAcceptance, WriterHandle};
diff --git a/crates/ai-memory-store/src/reader.rs b/crates/ai-memory-store/src/reader.rs
index 530ef541..68c5687e 100644
--- a/crates/ai-memory-store/src/reader.rs
+++ b/crates/ai-memory-store/src/reader.rs
@@ -37,7 +37,10 @@ use crate::fts_query::{FtsStopwords, prepare_fts5_query};
use crate::maintenance::MaintenanceJob;
use crate::retrieval_tuning::{RetrievalTuning, is_session_recall_query};
use crate::users::TOKEN_HASH_LEN;
-use crate::workstream::{ManagedRunContext, StoredManagedRunStatus, StoredWorkstreamSummary};
+use crate::workstream::{
+ ManagedRunContext, OperationalWorkstreamSummary, StoredManagedRunStatus,
+ StoredWorkstreamSummary,
+};
/// TTL guard for retrieval surfaces (search / recent / embedding hits /
/// graph neighbours / briefing lists): appended to a WHERE clause that
@@ -2659,6 +2662,22 @@ impl ReaderPool {
.await
}
+ /// Return one bounded page of cross-scope managed-workstream lifecycle
+ /// summaries for an already-authorized root/operator surface.
+ ///
+ /// This reader performs no authorization by itself; unlike
+ /// [`Self::recent_workstreams`], it intentionally aggregates checkouts and
+ /// projects. Callers must enforce `Capability::Admin` before invoking it.
+ pub async fn operational_workstreams(
+ &self,
+ limit: usize,
+ offset: usize,
+ ) -> StoreResult<Vec<OperationalWorkstreamSummary>> {
+ let now_us = jiff::Timestamp::now().as_microsecond();
+ self.with_conn(move |conn| crate::workstream::list_operational(conn, limit, offset, now_us))
+ .await
+ }
+
/// Run a full-text search against the FTS5 index, apply the bounded page
/// authority adjustment, and return the top `is_latest = 1` matches.
///
diff --git a/crates/ai-memory-store/src/workstream.rs b/crates/ai-memory-store/src/workstream.rs
index a38c2798..f7713ef6 100644
--- a/crates/ai-memory-store/src/workstream.rs
+++ b/crates/ai-memory-store/src/workstream.rs
@@ -349,6 +349,92 @@ pub struct StoredWorkstreamSummary {
pub linked_harnesses: Vec<AgentKind>,
}
+/// Trusted lifecycle state shown by the operator workstream overview.
+///
+/// This deliberately does not infer intent from transcript text. In
+/// particular, "waiting for input" cannot be distinguished reliably from an
+/// assistant narrating a future step.
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum WorkstreamOperationalStatus {
+ /// The newest managed run holds an unexpired lease.
+ Active,
+ /// The newest run expired, exited unsuccessfully, or ended by signal.
+ Interrupted,
+ /// The newest run completed successfully and portable evidence exists.
+ Completed,
+ /// No portable evidence has been imported yet.
+ Empty,
+}
+
+impl WorkstreamOperationalStatus {
+ /// Stable display/filter name.
+ #[must_use]
+ pub const fn as_str(self) -> &'static str {
+ match self {
+ Self::Active => "active",
+ Self::Interrupted => "interrupted",
+ Self::Completed => "completed",
+ Self::Empty => "empty",
+ }
+ }
+}
+
+/// One bounded row in the root/operator managed-workstream overview.
+///
+/// Native session ids, checkout paths, repository fingerprints and lease
+/// owner strings are intentionally absent: operators need lifecycle state,
+/// not host-local or harness-local identifiers.
+#[derive(Debug, Clone)]
+pub struct OperationalWorkstreamSummary {
+ /// Stable workstream identifier.
+ pub workstream_id: WorkstreamId,
+ /// Workspace display name.
+ pub workspace_name: String,
+ /// Project display name.
+ pub project_name: String,
+ /// Human-readable workstream name.
+ pub name: String,
+ /// Derived only from trusted run columns and event count.
+ pub status: WorkstreamOperationalStatus,
+ /// Newest run identifier, when the workstream has been launched.
+ pub latest_run_id: Option<ManagedRunId>,
+ /// Harness used by the newest run.
+ pub latest_agent: Option<AgentKind>,
+ /// Portable events imported across every run.
+ pub event_count: u64,
+ /// Harnesses with a current native-session link, newest first.
+ pub linked_harnesses: Vec<AgentKind>,
+ /// Last selection or import timestamp in microseconds.
+ pub last_active_at: i64,
+ /// Newest run start timestamp in microseconds.
+ pub latest_started_at: Option<i64>,
+ /// Newest run end timestamp in microseconds.
+ pub latest_ended_at: Option<i64>,
+}
+
+fn operational_status(
+ run_state: Option<&str>,
+ lease_expires_at: Option<i64>,
+ exit_code: Option<i32>,
+ event_count: u64,
+ now_us: i64,
+) -> WorkstreamOperationalStatus {
+ if run_state == Some("active") && lease_expires_at.is_some_and(|lease| lease > now_us) {
+ return WorkstreamOperationalStatus::Active;
+ }
+ if run_state == Some("expired")
+ || (run_state == Some("active") && lease_expires_at.is_none_or(|lease| lease <= now_us))
+ || (run_state == Some("finished") && exit_code != Some(0))
+ {
+ return WorkstreamOperationalStatus::Interrupted;
+ }
+ if event_count == 0 {
+ WorkstreamOperationalStatus::Empty
+ } else {
+ WorkstreamOperationalStatus::Completed
+ }
+}
+
/// How a rename addresses the workstream it retitles.
///
/// Both forms stay inside the caller's resolved scope: an id that belongs to
@@ -1589,6 +1675,142 @@ pub(crate) fn list_recent(
Ok(summaries)
}
+/// List managed workstreams across every scope for the root/operator console.
+///
+/// The page is selected before current harness links are joined, so a
+/// workstream with several linked harnesses still consumes exactly one slot.
+/// Status ordering puts live and interrupted work ahead of completed and empty
+/// ledgers. The caller supplies `now_us` so stale-lease classification is
+/// deterministic in tests and does not mutate persisted run state.
+pub(crate) fn list_operational(
+ conn: &Connection,
+ limit: usize,
+ offset: usize,
+ now_us: i64,
+) -> StoreResult<Vec<OperationalWorkstreamSummary>> {
+ let limit = i64::try_from(limit.clamp(1, 101)).unwrap_or(101);
+ let offset = i64::try_from(offset).unwrap_or(i64::MAX);
+ let mut statement = conn.prepare(
+ "WITH latest_runs AS ( \
+ SELECT id, workstream_id, agent_kind, state, lease_expires_at, \
+ started_at, ended_at, exit_code, \
+ ROW_NUMBER() OVER ( \
+ PARTITION BY workstream_id ORDER BY started_at DESC, id DESC \
+ ) AS row_num \
+ FROM managed_runs \
+ ), event_totals AS ( \
+ SELECT workstream_id, COUNT(*) AS event_count \
+ FROM workstream_events GROUP BY workstream_id \
+ ), selected AS ( \
+ SELECT w.id, ws.name AS workspace_name, p.name AS project_name, \
+ w.name, w.updated_at, lr.id AS run_id, \
+ lr.agent_kind, lr.state, lr.lease_expires_at, \
+ lr.started_at, lr.ended_at, lr.exit_code, \
+ COALESCE(events.event_count, 0) AS event_count, \
+ CASE \
+ WHEN lr.state = 'active' AND lr.lease_expires_at > ?1 THEN 0 \
+ WHEN lr.state = 'expired' \
+ OR (lr.state = 'active' AND lr.lease_expires_at <= ?1) \
+ OR (lr.state = 'finished' AND lr.exit_code IS NOT 0) THEN 1 \
+ WHEN COALESCE(events.event_count, 0) > 0 THEN 2 \
+ ELSE 3 \
+ END AS attention \
+ FROM workstreams w \
+ JOIN workspaces ws ON ws.id = w.workspace_id \
+ JOIN projects p ON p.id = w.project_id \
+ LEFT JOIN latest_runs lr \
+ ON lr.workstream_id = w.id AND lr.row_num = 1 \
+ LEFT JOIN event_totals events ON events.workstream_id = w.id \
+ ORDER BY attention ASC, w.updated_at DESC, w.id DESC \
+ LIMIT ?2 OFFSET ?3 \
+ ) \
+ SELECT selected.id, selected.workspace_name, selected.project_name, \
+ selected.name, selected.updated_at, selected.run_id, \
+ selected.agent_kind, selected.state, selected.lease_expires_at, \
+ selected.started_at, selected.ended_at, selected.exit_code, \
+ selected.event_count, native.agent_kind \
+ FROM selected \
+ LEFT JOIN workstream_native_sessions native \
+ ON native.workstream_id = selected.id AND native.is_current = 1 \
+ ORDER BY selected.attention ASC, selected.updated_at DESC, selected.id DESC, \
+ native.updated_at DESC, native.agent_kind ASC",
+ )?;
+ let rows = statement.query_map(params![now_us, limit, offset], |row| {
+ Ok((
+ row.get::<_, Vec<u8>>(0)?,
+ row.get::<_, String>(1)?,
+ row.get::<_, String>(2)?,
+ row.get::<_, String>(3)?,
+ row.get::<_, i64>(4)?,
+ row.get::<_, Option<Vec<u8>>>(5)?,
+ row.get::<_, Option<String>>(6)?,
+ row.get::<_, Option<String>>(7)?,
+ row.get::<_, Option<i64>>(8)?,
+ row.get::<_, Option<i64>>(9)?,
+ row.get::<_, Option<i64>>(10)?,
+ row.get::<_, Option<i32>>(11)?,
+ row.get::<_, u64>(12)?,
+ row.get::<_, Option<String>>(13)?,
+ ))
+ })?;
+
+ let mut summaries: Vec<OperationalWorkstreamSummary> = Vec::new();
+ for row in rows {
+ let (
+ raw_id,
+ workspace_name,
+ project_name,
+ name,
+ last_active_at,
+ raw_run_id,
+ latest_agent,
+ run_state,
+ lease_expires_at,
+ latest_started_at,
+ latest_ended_at,
+ exit_code,
+ event_count,
+ linked_agent,
+ ) = row?;
+ let workstream_id = WorkstreamId::from_slice(&raw_id)?;
+ if summaries
+ .last()
+ .is_none_or(|summary| summary.workstream_id != workstream_id)
+ {
+ let latest_run_id = raw_run_id
+ .as_deref()
+ .map(ManagedRunId::from_slice)
+ .transpose()?;
+ summaries.push(OperationalWorkstreamSummary {
+ workstream_id,
+ workspace_name,
+ project_name,
+ name,
+ status: operational_status(
+ run_state.as_deref(),
+ lease_expires_at,
+ exit_code,
+ event_count,
+ now_us,
+ ),
+ latest_run_id,
+ latest_agent: latest_agent.as_deref().map(AgentKind::from_wire),
+ event_count,
+ linked_harnesses: Vec::new(),
+ last_active_at,
+ latest_started_at,
+ latest_ended_at,
+ });
+ }
+ if let Some(agent) = linked_agent
+ && let Some(summary) = summaries.last_mut()
+ {
+ summary.linked_harnesses.push(AgentKind::from_wire(&agent));
+ }
+ }
+ Ok(summaries)
+}
+
/// Retitle one checkout-local workstream.
///
/// Names are metadata: `workstream_events`, `managed_runs`, and
@@ -1929,7 +2151,7 @@ fn stored_event(row: EventRow, sanitizer: &Sanitizer) -> StoreResult<WorkstreamE
#[cfg(test)]
mod tests {
- use super::strip_column_prefixes;
+ use super::{WorkstreamOperationalStatus, operational_status, strip_column_prefixes};
#[test]
fn column_prefixes_are_stripped_only_at_word_starts() {
@@ -1947,4 +2169,40 @@ mod tests {
);
assert_eq!(strip_column_prefixes("título:x"), "título:x");
}
+
+ #[test]
+ fn operational_status_uses_only_trusted_lifecycle_fields() {
+ use WorkstreamOperationalStatus::{Active, Completed, Empty, Interrupted};
+
+ assert_eq!(
+ operational_status(Some("active"), Some(11), None, 0, 10),
+ Active
+ );
+ assert_eq!(
+ operational_status(Some("active"), Some(10), None, 9, 10),
+ Interrupted
+ );
+ assert_eq!(
+ operational_status(Some("expired"), Some(99), Some(0), 9, 10),
+ Interrupted
+ );
+ assert_eq!(
+ operational_status(Some("finished"), Some(0), None, 9, 10),
+ Interrupted
+ );
+ assert_eq!(
+ operational_status(Some("finished"), Some(0), Some(2), 9, 10),
+ Interrupted
+ );
+ assert_eq!(
+ operational_status(Some("finished"), Some(0), Some(0), 9, 10),
+ Completed
+ );
+ assert_eq!(
+ operational_status(Some("finished"), Some(0), Some(0), 0, 10),
+ Empty
+ );
+ assert_eq!(operational_status(None, None, None, 3, 10), Completed);
+ assert_eq!(operational_status(None, None, None, 0, 10), Empty);
+ }
}
diff --git a/crates/ai-memory-web/src/lib.rs b/crates/ai-memory-web/src/lib.rs
index 09ca0f9c..515c6622 100644
--- a/crates/ai-memory-web/src/lib.rs
+++ b/crates/ai-memory-web/src/lib.rs
@@ -20,6 +20,8 @@
//! through `memory_query`'s hybrid ranker, with the recall trace
//! - `GET /pending` → root-only pending-writes triage;
//! its buttons post to `/admin/pending-writes/*`, not to this crate
+//! - `GET /workstreams` → root-only managed-run operations
+//! overview derived from trusted lifecycle fields
//! - `GET /health` → root-only server health panel
//! - `GET /login` / `GET /change-password` → public human-auth HTML forms
//! - `GET /static/*` → embedded CSS + logo (public)
diff --git a/crates/ai-memory-web/src/routes/mod.rs b/crates/ai-memory-web/src/routes/mod.rs
index 3c469fc4..72cff069 100644
--- a/crates/ai-memory-web/src/routes/mod.rs
+++ b/crates/ai-memory-web/src/routes/mod.rs
@@ -20,6 +20,7 @@ mod project;
mod search;
mod session;
pub(crate) mod statics;
+mod workstreams;
/// Whether the viewer may read `workspace/project` (#708).
///
@@ -127,6 +128,7 @@ pub(crate) fn build(state: Arc<WebState>) -> Router {
)
.route("/search", get(search::handler))
.route("/pending", get(pending::handler))
+ .route("/workstreams", get(workstreams::handler))
.route("/health", get(health::handler))
.with_state(state)
}
diff --git a/crates/ai-memory-web/src/routes/workstreams.rs b/crates/ai-memory-web/src/routes/workstreams.rs
new file mode 100644
index 00000000..dc74960c
--- /dev/null
+++ b/crates/ai-memory-web/src/routes/workstreams.rs
@@ -0,0 +1,117 @@
+//! `GET /workstreams` — root/operator overview of managed workstreams.
+//!
+//! Existing managed-workstream discovery is intentionally checkout-local.
+//! This cross-scope aggregate therefore stays behind the same Admin
+//! capability as `/pending` and `/health`.
+
+use std::sync::Arc;
+
+use ai_memory_core::AuthLevel;
+use ai_memory_store::{OperationalWorkstreamSummary, WorkstreamOperationalStatus};
+use askama::Template;
+use axum::Extension;
+use axum::extract::{Query, State};
+use axum::http::{StatusCode, header};
+use axum::response::{Html, IntoResponse, Response};
+use serde::Deserialize;
+
+use crate::state::WebState;
+use crate::templates::{WorkstreamRow, WorkstreamsView, humanize, project_href, short_id};
+
+const PAGE_SIZE: usize = 100;
+const MAX_PAGE: usize = 10_000;
+
+#[derive(Debug, Default, Deserialize)]
+pub(crate) struct WorkstreamsQuery {
+ #[serde(default)]
+ page: Option<usize>,
+}
+
+pub(crate) async fn handler(
+ State(state): State<Arc<WebState>>,
+ level: Option<Extension<AuthLevel>>,
+ Query(query): Query<WorkstreamsQuery>,
+) -> Response {
+ if let Err(response) = super::require_admin(&state, level).await {
+ return response;
+ }
+ let page = query.page.unwrap_or(1).clamp(1, MAX_PAGE);
+ let offset = (page - 1).saturating_mul(PAGE_SIZE);
+ let mut rows = match state
+ .reader
+ .operational_workstreams(PAGE_SIZE + 1, offset)
+ .await
+ {
+ Ok(rows) => rows,
+ Err(_) => return StatusCode::INTERNAL_SERVER_ERROR.into_response(),
+ };
+ let has_next = rows.len() > PAGE_SIZE;
+ rows.truncate(PAGE_SIZE);
+ let view = WorkstreamsView {
+ rows: rows.into_iter().map(workstream_row).collect(),
+ page,
+ prev_href: (page > 1).then(|| page_href(page - 1)),
+ next_href: has_next.then(|| page_href(page + 1)),
+ };
+ let body = match view.render() {
+ Ok(body) => body,
+ Err(_) => return StatusCode::INTERNAL_SERVER_ERROR.into_response(),
+ };
+ ([(header::CACHE_CONTROL, "no-store")], Html(body)).into_response()
+}
+
+fn workstream_row(summary: OperationalWorkstreamSummary) -> WorkstreamRow {
+ let status = summary.status.as_str().to_owned();
+ let status_label = match summary.status {
+ WorkstreamOperationalStatus::Active => "Active",
+ WorkstreamOperationalStatus::Interrupted => "Interrupted",
+ WorkstreamOperationalStatus::Completed => "Completed",
+ WorkstreamOperationalStatus::Empty => "Empty",
+ }
+ .to_owned();
+ WorkstreamRow {
+ project_href: project_href(&summary.workspace_name, &summary.project_name),
+ scope_label: display_scope(&summary.workspace_name, &summary.project_name),
+ name: summary.name,
+ short_id: short_id(&summary.workstream_id.to_string()),
+ status,
+ status_label,
+ latest_agent: summary
+ .latest_agent
+ .map_or_else(String::new, |agent| agent.as_str().to_owned()),
+ latest_run_short: summary
+ .latest_run_id
+ .map_or_else(String::new, |id| short_id(&id.to_string())),
+ linked_harnesses: summary
+ .linked_harnesses
+ .into_iter()
+ .map(|agent| agent.as_str().to_owned())
+ .collect(),
+ event_count: summary.event_count,
+ last_active_relative: humanize_micros(summary.last_active_at),
+ latest_started_relative: summary
+ .latest_started_at
+ .map_or_else(String::new, humanize_micros),
+ latest_ended_relative: summary
+ .latest_ended_at
+ .map_or_else(String::new, humanize_micros),
+ }
+}
+
+fn humanize_micros(value: i64) -> String {
+ jiff::Timestamp::from_microsecond(value)
+ .map(|timestamp| humanize(&timestamp.to_string()))
+ .unwrap_or_else(|_| value.to_string())
+}
+
+fn page_href(page: usize) -> String {
+ format!("workstreams?page={page}")
+}
+
+fn display_scope(workspace: &str, project: &str) -> String {
+ if workspace.contains('/') || project.contains('/') {
+ format!("{workspace:?}/{project:?}")
+ } else {
+ format!("{workspace}/{project}")
+ }
+}
diff --git a/crates/ai-memory-web/src/templates.rs b/crates/ai-memory-web/src/templates.rs
index ab536be2..ab3ca060 100644
--- a/crates/ai-memory-web/src/templates.rs
+++ b/crates/ai-memory-web/src/templates.rs
@@ -287,6 +287,54 @@ pub(crate) struct SessionRow {
pub open: bool,
}
+// ---------------------------------------------------------------------------
+// workstreams.html
+// ---------------------------------------------------------------------------
+
+/// One managed ledger on the root/operator operations page.
+pub(crate) struct WorkstreamRow {
+ /// Link to the workstream's project overview.
+ pub project_href: String,
+ /// Unambiguous `workspace/project` display label.
+ pub scope_label: String,
+ /// Human-readable managed-workstream name.
+ pub name: String,
+ /// Last eight characters of the stable workstream id.
+ pub short_id: String,
+ /// Stable lifecycle status token used by template conditionals.
+ pub status: String,
+ /// Human-facing lifecycle status.
+ pub status_label: String,
+ /// Harness used by the latest managed run, or empty before first launch.
+ pub latest_agent: String,
+ /// Last eight characters of the latest managed run id, or empty.
+ pub latest_run_short: String,
+ /// Current harness links, in recency order.
+ pub linked_harnesses: Vec<String>,
+ /// Portable events imported across all runs.
+ pub event_count: u64,
+ /// Humanised last selection/import time.
+ pub last_active_relative: String,
+ /// Humanised latest run start, or empty.
+ pub latest_started_relative: String,
+ /// Humanised latest run end, or empty.
+ pub latest_ended_relative: String,
+}
+
+/// Root/operator managed-workstream overview.
+#[derive(Template)]
+#[template(path = "workstreams.html")]
+pub(crate) struct WorkstreamsView {
+ /// Current page rows, attention-first then newest activity.
+ pub rows: Vec<WorkstreamRow>,
+ /// One-based page number.
+ pub page: usize,
+ /// Previous page link, when applicable.
+ pub prev_href: Option<String>,
+ /// Next page link, when another row exists.
+ pub next_href: Option<String>,
+}
+
/// View-model for a namespace (directory) listing — `GET
/// /w/:workspace/:project/p/:namespace/` when the path names a namespace
/// rather than a page (#603).
diff --git a/crates/ai-memory-web/static/tailwind.css b/crates/ai-memory-web/static/tailwind.css
index 3742a85c..9cb8ec64 100644
--- a/crates/ai-memory-web/static/tailwind.css
+++ b/crates/ai-memory-web/static/tailwind.css
@@ -1 +1 @@
-*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.right-2{right:.5rem}.top-0{top:0}.top-14{top:3.5rem}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-bottom:1rem;margin-top:1rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-full{height:100%}.max-h-96{max-height:24rem}.min-h-14{min-height:3.5rem}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-20{width:5rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.min-w-full{min-width:100%}.max-w-3xl{max-width:48rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.125rem*var(--tw-space-y-reverse));margin-top:calc(.125rem*(1 - var(--tw-space-y-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-slate-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(241 245 249/var(--tw-divide-opacity,1))}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-amber-200{--tw-border-opacity:1;border-color:rgb(253 230 138/var(--tw-border-opacity,1))}.border-amber-300{--tw-border-opacity:1;border-color:rgb(252 211 77/var(--tw-border-opacity,1))}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(241 245 249/var(--tw-border-opacity,1))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}.border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-emerald-50{--tw-bg-opacity:1;background-color:rgb(236 253 245/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.bg-rose-50{--tw-bg-opacity:1;background-color:rgb(255 241 242/var(--tw-bg-opacity,1))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.bg-slate-900\/50{background-color:rgba(15,23,42,.5)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-1{padding:.25rem}.p-12{padding:3rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-20{padding-bottom:5rem;padding-top:5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-5{line-height:1.25rem}.leading-relaxed{line-height:1.625}.tracking-wide{letter-spacing:.025em}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity,1))}.text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}.text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.text-emerald-900{--tw-text-opacity:1;color:rgb(6 78 59/var(--tw-text-opacity,1))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.text-rose-900{--tw-text-opacity:1;color:rgb(136 19 55/var(--tw-text-opacity,1))}.text-slate-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity,1))}.text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity,1))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}.text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(100 116 139/var(--tw-placeholder-opacity,1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity:1;color:rgb(100 116 139/var(--tw-placeholder-opacity,1))}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.\!outline{outline-style:solid!important}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}@font-face{font-display:swap;font-family:Management Sans;font-weight:400 700;src:url(instrument-sans-latin-wdth-normal.woff2) format("woff2")}@font-face{font-display:swap;font-family:Management Display;font-weight:200 800;src:url(bricolage-grotesque-latin-standard-normal.woff2) format("woff2")}@font-face{font-display:swap;font-family:Management Mono;src:url(commit-mono-latin-400-normal.woff2) format("woff2")}:root:has(.management){color-scheme:light}:root[data-theme=dark]:has(.management){color-scheme:dark}@media (prefers-color-scheme:dark){:root:not([data-theme=light]):has(.management){color-scheme:dark}}.management{--mg-bg:light-dark(#f5f7f5,#141715);--mg-surface:light-dark(#fff,#202522);--mg-text:light-dark(#171a18,#f0f4f1);--mg-muted:light-dark(#59625d,#aab5ae);--mg-line:light-dark(#d8ded9,#3d4640);background:var(--mg-bg);color:var(--mg-text);font-family:Management Sans,system-ui,sans-serif;font-size:17px}.management-header{background:var(--mg-surface);border-color:var(--mg-line)}.management h1,.management h2,.management-brand strong{font-family:Management Display,system-ui,sans-serif;font-weight:650;letter-spacing:0}.management h1{font-size:2rem;margin-bottom:.6rem}.management h2{font-size:1.25rem}.management-brand strong{font-size:1.5rem}.management-muted{color:var(--mg-muted)}.management-mono{font-family:Management Mono,monospace}.management-panel{background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:.5rem;box-shadow:0 8px 24px -16px rgba(24,38,29,.28);padding:1.5rem}.management button,.management-button{background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:.375rem;cursor:pointer;display:inline-block;font-size:.875rem;font-weight:600;padding:.6rem 1rem}.management .management-primary{background:light-dark(#f3c74f,#e8b936);border-color:transparent;color:#252016}.management-danger{color:light-dark(#b42336,#ff9aa7)}.management label{display:block;font-size:.875rem}.management input:not([type=hidden]):not([type=checkbox]),.management select{background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:.375rem;display:block;margin-top:.4rem;padding:.65rem .75rem;width:100%}.management a:focus-visible,.management button:focus-visible,.management input:focus-visible,.management select:focus-visible{outline:2px solid light-dark(#087d78,#67d6ce);outline-offset:3px}.management td,.management th{border-bottom:1px solid var(--mg-line);padding:1rem .75rem}.management-themes{border:1px solid var(--mg-line);border-radius:.5rem;display:flex;gap:.25rem;padding:.25rem}.management-themes button{border-color:transparent;border-radius:.25rem;color:var(--mg-muted);font-size:.75rem;padding:.35rem .75rem}.management-themes button[aria-pressed=true]{border-color:var(--mg-line);color:var(--mg-text)}.hover\:border-blue-400:hover{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.hover\:border-blue-500:hover{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.hover\:bg-amber-100:hover{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.hover\:bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}.hover\:bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.hover\:bg-slate-50:hover{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.hover\:bg-slate-700:hover{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity,1))}.hover\:text-amber-950:hover{--tw-text-opacity:1;color:rgb(69 26 3/var(--tw-text-opacity,1))}.hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-sm:hover{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:not-sr-only:focus{height:auto;margin:0;overflow:visible;padding:0;position:static;width:auto;clip:auto;white-space:normal}.focus\:absolute:focus{position:absolute}.focus\:left-4:focus{left:1rem}.focus\:top-2:focus{top:.5rem}.focus\:z-20:focus{z-index:20}.focus\:rounded-md:focus{border-radius:.375rem}.focus\:bg-white:focus{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.focus\:px-3:focus{padding-left:.75rem;padding-right:.75rem}.focus\:py-1\.5:focus{padding-bottom:.375rem;padding-top:.375rem}.focus\:text-sm:focus{font-size:.875rem;line-height:1.25rem}.focus\:font-medium:focus{font-weight:500}.focus\:text-blue-700:focus{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:640px){.sm\:inline{display:inline}.sm\:w-48{width:12rem}.sm\:w-64{width:16rem}.sm\:grid-cols-\[12rem_1fr\]{grid-template-columns:12rem 1fr}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:768px){.md\:w-56{width:14rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}}@media (min-width:1024px){.lg\:sticky{position:sticky}.lg\:top-4{top:1rem}.lg\:mt-0{margin-top:0}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:max-h-screen{max-height:100vh}.lg\:w-64{width:16rem}.lg\:flex-1{flex:1 1 0%}.lg\:shrink-0{flex-shrink:0}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:items-start{align-items:flex-start}.lg\:gap-10{gap:2.5rem}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (prefers-color-scheme:dark){.dark\:divide-slate-800>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(30 41 59/var(--tw-divide-opacity,1))}.dark\:border-amber-700{--tw-border-opacity:1;border-color:rgb(180 83 9/var(--tw-border-opacity,1))}.dark\:border-amber-800{--tw-border-opacity:1;border-color:rgb(146 64 14/var(--tw-border-opacity,1))}.dark\:border-amber-900\/50{border-color:rgba(120,53,15,.5)}.dark\:border-blue-800{--tw-border-opacity:1;border-color:rgb(30 64 175/var(--tw-border-opacity,1))}.dark\:border-slate-600{--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity,1))}.dark\:border-slate-700{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.dark\:border-slate-800{--tw-border-opacity:1;border-color:rgb(30 41 59/var(--tw-border-opacity,1))}.dark\:bg-amber-900{--tw-bg-opacity:1;background-color:rgb(120 53 15/var(--tw-bg-opacity,1))}.dark\:bg-amber-900\/40{background-color:rgba(120,53,15,.4)}.dark\:bg-amber-950{--tw-bg-opacity:1;background-color:rgb(69 26 3/var(--tw-bg-opacity,1))}.dark\:bg-amber-950\/30{background-color:rgba(69,26,3,.3)}.dark\:bg-blue-950{--tw-bg-opacity:1;background-color:rgb(23 37 84/var(--tw-bg-opacity,1))}.dark\:bg-emerald-950\/40{background-color:rgba(2,44,34,.4)}.dark\:bg-rose-950\/40{background-color:rgba(76,5,25,.4)}.dark\:bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.dark\:bg-slate-800{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}.dark\:bg-slate-800\/60{background-color:rgba(30,41,59,.6)}.dark\:bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:bg-slate-950{--tw-bg-opacity:1;background-color:rgb(2 6 23/var(--tw-bg-opacity,1))}.dark\:text-amber-200{--tw-text-opacity:1;color:rgb(253 230 138/var(--tw-text-opacity,1))}.dark\:text-amber-300{--tw-text-opacity:1;color:rgb(252 211 77/var(--tw-text-opacity,1))}.dark\:text-amber-300\/90{color:rgba(252,211,77,.9)}.dark\:text-amber-400{--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity,1))}.dark\:text-blue-300{--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.dark\:text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:text-emerald-200{--tw-text-opacity:1;color:rgb(167 243 208/var(--tw-text-opacity,1))}.dark\:text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.dark\:text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\:text-rose-200{--tw-text-opacity:1;color:rgb(254 205 211/var(--tw-text-opacity,1))}.dark\:text-slate-100{--tw-text-opacity:1;color:rgb(241 245 249/var(--tw-text-opacity,1))}.dark\:text-slate-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity,1))}.dark\:text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity,1))}.dark\:text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.dark\:text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.dark\:text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.dark\:text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.dark\:placeholder-slate-400::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(148 163 184/var(--tw-placeholder-opacity,1))}.dark\:placeholder-slate-400::placeholder{--tw-placeholder-opacity:1;color:rgb(148 163 184/var(--tw-placeholder-opacity,1))}.dark\:hover\:border-blue-600:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.dark\:hover\:bg-amber-900\/40:hover{background-color:rgba(120,53,15,.4)}.dark\:hover\:bg-slate-300:hover{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}.dark\:hover\:bg-slate-700:hover{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity,1))}.dark\:hover\:bg-slate-900:hover{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:hover\:text-amber-100:hover{--tw-text-opacity:1;color:rgb(254 243 199/var(--tw-text-opacity,1))}.dark\:hover\:text-blue-400:hover{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:focus\:bg-slate-900:focus{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:focus\:text-blue-400:focus{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}}.\[\&_a\]\:text-blue-600 a{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.\[\&_a\]\:underline a{text-decoration-line:underline}@media (prefers-color-scheme:dark){.\[\&_a\]\:dark\:text-blue-400 a{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}}.\[\&_blockquote\]\:my-3 blockquote{margin-bottom:.75rem;margin-top:.75rem}.\[\&_blockquote\]\:border-l-4 blockquote{border-left-width:4px}.\[\&_blockquote\]\:border-slate-300 blockquote{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_blockquote\]\:pl-4 blockquote{padding-left:1rem}.\[\&_blockquote\]\:italic blockquote{font-style:italic}.\[\&_blockquote\]\:text-slate-600 blockquote{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}@media (prefers-color-scheme:dark){.\[\&_blockquote\]\:dark\:border-slate-700 blockquote{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.\[\&_blockquote\]\:dark\:text-slate-400 blockquote{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}}.\[\&_code\]\:rounded code{border-radius:.25rem}.\[\&_code\]\:bg-slate-100 code{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.\[\&_code\]\:px-1 code{padding-left:.25rem;padding-right:.25rem}.\[\&_code\]\:py-0\.5 code{padding-bottom:.125rem;padding-top:.125rem}.\[\&_code\]\:font-mono code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\[\&_code\]\:text-sm code{font-size:.875rem;line-height:1.25rem}@media (prefers-color-scheme:dark){.\[\&_code\]\:dark\:bg-slate-800 code{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_h1\]\:mb-3 h1{margin-bottom:.75rem}.\[\&_h1\]\:mt-6 h1{margin-top:1.5rem}.\[\&_h1\]\:text-3xl h1{font-size:1.875rem;line-height:2.25rem}.\[\&_h1\]\:font-bold h1{font-weight:700}.\[\&_h2\]\:mb-2 h2{margin-bottom:.5rem}.\[\&_h2\]\:mt-5 h2{margin-top:1.25rem}.\[\&_h2\]\:text-2xl h2{font-size:1.5rem;line-height:2rem}.\[\&_h2\]\:font-semibold h2{font-weight:600}.\[\&_h3\]\:mb-2 h3{margin-bottom:.5rem}.\[\&_h3\]\:mt-4 h3{margin-top:1rem}.\[\&_h3\]\:text-xl h3{font-size:1.25rem;line-height:1.75rem}.\[\&_h3\]\:font-semibold h3{font-weight:600}.\[\&_h4\]\:mb-1 h4{margin-bottom:.25rem}.\[\&_h4\]\:mt-3 h4{margin-top:.75rem}.\[\&_h4\]\:text-lg h4{font-size:1.125rem;line-height:1.75rem}.\[\&_h4\]\:font-semibold h4{font-weight:600}.\[\&_hr\]\:my-6 hr{margin-bottom:1.5rem;margin-top:1.5rem}.\[\&_hr\]\:border-slate-200 hr{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}@media (prefers-color-scheme:dark){.\[\&_hr\]\:dark\:border-slate-800 hr{--tw-border-opacity:1;border-color:rgb(30 41 59/var(--tw-border-opacity,1))}}.\[\&_li\]\:my-1 li{margin-bottom:.25rem;margin-top:.25rem}.\[\&_mark\]\:bg-yellow-200 mark{--tw-bg-opacity:1;background-color:rgb(254 240 138/var(--tw-bg-opacity,1))}.\[\&_mark\]\:px-0\.5 mark{padding-left:.125rem;padding-right:.125rem}@media (prefers-color-scheme:dark){.\[\&_mark\]\:dark\:bg-yellow-800 mark{--tw-bg-opacity:1;background-color:rgb(133 77 14/var(--tw-bg-opacity,1))}}.\[\&_ol\]\:my-3 ol{margin-bottom:.75rem;margin-top:.75rem}.\[\&_ol\]\:list-decimal ol{list-style-type:decimal}.\[\&_ol\]\:pl-5 ol{padding-left:1.25rem}.\[\&_p\]\:my-3 p{margin-bottom:.75rem;margin-top:.75rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_pre\]\:my-3 pre{margin-bottom:.75rem;margin-top:.75rem}.\[\&_pre\]\:overflow-x-auto pre{overflow-x:auto}.\[\&_pre\]\:rounded pre{border-radius:.25rem}.\[\&_pre\]\:bg-slate-100 pre{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.\[\&_pre\]\:p-3 pre{padding:.75rem}@media (prefers-color-scheme:dark){.\[\&_pre\]\:dark\:bg-slate-800 pre{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_pre_code\]\:bg-transparent pre code{background-color:transparent}.\[\&_pre_code\]\:p-0 pre code{padding:0}.\[\&_table\]\:my-3 table{margin-bottom:.75rem;margin-top:.75rem}.\[\&_table\]\:w-full table{width:100%}.\[\&_table\]\:border-collapse table{border-collapse:collapse}.\[\&_td\]\:border td{border-width:1px}.\[\&_td\]\:border-slate-300 td{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_td\]\:px-3 td{padding-left:.75rem;padding-right:.75rem}.\[\&_td\]\:py-2 td{padding-bottom:.5rem;padding-top:.5rem}@media (prefers-color-scheme:dark){.\[\&_td\]\:dark\:border-slate-700 td{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}}.\[\&_th\]\:border th{border-width:1px}.\[\&_th\]\:border-slate-300 th{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_th\]\:bg-slate-50 th{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.\[\&_th\]\:px-3 th{padding-left:.75rem;padding-right:.75rem}.\[\&_th\]\:py-2 th{padding-bottom:.5rem;padding-top:.5rem}.\[\&_th\]\:text-left th{text-align:left}@media (prefers-color-scheme:dark){.\[\&_th\]\:dark\:border-slate-700 th{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.\[\&_th\]\:dark\:bg-slate-800 th{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_ul\]\:my-3 ul{margin-bottom:.75rem;margin-top:.75rem}.\[\&_ul\]\:list-disc ul{list-style-type:disc}.\[\&_ul\]\:pl-5 ul{padding-left:1.25rem}
\ No newline at end of file
+*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.right-2{right:.5rem}.top-0{top:0}.top-14{top:3.5rem}.top-2{top:.5rem}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-bottom:1rem;margin-top:1rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-full{height:100%}.max-h-96{max-height:24rem}.min-h-14{min-height:3.5rem}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-20{width:5rem}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.min-w-full{min-width:100%}.max-w-3xl{max-width:48rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.125rem*var(--tw-space-y-reverse));margin-top:calc(.125rem*(1 - var(--tw-space-y-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.75rem*var(--tw-space-y-reverse));margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-slate-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(241 245 249/var(--tw-divide-opacity,1))}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-y{border-top-width:1px}.border-b,.border-y{border-bottom-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-amber-200{--tw-border-opacity:1;border-color:rgb(253 230 138/var(--tw-border-opacity,1))}.border-amber-300{--tw-border-opacity:1;border-color:rgb(252 211 77/var(--tw-border-opacity,1))}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}.border-emerald-200{--tw-border-opacity:1;border-color:rgb(167 243 208/var(--tw-border-opacity,1))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(241 245 249/var(--tw-border-opacity,1))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}.border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}.bg-emerald-50{--tw-bg-opacity:1;background-color:rgb(236 253 245/var(--tw-bg-opacity,1))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.bg-rose-50{--tw-bg-opacity:1;background-color:rgb(255 241 242/var(--tw-bg-opacity,1))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.bg-slate-50{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.bg-slate-900\/50{background-color:rgba(15,23,42,.5)}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-1{padding:.25rem}.p-12{padding:3rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-20{padding-bottom:5rem;padding-top:5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pr-1{padding-right:.25rem}.pr-10{padding-right:2.5rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-5{line-height:1.25rem}.leading-relaxed{line-height:1.625}.tracking-wide{letter-spacing:.025em}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity,1))}.text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}.text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity,1))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.text-emerald-800{--tw-text-opacity:1;color:rgb(6 95 70/var(--tw-text-opacity,1))}.text-emerald-900{--tw-text-opacity:1;color:rgb(6 78 59/var(--tw-text-opacity,1))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.text-rose-900{--tw-text-opacity:1;color:rgb(136 19 55/var(--tw-text-opacity,1))}.text-slate-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity,1))}.text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity,1))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}.text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}.text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.placeholder-slate-500::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(100 116 139/var(--tw-placeholder-opacity,1))}.placeholder-slate-500::placeholder{--tw-placeholder-opacity:1;color:rgb(100 116 139/var(--tw-placeholder-opacity,1))}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.\!outline{outline-style:solid!important}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}@font-face{font-display:swap;font-family:Management Sans;font-weight:400 700;src:url(instrument-sans-latin-wdth-normal.woff2) format("woff2")}@font-face{font-display:swap;font-family:Management Display;font-weight:200 800;src:url(bricolage-grotesque-latin-standard-normal.woff2) format("woff2")}@font-face{font-display:swap;font-family:Management Mono;src:url(commit-mono-latin-400-normal.woff2) format("woff2")}:root:has(.management){color-scheme:light}:root[data-theme=dark]:has(.management){color-scheme:dark}@media (prefers-color-scheme:dark){:root:not([data-theme=light]):has(.management){color-scheme:dark}}.management{--mg-bg:light-dark(#f5f7f5,#141715);--mg-surface:light-dark(#fff,#202522);--mg-text:light-dark(#171a18,#f0f4f1);--mg-muted:light-dark(#59625d,#aab5ae);--mg-line:light-dark(#d8ded9,#3d4640);background:var(--mg-bg);color:var(--mg-text);font-family:Management Sans,system-ui,sans-serif;font-size:17px}.management-header{background:var(--mg-surface);border-color:var(--mg-line)}.management h1,.management h2,.management-brand strong{font-family:Management Display,system-ui,sans-serif;font-weight:650;letter-spacing:0}.management h1{font-size:2rem;margin-bottom:.6rem}.management h2{font-size:1.25rem}.management-brand strong{font-size:1.5rem}.management-muted{color:var(--mg-muted)}.management-mono{font-family:Management Mono,monospace}.management-panel{background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:.5rem;box-shadow:0 8px 24px -16px rgba(24,38,29,.28);padding:1.5rem}.management button,.management-button{background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:.375rem;cursor:pointer;display:inline-block;font-size:.875rem;font-weight:600;padding:.6rem 1rem}.management .management-primary{background:light-dark(#f3c74f,#e8b936);border-color:transparent;color:#252016}.management-danger{color:light-dark(#b42336,#ff9aa7)}.management label{display:block;font-size:.875rem}.management input:not([type=hidden]):not([type=checkbox]),.management select{background:var(--mg-surface);border:1px solid var(--mg-line);border-radius:.375rem;display:block;margin-top:.4rem;padding:.65rem .75rem;width:100%}.management a:focus-visible,.management button:focus-visible,.management input:focus-visible,.management select:focus-visible{outline:2px solid light-dark(#087d78,#67d6ce);outline-offset:3px}.management td,.management th{border-bottom:1px solid var(--mg-line);padding:1rem .75rem}.management-themes{border:1px solid var(--mg-line);border-radius:.5rem;display:flex;gap:.25rem;padding:.25rem}.management-themes button{border-color:transparent;border-radius:.25rem;color:var(--mg-muted);font-size:.75rem;padding:.35rem .75rem}.management-themes button[aria-pressed=true]{border-color:var(--mg-line);color:var(--mg-text)}.hover\:border-blue-400:hover{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}.hover\:border-blue-500:hover{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.hover\:bg-amber-100:hover{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.hover\:bg-blue-700:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.hover\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}.hover\:bg-slate-200:hover{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity,1))}.hover\:bg-slate-50:hover{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.hover\:bg-slate-700:hover{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity,1))}.hover\:text-amber-950:hover{--tw-text-opacity:1;color:rgb(69 26 3/var(--tw-text-opacity,1))}.hover\:text-blue-600:hover{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-sm:hover{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:not-sr-only:focus{height:auto;margin:0;overflow:visible;padding:0;position:static;width:auto;clip:auto;white-space:normal}.focus\:absolute:focus{position:absolute}.focus\:left-4:focus{left:1rem}.focus\:top-2:focus{top:.5rem}.focus\:z-20:focus{z-index:20}.focus\:rounded-md:focus{border-radius:.375rem}.focus\:bg-white:focus{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.focus\:px-3:focus{padding-left:.75rem;padding-right:.75rem}.focus\:py-1\.5:focus{padding-bottom:.375rem;padding-top:.375rem}.focus\:text-sm:focus{font-size:.875rem;line-height:1.25rem}.focus\:font-medium:focus{font-weight:500}.focus\:text-blue-700:focus{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:640px){.sm\:inline{display:inline}.sm\:table-cell{display:table-cell}.sm\:hidden{display:none}.sm\:w-48{width:12rem}.sm\:w-64{width:16rem}.sm\:grid-cols-\[12rem_1fr\]{grid-template-columns:12rem 1fr}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:768px){.md\:w-56{width:14rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}}@media (min-width:1024px){.lg\:sticky{position:sticky}.lg\:top-4{top:1rem}.lg\:mt-0{margin-top:0}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:max-h-screen{max-height:100vh}.lg\:w-64{width:16rem}.lg\:flex-1{flex:1 1 0%}.lg\:shrink-0{flex-shrink:0}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:items-start{align-items:flex-start}.lg\:gap-10{gap:2.5rem}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (prefers-color-scheme:dark){.dark\:divide-slate-800>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(30 41 59/var(--tw-divide-opacity,1))}.dark\:border-amber-700{--tw-border-opacity:1;border-color:rgb(180 83 9/var(--tw-border-opacity,1))}.dark\:border-amber-800{--tw-border-opacity:1;border-color:rgb(146 64 14/var(--tw-border-opacity,1))}.dark\:border-amber-900\/50{border-color:rgba(120,53,15,.5)}.dark\:border-blue-800{--tw-border-opacity:1;border-color:rgb(30 64 175/var(--tw-border-opacity,1))}.dark\:border-emerald-900\/50{border-color:rgba(6,78,59,.5)}.dark\:border-slate-600{--tw-border-opacity:1;border-color:rgb(71 85 105/var(--tw-border-opacity,1))}.dark\:border-slate-700{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.dark\:border-slate-800{--tw-border-opacity:1;border-color:rgb(30 41 59/var(--tw-border-opacity,1))}.dark\:bg-amber-900{--tw-bg-opacity:1;background-color:rgb(120 53 15/var(--tw-bg-opacity,1))}.dark\:bg-amber-900\/40{background-color:rgba(120,53,15,.4)}.dark\:bg-amber-950{--tw-bg-opacity:1;background-color:rgb(69 26 3/var(--tw-bg-opacity,1))}.dark\:bg-amber-950\/30{background-color:rgba(69,26,3,.3)}.dark\:bg-blue-950{--tw-bg-opacity:1;background-color:rgb(23 37 84/var(--tw-bg-opacity,1))}.dark\:bg-emerald-950\/30{background-color:rgba(2,44,34,.3)}.dark\:bg-emerald-950\/40{background-color:rgba(2,44,34,.4)}.dark\:bg-rose-950\/40{background-color:rgba(76,5,25,.4)}.dark\:bg-slate-100{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.dark\:bg-slate-800{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}.dark\:bg-slate-800\/60{background-color:rgba(30,41,59,.6)}.dark\:bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:bg-slate-950{--tw-bg-opacity:1;background-color:rgb(2 6 23/var(--tw-bg-opacity,1))}.dark\:text-amber-200{--tw-text-opacity:1;color:rgb(253 230 138/var(--tw-text-opacity,1))}.dark\:text-amber-300{--tw-text-opacity:1;color:rgb(252 211 77/var(--tw-text-opacity,1))}.dark\:text-amber-300\/90{color:rgba(252,211,77,.9)}.dark\:text-amber-400{--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity,1))}.dark\:text-blue-300{--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.dark\:text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:text-emerald-200{--tw-text-opacity:1;color:rgb(167 243 208/var(--tw-text-opacity,1))}.dark\:text-emerald-300{--tw-text-opacity:1;color:rgb(110 231 183/var(--tw-text-opacity,1))}.dark\:text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.dark\:text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\:text-rose-200{--tw-text-opacity:1;color:rgb(254 205 211/var(--tw-text-opacity,1))}.dark\:text-slate-100{--tw-text-opacity:1;color:rgb(241 245 249/var(--tw-text-opacity,1))}.dark\:text-slate-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity,1))}.dark\:text-slate-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity,1))}.dark\:text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}.dark\:text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity,1))}.dark\:text-slate-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity,1))}.dark\:text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity,1))}.dark\:placeholder-slate-400::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(148 163 184/var(--tw-placeholder-opacity,1))}.dark\:placeholder-slate-400::placeholder{--tw-placeholder-opacity:1;color:rgb(148 163 184/var(--tw-placeholder-opacity,1))}.dark\:hover\:border-blue-600:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.dark\:hover\:bg-amber-900\/40:hover{background-color:rgba(120,53,15,.4)}.dark\:hover\:bg-slate-300:hover{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity,1))}.dark\:hover\:bg-slate-700:hover{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity,1))}.dark\:hover\:bg-slate-900:hover{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:hover\:text-amber-100:hover{--tw-text-opacity:1;color:rgb(254 243 199/var(--tw-text-opacity,1))}.dark\:hover\:text-blue-400:hover{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.dark\:focus\:bg-slate-900:focus{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.dark\:focus\:text-blue-400:focus{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}}.\[\&_a\]\:text-blue-600 a{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.\[\&_a\]\:underline a{text-decoration-line:underline}@media (prefers-color-scheme:dark){.\[\&_a\]\:dark\:text-blue-400 a{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}}.\[\&_blockquote\]\:my-3 blockquote{margin-bottom:.75rem;margin-top:.75rem}.\[\&_blockquote\]\:border-l-4 blockquote{border-left-width:4px}.\[\&_blockquote\]\:border-slate-300 blockquote{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_blockquote\]\:pl-4 blockquote{padding-left:1rem}.\[\&_blockquote\]\:italic blockquote{font-style:italic}.\[\&_blockquote\]\:text-slate-600 blockquote{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity,1))}@media (prefers-color-scheme:dark){.\[\&_blockquote\]\:dark\:border-slate-700 blockquote{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.\[\&_blockquote\]\:dark\:text-slate-400 blockquote{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}}.\[\&_code\]\:rounded code{border-radius:.25rem}.\[\&_code\]\:bg-slate-100 code{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.\[\&_code\]\:px-1 code{padding-left:.25rem;padding-right:.25rem}.\[\&_code\]\:py-0\.5 code{padding-bottom:.125rem;padding-top:.125rem}.\[\&_code\]\:font-mono code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.\[\&_code\]\:text-sm code{font-size:.875rem;line-height:1.25rem}@media (prefers-color-scheme:dark){.\[\&_code\]\:dark\:bg-slate-800 code{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_h1\]\:mb-3 h1{margin-bottom:.75rem}.\[\&_h1\]\:mt-6 h1{margin-top:1.5rem}.\[\&_h1\]\:text-3xl h1{font-size:1.875rem;line-height:2.25rem}.\[\&_h1\]\:font-bold h1{font-weight:700}.\[\&_h2\]\:mb-2 h2{margin-bottom:.5rem}.\[\&_h2\]\:mt-5 h2{margin-top:1.25rem}.\[\&_h2\]\:text-2xl h2{font-size:1.5rem;line-height:2rem}.\[\&_h2\]\:font-semibold h2{font-weight:600}.\[\&_h3\]\:mb-2 h3{margin-bottom:.5rem}.\[\&_h3\]\:mt-4 h3{margin-top:1rem}.\[\&_h3\]\:text-xl h3{font-size:1.25rem;line-height:1.75rem}.\[\&_h3\]\:font-semibold h3{font-weight:600}.\[\&_h4\]\:mb-1 h4{margin-bottom:.25rem}.\[\&_h4\]\:mt-3 h4{margin-top:.75rem}.\[\&_h4\]\:text-lg h4{font-size:1.125rem;line-height:1.75rem}.\[\&_h4\]\:font-semibold h4{font-weight:600}.\[\&_hr\]\:my-6 hr{margin-bottom:1.5rem;margin-top:1.5rem}.\[\&_hr\]\:border-slate-200 hr{--tw-border-opacity:1;border-color:rgb(226 232 240/var(--tw-border-opacity,1))}@media (prefers-color-scheme:dark){.\[\&_hr\]\:dark\:border-slate-800 hr{--tw-border-opacity:1;border-color:rgb(30 41 59/var(--tw-border-opacity,1))}}.\[\&_li\]\:my-1 li{margin-bottom:.25rem;margin-top:.25rem}.\[\&_mark\]\:bg-yellow-200 mark{--tw-bg-opacity:1;background-color:rgb(254 240 138/var(--tw-bg-opacity,1))}.\[\&_mark\]\:px-0\.5 mark{padding-left:.125rem;padding-right:.125rem}@media (prefers-color-scheme:dark){.\[\&_mark\]\:dark\:bg-yellow-800 mark{--tw-bg-opacity:1;background-color:rgb(133 77 14/var(--tw-bg-opacity,1))}}.\[\&_ol\]\:my-3 ol{margin-bottom:.75rem;margin-top:.75rem}.\[\&_ol\]\:list-decimal ol{list-style-type:decimal}.\[\&_ol\]\:pl-5 ol{padding-left:1.25rem}.\[\&_p\]\:my-3 p{margin-bottom:.75rem;margin-top:.75rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_pre\]\:my-3 pre{margin-bottom:.75rem;margin-top:.75rem}.\[\&_pre\]\:overflow-x-auto pre{overflow-x:auto}.\[\&_pre\]\:rounded pre{border-radius:.25rem}.\[\&_pre\]\:bg-slate-100 pre{--tw-bg-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity,1))}.\[\&_pre\]\:p-3 pre{padding:.75rem}@media (prefers-color-scheme:dark){.\[\&_pre\]\:dark\:bg-slate-800 pre{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_pre_code\]\:bg-transparent pre code{background-color:transparent}.\[\&_pre_code\]\:p-0 pre code{padding:0}.\[\&_table\]\:my-3 table{margin-bottom:.75rem;margin-top:.75rem}.\[\&_table\]\:w-full table{width:100%}.\[\&_table\]\:border-collapse table{border-collapse:collapse}.\[\&_td\]\:border td{border-width:1px}.\[\&_td\]\:border-slate-300 td{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_td\]\:px-3 td{padding-left:.75rem;padding-right:.75rem}.\[\&_td\]\:py-2 td{padding-bottom:.5rem;padding-top:.5rem}@media (prefers-color-scheme:dark){.\[\&_td\]\:dark\:border-slate-700 td{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}}.\[\&_th\]\:border th{border-width:1px}.\[\&_th\]\:border-slate-300 th{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity,1))}.\[\&_th\]\:bg-slate-50 th{--tw-bg-opacity:1;background-color:rgb(248 250 252/var(--tw-bg-opacity,1))}.\[\&_th\]\:px-3 th{padding-left:.75rem;padding-right:.75rem}.\[\&_th\]\:py-2 th{padding-bottom:.5rem;padding-top:.5rem}.\[\&_th\]\:text-left th{text-align:left}@media (prefers-color-scheme:dark){.\[\&_th\]\:dark\:border-slate-700 th{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.\[\&_th\]\:dark\:bg-slate-800 th{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity,1))}}.\[\&_ul\]\:my-3 ul{margin-bottom:.75rem;margin-top:.75rem}.\[\&_ul\]\:list-disc ul{list-style-type:disc}.\[\&_ul\]\:pl-5 ul{padding-left:1.25rem}
\ No newline at end of file
diff --git a/crates/ai-memory-web/templates/base.html b/crates/ai-memory-web/templates/base.html
index 15de8d3c..c3b1e78d 100644
--- a/crates/ai-memory-web/templates/base.html
+++ b/crates/ai-memory-web/templates/base.html
@@ -38,8 +38,9 @@
>
</form>
{% endblock %}
- <nav aria-label="Main" class="flex items-center gap-4">
+ <nav aria-label="Main" class="flex flex-wrap items-center justify-end gap-x-4 gap-y-2">
<a href="graph" {% block nav_graph_current %}{% endblock %} class="text-sm font-medium text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400">Graph</a>
+ <a href="workstreams" {% block nav_workstreams_current %}{% endblock %} class="text-sm font-medium text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400">Workstreams</a>
<a href="pending" {% block nav_pending_current %}{% endblock %} class="text-sm font-medium text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400">Pending</a>
<a href="health" {% block nav_health_current %}{% endblock %} class="text-sm font-medium text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400">Health</a>
<button
diff --git a/crates/ai-memory-web/templates/workstreams.html b/crates/ai-memory-web/templates/workstreams.html
new file mode 100644
index 00000000..5846b263
--- /dev/null
+++ b/crates/ai-memory-web/templates/workstreams.html
@@ -0,0 +1,84 @@
+{% extends "base.html" %}
+
+{% block title %}Workstreams — ai-memory{% endblock %}
+{% block nav_workstreams_current %}aria-current="page"{% endblock %}
+
+{% block content %}
+<div class="mb-6 flex flex-wrap items-end justify-between gap-4">
+ <div>
+ <h1 class="text-2xl font-bold text-slate-900 dark:text-slate-100">Managed workstreams</h1>
+ <p class="mt-1 text-sm text-slate-500 dark:text-slate-400">Operational state across projects, ordered by attention and recent activity.</p>
+ </div>
+ <span class="text-xs text-slate-500 dark:text-slate-400">Page {{ page }}</span>
+</div>
+
+{% if rows.is_empty() %}
+<p class="text-sm text-slate-500 dark:text-slate-400">No managed workstreams on this page.</p>
+{% else %}
+<div class="overflow-x-auto border-y border-slate-200 dark:border-slate-800">
+ <table class="w-full text-left text-sm">
+ <thead class="bg-slate-50 dark:bg-slate-900 text-xs uppercase text-slate-500 dark:text-slate-400">
+ <tr>
+ <th scope="col" class="px-3 py-2 font-semibold">Workstream</th>
+ <th scope="col" class="px-3 py-2 font-semibold">Status</th>
+ <th scope="col" class="px-3 py-2 font-semibold">Latest run</th>
+ <th scope="col" class="hidden sm:table-cell px-3 py-2 font-semibold">Evidence</th>
+ <th scope="col" class="hidden sm:table-cell px-3 py-2 font-semibold text-right">Activity</th>
+ </tr>
+ </thead>
+ <tbody class="divide-y divide-slate-100 dark:divide-slate-800">
+ {% for row in rows %}
+ <tr>
+ <td class="px-3 py-3 align-top">
+ <div class="font-medium text-slate-900 dark:text-slate-100">{{ row.name }}</div>
+ <div class="mt-1 flex flex-wrap items-center gap-2 text-xs text-slate-500 dark:text-slate-400">
+ <a href="{{ row.project_href }}" class="hover:text-blue-600 dark:hover:text-blue-400">{{ row.scope_label }}</a>
+ <span class="font-mono">{{ row.short_id }}</span>
+ </div>
+ <div class="mt-1 text-xs text-slate-500 dark:text-slate-400 sm:hidden">{{ row.event_count }} event{% if row.event_count != 1 %}s{% endif %}</div>
+ </td>
+ <td class="px-3 py-3 align-top">
+ {% if row.status == "active" %}
+ <span class="inline-flex items-center whitespace-nowrap rounded px-1.5 py-0.5 text-xs font-medium border border-emerald-200 dark:border-emerald-900/50 bg-emerald-50 dark:bg-emerald-950/30 text-emerald-800 dark:text-emerald-300">{{ row.status_label }}</span>
+ {% else if row.status == "interrupted" %}
+ <span class="inline-flex items-center whitespace-nowrap rounded px-1.5 py-0.5 text-xs font-medium border border-amber-200 dark:border-amber-900/50 bg-amber-50 dark:bg-amber-950/30 text-amber-800 dark:text-amber-300">{{ row.status_label }}</span>
+ {% else %}
+ <span class="inline-flex items-center whitespace-nowrap rounded px-1.5 py-0.5 text-xs font-medium bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-300">{{ row.status_label }}</span>
+ {% endif %}
+ </td>
+ <td class="px-3 py-3 align-top">
+ {% if row.latest_agent.is_empty() %}
+ <span class="text-slate-500 dark:text-slate-400">Not launched</span>
+ {% else %}
+ <div class="flex flex-wrap items-center gap-2">
+ <span class="inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400">{{ row.latest_agent }}</span>
+ <span class="font-mono text-xs text-slate-500 dark:text-slate-400">{{ row.latest_run_short }}</span>
+ </div>
+ <div class="mt-1 text-xs text-slate-500 dark:text-slate-400">Started {{ row.latest_started_relative }}{% if !row.latest_ended_relative.is_empty() %}; ended {{ row.latest_ended_relative }}{% endif %}</div>
+ {% endif %}
+ </td>
+ <td class="hidden sm:table-cell px-3 py-3 align-top">
+ <div>{{ row.event_count }} event{% if row.event_count != 1 %}s{% endif %}</div>
+ {% if !row.linked_harnesses.is_empty() %}
+ <div class="mt-1 flex flex-wrap gap-1">
+ {% for harness in row.linked_harnesses %}
+ <span class="inline-flex items-center rounded px-1.5 py-0.5 text-xs bg-slate-100 dark:bg-slate-800 text-slate-600 dark:text-slate-400">{{ harness }}</span>
+ {% endfor %}
+ </div>
+ {% endif %}
+ </td>
+ <td class="hidden sm:table-cell px-3 py-3 align-top text-right whitespace-nowrap text-xs text-slate-500 dark:text-slate-300">{{ row.last_active_relative }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+</div>
+{% endif %}
+
+{% if prev_href.is_some() || next_href.is_some() %}
+<nav aria-label="Workstream pages" class="mt-6 flex items-center justify-between gap-4 text-sm">
+ {% if let Some(href) = prev_href %}<a href="{{ href }}" class="font-medium text-blue-600 dark:text-blue-400 hover:underline">Previous</a>{% else %}<span></span>{% endif %}
+ {% if let Some(href) = next_href %}<a href="{{ href }}" class="font-medium text-blue-600 dark:text-blue-400 hover:underline">Next</a>{% endif %}
+</nav>
+{% endif %}
+{% endblock %}
diff --git a/crates/ai-memory-web/tests/suite/mod.rs b/crates/ai-memory-web/tests/suite/mod.rs
index c2f182c6..ae0730bd 100644
--- a/crates/ai-memory-web/tests/suite/mod.rs
+++ b/crates/ai-memory-web/tests/suite/mod.rs
@@ -8,6 +8,7 @@ mod history_replay;
mod pending;
mod recall_trace;
mod routes;
+mod workstreams;
#[cfg(feature = "management-ui")]
mod management;
diff --git a/crates/ai-memory-web/tests/suite/routes.rs b/crates/ai-memory-web/tests/suite/routes.rs
index d3b05235..a746fa97 100644
--- a/crates/ai-memory-web/tests/suite/routes.rs
+++ b/crates/ai-memory-web/tests/suite/routes.rs
@@ -5065,7 +5065,7 @@ async fn pages_expose_skip_link_search_labels_and_current_breadcrumb() {
#[tokio::test]
async fn header_links_sit_in_a_main_nav_and_mark_the_current_section() {
let (_tmp, store, wiki) = setup().await;
- // /pending and /health are root-only.
+ // /workstreams, /pending and /health are root-only.
let app = router(store.reader.clone(), wiki).layer(axum::middleware::from_fn(
|mut req: Request<Body>, next: axum::middleware::Next| async move {
req.extensions_mut().insert(ai_memory_core::AuthLevel::Root);
@@ -5079,12 +5079,17 @@ async fn header_links_sit_in_a_main_nav_and_mark_the_current_section() {
};
// (uri, section whose link is the current one)
- let cases = [("/", ""), ("/pending", "pending"), ("/health", "health")];
+ let cases = [
+ ("/", ""),
+ ("/workstreams", "workstreams"),
+ ("/pending", "pending"),
+ ("/health", "health"),
+ ];
for (uri, current) in cases {
let (status, body) = get_body(&app, uri).await;
assert_eq!(status, StatusCode::OK, "{uri}: {body}");
assert!(body.contains(r#"<nav aria-label="Main""#), "{uri}: nav");
- for href in ["pending", "health"] {
+ for href in ["workstreams", "pending", "health"] {
assert_eq!(
tag(&body, href).contains(r#"aria-current="page""#),
href == current,
diff --git a/crates/ai-memory-web/tests/suite/workstreams.rs b/crates/ai-memory-web/tests/suite/workstreams.rs
new file mode 100644
index 00000000..ab31817b
--- /dev/null
+++ b/crates/ai-memory-web/tests/suite/workstreams.rs
@@ -0,0 +1,312 @@
+//! Adversarial tests for the root-only managed-workstream operations view.
+
+use std::sync::Arc;
+
+use ai_memory_core::{
+ ActorContext, AgentKind, AuthLevel, NewUser, NewWorkstreamEvent, Sanitizer, UserRole,
+ WorkstreamEventKind,
+};
+use ai_memory_store::{
+ FinishWorkstreamRun, ManagedRunAuthority, PrepareWorkstreamRun, Store, WorkstreamSelection,
+};
+use ai_memory_web::{HtmlAuthRedirectConfig, html_auth_redirect_mw, router};
+use ai_memory_wiki::Wiki;
+use axum::body::Body;
+use axum::http::{Request, StatusCode, header};
+use tempfile::TempDir;
+use tower::ServiceExt;
+
+struct Fixture {
+ _tmp: TempDir,
+ store: Store,
+ wiki: Wiki,
+}
+
+async fn fixture() -> Fixture {
+ let tmp = TempDir::new().unwrap();
+ let store = Store::open(tmp.path()).unwrap();
+ let wiki = Wiki::new(tmp.path(), store.writer.clone()).unwrap();
+ Fixture {
+ _tmp: tmp,
+ store,
+ wiki,
+ }
+}
+
+async fn prepare(
+ fixture: &Fixture,
+ project: &str,
+ name: &str,
+ agent: AgentKind,
+) -> ai_memory_store::PreparedWorkstreamRun {
+ prepare_with_selection(
+ fixture,
+ project,
+ agent,
+ WorkstreamSelection::New(name.to_owned()),
+ )
+ .await
+}
+
+async fn prepare_with_selection(
+ fixture: &Fixture,
+ project: &str,
+ agent: AgentKind,
+ selection: WorkstreamSelection,
+) -> ai_memory_store::PreparedWorkstreamRun {
+ let workspace_id = fixture
+ .store
+ .writer
+ .get_or_create_workspace("default")
+ .await
+ .unwrap();
+ let project_id = fixture
+ .store
+ .writer
+ .get_or_create_project(workspace_id, project, None)
+ .await
+ .unwrap();
+ fixture
+ .store
+ .writer
+ .prepare_workstream_run(PrepareWorkstreamRun {
+ workspace_id,
+ project_id,
+ repo_fingerprint: format!("repo-secret-{project}"),
+ worktree_fingerprint: format!("tree-secret-{project}"),
+ cwd: format!("/secret/{project}"),
+ agent,
+ automatic_harness: false,
+ available_agents: Vec::new(),
+ selection,
+ lease_owner: format!("lease-secret-{project}"),
+ })
+ .await
+ .unwrap()
+}
+
+fn root_authority() -> ManagedRunAuthority {
+ ManagedRunAuthority::from_auth(
+ AuthLevel::Root,
+ None,
+ None,
+ &ActorContext::anonymous(),
+ false,
+ )
+}
+
+async fn finish(fixture: &Fixture, run: &ai_memory_store::PreparedWorkstreamRun) {
+ fixture
+ .store
+ .writer
+ .finish_workstream_run(
+ root_authority(),
+ FinishWorkstreamRun {
+ sanitizer: Sanitizer::default(),
+ run_id: run.run_id,
+ native_session_id: Some("native-session-secret".into()),
+ source_cursor: Some("cursor-secret".into()),
+ events: vec![NewWorkstreamEvent {
+ event_id: "event-1".into(),
+ agent: run.agent,
+ native_session_id: "native-session-secret".into(),
+ source_record_id: Some("source-secret".into()),
+ kind: WorkstreamEventKind::Message,
+ role: Some("assistant".into()),
+ content: "<script>transcript secret</script>".into(),
+ occurred_at: None,
+ metadata: serde_json::json!({"tool": "secret-tool"}),
+ }],
+ complete: true,
+ segment_path: Some("/secret/segment.jsonl".into()),
+ exit_code: Some(0),
+ },
+ )
+ .await
+ .unwrap();
+}
+
+async fn add_db_user(store: &Store) {
+ store
+ .writer
+ .create_human_user(
+ NewUser {
+ username: "alice".into(),
+ name: None,
+ email: None,
+ },
+ UserRole::User,
+ None,
+ false,
+ )
+ .await
+ .unwrap();
+}
+
+fn app(fixture: &Fixture, level: AuthLevel) -> axum::Router {
+ let cfg = Arc::new(HtmlAuthRedirectConfig::from_mount("", "/"));
+ router(fixture.store.reader.clone(), fixture.wiki.clone())
+ .layer(axum::middleware::from_fn(
+ move |mut request: Request<Body>, next: axum::middleware::Next| async move {
+ request.extensions_mut().insert(level);
+ next.run(request).await
+ },
+ ))
+ .layer(axum::middleware::from_fn_with_state(
+ cfg,
+ html_auth_redirect_mw,
+ ))
+}
+
+async fn get_uri(
+ app: axum::Router,
+ uri: &str,
+ html: bool,
+) -> (StatusCode, axum::http::HeaderMap, String) {
+ let mut request = Request::builder().uri(uri);
+ if html {
+ request = request
+ .header(header::ACCEPT, "text/html")
+ .header("sec-fetch-dest", "document");
+ }
+ let response = app
+ .oneshot(request.body(Body::empty()).unwrap())
+ .await
+ .unwrap();
+ let status = response.status();
+ let headers = response.headers().clone();
+ let body = axum::body::to_bytes(response.into_body(), usize::MAX)
+ .await
+ .unwrap();
+ (status, headers, String::from_utf8(body.to_vec()).unwrap())
+}
+
+async fn get(app: axum::Router, html: bool) -> (StatusCode, axum::http::HeaderMap, String) {
+ get_uri(app, "/workstreams", html).await
+}
+
+#[tokio::test]
+async fn operations_page_is_root_only_once_operators_are_distinguished() {
+ let fixture = fixture().await;
+ prepare(&fixture, "private", "private stream", AgentKind::Codex).await;
+ add_db_user(&fixture.store).await;
+
+ let (status, _, body) = get(app(&fixture, AuthLevel::Anonymous), false).await;
+ assert_eq!(status, StatusCode::UNAUTHORIZED);
+ assert!(!body.contains("private stream"));
+
+ let (status, _, body) = get(app(&fixture, AuthLevel::User), true).await;
+ assert_eq!(status, StatusCode::FORBIDDEN);
+ assert!(body.contains("Root access required"), "{body}");
+ assert!(!body.contains("private stream"));
+}
+
+#[tokio::test]
+async fn operations_page_lists_lifecycle_state_without_host_or_transcript_secrets() {
+ let fixture = fixture().await;
+ let completed = prepare(
+ &fixture,
+ "complete",
+ "review <img src=x onerror=alert(1)>",
+ AgentKind::ClaudeCode,
+ )
+ .await;
+ finish(&fixture, &completed).await;
+ prepare(&fixture, "live", "active work", AgentKind::Codex).await;
+ add_db_user(&fixture.store).await;
+
+ let (status, headers, body) = get(app(&fixture, AuthLevel::Root), true).await;
+ assert_eq!(status, StatusCode::OK, "{body}");
+ assert_eq!(headers.get(header::CACHE_CONTROL).unwrap(), "no-store");
+ assert!(body.contains("Completed"), "{body}");
+ assert!(body.contains("Active"), "{body}");
+ assert!(body.contains("default/complete"), "{body}");
+ assert!(body.contains("default/live"), "{body}");
+ assert!(
+ body.contains("&lt;img src=x onerror=alert(1)&gt;"),
+ "{body}"
+ );
+ assert!(!body.contains("<img src=x onerror=alert(1)>"), "{body}");
+ assert!(!body.contains("transcript secret"), "{body}");
+ for secret in [
+ "/secret/",
+ "repo-secret-",
+ "tree-secret-",
+ "lease-secret-",
+ "native-session-secret",
+ "source-secret",
+ "cursor-secret",
+ "segment.jsonl",
+ "secret-tool",
+ ] {
+ assert!(!body.contains(secret), "leaked {secret}: {body}");
+ }
+ let active = body.find("active work").unwrap();
+ let completed = body.find("review &lt;img").unwrap();
+ assert!(active < completed, "attention ordering changed: {body}");
+}
+
+#[tokio::test]
+async fn single_user_install_can_open_the_operations_page() {
+ let fixture = fixture().await;
+ prepare(&fixture, "solo", "default", AgentKind::Codex).await;
+ let (status, _, body) = get(app(&fixture, AuthLevel::Anonymous), true).await;
+ assert_eq!(status, StatusCode::OK, "{body}");
+ assert!(body.contains("default/solo"), "{body}");
+}
+
+#[tokio::test]
+async fn operations_page_paginates_workstreams_before_current_harness_links() {
+ let fixture = fixture().await;
+ for index in 0..100 {
+ prepare(
+ &fixture,
+ "pages",
+ &format!("stream-{index:03}"),
+ AgentKind::Codex,
+ )
+ .await;
+ }
+
+ let first = prepare(&fixture, "pages", "multi-harness", AgentKind::ClaudeCode).await;
+ finish(&fixture, &first).await;
+ let current = prepare_with_selection(
+ &fixture,
+ "pages",
+ AgentKind::Codex,
+ WorkstreamSelection::Named("multi-harness".into()),
+ )
+ .await;
+ fixture
+ .store
+ .writer
+ .link_managed_run_session(current.run_id, AgentKind::Codex, "codex-current")
+ .await
+ .unwrap();
+
+ let (status, _, first_page) = get(app(&fixture, AuthLevel::Anonymous), true).await;
+ assert_eq!(status, StatusCode::OK, "{first_page}");
+ assert_eq!(first_page.matches("<tr>").count(), 101, "{first_page}");
+ assert_eq!(
+ first_page.matches("multi-harness").count(),
+ 1,
+ "{first_page}"
+ );
+ assert!(first_page.contains("claude-code"), "{first_page}");
+ assert!(first_page.contains("codex"), "{first_page}");
+ assert!(
+ first_page.contains("href=\"workstreams?page=2\""),
+ "{first_page}"
+ );
+
+ let (status, _, second_page) = get_uri(
+ app(&fixture, AuthLevel::Anonymous),
+ "/workstreams?page=2",
+ true,
+ )
+ .await;
+ assert_eq!(status, StatusCode::OK, "{second_page}");
+ assert_eq!(second_page.matches("<tr>").count(), 2, "{second_page}");
+ assert!(!second_page.contains("multi-harness"), "{second_page}");
+ assert!(!second_page.contains("workstreams?page=3"), "{second_page}");
+}
diff --git a/docs/managed-workstreams.md b/docs/managed-workstreams.md
index ebd242e1..d33d6520 100644
--- a/docs/managed-workstreams.md
+++ b/docs/managed-workstreams.md
@@ -7,6 +7,15 @@ keep their existing ai-memory behavior. There is no global mode toggle and no
`switch` command: using `run` selects the current workstream and transparently
creates or resumes the correct native session for the requested harness.
+When the server runs with `--enable-web`, root can inspect all managed ledgers
+at `/web/workstreams`. The read-only page shows trusted lifecycle state, the
+latest harness/run, current harness links, event counts, and activity times. It
+does not infer "waiting for input" from captured prose, and it never displays
+checkout paths, fingerprints, lease-owner strings, native session ids, source
+record ids, or transcript content. This cross-project operator view is not a
+discovery API: `ai-memory resume` and normal run selection remain restricted to
+the exact repository/worktree fingerprints described below.
+
`ai-memory run` is the preferred way to start a harness: if in doubt, run
with ai-memory. Besides session continuity, the first time it launches a given
harness it auto-installs that harness's ai-memory hooks and MCP if they are
diff --git a/docs/research-2026-landscape.md b/docs/research-2026-landscape.md
index 294154c6..31568718 100644
--- a/docs/research-2026-landscape.md
+++ b/docs/research-2026-landscape.md
@@ -777,9 +777,9 @@ public, open artifact is the MIT npm client `@liquidlm/cli` (stable v0.1.6).
over long horizons, and finds every evaluated system far from it. Two
implications: our product framing matches where evaluation is going, and
the in-repo evaluation harness should keep expanding beyond retrieval. We
- now publish reproducible retrieval-through-capture numbers, but still lack
- a comparable end-to-end QA result with reader, judge, context, and latency
- recorded together.
+ now publish reproducible retrieval-through-capture numbers and ship an
+ answerer/judge path with context, latency, and exact-model receipts. The
+ remaining evidence gap is a published run over the full 470-question set.
- **Bi-temporal validity (Zep paper, arXiv:2501.13956, now mainstream
via Graphiti)** is the one *specific* mechanism from the graph camp
worth studying: every fact/edge carries event-time and
@@ -817,13 +817,13 @@ their headings state what has shipped.
with generated index/log projections and `ai-memory okf check`. No export-only
compatibility layer is needed.
-**R2: Reproducible eval harness - shipped for retrieval, still open for
-end-to-end QA.** The in-repo harness publishes retrieval-through-capture and
-component results with run commands and receipts. It also keeps the
+**R2: Reproducible eval harness - shipped; full-set QA run still open.** The
+in-repo harness publishes retrieval-through-capture and component results with
+run commands and receipts, and includes an opt-in answerer/judge QA mode with
+per-question outcomes and exact provider/model provenance. It also keeps the
belief-strength and LLM dream features off by default because neither has
-shown a useful retrieval delta. The remaining work is a reproducible
-end-to-end QA path that records the answerer, judge, context budget, latency,
-and exact metric.
+shown a useful retrieval delta. The remaining work is operational: run and
+publish the full 470-question QA set rather than only the existing sample.
**R3: Typed relation edges - shipped.** `causes`, `fixes`, and `contradicts`
are stored and explained, related-page reads can traverse them, and
@@ -850,8 +850,10 @@ remaining retrieval gap is a path-prefix filter, now part of P2 below.
**R8: Queryable metadata/tag filters + a published eval triple - partly
open.** The retrieval harness and accuracy/latency/context reporting exist.
-Search still cannot filter by path, kind, tier, author, or tag before ranking.
-That bounded filter surface is the remaining work. Connectors and document
+The store and web search already filter kind and tier before every ranking
+stream; `memory_query` does not expose them, and path prefix, author, and tag
+remain absent. Extending that bounded filter surface is the remaining work.
+Connectors and document
extraction, if adopted, stay in the importer companion so untrusted input still
crosses the sanitizer boundary and the server remains text-first.
@@ -860,21 +862,24 @@ crosses the sanitizer boundary and the server remains text-first.
This is the short list that remains after removing work already shipped.
Each item needs its own design and approval before implementation.
-1. **P1 - Workstream operations view.** Add a read-only `/web` view over the
- managed-workstream ledger: active, waiting for input, ready to review,
- finished, and stale; show the latest run, handoff, and bounded evidence.
- Store only a minimal human review marker if the derived states are not
- enough. This borrows claude-mem's useful human visibility without turning
- ai-memory into a kanban system or cloud collaboration product.
+1. **P1 - Workstream operations view.** Add a read-only, root/operator `/web`
+ view over the managed-workstream ledger. Derive only states the trusted
+ lifecycle columns support: active, interrupted, completed, and empty;
+ show the latest run and bounded operational evidence. Do not infer "waiting
+ for input" from untrusted transcript prose or pretend handoffs are linked to
+ workstreams when the schema has no such relationship. This borrows
+ claude-mem's useful human visibility without turning ai-memory into a kanban
+ system or cloud collaboration product.
2. **P1 - Protect interactive recall from background embedding.** Build a
contention benchmark first. If administrative backfill can delay query
embedding, give foreground queries reserved capacity or separate gates.
Preserve the current fail-open behavior: lexical/entity/graph retrieval
must still answer when embedding or reranking is saturated.
-3. **P2 - Structured query filters.** Add bounded, optional filters for path
- prefix, page kind, tier, tag, author, and valid time before ranking. Reuse
- `ScopeResolver`; partial or missing scopes continue to fail closed. This is
- the remaining half of R8 and the most concrete retrieval ergonomics gap.
+3. **P2 - Structured query filters.** Expose the existing pre-rank kind/tier
+ filters through `memory_query`, then add bounded path-prefix and exact-tag
+ filters. Keep `as_of` as the valid-time control and defer author until null
+ root/anonymous attribution has explicit semantics. Reuse `ScopeResolver`;
+ partial or missing scopes continue to fail closed.
4. **P2 - Per-operation LLM profiles, measure first.** Prototype separate
provider/model choices for consolidation, reranking, and auto-improvement,
plus a cheap structured decision tier. Measure cost, latency, call count,
@@ -883,10 +888,10 @@ Each item needs its own design and approval before implementation.
importer companion to extract PDF/Office/media transcripts into attributed,
sanitized markdown. Keep opaque files and native multimodal embeddings out
of the server core.
-6. **P3 - End-to-end QA evaluation.** Add a reproducible answerer/judge path
- beside hit@5 and report accuracy, p50/p95 latency, context tokens, exact
- models, and run receipts. Do not claim a cross-tool ranking without a
- shared harness.
+6. **P3 - End-to-end QA evaluation.** Use the shipped answerer/judge path for
+ a deliberate full 470-question run and publish its receipt with accuracy,
+ p50/p95 latency, context tokens, and exact models. Do not build a duplicate
+ path or claim a cross-tool ranking without a shared harness.
**Deliberately not recommended:** joining the memory-OS camp (agent
self-editing its memory is token-expensive, and Letta's own successor now
diff --git a/docs/security-boundaries.md b/docs/security-boundaries.md
index ab03d1d8..04ac8d83 100644
--- a/docs/security-boundaries.md
+++ b/docs/security-boundaries.md
@@ -45,6 +45,7 @@ means the boundary is not built yet.
| 3g | A Basic browser sign-in on a server without human accounts never persists the root bearer in a cookie | `ai-memory-mcp/src/human_auth.rs` `require_dual_auth` accepts Basic (or an `ai_memory_auth` cookie an older build set) for GET only before human auth exists and sets no cookie on success; the browser resends Basic itself; `expire_legacy_cookie_mw` retires a leftover cookie once human auth is active; a request admitted this way carries `ai_memory_core::LegacyBrowserAuth`, which `/web/pending` reads to show CLI commands instead of decision buttons that would post and fail | `human_auth.rs` `a_basic_sign_in_mints_no_cookie_holding_the_root_bearer` (no `Set-Cookie` carries the token, no `ai_memory_auth` is set; control: the Basic GET is served and the bearer still authenticates; bite-checked against the old cookie minting), `legacy_browser_credentials_stop_when_human_bootstrap_completes` (Basic and a leftover cookie both stop at bootstrap), `only_a_legacy_browser_credential_is_marked_read_only` (Basic and the leftover cookie are marked, a Basic POST is still 401; control: the root bearer is unmarked and its POST is served; bite-checked by removing the insertion); `ai-memory-web` `pending_page_offers_cli_commands_instead_of_buttons_to_a_basic_browser` (bite-checked) | STRONG |
| 3h | Cross-project `GET /admin/search` (no `workspace`/`project`, the `ai-memory search --global` path, #1253) is root-only on a multi-user server | `ai-memory-mcp/src/admin.rs` `handle_search` runs the no-scope branch through `ReaderPool::search_pages_with_meta` as `OPERATOR` (every project, each hit tagged with its workspace and project); the route sits in the operational router under `require_root_for_multiuser_admin` (`AuthLevel::authorize(Capability::Admin, distinguishes_operators)`), so a DB user or proxy-asserted user never reaches the unfiltered read. A partial scope is still a 400, never a silent global fallback. `ai-memory-cli/src/commands/search.rs` sends no scope only when `--global` is passed, and clap rejects `--global` with `--workspace`/`--project` | MCP `admin_status_search.rs` `global_search_never_reaches_a_non_root_caller` (a restricted project the user holds no grant on, for both a DB-user deployment and a trusted-proxy deployment with no `users` rows: user 403 and anonymous 401 with neither the sentinel path nor the query term in the body; root control 200 with both projects' hits), `global_search_tags_each_hit_with_its_workspace_and_project`, `search_rejects_partial_scope_instead_of_global_fallback`; the shared `admin.rs` all-admin 403/401 route matrix includes `/admin/search`; CLI `cli.rs` `search_global_parses_and_conflicts_with_an_explicit_scope` | STRONG. Bite check: with the gate's operator test forced off (`authorize(Capability::Admin, false)`) the refusal test fails on the DB-user case (200 instead of 403) |
| 3i | Cross-project `GET /admin/recent` (no `workspace`/`project`, the `ai-memory recent --global` path) is root-only on a multi-user server | `ai-memory-mcp/src/admin.rs` `handle_recent` runs the no-scope branch through `ReaderPool::recent_pages_global` as `OPERATOR` (every project, each hit tagged with its workspace and project); the route sits in the operational router under `require_root_for_multiuser_admin` (`AuthLevel::authorize(Capability::Admin, distinguishes_operators)`), so a DB user or proxy-asserted user never reaches the unfiltered read. A partial scope is still a 400, never a silent global fallback; an unknown scoped project is a 404 and does not leak another project's pages. `ai-memory-cli/src/commands/recent.rs` sends no scope only when `--global` is passed, and clap rejects `--global` with `--workspace`/`--project` | MCP `admin_status_search.rs` `global_recent_never_reaches_a_non_root_caller` (a restricted project the user holds no grant on, for both a DB-user deployment and a trusted-proxy deployment with no `users` rows: user 403 and anonymous 401 with neither the sentinel path nor the restricted snippet in the body; root control 200 with both projects' hits), `global_recent_tags_each_hit_with_its_workspace_and_project`, `recent_rejects_partial_scope_instead_of_global_fallback`, `recent_unknown_scope_is_404_and_does_not_leak_other_projects`; the shared `admin.rs` all-admin 403/401 route matrix includes `/admin/recent`; CLI `cli.rs` `recent_global_parses_and_conflicts_with_an_explicit_scope` | STRONG. Bite check: with the gate's operator test forced off (`authorize(Capability::Admin, false)`) the refusal test fails on the DB-user case (200 instead of 403) |
+| 3j | The managed-workstream web overview is root-only, bounded, read-only, and does not weaken checkout-local discovery | `ai-memory-web/src/routes/workstreams.rs` gates the cross-scope aggregate with the shared `require_admin` capability check and requests at most 101 rows; `ai-memory-store/src/workstream.rs` `list_operational` pages workstreams before joining current harness links, derives state only from run state/lease/exit and event count, and returns no cwd, repository/worktree fingerprint, lease owner, native session id, source id, metadata, segment path, or transcript content; the existing fingerprint-scoped `list_recent` path used by `resume` is unchanged | `ai-memory-web` `tests/suite/workstreams.rs` — anonymous and DB users are refused once operators are distinguished, root and single-user controls are admitted, hostile names render escaped, lifecycle state and attention ordering are visible, sensitive host/native/transcript sentinels are absent, and responses are `no-store`; `ai-memory-store` `operational_status_uses_only_trusted_lifecycle_fields` covers active, stale, expired, signal/nonzero exit, successful evidence, and empty rows | STRONG |
| 4 | Handoff single-claim / no-steal | `ai-memory-store/src/ops.rs` `accept_handoff_in_transaction` (metadata `state='open'` guard + atomic CAS; the receiver-session check, which requires the receiving session to exist in the claim's own workspace, project and agent kind and refuses with `InvalidState` before the handoff row is touched; an ended receiver is final EXCEPT for the agents where `AgentKind::reuses_session_id_after_end()` holds — Grok and Kimi Code, whose harnesses reuse the native session id across SessionEnd→resume, so accepting reopens `ended_at` only after the claim-once guard) | `multi_session.rs` `a_second_accept_cannot_steal_an_accepted_handoff`; `handoff_ownership.rs` `another_operator_cannot_claim_the_handoff`; `multi_session.rs` `handoff_accept_rejects_foreign_or_missing_receiver_session` (receivers from a sibling project, another workspace, a different agent kind, and a nonexistent session are each refused as `InvalidState` with the handoff left open and every `accepted_*` column NULL; the matching receiver claims it; the same receiver retrying and a second matching session get `false` with the first claim intact; fails with the `project_id` or `agent_kind` predicate, or the missing-session refusal, removed. The `workspace_id` predicate is redundant defence in depth: project ids are globally unique, so the cross-workspace receiver is already caught by `project_id`); `multi_session.rs` `accept_reopens_an_ended_receiver_session_but_keeps_claim_once` (Grok reopen + no-steal) and `accept_reopens_an_ended_kimi_receiver_but_keeps_every_guard` (Kimi Code resume claims and reopens `ended_at`; adversarial controls: an ended claude-code receiver stays refused, a kimi-code receiver in another project stays refused, and the already-claimed guard still refuses the resumed kimi session a second baton) | STRONG |
| 4b | Handoff owner-scoped recovery (`any_owner` admin gate) | `ai-memory-mcp/src/server.rs` `require_admin_capability` on `memory_handoff_accept`/`_cancel` `any_owner` | `handoff_admission.rs` — cancel gate + **accept gate** (adversarial: non-admin `any_owner` accept refused) | STRONG |
| 4c | Turn-checkpoint baton is owner+scope-bound | `ai-memory-store/src/ops.rs` `checkpoint_session_handoff` — reads the session's own `(workspace, project, owner_user)` from `sessions WHERE id=?1 AND ended_at IS NULL`, refuses on scope/owner mismatch, refreshes only that session's own `state='open'` baton (id preserved), returns `None` when the session already ended | `ops.rs` `checkpoint_session_handoff_refreshes_only_the_live_sessions_own_baton` (#865); `router.rs` `antigravity_parallel_conversations_keep_owned_batons_claimed_once` (Antigravity checkpoints of two operators each stamp their own owner and reach only that operator), `antigravity_stop_checkpoint_requires_a_finished_idle_root_unmanaged_stop` (a busy, cancelled, failed, reasonless, subagent, managed or non-Antigravity `Stop` publishes nothing; the finished `NO_TOOL_CALL`/`model_stop` controls do) | STRONG; `router.rs` `antigravity_lifecycle_only_turn_keeps_conversation_open_and_handoff_claimed` (a turn checkpoint never ends a session: one with nothing captured only completes its ingest key, so the handoff it claimed at start is never reopened for a second receiver) |
diff --git a/docs/usage.md b/docs/usage.md
index 1c42a906..d8070adf 100644
--- a/docs/usage.md
+++ b/docs/usage.md
@@ -655,7 +655,8 @@ command: ["serve", "--transport", "http", "--bind", "0.0.0.0:49374", "--enable-w
```
The web UI is read-only: project list, per-project page tree,
-breadcrumbs, rendered markdown, metadata, search, and a link graph.
+breadcrumbs, rendered markdown, metadata, search, a link graph, and an
+operator view of managed workstreams.
The header **Graph** link opens `/web/graph` (cross-project wikilinks);
each project page links to `/web/w/<ws>/<proj>/graph` (pages in that
project and the resolved links between them). Both are a server-rendered
@@ -671,7 +672,13 @@ namespace listing leave out a page whose `expires_at` TTL has passed, as search
does; its own URL still opens it. The search on a project page ranks with
the same hybrid ranker as `memory_query` for that project, and its "Explain
ranking" box shows each hit's stream ranks, RRF contributions, authority and rerank score, plus the per-stream timings.
-Root also gets `/web/health`: hook counters (429s included), the writer queue,
+Root also gets `/web/workstreams`: a bounded, attention-first overview of
+managed workstreams across projects. It derives `active`, `interrupted`,
+`completed`, and `empty` only from run leases, exit state, and imported
+event counts; it does not interpret transcript prose or expose checkout paths,
+repository fingerprints, lease owners, or native session ids. This operator
+aggregate does not change `ai-memory resume`, whose discovery remains scoped
+to the current checkout. Root also gets `/web/health`: hook counters (429s included), the writer queue,
the local spool and recovery journal, the consolidation queue, embedder and
provider state, and the failing checks with the command that fixes each. Each page links
to its history (`/web/w/<ws>/<proj>/h/<path>`): every stored version, newest