Documentation
¶
Index ¶
- func Bindings(root string) (map[string]string, error)
- func Check(root string, bindings map[string]string) error
- func HashTree(root string) (map[string]string, error)
- func InventoryDigest(files map[string]string) string
- func Materialize(source, target string) (map[string]string, error)
- func MaterializeClaude(source, root, workspace string, plan tool.Object) error
- func MaterializeSeed(source, target string, plan tool.Object) (map[string]string, error)
- func MaterializeStartup(source, target, workspace string) (map[string]string, error)
- func RebindMaterialization(packageRoot, execution, oldPrefix, newPrefix string) error
- func Reset(root string) error
- func ResetNative(root string) error
- func SealMaterialization(overlay, execution, sourceReference string) error
- func SeedSource(root string) string
- func StartupDerived(execution string) (map[string]string, error)
- func ValidateBindings(bindings map[string]string) error
- func ValidateMaterialization(packageRoot, execution string) error
- func VerifyTree(root string, bindings map[string]string) error
- type Binding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bindings ¶
Bindings validates the selected material's complete history inventory and returns the manifest-bound relative paths.
func Check ¶
Check verifies the exact files recorded in an execution descriptor without treating peer-created runtime files as source history.
func InventoryDigest ¶ added in v0.2.0
InventoryDigest binds a descriptorless legacy tree without inventing a material.json file hash. Paths use the same canonical ordering as inventory.
func Materialize ¶
Materialize copies only independently bound history files and verifies both the source and destination bytes.
func MaterializeClaude ¶
Claude's public process/history APIs require an existing canonical WorkDir. Keep original native identities and storage untouched, and explicitly derive additional project-key/cwd copies for this attempt's isolated workspace.
func MaterializeSeed ¶ added in v0.2.0
MaterializeSeed prepares only native startup files; it never clones a frozen source package into a baseline, template, route or writable execution.
func MaterializeStartup ¶ added in v0.2.0
MaterializeStartup retains the complete writable native startup environment. Workspace is the published route identity, independent of the staging target. Templates have no execution envelope and therefore keep no sealed derivatives or materialization receipt; an execution creates its own independent evidence.
func RebindMaterialization ¶ added in v0.2.0
RebindMaterialization runs before the execution envelope is sealed. Both the source bytes and sealed derived bytes must exist at their final references.
func ResetNative ¶ added in v0.2.0
ResetNative replaces native history while preserving the writable project snapshot prepared for an existing-child record.
func SealMaterialization ¶ added in v0.2.0
SealMaterialization moves the only persistent derived bytes into the execution and replaces runtime-tree references with package-relative references.
func SeedSource ¶ added in v0.2.0
SeedSource recognizes the fixed complete source/project closure. Legacy seed roots remain readable at their original location.
func StartupDerived ¶ added in v0.2.0
StartupDerived identifies the sealed startup copies. Record may subsequently change these native files; only unchanged copies can be omitted from runtime.
func ValidateBindings ¶
func ValidateMaterialization ¶ added in v0.2.0
ValidateMaterialization checks sealed transformations without reopening their former native workspace. All file references are relative to one package.
Types ¶
type Binding ¶ added in v0.2.0
type Binding struct {
Role string `json:"role"`
SessionID string `json:"sessionId"`
ParentSessionID string `json:"parentSessionId,omitempty"`
ChildSessionID string `json:"childSessionId,omitempty"`
Project string `json:"project"`
NativeTarget string `json:"nativeTarget"`
Source string `json:"source"`
SHA256 string `json:"sha256"`
}
Binding maps one native target to immutable bytes. Source is material-relative; nativeTarget is a logical location in the writable native environment.
func CanonicalBindings ¶ added in v0.2.0
CanonicalBindings validates explicit targets independently of the complete closure inventory. Project snapshots and source reports need no native target.
func CaptureCanonical ¶ added in v0.2.0
func CaptureCanonical(seed, overlay, core string, plan tool.Object, startupDerived map[string]string) ([]Binding, error)
CaptureCanonical closes a full frozen seed and only changed native runtime files. Reuse is by the same declared target and identity, never a hash search.