<?php
declare(strict_types=1);

namespace app\common;

// Candidate for a NEW dedicated cache-only worker, never for the existing B/C workers.
// This class must be preloaded before Composer; the actual worker must prove that by reflection.
if (\getenv('CDX_MEAL_SUGGESTION_GUARD') !== 'CACHE_ONLY_V1') {
    throw new \RuntimeException('CDX_COZE_GUARD_ENV_MISSING');
}

final class CozeApi
{
    public function __construct()
    {
        throw new \RuntimeException('CDX_COZE_CONSTRUCTION_BLOCKED');
    }

    public function workflow($suggest, $tips)
    {
        throw new \RuntimeException('CDX_COZE_WORKFLOW_BLOCKED');
    }

    public function workflowRun($workflowType, $parameters)
    {
        throw new \RuntimeException('CDX_COZE_WORKFLOW_RUN_BLOCKED');
    }
}
