<?php
/**
 * Phase 13 provider boundary.
 *
 * The web demo is deterministic and uses no API credit.
 * The later Termux/server runner will call providers in separate stages:
 *  1. research/provenance ingest
 *  2. Being-kernel / pattern / world-frame annotation
 *  3. dynamic Lens Plan compilation
 *  4. canonical Book manuscript generation + red-team + repair
 *  5. semantic Thread traversal
 *  6. Page-Weave resolution to exact spread windows
 *  7. per-spread art generation from art_briefs.json
 *  8. art red-team/regeneration
 *  9. composition/release audit
 *
 * API secrets remain server-side and never appear in browser JavaScript.
 */
function being_ai_available(array $config): bool {
    return !empty($config['ai']['enabled']) && !empty($config['ai']['api_key']);
}
function being_ai_interpret_thought(string $text,array $context,array $config): ?array {
    return null;
}
