/** 拷貝任務各步驟所需外部憑證（與後端 gate 對齊） */

export type CopyMissionActionKey = 'research_map' | 'scan' | 'matrix' | 'copy_draft' | 'publish'

export const COPY_MISSION_ACTION_REQUIREMENTS: Record<
  CopyMissionActionKey,
  { label: string; needs: string[]; optional?: string[] }
> = {
  research_map: {
    label: '產生研究地圖',
    needs: ['AI Provider API key（設定頁）'],
  },
  scan: {
    label: '海巡爆款',
    needs: ['以下擇一：Chrome Session 爬蟲 / Threads API / Brave·Exa Web Search'],
    optional: ['Threads API（TA 留言樣本、藍勾資料較完整）'],
  },
  matrix: {
    label: '產出內容矩陣',
    needs: ['AI Provider API key（設定頁）', '先完成海巡'],
  },
  copy_draft: {
    label: '深仿寫',
    needs: ['AI Provider API key（設定頁）', '人設 8D 就緒'],
  },
  publish: {
    label: '發布貼文',
    needs: ['Threads API Access Token', 'Threads User ID（OAuth 連線後寫入）'],
  },
}