Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLineNumbers ¶
AddLineNumbers takes a string of content and returns a new string with line numbers prefixed
func IsPathContained ¶
isPathContained attempts to verify whether `path` is the same as or contained within `directory`. It is overly cautious, returning false even if `path` IS contained within `directory`, but the two paths use different casing, and we happen to be on a case-insensitive filesystem. This is ultimately to attempt to stop an LLM from going outside of where I tell it to. Additional layers of security should be considered.. run in a VM/container.
func IsPathWithinCWD ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.