spring:
  application:
    name: th-hotel-server
  profiles:
    # 未显式指定 profile 时默认使用 dev，避免本地启动误连 test/prod。
    default: dev
  flyway:
    enabled: true
  servlet:
    multipart:
      # Debug EML 默认允许 10MB 文件；request 上限略大于文件上限，给 multipart 边界和字段留空间。
      max-file-size: ${DEBUG_EML_UPLOAD_MAX_FILE_BYTES:10485760}
      max-request-size: ${DEBUG_EML_UPLOAD_MAX_REQUEST_BYTES:12582912}

mybatis-plus:
  configuration:
    map-underscore-to-camel-case: true
  global-config:
    banner: false

agentbus:
  probe:
    enabled: false
  max-frame-bytes: 1048576
  capture:
    enabled: ${AGENTBUS_CAPTURE_ENABLED:true}
    default-hotel-id: HOTEL-TEST

superagent:
  task-result:
    clock-skew-seconds: 300
    nonce-ttl-seconds: 600
    max-body-bytes: 1048576

auth:
  session:
    # 登录 session 默认 12 小时；各环境可通过 AUTH_*_SESSION_TTL_MINUTES 覆盖。
    ttl-minutes: ${AUTH_SESSION_TTL_MINUTES:720}

mcp:
  # SuperAgent MCP 默认关闭；启用时必须通过部署环境配置高熵 Bearer Token。
  enabled: ${MCP_ENABLED:false}
  http-path: ${MCP_HTTP_PATH:/mcp}
  auth-token: ${MCP_AUTH_TOKEN:}
  enable-submit-task-results: ${MCP_ENABLE_SUBMIT_TASK_RESULTS:false}
  max-body-bytes: ${MCP_MAX_BODY_BYTES:10485760}

server:
  port: 8080
