/**
 * olam observe <world> — Stream thoughts from a world.
 *
 * Currently a placeholder matching the MCP server's stub.
 * Will connect to the container's SSE /api/stream endpoint.
 */
import pc from 'picocolors';
import { loadContext } from '../context.js';
import { printError } from '../output.js';
export function registerObserve(program) {
    program
        .command('observe')
        .description('Stream thoughts from a world (coming soon)')
        .argument('<world>', 'World ID')
        .action(async (worldId) => {
        const { ctx, error } = await loadContext();
        if (!ctx) {
            printError(error?.message ?? 'Olam is not configured. Run `olam init` first.');
            process.exitCode = 1;
            return;
        }
        const world = ctx.worldManager.getWorld(worldId);
        if (!world) {
            printError(`World "${worldId}" not found. Run \`olam list\` to see worlds.`);
            process.exitCode = 1;
            return;
        }
        // D3: warn-not-block version pin check (once per world per session).
        {
            const { checkVersionPin } = await import('@olam/core/src/world/version-pin.js');
            checkVersionPin(worldId, world.workspacePath);
        }
        console.log(pc.yellow('Observation is coming in a future release.'));
        console.log(pc.dim('This will stream the world\'s reasoning in real-time.'));
        const containerName = `olam-${worldId}-devbox`;
        console.log(`\n${pc.dim(`For now: docker exec -it ${containerName} tmux attach -t claude-main -r`)}`);
    });
}
//# sourceMappingURL=observe.js.map