/** * Mission Context module — auto-injects the agent's current mission / * OKR context into the assembled prompt. * * Wraps `MissionContextService.getContextForAgent` and registers * cleanly inside the live `PromptAssemblyService` pipeline. This is the * production wire-in for Memory Phase 1 / fix #415; the older hook in * `PromptGeneratorService.generateMemberPrompt` was on a dead code path. * * Behavior: * - Skipped when `teamId` is missing or `evalMode` is true. * - `build()` is fail-soft: any service error logs a warn and returns * `''` so the assembler never breaks because of a missing missions * directory or a malformed mission file. * - Uses `config.projectPath` as the source of truth — no `process.cwd()`. * - Forwards `teamSlug` for sub-OKR slug lookup and `teamAncestorIds` * so missions owned by parent teams in the OKR hierarchy are also * surfaced. * * @module services/ai/prompt-modules/mission-context.module */ import { MissionContextService } from '../../memory/mission-context.service.js'; import { PromptModule, ModuleConfig } from './prompt-module.interface.js'; /** * Implements the PromptModule interface for the mission-context card. */ export declare class MissionContextModule implements PromptModule { name: string; priority: number; maxTokens: number; compactable: boolean; private readonly logger; private readonly service; /** * Construct the module. The service is resolved lazily through its * singleton — passing one in is supported for tests. * * @param service - Optional override for the mission-context service */ constructor(service?: MissionContextService); /** * Skip the card when the agent has no team (no scoping anchor) or * the assembler is in eval mode (token-saving). * * @param config - Module configuration * @returns true when the card should be built */ shouldInclude(config: ModuleConfig): boolean; /** * Build the mission card by delegating to MissionContextService. * Returns the empty string on any error or when there is nothing to * surface. * * @param config - Module configuration with resolved project path, * team id, optional team slug and optional ancestor team ids. * @returns Rendered mission card markdown or `''` to skip the section */ build(config: ModuleConfig): Promise; } //# sourceMappingURL=mission-context.module.d.ts.map