phase

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package phase provides Neo's built-in and configured named prompts. A phase changes the instructions for one turn and supplies a small UI label; it does not own workflow state or enforce lifecycle transitions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Augment

func Augment(base string, definitions []Definition) string

Augment advertises only phase names and descriptions in the stable system prompt. Full prompt bodies are injected only when a phase is invoked.

func DisplayName

func DisplayName(name string) string

DisplayName turns an invocation name into a compact UI label.

func ExpandInvocation

func ExpandInvocation(definition Definition, args string) string

ExpandInvocation expands one slash-invoked phase with optional arguments.

Types

type Definition

type Definition struct {
	Name        string `yaml:"-"`
	Description string `yaml:"description"`
	Prompt      string `yaml:"prompt"`
}

Definition is one named prompt exposed as /name in the interactive UI.

func Defaults

func Defaults() []Definition

Defaults returns fresh copies of Neo's opinionated built-in phase prompts.

func Find

func Find(definitions []Definition, name string) (Definition, bool)

Find returns one definition by its case-insensitive invocation name.

func Resolve

func Resolve(configured map[string]Definition) ([]Definition, error)

Resolve overlays configured definitions on Neo's defaults. Defaults retain their product order; additional configured phases are appended by name.

Jump to

Keyboard shortcuts

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