commitworkflow

package
v0.9.47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package commitworkflow owns the read-only agent phases for native commits.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChildRunMetadata

type ChildRunMetadata struct {
	RunID          string    `json:"run_id"`
	ChildSessionID string    `json:"child_session_id,omitempty"`
	AgentName      string    `json:"agent_name"`
	AgentSource    string    `json:"agent_source,omitempty"`
	Provider       string    `json:"provider,omitempty"`
	Model          string    `json:"model,omitempty"`
	StartedAt      time.Time `json:"started_at"`
	CompletedAt    time.Time `json:"completed_at"`
}

type Coordinator

type Coordinator struct{}

func New

func New() *Coordinator

func (*Coordinator) DraftMessage

func (c *Coordinator) DraftMessage(ctx context.Context, req Request) (string, ChildRunMetadata, error)

func (*Coordinator) PlanScope

type Request

type Request struct {
	ParentSessionID     string
	CheckoutDir         string
	AgentName           string
	Intent              string
	ScopeSummary        string
	ExpectedFingerprint gitcommit.Fingerprint
	ExpectedStatusToken string
	Runner              runpkg.ChildRunner
	Progress            runpkg.ChildRunEventCallback
}

type ScopeMode

type ScopeMode string
const (
	ScopeAll         ScopeMode = "all"
	ScopeSelected    ScopeMode = "selected"
	ScopeNeedsManual ScopeMode = "needs_manual"
)

type ScopeProposal

type ScopeProposal struct {
	Mode         ScopeMode `json:"mode"`
	IncludePaths []string  `json:"include_paths"`
	Summary      string    `json:"summary"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL