Documentation
¶
Index ¶
- Constants
- func ClaudeAsk(id string, b claude.Block) opencode.Ask
- func RetiredHub(name string) bool
- func Sort(list []Session)
- func Tilde(p, home string) string
- type Answered
- type Brief
- type Manager
- func (m *Manager) Adopt(ctx context.Context, sid string)
- func (m *Manager) Briefs(want map[string]bool) map[string]Brief
- func (m *Manager) Find(sid string) (history.Transcript, bool)
- func (m *Manager) History(q, dir string, limit int) []Session
- func (m *Manager) Keep(sid, live string) error
- func (m *Manager) Live(ctx context.Context) ([]Session, error)
- func (m *Manager) OpenCode(id string) bool
- func (m *Manager) Session(sid string) (Session, bool)
- type Note
- type Session
Constants ¶
const ( NeedsYou = "needs-you" YourTurn = "your-turn" Working = "working" Stopped = "stopped" Past = "past" )
Variables ¶
This section is empty.
Functions ¶
func RetiredHub ¶
RetiredHub is an earlier conversation of the assistant (or of WhatsApp before the hub took it over), named so when a newer one replaced it. Whatever is meant for it goes to the assistant.
Types ¶
type Answered ¶
type Answered struct {
Ask string `json:"ask"`
Key string `json:"key,omitempty"`
What string `json:"what"`
Via string `json:"via,omitempty"`
Device string `json:"device,omitempty"`
At time.Time `json:"at"`
}
Answered is the last answer atc passed to one of the session's asks: Via is where it was given (web, push, widget), Device the machine it was given on.
type Manager ¶
type Session ¶
type Session struct {
SessionID string `json:"sessionId"`
Host string `json:"host,omitempty"`
ID string `json:"id,omitempty"`
Kind string `json:"kind"`
State string `json:"state"`
Attachable bool `json:"attachable"`
PID int `json:"pid,omitempty"`
Title string `json:"title"`
Name string `json:"name,omitempty"`
Cwd string `json:"cwd"`
StartCwd string `json:"startCwd,omitempty"`
Branch string `json:"branch,omitempty"`
Model string `json:"model,omitempty"`
Engine string `json:"engine,omitempty"`
Harness string `json:"harness,omitempty"`
Asks []opencode.Ask `json:"asks,omitempty"`
Background []claude.Task `json:"background,omitempty"`
TurnDone bool `json:"turnDone,omitempty"`
PermissionMode string `json:"permissionMode,omitempty"`
LastPrompt string `json:"lastPrompt,omitempty"`
Context int `json:"context,omitempty"`
PromptAt time.Time `json:"promptAt,omitzero"`
Activity string `json:"activity,omitempty"`
Steps int `json:"steps,omitempty"`
Failed int `json:"failed,omitempty"`
Files int `json:"files,omitempty"`
LastReply string `json:"lastReply,omitempty"`
Summary *summary.Summary `json:"summary,omitempty"`
Summarizing bool `json:"summarizing,omitempty"`
StartedAt time.Time `json:"startedAt,omitzero"`
Updated time.Time `json:"updated,omitzero"`
Servers []int `json:"servers,omitempty"`
Shown []pages.Page `json:"shown,omitempty"`
Note *Note `json:"note,omitempty"`
Answered *Answered `json:"answered,omitempty"`
Tabs []browser.Tab `json:"tabs,omitempty"`
Pinned bool `json:"pinned,omitempty"`
Parked bool `json:"parked,omitempty"`
Agent string `json:"agent,omitempty"`
Root string `json:"root,omitempty"`
ReportsTo string `json:"reportsTo,omitempty"`
Retired bool `json:"retired,omitempty"`
Load *resources.Load `json:"load,omitempty"`
}
func (Session) Away ¶
Away is parked and not asking anything: a parked session that needs you comes back.
func (Session) Current ¶
Current is what the user's list shows by default: what needs them, and what runs or works and is not parked.