// Domain data — sourced from ActionBoard.ai PDF v11 + AIOps Maturity infographic

// 7-level AIOps Maturity model from the infographic
const MATURITY_LEVELS = [
  { id: 1, name: 'AI Action Apprentice',     short: 'L1', desc: 'Manual execution · basic tool usage',          color: '#a1a1aa', auto: 20,  risk: 85, cost: 100 },
  { id: 2, name: 'AI Action Practitioner',   short: 'L2', desc: 'AI-assisted actions · auto-execution begins',  color: '#3b82f6', auto: 35,  risk: 70, cost: 85  },
  { id: 3, name: 'AI Action Specialist',     short: 'L3', desc: 'Action Graphs · workflow automation',          color: '#10b981', auto: 50,  risk: 55, cost: 65  },
  { id: 4, name: 'AI Action Lead',           short: 'L4', desc: 'Voltron orchestration · cross-pod',            color: '#22c55e', auto: 65,  risk: 38, cost: 48  },
  { id: 5, name: 'AI Action Architect',      short: 'L5', desc: 'End-to-end pipelines · enterprise governance', color: '#f59e0b', auto: 80,  risk: 22, cost: 30  },
  { id: 6, name: 'AI Action Visionary',      short: 'L6', desc: 'Near-full automation · pioneering methods',    color: '#f97316', auto: 90,  risk: 12, cost: 18  },
  { id: 7, name: 'Chief AutoAction Officer', short: 'L7', desc: 'Autonomous RAOARA · Proof of Thought',         color: '#a855f7', auto: 100, risk: 5,  cost: 11  },
];

// RAOARA pods — labels from infographic (Act / Review / Adapt, not Apply / Reflect / Amplify)
const RAOARA_PODS = [
  {
    id: 'recognize', letter: 'R', name: 'Recognize', sub: 'Clear scoped goal',
    accent: '#a1a1aa',
    level: 5, score: 78, trend: '+12',
    runs: 142, streakDays: 18, lastRun: '2h ago',
    nextMilestone: 'Run 20 contrast pairs to unlock L6',
    blurb: 'Asks clarifying questions until the goal is crystal clear and scoped.',
    chatGreeting: 'Hi! I\u2019m your Recognize coach. Want to sharpen a goal you\u2019re working on today, or set one from scratch?',
  },
  {
    id: 'acquire', letter: 'A', name: 'Acquire', sub: 'Right data acquired',
    accent: '#3b82f6',
    level: 4, score: 64, trend: '+8',
    runs: 98, streakDays: 12, lastRun: '5h ago',
    nextMilestone: 'Connect 2 more data sources',
    blurb: 'Dispatches sub-agents across docs, web, APIs — centralizes the answer set.',
    chatGreeting: 'Tell me where your knowledge lives and I\u2019ll wire up the retrievers.',
  },
  {
    id: 'organize', letter: 'O', name: 'Organize', sub: 'Action Graph built',
    accent: '#10b981',
    level: 5, score: 81, trend: '+15',
    runs: 156, streakDays: 22, lastRun: '1h ago',
    nextMilestone: 'Stabilize 3 graph templates',
    blurb: 'Shapes raw data into the exact structure your goal needs.',
    chatGreeting: 'Want me to draft an Action Graph for one of your recurring goals?',
  },
  {
    id: 'act', letter: 'A', name: 'Act', sub: 'Agents execute',
    accent: '#22c55e',
    level: 4, score: 58, trend: '+6',
    runs: 64, streakDays: 7, lastRun: '8h ago',
    nextMilestone: 'Approve 5 more Voltron deploys',
    blurb: 'Executes the action — API calls, deploys, writes back to systems.',
    chatGreeting: 'Pick a Lion and a target system — I\u2019ll walk you through your first guarded apply.',
  },
  {
    id: 'review', letter: 'R', name: 'Review', sub: 'Proof of Thought',
    accent: '#f59e0b',
    level: 3, score: 38, trend: '+3',
    runs: 28, streakDays: 3, lastRun: '2d ago',
    nextMilestone: 'Review 10 traces this week',
    blurb: 'Audits work for accuracy, drift, and policy compliance.',
    needsAttention: true,
    chatGreeting: 'Let\u2019s run through your last few traces — I\u2019ll show you what to accept, reject, or flag.',
  },
  {
    id: 'adapt', letter: 'A', name: 'Adapt', sub: 'Graph crystallises',
    accent: '#a855f7',
    level: 2, score: 24, trend: '—',
    runs: 9, streakDays: 0, lastRun: '11d ago',
    nextMilestone: 'Promote 1 ActionList to scheduled',
    blurb: 'Crystallises successful patterns into reusable, scheduled automations.',
    needsAttention: true,
    chatGreeting: 'Show me a workflow you keep repeating manually — let\u2019s turn it into a scheduled ActionList.',
  },
];

const LIONS = [
  { id: 'black', name: 'Black Lion', role: 'Orchestrator', color: '#18181b', status: 'active' },
  { id: 'green', name: 'Green Lion', role: 'RAG Retriever', color: '#059669', status: 'active' },
  { id: 'blue', name: 'Blue Lion', role: 'Builder', color: '#0284c7', status: 'active' },
  { id: 'yellow', name: 'Yellow Lion', role: 'Security Gate', color: '#d97706', status: 'active' },
  { id: 'red', name: 'Red Lion', role: 'Deployment', color: '#e11d48', status: 'idle' },
];

const HOW_TO_STEPS = [
  {
    id: 'step1', title: 'Set your first goal in the Recognize pod',
    desc: 'Spend 3 minutes letting the Recognize agent interrogate your goal until it\u2019s crystal clear.',
    duration: '3 min', done: true, icon: 'Target',
    chat: {
      title: 'Recognize agent · goal sharpening',
      options: [
        'Sharpen a goal I\u2019m already working on',
        'Set a fresh goal from scratch',
        'Convert a vague idea into a scoped goal',
        'Show me an example first',
      ],
      example: 'Example: "Cut weekly status-report writing time from 90 min to 20 min by EOQ" — specific, measurable, time-boxed.',
    },
  },
  {
    id: 'step2', title: 'Form Voltron — invite all five Lion agents',
    desc: 'Bring Black, Green, Blue, Yellow, and Red into a single formation for your first ActionList.',
    duration: '4 min', done: true, icon: 'Sparkles',
    chat: {
      title: 'Voltron formation · invite the Lions',
      options: [
        'Auto-pick Lions based on my goal',
        'Customize each Lion\u2019s permissions',
        'Use the default formation (recommended)',
        'Run with just 3 Lions for now',
      ],
      example: 'Default formation: Black orchestrates, Green retrieves your docs, Blue builds drafts, Yellow scans for secrets, Red stays standby.',
    },
  },
  {
    id: 'step3', title: 'Run RAOARA on a real task end-to-end',
    desc: 'Pick a task you already do weekly. Walk it through all six phases to seed your crystallization data.',
    duration: '12 min', done: false, inProgress: true, progress: 60, icon: 'Activity',
    chat: {
      title: 'RAOARA end-to-end · pick a task',
      options: [
        'Use my last drafted goal',
        'Replay a recent task I did manually',
        'Try a guided example task',
        'Just walk me through the 6 phases',
      ],
      example: 'Replaying a manual task is the fastest way to build crystallization data — the system sees your real decisions, not a demo.',
    },
  },
  {
    id: 'step4', title: 'Approve your first Apply phase action',
    desc: 'Give Voltron consent to write back to one of your systems. Builds your consent ledger.',
    duration: '2 min', done: false, icon: 'Zap',
    chat: {
      title: 'Act phase · grant your first consent',
      options: [
        'Connect Gmail (send drafts as me)',
        'Connect Slack (post on my behalf)',
        'Connect GitHub (open PRs in my orgs)',
        'Connect Notion (write to my workspaces)',
      ],
      example: 'Consent is per-action-pattern. Approve once, the consent ledger remembers — Voltron auto-executes the same pattern next time.',
    },
  },
  {
    id: 'step5', title: 'Reflect on the run — accept or reject traces',
    desc: 'Your reviews become contrast pairs the steering vectors learn from.',
    duration: '5 min', done: false, icon: 'Eye',
    chat: {
      title: 'Review phase · Proof of Thought',
      options: [
        'Walk me through accepting traces',
        'Show me how rejection feeds steering vectors',
        'Run a Reflect on my last 3 runs',
        'What gets flagged automatically?',
      ],
      example: 'Each accept/reject becomes a contrast pair: compliant vs non-compliant. CAST converts these into steering vectors live.',
    },
  },
  {
    id: 'step6', title: 'Amplify a successful sequence into an automation',
    desc: 'Promote your first ActionList to a scheduled, repeatable workflow.',
    duration: '4 min', done: false, icon: 'GitBranch',
    chat: {
      title: 'Adapt phase · schedule it',
      options: [
        'Schedule daily at 9:00 AM',
        'Trigger on inbox event',
        'Trigger on new ActionList delegated to me',
        'Run on demand only — but save the recipe',
      ],
      example: 'Once the graph crystallises, future runs start smarter. You\u2019re scheduling a pattern, not a script.',
    },
  },
];

const FEATURE_UPDATES = [
  {
    id: 'u1', tag: 'Release', tagColor: 'violet',
    title: 'CAST steering vectors v0.4 — adaptive Review mode',
    body: 'Review-phase anomalies now auto-compose all five governance vectors at high strength until the run clears.',
    date: 'Today', author: 'AI Labs', pinned: true, icon: 'Lab',
  },
  {
    id: 'u2', tag: 'New', tagColor: 'emerald',
    title: 'Action Assist MCP endpoints in public preview',
    body: 'Publish a public profile + MCP endpoint so other users can delegate ActionList items to you.',
    date: '2d ago', author: 'Platform', icon: 'Server',
  },
  {
    id: 'u3', tag: 'Tip', tagColor: 'amber',
    title: 'Use Tree-of-Thought when your goals branch mid-run',
    body: 'When Recognize keeps losing scope, switch the pod\u2019s agentic pattern from CoT to ToT.',
    date: '4d ago', author: 'Field Notes', icon: 'Book',
  },
  {
    id: 'u4', tag: 'Lab', tagColor: 'sky',
    title: 'Voltron experiments now running with AIUB + 6 university partners',
    body: 'Faculty cohorts are producing the human-action dataset that backs the next steered SLM release.',
    date: '1w ago', author: 'AI Labs', icon: 'Sparkles',
  },
  {
    id: 'u5', tag: 'Tip', tagColor: 'amber',
    title: 'Pattern Discovery in 4–8 hours vs 3–4 weeks manually',
    body: 'L5–L6 maturity unlocks Fast Action Simulation. Your AIOps maturity directly compresses discovery time.',
    date: '1w ago', author: 'Field Notes', icon: 'Zap',
  },
];

const PROFILE_ACTIONS = [
  { id: 'linkedin', label: 'LinkedIn',      placeholder: 'linkedin.com/in/jarjisimam', icon: 'Linkedin', value: 'jarjisimam',   verified: true,  hint: 'Pulled into your Action Assist public profile',  required: true },
  { id: 'github',   label: 'GitHub',        placeholder: 'github.com/jarjisimam',      icon: 'Github',   value: 'jarjisimam',   verified: true,  hint: 'Surfaces your repos to Blue Lion',               required: true },
  { id: 'twitter',  label: 'X / Twitter',   placeholder: '@jarjisimam',                icon: 'Twitter',  value: '',             verified: false, hint: 'Optional — increases delegation match rate' },
  { id: 'website',  label: 'Personal site', placeholder: 'https://\u2026',             icon: 'Globe',    value: '',             verified: false, hint: 'Linked from your public profile' },
  { id: 'slack',    label: 'Slack handle',  placeholder: '@jarjis · workspace',        icon: 'Slack',    value: '',             verified: false, hint: 'For Action Assist delegation pings' },
  { id: 'calendly', label: 'Calendly',      placeholder: 'calendly.com/jarjisimam',    icon: 'Calendar', value: '',             verified: false, hint: 'Lets community route bookings via MCP' },
  { id: 'notion',   label: 'Notion',        placeholder: 'notion.so/jarjisimam',       icon: 'Notion',   value: '',             verified: false, hint: 'Green Lion reads workspaces you grant' },
  { id: 'google',   label: 'Google',        placeholder: 'jarjis@gmail.com',           icon: 'Google',   value: 'jarjis@gmail.com', verified: true, hint: 'Drive + Calendar + Gmail scopes (granular)' },
];

const PROFILE_USER = {
  name: 'Jarjis Imam',
  handle: 'jarjisimam',
  initial: 'J',
  role: 'Pilot · Founding Member',
  joined: 'Joined Mar 2026',
  waitlistPosition: 247,
  referrals: 4,
  points: 320,
  actionAssistEndpoint: 'mcp://jarjisimam.actionboard.ai/assist',
  publicProfileUrl: 'actionboard.ai/u/jarjisimam',
};

Object.assign(window, {
  MATURITY_LEVELS, RAOARA_PODS, LIONS, HOW_TO_STEPS, FEATURE_UPDATES, PROFILE_ACTIONS, PROFILE_USER,
});
