prompt

package
v2026.701.4 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RetiredTemplateNames = []string{"plan", "build"}

Functions

func AnonymizeNativeToolInvocationSyntax added in v2026.617.1

func AnonymizeNativeToolInvocationSyntax() string

func AtMentionWorkflowSection added in v2026.606.3

func AtMentionWorkflowSection() string

func EffectiveShell

func EffectiveShell() string

func EmbeddedTemplate added in v2026.615.0

func EmbeddedTemplate(name string) (string, bool)

func EnsureTemplatesInstalled added in v2026.615.0

func EnsureTemplatesInstalled() error

func EnsureTemplatesInstalledOnlyDir added in v2026.615.0

func EnsureTemplatesInstalledOnlyDir() error

func ExternalToolBridgeInvocationSyntax added in v2026.624.0

func ExternalToolBridgeInvocationSyntax() string

func ImagesWorkflowSection added in v2026.602.2

func ImagesWorkflowSection() string

func InstallTemplates added in v2026.615.0

func InstallTemplates(cfg *config.Root, out io.Writer, readLine func(string) (string, error)) error

func LegacyOnlyToolInvocationSyntax

func LegacyOnlyToolInvocationSyntax(planningActive bool) string

func LegacyToolInvocationSyntaxAppend

func LegacyToolInvocationSyntaxAppend(planningActive bool) string

func NativeToolInvocationSyntax

func NativeToolInvocationSyntax(legacyFallbackEnabled bool) string

func PurgeRetiredTemplateConfig added in v2026.617.0

func PurgeRetiredTemplateConfig(cfg *config.Root) bool

func ReadTemplateFile added in v2026.615.0

func ReadTemplateFile(name string) (string, error)

func RemoveRetiredTemplates added in v2026.617.0

func RemoveRetiredTemplates() error

func RenderAgent added in v2026.610.0

func RenderAgent(d Data) (string, error)

func RenderBtw added in v2026.621.0

func RenderBtw(d BtwData) (string, error)

func RenderBtwSystem added in v2026.621.0

func RenderBtwSystem(d Data) (string, error)

func RenderChat added in v2026.610.0

func RenderChat(d Data) (string, error)

func RenderSummarize

func RenderSummarize(d SummarizeData) (string, error)

func RenderSummarizeSystem

func RenderSummarizeSystem(d SummarizeData) (string, error)

func RenderTitle

func RenderTitle(d TitleData) (string, error)

func ResetTemplateToEmbedded added in v2026.615.0

func ResetTemplateToEmbedded(name string) error

func SHA256Hex added in v2026.615.0

func SHA256Hex(content string) string

func SetInteractiveSessionCheckForTest added in v2026.615.0

func SetInteractiveSessionCheckForTest(fn func() bool) func()

func StartupTemplates added in v2026.615.0

func StartupTemplates(cfg *config.Root, out io.Writer, readLine func(string) (string, error)) error

func SummarizeSystemFallback

func SummarizeSystemFallback(language string) string

func SystemWithNoThink

func SystemWithNoThink(disableThinking bool, content string) string

func TemplateContent added in v2026.615.0

func TemplateContent(name string) (string, error)

func TemplateNames added in v2026.615.0

func TemplateNames() []string

func TemplatesDir added in v2026.615.0

func TemplatesDir() (string, error)

func ToolInvocationSyntaxSection

func ToolInvocationSyntaxSection(legacyEnabled, legacyForced, planningActive bool) string

func WriteTemplateFile added in v2026.615.0

func WriteTemplateFile(name, content string) error

Types

type BtwData added in v2026.621.0

type BtwData struct {
	Transcript      string
	Question        string
	Language        string
	DisableThinking bool
}

type Data

type Data struct {
	Tools                 string
	Syntax                string
	LegacySyntax          string
	LegacyToolsEnabled    bool
	LegacyToolsForced     bool
	ExternalToolBridge    bool
	ExtraRules            string
	CustomRules           string
	GlobalInstructions    string
	RepoInstructions      string
	Language              string
	UserName              string
	DisableThinking       bool
	SystemOS              string
	SystemBits            string
	SystemCPUFamily       string
	SystemGOARCH          string
	WorkspaceAbsolutePath string
	Shell                 string
	ImagesWorkflow        string
	AtMentionWorkflow     string

	PlanningActive   bool
	ActivePlanName   string
	PlanImplementing bool

	Anonymize bool
}

type SummarizeData

type SummarizeData struct {
	Transcript      string
	Language        string
	DisableThinking bool
	ImagesWorkflow  string
}

type TitleData

type TitleData struct {
	Language        string
	DisableThinking bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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