specmode

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 7 Imported by: 0

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