Skip to content

Interface: MemoryDistillerRunner ​

Defined in: memory-distiller-runner.ts:29

Port interface for executing the Distiller LLM (claude-cli or in-process orchestrator subagent).

Methods ​

runDistillerProposal() ​

ts
runDistillerProposal(request): Promise<{
  choices: (
     | {
     alsoRemoveIds?: string[];
     op: "update";
     proposedContext?: string[] | null;
     proposedRepos?: string[] | null;
     proposedRole: string;
     proposedText: string;
     targetId: string;
     whyMatched: string;
   }
     | {
     capMerge?: {
        keepId: string;
        mergedText: string;
        removeId: string;
        whyMerged: string;
     };
     op: "add";
     proposedContext?: string[];
     proposedRepos?: string[];
     proposedRole: string;
     proposedText: string;
  })[];
  matchStatus:   | "NO_MATCH"
     | "LIKELY_MATCH"
     | "EXACT_DUPLICATE"
     | "REJECTED_TIER_1_OR_2";
  recommendedChoiceIndex: number;
  tierRejectionReason?: string;
}>;

Defined in: memory-distiller-runner.ts:39

Executes the Distiller prompt and returns a validated structured proposal.

Parameters ​

ParameterTypeDescription
requestDistillerProposalRequestDistiller prompt, JSON schema, and model parameters.

Returns ​

Promise<{ choices: ( | { alsoRemoveIds?: string[]; op: "update"; proposedContext?: string[] | null; proposedRepos?: string[] | null; proposedRole: string; proposedText: string; targetId: string; whyMatched: string; } | { capMerge?: { keepId: string; mergedText: string; removeId: string; whyMerged: string; }; op: "add"; proposedContext?: string[]; proposedRepos?: string[]; proposedRole: string; proposedText: string; })[]; matchStatus: | "NO_MATCH" | "LIKELY_MATCH" | "EXACT_DUPLICATE" | "REJECTED_TIER_1_OR_2"; recommendedChoiceIndex: number; tierRejectionReason?: string; }>

Structured Distiller match and choice analysis.

Throws ​

With code 'DISTILLER_EXECUTION_FAILED' when the runner fails or times out.

Released under the MIT License.