plugins/file/commands/create architecture

Implements the 'create' file/folder command — defining its dir/name arguments and folder/tree UI options, validating names and workspace containment, and adapting handler results to CLI or web tree responses.

Architectural role

Leaf creation endpoint within the commands file-operations family (create/delete/edit/rename/view/tree/search). Sits beneath the file plugin's centralized dispatcher (plugins/file/adapter.ts/handleFile) and registration (init.ts) aggregation at plugins/file/commands — invoked via dispatch fan-out, not directly. Completes the file lifecycle as the write-origin that sibling view/edit/delete/rename/tree commands subsequently operate on, sharing the validate-workspace-containment → execute filesystem → adapt to CLI/web pattern via shared workspace-root/path-validation and web tree rendering.

Source map

Integration details