feat(M01): POST /api/m01/logic/flow — 저장 안 한 고친 줄(옛 편집기)을 흐름으로 변환해 돌려줌(쓰기 없음)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KmELpdXFDRZHhfbGuRhSmL
This commit is contained in:
2026-10-02 07:42:47 +09:00
co-authored by Claude Opus 5.5
parent d202a3a6d8
commit c7cd7d4ea0
3 changed files with 33 additions and 4 deletions
+12
View File
@@ -250,6 +250,18 @@ def get_logic_flow(key: str, file: str = "") -> dict:
return _call(flow.get_flow, file, key)
class FlowDraft(BaseModel):
file: str = ""
key: str = ""
row: dict[str, Any]
@router.post("/logic/flow")
def post_logic_flow(body: FlowDraft) -> dict:
"""저장 안 한 고친 줄(옛 편집기) → 흐름 변환 — {flow, converted, notes} · 쓰기 없음."""
return _call(flow.get_flow, body.file, body.key, body.row)
@router.post("/logic/new")
def post_logic_new(body: NewLogic) -> dict:
return _call(make.logic_new, body.logic, body.owner)