Documentation
¶
Overview ¶
Package conversations projects native harness session inventories into the existing workspace metadata protocol. It never owns or copies transcripts.
Index ¶
Constants ¶
const BrowserVersion = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BrowseQuery ¶
type BrowseQuery struct {
AgentID string `json:"agentId,omitempty"`
Search string `json:"search,omitempty"`
Cursor string `json:"cursor,omitempty"`
Limit int `json:"limit,omitempty"`
Refresh bool `json:"refresh,omitempty"`
}
BrowseQuery is an explicit, all-folder inventory. Ordinary /chats activity polling remains separate and never triggers a global harness scan.
type Conversation ¶
type Conversation struct {
ID string `json:"id"`
ChatID string `json:"chatId,omitempty"`
AgentID string `json:"agentId,omitempty"`
AgentType string `json:"agentType"`
AgentName string `json:"agentName"`
ProjectID string `json:"projectId,omitempty"`
ProjectName string `json:"projectName,omitempty"`
CWD string `json:"cwd"`
Title string `json:"title"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
LastStatus string `json:"lastStatus,omitempty"`
LastRunID string `json:"lastRunId,omitempty"`
// contains filtered or unexported fields
}
Conversation is metadata, not a transcript. ChatID is present when a native reference has already been attached to this workspace's normal chat protocol.
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) Browse ¶
Browse uses a keyset cursor, so newly active chats cannot shift later pages and duplicate rows. Search runs over metadata only, across titles and folders.
func (*Index) Open ¶
func (idx *Index) Open(ctx context.Context, request OpenRequest) (OpenResult, error)
Open resolves the stable browser identity using native metadata, never a client-supplied path/session pair. It adopts a reference and delegates history and resume to the existing chat protocol. Repeated opens reuse the same chat.
type OpenRequest ¶
type OpenResult ¶
type Page ¶
type Page struct {
WorkspaceID string `json:"workspaceId"`
Items []Conversation `json:"items"`
Total int `json:"total"`
NextCursor string `json:"nextCursor,omitempty"`
Issues []registry.SessionDiscoveryIssue `json:"issues,omitempty"`
}