This repository was archived by the owner on Apr 11, 2026. It is now read-only.
Commit 069b2e5
committed
feat(flowctl): approval HTTP API backend (fn-20.3)
Add approval system backend: libSQL approvals table, ApprovalStore
trait + libsql impl, flowctl approval CLI (create/list/show/approve/
reject with --wait), 5 daemon REST routes, ApprovalCreated/Resolved
WS events. Replaces stdin-blocking Teams protocol.
CLI routes mutations through Unix socket at .flow/.state/flowctl.sock
when daemon is running (detected via .flow/.state/flowctl.pid),
with TCP fallback for flowctl serve --port and direct-DB writes
when the daemon is absent. This keeps the daemon as the sole
source of live approval_* events when reachable.
Integration test exercises full create → list → approve → reject
flow through the Axum router with event_bus assertions.
Task: fn-20-abf-borrowed-enhancements-archetypes.31 parent 17aebf1 commit 069b2e5
15 files changed
Lines changed: 1321 additions & 0 deletions
File tree
- flowctl
- crates
- flowctl-cli
- src
- commands
- flowctl-core/src
- flowctl-daemon/src
- handlers
- flowctl-db/src
- flowctl-scheduler/src
- flowctl-service
- src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
0 commit comments