F2: persist native job projections and expose task controls

This commit is contained in:
Xin Wang
2026-10-23 16:03:40 +08:00
parent bae5ec3c58
commit 33fde56edd
13 changed files with 550 additions and 5 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ def _payload(
_normalize_http_template_inputs(definition)
secrets = (
merge_secrets(body.secrets, stored_secrets or {})
if definition["type"] == "http"
if definition["type"] in {"http", "task"}
else {}
)
secret_variables = (secrets.get("dynamic_variables") or {}) if secrets else {}
@@ -154,7 +154,7 @@ async def list_tools(session: AsyncSession = Depends(get_session)):
rows = (
await session.execute(
select(Tool)
.where(Tool.type.in_(("http", "mcp", "client")))
.where(Tool.type.in_(("http", "mcp", "client", "task")))
.order_by(Tool.updated_at.desc())
)
).scalars().all()