Help us shape the future of Go! Take the 2026 Go Developer Survey

background

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package background launches long provider turns outside a host agent's bounded shell-command lifetime. The detached RoleMux child remains the sole owner of the durable workflow operation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prepare

func Prepare(args []string, now time.Time) ([]string, string, error)

Prepare resolves the task ID for a provider-running command. A detached plan start receives an explicit generated ID so the caller can monitor it immediately without waiting for provider output.

func RepoRoot

func RepoRoot(start string) (string, error)

RepoRoot resolves the enclosing Git worktree without invoking Git. Both a normal .git directory and a linked-worktree .git file are accepted.

Types

type LaunchResult

type LaunchResult struct {
	TaskID     string `json:"task_id"`
	PID        int    `json:"pid"`
	StdoutPath string `json:"stdout_path"`
	StderrPath string `json:"stderr_path"`
}

func Launch

func Launch(executable, repoRoot string, args, environ []string, taskID string, now time.Time) (LaunchResult, error)

Jump to

Keyboard shortcuts

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