specmode

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 7 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

Index

Constants

View Source
const (
	SubmitToolName            = "submit_spec"
	ControlSpecReviewRequired = "spec_review_required"
)
View Source
const DraftSystemPrompt = `` /* 1081-byte string literal not displayed */
View Source
const (
	SpecDirName = ".zero/specs"
)

Variables

This section is empty.

Functions

func ImplementationPrompt

func ImplementationPrompt(specBody string, specFilePath string, draftSessionID string, userComment string) string

func LoadSpecFile

func LoadSpecFile(workspaceRoot string, specFilePath string) (string, string, error)

func RegisterDraftTools

func RegisterDraftTools(registry *tools.Registry, workspaceRoot string, now func() time.Time)

func ResolveSpecFilePath

func ResolveSpecFilePath(workspaceRoot string, specFilePath string) (string, error)

Types

type SaveOptions

type SaveOptions struct {
	WorkspaceRoot string
	Title         string
	Plan          string
	Now           func() time.Time
}

type SavedSpec

type SavedSpec struct {
	ID           string
	Title        string
	Path         string
	RelativePath string
}

func SaveDraft

func SaveDraft(options SaveOptions) (SavedSpec, error)

type SubmitTool

type SubmitTool struct {
	// contains filtered or unexported fields
}

func NewSubmitTool

func NewSubmitTool(workspaceRoot string, now func() time.Time) SubmitTool

func (SubmitTool) Description

func (tool SubmitTool) Description() string

func (SubmitTool) Name

func (tool SubmitTool) Name() string

func (SubmitTool) Parameters

func (tool SubmitTool) Parameters() tools.Schema

func (SubmitTool) Run

func (tool SubmitTool) Run(_ context.Context, args map[string]any) tools.Result

func (SubmitTool) Safety

func (tool SubmitTool) Safety() tools.Safety

Jump to

Keyboard shortcuts

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