Internal

internal/app/handoff

Package handoff renders model-facing handoff material from task specs.

import "github.com/nilstate/scafld/v2/internal/app/handoff"

Package handoff renders model-facing handoff material from task specs.

Functions

func Run(ctx context.Context, specs SpecStore, sessions SessionStore, taskID string, workspaces ...WorkspaceStatus) (string, error)

Source: internal/app/handoff/handoff.go:45

Run renders the model-facing handoff for taskID.

func RunWithOptions(ctx context.Context, specs SpecStore, sessions SessionStore, taskID string, opts Options, workspaces ...WorkspaceStatus) (string, error)

Source: internal/app/handoff/handoff.go:50

RunWithOptions renders the model-facing handoff for taskID.

Types

type Options

Source: internal/app/handoff/handoff.go:40

Options configures handoff rendering.

type Options struct {
	SuppressContext bool
}
Fields
  • SuppressContext bool

type SessionStore

Source: internal/app/handoff/handoff.go:26

SessionStore loads session evidence for repair handoffs.

type SessionStore interface {
	Load(context.Context, string) (session.Session, error)
}
Methods
  • Load func(context.Context, string) (session.Session, error)

type SpecStore

Source: internal/app/handoff/handoff.go:21

SpecStore is the spec persistence port used by handoff rendering.

type SpecStore interface {
	Load(context.Context, string) (spec.Model, string, error)
}
Methods
  • Load func(context.Context, string) (spec.Model, string, error)

type WorkspaceStatus

Source: internal/app/handoff/handoff.go:31

WorkspaceStatus captures current workspace state for handoff projection.

type WorkspaceStatus interface {
	ChangedFiles(context.Context) ([]string, error)
}
Methods
  • ChangedFiles func(context.Context) ([]string, error)