/** * pi-yaml-hooks — PI extension entry point. * * Registers the YAML-driven hooks adapter that wires PI events into the core * runtime (`src/core/runtime.ts`). The atomic-commit-snapshot-worker is an * opt-in example wired via `hooks.yaml` (see * `examples/atomic-commit-snapshot-worker/`); nothing is invoked here. */ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; import "./pi/unsupported.js"; export type HookExtensionHostProfile = { readonly kind: "pi"; readonly agentDir?: string; } | { readonly kind: "omp"; readonly agentDir: string; }; export declare function registerHooksExtension(pi: ExtensionAPI, profile?: HookExtensionHostProfile): void; export default function piHooksExtension(pi: ExtensionAPI): void; export type { HookConfig, HookAction, HookCommandAction, HookCommandActionConfig, HookToolAction, HookToolActionConfig, HookBashAction, HookBashActionConfig, HookNotifyAction, HookNotifyActionConfig, HookNotifyLevel, HookConfirmAction, HookConfirmActionConfig, HookSetStatusAction, HookSetStatusActionConfig, HookCondition, HookPathCondition, HookPathConditionKey, HookLegacyCondition, HookEvent, ToolHookEvent, ToolHookPhase, SessionHookEvent, HookScope, HookRunIn, HookBehavior, HookAsyncConfig, HookSkipReason, HookValidationError, HookValidationErrorCode, HookOverrideEntry, HookConfigSource, HookMap, HookPolicy, HookPolicyDiagnostics, HostAdapter, HostDeliveryResult, ParsedHooksFile, SessionDeletedReason, FileChange, CreateFileChange, ModifyFileChange, DeleteFileChange, RenameFileChange, } from "./core/types.js"; export type { BashHookContext, BashHookResult, BashHookResultStatus, BashExecutionRequest, BashProcessResult } from "./core/bash-types.js";