feat: show raw provenance JSON on detail page
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
18
server.py
18
server.py
@@ -764,7 +764,23 @@ async def ui_detail_page(run_id: str):
|
||||
</div>
|
||||
'''
|
||||
|
||||
html += '''
|
||||
# Raw JSON provenance
|
||||
provenance_json = json.dumps({
|
||||
"run_id": run.run_id,
|
||||
"status": run.status,
|
||||
"recipe": run.recipe,
|
||||
"effect_url": effect_url,
|
||||
"inputs": run.inputs,
|
||||
"output_hash": run.output_hash,
|
||||
"output_name": run.output_name,
|
||||
"created_at": run.created_at,
|
||||
"completed_at": run.completed_at,
|
||||
"error": run.error
|
||||
}, indent=2)
|
||||
|
||||
html += f'''
|
||||
<h2>Raw JSON</h2>
|
||||
<pre style="background:#0a0a0a;padding:16px;border-radius:8px;overflow-x:auto;font-size:13px;"><code>{provenance_json}</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user