plugins/file/commands/rename architecture

Implements workspace file/folder rename within its current directory via subcommand definition, validated filesystem rename with workspace containment checks, and adapter to handler and web UI tree rendering.

Architectural role

Leaf mutation member of the workspace file-operations family (create/delete/edit/view/tree/search) within the 20-subcommand commands aggregation. Provides the constrained same-directory rename variant — distinct from general move — and plugs into the parent's validate-containment → execute → adapt lifecycle via the centralized dispatcher fan-out (adapter.ts/handleFile), reusing shared workspace-root resolution, containment/IGNORE filtering and CLI-vs-web rendering without owning shared logic itself. No child directories.

Source map

Integration details