import type { NodeAutomationLogEntry, NodeAutomationRunOptions, NodeAutomationTaskPackage } from '@cicctencent/agent-core'; import { ProcessCodeSandbox } from '../sandbox/process-code-sandbox.js'; import { NodeAutomationLibraryRegistry } from './node-task-library.js'; import { BaseRuntimeRunner, RuntimePayload } from './runtime-runner-base.js'; export interface NodeAutomationRuntimeOptions { baseDir?: string; libraryRegistry?: NodeAutomationLibraryRegistry; } export declare class NodeAutomationRuntimeRunner extends BaseRuntimeRunner { private readonly libraryRegistry; constructor(options?: NodeAutomationRuntimeOptions); getLanguage(): string; protected getExtraEnv(): Record; /** * 沙箱 init 后准备:把 data/_shared/prelude 软链到运行目录 node_modules/@work/prelude, * 使任务代码 `require('@work/prelude')` 可解析(与本地手动 node 运行一致)。 * 不再内联/注入 _prelude.cjs:公共运行时唯一源为 data/_shared/prelude(见 work-automation 主规格 * 「prelude-runtime-unification」)。 */ protected prepareSandbox(sandbox: ProcessCodeSandbox, _payload: RuntimePayload): Promise; protected resolveLibraries(taskPackage: NodeAutomationTaskPackage, sandbox: ProcessCodeSandbox, options: NodeAutomationRunOptions, logs: NodeAutomationLogEntry[]): Promise>; private createArtifactWriter; private createHostStorageClient; /** * 从 PersistenceManager 配置中提取 S3 存储配置,传入沙箱 payload。 * 优先级:PersistenceManager 配置 > process.env 环境变量。 * 支持 endpoint 模板变量 ${Bucket} / ${Region} 自动替换。 */ protected resolveStorageConfig(): Record | undefined; buildBootstrapScript(payload: RuntimePayload): string; } export declare function getNodeAutomationRuntimeRunner(): NodeAutomationRuntimeRunner; //# sourceMappingURL=node-task-runtime.d.ts.map