Skip to main content

Module editor_handlers

Module editor_handlers 

Source

Statics§

SCRATCH_SESSION_TOKEN 🔒

Functions§

editor_may_change 🔒
The editor changes files only under the user’s home folder (an allowlist). A WSL distro’s file through \\wsl.localhost counts when it is under a distro user’s home folder (remote::wsl_fs::in_home): the same rule, in the distro. Its /mnt/<letter> is a Windows drive and never counts here.
in_a_distro_home 🔒
inject_global_bundles 🔒
Prepend Global Memory, then agent_block (the agent’s picked bundles, format_agent_bundle_block), into the BUNDLE_SECTION_HEADING section of a CLAUDE.md string, mirroring the injection done by write_agent_config_files in the agent.open RPC path. If the file has no such section, a new one is inserted before # Available Skills (or at the end of the file).
is_a_home 🔒
A home folder itself, the user’s or a distro user’s: never renamed or deleted.
list_drives 🔒
register_editor_handlers
scratch_session_token 🔒