plan

package
v0.0.0-...-6b1cd05 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const WatchInterval = 3 * time.Second

WatchInterval is the default polling interval for plan file changes.

Variables

This section is empty.

Functions

func ScanCmd

func ScanCmd(sessionID string, agentType session.AgentType, workDir, agentSessionID string) tea.Cmd

ScanCmd reads the most recent plan file for the given provider and returns PlanUpdatedMsg.

func WatchCmd

func WatchCmd(sessionID string, interval time.Duration) tea.Cmd

WatchCmd returns a tea.Cmd that ticks at the given interval.

Types

type PlanCheckMsg

type PlanCheckMsg struct {
	SessionID string
}

PlanCheckMsg triggers a plan file scan.

type PlanUpdatedMsg

type PlanUpdatedMsg struct {
	SessionID string
	Content   string
}

PlanUpdatedMsg carries new plan content to the UI.

Jump to

Keyboard shortcuts

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