mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-04-30 00:34:58 +00:00
18 lines
451 B
Python
18 lines
451 B
Python
"""Workflow plugin: build context for API."""
|
|
import os
|
|
from ....web.routes.context import build_context
|
|
|
|
|
|
def run(_runtime, _inputs):
|
|
"""
|
|
Build the complete context object for the web UI.
|
|
|
|
This includes logs, env vars, translations, metadata, navigation,
|
|
prompt, workflow, packages, messages, and status.
|
|
|
|
Returns:
|
|
dict: Complete context object
|
|
"""
|
|
context = build_context()
|
|
return {"result": context}
|