Documentation
¶
Index ¶
- func LoadPromptByURI(uri string) (string, error)
- func ParseRun(raw map[string]any) (op.Run, error)
- func ResolveRunPaths(baseDir string, run *op.Run)
- type ScanOptions
- type Scanner
- func (s *Scanner) Err() error
- func (s *Scanner) Nodes() []*op.OpNode
- func (s *Scanner) ScanAgents(dir string, depth int) []*op.OpNode
- func (s *Scanner) ScanSkills(dir string, depth int) []*op.OpNode
- func (s *Scanner) ScanTools(dir string, depth int) []*op.OpNode
- func (s *Scanner) WithNodeIndexBaseDir(baseDir string) *Scanner
- func (s *Scanner) WithPathAwareAgentDedup() *Scanner
- func (s *Scanner) WithRefBaseDir(baseDir string) *Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPromptByURI ¶
func ResolveRunPaths ¶
ResolveRunPaths 解析 run.command 中的相对路径
Types ¶
type ScanOptions ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶
func (*Scanner) WithNodeIndexBaseDir ¶
func (*Scanner) WithPathAwareAgentDedup ¶
WithPathAwareAgentDedup keeps one logical agent visible at multiple workspace paths. This is only for dir agent scan results; global node refresh should still dedup by id.
func (*Scanner) WithRefBaseDir ¶
WithRefBaseDir overrides the base directory used for @agents/@skills/@tools references.
Click to show internal directories.
Click to hide internal directories.