From 0bd648fa3978589937bfe2060a6349625b2a5e4a Mon Sep 17 00:00:00 2001 From: Attila Toth Date: Sat, 27 Jun 2026 17:50:06 +0200 Subject: [PATCH 1/7] feat: complete sub-workflow as-step support --- AGENTS.md | 9 +- .../versions/0007_sub_workflow_support.py | 47 +++ progi/db.py | 274 +++++++++++++++++- progi/mcp_server.py | 42 ++- progi/models.py | 17 ++ progi/prompts/workflow_playbook.md | 52 ++++ progi/prompts/workflow_skeleton.md | 63 +++- progi/web/routers/workflows.py | 15 + progi/web/static/app.js | 82 +++++- progi/web/static/style.css | 2 +- progi/web/templates/pages/workflows.html | 89 ++++++ progi/web/templates/partials/step_detail.html | 149 ++++++---- progi/web/templates/partials/task_detail.html | 155 +++++++--- 13 files changed, 869 insertions(+), 127 deletions(-) create mode 100644 progi/alembic/versions/0007_sub_workflow_support.py create mode 100644 progi/prompts/workflow_playbook.md diff --git a/AGENTS.md b/AGENTS.md index edd147a..9127e87 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -117,6 +117,10 @@ app.include_router(mypage.router) - `input_spec` / `output_spec` / `input_data` / `output` are `sa.JSON` columns — pass and receive plain dicts, no manual `json.dumps`. - Keep the web UI localhost-only (unauthenticated DB viewer). +### Keeping `x-data` lean + +Never put non-trivial logic (multi-line functions, getters with loops) directly in `x-data` attributes in templates. Instead, add the state and methods to the relevant Alpine component function in `app.js` and reference them from the template. Inline `x-data` is fine for simple boolean flags (`x-data="{ open: false }"`), but anything complex belongs in `app.js`. + ### Choosing between fetch + JS state vs. Alpine AJAX partials Use **plain `fetch` + Alpine reactive state** (in `app.js`) when: @@ -165,11 +169,6 @@ uv run python -m pytest # tests (do NOT use `uv run pytest` — a s uv run ruff check progi # lint ``` -## Run modes - -`progi` (MCP + web), `progi --no-web` (MCP only), `progi-web` (web only). -Config via env: `PROGI_DB_PATH`, `PROGI_WEB_HOST`, `PROGI_WEB_PORT`, `PROGI_NO_WEB`. - ## Git commit convention Commit messages must follow Conventional Commits: `feat:`, `fix:`, `docs:`, `chore:`, `refactor:`, `test:`, `ci:`. Use `feat!:` for breaking changes. Release Please reads these to generate the changelog and determine the version bump. diff --git a/progi/alembic/versions/0007_sub_workflow_support.py b/progi/alembic/versions/0007_sub_workflow_support.py new file mode 100644 index 0000000..84cc2a5 --- /dev/null +++ b/progi/alembic/versions/0007_sub_workflow_support.py @@ -0,0 +1,47 @@ +"""add sub-workflow support: workflow playbook, steps.sub_workflow_id, step_instances.sub_workflow_step_id + +Revision ID: 0007 +Revises: 0006 +Create Date: 2026-06-27 +""" + +from typing import Sequence, Union + +import sqlalchemy as sa +from alembic import op + +revision: str = "0007" +down_revision: Union[str, None] = "0006" +branch_labels: Union[str, Sequence[str], None] = None +depends_on: Union[str, Sequence[str], None] = None + + +def upgrade() -> None: + conn = op.get_bind() + + # workflows.playbook — skip if already exists (can happen from a partial prior run) + existing_wf_cols = {row[1] for row in conn.execute(sa.text("PRAGMA table_info(workflows)")).fetchall()} + if "playbook" not in existing_wf_cols: + with op.batch_alter_table("workflows") as batch_op: + batch_op.add_column(sa.Column("playbook", sa.Text(), nullable=True)) + + existing_step_cols = {row[1] for row in conn.execute(sa.text("PRAGMA table_info(steps)")).fetchall()} + if "sub_workflow_id" not in existing_step_cols: + with op.batch_alter_table("steps") as batch_op: + batch_op.add_column(sa.Column("sub_workflow_id", sa.Integer(), nullable=True)) + + existing_si_cols = {row[1] for row in conn.execute(sa.text("PRAGMA table_info(step_instances)")).fetchall()} + if "sub_workflow_step_id" not in existing_si_cols: + with op.batch_alter_table("step_instances") as batch_op: + batch_op.add_column(sa.Column("sub_workflow_step_id", sa.Integer(), nullable=True)) + + +def downgrade() -> None: + with op.batch_alter_table("step_instances") as batch_op: + batch_op.drop_column("sub_workflow_step_id") + + with op.batch_alter_table("steps") as batch_op: + batch_op.drop_column("sub_workflow_id") + + with op.batch_alter_table("workflows") as batch_op: + batch_op.drop_column("playbook") diff --git a/progi/db.py b/progi/db.py index 0d368a7..181580d 100644 --- a/progi/db.py +++ b/progi/db.py @@ -46,6 +46,10 @@ from .models import library_entries, playbooks, step_edges, step_instances, steps, tasks, workflows from .models import metadata # noqa: F401 — re-exported for test helpers +import logging + +_log = logging.getLogger(__name__) + # --------------------------------------------------------------------------- # Engine # --------------------------------------------------------------------------- @@ -254,6 +258,80 @@ def _resolve_next_step(conn, current_step_id: int, output: dict) -> dict[str, An ) +# --------------------------------------------------------------------------- +# Sub-workflow helpers +# --------------------------------------------------------------------------- + + +def _get_sub_workflow_ancestor_ids(conn, workflow_id: int) -> set[int]: + """Return the set of all workflow IDs that (transitively) use workflow_id as a sub-workflow. + + Used for circular reference detection: if workflow A is being added as a + sub-workflow step inside workflow B, we must ensure B is not already an + ancestor of A (which would create a cycle). + """ + ancestors: set[int] = set() + queue = [workflow_id] + while queue: + wid = queue.pop() + # Find all workflows that have a step whose sub_workflow_id == wid + rows = conn.execute( + sa.select(steps.c.workflow_id) + .where(steps.c.sub_workflow_id == wid) + .distinct() + ).scalars().all() + for parent_wf_id in rows: + if parent_wf_id not in ancestors: + ancestors.add(parent_wf_id) + queue.append(parent_wf_id) + return ancestors + + +def _check_no_circular_ref(conn, parent_workflow_id: int, sub_workflow_id: int) -> None: + """Raise ValueError if adding sub_workflow_id as a step in parent_workflow_id would create a cycle.""" + if sub_workflow_id == parent_workflow_id: + raise ValueError( + f"Workflow {parent_workflow_id} cannot reference itself as a sub-workflow." + ) + ancestors = _get_sub_workflow_ancestor_ids(conn, parent_workflow_id) + if sub_workflow_id in ancestors: + raise ValueError( + f"Adding workflow {sub_workflow_id} as a sub-workflow of {parent_workflow_id} " + f"would create a circular reference." + ) + + +def _expand_sub_workflow( + conn, + task_id: int, + sub_workflow_id: int, + sub_workflow_step_id: int, + input_data: dict, +) -> dict: + """Activate the entry step of a sub-workflow within the parent task. + + Creates a step_instance for the sub-workflow's entry step with + sub_workflow_step_id set, and updates the task's current_step_id. + Returns the activated step dict. + """ + entry_step = _start_step(conn, sub_workflow_id) + conn.execute( + sa.insert(step_instances).values( + task_id=task_id, + step_id=entry_step["id"], + status="active", + input_data=input_data, + sub_workflow_step_id=sub_workflow_step_id, + ) + ) + conn.execute( + sa.update(tasks) + .where(tasks.c.id == task_id) + .values(current_step_id=entry_step["id"], status="in_progress") + ) + return entry_step + + # --------------------------------------------------------------------------- # Workflow authoring # --------------------------------------------------------------------------- @@ -263,6 +341,7 @@ def save_workflow( cfg: Config, skeleton_json: dict[str, Any], playbooks_by_step: dict[str, str], + workflow_playbook: str | None = None, ) -> dict[str, Any]: """Persist a workflow, its steps, edges, and playbooks in one transaction. @@ -272,7 +351,7 @@ def save_workflow( "name": str, "description": str, "steps": [ - {"order": int, "name": str} + {"order": int, "name": str, "sub_workflow_id": int | null} ], "edges": [ # optional; auto-generated if absent {"from": str, "to": str, "condition": {...} | null, "priority": int} @@ -283,6 +362,8 @@ def save_workflow( ``order`` values (step[i] → step[i+1]). playbooks_by_step: mapping of step name → playbook markdown string. + workflow_playbook: markdown string for the workflow-level playbook (Purpose/Input/Output). + Required when the workflow may be used as a sub-workflow step. """ engine = get_engine(cfg) with engine.begin() as conn: @@ -290,18 +371,31 @@ def save_workflow( sa.insert(workflows).values( name=skeleton_json["name"], description=skeleton_json.get("description"), + playbook=workflow_playbook, ) ).inserted_primary_key[0] step_rows: list[dict[str, Any]] = [] _steps_list = skeleton_json.get("process") or skeleton_json.get("steps") or [] for step in sorted(_steps_list, key=lambda s: s["order"]): + sub_wf_id = step.get("sub_workflow_id") + if sub_wf_id is not None: + _check_no_circular_ref(conn, wf_id, sub_wf_id) + # Validate the sub-workflow has a playbook + sub_pb = conn.execute( + sa.select(workflows.c.playbook).where(workflows.c.id == sub_wf_id) + ).scalar() + if not sub_pb: + raise ValueError( + f"Workflow {sub_wf_id} has no playbook and cannot be used as a sub-workflow step." + ) step_id = conn.execute( sa.insert(steps).values( workflow_id=wf_id, order=step["order"], name=step["name"], requires_approval=step.get("requires_approval", False), + sub_workflow_id=sub_wf_id, ) ).inserted_primary_key[0] step_row = conn.execute(sa.select(steps).where(steps.c.id == step_id)).mappings().one() @@ -447,6 +541,7 @@ def add_step_to_workflow( order: int, playbook: str | None = None, requires_approval: bool = False, + sub_workflow_id: int | None = None, *, reorder: bool = True, ) -> dict[str, Any]: @@ -472,6 +567,16 @@ def add_step_to_workflow( if wf is None: raise ValueError(f"Workflow {workflow_id} not found.") + if sub_workflow_id is not None: + _check_no_circular_ref(conn, workflow_id, sub_workflow_id) + sub_pb = conn.execute( + sa.select(workflows.c.playbook).where(workflows.c.id == sub_workflow_id) + ).scalar() + if not sub_pb: + raise ValueError( + f"Workflow {sub_workflow_id} has no playbook and cannot be used as a sub-workflow step." + ) + if reorder: conn.execute( sa.update(steps) @@ -485,6 +590,7 @@ def add_step_to_workflow( order=order, name=name, requires_approval=requires_approval, + sub_workflow_id=sub_workflow_id, ) ).inserted_primary_key[0] @@ -640,6 +746,19 @@ def update_workflow(cfg: Config, workflow_id: int, name: str) -> dict[str, Any]: return dict(row) +def update_workflow_playbook(cfg: Config, workflow_id: int, playbook: str) -> dict[str, Any]: + """Set or replace the workflow-level playbook. Returns the updated workflow record.""" + engine = get_engine(cfg) + with engine.begin() as conn: + result = conn.execute( + sa.update(workflows).where(workflows.c.id == workflow_id).values(playbook=playbook) + ) + if result.rowcount == 0: + raise ValueError(f"Workflow {workflow_id} not found.") + row = conn.execute(sa.select(workflows).where(workflows.c.id == workflow_id)).mappings().one() + return dict(row) + + def update_step( cfg: Config, step_id: int, @@ -748,6 +867,7 @@ def _activate_step( task_workflow_id: int, step: dict[str, Any], input_data: dict[str, Any], + sub_workflow_step_id: int | None = None, ) -> None: """Create a step_instance for ``step`` and mark it active.""" conn.execute( @@ -756,6 +876,7 @@ def _activate_step( step_id=step["id"], status="active", input_data=input_data, + sub_workflow_step_id=sub_workflow_step_id, ) ) conn.execute( @@ -786,7 +907,10 @@ def start_task(cfg: Config, task_id: int) -> dict[str, Any]: first_step = _start_step(conn, task["workflow_id"]) input_data = {"value": task["description"] or ""} - _activate_step(conn, task_id, task["workflow_id"], first_step, input_data) + if first_step.get("sub_workflow_id"): + _expand_sub_workflow(conn, task_id, first_step["sub_workflow_id"], first_step["id"], input_data) + else: + _activate_step(conn, task_id, task["workflow_id"], first_step, input_data) updated = conn.execute(sa.select(tasks).where(tasks.c.id == task_id)).mappings().one() return dict(updated) @@ -871,6 +995,18 @@ def start_or_continue_task(cfg: Config, task_id: int) -> dict[str, Any]: sa.select(playbooks.c.content).where(playbooks.c.step_id == current_step["id"]) ).first() + # Check if current step is a sub-workflow step (has sub_workflow_id but no own playbook) + sub_wf_id = current_step.get("sub_workflow_id") + sub_wf_playbook: str | None = None + sub_wf_name: str | None = None + if sub_wf_id: + sub_wf_row = conn.execute( + sa.select(workflows.c.name, workflows.c.playbook).where(workflows.c.id == sub_wf_id) + ).mappings().one_or_none() + if sub_wf_row: + sub_wf_name = sub_wf_row["name"] + sub_wf_playbook = sub_wf_row["playbook"] + result: dict[str, Any] = { "task": { "id": task["id"], @@ -885,6 +1021,26 @@ def start_or_continue_task(cfg: Config, task_id: int) -> dict[str, Any]: "requires_approval": bool(current_step["requires_approval"]), }, } + + if sub_wf_id: + result["sub_workflow"] = { + "workflow_id": sub_wf_id, + "workflow_name": sub_wf_name, + "playbook": sub_wf_playbook, + } + result["instruction"] = ( + f"This step is a sub-workflow step. You must spin up a fresh sub-agent to handle it.\n\n" + f"Sub-workflow: \"{sub_wf_name}\" (workflow_id: {sub_wf_id})\n\n" + f"Sub-workflow playbook:\n{sub_wf_playbook}\n\n" + f"Instructions:\n" + f"1. Launch a new sub-agent (e.g. via the Task tool).\n" + f"2. Pass it: task_id={task_id}, and instruct it to call start_or_continue_task({task_id}) " + f"to begin working through the sub-workflow steps.\n" + f"3. The sub-agent must call finish_step after each sub-workflow step completes.\n" + f"4. When the sub-agent signals it is done (all sub-workflow steps complete), " + f"call finish_step({task_id}, output=) to advance the parent task." + ) + if task.get("progress_notes"): result["progress_notes"] = task["progress_notes"] return result @@ -965,19 +1121,64 @@ def submit_output( next_step = _resolve_next_step(conn, current_step["id"], output) if next_step is None: - # Terminal step — task is done - conn.execute( - sa.update(tasks) - .where(tasks.c.id == task_id) - .values(status="done", current_step_id=None, progress_notes=None) - ) - return {"status": "done"} + # Check if this was a sub-workflow step — if so, continue in parent + parent_step_id = current_si.get("sub_workflow_step_id") + if parent_step_id: + # Sub-workflow is done — resolve the next step in the parent workflow + next_step = _resolve_next_step(conn, parent_step_id, output) + if next_step is None: + # Parent workflow is also terminal + conn.execute( + sa.update(tasks) + .where(tasks.c.id == task_id) + .values(status="done", current_step_id=None, progress_notes=None) + ) + return {"status": "done"} + # Continue in parent workflow — fall through to the next-step activation below + # (next_step is already set) + else: + # Terminal step at top level — task is done + conn.execute( + sa.update(tasks) + .where(tasks.c.id == task_id) + .values(status="done", current_step_id=None, progress_notes=None) + ) + return {"status": "done"} # Pass the current step's output as the next step's input next_input_data = { "value": output if isinstance(output, str) else output.get("value", output), } + # Clear progress notes on advance + conn.execute( + sa.update(tasks).where(tasks.c.id == task_id).values(progress_notes=None) + ) + + # If the next step is a sub-workflow step, expand it + next_sub_wf_id = next_step.get("sub_workflow_id") + if next_sub_wf_id: + sub_wf_row = conn.execute( + sa.select(workflows.c.name, workflows.c.playbook).where(workflows.c.id == next_sub_wf_id) + ).mappings().one() + _expand_sub_workflow(conn, task_id, next_sub_wf_id, next_step["id"], next_input_data) + return { + "status": "in_progress", + "next_step": { + "name": next_step["name"], + "input_data": next_input_data, + "is_sub_workflow": True, + "sub_workflow": { + "workflow_id": next_sub_wf_id, + "workflow_name": sub_wf_row["name"], + "playbook": sub_wf_row["playbook"], + }, + }, + } + + # Propagate sub_workflow_step_id if we're still inside a sub-workflow + inherited_sub_wf_step_id = current_si.get("sub_workflow_step_id") + # Activate next step (create instance + update task pointer) conn.execute( sa.insert(step_instances).values( @@ -985,12 +1186,13 @@ def submit_output( step_id=next_step["id"], status="active", input_data=next_input_data, + sub_workflow_step_id=inherited_sub_wf_step_id, ) ) conn.execute( sa.update(tasks) .where(tasks.c.id == task_id) - .values(current_step_id=next_step["id"], progress_notes=None) + .values(current_step_id=next_step["id"]) ) pb = conn.execute( @@ -1055,16 +1257,29 @@ def get_workflow_with_playbooks(cfg: Config, workflow_id: int) -> dict[str, Any] playbook_by_step = {pb["step_id"]: pb["content"] for pb in pb_rows} + # Fetch sub-workflow names for steps that reference them + sub_wf_ids = [s["sub_workflow_id"] for s in step_rows if s.get("sub_workflow_id")] + sub_wf_names: dict[int, str] = {} + if sub_wf_ids: + with engine.connect() as conn2: + name_rows = conn2.execute( + sa.select(workflows.c.id, workflows.c.name).where(workflows.c.id.in_(sub_wf_ids)) + ).mappings().all() + sub_wf_names = {r["id"]: r["name"] for r in name_rows} + return { "id": wf["id"], "name": wf["name"], "description": wf["description"], + "playbook": wf["playbook"], "steps": [ { "id": s["id"], "order": s["order"], "name": s["name"], "playbook": playbook_by_step.get(s["id"]), + "sub_workflow_id": s.get("sub_workflow_id"), + "sub_workflow_name": sub_wf_names.get(s["sub_workflow_id"]) if s.get("sub_workflow_id") else None, } for s in step_rows ], @@ -1188,6 +1403,19 @@ def get_step_detail(cfg: Config, workflow_id: int, step_id: int) -> dict[str, An if e["from_step_id"] == step_id ] + sub_wf_name: str | None = None + sub_wf_playbook: str | None = None + if step["sub_workflow_id"]: + with engine.connect() as conn2: + row = conn2.execute( + sa.select(workflows.c.name, workflows.c.playbook).where( + workflows.c.id == step["sub_workflow_id"] + ) + ).mappings().one_or_none() + if row: + sub_wf_name = row["name"] + sub_wf_playbook = row["playbook"] + return { "workflow": {"id": wf["id"], "name": wf["name"]}, "step": { @@ -1196,6 +1424,9 @@ def get_step_detail(cfg: Config, workflow_id: int, step_id: int) -> dict[str, An "name": step["name"], "playbook": pb, "library_entry_id": step["library_entry_id"], + "sub_workflow_id": step["sub_workflow_id"], + "sub_workflow_name": sub_wf_name, + "sub_workflow_playbook": sub_wf_playbook, }, "prev_steps": prev_steps, "next_steps": next_steps, @@ -1237,24 +1468,37 @@ def get_task_detail(cfg: Config, task_id: int) -> dict[str, Any]: sa.select(steps.c.name).where(steps.c.id == task["current_step_id"]) ).scalar() - # Step-instance history (most recent first via id desc) + # Alias for the sub-workflow parent step name lookup + parent_steps = steps.alias("parent_steps") + parent_wf = workflows.alias("parent_wf") + + # Step-instance history with sub-workflow provenance si_rows = ( conn.execute( sa.select( step_instances.c.id, step_instances.c.step_id, + step_instances.c.sub_workflow_step_id, step_instances.c.status, step_instances.c.input_data, step_instances.c.output, step_instances.c.completed_at, sa.func.coalesce(steps.c.name, "Adhoc step").label("step_name"), + # Name of the parent step that triggered sub-workflow expansion + parent_steps.c.name.label("sub_workflow_step_name"), + # ID and name of the sub-workflow workflow itself + parent_wf.c.id.label("sub_workflow_id"), + parent_wf.c.name.label("sub_workflow_name"), ) .select_from( - step_instances.outerjoin(steps, steps.c.id == step_instances.c.step_id) + step_instances + .outerjoin(steps, steps.c.id == step_instances.c.step_id) + .outerjoin(parent_steps, parent_steps.c.id == step_instances.c.sub_workflow_step_id) + .outerjoin(parent_wf, parent_wf.c.id == parent_steps.c.sub_workflow_id) ) .where(step_instances.c.task_id == task_id) .order_by( - # Active instance floats to top, then newest first + # Active instance floats to top, then chronological by id sa.case((step_instances.c.status == "active", 0), else_=1), step_instances.c.id.desc(), ) @@ -1281,6 +1525,10 @@ def get_task_detail(cfg: Config, task_id: int) -> dict[str, Any]: "id": si["id"], "step_id": si["step_id"], "step_name": si["step_name"], + "sub_workflow_step_id": si["sub_workflow_step_id"], + "sub_workflow_step_name": si["sub_workflow_step_name"], + "sub_workflow_id": si["sub_workflow_id"], + "sub_workflow_name": si["sub_workflow_name"], "status": si["status"], "input_data": si["input_data"], "output": si["output"], diff --git a/progi/mcp_server.py b/progi/mcp_server.py index 04912da..a43a96a 100644 --- a/progi/mcp_server.py +++ b/progi/mcp_server.py @@ -40,6 +40,7 @@ def _monitoring_url(path: str = "") -> str: _PROMPTS_DIR = Path(__file__).parent / "prompts" _WORKFLOW_SKELETON_MD = _PROMPTS_DIR / "workflow_skeleton.md" +_WORKFLOW_PLAYBOOK_MD = _PROMPTS_DIR / "workflow_playbook.md" # --------------------------------------------------------------------------- @@ -203,20 +204,25 @@ def get_process_skeleton_prompt() -> str: @mcp.tool(title="Save Workflow") -def save_workflow(skeleton: dict, playbooks_by_step: dict) -> dict: +def save_workflow(skeleton: dict, playbooks_by_step: dict, workflow_playbook: str = "") -> dict: """Persist a new workflow, its steps, and playbooks. Intended call sequence: 1. get_process_skeleton_prompt → work with user to produce and approve skeleton JSON. - 2. Generate all step playbooks silently using the Pass 2 instructions in that prompt. - 3. Call save_workflow(skeleton, playbooks_by_step) with all playbooks collected. + 2. Generate all step playbooks and the workflow playbook silently using the Pass 2 + instructions in that prompt. + 3. Call save_workflow(skeleton, playbooks_by_step, workflow_playbook) with everything. skeleton: the workflow skeleton dict (name, description, steps[]). + Steps may include "sub_workflow_id": to embed another workflow as a step. playbooks_by_step: mapping of step name → playbook markdown string. + Omit entries for sub-workflow steps (they have no playbook). + workflow_playbook: the workflow-level playbook markdown (Purpose / Input / Output sections). + Required for workflows that may be used as sub-workflow steps. After saving, always show the user the monitoring_url from the response. """ - result = db.save_workflow(_cfg, skeleton, playbooks_by_step) + result = db.save_workflow(_cfg, skeleton, playbooks_by_step, workflow_playbook or None) workflow_id = result.pop("id", None) for step in result.get("steps", []): step.pop("id", None) @@ -255,6 +261,7 @@ def add_step( playbook: str = "", requires_approval: bool = False, reorder: bool = True, + sub_workflow_id: int = 0, ) -> dict: """Insert a new step into an existing workflow. @@ -272,6 +279,10 @@ def add_step( 4. The function rewires edges so the new step is connected to its immediate predecessor and successor by order. + sub_workflow_id: if non-zero, this step embeds another workflow. The step name + defaults to the referenced workflow's name. The referenced workflow + must have a playbook defined. Mutually exclusive with ``playbook``. + Returns the newly created step dict. """ return db.add_step_to_workflow( @@ -281,10 +292,33 @@ def add_step( order=order, playbook=playbook or None, requires_approval=requires_approval, + sub_workflow_id=sub_workflow_id or None, reorder=reorder, ) +@mcp.tool(title="Edit Workflow Playbook") +def edit_workflow_playbook(workflow_id: int, playbook: str = "") -> dict: + """Set or replace the workflow-level playbook (Purpose / Input / Output). + + The workflow playbook is required for a workflow to be usable as a + sub-workflow step inside another workflow. + + 1. Call get_workflow(workflow_id) to read the current state. + 2. If the user seems unsure about the structure or content, omit `playbook` + (or pass an empty string) — this returns the authoring guide so you can + help them draft it before saving. + 3. Once the content is ready, show the user a preview and get confirmation + if changing an existing playbook. + 4. Call edit_workflow_playbook again with the final markdown content. + + Returns the authoring guide (when playbook is empty) or the updated workflow record. + """ + if not playbook: + return {"authoring_guide": _WORKFLOW_PLAYBOOK_MD.read_text()} + return db.update_workflow_playbook(_cfg, workflow_id, playbook) + + @mcp.tool(title="Edit Step") def edit_step( step_id: int, diff --git a/progi/models.py b/progi/models.py index adcdd33..1716867 100644 --- a/progi/models.py +++ b/progi/models.py @@ -20,6 +20,7 @@ sa.Column("id", sa.Integer, primary_key=True, autoincrement=True), sa.Column("name", sa.String(255), nullable=False), sa.Column("description", sa.Text), + sa.Column("playbook", sa.Text, nullable=True), sa.Column("created_at", sa.DateTime, server_default=sa.func.now(), nullable=False), ) @@ -45,6 +46,14 @@ sa.ForeignKey("library_entries.id", ondelete="SET NULL"), nullable=True, ), + # When set, this step runs an entire sub-workflow instead of a playbook. + # ON DELETE RESTRICT prevents deleting a workflow that is used as a sub-workflow step. + sa.Column( + "sub_workflow_id", + sa.Integer, + sa.ForeignKey("workflows.id", ondelete="RESTRICT"), + nullable=True, + ), ) step_edges = sa.Table( @@ -135,4 +144,12 @@ sa.Column("input_data", sa.JSON), sa.Column("output", sa.JSON), sa.Column("completed_at", sa.DateTime), + # When set, this instance was created as part of a sub-workflow expansion. + # Points to the step in the parent workflow that triggered the expansion. + sa.Column( + "sub_workflow_step_id", + sa.Integer, + sa.ForeignKey("steps.id"), + nullable=True, + ), ) diff --git a/progi/prompts/workflow_playbook.md b/progi/prompts/workflow_playbook.md new file mode 100644 index 0000000..608b2ee --- /dev/null +++ b/progi/prompts/workflow_playbook.md @@ -0,0 +1,52 @@ +# Workflow Playbook + +A workflow playbook is a short document that describes what a workflow does, +what it needs to start, and what it produces when done. It is **authored by the +user** (via the MCP tool `edit_workflow_playbook`) and is stored alongside the +workflow definition. + +The workflow playbook serves two roles: + +1. **Documentation** — visible on the workflow detail page so humans understand + the workflow's purpose at a glance. +2. **Sub-workflow context** — when this workflow is embedded as a step inside + another workflow, the executing sub-agent reads this playbook to orient itself + before working through the steps. + +## Structure + +Every workflow playbook must contain exactly these three `##` sections, in this +order. No `#` (h1) heading. Subsections (`###`, `####`) are allowed within each +section. + +### `## Purpose` +One sentence describing what this workflow accomplishes. Be concrete — "Produces +a publication-ready blog post from a topic idea" is better than "Handles blog +post creation". Do not list or summarize the steps. + +### `## Input` +What the first step receives via `input_data`. Describe the expected format and +fields — for example, "A plain-text topic or title for the blog post", or "A +JSON object with fields `repo_url` and `branch_name`". Focus on the data +contract, not on what the step does with it. + +### `## Output` +What the final step writes to its output. Describe the format and fields the +consuming workflow (or human) can expect — for example, "A file path to the +published HTML article", or "A JSON object with `status` and `report_url` +fields". Focus on the data contract, not on how it was produced. + +## Example + +```markdown +## Purpose +Produces a publication-ready blog post from a topic idea, covering research, +drafting, editing, and publishing. + +## Input +A plain-text topic or working title for the blog post (e.g. "The future of +edge computing"). The first step will ask the user for clarification if needed. + +## Output +The public URL of the published post as `{"value": ""}`. +``` diff --git a/progi/prompts/workflow_skeleton.md b/progi/prompts/workflow_skeleton.md index 5ecb1da..cec3e7e 100644 --- a/progi/prompts/workflow_skeleton.md +++ b/progi/prompts/workflow_skeleton.md @@ -42,6 +42,33 @@ Return exactly one JSON object of this shape: } ``` +### Sub-workflow steps + +A step can embed an entire existing workflow instead of having its own playbook. +Use this when a well-defined workflow already exists and should run as a unit +inside a larger workflow. In the skeleton, set `"sub_workflow_id"` to the +referenced workflow's integer id, and omit that step from `playbooks_by_step`: + +```json +{ + "name": "Content Pipeline", + "description": "Full pipeline: brief → blog post → social promotion.", + "steps": [ + {"order": 1, "name": "Write Brief"}, + {"order": 2, "name": "Blog Post", "sub_workflow_id": 7}, + {"order": 3, "name": "Promote on Social"} + ], + "edges": [ + {"from": "Write Brief", "to": "Blog Post", "condition": null, "priority": 0}, + {"from": "Blog Post", "to": "Promote on Social", "condition": null, "priority": 0} + ] +} +``` + +The referenced workflow must have a workflow playbook defined (call +`list_workflows()` to check — `playbook` will be non-null). If it does not, +ask the user to add one via `edit_workflow_playbook` before proceeding. + For a branching workflow, the edges express the routing logic: ```json @@ -111,9 +138,10 @@ For a branching workflow, the edges express the routing logic: ## After the user approves the skeleton -Once the user approves the skeleton JSON, generate all step playbooks silently -(no user interaction needed for this — the Pass 2 instructions are below). -Then call `save_workflow` with the skeleton and the completed playbooks map. +Once the user approves the skeleton JSON, generate the workflow playbook and all +step playbooks silently (no user interaction needed for this — the Pass 2 +instructions are below). Then call `save_workflow` with the skeleton, the +completed playbooks map, and the workflow playbook. **Do not output the skeleton JSON to the user.** The JSON is an internal artifact for tool calls only. Acknowledge approval briefly, generate playbooks @@ -123,15 +151,32 @@ silently, then call `save_workflow`. # Pass 2: Playbook Authoring -You are authoring the **playbook** for each step of the workflow you just -designed. A playbook is one self-contained markdown document that the AI -**agent** (the assistant inside the user's harness — Claude Code, Cursor, etc.) -will follow to perform that step at runtime. +You are authoring playbooks for the workflow you just designed. There are two +kinds of playbook to produce: + +**1. Workflow playbook** — a short document describing the workflow as a whole. +Pass this as the `workflow_playbook` argument to `save_workflow`. Required +structure (three `##` sections, no `#` h1): + +```markdown +## Purpose +One or two sentences describing what this workflow accomplishes. -For each step in the skeleton, write a playbook. Collect all playbooks into the -`playbooks_by_step` map (step name → markdown string) and pass them to +## Input +What data or context the workflow needs to start (format of `input_data.value`). + +## Output +What the workflow produces when all steps complete (format + fields). +``` + +**2. Step playbooks** — one per regular step. Sub-workflow steps have no +playbook (omit them from `playbooks_by_step`). Collect all step playbooks into +the `playbooks_by_step` map (step name → markdown string) and pass them to `save_workflow`. +Call `save_workflow(skeleton, playbooks_by_step, workflow_playbook)` with all +three arguments once all playbooks are ready. + ## Playbook structure Every playbook must contain exactly these four `##` sections, in this order. No `#` (h1) heading. Subsections (`###`, `####`, etc.) are allowed within each section as needed. diff --git a/progi/web/routers/workflows.py b/progi/web/routers/workflows.py index 3d42442..e598bfc 100644 --- a/progi/web/routers/workflows.py +++ b/progi/web/routers/workflows.py @@ -122,6 +122,21 @@ def delete_workflow(workflow_id: int, request: Request): return Response(status_code=204) +@router.patch("/workflows/{workflow_id}/playbook", status_code=204) +def update_workflow_playbook( + workflow_id: int, + request: Request, + payload: dict = Body(...), +): + cfg = request.app.state.cfg + playbook = payload.get("playbook", "") + try: + db.update_workflow_playbook(cfg, workflow_id, playbook) + except ValueError as exc: + raise HTTPException(status_code=404, detail=str(exc)) + return Response(status_code=204) + + @router.patch("/workflows/{workflow_id}/steps/{step_id}") def update_step( workflow_id: int, diff --git a/progi/web/static/app.js b/progi/web/static/app.js index 2ce8b5d..25624c7 100644 --- a/progi/web/static/app.js +++ b/progi/web/static/app.js @@ -50,6 +50,34 @@ function taskDetail() { this.stepInstances = data.stepInstances; }, + get items() { + const reversed = [...this.stepInstances].reverse(); + const result = []; + const seenSubWf = new Set(); + for (const si of reversed) { + if (!si.sub_workflow_step_id) { + result.push({ type: 'step', si }); + } else { + const key = si.sub_workflow_step_id; + if (!seenSubWf.has(key)) { + seenSubWf.add(key); + const subs = this.stepInstances.filter(s => s.sub_workflow_step_id === key); + let status = 'complete'; + if (subs.some(s => s.status === 'active')) status = 'active'; + else if (!subs.every(s => s.status === 'complete')) status = 'pending'; + result.push({ + type: 'subwf', + key, + name: si.sub_workflow_name || 'Sub-workflow', + steps: subs, + status, + }); + } + } + } + return result.reverse(); + }, + async deleteTask(taskId) { if (!confirm('Delete this task permanently? This cannot be undone.')) return; const resp = await fetch(`/tasks/${taskId}`, { method: 'DELETE' }); @@ -67,6 +95,7 @@ function workflowEditor() { activeId: null, activeWorkflow: null, modalOpen: false, + playbookModalOpen: false, openMenuId: null, renamingId: null, renameValue: '', @@ -121,10 +150,32 @@ function workflowEditor() { history.replaceState(null, '', `/workflows/${this.activeId}`); }, + closePlaybookModal() { + this.playbookModalOpen = false; + this.playbookEdit = { editing: false, draft: '' }; + }, + + playbookEdit: { editing: false, draft: '' }, + + startPlaybookEdit() { + this.playbookEdit.draft = this.activeWorkflow.playbook || ''; + this.playbookEdit.editing = true; + }, + + cancelPlaybookEdit() { + this.playbookEdit.editing = false; + }, + + async savePlaybookEdit() { + const ok = await this.saveWorkflowPlaybook(this.activeId, this.playbookEdit.draft); + if (ok) this.playbookEdit.editing = false; + }, + async selectWorkflow(id) { if (this.activeId === id) return; this.activeId = id; this.modalOpen = false; + this.playbookModalOpen = false; history.pushState(null, '', `/workflows/${id}`); const resp = await fetch(`/workflows/${id}/graph`); @@ -182,6 +233,18 @@ function workflowEditor() { this.cancelRename(); }, + async saveWorkflowPlaybook(id, playbook) { + const resp = await fetch(`/workflows/${id}/playbook`, { + method: 'PATCH', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ playbook }), + }); + if (resp.ok && this.activeWorkflow && this.activeWorkflow.id === id) { + this.activeWorkflow = { ...this.activeWorkflow, playbook }; + } + return resp.ok; + }, + async copyWorkflow(id) { const resp = await fetch(`/workflows/${id}/export`); if (!resp.ok) return; @@ -311,13 +374,27 @@ function workflowEditor() { // Build Mermaid flowchart definition (top-to-bottom) let def = 'flowchart TB\n'; + // Style sub-workflow nodes with a distinct accent colour + def += ' classDef subwf fill:#1a3a4a,stroke:#00a3ff,stroke-width:2px,color:#e0f4ff\n'; + // Add nodes — sanitize names for Mermaid IDs + // Sub-workflow steps use [[label]] (subroutine shape) to distinguish them visually + const subwfNodeIds = []; steps.forEach(s => { const nodeId = `step_${s.id}`; const label = escapeHtml(s.name); - def += ` ${nodeId}["${label}"]\n`; + if (s.sub_workflow_id) { + def += ` ${nodeId}[["⤵ ${label}"]]\n`; + subwfNodeIds.push(nodeId); + } else { + def += ` ${nodeId}["${label}"]\n`; + } }); + if (subwfNodeIds.length > 0) { + def += ` class ${subwfNodeIds.join(',')} subwf\n`; + } + // Add edges, grouping parallel forks into Mermaid's `A --> B & C` syntax if (edges.length > 0) { // Group edges by from_step_id to detect parallel forks @@ -420,6 +497,9 @@ function stepDetail() { prevSteps: [], nextSteps: [], libraryEntryId: null, + subWorkflowId: null, + subWorkflowName: null, + subWorkflowPlaybook: '', editing: { playbook: false }, drafts: { playbook: '' }, errors: {}, diff --git a/progi/web/static/style.css b/progi/web/static/style.css index 391e9af..09cb7a1 100644 --- a/progi/web/static/style.css +++ b/progi/web/static/style.css @@ -1,2 +1,2 @@ /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:"Inter","Geist",ui-sans-serif,system-ui,sans-serif;--font-mono:"Geist Mono",ui-monospace,"Cascadia Code",monospace;--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-900:oklch(39.3% .095 152.535);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-xl:36rem;--container-2xl:42rem;--container-5xl:64rem;--container-7xl:80rem;--text-xs:.875rem;--text-xs--line-height:calc(1/.75);--text-sm:1rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--tracking-widest:.1em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-surface-0:#000;--color-surface-1:#0a0a0a;--color-surface-2:#111;--color-surface-3:#1a1a1a;--color-border:#ffffff14;--color-border-hover:#ffffff24;--color-text-primary:#fafafa;--color-text-secondary:#a1a1aa;--color-text-muted:#71717a;--color-text-faint:#52525b;--color-text-ghost:#3f3f46;--color-accent:#00a3ff;--color-accent-dim:#00a3ff26}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}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;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1\.5{top:calc(var(--spacing)*1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.right-1{right:calc(var(--spacing)*1)}.right-1\.5{right:calc(var(--spacing)*1.5)}.right-2{right:calc(var(--spacing)*2)}.left-full{left:100%}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\.5{margin-top:calc(var(--spacing)*1.5)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.size-1\.5{width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\.5{width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.h-6{height:calc(var(--spacing)*6)}.h-12{height:calc(var(--spacing)*12)}.max-h-64{max-height:calc(var(--spacing)*64)}.max-h-\[80vh\]{max-height:80vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-24{min-height:calc(var(--spacing)*24)}.min-h-\[calc\(100vh-2\.75rem\)\]{min-height:calc(100vh - 2.75rem)}.min-h-screen{min-height:100vh}.w-6{width:calc(var(--spacing)*6)}.w-12{width:calc(var(--spacing)*12)}.w-56{width:calc(var(--spacing)*56)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-none{max-width:none}.max-w-xl{max-width:var(--container-xl)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\[120px\]{min-width:120px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-y-1{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.rotate-180{rotate:180deg}.cursor-pointer{cursor:pointer}.resize-y{resize:vertical}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-white\/8>:not(:last-child)){border-color:#ffffff14}@supports (color:color-mix(in lab, red, red)){:where(.divide-white\/8>:not(:last-child)){border-color:color-mix(in oklab,var(--color-white)8%,transparent)}}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-accent{border-color:var(--color-accent);border-color:var(--color-accent)}.border-accent\/40{border-color:#00a3ff66}@supports (color:color-mix(in lab, red, red)){.border-accent\/40{border-color:color-mix(in oklab,var(--color-accent)40%,transparent)}}.border-red-900\/50{border-color:#82181a80}@supports (color:color-mix(in lab, red, red)){.border-red-900\/50{border-color:color-mix(in oklab,var(--color-red-900)50%,transparent)}}.border-subtle{border-color:var(--color-border)}.bg-accent{background-color:var(--color-accent);background-color:var(--color-accent)}.bg-accent-dim{background-color:var(--color-accent-dim);background-color:var(--color-accent-dim)}.bg-accent\/20{background-color:#00a3ff33}@supports (color:color-mix(in lab, red, red)){.bg-accent\/20{background-color:color-mix(in oklab,var(--color-accent)20%,transparent)}}.bg-black\/60{background-color:#0009}@supports (color:color-mix(in lab, red, red)){.bg-black\/60{background-color:color-mix(in oklab,var(--color-black)60%,transparent)}}.bg-green-500{background-color:var(--color-green-500)}.bg-green-900\/40{background-color:#0d542b66}@supports (color:color-mix(in lab, red, red)){.bg-green-900\/40{background-color:color-mix(in oklab,var(--color-green-900)40%,transparent)}}.bg-surface-0{background-color:var(--color-surface-0);background-color:var(--color-surface-0)}.bg-surface-0\/80{background-color:#000c}@supports (color:color-mix(in lab, red, red)){.bg-surface-0\/80{background-color:color-mix(in oklab,var(--color-surface-0)80%,transparent)}}.bg-surface-1{background-color:var(--color-surface-1);background-color:var(--color-surface-1)}.bg-surface-2{background-color:var(--color-surface-2);background-color:var(--color-surface-2)}.bg-surface-3{background-color:var(--color-surface-3);background-color:var(--color-surface-3)}.p-0\.5{padding:calc(var(--spacing)*.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-12{padding-block:calc(var(--spacing)*12)}.py-16{padding-block:calc(var(--spacing)*16)}.py-24{padding-block:calc(var(--spacing)*24)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-5{padding-top:calc(var(--spacing)*5)}.pr-0{padding-right:calc(var(--spacing)*0)}.pr-7{padding-right:calc(var(--spacing)*7)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-2\.5{padding-left:calc(var(--spacing)*2.5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent{color:var(--color-accent)}.text-faint{color:var(--color-text-faint)}.text-ghost{color:var(--color-text-ghost)}.text-green-400{color:var(--color-green-400)}.text-muted{color:var(--color-text-muted)}.text-primary{color:var(--color-text-primary)}.text-red-400{color:var(--color-red-400)}.text-secondary{color:var(--color-text-secondary)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.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,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\:bg-accent:is(:where(.group):hover *){background-color:var(--color-accent);background-color:var(--color-accent)}.group-hover\:text-faint:is(:where(.group):hover *){color:var(--color-text-faint)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\:text-ghost::placeholder{color:var(--color-text-ghost)}@media (hover:hover){.hover\:border-subtle-hover:hover{border-color:var(--color-border-hover)}.hover\:bg-accent\/30:hover{background-color:#00a3ff4d}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/30:hover{background-color:color-mix(in oklab,var(--color-accent)30%,transparent)}}.hover\:bg-red-950\/40:hover{background-color:#46080966}@supports (color:color-mix(in lab, red, red)){.hover\:bg-red-950\/40:hover{background-color:color-mix(in oklab,var(--color-red-950)40%,transparent)}}.hover\:bg-surface-1:hover{background-color:var(--color-surface-1);background-color:var(--color-surface-1)}.hover\:bg-surface-2:hover{background-color:var(--color-surface-2);background-color:var(--color-surface-2)}.hover\:bg-surface-3:hover{background-color:var(--color-surface-3);background-color:var(--color-surface-3)}.hover\:text-muted:hover{color:var(--color-text-muted)}.hover\:text-primary:hover{color:var(--color-text-primary)}.hover\:text-red-300:hover{color:var(--color-red-300)}.hover\:text-secondary:hover{color:var(--color-text-secondary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-accent:focus{border-color:var(--color-accent);border-color:var(--color-accent)}.focus\:border-subtle-hover:focus{border-color:var(--color-border-hover)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}@media (min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}}@media (min-width:64rem){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}}[x-cloak]{display:none!important}.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{color:var(--color-text-primary);margin-top:1.25em;margin-bottom:.5em;font-weight:600;line-height:1.25}.prose h1{font-size:1.25em}.prose h2{font-size:1.1em}.prose h3{font-size:1em}.prose p{color:var(--color-text-secondary);margin-top:.5em;margin-bottom:.5em}.prose ul,.prose ol{color:var(--color-text-secondary);margin-top:.5em;margin-bottom:.5em;padding-left:1.5em}.prose ul{list-style-type:disc}.prose ol{list-style-type:decimal}.prose li{margin-top:.25em;margin-bottom:.25em}.prose strong{color:var(--color-text-primary);font-weight:600}.prose em{font-style:italic}.prose code{font-family:var(--font-mono);background-color:var(--color-surface-3);border-radius:.25em;padding:.1em .3em;font-size:.85em}.prose pre{background-color:var(--color-surface-3);border-radius:.5em;margin-top:.75em;margin-bottom:.75em;padding:.75em 1em;overflow-x:auto}.prose pre code{background:0 0;padding:0}.prose blockquote{border-left:3px solid var(--color-border);color:var(--color-text-muted);margin:.75em 0;padding-left:1em;font-style:italic}.prose a{color:var(--color-accent);text-decoration:underline}.prose hr{border-color:var(--color-border);margin:1em 0}.prose :first-child{margin-top:0}.prose :last-child{margin-bottom:0}.prose-notes h1,.prose-notes h2,.prose-notes h3,.prose-notes h4,.prose-notes h5,.prose-notes h6{color:var(--color-text-primary);margin-top:1em;margin-bottom:.25em;font-weight:600;line-height:1.25}.prose-notes h1,.prose-notes h2{font-size:1em}.prose-notes h3,.prose-notes h4{font-size:.9em}.prose-notes p{color:var(--color-text-secondary);margin-top:.25em;margin-bottom:.25em}.prose-notes ul,.prose-notes ol{color:var(--color-text-secondary);margin-top:.25em;margin-bottom:.25em;padding-left:1.25em}.prose-notes ul{list-style-type:disc}.prose-notes ol{list-style-type:decimal}.prose-notes li{margin-top:.15em;margin-bottom:.15em}.prose-notes strong{color:var(--color-text-primary);font-weight:600}.prose-notes em{font-style:italic}.prose-notes code{font-family:var(--font-mono);background-color:var(--color-surface-3);border-radius:.25em;padding:.1em .3em;font-size:.85em}.prose-notes :first-child{margin-top:0}.prose-notes :last-child{margin-bottom:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false} \ No newline at end of file +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:"Inter","Geist",ui-sans-serif,system-ui,sans-serif;--font-mono:"Geist Mono",ui-monospace,"Cascadia Code",monospace;--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-900:oklch(39.3% .095 152.535);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-xl:36rem;--container-2xl:42rem;--container-5xl:64rem;--container-7xl:80rem;--text-xs:.875rem;--text-xs--line-height:calc(1/.75);--text-sm:1rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--tracking-widest:.1em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-surface-0:#000;--color-surface-1:#0a0a0a;--color-surface-2:#111;--color-surface-3:#1a1a1a;--color-border:#ffffff14;--color-border-hover:#ffffff24;--color-text-primary:#fafafa;--color-text-secondary:#a1a1aa;--color-text-muted:#71717a;--color-text-faint:#52525b;--color-text-ghost:#3f3f46;--color-accent:#00a3ff;--color-accent-dim:#00a3ff26}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}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;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1\.5{top:calc(var(--spacing)*1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.right-1{right:calc(var(--spacing)*1)}.right-1\.5{right:calc(var(--spacing)*1.5)}.right-2{right:calc(var(--spacing)*2)}.left-full{left:100%}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\.5{margin-top:calc(var(--spacing)*1.5)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.size-1\.5{width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\.5{width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.h-6{height:calc(var(--spacing)*6)}.h-12{height:calc(var(--spacing)*12)}.max-h-64{max-height:calc(var(--spacing)*64)}.max-h-\[80vh\]{max-height:80vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-24{min-height:calc(var(--spacing)*24)}.min-h-\[calc\(100vh-2\.75rem\)\]{min-height:calc(100vh - 2.75rem)}.min-h-screen{min-height:100vh}.w-6{width:calc(var(--spacing)*6)}.w-12{width:calc(var(--spacing)*12)}.w-56{width:calc(var(--spacing)*56)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-none{max-width:none}.max-w-xl{max-width:var(--container-xl)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\[120px\]{min-width:120px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-y-1{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.rotate-180{rotate:180deg}.cursor-pointer{cursor:pointer}.resize-y{resize:vertical}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-white\/8>:not(:last-child)){border-color:#ffffff14}@supports (color:color-mix(in lab, red, red)){:where(.divide-white\/8>:not(:last-child)){border-color:color-mix(in oklab,var(--color-white)8%,transparent)}}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-accent{border-color:var(--color-accent);border-color:var(--color-accent)}.border-accent\/20{border-color:#00a3ff33}@supports (color:color-mix(in lab, red, red)){.border-accent\/20{border-color:color-mix(in oklab,var(--color-accent)20%,transparent)}}.border-accent\/30{border-color:#00a3ff4d}@supports (color:color-mix(in lab, red, red)){.border-accent\/30{border-color:color-mix(in oklab,var(--color-accent)30%,transparent)}}.border-accent\/40{border-color:#00a3ff66}@supports (color:color-mix(in lab, red, red)){.border-accent\/40{border-color:color-mix(in oklab,var(--color-accent)40%,transparent)}}.border-red-900\/50{border-color:#82181a80}@supports (color:color-mix(in lab, red, red)){.border-red-900\/50{border-color:color-mix(in oklab,var(--color-red-900)50%,transparent)}}.border-subtle{border-color:var(--color-border)}.bg-accent{background-color:var(--color-accent);background-color:var(--color-accent)}.bg-accent-dim{background-color:var(--color-accent-dim);background-color:var(--color-accent-dim)}.bg-accent-dim\/20{background-color:#00a3ff08}@supports (color:color-mix(in lab, red, red)){.bg-accent-dim\/20{background-color:color-mix(in oklab,var(--color-accent-dim)20%,transparent)}}.bg-accent\/20{background-color:#00a3ff33}@supports (color:color-mix(in lab, red, red)){.bg-accent\/20{background-color:color-mix(in oklab,var(--color-accent)20%,transparent)}}.bg-black\/60{background-color:#0009}@supports (color:color-mix(in lab, red, red)){.bg-black\/60{background-color:color-mix(in oklab,var(--color-black)60%,transparent)}}.bg-green-500{background-color:var(--color-green-500)}.bg-green-900\/40{background-color:#0d542b66}@supports (color:color-mix(in lab, red, red)){.bg-green-900\/40{background-color:color-mix(in oklab,var(--color-green-900)40%,transparent)}}.bg-surface-0{background-color:var(--color-surface-0);background-color:var(--color-surface-0)}.bg-surface-0\/80{background-color:#000c}@supports (color:color-mix(in lab, red, red)){.bg-surface-0\/80{background-color:color-mix(in oklab,var(--color-surface-0)80%,transparent)}}.bg-surface-1{background-color:var(--color-surface-1);background-color:var(--color-surface-1)}.bg-surface-2{background-color:var(--color-surface-2);background-color:var(--color-surface-2)}.bg-surface-3{background-color:var(--color-surface-3);background-color:var(--color-surface-3)}.p-0\.5{padding:calc(var(--spacing)*.5)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-12{padding-block:calc(var(--spacing)*12)}.py-16{padding-block:calc(var(--spacing)*16)}.py-24{padding-block:calc(var(--spacing)*24)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-5{padding-top:calc(var(--spacing)*5)}.pr-0{padding-right:calc(var(--spacing)*0)}.pr-7{padding-right:calc(var(--spacing)*7)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-2\.5{padding-left:calc(var(--spacing)*2.5)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent{color:var(--color-accent)}.text-faint{color:var(--color-text-faint)}.text-ghost{color:var(--color-text-ghost)}.text-green-400{color:var(--color-green-400)}.text-muted{color:var(--color-text-muted)}.text-primary{color:var(--color-text-primary)}.text-red-400{color:var(--color-red-400)}.text-secondary{color:var(--color-text-secondary)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.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,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\:bg-accent:is(:where(.group):hover *){background-color:var(--color-accent);background-color:var(--color-accent)}.group-hover\:text-faint:is(:where(.group):hover *){color:var(--color-text-faint)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\:text-ghost::placeholder{color:var(--color-text-ghost)}@media (hover:hover){.hover\:border-subtle-hover:hover{border-color:var(--color-border-hover)}.hover\:bg-accent\/10:hover{background-color:#00a3ff1a}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/10:hover{background-color:color-mix(in oklab,var(--color-accent)10%,transparent)}}.hover\:bg-accent\/30:hover{background-color:#00a3ff4d}@supports (color:color-mix(in lab, red, red)){.hover\:bg-accent\/30:hover{background-color:color-mix(in oklab,var(--color-accent)30%,transparent)}}.hover\:bg-red-950\/40:hover{background-color:#46080966}@supports (color:color-mix(in lab, red, red)){.hover\:bg-red-950\/40:hover{background-color:color-mix(in oklab,var(--color-red-950)40%,transparent)}}.hover\:bg-surface-1:hover{background-color:var(--color-surface-1);background-color:var(--color-surface-1)}.hover\:bg-surface-2:hover{background-color:var(--color-surface-2);background-color:var(--color-surface-2)}.hover\:bg-surface-3:hover{background-color:var(--color-surface-3);background-color:var(--color-surface-3)}.hover\:text-muted:hover{color:var(--color-text-muted)}.hover\:text-primary:hover{color:var(--color-text-primary)}.hover\:text-red-300:hover{color:var(--color-red-300)}.hover\:text-secondary:hover{color:var(--color-text-secondary)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-accent:focus{border-color:var(--color-accent);border-color:var(--color-accent)}.focus\:border-subtle-hover:focus{border-color:var(--color-border-hover)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}@media (min-width:40rem){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}}@media (min-width:64rem){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}}[x-cloak]{display:none!important}.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{color:var(--color-text-primary);margin-top:1.25em;margin-bottom:.5em;font-weight:600;line-height:1.25}.prose h1{font-size:1.25em}.prose h2{font-size:1.1em}.prose h3{font-size:1em}.prose p{color:var(--color-text-secondary);margin-top:.5em;margin-bottom:.5em}.prose ul,.prose ol{color:var(--color-text-secondary);margin-top:.5em;margin-bottom:.5em;padding-left:1.5em}.prose ul{list-style-type:disc}.prose ol{list-style-type:decimal}.prose li{margin-top:.25em;margin-bottom:.25em}.prose strong{color:var(--color-text-primary);font-weight:600}.prose em{font-style:italic}.prose code{font-family:var(--font-mono);background-color:var(--color-surface-3);border-radius:.25em;padding:.1em .3em;font-size:.85em}.prose pre{background-color:var(--color-surface-3);border-radius:.5em;margin-top:.75em;margin-bottom:.75em;padding:.75em 1em;overflow-x:auto}.prose pre code{background:0 0;padding:0}.prose blockquote{border-left:3px solid var(--color-border);color:var(--color-text-muted);margin:.75em 0;padding-left:1em;font-style:italic}.prose a{color:var(--color-accent);text-decoration:underline}.prose hr{border-color:var(--color-border);margin:1em 0}.prose :first-child{margin-top:0}.prose :last-child{margin-bottom:0}.prose-notes h1,.prose-notes h2,.prose-notes h3,.prose-notes h4,.prose-notes h5,.prose-notes h6{color:var(--color-text-primary);margin-top:1em;margin-bottom:.25em;font-weight:600;line-height:1.25}.prose-notes h1,.prose-notes h2{font-size:1em}.prose-notes h3,.prose-notes h4{font-size:.9em}.prose-notes p{color:var(--color-text-secondary);margin-top:.25em;margin-bottom:.25em}.prose-notes ul,.prose-notes ol{color:var(--color-text-secondary);margin-top:.25em;margin-bottom:.25em;padding-left:1.25em}.prose-notes ul{list-style-type:disc}.prose-notes ol{list-style-type:decimal}.prose-notes li{margin-top:.15em;margin-bottom:.15em}.prose-notes strong{color:var(--color-text-primary);font-weight:600}.prose-notes em{font-style:italic}.prose-notes code{font-family:var(--font-mono);background-color:var(--color-surface-3);border-radius:.25em;padding:.1em .3em;font-size:.85em}.prose-notes :first-child{margin-top:0}.prose-notes :last-child{margin-bottom:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false} \ No newline at end of file diff --git a/progi/web/templates/pages/workflows.html b/progi/web/templates/pages/workflows.html index dabb04a..1cc966b 100644 --- a/progi/web/templates/pages/workflows.html +++ b/progi/web/templates/pages/workflows.html @@ -130,6 +130,15 @@ @@ -179,6 +188,86 @@

+ {# ── Workflow playbook modal ───────────────────────────────────────────────── #} + + {# ── Step detail modal ─────────────────────────────────────────────────────── #}