Problem
The /sessions command only works inside the interactive REPL. Users cannot list saved sessions from the command line without entering interactive mode first.
Proposed Solution
Add a kbot sessions CLI command that lists all saved sessions (similar to how /sessions works in REPL mode).
Example Usage
# List all saved sessions from command line
kbot sessions
# Could also support JSON output for scripting
kbot sessions --json
Alternatives Considered
Currently, users must start the REPL with kbot and then type /sessions to see saved sessions. This is fine for interactive use but inconvenient for quick checks or scripting.
Additional Context
The sessions.ts module already has listSessions() and formatSessionList() functions that the REPL uses. This would expose the same functionality as a top-level CLI command, following the pattern of other CLI commands like kbot vitals, kbot status, etc.
Problem
The
/sessionscommand only works inside the interactive REPL. Users cannot list saved sessions from the command line without entering interactive mode first.Proposed Solution
Add a
kbot sessionsCLI command that lists all saved sessions (similar to how/sessionsworks in REPL mode).Example Usage
Alternatives Considered
Currently, users must start the REPL with
kbotand then type/sessionsto see saved sessions. This is fine for interactive use but inconvenient for quick checks or scripting.Additional Context
The
sessions.tsmodule already haslistSessions()andformatSessionList()functions that the REPL uses. This would expose the same functionality as a top-level CLI command, following the pattern of other CLI commands likekbot vitals,kbot status, etc.