"use strict";
// SPDX-License-Identifier: AGPL-3.0-or-later
// Copyright (C) 2024-2026 Gracker (Chris)
// This file is part of SmartPerfetto. See LICENSE for details.
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveConclusionScene = resolveConclusionScene;
exports.buildConclusionScenePromptHints = buildConclusionScenePromptHints;
exports.resetConclusionSceneTemplateCacheForTests = resetConclusionSceneTemplateCacheForTests;
exports.getConclusionSceneTemplateDiagnostics = getConclusionSceneTemplateDiagnostics;
const scenePolicy_1 = require("./scenePolicy");
const sceneRouter_1 = require("./sceneRouter");
const sceneTemplateStore_1 = require("./sceneTemplateStore");
function resolveConclusionScene(params) {
    const templates = (0, sceneTemplateStore_1.getSceneTemplates)();
    return (0, sceneRouter_1.routeSceneTemplate)({
        intent: params.intent,
        findings: params.findings,
        templates,
    });
}
function buildConclusionScenePromptHints(params) {
    const routing = resolveConclusionScene(params);
    return (0, scenePolicy_1.buildScenePromptHintsFromTemplate)(routing.selectedTemplate, params.deepReasonLabel);
}
function resetConclusionSceneTemplateCacheForTests() {
    (0, sceneTemplateStore_1.resetSceneTemplateStoreCacheForTests)();
}
function getConclusionSceneTemplateDiagnostics() {
    return (0, sceneTemplateStore_1.getSceneTemplateStoreDiagnostics)();
}
//# sourceMappingURL=conclusionSceneTemplates.js.map