# Add the auto-review permission preset without changing the deployment default.
- id: permission
  config:
    presets:
      read-only:
        sandbox: read-only
        approval: ask
        name: read-only
        description: Read files and run non-mutating operations; wider retries require approval.
      auto-review:
        sandbox: read-only
        approval: ask
        name: auto-review
        description: Start read-only, exempt proven workspace reads, and review Shell, network, MCP, and wider retries.
      workspace-write:
        sandbox: workspace-write
        approval: ask
        name: workspace-write
        description: Write inside the workspace; wider retries require approval.
      danger-full-access:
        sandbox: danger-full-access
        approval: never
        name: danger-full-access
        description: Full file access without approval prompts.

- insert:
    - id: auto-review
      name: dsh-auto-review-plugin
      config:
        provider: !!js process.env.DSH_AUTO_REVIEW_PROVIDER
        model: !!js process.env.DSH_AUTO_REVIEW_MODEL
        auditPath: !!js process.env.DSH_AUTO_REVIEW_AUDIT_PATH
        auditDetail: !!js process.env.DSH_AUTO_REVIEW_AUDIT_DETAIL
        manualOverride: !!js process.env.DSH_AUTO_REVIEW_MANUAL_OVERRIDE
