Documentation
¶
Overview ¶
Package commands defines typed kernel command and result contracts.
Index ¶
- type ReviewsFetchCommand
- type ReviewsFetchResult
- type RunStartCommand
- type RunStartResult
- type WorkflowArchiveCommand
- type WorkflowArchiveResult
- type WorkflowPrepareCommand
- type WorkflowPrepareResult
- type WorkflowSyncCommand
- type WorkflowSyncResult
- type WorkspaceMigrateCommand
- type WorkspaceMigrateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReviewsFetchCommand ¶
type ReviewsFetchCommand struct {
WorkspaceRoot string
Name string
Round int
Provider string
PR string
Nitpicks bool
}
ReviewsFetchCommand fetches provider review comments into a workflow review round.
func ReviewsFetchFromConfig ¶
func ReviewsFetchFromConfig(cfg core.Config) ReviewsFetchCommand
ReviewsFetchFromConfig translates the legacy core.Config shape into a typed review-fetch command.
func (ReviewsFetchCommand) CoreConfig ¶
func (c ReviewsFetchCommand) CoreConfig() core.Config
CoreConfig converts the command into the existing fetch-reviews configuration shape.
type ReviewsFetchResult ¶
type ReviewsFetchResult struct {
Result *model.FetchResult
}
ReviewsFetchResult wraps the existing review fetch result contract.
type RunStartCommand ¶
type RunStartCommand struct {
Runtime model.RuntimeConfig
}
RunStartCommand starts one run using the shared planning and execution pipeline.
func RunStartFromConfig ¶
func RunStartFromConfig(cfg core.Config) RunStartCommand
RunStartFromConfig translates the legacy core.Config shape into a typed run-start command.
func (RunStartCommand) RuntimeConfig ¶
func (c RunStartCommand) RuntimeConfig() *model.RuntimeConfig
RuntimeConfig converts the command into the shared runtime configuration.
type RunStartResult ¶
RunStartResult captures the run identifiers produced by a successful start command.
type WorkflowArchiveCommand ¶
type WorkflowArchiveCommand struct {
WorkspaceRoot string
RootDir string
Name string
TasksDir string
Force bool
}
WorkflowArchiveCommand archives completed workflow directories.
func WorkflowArchiveFromArchiveConfig ¶
func WorkflowArchiveFromArchiveConfig(cfg model.ArchiveConfig) WorkflowArchiveCommand
WorkflowArchiveFromArchiveConfig translates the direct archive config into a typed archive command without caller-side field copying.
func WorkflowArchiveFromConfig ¶
func WorkflowArchiveFromConfig(cfg core.Config) WorkflowArchiveCommand
WorkflowArchiveFromConfig translates the legacy core.Config shape into a typed archive command.
func (WorkflowArchiveCommand) CoreConfig ¶
func (c WorkflowArchiveCommand) CoreConfig() model.ArchiveConfig
CoreConfig converts the command into the existing archive configuration shape.
type WorkflowArchiveResult ¶
type WorkflowArchiveResult struct {
Result *model.ArchiveResult
}
WorkflowArchiveResult wraps the existing archive result contract.
type WorkflowPrepareCommand ¶
type WorkflowPrepareCommand struct {
Runtime model.RuntimeConfig
}
WorkflowPrepareCommand prepares workflow jobs without executing them.
func WorkflowPrepareFromConfig ¶
func WorkflowPrepareFromConfig(cfg core.Config) WorkflowPrepareCommand
WorkflowPrepareFromConfig translates the legacy core.Config shape into a typed prepare command.
func (WorkflowPrepareCommand) RuntimeConfig ¶
func (c WorkflowPrepareCommand) RuntimeConfig() *model.RuntimeConfig
RuntimeConfig converts the command into the shared runtime configuration.
type WorkflowPrepareResult ¶
type WorkflowPrepareResult struct {
Preparation *core.Preparation
RunID string
ArtifactsDir string
}
WorkflowPrepareResult captures the planned jobs and run artifact identifiers.
type WorkflowSyncCommand ¶
type WorkflowSyncCommand struct {
WorkspaceRoot string
RootDir string
Name string
TasksDir string
DryRun bool
}
WorkflowSyncCommand reconciles workflow artifacts into the durable sync store.
func WorkflowSyncFromConfig ¶
func WorkflowSyncFromConfig(cfg core.Config) WorkflowSyncCommand
WorkflowSyncFromConfig translates the legacy core.Config shape into a typed sync command.
func WorkflowSyncFromSyncConfig ¶
func WorkflowSyncFromSyncConfig(cfg model.SyncConfig) WorkflowSyncCommand
WorkflowSyncFromSyncConfig translates the direct sync config into a typed sync command without caller-side field copying.
func (WorkflowSyncCommand) CoreConfig ¶
func (c WorkflowSyncCommand) CoreConfig() model.SyncConfig
CoreConfig converts the command into the existing sync configuration shape.
type WorkflowSyncResult ¶
type WorkflowSyncResult struct {
Result *model.SyncResult
}
WorkflowSyncResult wraps the existing sync result contract.
type WorkspaceMigrateCommand ¶
type WorkspaceMigrateCommand struct {
WorkspaceRoot string
RootDir string
Name string
TasksDir string
ReviewsDir string
DryRun bool
}
WorkspaceMigrateCommand migrates workflow artifacts under one workspace target.
func WorkspaceMigrateFromConfig ¶
func WorkspaceMigrateFromConfig(cfg core.Config) WorkspaceMigrateCommand
WorkspaceMigrateFromConfig translates the legacy core.Config shape into a typed migration command.
func WorkspaceMigrateFromMigrationConfig ¶
func WorkspaceMigrateFromMigrationConfig(cfg model.MigrationConfig) WorkspaceMigrateCommand
WorkspaceMigrateFromMigrationConfig translates the direct migration config into a typed migration command without lossy field remapping at the caller.
func (WorkspaceMigrateCommand) CoreConfig ¶
func (c WorkspaceMigrateCommand) CoreConfig() model.MigrationConfig
CoreConfig converts the command into the existing migration configuration shape.
type WorkspaceMigrateResult ¶
type WorkspaceMigrateResult struct {
Result *model.MigrationResult
}
WorkspaceMigrateResult wraps the existing migration result contract.