mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
Implements WorkflowServiceDifyPort, the real DifyPort adapter that wires the pure P1 domain and Task 1-3 helpers to WorkflowService, AppGenerateService, and the node-execution repository. Each method opens its own session, resolves account/app via the identity helpers, and mutates the draft graph client-side (no server-side patch primitive) before writing it back with graph_only=True/sync_agent_bindings=False. Pins the publish workflow_id+commit gotcha and the hash-mismatch re-mapping. Confirmed via mocked-service unit tests and a runtime_checkable isinstance(..., DifyPort) check.