How farizdotid/teundeun-cli works
Teundeun is a local CLI for saving, listing, searching, resuming, and deleting named AI coding sessions. The main workflow enters through the CLI, dispatches to a command handler, and persists or retrieves session records in a local JSON file; resuming dispatches the stored command to a provider executable. The README documents all five commands and local-only storage. Some command modules are represented from the tree and README; their internal wiring is included only where supported by sampled source.
Main entry points: cli.js CLI dispatcher · storage.js Session storage · list.js List sessions · search.js Search sessions
Components 11
CLI entry
- CLI dispatcher
src/cli.js
Session commands
- Save session
src/commands/save.js - List sessions
src/commands/list.js - Search sessions
src/commands/search.js - Resume session
src/commands/resume.js - Delete session
src/commands/delete.js - Table formatter
src/formatter.js
Local persistence
- Session storage
src/storage.js - Sessions JSON
Other components
- Terminal user
- Provider executable
Connections 15
- Terminal user → CLI dispatcher: runs command
- CLI dispatcher → Save session: dispatches save
- CLI dispatcher → List sessions: dispatches list
- CLI dispatcher → Search sessions: dispatches search
- CLI dispatcher → Resume session: dispatches resume
- CLI dispatcher → Delete session: dispatches delete
- Save session → Session storage: checks and saves
- List sessions → Session storage: reads sessions
- List sessions → Table formatter: formats table
- Search sessions → Session storage: searches sessions
- Search sessions → Table formatter: formats matches
- Resume session → Session storage: finds session
- Resume session → Provider executable: spawns command
- Delete session → Session storage: deletes session
- Session storage → Sessions JSON: reads and writes