Documentation
¶
Overview ¶
Package shell implements an interactive REPL session combining conversational AI with plan awareness. It is the backend for the `cloop shell` command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shell ¶
type Shell struct {
State *state.ProjectState
Provider provider.Provider
Model string
Timeout time.Duration
History []Message
WorkDir string // project root, used for prompt-stats hint injection
// OnToken, if set, enables streaming. Each token chunk is passed to this
// callback as the AI generates its response.
OnToken func(token string)
// OnSave is called after any action that mutates state so that the caller
// can persist the change to disk.
OnSave func() error
}
Shell holds all state for a running cloop shell session.
Click to show internal directories.
Click to hide internal directories.