devoutputs

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: AGPL-3.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package devoutputs owns explicitly selected repository producer outputs. It is native-independent and shared by workspace builders and actual process owners.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsViteConfigTemporaryFile

func IsViteConfigTemporaryFile(name string) bool

IsViteConfigTemporaryFile identifies only Vite's exact source-root loader stamp names. Watchers and ownership snapshots share this one convention.

func Publish

func Publish(ctx context.Context, stages ...*Stage) error

Publish preflights every supplied destination before any source publication. Captured after-images and rename progress survive interruption for exact retry.

func Published added in v0.8.0

func Published(ctx context.Context, w devcontract.ResolvedWorkspace, consumer string, kind Producer) (string, error)

Published returns the content digest of a staged producer output that still exactly matches its last controlled publication, including directory identities. It refuses outputs that were never published by a controlled producer, have a live/unfinished writer or interrupted recovery, or changed since publication. The digest omits directory identities, so an identical republished tree has the same digest; it is not reuse authority by itself.

func ResetDependencyTrees added in v0.9.0

func ResetDependencyTrees(ctx context.Context, w devcontract.ResolvedWorkspace, roots []string, duringRestoration bool) ([]string, error)

ResetDependencyTrees deletes every journal-owned dependency tree and cache (modules, TypeScript, Vite loader and Vite optimizer caches), forgets their entries, and deletes any unrecorded node_modules directly below the supplied package roots. It never adopts foreign bytes: new trees come only from a later recorded writer. Other producer outputs and their journal entries are left untouched.

Unfinished writer records of the reset kinds are discarded, so the caller must hold the stopped-profile guard proving no producer process is alive.

duringRestoration admits a journal whose restoration (unlink/remove) was interrupted. Reset-kind removal intents complete by deleting their trees; every other entry and the Restoring state stay for the resumed restoration.

func ValidatedOwnedPaths added in v0.8.0

func ValidatedOwnedPaths(ctx context.Context, w devcontract.ResolvedWorkspace) ([]string, error)

ValidatedOwnedPaths returns exact currently validated producer boundaries. It grants no mutation authority and never adopts an unrecorded output tree.

Types

type Producer

type Producer string
const (
	Distribution Producer = "distribution"
	Bindings     Producer = "bindings"
	Shims        Producer = "shims"
	YAMLWorker   Producer = "yaml-worker"
)

type Stage

type Stage struct {
	Directory string
	// contains filtered or unexported fields
}

func Prepare

func Prepare(ctx context.Context, w devcontract.ResolvedWorkspace, consumer string, kind Producer) (*Stage, error)

func (*Stage) Abort

func (stage *Stage) Abort(ctx context.Context) error

Abort records the controlled failed producer's exact stage before removing only that stage. It never rewinds user source or an in-progress publication.

type ViteBuild added in v0.7.0

type ViteBuild struct {
	// contains filtered or unexported fields
}

ViteBuild owns one finite ordered canonical build, not reusable validation. Finish requires every actual producer and descendant to have joined.

func BeginViteBuild added in v0.7.0

func BeginViteBuild(ctx context.Context, w devcontract.ResolvedWorkspace, plan devcompose.Plan, consumers []string) (*ViteBuild, error)

func (*ViteBuild) Environment added in v0.7.0

func (build *ViteBuild) Environment(ctx context.Context, consumerRoot string) (string, error)

Environment checks each actual consumer immediately before its producer. Immutable aggregate content is never accepted from an intermediate image.

func (*ViteBuild) Finish added in v0.7.0

func (build *ViteBuild) Finish(ctx context.Context) error

type Writer

type Writer struct {
	Environment []string
	// contains filtered or unexported fields
}

Writer is a real process-lifetime capability. Finish is legal only after the actual command and its owned descendants have stopped, never on transport loss.

func BeginCompositionInstall

func BeginCompositionInstall(ctx context.Context, w devcontract.ResolvedWorkspace, p devcompose.Plan) (*Writer, error)

BeginCompositionInstall reserves only the fixed feature modules directory and actual packages selected by the validated composition. The returned capability must outlive the install command and all its descendants; uncertain disposal must retain it without calling Finish.

func BeginInstall

func BeginInstall(ctx context.Context, w devcontract.ResolvedWorkspace, consumerRoot string) (*Writer, error)

func BeginVite

func BeginVite(ctx context.Context, w devcontract.ResolvedWorkspace, consumerRoot string) (*Writer, error)

func (*Writer) Finish

func (writer *Writer) Finish(ctx context.Context) error

Jump to

Keyboard shortcuts

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