UNPKG

histoire

Version:

A fast story book powered by Vite

27 lines • 1.75 kB
import type { LaunchPreviewBrowser } from '../mcp/browser/dependencies.js'; import type { PreviewHostRegistry } from '../mcp/browser/preview-host.js'; import type { McpOperations } from '../mcp/operations/store.js'; import type { McpExecutionCapture } from '../mcp/operations/types.js'; import type { McpToolInput } from '../mcp/protocol/tool-schema.js'; import type { PreviewSessionOptions } from '../runtime/browser/session.js'; import type { ScreenshotSetupOwner } from '../runtime/browser/setup/types.js'; import type { NodeArtifact } from './artifact-reader.js'; import type { NodeCatalog } from './catalog.js'; /** Private production authority shared with compiled embedded test executor. */ export interface NodeExecutionValue { /** Validated immutable artifact and recorded test deadlines. */ artifact: NodeArtifact; /** Exact story/variant authority. */ catalog: NodeCatalog; /** Same-origin owned nonce preview host. */ host: PreviewHostRegistry; /** Actual loopback listener origin for internal automation. */ readonly origin: string; /** Deployment-generation setup owner; injected launch fixtures bypass it. */ setupOwner?: ScreenshotSetupOwner; } /** Immutable Node preview authority is shared by screenshots and inspection. */ export declare function resolveNodePreviewOptions(target: McpToolInput<'histoire_capture_screenshot'>, capture: McpExecutionCapture<NodeExecutionValue>, launch?: LaunchPreviewBrowser): PreviewSessionOptions; /** Install production screenshot executor without runtime source or Vite imports. */ export declare function registerNodeScreenshotExecutor(operations: McpOperations<NodeExecutionValue>, launch?: LaunchPreviewBrowser): void; //# sourceMappingURL=execution.d.ts.map