Documentation
¶
Index ¶
- Constants
- type ActionRequest
- type Annotation
- type AnnotationIntent
- type AnnotationSeverity
- type AnnotationStatus
- type Event
- type EventType
- type Service
- type Session
- type SessionWithAnnotations
- type Store
- func (s *Store) AddAnnotation(sessionID string, annotation Annotation) (Annotation, bool)
- func (s *Store) AddThreadMessage(annotationID, role, content string) (Annotation, bool)
- func (s *Store) CreateSession(url, projectID string) Session
- func (s *Store) DeleteAnnotation(id string) (Annotation, bool)
- func (s *Store) EmitActionRequested(sessionID string, request ActionRequest)
- func (s *Store) GetAllAnnotationsNeedingAttention() []Annotation
- func (s *Store) GetAllAnnotationsNeedingAttentionByProjectID(projectID string) []Annotation
- func (s *Store) GetAnnotation(id string) (Annotation, bool)
- func (s *Store) GetAnnotationsNeedingAttention(sessionID string) []Annotation
- func (s *Store) GetEventsSince(sessionID string, sequence int64) []Event
- func (s *Store) GetSession(id string) (Session, bool)
- func (s *Store) GetSessionAnnotations(sessionID string) []Annotation
- func (s *Store) GetSessionWithAnnotations(id string) (SessionWithAnnotations, bool)
- func (s *Store) ListSessions() []Session
- func (s *Store) SubscribeAll() (<-chan Event, func())
- func (s *Store) SubscribeSession(sessionID string) (<-chan Event, func())
- func (s *Store) TouchProject(projectID string)
- func (s *Store) TouchSession(sessionID string)
- func (s *Store) UpdateAnnotation(id string, patch map[string]any) (Annotation, bool)
- type ThreadMessage
- type UnixMilli
Constants ¶
View Source
const ( StatusPending = protocol.StatusPending StatusAcknowledged = protocol.StatusAcknowledged StatusResolved = protocol.StatusResolved StatusDismissed = protocol.StatusDismissed )
View Source
const ( EventAnnotationCreated = protocol.EventAnnotationCreated EventAnnotationUpdated = protocol.EventAnnotationUpdated EventAnnotationDeleted = protocol.EventAnnotationDeleted EventSessionCreated = protocol.EventSessionCreated EventSessionUpdated = protocol.EventSessionUpdated EventSessionClosed = protocol.EventSessionClosed EventThreadMessage = protocol.EventThreadMessage EventActionRequested = protocol.EventActionRequested )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionRequest ¶
type ActionRequest = protocol.ActionRequest
type Annotation ¶
type Annotation = protocol.Annotation
type AnnotationIntent ¶
type AnnotationIntent = protocol.AnnotationIntent
type AnnotationSeverity ¶
type AnnotationSeverity = protocol.AnnotationSeverity
type AnnotationStatus ¶
type AnnotationStatus = protocol.AnnotationStatus
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ListenAndServe ¶
type SessionWithAnnotations ¶
type SessionWithAnnotations = protocol.SessionWithAnnotations
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddAnnotation ¶
func (s *Store) AddAnnotation(sessionID string, annotation Annotation) (Annotation, bool)
func (*Store) AddThreadMessage ¶
func (s *Store) AddThreadMessage(annotationID, role, content string) (Annotation, bool)
func (*Store) CreateSession ¶
func (*Store) DeleteAnnotation ¶
func (s *Store) DeleteAnnotation(id string) (Annotation, bool)
func (*Store) EmitActionRequested ¶
func (s *Store) EmitActionRequested(sessionID string, request ActionRequest)
func (*Store) GetAllAnnotationsNeedingAttention ¶
func (s *Store) GetAllAnnotationsNeedingAttention() []Annotation
func (*Store) GetAllAnnotationsNeedingAttentionByProjectID ¶
func (s *Store) GetAllAnnotationsNeedingAttentionByProjectID(projectID string) []Annotation
func (*Store) GetAnnotation ¶
func (s *Store) GetAnnotation(id string) (Annotation, bool)
func (*Store) GetAnnotationsNeedingAttention ¶
func (s *Store) GetAnnotationsNeedingAttention(sessionID string) []Annotation
func (*Store) GetEventsSince ¶
func (*Store) GetSessionAnnotations ¶
func (s *Store) GetSessionAnnotations(sessionID string) []Annotation
func (*Store) GetSessionWithAnnotations ¶
func (s *Store) GetSessionWithAnnotations(id string) (SessionWithAnnotations, bool)
func (*Store) ListSessions ¶
func (*Store) SubscribeAll ¶
func (*Store) SubscribeSession ¶
func (*Store) TouchProject ¶
func (*Store) TouchSession ¶
func (*Store) UpdateAnnotation ¶
type ThreadMessage ¶
type ThreadMessage = protocol.ThreadMessage
Click to show internal directories.
Click to hide internal directories.