Documentation
¶
Index ¶
- Variables
- func AddChapter(_ context.Context, args []string, out io.Writer) error
- func AddFragment(_ context.Context, args []string, out io.Writer) error
- func AddSection(_ context.Context, args []string, out io.Writer) error
- func Cover(ctx context.Context, args []string, out io.Writer) error
- func Init(ctx context.Context, args []string, out io.Writer) error
- func InstallSkill(args []string, out io.Writer) error
- func PrintHelp(out io.Writer)
- func Query(ctx context.Context, args []string, out io.Writer) error
- func Reply(_ context.Context, args []string, out io.Writer) error
- func Review(_ context.Context, args []string, out io.Writer) error
- func Serve(ctx context.Context, args []string, out io.Writer, openByDefault ...bool) error
- func Spec(args []string, out io.Writer) error
- func Status(ctx context.Context, args []string, out io.Writer) error
- func Thread(_ context.Context, args []string, out io.Writer) error
- func Validate(_ context.Context, args []string, out io.Writer) error
- func VersionString() string
- type StatusError
Constants ¶
This section is empty.
Variables ¶
var ( Version = "0.2.0-dev" Commit = "" BuildDate = "" )
Version, Commit, and BuildDate describe the running binary. Release builds overwrite them with -ldflags -X; local builds keep the -dev default.
Functions ¶
func InstallSkill ¶
InstallSkill prints an agent-agnostic bootstrap prompt. The active coding agent owns the platform-specific skill location and format; the saga binary supplies the behavior contract without mutating the user's repository.
func Query ¶
Query executes one read-only application query and writes exactly one JSON value for every ordinary outcome, including help and invalid input. The returned StatusError only communicates the already-rendered exit status to the process entrypoint; callers must not print it.
func VersionString ¶
func VersionString() string
VersionString renders the version plus whatever build metadata was injected.
Types ¶
type StatusError ¶
type StatusError struct{ Code int }
func (*StatusError) Error ¶
func (e *StatusError) Error() string