/** * before_agent_start hook — fetches static session context from engram and * injects it as appendSystemContext so it is available for the entire session. * * This hook replaces the context-injection logic that was previously in * session_start. The SDK passes agent identity via ctx (not event), so all * identity resolution happens here via the ctx parameter. */ import type { EngramRestClient } from '../client.js'; import type { PluginConfig } from '../config.js'; import type { BeforeAgentStartEvent, BeforeAgentStartResult, PluginHookContext, PluginLogger } from '../types/openclaw.js'; /** * Handle the before_agent_start hook. * * @param event - The before_agent_start event from OpenClaw. * @param ctx - The hook context containing agent identity fields. * @param client - Shared engram REST client. * @param config - Resolved plugin config. * @param logger - Optional logger (falls back to console). * @returns Append-system-context result, or void if nothing to inject. */ export declare function handleBeforeAgentStart(event: BeforeAgentStartEvent, ctx: PluginHookContext, client: EngramRestClient, config: PluginConfig, logger?: PluginLogger): Promise; /** * Build cacheable static instructions injected once per session. * These describe available engram capabilities to the agent. */ export declare function buildStaticInstructions(project: string): string; //# sourceMappingURL=before-agent-start.d.ts.map