module "app" {
  source = "../../app"

  container_image   = var.container_image
  env               = "dev"
  vpc_id            = var.vpc_id
  health_check_path = var.health_check_path

  service = {
    target_cluster_arn = "arn:aws:ecs:us-east-1:923929101992:cluster/private-dev-services"
    resources = {
      cpu                   = 2048
      memory                = 16384
      ephemeral_storage_gib = 50
      fargate_spot_weight   = 0
      fargate_weight        = 1
    }
    # Private target group only — not exposed on the public ALB.
    target_group_arn = aws_lb_target_group.hu_agent_private.arn
  }

  # Dev sandbox: pollers OFF (endpoint-triggered only, never competes with PRD) +
  # SANDBOX_MODE (suppress Jira writes, draft PRs) + separate GitHub App identity +
  # dev Slack channel. See docs/superpowers/specs/2026-05-29-dev-sandbox-shadow-bot-design.md.
  env_vars = {
    JIRA_POLL_ENABLED             = "false"
    JIRA_TICKET_REVIEW_ENABLED    = "false"
    ATTEND_FEEDBACK_IN_PR_ENABLED = "false"
    PR_MENTION_ENABLED            = "false"
    SLACK_MENTIONS_ENABLED        = "false"
    DAILY_REPORT_ENABLED          = "false"

    # Suppress Jira writes + open PRs as draft.
    SANDBOX_MODE = "true"

    # Drive the Claude provider in dev (prod stays on the "cursor" default).
    # ANTHROPIC_API_KEY is wired as a shared secret; config requires it under this provider.
    AGENT_PROVIDER = "claude"

    # Dev GitHub App (hu-agent-dev[bot]).
    GITHUB_APP_ID              = "3935110"
    GITHUB_APP_INSTALLATION_ID = "137325663"
    GITHUB_BOT_USER            = "hu-agent-dev[bot]"
    IGNORED_COMMENT_LOGINS     = "hu-agent[bot],cursor[bot],hu-reviewer[bot],github-actions[bot]"

    # Dev Slack: every channel points to hu-agent-test (C0B19DPH18R), already the
    # dev-mode channel. All four set so a dev alert never reaches a prod channel.
    SLACK_CHANNEL_ID              = "C0B19DPH18R"
    SLACK_PR_COMMENT_CHANNEL_ID   = "C0B19DPH18R"
    SLACK_DAILY_REPORT_CHANNEL_ID = "C0B19DPH18R"
    SLACK_ALERT_CHANNEL_ID        = "C0B19DPH18R"
  }
}
