Introduce a `tasks` feature flag to gate the durable Tasks feature (task workspaces, UI, createTask tool, and task/* routes). The flag defaults off and can be enabled via `COWORK_ENABLE_TASKS=1` env var or the dev-only desktop settings toggle. Packaged builds intentionally ignore locally flipped overrides to prevent dev settings from leaking into production; they resolve all flags to build-time defaults plus env overrides as an escape hatch.
Gating is implemented at multiple layers: UI components conditionally render based on the flag, JSON-RPC routes are unregistered when disabled, the createTask tool is absent from the tool set, and the config layer materializes the resolved boolean.
Includes comprehensive test coverage for feature flag resolution, route registration, UI normalization, and tool availability.