devcompose

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: AGPL-3.0 Imports: 17 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 devcompose plans the one native pnpm workspace owned by a feature. Planning and receipt validation never write to selected sources or outputs.

Index

Constants

View Source
const RootEnvironment = "PNPM_CONFIG_WORKSPACE_DIR"
View Source
const Version = "12.14.0"

Variables

This section is empty.

Functions

func CheckInputs

func CheckInputs(plan Plan) error

func Validate

func Validate(w devcontract.ResolvedWorkspace, plan Plan) error

Validate checks topology, not freshness, so stopped unlink/recovery can preserve source edits. CheckInputs is a separate mandatory installation and runtime gate; generated bytes are attested by the canonical link journal.

Types

type File

type File struct {
	Path string
	Data []byte
}

type LockConvergence

type LockConvergence struct {
	Section         string   `json:"section"`
	PackageKey      string   `json:"packageKey"`
	PreferredSource string   `json:"preferredSource"`
	OtherSource     string   `json:"otherSource"`
	ChangedFields   []string `json:"changedFields"`
}

LockConvergence describes a seed reconciliation, not the final native graph. Sources and field names contain no registry URLs or resolution values.

type Package

type Package struct {
	Path    string `json:"path"`
	Name    string `json:"name"`
	Version string `json:"version,omitempty"`
	Private bool   `json:"private"`
}

type Plan

type Plan struct {
	SchemaVersion int               `json:"schemaVersion"`
	WorkspaceID   string            `json:"workspaceID"`
	Root          string            `json:"root"`
	Version       string            `json:"version"`
	Roots         []Root            `json:"roots"`
	Packages      []Package         `json:"packages"`
	Targets       map[string]string `json:"targets"`
	SourceHashes  map[string]string `json:"sourceHashes"`
	Files         []File            `json:"-"`
	Convergence   []LockConvergence `json:"convergence,omitempty"`
}

func Installed

func Installed(w devcontract.ResolvedWorkspace, consumer string) (Plan, error)

func New

func New(w devcontract.ResolvedWorkspace, roots []Root, targets map[string]string) (Plan, error)

type Root

type Root struct {
	Path    string            `json:"path"`
	Version string            `json:"version"`
	Targets map[string]string `json:"targets"`
}

Jump to

Keyboard shortcuts

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