sysprompt

package
v0.31.5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSpec

type FileSpec struct {
	Scope          Scope
	Path           string
	Title          string
	Description    string
	DefaultContent string
}

func Specs

func Specs(scope Scope) []FileSpec

type FileState

type FileState struct {
	Scope          Scope    `json:"scope"`
	Path           string   `json:"path"`
	Title          string   `json:"title"`
	Description    string   `json:"description"`
	Exists         bool     `json:"exists"`
	Editable       bool     `json:"editable"`
	SizeBytes      int64    `json:"size_bytes,omitempty"`
	UpdatedAt      string   `json:"updated_at,omitempty"`
	Content        string   `json:"content,omitempty"`
	StarterContent string   `json:"starter_content,omitempty"`
	PromptTargets  []string `json:"prompt_targets,omitempty"`
}

func Get

func Get(root string, scope Scope, path string) (FileState, error)

func List

func List(root string, scope Scope) ([]FileState, error)

func Save

func Save(root string, scope Scope, path string, content string) (FileState, error)

type Scope

type Scope string
const (
	ScopeWorkspace Scope = "workspace"
	ScopeAgent     Scope = "agent"
)

Jump to

Keyboard shortcuts

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