"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const assert_1 = require("assert");
const AgentRegistry_1 = require("./orchestrator/AgentRegistry");
const SquadRegistry_1 = require("./orchestrator/SquadRegistry");
const WorldClassCommands_1 = require("./cli/WorldClassCommands");
const forbidden = 'Life_Tech_IA/Segundo Cerebro_Rafael_Local/LARA';
delete process.env.OPENLIFE_AGENT_ROOTS;
delete process.env.OPENLIFE_SQUAD_ROOT;
delete process.env.OPENLIFE_CLOUD_AGENTS_FILE;
delete process.env.OPENLIFE_CLOUD_SQUADS_FILE;
const agents = new AgentRegistry_1.AgentRegistry().all();
const squads = new SquadRegistry_1.SquadRegistry().all();
const world = new WorldClassCommands_1.WorldClassCommands();
const agentList = world.agentsListReal();
const squadList = world.squadsListReal();
(0, assert_1.strict)(!agentList.source.includes(forbidden), `agents list source must not default to Obsidian/LARA: ${agentList.source}`);
(0, assert_1.strict)(!squadList.source.includes(forbidden), `squads list source must not default to Obsidian/LARA: ${squadList.source}`);
for (const agent of agents) {
    (0, assert_1.strict)(!agent.sourcePath.includes(forbidden), `agent sourcePath must not default to Obsidian/LARA: ${agent.sourcePath}`);
}
for (const squad of squads) {
    (0, assert_1.strict)(!squad.sourcePath.includes(forbidden), `squad sourcePath must not default to Obsidian/LARA: ${squad.sourcePath}`);
}
console.log('TEST_OPENLIFE_RUNTIME_SOURCE_TRUTH_OK');
