graph

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 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 graph elaborates frontend-neutral topology into immutable Graph IR.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	Code    string      `json:"code" yaml:"code"`
	Path    string      `json:"path,omitempty" yaml:"path,omitempty"`
	Span    syntax.Span `json:"span" yaml:"span"`
	Message string      `json:"message" yaml:"message"`
	Notes   []string    `json:"notes,omitempty" yaml:"notes,omitempty"`
}

Diagnostic is a stable, source-mapped compiler finding.

func (Diagnostic) Error

func (diagnostic Diagnostic) Error() string

type Errors

type Errors struct {
	Diagnostics []Diagnostic
}

Errors is returned only when elaboration cannot produce a sound graph. It can carry several independent diagnostics from one compile.

func (*Errors) Error

func (failures *Errors) Error() string

type FileLoader

type FileLoader struct{}

FileLoader resolves local imports relative to the importing topology.

func (FileLoader) Load

func (FileLoader) Load(importerPath, importPath string) (syntax.File, error)

type Options

type Options struct {
	Catalog        *resolve.Catalog
	Lock           resolve.Lock
	ResolutionMode resolve.Mode
	Revision       uint64
	ChannelDepth   map[string]int
	Loader         SourceLoader
	// contains filtered or unexported fields
}

Options controls pure elaboration. ChannelDepth contains exceptional, positive overrides keyed by explicit or endpoint-derived edge identity.

type Result

type Result struct {
	Graph ir.Graph
	Lock  resolve.Lock
}

Result is the canonical IR and the exact minimal lock consumed or generated for it.

func Compile

func Compile(file syntax.File, options Options) (Result, error)

Compile is the sole normative elaborator. Imports are expanded as typed subgraph instances, but their identities and hierarchy remain in Graph IR.

type SourceLoader

type SourceLoader interface {
	Load(importerPath, importPath string) (syntax.File, error)
}

SourceLoader resolves a graph-library import without running code or acquiring resources. The returned file must retain its actual source path.

type SourceLoaderFunc

type SourceLoaderFunc func(importerPath, importPath string) (syntax.File, error)

func (SourceLoaderFunc) Load

func (function SourceLoaderFunc) Load(importerPath, importPath string) (syntax.File, error)

Directories

Path Synopsis
Package assembly is the graph-native production boundary between an immutable config plan and the executable plugins selected for that plan.
Package assembly is the graph-native production boundary between an immutable config plan and the executable plugins selected for that plan.
Package binding adapts one existing binding.Binding into a coarse graph element.
Package binding adapts one existing binding.Binding into a coarse graph element.
adaptivevideo
Package adaptivevideo adapts the stable Realtime video and observation operations to the typed boundaries exported by a graph-native adaptive video composition.
Package adaptivevideo adapts the stable Realtime video and observation operations to the typed boundaries exported by a graph-native adaptive video composition.
realtimecu
Package realtimecu adapts the stable OpenAI Realtime-compatible session surface to the locked graph-native Realtime-CU authority graph.
Package realtimecu adapts the stable OpenAI Realtime-compatible session surface to the locked graph-native Realtime-CU authority graph.
scenarioconversation
Package scenarioconversation adapts the stable OpenAI Realtime-compatible session surface to a locked, fine-grained conversational graph.
Package scenarioconversation adapts the stable OpenAI Realtime-compatible session surface to a locked, fine-grained conversational graph.
Package catalog publishes immutable graph-plan metadata for discovery.
Package catalog publishes immutable graph-plan metadata for discovery.
Package config compiles the separate graph topology, resolution lock, values, channel, deployment, and secret-catalog artifacts into one immutable launch plan.
Package config compiles the separate graph topology, resolution lock, values, channel, deployment, and secret-catalog artifacts into one immutable launch plan.
Package deployment owns the separate, non-secret deployment-binding artifact.
Package deployment owns the separate, non-secret deployment-binding artifact.
Package editor provides a pure, graph-aware language-service core for canonical .ortg topology source.
Package editor provides a pure, graph-aware language-service core for canonical .ortg topology source.
Package evidence defines the separate, non-executable manifest that binds empirical benchmark profiles to exact plans, elements, implementations, hardware, and load definitions.
Package evidence defines the separate, non-executable manifest that binds empirical benchmark profiles to exact plans, elements, implementations, hardware, and load definitions.
Package inspect derives static and live inspection models and generated diagrams from the exact immutable Graph IR mounted by the runtime.
Package inspect derives static and live inspection models and generated diagrams from the exact immutable Graph IR mounted by the runtime.
Package ir defines the immutable, language-neutral graph representation consumed by runtime and inspection tooling.
Package ir defines the immutable, language-neutral graph representation consumed by runtime and inspection tooling.
Package launch composes exact graph configuration artifacts and a broad, resource-free plugin catalog into a graph-native Realtime session provider.
Package launch composes exact graph configuration artifacts and a broad, resource-free plugin catalog into a graph-native Realtime session provider.
profile
Package profile resolves a strict, immutable deployment profile through an explicitly installed graph-application plugin.
Package profile resolves a strict, immutable deployment profile through an explicitly installed graph-application plugin.
Package manifest implements the strict normalized YAML/JSON graph frontend.
Package manifest implements the strict normalized YAML/JSON graph frontend.
Package resolve pins symbolic element references to immutable descriptors.
Package resolve pins symbolic element references to immutable descriptors.
Package runtime mounts and executes immutable OpenRealtime Graph IR.
Package runtime mounts and executes immutable OpenRealtime Graph IR.
Package schema derives a strict JSON Schema for the values artifact of one frozen graph.
Package schema derives a strict JSON Schema for the values artifact of one frozen graph.
Package sdk provides an optional pure Go frontend for generated graphs and repository tests.
Package sdk provides an optional pure Go frontend for generated graphs and repository tests.
Package secret resolves secret:// references at mount time without placing credential values in topology, Graph IR, diagrams, or evidence artifacts.
Package secret resolves secret:// references at mount time without placing credential values in topology, Graph IR, diagrams, or evidence artifacts.
Package syntax parses and formats the compact OpenRealtime graph language.
Package syntax parses and formats the compact OpenRealtime graph language.
Package validate provides graph-wide mechanical checks and named lint profiles over immutable Graph IR.
Package validate provides graph-wide mechanical checks and named lint profiles over immutable Graph IR.
Package values owns the separate, schema-addressed element-values artifact.
Package values owns the separate, schema-addressed element-values artifact.

Jump to

Keyboard shortcuts

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