ui

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QuitRequestDrain = runshared.UIQuitRequestDrain
	QuitRequestForce = runshared.UIQuitRequestForce

	JobControlPause   = runshared.UIJobControlPause
	JobControlMessage = runshared.UIJobControlMessage
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JobControlAction added in v0.2.10

type JobControlAction = runshared.UIJobControlAction

type JobControlRequest added in v0.2.10

type JobControlRequest = runshared.UIJobControlRequest

type JobControlResponse added in v0.2.10

type JobControlResponse = model.JobControlResponse

type QuitRequest added in v0.2.0

type QuitRequest = runshared.UIQuitRequest

type RemoteAttachOptions added in v0.2.0

type RemoteAttachOptions struct {
	Snapshot          apicore.RunSnapshot
	Config            *config
	WorkspaceRoot     string
	OwnerSession      bool
	LoadSnapshot      func(context.Context) (apicore.RunSnapshot, error)
	OpenStream        func(context.Context, apicore.StreamCursor) (apiclient.RunStream, error)
	PauseRunJob       func(context.Context, string, string) (apicore.RunJobControlResponse, error)
	SendRunJobMessage func(
		context.Context,
		string,
		string,
		apicore.RunJobMessageRequest,
	) (apicore.RunJobControlResponse, error)
}

RemoteAttachOptions configures a daemon-backed UI attach session.

type RemoteMultiRunAttachOptions added in v0.2.7

type RemoteMultiRunAttachOptions struct {
	Snapshot          apicore.TaskRunMultipleSnapshot
	Config            *config
	WorkspaceRoot     string
	OwnerSession      bool
	LoadSnapshot      func(context.Context) (apicore.TaskRunMultipleSnapshot, error)
	LoadChildSnapshot func(context.Context, string) (apicore.RunSnapshot, error)
	OpenParentStream  func(context.Context, apicore.StreamCursor) (apiclient.RunStream, error)
	OpenChildStream   func(context.Context, string, apicore.StreamCursor) (apiclient.RunStream, error)
	PauseRunJob       func(context.Context, string, string) (apicore.RunJobControlResponse, error)
	SendRunJobMessage func(
		context.Context,
		string,
		string,
		apicore.RunJobMessageRequest,
	) (apicore.RunJobControlResponse, error)
}

RemoteMultiRunAttachOptions configures a daemon-backed multi-run UI attach session.

type RemoteReviewWatchAttachOptions added in v0.2.8

type RemoteReviewWatchAttachOptions struct {
	Snapshot          apicore.RunSnapshot
	Config            *config
	WorkspaceRoot     string
	OwnerSession      bool
	LoadSnapshot      func(context.Context) (apicore.RunSnapshot, error)
	LoadChildSnapshot func(context.Context, string) (apicore.RunSnapshot, error)
	OpenParentStream  func(context.Context, apicore.StreamCursor) (apiclient.RunStream, error)
	OpenChildStream   func(context.Context, string, apicore.StreamCursor) (apiclient.RunStream, error)
	PauseRunJob       func(context.Context, string, string) (apicore.RunJobControlResponse, error)
	SendRunJobMessage func(
		context.Context,
		string,
		string,
		apicore.RunJobMessageRequest,
	) (apicore.RunJobControlResponse, error)
}

RemoteReviewWatchAttachOptions configures a daemon-backed review-watch UI attach session.

type Session

type Session = runshared.UISession

func AttachRemote added in v0.2.0

func AttachRemote(ctx context.Context, opts RemoteAttachOptions) (Session, error)

AttachRemote boots the Bubble Tea cockpit from a daemon snapshot and then follows the daemon stream.

func AttachRemoteMultiple added in v0.2.7

func AttachRemoteMultiple(ctx context.Context, opts RemoteMultiRunAttachOptions) (Session, error)

AttachRemoteMultiple boots the tabbed Bubble Tea cockpit from a daemon-owned parent run snapshot.

func AttachRemoteReviewWatch added in v0.2.8

func AttachRemoteReviewWatch(ctx context.Context, opts RemoteReviewWatchAttachOptions) (Session, error)

AttachRemoteReviewWatch boots the tabbed review-watch cockpit from a daemon-owned parent snapshot.

func Setup

func Setup(ctx context.Context, jobs []job, cfg *config, bus *events.Bus[events.Event], enabled bool) Session

type SessionMetaState

type SessionMetaState = transcript.SessionMetaState

type SessionPlanState

type SessionPlanState = transcript.SessionPlanState

type SessionViewSnapshot

type SessionViewSnapshot = transcript.SessionViewSnapshot

type TranscriptEntry

type TranscriptEntry = transcript.Entry

type ValidationDecision

type ValidationDecision string
const (
	ValidationContinued ValidationDecision = "continued"
	ValidationAborted   ValidationDecision = "aborted"
)

func RunValidationFormWithIO

func RunValidationFormWithIO(
	report tasks.Report,
	registry *tasks.TypeRegistry,
	stderr io.Writer,
	input io.Reader,
	output io.Writer,
	clipboardWrite func(string) error,
) (ValidationDecision, error)

Jump to

Keyboard shortcuts

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