promptrefs

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package promptrefs resolves file and symbol references embedded in prompts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expand

func Expand(input string, workspace string, additionalDirs []string) string

func References

func References(input string) []string

Types

type DirectoryFile

type DirectoryFile struct {
	Path      string
	Bytes     int
	Truncated bool
	Body      string
}

type Reference

type Reference struct {
	Token     string
	Path      string
	Resolved  string
	Bytes     int
	Truncated bool
	Directory bool
	Files     []DirectoryFile
	Skipped   []string
	Error     string
	Body      string
}

Jump to

Keyboard shortcuts

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