userstate

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name    = ".jacu-harness"
	HomeEnv = "JACU_HOME"
)

Variables

This section is empty.

Functions

func Dir

func Dir() (string, error)

func DirIn

func DirIn(home string) string

func DirOrLocal

func DirOrLocal() string

func RunHome added in v0.4.0

func RunHome(projectID, runID string) (string, error)

RunHome is the isolated directory one workspace run may write. It is never the process-wide user home: two open runs must not share toolchain, memory or telemetry files.

func WorktreesDir

func WorktreesDir(home string) string

Types

type Outcome

type Outcome struct {
	Moved             bool
	From, To, Skipped string
}

func Migrate

func Migrate(home, currentName, legacyName string) (Outcome, error)

Migrate stays as a generic utility for a future rename. It is no longer wired into Dir: the .jacu-mcp lineage was retired in SDD-019, and an automatic migration that fails closed when both directories exist cost more than it returned — it surfaced as "home directory unavailable", sending the binary to its cwd fallback and littering checkouts with state directories.

Jump to

Keyboard shortcuts

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