/** * Subagent protocol injection. * Ports lib/skills/subagent-inject.sh. * * Guarantees protocol compliance for all subagent spawns by automatically * injecting the RFC 2119 protocol base from skills/_shared/subagent-protocol-base.md. * * Injection pattern: * [SKILL CONTENT] * --- * ## SUBAGENT PROTOCOL (RFC 2119) * [Content from subagent-protocol-base.md with tokens resolved] * --- * [TASK CONTEXT] * * @epic T4454 * @task T4521 */ import { type TokenValues } from './token.js'; /** * Load the subagent protocol base content. * @task T4521 */ export declare function loadProtocolBase(cwd?: string): string | null; /** * Build task context block for injection into a subagent prompt. * @task T4521 */ export declare function buildTaskContext(taskId: string, cwd?: string): Promise; /** * Filter protocol content by MVI tier. * Extracts sections based on markers. * - tier 0: header + minimal only + footer * - tier 1: header + minimal + standard + footer * - tier 2: header + all tiers + footer (full content) * * Header = content before first TIER marker. * Footer = content after last /TIER marker. * * @task T5155 */ export declare function filterProtocolByTier(content: string, tier: 0 | 1 | 2): string; /** * Inject the subagent protocol into skill content. * Composes: skill content + protocol base + task context. * @task T4521 */ export declare function injectProtocol(skillContent: string, taskId: string, tokenValues: TokenValues, cwd?: string, tier?: 0 | 1 | 2): Promise; /** * Full orchestrator spawn workflow (skill-based). * High-level function that loads the skill, injects protocol, and returns the prompt. * @task T4521 */ export declare function orchestratorSpawnSkill(taskId: string, skillName: string, tokenValues: TokenValues, cwd?: string, tier?: 0 | 1 | 2): Promise; /** * Prepare standard token values for a task spawn. * @task T4521 */ export declare function prepareTokenValues(taskId: string, topicSlug: string, epicId?: string, _cwd?: string): TokenValues; //# sourceMappingURL=subagent.d.ts.map