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 ¶
- func Contract(ctx context.Context, root, input, target string) (workspace.Plan, error)
- func Errors(ctx context.Context, root, input, target string) (workspace.Plan, error)
- func Events(ctx context.Context, root, input, target string) (workspace.Plan, error)
- func New(ctx context.Context, root, target, kind string, opts scaffold.Options) (plan workspace.Plan, err error)
- func Schema(ctx context.Context, root, dsn string) (workspace.Plan, error)
- func Sync(ctx context.Context, root, version string) (workspace.Plan, error)
- func SyncPinned(ctx context.Context, root, version, workflowRef string) (workspace.Plan, error)
- func Wrap(ctx context.Context, root, input, target, iface, system string) (workspace.Plan, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contract ¶
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 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 ¶
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 ¶
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 ¶
SyncPinned plans with an explicit immutable workflow source, without external resolution. No git/download command runs while the workspace lock is held.
Types ¶
This section is empty.