plugins/file/commands/init architecture

Implements the init file subcommand for initializing a Git repository in the resolved workspace, providing command definition, workspace-root adaptation, and git execution with existing-repository checks.

Architectural role

Git repository initialization through the centralized dispatcher. It reuses shared workspace resolution/containment, implements idempotency in the handler, and isolates Bun.spawnSync execution from later Git workflows.

Source map

Integration details