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 ¶
const RootEnvironment = "PNPM_CONFIG_WORKSPACE_DIR"
const Version = "12.14.0"
Variables ¶
This section is empty.
Functions ¶
func CheckInputs ¶
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 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 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)