feat(cli): port Fase 4 CLI — parser arg, mode dispatch, single-process composition root + REPL loop, bootstrap seed
This commit is contained in:
1 parent
4b4730cff7
commit
c582dc1461
6 files changed
+470
-5
No files matched your search
@@ -3,7 +3,7 @@
|
||||
> Plan lengkap migrasi in-place dari Rust (11 crate, clean architecture 4 lapis) ke monorepo
|
||||
> TypeScript/Bun. Bahasa Indonesia, commit pakai Conventional Commits.
|
||||
>
|
||||
> **Status:** Fase 0–2 + 3a + 3b + 3e + 3c + 3d + 3f + 3g **selesai**. Berikutnya: **4 gateway + CLI + TUI**.
|
||||
> **Status:** Fase 0–2 + 3a–3g **selesai**; Fase 4 sebagian (**CLI**: parser arg, dispatch, komposisi root, REPL, bootstrap). Berikutnya: Fase 4 TUI + Fase 5 server interfaces.
|
||||
> Base: `bun run check` bersih, 54 test hijau.
|
||||
|
||||
---
|
||||
@@ -147,10 +147,12 @@ apps/
|
||||
### Fase 4 — Gateway + CLI + TUI
|
||||
**Sumber Rust:** `apps/gateway/src/{lib,main}.rs`, `apps/interfaces/tui/src/**`
|
||||
|
||||
- [ ] `apps/interfaces/cli/` (paket Bun):
|
||||
- [ ] Parser arg: `--api/--daemon/--attach/--ws/--grpc/--web/--tui`, dispatch mode
|
||||
- [ ] Logging ke file
|
||||
- [ ] `run_single_process` — komposisi root: wire semua implementasi konkret sekali
|
||||
- [x] `apps/interfaces/cli/` (paket Bun):
|
||||
- [x] Parser arg: `--api/--daemon/--attach/--ws/--grpc/--web`, dispatch mode (`args.ts`)
|
||||
- [x] Logging ke file (`index.ts`)
|
||||
- [x] `run_single_process` — komposisi root: wire semua implementasi konkret sekali (`compose.ts`) + REPL loop
|
||||
- [x] Bootstrap seed (`bootstrap.ts`) — wire-shape settings lama terbaca
|
||||
- [x] Smoke: `bun run cli --help`, `bun run bootstrap` jalan; loop turn + tool read/write
|
||||
- [ ] TUI mode (library TUI Bun):
|
||||
- [ ] Event loop adaptive poll
|
||||
- [ ] `Action` dispatcher + slash commands
|
||||
|
||||
Reference in new issue
Block a user