/** Default provider bootstrap (schema / auth / telemetry / bash) for the cloud agent service. */ import type { AgentServiceSandboxToolsOptions } from "../../sandbox/index.js"; import type { RemoteMCPToolSourceConfig, RemoteToolSource } from "../../tool/index.js"; import { type HostedRuntimeSourceIdentity } from "./runtime-source-binding.js"; import type { CreateNodeAgentServiceRuntimeInfrastructureOptions } from "../service/node-runtime-infrastructure.js"; import type { RunAgentServiceMainOptions } from "../service/bootstrap.js"; import type { AgentServiceMcpServerConfig } from "../service/mcp-server-config.js"; import type { ProjectAgentRuntimeAgentSource } from "../project/agent-runtime.js"; import type { HostedHostToolPolicy } from "./chat-runtime-tool-assembly.js"; import { type AgentServicePathOption } from "./cloud-agent-paths.js"; /** * Resolved options produced by `resolveNodeVeryfrontCloudAgentServiceOptions`. * `createBashTool` and `serviceName` are guaranteed to be set. */ export type ResolvedNodeVeryfrontCloudAgentServiceOptions = { serviceName: string; agentId?: string; baseDir?: AgentServicePathOption; projectDir?: string; entrypointUrl?: AgentServicePathOption; runtimeSource?: HostedRuntimeSourceIdentity; agentSource?: ProjectAgentRuntimeAgentSource; mcpServers?: readonly AgentServiceMcpServerConfig[]; forwardedConfigNamespace?: string; hostToolPolicy?: HostedHostToolPolicy; createRemoteToolSource?: (config: RemoteMCPToolSourceConfig) => RemoteToolSource; createBashTool: AgentServiceSandboxToolsOptions["createBashTool"]; env?: CreateNodeAgentServiceRuntimeInfrastructureOptions["env"]; processTarget?: NonNullable & NonNullable & { env?: CreateNodeAgentServiceRuntimeInfrastructureOptions["env"]; exit?: (code: number) => never | void; }; drainTimeoutMs?: number; hardShutdownTimeoutMs?: number; signals?: readonly NodeJS.Signals[]; }; /** Minimum shape required by the bootstrap resolver. serviceName is optional here — it is resolved and guaranteed in the output. */ type BootstrapInput = Omit & { createBashTool?: AgentServiceSandboxToolsOptions["createBashTool"]; serviceName?: string; }; /** Ensures a SchemaValidator is registered, falling back to the built-in Zod adapter. */ export declare function ensureDefaultSchemaValidator(): Promise; /** @internal Classify only absence of the optional OpenTelemetry extension itself. */ export declare function isMissingOpenTelemetryNodeTelemetryProviderError(error: unknown): boolean; /** Validates and snapshots an explicit runtime source identity, rejecting branch sources. */ export declare function resolveHostedRuntimeSourceIdentity(input: HostedRuntimeSourceIdentity | undefined): HostedRuntimeSourceIdentity | undefined; /** * Resolves all agent service options, registering default extensions (schema, auth, * telemetry, bash) if not already present. Returns options with `createBashTool` * and `serviceName` guaranteed. */ export declare function resolveNodeVeryfrontCloudAgentServiceOptions(options: BootstrapInput): Promise; export {}; //# sourceMappingURL=cloud-agent-provider-bootstrap.d.ts.map