Documentation
¶
Index ¶
- Variables
- func BuildCreateSessionRequest(options CreateSessionRequestOptions) (*jules.CreateSessionRequest, error)
- func DefaultWatchWakeReason(decision WatchDecision) string
- func DocumentedOutputs(session *jules.Session) []jules.Output
- func HasJulesAgentMessageAfter(activities []jules.Activity, cursor time.Time) bool
- func MCPNextAction(snapshot WatchSnapshot) string
- func NormalizeSourceID(sourceID string) string
- func SessionChangesSummary(changes *julesops.SessionChanges) (string, int, int)
- type CreateSessionRequestOptions
- type CurrentWatchOptions
- type PatchPreparation
- type PatchRequest
- type StatusSummary
- type WatchDecision
- type WatchDecisionKind
- type WatchSnapshot
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStartingBranchRequiresSource = errors.New("starting branch requires source")
Functions ¶
func BuildCreateSessionRequest ¶
func BuildCreateSessionRequest(options CreateSessionRequestOptions) (*jules.CreateSessionRequest, error)
func DefaultWatchWakeReason ¶
func DefaultWatchWakeReason(decision WatchDecision) string
func MCPNextAction ¶
func MCPNextAction(snapshot WatchSnapshot) string
func NormalizeSourceID ¶
func SessionChangesSummary ¶
func SessionChangesSummary(changes *julesops.SessionChanges) (string, int, int)
Types ¶
type CurrentWatchOptions ¶
type CurrentWatchOptions struct {
FetchActivities bool
}
type PatchPreparation ¶
type PatchPreparation struct {
DryRun bool
Options *julesops.PatchApplicationOptions
Blocker string
WorktreeStatus string
}
func PreparePatchApplication ¶
func PreparePatchApplication(ctx context.Context, request PatchRequest) (*PatchPreparation, error)
type PatchRequest ¶
type StatusSummary ¶
type StatusSummary struct {
TotalSessions int
StateBreakdown map[string]int
ActiveSessions int
UserActionSessions int
RecentSessions []jules.Session
Summary string
}
func SummarizeSessions ¶
func SummarizeSessions(sessions []jules.Session, recentLimit int) StatusSummary
type WatchDecision ¶
type WatchDecision struct {
Kind WatchDecisionKind
Stop bool
}
func EvaluateWatchDecision ¶
func EvaluateWatchDecision(session *jules.Session, hasDeliverables *bool, deliverablesErr error) WatchDecision
type WatchDecisionKind ¶
type WatchDecisionKind string
const ( WatchDecisionContinue WatchDecisionKind = "continue" WatchDecisionNeedsUserAction WatchDecisionKind = "needs_user_action" WatchDecisionFailed WatchDecisionKind = "failed" WatchDecisionCompletedDeliverableCheckFailed WatchDecisionKind = "completed_deliverable_check_failed" WatchDecisionCompletedNoDeliverables WatchDecisionKind = "completed_no_deliverables" WatchDecisionCompletedWithDeliverables WatchDecisionKind = "completed_with_deliverables" WatchDecisionOutputs WatchDecisionKind = "outputs" )
type WatchSnapshot ¶
type WatchSnapshot struct {
Session *jules.Session
Activities []jules.Activity
ActivityError error
DeliverablesError error
NextCursor time.Time
HasJulesAgentMessage bool
Decision WatchDecision
}
func CurrentWatchSnapshot ¶
func CurrentWatchSnapshot(ctx context.Context, client *jules.Client, sessionID string, cursor time.Time, options CurrentWatchOptions) (WatchSnapshot, error)
Click to show internal directories.
Click to hide internal directories.