Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
terfyn
command
|
|
|
internal
|
|
|
apply
Package apply applies plans to control-plane and runtime state.
|
Package apply applies plans to control-plane and runtime state. |
|
audit
Package audit provides tamper-evident hash chains for trace_events rows (issue #116).
|
Package audit provides tamper-evident hash chains for trace_events rows (issue #116). |
|
cli
Package cli defines terfyn commands, global flags (design doc section 11.1), and exit-code mapping (section 11.2).
|
Package cli defines terfyn commands, global flags (design doc section 11.1), and exit-code mapping (section 11.2). |
|
config
Package config resolves the effective project configuration from layered sources.
|
Package config resolves the effective project configuration from layered sources. |
|
deploy
Package deploy builds and hydrates immutable, content-addressed deployment snapshots (issue #207, design doc §14).
|
Package deploy builds and hydrates immutable, content-addressed deployment snapshots (issue #207, design doc §14). |
|
effects
Package effects computes transitive effect bounds over a resolved ProjectGraph (issue #189, ADR 002) and enforces them against Policy.spec.effects (issue #190).
|
Package effects computes transitive effect bounds over a resolved ProjectGraph (issue #189, ADR 002) and enforces them against Policy.spec.effects (issue #190). |
|
engine
Package engine orchestrates workflow execution, steps, and interpolation.
|
Package engine orchestrates workflow execution, steps, and interpolation. |
|
execir
Package execir defines the execution IR: the derived, never-authored projection of a checked .agent program where control flow lives (ADR 002 §5, issue #199).
|
Package execir defines the execution IR: the derived, never-authored projection of a checked .agent program where control flow lives (ADR 002 §5, issue #199). |
|
inspect
Package inspect provides a read-only local HTTP server for browsing SQLite deployment and runtime state (runs, trace events, applied resources, checkpoints).
|
Package inspect provides a read-only local HTTP server for browsing SQLite deployment and runtime state (runs, trace events, applied resources, checkpoints). |
|
lang
Package lang implements the lexer, parser, and typed AST for the .agent surface syntax fixed by ADR 002 (docs/adr/002-language-frontend-and-ir-expressiveness.md).
|
Package lang implements the lexer, parser, and typed AST for the .agent surface syntax fixed by ADR 002 (docs/adr/002-language-frontend-and-ir-expressiveness.md). |
|
lang/check
Package check implements the ADR 002 §5 "checked program": the pass that sits between the #196 typed AST and the two sibling projections (the #197 resource projection and the #199 execution lowering, internal/execir).
|
Package check implements the ADR 002 §5 "checked program": the pass that sits between the #196 typed AST and the two sibling projections (the #197 resource projection and the #199 execution lowering, internal/execir). |
|
lang/lower
Package lower turns the #196 typed .agent AST into the existing resource model — the resource projection of ADR 002 §5.
|
Package lower turns the #196 typed .agent AST into the existing resource model — the resource projection of ADR 002 §5. |
|
models
Package models abstracts model providers and client interfaces.
|
Package models abstracts model providers and client interfaces. |
|
models/anthropic
Package anthropic implements the Anthropic Messages API client (design doc §7.1, issue #69).
|
Package anthropic implements the Anthropic Messages API client (design doc §7.1, issue #69). |
|
plan
Package plan computes desired vs current state diffs and risk summaries.
|
Package plan computes desired vs current state diffs and risk summaries. |
|
policy
Package policy evaluates permissions, budgets, and approval rules for runs, steps, and tool calls (design doc section 12.2 H MVP).
|
Package policy evaluates permissions, budgets, and approval rules for runs, steps, and tool calls (design doc section 12.2 H MVP). |
|
project
Package project loads the root project.yaml, expands spec.imports, merges resources into a spec.ProjectGraph.
|
Package project loads the root project.yaml, expands spec.imports, merges resources into a spec.ProjectGraph. |
|
render
Package render formats CLI output as tables, JSON, or YAML (design doc sections 5.1, 11.1, 18).
|
Package render formats CLI output as tables, JSON, or YAML (design doc sections 5.1, 11.1, 18). |
|
runtime
Package runtime defines the execution adapter contract between the control plane (declare / validate / plan / apply / inspect) and workflow runtimes.
|
Package runtime defines the execution adapter contract between the control plane (declare / validate / plan / apply / inspect) and workflow runtimes. |
|
runtime/catalog
Package catalog lists workflow runtime names validated at spec time (issue #114).
|
Package catalog lists workflow runtime names validated at spec time (issue #114). |
|
runtime/local
Package local implements the MVP disk-backed workflow runtime (issue #23, design doc section 16).
|
Package local implements the MVP disk-backed workflow runtime (issue #23, design doc section 16). |
|
scaffold
Package scaffold generates individual project resources (tools, policies, workflows, agents) and appends them to project.yaml imports with atomic multi-file writes (issue #113).
|
Package scaffold generates individual project resources (tools, policies, workflows, agents) and appends them to project.yaml imports with atomic multi-file writes (issue #113). |
|
schema
Package schema loads JSON Schema files and validates JSON instances (design doc §9.1–§9.2, §13.3).
|
Package schema loads JSON Schema files and validates JSON instances (design doc §9.1–§9.2, §13.3). |
|
spec
Package spec defines resource envelopes, MVP kind structs (§6–§7), YAML loading, project-level defaults (NormalizeProjectGraph), reference resolution (ResolveReferences), and graph validation (ValidateProjectGraph, §9.1–§9.5 MVP subset).
|
Package spec defines resource envelopes, MVP kind structs (§6–§7), YAML loading, project-level defaults (NormalizeProjectGraph), reference resolution (ResolveReferences), and graph validation (ValidateProjectGraph, §9.1–§9.5 MVP subset). |
|
state
Package state stores deployment state and runtime metadata (design doc §5.2, §14).
|
Package state stores deployment state and runtime metadata (design doc §5.2, §14). |
|
state/sqlite
Package sqlite implements deployment and runtime/trace state in SQLite (design doc §§14.1–14.2).
|
Package sqlite implements deployment and runtime/trace state in SQLite (design doc §§14.1–14.2). |
|
statejson
Package statejson provides shared JSON record shapes for SQLite runtime and deployment rows consumed by the CLI (logs, state) and the read-only web inspector (issue #109).
|
Package statejson provides shared JSON record shapes for SQLite runtime and deployment rows consumed by the CLI (logs, state) and the read-only web inspector (issue #109). |
|
telemetry
Package telemetry provides optional OpenTelemetry trace export using gen_ai semantic conventions (issue #108).
|
Package telemetry provides optional OpenTelemetry trace export using gen_ai semantic conventions (issue #108). |
|
testkit
Package testkit implements fixture-based workflow tests for terfyn test (design doc §5.1, §17.4).
|
Package testkit implements fixture-based workflow tests for terfyn test (design doc §5.1, §17.4). |
|
tools
Package tools defines tool registries and integrations (MCP, HTTP, native).
|
Package tools defines tool registries and integrations (MCP, HTTP, native). |
|
tools/http
Package httptool runs Tool specs with type http (design doc §7.3, issue #20).
|
Package httptool runs Tool specs with type http (design doc §7.3, issue #20). |
|
tools/mcp
Package mcp implements MCP tool transport per design doc §7.3.
|
Package mcp implements MCP tool transport per design doc §7.3. |
|
tools/native
Package native implements built-in native tool operations (echo, identity, offline GitHub demo ops, and optional live GitHub REST operations when GITHUB_TOKEN is set).
|
Package native implements built-in native tool operations (echo, identity, offline GitHub demo ops, and optional live GitHub REST operations when GITHUB_TOKEN is set). |
|
trace
Package trace records structured execution events for logs and debugging.
|
Package trace records structured execution events for logs and debugging. |
|
util
Package util holds small shared helpers (identifiers, fs, errors, etc.).
|
Package util holds small shared helpers (identifiers, fs, errors, etc.). |
|
migrations
|
|
|
sqlite
Package sqlitemigrations holds embedded SQLite migration scripts for deployment state.
|
Package sqlitemigrations holds embedded SQLite migration scripts for deployment state. |
Click to show internal directories.
Click to hide internal directories.