UNPKG

trigger.dev

Version:

A Command-Line Interface for Trigger.dev projects

93 lines (92 loc) 3.43 kB
import type { BuildRuntime } from "@trigger.dev/core/v3/schemas"; export type IndexWorkerManifestOptions = { runtime: BuildRuntime; indexWorkerPath: string; buildManifestPath: string; nodeOptions?: string; env: Record<string, string | undefined>; cwd?: string; otelHookInclude?: string[]; otelHookExclude?: string[]; handleStdout?: (data: string) => void; handleStderr?: (data: string) => void; }; export declare function indexWorkerManifest({ runtime, indexWorkerPath, buildManifestPath, nodeOptions, env: $env, cwd, otelHookInclude, otelHookExclude, handleStderr, handleStdout, }: IndexWorkerManifestOptions): Promise<{ configPath: string; tasks: { id: string; description?: string | undefined; queue?: { concurrencyLimit?: number | null | undefined; name?: string | undefined; } | undefined; retry?: { maxAttempts?: number | undefined; factor?: number | undefined; minTimeoutInMs?: number | undefined; maxTimeoutInMs?: number | undefined; randomize?: boolean | undefined; outOfMemory?: { machine?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined; } | undefined; } | undefined; machine?: { cpu?: 0.25 | 0.5 | 1 | 2 | 4 | undefined; memory?: 0.25 | 0.5 | 1 | 2 | 4 | 8 | undefined; preset?: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x" | undefined; } | undefined; triggerSource?: string | undefined; agentConfig?: { type: string; } | undefined; schedule?: { cron: string; timezone: string; environments?: ("DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING")[] | undefined; } | undefined; maxDuration?: number | undefined; ttl?: string | number | undefined; payloadSchema?: unknown; filePath: string; exportName?: string | undefined; entryPoint: string; }[]; prompts?: { filePath: string; exportName?: string | undefined; entryPoint: string; id: string; description?: string | undefined; content?: string | undefined; model?: string | undefined; config?: Record<string, unknown> | undefined; variableSchema?: unknown; }[] | undefined; skills?: { filePath: string; exportName?: string | undefined; entryPoint: string; id: string; sourcePath: string; }[] | undefined; queues?: { name: string; concurrencyLimit?: number | null | undefined; }[] | undefined; workerEntryPoint: string; controllerEntryPoint?: string | undefined; loaderEntryPoint?: string | undefined; initEntryPoint?: string | undefined; runtime: "bun" | "node" | "node-22" | "node-24" | "node-26"; runtimeVersion?: string | undefined; customConditions?: string[] | undefined; timings?: Record<string, number> | undefined; processKeepAlive?: { enabled: boolean; maxExecutionsPerProcess?: number | undefined; } | undefined; otelImportHook?: { include?: string[] | undefined; exclude?: string[] | undefined; } | undefined; }>;