#!/usr/bin/env node
/**
 * Preview the `madarx` hero boot banner with live catalog data, without booting
 * the stack. Dev-only: `npm run banner`.
 */
import os from 'node:os';
import path from 'node:path';
import { renderHeroBanner } from '../lib/cli/banner.js';
import { listToolCategories, MARKETPLACE_TOOL_COUNT } from '../lib/tools/registry.js';
import * as S from '../lib/marketplace-seeds.js';

console.log(renderHeroBanner({
  version: '2.12.1',
  home: path.join(os.homedir(), '.madarx'),
  url: 'http://127.0.0.1:8787',
  engine: 'claude-code',
  commit: process.env.MADARX_COMMIT || undefined,
  session: '20260604_5fb045',
  toolCats: listToolCategories(),
  toolCount: MARKETPLACE_TOOL_COUNT,
  skillGroups: S.listDefaultSkillGroups(),
  skillCount: (S.DEFAULT_SKILL_SLUGS || []).length,
  behind: false,
}));
