OSOP Report Generator
Convert workflow definition and/or execution log into a self-contained HTML report.
Arguments
$ARGUMENTS
If no arguments provided, look for the most recent files in sessions/ directory.
Steps
-
Find the files — read the .osop file (first argument). If a .osoplog.yaml is also provided (second argument), read that too.
-
Generate the HTML report using the embedded report generator or by building inline HTML:
- Read both YAML files
- Create a self-contained HTML with inline CSS
- Each node becomes an expandable
<details>element - Color-code by node type (orange=human, purple=agent, blue=api/cli/mcp, gray=git/docker/cicd, green=db/data)
- Show status badges, duration bars, tool usage, AI metadata, reasoning blocks
- Include dark mode via
prefers-color-scheme
-
Save the HTML next to the source file with
-report.htmlsuffix. -
Tell the user the file path so they can open it in a browser.
Output format
The HTML report includes:
- Header: workflow name, status badge, duration, cost, node count
- Error banner: any failed nodes listed prominently
- Node list: expandable cards with type badge, duration bar, inputs/outputs, AI metadata, tool usage, reasoning
- Dark mode responsive, <15KB, zero external dependencies
