eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
41 lines (40 loc) • 1.49 kB
TypeScript
import type { CompileMetadata } from "#compiler/artifacts.js";
import type { CompileAgentResult } from "#compiler/compile-agent.js";
/**
* Paths to the generated compiled-artifacts files shared by Nitro and the
* vendored workflow bundles for one application.
*/
export interface GeneratedCompiledArtifactsFiles {
/**
* Shared bundled-artifacts bootstrap installed by Nitro and vendored
* workflow handlers.
*/
bootstrapPath: string;
/**
* Optional Nitro plugin that imports the authored instrumentation module
* from the application when present.
*/
instrumentationPluginPath?: string;
/**
* Absolute path to the authored instrumentation module when present.
* Nitro uses this to preserve the module's side effects during bundling.
*/
instrumentationSourcePath?: string;
}
/**
* Writes the generated compiled-artifacts bootstrap module.
*
* The bootstrap self-installs bundled artifacts on import and exports a
* default function so it can be used directly as a Nitro plugin — no
* separate plugin wrapper file is needed.
*/
export declare function writeCompiledArtifactsFiles(input: {
compileResult: CompileAgentResult;
outDir: string;
}): Promise<GeneratedCompiledArtifactsFiles>;
export declare function createCompiledArtifactsBootstrapSource(input: {
compileResult: CompileAgentResult;
installModulePath: string;
metadata: CompileMetadata;
moduleMapPath: string;
}): Promise<string>;