histoire
Version:
A fast story book powered by Vite
40 lines • 1.85 kB
TypeScript
import type { LaunchPreviewBrowser } from '../mcp/browser/dependencies.js';
import type { McpOperations } from '../mcp/operations/store.js';
import type { NodeExecutionValue } from './execution.js';
/** Embedding/startup seam; default entry supplies immutable artifact directory. */
export interface CreateNodeServerOptions {
/** Directory containing generated public/private artifact layout. */
artifactDirectory: string;
/** Explicit environment fixture; defaults to process environment. */
environment?: NodeJS.ProcessEnv;
/** Only --mcp/--no-mcp are accepted. */
arguments?: string[];
/** Optional browser acquisition injection for focused lifecycle proof. */
launch?: LaunchPreviewBrowser;
/** Compiled test engine registers here without changing generic server layers. */
registerExecutors?: (operations: McpOperations<NodeExecutionValue>, value: NodeExecutionValue) => void;
}
/** Start portable book/MCP listener after complete artifact and policy validation. */
export declare function createNodeServer(input: CreateNodeServerOptions): Promise<{
server: import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>;
artifact: {
root: string;
publicDir: string;
privateDir: string;
manifest: any;
publicAssets: Map<string, {
path: string;
sha256: string;
bytes: number;
}>;
readContent(reference: import("./artifact-schema.js").ArtifactInventoryEntry): Promise<string>;
};
project: import("../mcp/project/facade.js").HistoireMcpProject;
operations: McpOperations<NodeExecutionValue>;
value: NodeExecutionValue;
origin: string;
publicOrigin: string;
mcpUrl: string;
close: () => Promise<void>;
}>;
//# sourceMappingURL=server.d.ts.map