Skip to main content

Module github_address

Module github_address 

Source
Expand description

GitHub resource spellings must not be interpreted as filesystem paths.

Constants§

GITHUB_RESOURCE_NOT_FILE
Error code for a GitHub address handed to a tool that only works on files.
GITHUB_WRITE_ENABLE_HINT
Where and how to turn GitHub comment writes on; shared by every refusal so the agent always learns the exact setting.

Functions§

github_resource_not_file_message
Refusal text for a GitHub address (issue://…, pr://…) given to a tool that can only touch local files. Such a spelling must never be resolved into a project path: joined onto the root it becomes <root>/issue:/N and a file or directory would be created there instead of a comment.
is_github_resource_path
reject_github_resource_path
Returns an error response when path is a GitHub address. Mutating handlers call this before resolving a path so the address can never become a file on disk.