/** * Consumer runtime compat shim from prior 0xRay releases (1-line min per Scope Rule; xray codex injection + .xray fallbacks). */ import type { ToolExecuteAfterInput, ToolExecuteBeforeOutput } from "./plugin-types.js"; export { classifyTaskType } from "./plugin-helpers.js"; export { validateModulePath } from "./plugin-modules.js"; export { extractCodexMetadata, createCodexContextEntry, formatCodexContext } from "./plugin-codex-context.js"; export { isWriteEditOperation, isPublishOperation, TOOL_AGENT_MAP, registerAllProcessors, registerAfterPostProcessors, resolveAgentName, getFrameworkVersion, getFrameworkIdentity } from "./plugin-helpers.js"; export { runEnforcerQualityGate } from "./plugin-quality-gate.js"; export { PluginLogger } from "./plugin-logger.js"; export default function xrayCodexPlugin(input: { client?: string; directory?: string; worktree?: string; }): Promise<{ "experimental.chat.system.transform": (_input: Record, output: { system?: string[]; }) => Promise; "tool.execute.before": (input: { tool: string; args?: { content?: string; filePath?: string; }; }, output: ToolExecuteBeforeOutput) => Promise; "tool.execute.after": (input: ToolExecuteAfterInput, _output: Record) => Promise; "chat.message": (input: { parts?: Array<{ type?: string; text?: string; }>; }, output: { parts?: Array<{ type?: string; text?: string; }>; }) => Promise; config: (_config: Record) => Promise; }>;