@trigger.dev/sdk 0.0.0-python-preview-20250226140121 → 0.0.0-rc-4-8-0-20261021151928
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -9
- package/dist/commonjs/imports/ai-runtime-cjs.cjs.map +1 -0
- package/dist/commonjs/imports/ai-runtime.d.ts +1 -0
- package/dist/commonjs/imports/ai-runtime.js +31 -0
- package/dist/commonjs/imports/uncrypto.js +4 -4
- package/dist/commonjs/package.json +2 -1
- package/dist/commonjs/v3/agentSkillsRuntime.d.ts +28 -0
- package/dist/commonjs/v3/agentSkillsRuntime.js +173 -0
- package/dist/commonjs/v3/agentSkillsRuntime.js.map +1 -0
- package/dist/commonjs/v3/ai-shared.d.ts +156 -0
- package/dist/commonjs/v3/ai-shared.js +215 -0
- package/dist/commonjs/v3/ai-shared.js.map +1 -0
- package/dist/commonjs/v3/ai.d.ts +4225 -0
- package/dist/commonjs/v3/ai.js +11569 -0
- package/dist/commonjs/v3/ai.js.map +1 -0
- package/dist/commonjs/v3/aiAutoTelemetry.d.ts +2 -0
- package/dist/commonjs/v3/aiAutoTelemetry.js +81 -0
- package/dist/commonjs/v3/aiAutoTelemetry.js.map +1 -0
- package/dist/commonjs/v3/auth.d.ts +71 -10
- package/dist/commonjs/v3/auth.js +85 -19
- package/dist/commonjs/v3/auth.js.map +1 -1
- package/dist/commonjs/v3/batch.d.ts +3 -3
- package/dist/commonjs/v3/batch.js.map +1 -1
- package/dist/commonjs/v3/cache.js.map +1 -1
- package/dist/commonjs/v3/chat-client.d.ts +324 -0
- package/dist/commonjs/v3/chat-client.js +774 -0
- package/dist/commonjs/v3/chat-client.js.map +1 -0
- package/dist/commonjs/v3/chat-react.d.ts +244 -0
- package/dist/commonjs/v3/chat-react.js +463 -0
- package/dist/commonjs/v3/chat-react.js.map +1 -0
- package/dist/commonjs/v3/chat-server.d.ts +350 -0
- package/dist/commonjs/v3/chat-server.js +965 -0
- package/dist/commonjs/v3/chat-server.js.map +1 -0
- package/dist/commonjs/v3/chat-tab-coordinator.d.ts +65 -0
- package/dist/commonjs/v3/chat-tab-coordinator.js +235 -0
- package/dist/commonjs/v3/chat-tab-coordinator.js.map +1 -0
- package/dist/commonjs/v3/chat.d.ts +792 -0
- package/dist/commonjs/v3/chat.js +1662 -0
- package/dist/commonjs/v3/chat.js.map +1 -0
- package/dist/commonjs/v3/chatRouteWait.d.ts +21 -0
- package/dist/commonjs/v3/chatRouteWait.js +43 -0
- package/dist/commonjs/v3/chatRouteWait.js.map +1 -0
- package/dist/commonjs/v3/chatSnapshotIo.d.ts +2 -0
- package/dist/commonjs/v3/chatSnapshotIo.js +173 -0
- package/dist/commonjs/v3/chatSnapshotIo.js.map +1 -0
- package/dist/commonjs/v3/chatVersionSkew.d.ts +12 -0
- package/dist/commonjs/v3/chatVersionSkew.js +30 -0
- package/dist/commonjs/v3/chatVersionSkew.js.map +1 -0
- package/dist/commonjs/v3/compactionResponse.d.ts +9 -0
- package/dist/commonjs/v3/compactionResponse.js +37 -0
- package/dist/commonjs/v3/compactionResponse.js.map +1 -0
- package/dist/commonjs/v3/concurrency-shared.d.ts +13 -0
- package/dist/commonjs/v3/concurrency-shared.js +35 -0
- package/dist/commonjs/v3/concurrency-shared.js.map +1 -0
- package/dist/commonjs/v3/concurrencyLimits.d.ts +103 -0
- package/dist/commonjs/v3/concurrencyLimits.js +134 -0
- package/dist/commonjs/v3/concurrencyLimits.js.map +1 -0
- package/dist/commonjs/v3/config.js.map +1 -1
- package/dist/commonjs/v3/deployments.d.ts +25 -0
- package/dist/commonjs/v3/deployments.js +37 -0
- package/dist/commonjs/v3/deployments.js.map +1 -0
- package/dist/commonjs/v3/envvars.d.ts +5 -5
- package/dist/commonjs/v3/envvars.js.map +1 -1
- package/dist/commonjs/v3/externalDeploymentId.d.ts +23 -0
- package/dist/commonjs/v3/externalDeploymentId.js +43 -0
- package/dist/commonjs/v3/externalDeploymentId.js.map +1 -0
- package/dist/commonjs/v3/heartbeats.d.ts +37 -0
- package/dist/commonjs/v3/heartbeats.js +45 -0
- package/dist/commonjs/v3/heartbeats.js.map +1 -0
- package/dist/commonjs/v3/hooks.d.ts +26 -0
- package/dist/commonjs/v3/hooks.js +79 -0
- package/dist/commonjs/v3/hooks.js.map +1 -0
- package/dist/commonjs/v3/idempotencyKeys.d.ts +2 -1
- package/dist/commonjs/v3/idempotencyKeys.js +1 -0
- package/dist/commonjs/v3/idempotencyKeys.js.map +1 -1
- package/dist/commonjs/v3/index.d.ts +20 -5
- package/dist/commonjs/v3/index.js +56 -20
- package/dist/commonjs/v3/index.js.map +1 -1
- package/dist/commonjs/v3/locals.d.ts +3 -0
- package/dist/commonjs/v3/locals.js +6 -0
- package/dist/commonjs/v3/locals.js.map +1 -0
- package/dist/commonjs/v3/managedChatResponse.d.ts +44 -0
- package/dist/commonjs/v3/managedChatResponse.js +221 -0
- package/dist/commonjs/v3/managedChatResponse.js.map +1 -0
- package/dist/commonjs/v3/metadata.d.ts +5 -2
- package/dist/commonjs/v3/metadata.js +8 -1
- package/dist/commonjs/v3/metadata.js.map +1 -1
- package/dist/commonjs/v3/modelFileDownload.d.ts +10 -0
- package/dist/commonjs/v3/modelFileDownload.js +164 -0
- package/dist/commonjs/v3/modelFileDownload.js.map +1 -0
- package/dist/commonjs/v3/otel.d.ts +4 -0
- package/dist/commonjs/v3/otel.js +12 -0
- package/dist/commonjs/v3/otel.js.map +1 -0
- package/dist/commonjs/v3/prompt.d.ts +38 -0
- package/dist/commonjs/v3/prompt.js +146 -0
- package/dist/commonjs/v3/prompt.js.map +1 -0
- package/dist/commonjs/v3/promptManagement.d.ts +26 -0
- package/dist/commonjs/v3/promptManagement.js +180 -0
- package/dist/commonjs/v3/promptManagement.js.map +1 -0
- package/dist/commonjs/v3/prompts.d.ts +3 -0
- package/dist/commonjs/v3/prompts.js +15 -0
- package/dist/commonjs/v3/prompts.js.map +1 -0
- package/dist/commonjs/v3/query.d.ts +545 -0
- package/dist/commonjs/v3/query.js +163 -0
- package/dist/commonjs/v3/query.js.map +1 -0
- package/dist/commonjs/v3/queues.d.ts +107 -0
- package/dist/commonjs/v3/queues.js +225 -0
- package/dist/commonjs/v3/queues.js.map +1 -0
- package/dist/commonjs/v3/retry.d.ts +6 -2
- package/dist/commonjs/v3/retry.js +34 -23
- package/dist/commonjs/v3/retry.js.map +1 -1
- package/dist/commonjs/v3/runs.d.ts +182 -101
- package/dist/commonjs/v3/runs.js +99 -5
- package/dist/commonjs/v3/runs.js.map +1 -1
- package/dist/commonjs/v3/schedules/api.d.ts +8 -1
- package/dist/commonjs/v3/schedules/index.d.ts +29 -9
- package/dist/commonjs/v3/schedules/index.js +5 -1
- package/dist/commonjs/v3/schedules/index.js.map +1 -1
- package/dist/commonjs/v3/schemas.d.ts +1 -0
- package/dist/commonjs/{integrations.js → v3/schemas.js} +1 -1
- package/dist/commonjs/v3/schemas.js.map +1 -0
- package/dist/commonjs/v3/sessionTracing.d.ts +7 -0
- package/dist/commonjs/v3/sessionTracing.js +44 -0
- package/dist/commonjs/v3/sessionTracing.js.map +1 -0
- package/dist/commonjs/v3/sessions.d.ts +268 -0
- package/dist/commonjs/v3/sessions.js +776 -0
- package/dist/commonjs/v3/sessions.js.map +1 -0
- package/dist/commonjs/v3/shared.d.ts +129 -24
- package/dist/commonjs/v3/shared.js +1527 -689
- package/dist/commonjs/v3/shared.js.map +1 -1
- package/dist/commonjs/v3/skill.d.ts +99 -0
- package/dist/commonjs/v3/skill.js +165 -0
- package/dist/commonjs/v3/skill.js.map +1 -0
- package/dist/commonjs/v3/skills.d.ts +2 -0
- package/dist/commonjs/v3/skills.js +6 -0
- package/dist/commonjs/v3/skills.js.map +1 -0
- package/dist/commonjs/v3/steeringContext.d.ts +41 -0
- package/dist/commonjs/v3/steeringContext.js +118 -0
- package/dist/commonjs/v3/steeringContext.js.map +1 -0
- package/dist/commonjs/v3/streams.d.ts +298 -0
- package/dist/commonjs/v3/streams.js +584 -0
- package/dist/commonjs/v3/streams.js.map +1 -0
- package/dist/commonjs/v3/tasks.d.ts +19 -4
- package/dist/commonjs/v3/tasks.js +15 -1
- package/dist/commonjs/v3/tasks.js.map +1 -1
- package/dist/commonjs/v3/test/index.d.ts +5 -0
- package/dist/commonjs/v3/test/index.js +23 -0
- package/dist/commonjs/v3/test/index.js.map +1 -0
- package/dist/commonjs/v3/test/mock-channel-connector.d.ts +172 -0
- package/dist/commonjs/v3/test/mock-channel-connector.js +173 -0
- package/dist/commonjs/v3/test/mock-channel-connector.js.map +1 -0
- package/dist/commonjs/v3/test/mock-chat-agent.d.ts +388 -0
- package/dist/commonjs/v3/test/mock-chat-agent.js +689 -0
- package/dist/commonjs/v3/test/mock-chat-agent.js.map +1 -0
- package/dist/commonjs/v3/test/setup-catalog.d.ts +1 -0
- package/dist/commonjs/v3/test/setup-catalog.js +18 -0
- package/dist/commonjs/v3/test/setup-catalog.js.map +1 -0
- package/dist/commonjs/v3/test/test-session-handle.d.ts +24 -0
- package/dist/commonjs/v3/test/test-session-handle.js +271 -0
- package/dist/commonjs/v3/test/test-session-handle.js.map +1 -0
- package/dist/commonjs/v3/test/transcript-storage-tests.d.ts +40 -0
- package/dist/commonjs/v3/test/transcript-storage-tests.js +258 -0
- package/dist/commonjs/v3/test/transcript-storage-tests.js.map +1 -0
- package/dist/commonjs/v3/toolResultOrder.d.ts +15 -0
- package/dist/commonjs/v3/toolResultOrder.js +58 -0
- package/dist/commonjs/v3/toolResultOrder.js.map +1 -0
- package/dist/commonjs/v3/transcriptStorage.d.ts +307 -0
- package/dist/commonjs/v3/transcriptStorage.js +445 -0
- package/dist/commonjs/v3/transcriptStorage.js.map +1 -0
- package/dist/commonjs/v3/triggerClient.d.ts +45 -0
- package/dist/commonjs/v3/triggerClient.js +114 -0
- package/dist/commonjs/v3/triggerClient.js.map +1 -0
- package/dist/commonjs/v3/uiMessageChunks.d.ts +1 -0
- package/dist/commonjs/v3/uiMessageChunks.js +119 -0
- package/dist/commonjs/v3/uiMessageChunks.js.map +1 -0
- package/dist/commonjs/v3/usage.js +7 -6
- package/dist/commonjs/v3/usage.js.map +1 -1
- package/dist/commonjs/v3/wait.d.ts +218 -3
- package/dist/commonjs/v3/wait.js +433 -7
- package/dist/commonjs/v3/wait.js.map +1 -1
- package/dist/commonjs/v3/waitUntil.js.map +1 -1
- package/dist/commonjs/v3/webhookWaiters.d.ts +80 -0
- package/dist/commonjs/v3/webhookWaiters.js +156 -0
- package/dist/commonjs/v3/webhookWaiters.js.map +1 -0
- package/dist/commonjs/v3/webhooks.d.ts +192 -2
- package/dist/commonjs/v3/webhooks.js +340 -2
- package/dist/commonjs/v3/webhooks.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/imports/ai-runtime.d.ts +2 -0
- package/dist/esm/imports/ai-runtime.js +16 -0
- package/dist/esm/imports/ai-runtime.js.map +1 -0
- package/dist/esm/package.json +2 -1
- package/dist/esm/v3/agentSkillsRuntime.d.ts +28 -0
- package/dist/esm/v3/agentSkillsRuntime.js +136 -0
- package/dist/esm/v3/agentSkillsRuntime.js.map +1 -0
- package/dist/esm/v3/ai-shared.d.ts +156 -0
- package/dist/esm/v3/ai-shared.js +208 -0
- package/dist/esm/v3/ai-shared.js.map +1 -0
- package/dist/esm/v3/ai.d.ts +4225 -0
- package/dist/esm/v3/ai.js +11550 -0
- package/dist/esm/v3/ai.js.map +1 -0
- package/dist/esm/v3/aiAutoTelemetry.d.ts +2 -0
- package/dist/esm/v3/aiAutoTelemetry.js +78 -0
- package/dist/esm/v3/aiAutoTelemetry.js.map +1 -0
- package/dist/esm/v3/auth.d.ts +71 -10
- package/dist/esm/v3/auth.js +83 -17
- package/dist/esm/v3/auth.js.map +1 -1
- package/dist/esm/v3/batch.d.ts +3 -3
- package/dist/esm/v3/batch.js +2 -2
- package/dist/esm/v3/batch.js.map +1 -1
- package/dist/esm/v3/chat-client.d.ts +324 -0
- package/dist/esm/v3/chat-client.js +769 -0
- package/dist/esm/v3/chat-client.js.map +1 -0
- package/dist/esm/v3/chat-react.d.ts +244 -0
- package/dist/esm/v3/chat-react.js +455 -0
- package/dist/esm/v3/chat-react.js.map +1 -0
- package/dist/esm/v3/chat-server.d.ts +350 -0
- package/dist/esm/v3/chat-server.js +962 -0
- package/dist/esm/v3/chat-server.js.map +1 -0
- package/dist/esm/v3/chat-tab-coordinator.d.ts +65 -0
- package/dist/esm/v3/chat-tab-coordinator.js +231 -0
- package/dist/esm/v3/chat-tab-coordinator.js.map +1 -0
- package/dist/esm/v3/chat.d.ts +792 -0
- package/dist/esm/v3/chat.js +1655 -0
- package/dist/esm/v3/chat.js.map +1 -0
- package/dist/esm/v3/chatRouteWait.d.ts +21 -0
- package/dist/esm/v3/chatRouteWait.js +40 -0
- package/dist/esm/v3/chatRouteWait.js.map +1 -0
- package/dist/esm/v3/chatSnapshotIo.d.ts +2 -0
- package/dist/esm/v3/chatSnapshotIo.js +165 -0
- package/dist/esm/v3/chatSnapshotIo.js.map +1 -0
- package/dist/esm/v3/chatVersionSkew.d.ts +12 -0
- package/dist/esm/v3/chatVersionSkew.js +27 -0
- package/dist/esm/v3/chatVersionSkew.js.map +1 -0
- package/dist/esm/v3/compactionResponse.d.ts +9 -0
- package/dist/esm/v3/compactionResponse.js +34 -0
- package/dist/esm/v3/compactionResponse.js.map +1 -0
- package/dist/esm/v3/concurrency-shared.d.ts +13 -0
- package/dist/esm/v3/concurrency-shared.js +31 -0
- package/dist/esm/v3/concurrency-shared.js.map +1 -0
- package/dist/esm/v3/concurrencyLimits.d.ts +103 -0
- package/dist/esm/v3/concurrencyLimits.js +126 -0
- package/dist/esm/v3/concurrencyLimits.js.map +1 -0
- package/dist/esm/v3/deployments.d.ts +25 -0
- package/dist/esm/v3/deployments.js +34 -0
- package/dist/esm/v3/deployments.js.map +1 -0
- package/dist/esm/v3/envvars.d.ts +5 -5
- package/dist/esm/v3/envvars.js.map +1 -1
- package/dist/esm/v3/externalDeploymentId.d.ts +23 -0
- package/dist/esm/v3/externalDeploymentId.js +38 -0
- package/dist/esm/v3/externalDeploymentId.js.map +1 -0
- package/dist/esm/v3/heartbeats.d.ts +37 -0
- package/dist/esm/v3/heartbeats.js +42 -0
- package/dist/esm/v3/heartbeats.js.map +1 -0
- package/dist/esm/v3/hooks.d.ts +26 -0
- package/dist/esm/v3/hooks.js +66 -0
- package/dist/esm/v3/hooks.js.map +1 -0
- package/dist/esm/v3/idempotencyKeys.d.ts +2 -1
- package/dist/esm/v3/idempotencyKeys.js +2 -1
- package/dist/esm/v3/idempotencyKeys.js.map +1 -1
- package/dist/esm/v3/index.d.ts +20 -5
- package/dist/esm/v3/index.js +16 -2
- package/dist/esm/v3/index.js.map +1 -1
- package/dist/esm/v3/locals.d.ts +3 -0
- package/dist/esm/v3/locals.js +3 -0
- package/dist/esm/v3/locals.js.map +1 -0
- package/dist/esm/v3/managedChatResponse.d.ts +44 -0
- package/dist/esm/v3/managedChatResponse.js +216 -0
- package/dist/esm/v3/managedChatResponse.js.map +1 -0
- package/dist/esm/v3/metadata.d.ts +5 -2
- package/dist/esm/v3/metadata.js +8 -1
- package/dist/esm/v3/metadata.js.map +1 -1
- package/dist/esm/v3/modelFileDownload.d.ts +10 -0
- package/dist/esm/v3/modelFileDownload.js +161 -0
- package/dist/esm/v3/modelFileDownload.js.map +1 -0
- package/dist/esm/v3/otel.d.ts +4 -0
- package/dist/esm/v3/otel.js +9 -0
- package/dist/esm/v3/otel.js.map +1 -0
- package/dist/esm/v3/prompt.d.ts +38 -0
- package/dist/esm/v3/prompt.js +143 -0
- package/dist/esm/v3/prompt.js.map +1 -0
- package/dist/esm/v3/promptManagement.d.ts +26 -0
- package/dist/esm/v3/promptManagement.js +170 -0
- package/dist/esm/v3/promptManagement.js.map +1 -0
- package/dist/esm/v3/prompts.d.ts +3 -0
- package/dist/esm/v3/prompts.js +3 -0
- package/dist/esm/v3/prompts.js.map +1 -0
- package/dist/esm/v3/query.d.ts +545 -0
- package/dist/esm/v3/query.js +160 -0
- package/dist/esm/v3/query.js.map +1 -0
- package/dist/esm/v3/queues.d.ts +107 -0
- package/dist/esm/v3/queues.js +217 -0
- package/dist/esm/v3/queues.js.map +1 -0
- package/dist/esm/v3/retry.d.ts +6 -2
- package/dist/esm/v3/retry.js +27 -19
- package/dist/esm/v3/retry.js.map +1 -1
- package/dist/esm/v3/runs.d.ts +179 -98
- package/dist/esm/v3/runs.js +99 -5
- package/dist/esm/v3/runs.js.map +1 -1
- package/dist/esm/v3/schedules/api.d.ts +8 -1
- package/dist/esm/v3/schedules/index.d.ts +29 -9
- package/dist/esm/v3/schedules/index.js +6 -2
- package/dist/esm/v3/schedules/index.js.map +1 -1
- package/dist/esm/v3/schemas.d.ts +1 -0
- package/dist/esm/v3/schemas.js +2 -0
- package/dist/esm/v3/schemas.js.map +1 -0
- package/dist/esm/v3/sessionTracing.d.ts +7 -0
- package/dist/esm/v3/sessionTracing.js +40 -0
- package/dist/esm/v3/sessionTracing.js.map +1 -0
- package/dist/esm/v3/sessions.d.ts +268 -0
- package/dist/esm/v3/sessions.js +767 -0
- package/dist/esm/v3/sessions.js.map +1 -0
- package/dist/esm/v3/shared.d.ts +129 -24
- package/dist/esm/v3/shared.js +1521 -688
- package/dist/esm/v3/shared.js.map +1 -1
- package/dist/esm/v3/skill.d.ts +99 -0
- package/dist/esm/v3/skill.js +128 -0
- package/dist/esm/v3/skill.js.map +1 -0
- package/dist/esm/v3/skills.d.ts +2 -0
- package/dist/esm/v3/skills.js +2 -0
- package/dist/esm/v3/skills.js.map +1 -0
- package/dist/esm/v3/steeringContext.d.ts +41 -0
- package/dist/esm/v3/steeringContext.js +113 -0
- package/dist/esm/v3/steeringContext.js.map +1 -0
- package/dist/esm/v3/streams.d.ts +298 -0
- package/dist/esm/v3/streams.js +580 -0
- package/dist/esm/v3/streams.js.map +1 -0
- package/dist/esm/v3/tasks.d.ts +19 -4
- package/dist/esm/v3/tasks.js +16 -2
- package/dist/esm/v3/tasks.js.map +1 -1
- package/dist/esm/v3/test/index.d.ts +5 -0
- package/dist/esm/v3/test/index.js +15 -0
- package/dist/esm/v3/test/index.js.map +1 -0
- package/dist/esm/v3/test/mock-channel-connector.d.ts +172 -0
- package/dist/esm/v3/test/mock-channel-connector.js +170 -0
- package/dist/esm/v3/test/mock-channel-connector.js.map +1 -0
- package/dist/esm/v3/test/mock-chat-agent.d.ts +388 -0
- package/dist/esm/v3/test/mock-chat-agent.js +685 -0
- package/dist/esm/v3/test/mock-chat-agent.js.map +1 -0
- package/dist/esm/v3/test/setup-catalog.d.ts +1 -0
- package/dist/esm/v3/test/setup-catalog.js +16 -0
- package/dist/esm/v3/test/setup-catalog.js.map +1 -0
- package/dist/esm/v3/test/test-session-handle.d.ts +24 -0
- package/dist/esm/v3/test/test-session-handle.js +268 -0
- package/dist/esm/v3/test/test-session-handle.js.map +1 -0
- package/dist/esm/v3/test/transcript-storage-tests.d.ts +40 -0
- package/dist/esm/v3/test/transcript-storage-tests.js +255 -0
- package/dist/esm/v3/test/transcript-storage-tests.js.map +1 -0
- package/dist/esm/v3/toolResultOrder.d.ts +15 -0
- package/dist/esm/v3/toolResultOrder.js +55 -0
- package/dist/esm/v3/toolResultOrder.js.map +1 -0
- package/dist/esm/v3/transcriptStorage.d.ts +307 -0
- package/dist/esm/v3/transcriptStorage.js +431 -0
- package/dist/esm/v3/transcriptStorage.js.map +1 -0
- package/dist/esm/v3/triggerClient.d.ts +45 -0
- package/dist/esm/v3/triggerClient.js +77 -0
- package/dist/esm/v3/triggerClient.js.map +1 -0
- package/dist/esm/v3/uiMessageChunks.d.ts +1 -0
- package/dist/esm/v3/uiMessageChunks.js +116 -0
- package/dist/esm/v3/uiMessageChunks.js.map +1 -0
- package/dist/esm/v3/usage.js +7 -6
- package/dist/esm/v3/usage.js.map +1 -1
- package/dist/esm/v3/wait.d.ts +218 -3
- package/dist/esm/v3/wait.js +431 -7
- package/dist/esm/v3/wait.js.map +1 -1
- package/dist/esm/v3/webhookWaiters.d.ts +80 -0
- package/dist/esm/v3/webhookWaiters.js +149 -0
- package/dist/esm/v3/webhookWaiters.js.map +1 -0
- package/dist/esm/v3/webhooks.d.ts +192 -2
- package/dist/esm/v3/webhooks.js +336 -2
- package/dist/esm/v3/webhooks.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/docs/ai/observability.mdx +174 -0
- package/docs/ai/prompts.mdx +426 -0
- package/docs/ai-chat/actions.mdx +148 -0
- package/docs/ai-chat/anatomy.mdx +87 -0
- package/docs/ai-chat/backend.mdx +933 -0
- package/docs/ai-chat/background-injection.mdx +320 -0
- package/docs/ai-chat/changelog.mdx +958 -0
- package/docs/ai-chat/chat-local.mdx +170 -0
- package/docs/ai-chat/client-protocol.mdx +1091 -0
- package/docs/ai-chat/compaction.mdx +413 -0
- package/docs/ai-chat/custom-agents.mdx +545 -0
- package/docs/ai-chat/error-handling.mdx +379 -0
- package/docs/ai-chat/fast-starts.mdx +764 -0
- package/docs/ai-chat/frontend.mdx +634 -0
- package/docs/ai-chat/how-it-works.mdx +226 -0
- package/docs/ai-chat/lifecycle-hooks.mdx +532 -0
- package/docs/ai-chat/mcp.mdx +97 -0
- package/docs/ai-chat/migrating-from-a-route-handler.mdx +594 -0
- package/docs/ai-chat/migrating-from-hydrate-messages.mdx +299 -0
- package/docs/ai-chat/overview.mdx +86 -0
- package/docs/ai-chat/patterns/branching-conversations.mdx +145 -0
- package/docs/ai-chat/patterns/code-sandbox.mdx +122 -0
- package/docs/ai-chat/patterns/database-persistence.mdx +425 -0
- package/docs/ai-chat/patterns/human-in-the-loop.mdx +281 -0
- package/docs/ai-chat/patterns/large-payloads.mdx +165 -0
- package/docs/ai-chat/patterns/native-compaction.mdx +310 -0
- package/docs/ai-chat/patterns/oom-resilience.mdx +116 -0
- package/docs/ai-chat/patterns/persistence-and-replay.mdx +218 -0
- package/docs/ai-chat/patterns/recovery-boot.mdx +233 -0
- package/docs/ai-chat/patterns/redacting-telemetry.mdx +117 -0
- package/docs/ai-chat/patterns/skills.mdx +214 -0
- package/docs/ai-chat/patterns/sub-agents.mdx +412 -0
- package/docs/ai-chat/patterns/tool-result-auditing.mdx +145 -0
- package/docs/ai-chat/patterns/trusted-edge-signals.mdx +333 -0
- package/docs/ai-chat/patterns/version-upgrades.mdx +261 -0
- package/docs/ai-chat/pending-messages.mdx +363 -0
- package/docs/ai-chat/prompt-caching.mdx +204 -0
- package/docs/ai-chat/quick-start.mdx +163 -0
- package/docs/ai-chat/reference.mdx +1071 -0
- package/docs/ai-chat/server-chat.mdx +259 -0
- package/docs/ai-chat/sessions.mdx +334 -0
- package/docs/ai-chat/side-channels.mdx +172 -0
- package/docs/ai-chat/testing.mdx +691 -0
- package/docs/ai-chat/tools.mdx +192 -0
- package/docs/ai-chat/transcript-storage.mdx +247 -0
- package/docs/ai-chat/types.mdx +242 -0
- package/docs/ai-chat/upgrade-guide.mdx +511 -0
- package/docs/apikeys.mdx +170 -0
- package/docs/billing-limits.mdx +73 -0
- package/docs/building-with-ai.mdx +261 -0
- package/docs/bulk-actions.mdx +77 -0
- package/docs/changelog.mdx +6 -0
- package/docs/cli-deploy-commands.mdx +9 -0
- package/docs/cli-dev-commands.mdx +9 -0
- package/docs/cli-env-commands.mdx +115 -0
- package/docs/cli-init-commands.mdx +84 -0
- package/docs/cli-introduction.mdx +25 -0
- package/docs/cli-list-profiles-commands.mdx +42 -0
- package/docs/cli-login-commands.mdx +53 -0
- package/docs/cli-logout-commands.mdx +33 -0
- package/docs/cli-preview-archive.mdx +59 -0
- package/docs/cli-projects-commands.mdx +74 -0
- package/docs/cli-promote-commands.mdx +9 -0
- package/docs/cli-runs-commands.mdx +95 -0
- package/docs/cli-switch.mdx +43 -0
- package/docs/cli-tasks-commands.mdx +95 -0
- package/docs/cli-update-commands.mdx +48 -0
- package/docs/cli-whoami-commands.mdx +45 -0
- package/docs/community.mdx +6 -0
- package/docs/concurrency.mdx +416 -0
- package/docs/config/config-file.mdx +662 -0
- package/docs/config/extensions/additionalFiles.mdx +38 -0
- package/docs/config/extensions/additionalPackages.mdx +40 -0
- package/docs/config/extensions/aptGet.mdx +34 -0
- package/docs/config/extensions/audioWaveform.mdx +23 -0
- package/docs/config/extensions/custom.mdx +393 -0
- package/docs/config/extensions/emitDecoratorMetadata.mdx +52 -0
- package/docs/config/extensions/esbuildPlugin.mdx +31 -0
- package/docs/config/extensions/ffmpeg.mdx +45 -0
- package/docs/config/extensions/lightpanda.mdx +56 -0
- package/docs/config/extensions/overview.mdx +69 -0
- package/docs/config/extensions/playwright.mdx +195 -0
- package/docs/config/extensions/prismaExtension.mdx +1013 -0
- package/docs/config/extensions/puppeteer.mdx +28 -0
- package/docs/config/extensions/pythonExtension.mdx +190 -0
- package/docs/config/extensions/syncEnvVars.mdx +330 -0
- package/docs/context.mdx +235 -0
- package/docs/database-connections.mdx +213 -0
- package/docs/deploy-environment-variables.mdx +466 -0
- package/docs/deployment/atomic-deployment.mdx +470 -0
- package/docs/deployment/dev-branches.mdx +92 -0
- package/docs/deployment/overview.mdx +260 -0
- package/docs/deployment/preview-branches.mdx +227 -0
- package/docs/errors-retrying.mdx +383 -0
- package/docs/github-actions.mdx +260 -0
- package/docs/github-integration.mdx +148 -0
- package/docs/github-repo.mdx +8 -0
- package/docs/help-email.mdx +6 -0
- package/docs/help-slack.mdx +12 -0
- package/docs/hidden-tasks.mdx +56 -0
- package/docs/how-it-works.mdx +454 -0
- package/docs/how-to-reduce-your-spend.mdx +211 -0
- package/docs/idempotency.mdx +542 -0
- package/docs/introduction.mdx +135 -0
- package/docs/limits.mdx +284 -0
- package/docs/logging.mdx +195 -0
- package/docs/machines.mdx +952 -0
- package/docs/manual-setup.mdx +632 -0
- package/docs/mcp-agent-rules.mdx +41 -0
- package/docs/mcp-introduction.mdx +386 -0
- package/docs/mcp-tools.mdx +425 -0
- package/docs/migrating-from-v3.mdx +332 -0
- package/docs/observability/dashboards.mdx +166 -0
- package/docs/observability/query.mdx +614 -0
- package/docs/open-source-contributing.mdx +16 -0
- package/docs/private-networking/aws-console-setup.mdx +304 -0
- package/docs/private-networking/overview.mdx +144 -0
- package/docs/private-networking/troubleshooting.mdx +78 -0
- package/docs/queues.mdx +271 -0
- package/docs/quick-start.mdx +60 -0
- package/docs/realtime/auth.mdx +228 -0
- package/docs/realtime/backend/input-streams.mdx +159 -0
- package/docs/realtime/backend/overview.mdx +45 -0
- package/docs/realtime/backend/streams.mdx +433 -0
- package/docs/realtime/backend/subscribe.mdx +225 -0
- package/docs/realtime/how-it-works.mdx +94 -0
- package/docs/realtime/overview.mdx +63 -0
- package/docs/realtime/react-hooks/overview.mdx +73 -0
- package/docs/realtime/react-hooks/session-stream.mdx +126 -0
- package/docs/realtime/react-hooks/streams.mdx +517 -0
- package/docs/realtime/react-hooks/subscribe.mdx +690 -0
- package/docs/realtime/react-hooks/swr.mdx +87 -0
- package/docs/realtime/react-hooks/triggering.mdx +194 -0
- package/docs/realtime/react-hooks/use-wait-token.mdx +34 -0
- package/docs/realtime/run-object.mdx +197 -0
- package/docs/replaying.mdx +97 -0
- package/docs/reports.mdx +159 -0
- package/docs/request-feature.mdx +6 -0
- package/docs/roadmap.mdx +6 -0
- package/docs/run-tests.mdx +21 -0
- package/docs/run-usage.mdx +113 -0
- package/docs/runs/bulk-actions.mdx +183 -0
- package/docs/runs/heartbeats.mdx +38 -0
- package/docs/runs/list-best-practices.mdx +234 -0
- package/docs/runs/max-duration.mdx +143 -0
- package/docs/runs/metadata.mdx +731 -0
- package/docs/runs/priority.mdx +8 -0
- package/docs/runs.mdx +406 -0
- package/docs/self-hosting/docker.mdx +512 -0
- package/docs/self-hosting/env/supervisor.mdx +78 -0
- package/docs/self-hosting/env/webapp.mdx +305 -0
- package/docs/self-hosting/kubernetes.mdx +725 -0
- package/docs/self-hosting/overview.mdx +145 -0
- package/docs/self-hosting/security.mdx +67 -0
- package/docs/skills.mdx +85 -0
- package/docs/tags.mdx +126 -0
- package/docs/tasks/overview.mdx +695 -0
- package/docs/tasks/scheduled.mdx +479 -0
- package/docs/tasks/schemaTask.mdx +413 -0
- package/docs/tasks/streams.mdx +887 -0
- package/docs/triggering.mdx +1340 -0
- package/docs/troubleshooting-alerts.mdx +607 -0
- package/docs/troubleshooting-debugging-in-vscode.mdx +9 -0
- package/docs/troubleshooting-github-issues.mdx +6 -0
- package/docs/troubleshooting-uptime-status.mdx +7 -0
- package/docs/troubleshooting-zod.mdx +158 -0
- package/docs/troubleshooting.mdx +414 -0
- package/docs/upgrading-packages.mdx +80 -0
- package/docs/vercel-integration.mdx +250 -0
- package/docs/versioning.mdx +58 -0
- package/docs/video-walkthrough.mdx +23 -0
- package/docs/wait-for-token.mdx +540 -0
- package/docs/wait-for.mdx +42 -0
- package/docs/wait-until.mdx +53 -0
- package/docs/wait.mdx +18 -0
- package/docs/webhooks/channels.mdx +154 -0
- package/docs/webhooks/connect.mdx +91 -0
- package/docs/webhooks/deliveries.mdx +99 -0
- package/docs/webhooks/filters.mdx +146 -0
- package/docs/webhooks/human-in-the-loop.mdx +158 -0
- package/docs/webhooks/linear.mdx +186 -0
- package/docs/webhooks/overview.mdx +115 -0
- package/docs/webhooks/session-routing.mdx +141 -0
- package/docs/webhooks/slack.mdx +393 -0
- package/docs/webhooks/sources.mdx +250 -0
- package/docs/webhooks/waiters.mdx +190 -0
- package/docs/writing-tasks-introduction.mdx +34 -0
- package/package.json +143 -42
- package/skills/trigger-authoring-chat-agent/SKILL.md +308 -0
- package/skills/trigger-authoring-tasks/SKILL.md +254 -0
- package/skills/trigger-chat-agent-advanced/SKILL.md +403 -0
- package/skills/trigger-cost-savings/SKILL.md +116 -0
- package/skills/trigger-realtime-and-frontend/SKILL.md +276 -0
- package/dist/commonjs/apiClient.d.ts +0 -727
- package/dist/commonjs/apiClient.js +0 -692
- package/dist/commonjs/apiClient.js.map +0 -1
- package/dist/commonjs/concurrencyLimit.d.ts +0 -10
- package/dist/commonjs/concurrencyLimit.js +0 -17
- package/dist/commonjs/concurrencyLimit.js.map +0 -1
- package/dist/commonjs/errors.d.ts +0 -66
- package/dist/commonjs/errors.js +0 -109
- package/dist/commonjs/errors.js.map +0 -1
- package/dist/commonjs/httpEndpoint.d.ts +0 -87
- package/dist/commonjs/httpEndpoint.js +0 -130
- package/dist/commonjs/httpEndpoint.js.map +0 -1
- package/dist/commonjs/index.d.ts +0 -23
- package/dist/commonjs/index.js +0 -55
- package/dist/commonjs/index.js.map +0 -1
- package/dist/commonjs/integrations.d.ts +0 -11
- package/dist/commonjs/integrations.js.map +0 -1
- package/dist/commonjs/io.d.ts +0 -441
- package/dist/commonjs/io.js +0 -1165
- package/dist/commonjs/io.js.map +0 -1
- package/dist/commonjs/ioWithIntegrations.d.ts +0 -4
- package/dist/commonjs/ioWithIntegrations.js +0 -32
- package/dist/commonjs/ioWithIntegrations.js.map +0 -1
- package/dist/commonjs/job.d.ts +0 -96
- package/dist/commonjs/job.js +0 -210
- package/dist/commonjs/job.js.map +0 -1
- package/dist/commonjs/retry.d.ts +0 -20
- package/dist/commonjs/retry.js +0 -22
- package/dist/commonjs/retry.js.map +0 -1
- package/dist/commonjs/runLocalStorage.d.ts +0 -8
- package/dist/commonjs/runLocalStorage.js +0 -6
- package/dist/commonjs/runLocalStorage.js.map +0 -1
- package/dist/commonjs/security.d.ts +0 -18
- package/dist/commonjs/security.js +0 -41
- package/dist/commonjs/security.js.map +0 -1
- package/dist/commonjs/status.d.ts +0 -19
- package/dist/commonjs/status.js +0 -38
- package/dist/commonjs/status.js.map +0 -1
- package/dist/commonjs/store/keyValueStore.d.ts +0 -17
- package/dist/commonjs/store/keyValueStore.js +0 -138
- package/dist/commonjs/store/keyValueStore.js.map +0 -1
- package/dist/commonjs/store/keyValueStoreClient.d.ts +0 -19
- package/dist/commonjs/store/keyValueStoreClient.js +0 -65
- package/dist/commonjs/store/keyValueStoreClient.js.map +0 -1
- package/dist/commonjs/triggerClient.d.ts +0 -290
- package/dist/commonjs/triggerClient.js +0 -1366
- package/dist/commonjs/triggerClient.js.map +0 -1
- package/dist/commonjs/triggers/dynamic.d.ts +0 -56
- package/dist/commonjs/triggers/dynamic.js +0 -97
- package/dist/commonjs/triggers/dynamic.js.map +0 -1
- package/dist/commonjs/triggers/eventTrigger.d.ts +0 -58
- package/dist/commonjs/triggers/eventTrigger.js +0 -69
- package/dist/commonjs/triggers/eventTrigger.js.map +0 -1
- package/dist/commonjs/triggers/externalSource.d.ts +0 -148
- package/dist/commonjs/triggers/externalSource.js +0 -106
- package/dist/commonjs/triggers/externalSource.js.map +0 -1
- package/dist/commonjs/triggers/invokeTrigger.d.ts +0 -39
- package/dist/commonjs/triggers/invokeTrigger.js +0 -58
- package/dist/commonjs/triggers/invokeTrigger.js.map +0 -1
- package/dist/commonjs/triggers/notifications.d.ts +0 -111
- package/dist/commonjs/triggers/notifications.js +0 -101
- package/dist/commonjs/triggers/notifications.js.map +0 -1
- package/dist/commonjs/triggers/scheduled.d.ts +0 -145
- package/dist/commonjs/triggers/scheduled.js +0 -208
- package/dist/commonjs/triggers/scheduled.js.map +0 -1
- package/dist/commonjs/triggers/webhook.d.ts +0 -143
- package/dist/commonjs/triggers/webhook.js +0 -133
- package/dist/commonjs/triggers/webhook.js.map +0 -1
- package/dist/commonjs/typed-emitter.d.ts +0 -37
- package/dist/commonjs/typed-emitter.js +0 -3
- package/dist/commonjs/typed-emitter.js.map +0 -1
- package/dist/commonjs/types.d.ts +0 -204
- package/dist/commonjs/types.js +0 -23
- package/dist/commonjs/types.js.map +0 -1
- package/dist/commonjs/utils/formatSchemaErrors.d.ts +0 -3
- package/dist/commonjs/utils/formatSchemaErrors.js +0 -10
- package/dist/commonjs/utils/formatSchemaErrors.js.map +0 -1
- package/dist/commonjs/utils/typedAsyncLocalStorage.d.ts +0 -6
- package/dist/commonjs/utils/typedAsyncLocalStorage.js +0 -18
- package/dist/commonjs/utils/typedAsyncLocalStorage.js.map +0 -1
- package/dist/commonjs/utils.d.ts +0 -1
- package/dist/commonjs/utils.js +0 -11
- package/dist/commonjs/utils.js.map +0 -1
- package/dist/esm/apiClient.d.ts +0 -727
- package/dist/esm/apiClient.js +0 -687
- package/dist/esm/apiClient.js.map +0 -1
- package/dist/esm/concurrencyLimit.d.ts +0 -10
- package/dist/esm/concurrencyLimit.js +0 -13
- package/dist/esm/concurrencyLimit.js.map +0 -1
- package/dist/esm/errors.d.ts +0 -66
- package/dist/esm/errors.js +0 -95
- package/dist/esm/errors.js.map +0 -1
- package/dist/esm/httpEndpoint.d.ts +0 -87
- package/dist/esm/httpEndpoint.js +0 -125
- package/dist/esm/httpEndpoint.js.map +0 -1
- package/dist/esm/index.d.ts +0 -23
- package/dist/esm/index.js +0 -35
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/integrations.d.ts +0 -11
- package/dist/esm/integrations.js +0 -2
- package/dist/esm/integrations.js.map +0 -1
- package/dist/esm/io.d.ts +0 -441
- package/dist/esm/io.js +0 -1159
- package/dist/esm/io.js.map +0 -1
- package/dist/esm/ioWithIntegrations.d.ts +0 -4
- package/dist/esm/ioWithIntegrations.js +0 -29
- package/dist/esm/ioWithIntegrations.js.map +0 -1
- package/dist/esm/job.d.ts +0 -96
- package/dist/esm/job.js +0 -206
- package/dist/esm/job.js.map +0 -1
- package/dist/esm/retry.d.ts +0 -20
- package/dist/esm/retry.js +0 -19
- package/dist/esm/retry.js.map +0 -1
- package/dist/esm/runLocalStorage.d.ts +0 -8
- package/dist/esm/runLocalStorage.js +0 -3
- package/dist/esm/runLocalStorage.js.map +0 -1
- package/dist/esm/security.d.ts +0 -18
- package/dist/esm/security.js +0 -34
- package/dist/esm/security.js.map +0 -1
- package/dist/esm/status.d.ts +0 -19
- package/dist/esm/status.js +0 -34
- package/dist/esm/status.js.map +0 -1
- package/dist/esm/store/keyValueStore.d.ts +0 -17
- package/dist/esm/store/keyValueStore.js +0 -134
- package/dist/esm/store/keyValueStore.js.map +0 -1
- package/dist/esm/store/keyValueStoreClient.d.ts +0 -19
- package/dist/esm/store/keyValueStoreClient.js +0 -61
- package/dist/esm/store/keyValueStoreClient.js.map +0 -1
- package/dist/esm/triggerClient.d.ts +0 -288
- package/dist/esm/triggerClient.js +0 -1359
- package/dist/esm/triggerClient.js.map +0 -1
- package/dist/esm/triggers/dynamic.d.ts +0 -56
- package/dist/esm/triggers/dynamic.js +0 -93
- package/dist/esm/triggers/dynamic.js.map +0 -1
- package/dist/esm/triggers/eventTrigger.d.ts +0 -58
- package/dist/esm/triggers/eventTrigger.js +0 -64
- package/dist/esm/triggers/eventTrigger.js.map +0 -1
- package/dist/esm/triggers/externalSource.d.ts +0 -148
- package/dist/esm/triggers/externalSource.js +0 -100
- package/dist/esm/triggers/externalSource.js.map +0 -1
- package/dist/esm/triggers/invokeTrigger.d.ts +0 -39
- package/dist/esm/triggers/invokeTrigger.js +0 -53
- package/dist/esm/triggers/invokeTrigger.js.map +0 -1
- package/dist/esm/triggers/notifications.d.ts +0 -111
- package/dist/esm/triggers/notifications.js +0 -94
- package/dist/esm/triggers/notifications.js.map +0 -1
- package/dist/esm/triggers/scheduled.d.ts +0 -145
- package/dist/esm/triggers/scheduled.js +0 -197
- package/dist/esm/triggers/scheduled.js.map +0 -1
- package/dist/esm/triggers/webhook.d.ts +0 -143
- package/dist/esm/triggers/webhook.js +0 -128
- package/dist/esm/triggers/webhook.js.map +0 -1
- package/dist/esm/typed-emitter.d.ts +0 -37
- package/dist/esm/typed-emitter.js +0 -2
- package/dist/esm/typed-emitter.js.map +0 -1
- package/dist/esm/types.d.ts +0 -204
- package/dist/esm/types.js +0 -19
- package/dist/esm/types.js.map +0 -1
- package/dist/esm/utils/formatSchemaErrors.d.ts +0 -3
- package/dist/esm/utils/formatSchemaErrors.js +0 -7
- package/dist/esm/utils/formatSchemaErrors.js.map +0 -1
- package/dist/esm/utils/typedAsyncLocalStorage.d.ts +0 -6
- package/dist/esm/utils/typedAsyncLocalStorage.js +0 -14
- package/dist/esm/utils/typedAsyncLocalStorage.js.map +0 -1
- package/dist/esm/utils.d.ts +0 -1
- package/dist/esm/utils.js +0 -8
- package/dist/esm/utils.js.map +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Billing limits and alerts"
|
|
3
|
+
sidebarTitle: "Billing limits & alerts"
|
|
4
|
+
description: "Set a monthly compute spend cap for your organization and get email alerts before you reach it."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Billing limits let you cap your organization's monthly compute spend so a runaway task or unexpected traffic spike can't blow your budget. Billing alerts notify you by email as you approach thresholds you choose.
|
|
8
|
+
|
|
9
|
+
<Note>Billing limits and alerts are available to all [Trigger.dev Cloud](https://trigger.dev) organizations. They don't apply to self-hosted instances.</Note>
|
|
10
|
+
|
|
11
|
+
You can find the settings in the dashboard: open the **Organization** menu in the top left, then **Settings** → **Billing limits**.
|
|
12
|
+
|
|
13
|
+
<picture>
|
|
14
|
+
<source srcSet="/images/billing-docs.webp" type="image/webp" />
|
|
15
|
+
<img src="/images/billing-docs.png" alt="Billing limit settings" />
|
|
16
|
+
</picture>
|
|
17
|
+
|
|
18
|
+
## Setting a billing limit
|
|
19
|
+
|
|
20
|
+
Choose one of three options:
|
|
21
|
+
|
|
22
|
+
- **Plan limit**: Use your plan's maximum as the spending cap.
|
|
23
|
+
- **Custom limit**: Set your own monthly spend threshold.
|
|
24
|
+
- **No limit**: No cap is enforced. This is the default.
|
|
25
|
+
|
|
26
|
+
A billing limit applies to your whole organization and covers billable environments: `production`, `staging`, and `preview`. Your `dev` environment is not affected.
|
|
27
|
+
|
|
28
|
+
Optionally, enable **Cancel in-progress runs when this limit is reached** to immediately cancel executing runs when the limit is hit, instead of letting them finish naturally.
|
|
29
|
+
|
|
30
|
+
## Billing alerts
|
|
31
|
+
|
|
32
|
+
Billing alerts are email notifications sent when your monthly spend crosses a threshold. You can add multiple thresholds:
|
|
33
|
+
|
|
34
|
+
- **With a billing limit set**: thresholds are percentages of your limit (e.g. 50%, 80%).
|
|
35
|
+
- **Without a billing limit**: thresholds are dollar amounts.
|
|
36
|
+
|
|
37
|
+
<picture>
|
|
38
|
+
<source srcSet="/images/billing-alerts-docs.webp" type="image/webp" />
|
|
39
|
+
<img src="/images/billing-alerts-docs.png" alt="Billing alerts settings" />
|
|
40
|
+
</picture>
|
|
41
|
+
|
|
42
|
+
Alerts only notify you — they never pause environments or reject runs. Use them on their own for visibility, or alongside a limit to get advance warning before enforcement kicks in.
|
|
43
|
+
|
|
44
|
+
## What happens when you reach your limit
|
|
45
|
+
|
|
46
|
+
When your organization's spend reaches the billing limit, billable environments enter a **grace period**:
|
|
47
|
+
|
|
48
|
+
1. Queues pause across `production`, `staging`, and `preview`. In-progress runs finish naturally (unless you enabled **Cancel in-progress runs**).
|
|
49
|
+
2. New runs can still be triggered and are queued, but they won't start executing. Queued runs incur no compute cost until they start.
|
|
50
|
+
3. You have **24 hours** to review and decide what to do.
|
|
51
|
+
|
|
52
|
+
If you don't act before the grace period ends, new triggers are rejected until you increase or remove the limit (limits also reset at the start of each billing cycle). Queued runs stay queued until you resolve the limit and choose to resume or cancel them. If the limit is still in place when a new billing cycle starts, queued runs resume automatically. Runs that have a TTL still expire if they stay queued past it.
|
|
53
|
+
|
|
54
|
+
<Note>
|
|
55
|
+
Billing limits are **soft limits**, not instantaneous hard caps. Usage is evaluated on a short
|
|
56
|
+
delay, so spend can briefly exceed your limit before enforcement applies. See our
|
|
57
|
+
[terms](https://trigger.dev/terms) for refund policy details.
|
|
58
|
+
</Note>
|
|
59
|
+
|
|
60
|
+
## Resuming after hitting a limit
|
|
61
|
+
|
|
62
|
+
To resume execution, increase or remove the billing limit from the **Billing limits** page. You'll be asked what to do with the runs that queued up during the pause:
|
|
63
|
+
|
|
64
|
+
- **Resume queued runs**: everything that built up during the pause runs in order.
|
|
65
|
+
- **Cancel queued runs**: the backlog is discarded and only new triggers run going forward.
|
|
66
|
+
|
|
67
|
+
Execution resumes automatically once you've resolved the limit. Limits also reset at the start of each billing cycle.
|
|
68
|
+
|
|
69
|
+
## Tracking spend against your limit
|
|
70
|
+
|
|
71
|
+
On the **Usage** page (Organization menu → **Usage**), a **Billing limit** marker appears on the usage bar alongside your current spend and plan included usage, so you can see how close you are at a glance.
|
|
72
|
+
|
|
73
|
+
For tips on lowering your spend in the first place, see [How to reduce your spend](/how-to-reduce-your-spend).
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Building with AI: overview"
|
|
3
|
+
sidebarTitle: "Overview"
|
|
4
|
+
description: "Tools and resources for building Trigger.dev projects with AI coding assistants."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Quick setup
|
|
8
|
+
|
|
9
|
+
We provide multiple tools to help AI coding assistants write correct Trigger.dev code. Use one or all of them for the best developer experience.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<Steps>
|
|
13
|
+
|
|
14
|
+
<Step title="Install the MCP Server">
|
|
15
|
+
Give your AI assistant direct access to Trigger.dev tools — search docs, trigger tasks, deploy projects, and monitor runs. Works with Claude Code, Cursor, Windsurf, VS Code (Copilot), and Zed.
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx trigger.dev@latest install-mcp
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[Learn more →](/mcp-introduction)
|
|
22
|
+
</Step>
|
|
23
|
+
|
|
24
|
+
<Step title="Install Skills">
|
|
25
|
+
Portable instruction sets that teach any AI coding assistant Trigger.dev best practices: writing tasks, realtime frontends, and `chat.agent` AI agents. They install with the CLI into Claude Code, Cursor, VS Code (Copilot), and AGENTS-compatible tools such as Codex via `.agents/skills/`, and draw their API guidance from a version-pinned reference shipped in `@trigger.dev/sdk`.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npx trigger.dev@latest skills
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[Learn more →](/skills)
|
|
32
|
+
</Step>
|
|
33
|
+
|
|
34
|
+
</Steps>
|
|
35
|
+
|
|
36
|
+
## Skills and the MCP server
|
|
37
|
+
|
|
38
|
+
Skills and the MCP server do different jobs and work best together. Here's how they compare:
|
|
39
|
+
|
|
40
|
+
| | **Skills** | **MCP Server** |
|
|
41
|
+
|:--|:-----------|:---------------|
|
|
42
|
+
| **What it does** | Drops skill files into your project that teach Trigger.dev patterns | Runs a live server your AI connects to |
|
|
43
|
+
| **Installs to** | `.claude/skills/`, `.cursor/skills/`, `.github/skills/`, `.agents/skills/` | `mcp.json`, `~/.claude.json`, etc. |
|
|
44
|
+
| **Updates** | Re-run `npx trigger.dev@latest skills`, or auto-prompted on `trigger dev` | Always latest (uses `@latest`) |
|
|
45
|
+
| **Best for** | Teaching patterns and best practices | Live project interaction (deploy, trigger, monitor) |
|
|
46
|
+
| **Works offline** | Yes | No (calls Trigger.dev API) |
|
|
47
|
+
|
|
48
|
+
**Our recommendation:** Install both. Skills teach your AI *how* to write Trigger.dev code; the MCP Server lets it *do things* in your project.
|
|
49
|
+
|
|
50
|
+
## Project-level context snippet
|
|
51
|
+
|
|
52
|
+
If you prefer a lightweight/passive approach, paste the snippet below into a context file at the root of your project. Different AI tools read different files:
|
|
53
|
+
|
|
54
|
+
| File | Read by |
|
|
55
|
+
|:-----|:--------|
|
|
56
|
+
| `CLAUDE.md` | Claude Code |
|
|
57
|
+
| `AGENTS.md` | OpenAI Codex, Jules, OpenCode |
|
|
58
|
+
| `.cursor/rules/*.md` | Cursor |
|
|
59
|
+
| `.github/copilot-instructions.md` | GitHub Copilot |
|
|
60
|
+
| `CONVENTIONS.md` | Windsurf, Cline, and others |
|
|
61
|
+
|
|
62
|
+
Create the file that matches your AI tool (or multiple files if your team uses different tools) and paste the snippet below. This gives the AI essential Trigger.dev context without installing anything.
|
|
63
|
+
|
|
64
|
+
<Accordion title="Copy the snippet">
|
|
65
|
+
|
|
66
|
+
````markdown
|
|
67
|
+
# Trigger.dev rules
|
|
68
|
+
|
|
69
|
+
## Imports
|
|
70
|
+
|
|
71
|
+
Always import from `@trigger.dev/sdk` — never from `@trigger.dev/sdk/v3` or use the deprecated `client.defineJob` pattern.
|
|
72
|
+
|
|
73
|
+
## Task pattern
|
|
74
|
+
|
|
75
|
+
Every task must be exported. Use `task()` from `@trigger.dev/sdk`:
|
|
76
|
+
|
|
77
|
+
```ts
|
|
78
|
+
import { task } from "@trigger.dev/sdk";
|
|
79
|
+
|
|
80
|
+
export const myTask = task({
|
|
81
|
+
id: "my-task",
|
|
82
|
+
retry: {
|
|
83
|
+
maxAttempts: 3,
|
|
84
|
+
factor: 1.8,
|
|
85
|
+
minTimeoutInMs: 500,
|
|
86
|
+
maxTimeoutInMs: 30_000,
|
|
87
|
+
},
|
|
88
|
+
run: async (payload: { url: string }) => {
|
|
89
|
+
// No timeouts — runs can take as long as needed
|
|
90
|
+
return { success: true };
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Triggering tasks
|
|
96
|
+
|
|
97
|
+
From your backend (Next.js route, Express handler, etc.):
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
import type { myTask } from "./trigger/my-task";
|
|
101
|
+
import { tasks } from "@trigger.dev/sdk";
|
|
102
|
+
|
|
103
|
+
// Fire and forget
|
|
104
|
+
const handle = await tasks.trigger<typeof myTask>("my-task", { url: "https://example.com" });
|
|
105
|
+
|
|
106
|
+
// Batch trigger (up to 1,000 items)
|
|
107
|
+
const batchHandle = await tasks.batchTrigger<typeof myTask>("my-task", [
|
|
108
|
+
{ payload: { url: "https://example.com/1" } },
|
|
109
|
+
{ payload: { url: "https://example.com/2" } },
|
|
110
|
+
]);
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### From inside other tasks
|
|
114
|
+
|
|
115
|
+
```ts
|
|
116
|
+
export const parentTask = task({
|
|
117
|
+
id: "parent-task",
|
|
118
|
+
run: async (payload) => {
|
|
119
|
+
// Fire and forget
|
|
120
|
+
await childTask.trigger({ data: "value" });
|
|
121
|
+
|
|
122
|
+
// Wait for result — returns a Result object, NOT the output directly
|
|
123
|
+
const result = await childTask.triggerAndWait({ data: "value" });
|
|
124
|
+
if (result.ok) {
|
|
125
|
+
console.log(result.output); // The actual return value
|
|
126
|
+
} else {
|
|
127
|
+
console.error(result.error);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// Or use .unwrap() to get output directly (throws on failure)
|
|
131
|
+
const output = await childTask.triggerAndWait({ data: "value" }).unwrap();
|
|
132
|
+
},
|
|
133
|
+
});
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
> Never wrap `triggerAndWait` or `batchTriggerAndWait` in `Promise.all` — this is not supported.
|
|
137
|
+
|
|
138
|
+
## Error handling
|
|
139
|
+
|
|
140
|
+
```ts
|
|
141
|
+
import { task, retry, AbortTaskRunError } from "@trigger.dev/sdk";
|
|
142
|
+
|
|
143
|
+
export const resilientTask = task({
|
|
144
|
+
id: "resilient-task",
|
|
145
|
+
retry: { maxAttempts: 5 },
|
|
146
|
+
run: async (payload) => {
|
|
147
|
+
// Permanent error — skip retrying
|
|
148
|
+
if (!payload.isValid) {
|
|
149
|
+
throw new AbortTaskRunError("Invalid payload, will not retry");
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// Retry a specific block (not the whole task)
|
|
153
|
+
const data = await retry.onThrow(
|
|
154
|
+
async () => await fetchExternalApi(payload),
|
|
155
|
+
{ maxAttempts: 3 }
|
|
156
|
+
);
|
|
157
|
+
|
|
158
|
+
return data;
|
|
159
|
+
},
|
|
160
|
+
});
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Schema validation
|
|
164
|
+
|
|
165
|
+
Use `schemaTask` with Zod for payload validation:
|
|
166
|
+
|
|
167
|
+
```ts
|
|
168
|
+
import { schemaTask } from "@trigger.dev/sdk";
|
|
169
|
+
import { z } from "zod";
|
|
170
|
+
|
|
171
|
+
export const processVideo = schemaTask({
|
|
172
|
+
id: "process-video",
|
|
173
|
+
schema: z.object({ videoUrl: z.string().url() }),
|
|
174
|
+
run: async (payload) => {
|
|
175
|
+
// payload is typed and validated
|
|
176
|
+
},
|
|
177
|
+
});
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Waits
|
|
181
|
+
|
|
182
|
+
Use `wait.for` for delays, `wait.until` for dates, and `wait.forToken` for external callbacks:
|
|
183
|
+
|
|
184
|
+
```ts
|
|
185
|
+
import { wait } from "@trigger.dev/sdk";
|
|
186
|
+
await wait.for({ seconds: 30 });
|
|
187
|
+
await wait.until({ date: new Date("2025-01-01") });
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
## Configuration
|
|
191
|
+
|
|
192
|
+
`trigger.config.ts` lives at the project root:
|
|
193
|
+
|
|
194
|
+
```ts
|
|
195
|
+
import { defineConfig } from "@trigger.dev/sdk/build";
|
|
196
|
+
|
|
197
|
+
export default defineConfig({
|
|
198
|
+
project: "<your-project-ref>",
|
|
199
|
+
dirs: ["./trigger"],
|
|
200
|
+
});
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## Common mistakes
|
|
204
|
+
|
|
205
|
+
1. **Forgetting to export tasks** — every task must be a named export
|
|
206
|
+
2. **Importing from `@trigger.dev/sdk/v3`** — this is the old v3 path; always use `@trigger.dev/sdk`
|
|
207
|
+
3. **Using `client.defineJob()`** — this is the deprecated v2 API
|
|
208
|
+
4. **Calling `task.trigger()` directly** — use `tasks.trigger<typeof myTask>("task-id", payload)` from your backend
|
|
209
|
+
5. **Using `triggerAndWait` result as output** — it returns a `Result` object; check `result.ok` then access `result.output`, or use `.unwrap()`
|
|
210
|
+
6. **Wrapping waits/triggerAndWait in `Promise.all`** — not supported in Trigger.dev tasks
|
|
211
|
+
7. **Adding timeouts to tasks** — tasks have no built-in timeout; use `maxDuration` in config if needed
|
|
212
|
+
````
|
|
213
|
+
|
|
214
|
+
</Accordion>
|
|
215
|
+
|
|
216
|
+
## llms.txt
|
|
217
|
+
|
|
218
|
+
We also publish machine-readable documentation for LLM consumption:
|
|
219
|
+
|
|
220
|
+
- [trigger.dev/docs/llms.txt](https://trigger.dev/docs/llms.txt) — concise overview
|
|
221
|
+
- [trigger.dev/docs/llms-full.txt](https://trigger.dev/docs/llms-full.txt) — full documentation
|
|
222
|
+
|
|
223
|
+
These follow the [llms.txt standard](https://llmstxt.org) and can be fed directly into any LLM context window.
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
## Troubleshooting
|
|
227
|
+
|
|
228
|
+
<AccordionGroup>
|
|
229
|
+
|
|
230
|
+
<Accordion title="AI keeps generating old v2/v3 code">
|
|
231
|
+
Install [Skills](/skills); they override the outdated patterns in the AI's training data. The [context snippet](#project-level-context-snippet) above is a quick alternative.
|
|
232
|
+
</Accordion>
|
|
233
|
+
|
|
234
|
+
<Accordion title="MCP server won't connect">
|
|
235
|
+
1. Make sure you've restarted your AI client after adding the config
|
|
236
|
+
2. Run `npx trigger.dev@latest install-mcp` again — it will detect and fix common issues
|
|
237
|
+
3. Check that `npx trigger.dev@latest mcp` runs without errors in your terminal
|
|
238
|
+
4. See the [MCP introduction](/mcp-introduction) for client-specific config details
|
|
239
|
+
</Accordion>
|
|
240
|
+
|
|
241
|
+
<Accordion title="Which tool should I install?">
|
|
242
|
+
Both if possible:
|
|
243
|
+
- **Skills** to teach your AI how to write Trigger.dev code (tasks, realtime, chat.agent)
|
|
244
|
+
- **MCP Server** if you need to trigger tasks, deploy, and search docs from your AI
|
|
245
|
+
</Accordion>
|
|
246
|
+
|
|
247
|
+
</AccordionGroup>
|
|
248
|
+
|
|
249
|
+
## Next steps
|
|
250
|
+
|
|
251
|
+
<CardGroup cols={2}>
|
|
252
|
+
<Card title="MCP Server" icon="sparkles" href="/mcp-introduction">
|
|
253
|
+
Install and configure the MCP Server for live project interaction.
|
|
254
|
+
</Card>
|
|
255
|
+
<Card title="Skills" icon="wand-magic-sparkles" href="/skills">
|
|
256
|
+
Install Trigger.dev agent skills into any AI coding assistant.
|
|
257
|
+
</Card>
|
|
258
|
+
<Card title="Writing tasks" icon="code" href="/tasks/overview">
|
|
259
|
+
Learn the task patterns your AI assistant will follow.
|
|
260
|
+
</Card>
|
|
261
|
+
</CardGroup>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Bulk actions in the dashboard"
|
|
3
|
+
sidebarTitle: "Bulk actions"
|
|
4
|
+
description: "Replay or cancel multiple runs from the dashboard using filters or selected run IDs."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
**Bulk actions let you replay or cancel multiple runs asynchronously from the dashboard.**
|
|
8
|
+
|
|
9
|
+
Use bulk actions when you need to retry failed runs after deploying a fix, or stop a group of queued or executing runs.
|
|
10
|
+
|
|
11
|
+
<Note>
|
|
12
|
+
For backend code, see [Bulk actions with the SDK](/runs/bulk-actions).
|
|
13
|
+
</Note>
|
|
14
|
+
|
|
15
|
+
<video
|
|
16
|
+
src="https://content.trigger.dev/bulk-actions.mp4"
|
|
17
|
+
preload="auto"
|
|
18
|
+
controls={true}
|
|
19
|
+
loop
|
|
20
|
+
muted
|
|
21
|
+
autoPlay={true}
|
|
22
|
+
width="100%"
|
|
23
|
+
height="100%"
|
|
24
|
+
/>
|
|
25
|
+
|
|
26
|
+
## Create a bulk action in the dashboard
|
|
27
|
+
|
|
28
|
+
<Steps>
|
|
29
|
+
<Step title="Open the bulk action panel">
|
|
30
|
+
Open the runs page and click **Bulk action** in the top right.
|
|
31
|
+
|
|
32
|
+

|
|
33
|
+
</Step>
|
|
34
|
+
|
|
35
|
+
<Step title="Choose the runs">
|
|
36
|
+
Filter the runs table to target a group of runs, or select individual runs from the table.
|
|
37
|
+
</Step>
|
|
38
|
+
|
|
39
|
+
<Step title="Configure the action">
|
|
40
|
+
Choose **Replay** or **Cancel**, add an optional name, then confirm the action.
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
</Step>
|
|
44
|
+
|
|
45
|
+
<Step title="Track progress">
|
|
46
|
+
Open the bulk action page to see progress, view affected runs, or replay the action.
|
|
47
|
+
|
|
48
|
+

|
|
49
|
+
</Step>
|
|
50
|
+
</Steps>
|
|
51
|
+
|
|
52
|
+
<Note>
|
|
53
|
+
You can only cancel runs that are still cancelable, such as queued or executing runs. Runs that have already reached a final state cannot be canceled.
|
|
54
|
+
</Note>
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## Create a bulk action from the SDK
|
|
58
|
+
|
|
59
|
+
Use `runs.bulk.replay()` or `runs.bulk.cancel()` when you want to create a bulk action from your backend code.
|
|
60
|
+
|
|
61
|
+
```ts Your backend code
|
|
62
|
+
import { runs } from "@trigger.dev/sdk";
|
|
63
|
+
|
|
64
|
+
const action = await runs.bulk.replay({
|
|
65
|
+
filter: {
|
|
66
|
+
status: "FAILED",
|
|
67
|
+
taskIdentifier: "sync-customer",
|
|
68
|
+
period: "24h",
|
|
69
|
+
},
|
|
70
|
+
name: "Replay failed customer syncs",
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
const completed = await runs.bulk.poll(action.id);
|
|
74
|
+
console.log(completed.status, completed.counts);
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
See [Bulk actions with the SDK](/runs/bulk-actions) for canceling, listing, polling, and aborting bulk actions from your backend code.
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "CLI env commands"
|
|
3
|
+
sidebarTitle: "env"
|
|
4
|
+
description: "List, get, set, and pull environment variables for a Trigger.dev project."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import CommonOptions from "/snippets/cli-options-common.mdx";
|
|
8
|
+
import ConfigFileOptions from "/snippets/cli-options-config-file.mdx";
|
|
9
|
+
import ProjectRefOptions from "/snippets/cli-options-project-ref.mdx";
|
|
10
|
+
|
|
11
|
+
These commands manage environment variables on a project environment. They default to `prod`. Use `--env staging` or `--env preview` (with `--branch`) for the other environments. There is no `dev` target: local `trigger dev` reads your local `.env`.
|
|
12
|
+
|
|
13
|
+
<CodeGroup>
|
|
14
|
+
|
|
15
|
+
```bash npm
|
|
16
|
+
npx trigger.dev@latest env list
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```bash pnpm
|
|
20
|
+
pnpm dlx trigger.dev@latest env list
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```bash yarn
|
|
24
|
+
yarn dlx trigger.dev@latest env list
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
</CodeGroup>
|
|
28
|
+
|
|
29
|
+
## env list
|
|
30
|
+
|
|
31
|
+
Lists user-set environment variables. `TRIGGER_` system variables are omitted. Values are hidden unless you pass `--show-values`.
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npx trigger.dev@latest env list
|
|
35
|
+
npx trigger.dev@latest env list --show-values
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
<ParamField body="Show values" type="--show-values">
|
|
39
|
+
Print the actual values, including secrets.
|
|
40
|
+
</ParamField>
|
|
41
|
+
|
|
42
|
+
## env get
|
|
43
|
+
|
|
44
|
+
Prints one variable. `--raw` prints only the value, with no banner or extra text, so you can capture it in a script.
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npx trigger.dev@latest env get MY_VAR
|
|
48
|
+
npx trigger.dev@latest env get MY_VAR --raw
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
<ParamField body="Name" type="<name>">
|
|
52
|
+
The name of the environment variable.
|
|
53
|
+
</ParamField>
|
|
54
|
+
|
|
55
|
+
<ParamField body="Raw" type="--raw">
|
|
56
|
+
Print only the value.
|
|
57
|
+
</ParamField>
|
|
58
|
+
|
|
59
|
+
## env set
|
|
60
|
+
|
|
61
|
+
Creates the variable if it does not exist, and overwrites the value if it does. Empty or whitespace-only values are rejected.
|
|
62
|
+
|
|
63
|
+
Updating an existing secret without `--secret` changes the value and leaves it secret. Pass `--secret` when you first create a secret, or when you want a non-secret variable to become one.
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
npx trigger.dev@latest env set MY_VAR my-value
|
|
67
|
+
npx trigger.dev@latest env set STRIPE_KEY sk_live_abc --secret
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
<ParamField body="Name" type="<name>">
|
|
71
|
+
The name of the environment variable.
|
|
72
|
+
</ParamField>
|
|
73
|
+
|
|
74
|
+
<ParamField body="Value" type="<value>">
|
|
75
|
+
The value to set. Cannot be empty.
|
|
76
|
+
</ParamField>
|
|
77
|
+
|
|
78
|
+
<ParamField body="Secret" type="--secret">
|
|
79
|
+
Store the value as a secret, so it cannot be read back.
|
|
80
|
+
</ParamField>
|
|
81
|
+
|
|
82
|
+
## env pull
|
|
83
|
+
|
|
84
|
+
Writes the project's environment variables to a local file. Defaults to `.env.local`. Asks you to confirm before overwriting an existing file unless you pass `--force`. `TRIGGER_` system variables are omitted.
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npx trigger.dev@latest env pull
|
|
88
|
+
npx trigger.dev@latest env pull --output .env.trigger --force
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
<ParamField body="Output" type="-o, --output <file>">
|
|
92
|
+
The file to write. Defaults to `.env.local`.
|
|
93
|
+
</ParamField>
|
|
94
|
+
|
|
95
|
+
<ParamField body="Force" type="--force">
|
|
96
|
+
Overwrite the output file if it exists, without asking.
|
|
97
|
+
</ParamField>
|
|
98
|
+
|
|
99
|
+
## Options
|
|
100
|
+
|
|
101
|
+
<ParamField body="Environment" type="--env | -e">
|
|
102
|
+
The environment to use: `prod`, `staging` or `preview`. Defaults to `prod`.
|
|
103
|
+
</ParamField>
|
|
104
|
+
|
|
105
|
+
<ConfigFileOptions />
|
|
106
|
+
<ProjectRefOptions />
|
|
107
|
+
<ParamField body="Preview branch" type="--branch | -b">
|
|
108
|
+
Required when using `--env preview`. Specify the branch, e.g. `--branch my-branch` or `-b my-branch`.
|
|
109
|
+
</ParamField>
|
|
110
|
+
|
|
111
|
+
### Common options
|
|
112
|
+
|
|
113
|
+
These options are available on most commands.
|
|
114
|
+
|
|
115
|
+
<CommonOptions />
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "CLI init command"
|
|
3
|
+
sidebarTitle: "init"
|
|
4
|
+
description: "Use these options when running the CLI `init` command."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import CommonOptions from '/snippets/cli-options-common.mdx';
|
|
8
|
+
|
|
9
|
+
Run the command like this:
|
|
10
|
+
|
|
11
|
+
<CodeGroup>
|
|
12
|
+
|
|
13
|
+
```bash npm
|
|
14
|
+
npx trigger.dev@latest init
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
```bash pnpm
|
|
18
|
+
pnpm dlx trigger.dev@latest init
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
```bash yarn
|
|
22
|
+
yarn dlx trigger.dev@latest init
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
</CodeGroup>
|
|
26
|
+
|
|
27
|
+
## Arguments
|
|
28
|
+
|
|
29
|
+
<ParamField body="Project path" type="[path]">
|
|
30
|
+
The path to the project. Defaults to `.`.
|
|
31
|
+
</ParamField>
|
|
32
|
+
|
|
33
|
+
## Options
|
|
34
|
+
|
|
35
|
+
<ParamField body="Javascript" type="--javascript">
|
|
36
|
+
By default, the init command assumes you are using TypeScript. Use this flag to initialize a
|
|
37
|
+
project that uses JavaScript.
|
|
38
|
+
</ParamField>
|
|
39
|
+
|
|
40
|
+
<ParamField body="Project ref" type="--project-ref | -p">
|
|
41
|
+
The project ref to use when initializing the project.
|
|
42
|
+
</ParamField>
|
|
43
|
+
|
|
44
|
+
<ParamField body="Package tag" type="--tag | -t">
|
|
45
|
+
The version of the `@trigger.dev/sdk` package to install. Defaults to the CLI version.
|
|
46
|
+
</ParamField>
|
|
47
|
+
|
|
48
|
+
<ParamField body="Skip package install" type="--skip-package-install">
|
|
49
|
+
Skip installing the `@trigger.dev/sdk` package.
|
|
50
|
+
</ParamField>
|
|
51
|
+
|
|
52
|
+
<ParamField body="Override config" type="--override-config">
|
|
53
|
+
Override the existing config file if it exists.
|
|
54
|
+
</ParamField>
|
|
55
|
+
|
|
56
|
+
<ParamField body="Project name" type="--project-name <name>">
|
|
57
|
+
The name of the project to create when your account has no projects yet.
|
|
58
|
+
</ParamField>
|
|
59
|
+
|
|
60
|
+
<ParamField body="Organization name" type="--org-name <name>">
|
|
61
|
+
The organization to create the first project in. Matches an existing organization by name, or creates it if you have none.
|
|
62
|
+
</ParamField>
|
|
63
|
+
|
|
64
|
+
<ParamField body="Runtime" type="-r, --runtime <runtime>">
|
|
65
|
+
The runtime to use: `node`, `node-22`, `node-24`, `node-26` or `bun`. Defaults to `node-24`.
|
|
66
|
+
</ParamField>
|
|
67
|
+
|
|
68
|
+
<ParamField body="Yes" type="-y, --yes">
|
|
69
|
+
Skip all prompts. Requires `--project-ref`, or `--project-name` with `--org-name` for a new account.
|
|
70
|
+
</ParamField>
|
|
71
|
+
|
|
72
|
+
<ParamField body="No browser" type="--no-browser">
|
|
73
|
+
Do not open the browser during login. Print the URL only.
|
|
74
|
+
</ParamField>
|
|
75
|
+
|
|
76
|
+
<ParamField body="Package arguments" type="--pkg-args">
|
|
77
|
+
Additional arguments to pass to the package manager. Accepts CSV for multiple args.
|
|
78
|
+
</ParamField>
|
|
79
|
+
|
|
80
|
+
### Common options
|
|
81
|
+
|
|
82
|
+
These options are available on most commands.
|
|
83
|
+
|
|
84
|
+
<CommonOptions />
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Introduction"
|
|
3
|
+
description: "The Trigger.dev CLI has a number of options and commands to help you develop locally, self host, and deploy your tasks."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import HelpOption from '/snippets/cli-options-help.mdx';
|
|
7
|
+
import VersionOption from '/snippets/cli-options-version.mdx';
|
|
8
|
+
|
|
9
|
+
## Options
|
|
10
|
+
|
|
11
|
+
<HelpOption />
|
|
12
|
+
<VersionOption />
|
|
13
|
+
|
|
14
|
+
## Commands
|
|
15
|
+
|
|
16
|
+
| Command | Description |
|
|
17
|
+
| :------------------------------------------- | :----------------------------------------------------------------- |
|
|
18
|
+
| [login](/cli-login-commands) | Login with Trigger.dev so you can perform authenticated actions. |
|
|
19
|
+
| [init](/cli-init-commands) | Initialize your existing project for development with Trigger.dev. |
|
|
20
|
+
| [dev](/cli-dev-commands) | Run your Trigger.dev tasks locally. |
|
|
21
|
+
| [deploy](/cli-deploy-commands) | Deploy your Trigger.dev project to the cloud. |
|
|
22
|
+
| [whoami](/cli-whoami-commands) | Display the current logged in user and project details. |
|
|
23
|
+
| [logout](/cli-logout-commands) | Logout of Trigger.dev. |
|
|
24
|
+
| [list-profiles](/cli-list-profiles-commands) | List all of your CLI profiles. |
|
|
25
|
+
| [update](/cli-update-commands) | Updates all `@trigger.dev/*` packages to match the CLI version. |
|