/**
 * Nexus Prime — Runtime Context Assembler
 *
 * Assembles file and memory context for workers.
 * Responsible for selecting what each worker sees.
 */
export class RuntimeContextAssembler {
    repoRoot;
    constructor(deps) {
        this.repoRoot = deps.repoRoot;
    }
    /** Assemble base runtime context from task and memory. */
    assembleBaseContext(task, candidateFiles, memoryRecall, tokenBudget) {
        // TODO: extract from SubAgentRuntime — context assembly logic
        return {
            candidateFiles,
            memoryRecall,
            tokenBudget,
            repoRoot: this.repoRoot,
        };
    }
    /** Narrow context for a specific worker (only relevant files). */
    narrowForWorker(_baseContext, _manifest) {
        // TODO: extract from SubAgentRuntime — per-worker context narrowing
        return {
            ..._baseContext,
            candidateFiles: _manifest.files,
        };
    }
}
