This repository was archived by the owner on Apr 11, 2026. It is now read-only.
Commit e5543e9
feat(flowctl): remove libSQL/fastembed — pure file-based state [fn-17]
Replace the entire async libSQL database layer with sync file-based I/O.
All state now stored as JSON/JSONL files in .flow/, readable by MCP tools.
Key changes:
- Remove fastembed (128MB ONNX model) and all vector/embedding code
- Remove libsql, tokio, tokio-util dependencies
- Rewrite flowctl-db: 5,800 lines of async SQL → sync file wrappers
- Delete db_shim.rs (492-line async-to-sync bridge)
- Expand json_store with events JSONL, pipeline/phases/locks JSON,
memory JSONL with text search
- FlowStore struct as unified entry point for all file operations
Results:
- Binary: 22MB → 2.7MB (88% reduction)
- Dependencies: zero async runtime, zero database
- All state visible to MCP tools (Read, Grep, Glob)
- 299 tests pass
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 6a0a8b0 commit e5543e9
67 files changed
Lines changed: 1961 additions & 10704 deletions
File tree
- flowctl
- crates
- flowctl-cli
- src/commands
- admin
- workflow
- tests
- flowctl-core/src
- flowctl-db
- benches
- src
- repo
- flowctl-service
- src
- tests/cmd
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments