Documentation
¶
Overview ¶
Package repl provides an interactive REPL for the Chronos CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type REPL ¶
type REPL struct {
// contains filtered or unexported fields
}
REPL is the interactive command loop.
func (*REPL) SetAgent ¶
SetAgent configures the single agent that handles non-command input. It also adds the agent to the roster so /agent can list it.
func (*REPL) SetAgents ¶ added in v0.9.0
SetAgents loads a full roster of agents (e.g. every agent in a YAML config). The first agent becomes the active one; use /agent <id> to switch.
func (*REPL) SetStream ¶ added in v0.7.0
SetStream enables or disables token-by-token streaming of agent responses.
func (*REPL) SetTeams ¶ added in v0.9.0
func (r *REPL) SetTeams(teamIDs []string, runner TeamRunner)
SetTeams registers the team IDs available to run and the callback that runs them. Enables the /teams and /team commands.
type TeamRunner ¶ added in v0.9.0
type TeamRunner func(ctx context.Context, teamID, message string) (<-chan team.TeamStreamEvent, error)
TeamRunner runs a configured team by ID and returns a stream of its events. The cmd package wires this in so the REPL can drive teams without importing the CLI's team-construction logic.