agentplan

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 17 Imported by: 0 modules, 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 agentplan builds reviewable plans from AppKit's existing generators. It does not execute generators supplied by the workspace or change files. Schema planning additionally runs explicitly authorized, trusted migration SQL in a disposable database; applying that captured output needs no database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contract

func Contract(ctx context.Context, root, input, target string) (workspace.Plan, error)

Contract plans the generated contract package. Input and target are portable paths relative to root; target may be ".". The YAML is also an asserted input.

func Errors

func Errors(ctx context.Context, root, input, target string) (workspace.Plan, error)

Errors plans one error-code file from a captured YAML input.

func Events

func Events(ctx context.Context, root, input, target string) (workspace.Plan, error)

Events plans one file from a captured YAML input, without rereading its path.

func New

func New(ctx context.Context, root, target, kind string, opts scaffold.Options) (plan workspace.Plan, err error)

New renders a domain/system scaffold into a new or empty target directory below an existing workspace. Plans only create files: existing generated-path contents cannot be overwritten even when equal. Inputs are explicit options and embedded framework templates, captured by the resulting plan payload.

func Schema

func Schema(ctx context.Context, root, dsn string) (workspace.Plan, error)

Schema executes trusted, captured migrations in a disposable database and plans their documentation. It never writes repository files. The caller must explicitly authorize scratch-database execution; migrations are not sandboxed SQL. Applying the resulting plan is entirely offline and filesystem-only.

func Sync

func Sync(ctx context.Context, root, version string) (workspace.Plan, error)

Sync plans the same three generated files as ruleset.Sync. The configuration is an asserted input, so editing it invalidates an outstanding plan.

func SyncPinned

func SyncPinned(ctx context.Context, root, version, workflowRef string) (workspace.Plan, error)

SyncPinned plans with an explicit immutable workflow source, without external resolution. No git/download command runs while the workspace lock is held.

func Wrap

func Wrap(ctx context.Context, root, input, target, iface, system string) (workspace.Plan, error)

Wrap selects an explicit interface source file rather than globbing a mutable directory. Other files in the package are not inputs to this plan; normal Go compilation still validates the whole package after apply.

Types

This section is empty.

Jump to

Keyboard shortcuts

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