compiler

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package compiler coordinates source import, composition, target rendering, and artifacts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildMode

type BuildMode string

BuildMode selects whether compilation writes or checks generated output.

const (
	BuildModeBuild BuildMode = "build"
	BuildModeCheck BuildMode = "check"
)

type CompilationResult

type CompilationResult struct {
	Plan                     model.BuildPlan
	Diagnostics              []model.Diagnostic
	Drift                    bool
	NativeVerificationFailed bool
}

CompilationResult is the complete result of one compilation.

func Compile

func Compile(request CompileRequest) CompilationResult

Compile runs one deterministic compilation transaction.

type CompileRequest

type CompileRequest struct {
	WorkspaceRoot string
	Manifest      model.SourceManifest
	Targets       []model.TargetID
	Packages      []model.PackageID
	Mode          BuildMode
	NativeVerify  bool
}

CompileRequest contains operational context and normalized compiler inputs.

Directories

Path Synopsis
Package composition resolves source inventories for one target.
Package composition resolves source inventories for one target.
Package model defines the target-neutral data exchanged by compiler subsystems.
Package model defines the target-neutral data exchanged by compiler subsystems.
Package source routes explicit source manifests to their topology importers.
Package source routes explicit source manifests to their topology importers.
bundle
Package bundle imports Agent Bundler's canonical bundle source layout.
Package bundle imports Agent Bundler's canonical bundle source layout.
frontmatter
Package frontmatter parses the YAML frontmatter used by Agent Skills files.
Package frontmatter parses the YAML frontmatter used by Agent Skills files.
skillrepo
Package skillrepo imports explicit roots from a generic skills repository.
Package skillrepo imports explicit roots from a generic skills repository.

Jump to

Keyboard shortcuts

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