plugins/file/commands/view architecture

Provides the file view command that previews workspace-relative files with path validation, size-bounded reading, binary detection, and dual CLI/web output handling.

Architectural role

Read-only preview command dispatched by adapter.ts/handleFile. It complements create/edit/delete/rename/tree/search and isolates bounded, validated reads from mutations. Handler.ts owns reading; child renderers own code highlighting, copy, inline editing, breadcrumbs, and timeline presentation.

Source map

Integration details