#!/usr/bin/env bash
#MISE description="Prime AI context with key project documentation"

set -euo pipefail

PROJECT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
DOCS_DIR="$PROJECT_DIR/docs"

# Key files for AI context priming, in order of importance
FILES=(
    "$PROJECT_DIR/INTERVIEW_FORMAT.md"
    "$DOCS_DIR/tutorials/ai-assistance-guide.md"
    "$DOCS_DIR/how-to/agent-change-process.md"
    "$DOCS_DIR/reference/tooling.md"
    "$DOCS_DIR/index.md"
    "$DOCS_DIR/reference/reference.md"
    "$DOCS_DIR/how-to/how-to.md"
    "$DOCS_DIR/explanation/explanation.md"
    "$DOCS_DIR/tutorials/tutorials.md"
)

# Concatenate files with headers showing paths
# Defaults are tuned for AI consumption (plain text, file headers only)
bat --style=header --color=never --decorations=always "$@" "${FILES[@]}"
