fix(workflow): address migration CI failures

Expose workflow lookup for Service API compatibility, tighten workflow template typing, and add focused command coverage for the migration PR.
This commit is contained in:
-LAN-
2026-05-11 13:44:13 +08:00
parent 47dc084659
commit c1e2c2e1ee
6 changed files with 104 additions and 21 deletions

View File

@ -23,7 +23,7 @@ def normalize_legacy_system_file_args_for_service_api(
if not _has_legacy_file_arg(args_with_hidden_system):
return args, None
workflow = AppGenerateService._get_workflow(app_model, InvokeFrom.SERVICE_API, workflow_id)
workflow = AppGenerateService.get_workflow(app_model, InvokeFrom.SERVICE_API, workflow_id)
return normalize_legacy_sys_files_args(graph=workflow.graph_dict, args=args_with_hidden_system)