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:/Nand 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
pathis a GitHub address. Mutating handlers call this before resolving a path so the address can never become a file on disk.