Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deps ¶
type Deps struct {
Index capsessionindex.Service `json:"index"`
Workspace workspace.Service `json:"workspace"`
}
type Input ¶
type Input struct {
Mode string `json:"mode,omitempty" jsonschema:"search (default) | list | scroll"`
// Search: FTS query. List: ignored. Scroll: optional when jumping to a session without a hit.
Query string `json:"query,omitempty" jsonschema:"Keywords for mode=search"`
// Scroll: session id from a prior search hit or list row.
SessionID string `json:"session_id,omitempty" jsonschema:"Required for mode=scroll"`
// Scroll: anchor event seq (from search hit); 0 means latest in session.
Seq int64 `json:"seq,omitempty" jsonschema:"Anchor seq for mode=scroll"`
// Scroll: lines before/after anchor (default 3 each when scroll and both zero).
Before int `json:"before,omitempty"`
After int `json:"after,omitempty"`
Limit int `json:"limit,omitempty" jsonschema:"Max hits (search) or sessions (list); default 10, max 50"`
}
Input supports Hermes-style session_search shapes: search (FTS), list (browse sessions), scroll (context around a hit).
type Output ¶
type Output struct {
Mode string `json:"mode"`
Hits []capsessionindex.Hit `json:"hits,omitempty"`
Sessions []capsessionindex.SessionSummary `json:"sessions,omitempty"`
Messages []capsessionindex.MessageRow `json:"messages,omitempty"`
Count int `json:"count"`
SessionID string `json:"session_id,omitempty"`
AnchorSeq int64 `json:"anchor_seq,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.