diff --git a/.changeset/bun-bytecode-worker.md b/.changeset/bun-bytecode-worker.md deleted file mode 100644 index 074469092d9..00000000000 --- a/.changeset/bun-bytecode-worker.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"trigger.dev": patch -"@trigger.dev/core": patch ---- - -Deploys on the `bun-1.4` runtime now compile the run worker and your task files into a Bun executable with bytecode, so runs start faster. `import.meta.url` and `__dirname` still point at your files under `/app`, so files you read next to your code must be in the image as before (e.g. with `additionalFiles`). Set `build.bunBytecode: false` in `trigger.config.ts` to turn compilation off. diff --git a/.changeset/bun-compiled-exec-path.md b/.changeset/bun-compiled-exec-path.md deleted file mode 100644 index 002ae437d66..00000000000 --- a/.changeset/bun-compiled-exec-path.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"trigger.dev": patch ---- - -Fix `child_process.fork()` and `spawn(process.execPath, ...)` in compiled `bun-1.4` deploys. They started the run worker again instead of Bun, so the child never ran and the task hung. `process.execPath` now points at the image's `bun` binary, as it does in uncompiled deploys. diff --git a/.changeset/bun-missing-binary.md b/.changeset/bun-missing-binary.md deleted file mode 100644 index 8963e867d24..00000000000 --- a/.changeset/bun-missing-binary.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"trigger.dev": patch -"@trigger.dev/core": patch ---- - -`trigger dev` and `trigger deploy` no longer crash with `spawn ... ENOENT` on bun runtimes when Bun isn't installed at `~/.bun`. The CLI now falls back to `bun` on your `PATH` (Homebrew, mise and similar installs), and if Bun still can't be started, `trigger dev` reports a readable error and `trigger deploy` skips local skill discovery with a warning and carries on. diff --git a/.changeset/chat-agent-ai-sdk-7-step-input.md b/.changeset/chat-agent-ai-sdk-7-step-input.md deleted file mode 100644 index 50f0f6abdcc..00000000000 --- a/.changeset/chat-agent-ai-sdk-7-step-input.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@trigger.dev/sdk": patch ---- - -Fix `chat.agent` on AI SDK 7 sending the model the same input on every step. Once a step's `prepareStep` returned messages (a steering message, a mid-turn `chat.inject`, context compaction, or your own `prepareStep`), later steps no longer included the newest tool results, so the model kept repeating the same tool call until the step limit. - -If you call `chat.compact()` from your own `prepareStep`, pass it the `responseMessages` your `prepareStep` receives (`chat.compact(messages, steps, { ...options, responseMessages })`) so steps after a compaction are rebuilt correctly on AI SDK 7. diff --git a/.changeset/chat-agent-client-data-everywhere.md b/.changeset/chat-agent-client-data-everywhere.md deleted file mode 100644 index 44c5f403f77..00000000000 --- a/.changeset/chat-agent-client-data-everywhere.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/sdk": patch ---- - -`chat.agent` now passes `chatId`, `turn` and `clientData` to the callbacks an agent can call a model from, so a mock model injected through `clientData` reaches them. The compaction `summarize` that runs through `chat.MessageAccumulator.prepareStep()` and a `chat.createSession` turn's `prepareStep()`, `onCompacted`, `onValidateMessages`, and the `pendingMessages` `onReceived` and `onInjected` callbacks previously lacked it. The `mockChatAgent` turn methods (`sendMessage`, `sendRegenerate`, `sendAction`) now also wait for `onTurnComplete` and the transcript save to finish, so tests can assert on what those hooks recorded without a sleep. diff --git a/.changeset/cli-bundle-outbase.md b/.changeset/cli-bundle-outbase.md deleted file mode 100644 index a4f9c0ea311..00000000000 --- a/.changeset/cli-bundle-outbase.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"trigger.dev": patch ---- - -Bundled task files now keep their project layout (for example `/app/src/trigger/tasks.mjs`) when the CLI runs from outside the project, such as `npx trigger.dev deploy`. Before, they could land under a path containing the project's location, away from the files `additionalFiles` copies next to them, so reads relative to `import.meta.url` failed. diff --git a/.changeset/cli-command-error-format.md b/.changeset/cli-command-error-format.md deleted file mode 100644 index ba65192d63d..00000000000 --- a/.changeset/cli-command-error-format.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"trigger.dev": patch ---- - -Show CLI command errors in the same error format as other CLI errors, and keep them visible with `--log-level error`. diff --git a/.changeset/concurrency-key-per-limit.md b/.changeset/concurrency-key-per-limit.md deleted file mode 100644 index 1fe35d26af0..00000000000 --- a/.changeset/concurrency-key-per-limit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/sdk": patch ---- - -`concurrencyKey` now also takes an object, so one run can be limited by two limits keyed by different things, like a cap per session and a cap per organization. `default` is the run's own key and every other entry gives a named limit its own key: `concurrencyKey: { default: sessionId, [orgLimit.name]: orgId }`. A string key works as before. diff --git a/.changeset/deploy-warmup-command.md b/.changeset/deploy-warmup-command.md deleted file mode 100644 index 494f40f8fc5..00000000000 --- a/.changeset/deploy-warmup-command.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"trigger.dev": patch -"@trigger.dev/core": patch ---- - -Deploys now report a warmup command that loads your config and task files offline without running any task, so the platform can prepare faster run starts for your deployment. diff --git a/.changeset/jwt-explicit-audience.md b/.changeset/jwt-explicit-audience.md deleted file mode 100644 index 1c71a957307..00000000000 --- a/.changeset/jwt-explicit-audience.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/core": patch ---- - -Allow an explicit audience when signing and verifying JWTs and user-actor tokens. diff --git a/.changeset/lazy-machine-id.md b/.changeset/lazy-machine-id.md deleted file mode 100644 index e21d9ddaf85..00000000000 --- a/.changeset/lazy-machine-id.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@trigger.dev/core": patch -"trigger.dev": patch ---- - -Generate the machine ID and the managed run controller ID on first use instead of at import, so importing these modules draws no randomness and a process restored from a warm start does not reuse IDs drawn before it was saved. diff --git a/.changeset/node-compile-cache.md b/.changeset/node-compile-cache.md deleted file mode 100644 index 027da4267f4..00000000000 --- a/.changeset/node-compile-cache.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"trigger.dev": patch -"@trigger.dev/core": patch ---- - -Deploys on the `node-24` and `node-26` runtimes now build a Node compile cache for your bundled code during the image build, so runs spend less time compiling your tasks and their dependencies before they start. `node-22` deploys are unchanged. diff --git a/.changeset/notion-webhook-verification-token.md b/.changeset/notion-webhook-verification-token.md deleted file mode 100644 index 83cd1115cc2..00000000000 --- a/.changeset/notion-webhook-verification-token.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@trigger.dev/core": patch -"@trigger.dev/sdk": patch ---- - -`webhooks.notion()` endpoints accept Notion's verification request. While the endpoint has no signing secret, the `verification_token` Notion sends is stored as its signing secret, so you can paste it back into Notion and later deliveries verify with it. Redeploy with this version for existing Notion endpoints to pick it up. diff --git a/.changeset/run-process-oom-kill.md b/.changeset/run-process-oom-kill.md deleted file mode 100644 index 6b1b0f936d7..00000000000 --- a/.changeset/run-process-oom-kill.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"trigger.dev": patch ---- - -Report a run whose process the kernel killed for running out of memory as `TASK_PROCESS_OOM_KILLED`, rather than as a generic exit after `SIGKILL`, when the out-of-memory kill is counted in the run's cgroup. diff --git a/.changeset/scoped-run-credentials.md b/.changeset/scoped-run-credentials.md deleted file mode 100644 index 34a9d90d4ab..00000000000 --- a/.changeset/scoped-run-credentials.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@trigger.dev/core": patch -"@trigger.dev/sdk": patch ---- - -Support scoped run tokens without an environment key, including offloaded task inputs and stream waits. Explain why a run has no usable credential for an operation. diff --git a/.changeset/server-minted-public-tokens.md b/.changeset/server-minted-public-tokens.md deleted file mode 100644 index a9a055f2c85..00000000000 --- a/.changeset/server-minted-public-tokens.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@trigger.dev/sdk": patch -"@trigger.dev/core": patch ---- - -Public-token helpers and chat token creation now prefer server minting for root API keys too, avoiding the legacy claims endpoint on compatible servers. Trigger, batch, and waitpoint responses missing a token also try server minting first. - -Root-key callers retain local-signing compatibility only when the mint endpoint is missing or an older server specifically rejects an empty scope list. Named API keys and run tokens never self-sign. Authorization failures, expiration validation errors, rate limits, and server or connection failures do not activate the fallback. - -Server minting with a root key signs with that same authenticated key, including during its rotation grace period, rather than with its replacement. Tokens stop authenticating when that key's grace period ends or it is immediately revoked. Deploy this server update before upgrading the SDK if you rely on minting during root-key rotation; older servers can still reject grace-window keys. - -Server-minted tokens use the API rate-limit budget and follow the server's expiration rules, including its 30-day maximum. Minting tokens without scopes requires self-hosted v4.8.4 or later unless the root-key compatibility fallback is available. The default expiration remains 15 minutes. diff --git a/.changeset/task-env-over-ipc.md b/.changeset/task-env-over-ipc.md deleted file mode 100644 index e3da349b44c..00000000000 --- a/.changeset/task-env-over-ipc.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"trigger.dev": patch ---- - -Deployed task processes now receive secret environment variables only with the run, instead of also in the environment the process starts with. diff --git a/.changeset/task-env-startup-vars.md b/.changeset/task-env-startup-vars.md deleted file mode 100644 index 802227bac25..00000000000 --- a/.changeset/task-env-startup-vars.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"trigger.dev": patch ---- - -Deployed task processes now start with the environment variables that Node, OpenSSL, libuv or the dynamic loader read only at startup (such as `LD_PRELOAD`, `OPENSSL_CONF`, `NODE_ICU_DATA`, `TZ` and `UV_*`), and the run's logs warn, by name only, about other startup-only variables (such as `NODE_OPTIONS`, `MALLOC_*` or `GLIBC_TUNABLES`) that arrive too late to take effect. diff --git a/.changeset/upgrade-esbuild-minimatch.md b/.changeset/upgrade-esbuild-minimatch.md deleted file mode 100644 index 36e7ae39b57..00000000000 --- a/.changeset/upgrade-esbuild-minimatch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"trigger.dev": patch ---- - -Builds from `trigger dev` and `trigger deploy` now use esbuild 0.28. TypeScript parameter properties are now emitted as class fields, and source map paths are URL-encoded. diff --git a/.changeset/webhook-provider-config-fixes.md b/.changeset/webhook-provider-config-fixes.md deleted file mode 100644 index bca664b43df..00000000000 --- a/.changeset/webhook-provider-config-fixes.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@trigger.dev/core": patch -"@trigger.dev/sdk": patch ---- - -Fix webhook verification for `webhooks.brex()`, which now reads the `webhook-id`, `webhook-timestamp` and `webhook-signature` headers Brex sends instead of `svix-*` headers, and for `webhooks.composio()`, which now keys the signature with the secret's raw text as Composio does instead of base64-decoding it. PagerDuty, Sentry, Vercel, Zendesk, Attio, DocuSign and Intercom endpoints now default to pasting the provider-issued signing secret, and Linear and Calendly offer both generating and pasting one. Redeploy with this version for existing endpoints to pick up the change. diff --git a/.server-changes/alert-group-page-defer.md b/.server-changes/alert-group-page-defer.md deleted file mode 100644 index 67a127e4238..00000000000 --- a/.server-changes/alert-group-page-defer.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -The alert group page now shows its header and member list right away, and member charts fill in as they load. diff --git a/.server-changes/alert-wizard-highlight.md b/.server-changes/alert-wizard-highlight.md deleted file mode 100644 index b778c30cd96..00000000000 --- a/.server-changes/alert-wizard-highlight.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -The alert wizard now highlights the suggested option on choice steps instead of the first row. diff --git a/.server-changes/alerts-list-defer.md b/.server-changes/alerts-list-defer.md deleted file mode 100644 index 11367e9f763..00000000000 --- a/.server-changes/alerts-list-defer.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -The alerts list now shows its rows before the activity sparklines load, and the sparklines load faster. diff --git a/.server-changes/api-key-ip-pills.md b/.server-changes/api-key-ip-pills.md deleted file mode 100644 index a4eaa068c4f..00000000000 --- a/.server-changes/api-key-ip-pills.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: improvement ---- - -The allowed IP addresses field on API keys now turns each address or CIDR range into its own pill as you type, checks it right away with the same rules used on save, and lets you remove entries one at a time. A "Test an IP" button checks whether an address would be allowed by the current list before you save. diff --git a/.server-changes/dashboard-agent-alert-limits.md b/.server-changes/dashboard-agent-alert-limits.md deleted file mode 100644 index 41885bd0362..00000000000 --- a/.server-changes/dashboard-agent-alert-limits.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Alerts created from the Dashboard Agent are now limited to 200 active alerts per project, with bounded names, scopes and notification channels. diff --git a/.server-changes/dashboard-agent-alert-listing.md b/.server-changes/dashboard-agent-alert-listing.md deleted file mode 100644 index fef6c64cdbf..00000000000 --- a/.server-changes/dashboard-agent-alert-listing.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: improvement ---- - -The assistant can now list alerts across environments and projects, and show which alert channels are set up. diff --git a/.server-changes/dashboard-agent-confirm-alert-resolve.md b/.server-changes/dashboard-agent-confirm-alert-resolve.md deleted file mode 100644 index 19b84f7ef49..00000000000 --- a/.server-changes/dashboard-agent-confirm-alert-resolve.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -The dashboard agent now asks you to confirm before resolving an alert. diff --git a/.server-changes/dashboard-agent-developer-reads.md b/.server-changes/dashboard-agent-developer-reads.md deleted file mode 100644 index 74577187efa..00000000000 --- a/.server-changes/dashboard-agent-developer-reads.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -The Dashboard Agent can now look up runs, deployments and queries in non-development environments for members whose role can see them but can't view API keys. diff --git a/.server-changes/dashboard-agent-help-links-prefill.md b/.server-changes/dashboard-agent-help-links-prefill.md deleted file mode 100644 index 1478086b56f..00000000000 --- a/.server-changes/dashboard-agent-help-links-prefill.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Help links (`?aiHelp=`, `/ai-help`) now prefill the chat composer instead of sending. diff --git a/.server-changes/dashboard-agent-watch.md b/.server-changes/dashboard-agent-watch.md deleted file mode 100644 index 94b2e6e1230..00000000000 --- a/.server-changes/dashboard-agent-watch.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -Ask the Dashboard Agent to watch something, such as a deploy, a task or a model, and it proposes alerts you confirm one by one. When the alerts belong together, it offers to create them as one grouped alert in a single click. diff --git a/.server-changes/dashboard-widget-watch.md b/.server-changes/dashboard-widget-watch.md deleted file mode 100644 index d972a5d08e3..00000000000 --- a/.server-changes/dashboard-widget-watch.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -Dashboard widget menus now have a Watch action that starts an alert from the widget's query, and when the query cannot be alerted on as written or the dashboard has filters applied, the Dashboard agent helps adapt it. The Watch button in the dashboard header is removed. diff --git a/.server-changes/dialog-direct-load-hydration.md b/.server-changes/dialog-direct-load-hydration.md deleted file mode 100644 index 53b57893c8e..00000000000 --- a/.server-changes/dialog-direct-load-hydration.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Fix dashboard pages that open as a dialog (such as adding environment variables or a new alert) re-rendering the whole page when loaded directly or reloaded. diff --git a/.server-changes/env-vars-batch-delete.md b/.server-changes/env-vars-batch-delete.md deleted file mode 100644 index 1a7e141f9c1..00000000000 --- a/.server-changes/env-vars-batch-delete.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -Select up to 100 environment variable values on the Environment variables page and delete them together. The confirmation lists every value and its environment, and asks you to type a word before anything is removed. diff --git a/.server-changes/env-vars-compare.md b/.server-changes/env-vars-compare.md deleted file mode 100644 index c20fc19a983..00000000000 --- a/.server-changes/env-vars-compare.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -Compare the environment variables of two environments on the Environment variables page and see only the keys that differ, with secrets shown as the same or different but never revealed. Copy values from one environment to the other, one key or up to 100 at a time. diff --git a/.server-changes/env-vars-key-panel.md b/.server-changes/env-vars-key-panel.md deleted file mode 100644 index d03c066d80b..00000000000 --- a/.server-changes/env-vars-key-panel.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -Click a key on the environment variables page to see its value in every environment and preview branch in a side panel, with edit and delete in place. A list showing a single environment can also be sorted by last updated. The edit dialog now starts in the value field, and archived preview branches are no longer accepted as targets. diff --git a/.server-changes/env-vars-needs-attention.md b/.server-changes/env-vars-needs-attention.md deleted file mode 100644 index 2d0cc69974f..00000000000 --- a/.server-changes/env-vars-needs-attention.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -Environment variables page: a new Needs attention page lists the keys in one environment that are empty, missing compared with your other environments, changed in the last day, or replaceable with OIDC, with copy, delete and ignore actions. The OIDC page is now a grid of providers with setup in a side panel, it points at environment variables OIDC could replace, and there are setup guides for Azure, Google Cloud, HashiCorp Vault, Doppler, Snowflake and Databricks. diff --git a/.server-changes/env-vars-page-qol.md b/.server-changes/env-vars-page-qol.md deleted file mode 100644 index 26725199a55..00000000000 --- a/.server-changes/env-vars-page-qol.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: improvement ---- - -Environment variables page: after adding a variable, the list switches to the environment you saved it in and opens the page that holds the new key, with a toast naming where it went. The `env` filter in the URL also accepts `development`, `staging` and `production`. The compare view has a copy button on each key, and each row's edit and delete buttons are named after the key and environment for screen readers. diff --git a/.server-changes/env-vars-save-conflict.md b/.server-changes/env-vars-save-conflict.md deleted file mode 100644 index 2f36fa35fd6..00000000000 --- a/.server-changes/env-vars-save-conflict.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Saving an environment variable that someone else deletes at the same moment now shows a clear message asking you to try again instead of a database error, and the API answers with a 409. Deleting a value can no longer remove a value that was being added to the same variable at that moment. diff --git a/.server-changes/environment-encryption.md b/.server-changes/environment-encryption.md deleted file mode 100644 index d72019da8bc..00000000000 --- a/.server-changes/environment-encryption.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -area: webapp -type: feature ---- -Add opt-in per-environment encryption keys for runtime and build environment variables, with rotation and migration support. diff --git a/.server-changes/fail-runs-dead-lettered-during-dequeue-recovery.md b/.server-changes/fail-runs-dead-lettered-during-dequeue-recovery.md deleted file mode 100644 index faef98a39b5..00000000000 --- a/.server-changes/fail-runs-dead-lettered-during-dequeue-recovery.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Runs that exhaust their dequeue attempts while the run or its environment can't be read now fail with `TASK_RUN_DEQUEUED_MAX_RETRIES` instead of staying queued forever. diff --git a/.server-changes/fix-preview-waitpoint-callbacks.md b/.server-changes/fix-preview-waitpoint-callbacks.md deleted file mode 100644 index e571cf385a9..00000000000 --- a/.server-changes/fix-preview-waitpoint-callbacks.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Fix waitpoint callback URLs returning authentication errors when created inside preview branch runs, including previously issued URLs. diff --git a/.server-changes/fix-restricted-key-packet-downloads.md b/.server-changes/fix-restricted-key-packet-downloads.md deleted file mode 100644 index 6ede8e796f0..00000000000 --- a/.server-changes/fix-restricted-key-packet-downloads.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Restore offloaded payload, output, and stream-wait result downloads for API keys with packet read access. diff --git a/.server-changes/fix-scoped-waitpoint-key-reuse.md b/.server-changes/fix-scoped-waitpoint-key-reuse.md deleted file mode 100644 index 14067b66acf..00000000000 --- a/.server-changes/fix-scoped-waitpoint-key-reuse.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Keep waitpoint idempotency keys scoped to a run unless the API key can both read and write all waitpoints. diff --git a/.server-changes/fix-sole-owner-leave.md b/.server-changes/fix-sole-owner-leave.md deleted file mode 100644 index 8ac6fc5486d..00000000000 --- a/.server-changes/fix-sole-owner-leave.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -An organization's only Owner can no longer leave or be removed while other members remain, so the organization always keeps someone who can manage members, billing and roles. diff --git a/.server-changes/github-ignored-branches.md b/.server-changes/github-ignored-branches.md deleted file mode 100644 index c267b90a38d..00000000000 --- a/.server-changes/github-ignored-branches.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -Add "Ignored branches" to the Git settings: pull requests from branches matching these patterns no longer get a preview deployment. Patterns are globs matched against the whole branch name, like `dependabot/**`. diff --git a/.server-changes/mcp-remote-trigger-source.md b/.server-changes/mcp-remote-trigger-source.md deleted file mode 100644 index 109249c49c7..00000000000 --- a/.server-changes/mcp-remote-trigger-source.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: improvement ---- - -Runs started through the hosted MCP server are now recorded with the `mcp-remote` trigger source, so they can be told apart from runs started by the local CLI MCP. diff --git a/.server-changes/oidc-catalog-hugging-face-openrouter.md b/.server-changes/oidc-catalog-hugging-face-openrouter.md deleted file mode 100644 index 0a503213b3f..00000000000 --- a/.server-changes/oidc-catalog-hugging-face-openrouter.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -The OIDC page lists Hugging Face and OpenRouter, and the environment variables page suggests OIDC for their API keys. Each has a setup guide in the docs. diff --git a/.server-changes/org-mfa-enforcement.md b/.server-changes/org-mfa-enforcement.md deleted file mode 100644 index 24ac67cc68b..00000000000 --- a/.server-changes/org-mfa-enforcement.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -Organization owners can now require multi-factor authentication for every member, and ask for a fresh MFA check before members view environment variables, create personal access tokens or change the organization's security settings. Find both under Organization settings → Security. diff --git a/.server-changes/pagination-page-numbers.md b/.server-changes/pagination-page-numbers.md deleted file mode 100644 index 76fd65050aa..00000000000 --- a/.server-changes/pagination-page-numbers.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Numbered pagination no longer repeats a page number on long lists, and the Tasks page now keeps its page numbers in one bar fixed below the table. diff --git a/.server-changes/pat-derived-token-revocation.md b/.server-changes/pat-derived-token-revocation.md deleted file mode 100644 index bbbea5c643c..00000000000 --- a/.server-changes/pat-derived-token-revocation.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Revoking or expiring a personal access token now also ends the environment JWTs exchanged from it and the run, batch and session tokens minted with them. diff --git a/.server-changes/pending-version-after-deploy.md b/.server-changes/pending-version-after-deploy.md deleted file mode 100644 index aa42a0ac9fe..00000000000 --- a/.server-changes/pending-version-after-deploy.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Runs triggered in the seconds after a deploy no longer get stuck waiting for a version until the next deploy. diff --git a/.server-changes/pending-version-promotion-lock.md b/.server-changes/pending-version-promotion-lock.md deleted file mode 100644 index f307ba626e7..00000000000 --- a/.server-changes/pending-version-promotion-lock.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -A run released from waiting for a version is no longer occasionally left queued with nothing to pick it up when a worker dequeues it at the same moment. diff --git a/.server-changes/personal-access-token-custom-expiry.md b/.server-changes/personal-access-token-custom-expiry.md deleted file mode 100644 index 6a0c31e3bca..00000000000 --- a/.server-changes/personal-access-token-custom-expiry.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: improvement ---- - -Personal access tokens created on the dashboard can now expire on a custom date, picked from a calendar alongside the preset lifetimes. A token expires at the end of the chosen day (UTC), up to the longest offered lifetime. diff --git a/.server-changes/remote-mcp-server.md b/.server-changes/remote-mcp-server.md deleted file mode 100644 index 3e01680f512..00000000000 --- a/.server-changes/remote-mcp-server.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -Add a hosted MCP server so AI clients can work with your projects and runs. It is opt-in per deployment. diff --git a/.server-changes/sandbox-short-retries.md b/.server-changes/sandbox-short-retries.md deleted file mode 100644 index 1860790c6e1..00000000000 --- a/.server-changes/sandbox-short-retries.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Fix sandbox task retries stalling when retry delays are short. diff --git a/.server-changes/scheduled-task-schedules-tab.md b/.server-changes/scheduled-task-schedules-tab.md deleted file mode 100644 index b4df024ab9f..00000000000 --- a/.server-changes/scheduled-task-schedules-tab.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: improvement ---- - -A scheduled task's schedules now have their own tab next to Runs, with every column visible. The side panel shows the schedule when the task has exactly one, and a count with a link when it has more. Next run shows the local time first, followed by the relative time. diff --git a/.server-changes/supervisor-reuse-platform-connections.md b/.server-changes/supervisor-reuse-platform-connections.md deleted file mode 100644 index eb93fed1c4c..00000000000 --- a/.server-changes/supervisor-reuse-platform-connections.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: supervisor -type: improvement ---- - -Runs start faster when the platform is busy. diff --git a/.server-changes/task-returned-while-resuming-from-wait.md b/.server-changes/task-returned-while-resuming-from-wait.md deleted file mode 100644 index 70534dc8ee0..00000000000 --- a/.server-changes/task-returned-while-resuming-from-wait.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -A task that returns while its run is resuming from a wait it did not await (for example a wait raced against a timeout or an abort signal) can now fail right away with an error that says so. Before, the run stayed in an executing state until its heartbeat timed out, and could then be reported as out of memory. This is off by default: set `RUN_ENGINE_STALE_COMPLETION_MODE=enforce` on the webapp to switch it on. diff --git a/hosting/k8s/helm/Chart.yaml b/hosting/k8s/helm/Chart.yaml index fee2524b3b9..8e37c570617 100644 --- a/hosting/k8s/helm/Chart.yaml +++ b/hosting/k8s/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: trigger description: The official Trigger.dev Helm chart type: application -version: 4.8.5 -appVersion: v4.8.5 +version: 4.8.6 +appVersion: v4.8.6 home: https://trigger.dev sources: - https://github.com/triggerdotdev/trigger.dev diff --git a/packages/build/CHANGELOG.md b/packages/build/CHANGELOG.md index accdf166c4d..11e8277daa7 100644 --- a/packages/build/CHANGELOG.md +++ b/packages/build/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/build +## 4.8.6 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.6` + ## 4.8.5 ### Patch Changes diff --git a/packages/build/package.json b/packages/build/package.json index d0fa407d2c4..28656f06903 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/build", - "version": "4.8.5", + "version": "4.8.6", "description": "trigger.dev build extensions", "license": "MIT", "publishConfig": { @@ -82,7 +82,7 @@ }, "dependencies": { "@prisma/config": "^6.10.0", - "@trigger.dev/core": "workspace:4.8.5", + "@trigger.dev/core": "workspace:4.8.6", "mlly": "^1.7.1", "pkg-types": "^1.1.3", "tinyglobby": "^0.2.2", diff --git a/packages/cli-v3/CHANGELOG.md b/packages/cli-v3/CHANGELOG.md index 8c617796e75..e49b56254ae 100644 --- a/packages/cli-v3/CHANGELOG.md +++ b/packages/cli-v3/CHANGELOG.md @@ -1,5 +1,26 @@ # trigger.dev +## 4.8.6 + +### Patch Changes + +- Deploys on the `bun-1.4` runtime now compile the run worker and your task files into a Bun executable with bytecode, so runs start faster. `import.meta.url` and `__dirname` still point at your files under `/app`, so files you read next to your code must be in the image as before (e.g. with `additionalFiles`). Set `build.bunBytecode: false` in `trigger.config.ts` to turn compilation off. ([`8130e5e73`](https://github.com/triggerdotdev/trigger.dev/commit/8130e5e735bd5324b58c5efa829c94c7026c371c)) +- Fix `child_process.fork()` and `spawn(process.execPath, ...)` in compiled `bun-1.4` deploys. They started the run worker again instead of Bun, so the child never ran and the task hung. `process.execPath` now points at the image's `bun` binary, as it does in uncompiled deploys. ([`d63b49ef3`](https://github.com/triggerdotdev/trigger.dev/commit/d63b49ef30e614cf5c777630bd532bd1295b0e31)) +- `trigger dev` and `trigger deploy` no longer crash with `spawn ... ENOENT` on bun runtimes when Bun isn't installed at `~/.bun`. The CLI now falls back to `bun` on your `PATH` (Homebrew, mise and similar installs), and if Bun still can't be started, `trigger dev` reports a readable error and `trigger deploy` skips local skill discovery with a warning and carries on. ([`15797c9f2`](https://github.com/triggerdotdev/trigger.dev/commit/15797c9f2bf14fbbd36175bbc242aec80a479c5d)) +- Bundled task files now keep their project layout (for example `/app/src/trigger/tasks.mjs`) when the CLI runs from outside the project, such as `npx trigger.dev deploy`. Before, they could land under a path containing the project's location, away from the files `additionalFiles` copies next to them, so reads relative to `import.meta.url` failed. ([`0c03b59b9`](https://github.com/triggerdotdev/trigger.dev/commit/0c03b59b9533c59f287d62478685db35f6b4b6d6)) +- Show CLI command errors in the same error format as other CLI errors, and keep them visible with `--log-level error`. ([`c515c3f74`](https://github.com/triggerdotdev/trigger.dev/commit/c515c3f74656fe79e311acb1d32fe8f091f18a8d)) +- Deploys now report a warmup command that loads your config and task files offline without running any task, so the platform can prepare faster run starts for your deployment. ([`5479177af`](https://github.com/triggerdotdev/trigger.dev/commit/5479177af219875c69ffaee402c701824db2a678)) +- Generate the machine ID and the managed run controller ID on first use instead of at import, so importing these modules draws no randomness and a process restored from a warm start does not reuse IDs drawn before it was saved. ([`a8ac49cd3`](https://github.com/triggerdotdev/trigger.dev/commit/a8ac49cd30fffb779dbd93275d04a001d926e915)) +- Deploys on the `node-24` and `node-26` runtimes now build a Node compile cache for your bundled code during the image build, so runs spend less time compiling your tasks and their dependencies before they start. `node-22` deploys are unchanged. ([`cb1e7362f`](https://github.com/triggerdotdev/trigger.dev/commit/cb1e7362fe9d804ceb2b4e643cf8fa0d0334b676)) +- Report a run whose process the kernel killed for running out of memory as `TASK_PROCESS_OOM_KILLED`, rather than as a generic exit after `SIGKILL`, when the out-of-memory kill is counted in the run's cgroup. ([`7a2a7dc80`](https://github.com/triggerdotdev/trigger.dev/commit/7a2a7dc801fc5bc97a03add95dc1b2a12f978e58)) +- Deployed task processes now receive secret environment variables only with the run, instead of also in the environment the process starts with. ([`489a6dff3`](https://github.com/triggerdotdev/trigger.dev/commit/489a6dff3d8b618779bc36f6b785c201310e1480)) +- Deployed task processes now start with the environment variables that Node, OpenSSL, libuv or the dynamic loader read only at startup (such as `LD_PRELOAD`, `OPENSSL_CONF`, `NODE_ICU_DATA`, `TZ` and `UV_*`), and the run's logs warn, by name only, about other startup-only variables (such as `NODE_OPTIONS`, `MALLOC_*` or `GLIBC_TUNABLES`) that arrive too late to take effect. ([`60d1774df`](https://github.com/triggerdotdev/trigger.dev/commit/60d1774dfe9f0534f2260f2dd94e27cbffa1c92a)) +- Builds from `trigger dev` and `trigger deploy` now use esbuild 0.28. TypeScript parameter properties are now emitted as class fields, and source map paths are URL-encoded. ([`af2098570`](https://github.com/triggerdotdev/trigger.dev/commit/af209857030fc763da0ea0d4595343c2875d007c)) +- Updated dependencies: + - `@trigger.dev/core@4.8.6` + - `@trigger.dev/build@4.8.6` + - `@trigger.dev/schema-to-json@4.8.6` + ## 4.8.5 ### Patch Changes diff --git a/packages/cli-v3/package.json b/packages/cli-v3/package.json index 343ff95b232..276e490abdb 100644 --- a/packages/cli-v3/package.json +++ b/packages/cli-v3/package.json @@ -1,6 +1,6 @@ { "name": "trigger.dev", - "version": "4.8.5", + "version": "4.8.6", "description": "A Command-Line Interface for Trigger.dev projects", "type": "module", "license": "MIT", @@ -84,9 +84,9 @@ "@opentelemetry/api-logs": "0.219.0", "@opentelemetry/instrumentation": "0.219.0", "@s2-dev/streamstore": "^0.25.0", - "@trigger.dev/build": "workspace:4.8.5", - "@trigger.dev/core": "workspace:4.8.5", - "@trigger.dev/schema-to-json": "workspace:4.8.5", + "@trigger.dev/build": "workspace:4.8.6", + "@trigger.dev/core": "workspace:4.8.6", + "@trigger.dev/schema-to-json": "workspace:4.8.6", "ansi-escapes": "^7.0.0", "braces": "^3.0.3", "c12": "^1.11.1", diff --git a/packages/convex/CHANGELOG.md b/packages/convex/CHANGELOG.md index eea00c2aabb..a8c9b09998b 100644 --- a/packages/convex/CHANGELOG.md +++ b/packages/convex/CHANGELOG.md @@ -1,5 +1,7 @@ # @trigger.dev/convex +## 4.8.6 + ## 4.8.5 ## 4.8.4 diff --git a/packages/convex/package.json b/packages/convex/package.json index a0eb969bdfb..893bd128915 100644 --- a/packages/convex/package.json +++ b/packages/convex/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/convex", - "version": "4.8.5", + "version": "4.8.6", "description": "Run Trigger.dev tasks from Convex mutations and query their results reactively", "license": "Apache-2.0", "type": "module", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 610cec0faf9..e3c461d2b28 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,27 @@ # internal-platform +## 4.8.6 + +### Patch Changes + +- Deploys on the `bun-1.4` runtime now compile the run worker and your task files into a Bun executable with bytecode, so runs start faster. `import.meta.url` and `__dirname` still point at your files under `/app`, so files you read next to your code must be in the image as before (e.g. with `additionalFiles`). Set `build.bunBytecode: false` in `trigger.config.ts` to turn compilation off. ([`8130e5e73`](https://github.com/triggerdotdev/trigger.dev/commit/8130e5e735bd5324b58c5efa829c94c7026c371c)) +- `trigger dev` and `trigger deploy` no longer crash with `spawn ... ENOENT` on bun runtimes when Bun isn't installed at `~/.bun`. The CLI now falls back to `bun` on your `PATH` (Homebrew, mise and similar installs), and if Bun still can't be started, `trigger dev` reports a readable error and `trigger deploy` skips local skill discovery with a warning and carries on. ([`15797c9f2`](https://github.com/triggerdotdev/trigger.dev/commit/15797c9f2bf14fbbd36175bbc242aec80a479c5d)) +- Deploys now report a warmup command that loads your config and task files offline without running any task, so the platform can prepare faster run starts for your deployment. ([`5479177af`](https://github.com/triggerdotdev/trigger.dev/commit/5479177af219875c69ffaee402c701824db2a678)) +- Allow an explicit audience when signing and verifying JWTs and user-actor tokens. ([`01337977e`](https://github.com/triggerdotdev/trigger.dev/commit/01337977ece1df88b9de49ea7de5ac8b88f82e4b)) +- Generate the machine ID and the managed run controller ID on first use instead of at import, so importing these modules draws no randomness and a process restored from a warm start does not reuse IDs drawn before it was saved. ([`a8ac49cd3`](https://github.com/triggerdotdev/trigger.dev/commit/a8ac49cd30fffb779dbd93275d04a001d926e915)) +- Deploys on the `node-24` and `node-26` runtimes now build a Node compile cache for your bundled code during the image build, so runs spend less time compiling your tasks and their dependencies before they start. `node-22` deploys are unchanged. ([`cb1e7362f`](https://github.com/triggerdotdev/trigger.dev/commit/cb1e7362fe9d804ceb2b4e643cf8fa0d0334b676)) +- `webhooks.notion()` endpoints accept Notion's verification request. While the endpoint has no signing secret, the `verification_token` Notion sends is stored as its signing secret, so you can paste it back into Notion and later deliveries verify with it. Redeploy with this version for existing Notion endpoints to pick it up. ([`4288ea912`](https://github.com/triggerdotdev/trigger.dev/commit/4288ea9126432bfede2c6162e1bdc81a2348a127)) +- Support scoped run tokens without an environment key, including offloaded task inputs and stream waits. Explain why a run has no usable credential for an operation. ([`ed0147895`](https://github.com/triggerdotdev/trigger.dev/commit/ed0147895c9b65069c3a6d6e404c3074d47c4018)) +- Public-token helpers and chat token creation now prefer server minting for root API keys too, avoiding the legacy claims endpoint on compatible servers. Trigger, batch, and waitpoint responses missing a token also try server minting first. ([`90d677b12`](https://github.com/triggerdotdev/trigger.dev/commit/90d677b12a5a37d00a96da922d60a54fc7dd7709)) + + Root-key callers retain local-signing compatibility only when the mint endpoint is missing or an older server specifically rejects an empty scope list. Named API keys and run tokens never self-sign. Authorization failures, expiration validation errors, rate limits, and server or connection failures do not activate the fallback. + + Server minting with a root key signs with that same authenticated key, including during its rotation grace period, rather than with its replacement. Tokens stop authenticating when that key's grace period ends or it is immediately revoked. Deploy this server update before upgrading the SDK if you rely on minting during root-key rotation; older servers can still reject grace-window keys. + + Server-minted tokens use the API rate-limit budget and follow the server's expiration rules, including its 30-day maximum. Minting tokens without scopes requires self-hosted v4.8.4 or later unless the root-key compatibility fallback is available. The default expiration remains 15 minutes. + +- Fix webhook verification for `webhooks.brex()`, which now reads the `webhook-id`, `webhook-timestamp` and `webhook-signature` headers Brex sends instead of `svix-*` headers, and for `webhooks.composio()`, which now keys the signature with the secret's raw text as Composio does instead of base64-decoding it. PagerDuty, Sentry, Vercel, Zendesk, Attio, DocuSign and Intercom endpoints now default to pasting the provider-issued signing secret, and Linear and Calendly offer both generating and pasting one. Redeploy with this version for existing endpoints to pick up the change. ([`b5b311407`](https://github.com/triggerdotdev/trigger.dev/commit/b5b311407aa185457f42361d85eef0cd15f20f4a)) + ## 4.8.5 ## 4.8.4 diff --git a/packages/core/package.json b/packages/core/package.json index 2e09932baa9..f5f36d319c8 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/core", - "version": "4.8.5", + "version": "4.8.6", "description": "Core code used across the Trigger.dev SDK and platform", "license": "MIT", "publishConfig": { diff --git a/packages/linear/CHANGELOG.md b/packages/linear/CHANGELOG.md index 758af609c24..f2c5867f862 100644 --- a/packages/linear/CHANGELOG.md +++ b/packages/linear/CHANGELOG.md @@ -1,5 +1,13 @@ # @trigger.dev/linear +## 4.8.6 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.6` + - `@trigger.dev/sdk@4.8.6` + ## 4.8.5 ### Patch Changes diff --git a/packages/linear/package.json b/packages/linear/package.json index 8f420b667f5..43f3f552804 100644 --- a/packages/linear/package.json +++ b/packages/linear/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/linear", - "version": "4.8.5", + "version": "4.8.6", "description": "Linear agent sessions as a chat frontend (channel) for trigger.dev agents", "license": "MIT", "publishConfig": { @@ -41,15 +41,15 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:4.8.5" + "@trigger.dev/core": "workspace:4.8.6" }, "peerDependencies": { - "@trigger.dev/sdk": "workspace:^4.8.5", + "@trigger.dev/sdk": "workspace:^4.8.6", "ai": "^5.0.0 || ^6.0.0 || >=7.0.0-canary <8" }, "devDependencies": { "@arethetypeswrong/cli": "^0.18.5", - "@trigger.dev/sdk": "workspace:4.8.5", + "@trigger.dev/sdk": "workspace:4.8.6", "@types/node": "^24.13.3", "rimraf": "6.0.1", "tshy": "^3.0.2", diff --git a/packages/python/CHANGELOG.md b/packages/python/CHANGELOG.md index 0a6a53c8fc6..084bd69321c 100644 --- a/packages/python/CHANGELOG.md +++ b/packages/python/CHANGELOG.md @@ -1,5 +1,14 @@ # @trigger.dev/python +## 4.8.6 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.6` + - `@trigger.dev/sdk@4.8.6` + - `@trigger.dev/build@4.8.6` + ## 4.8.5 ### Patch Changes diff --git a/packages/python/package.json b/packages/python/package.json index e520d19abf0..f71513cde43 100644 --- a/packages/python/package.json +++ b/packages/python/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/python", - "version": "4.8.5", + "version": "4.8.6", "description": "Python runtime and build extension for Trigger.dev", "license": "MIT", "publishConfig": { @@ -45,7 +45,7 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:4.8.5", + "@trigger.dev/core": "workspace:4.8.6", "tinyexec": "^0.3.2" }, "devDependencies": { @@ -55,12 +55,12 @@ "typescript": "catalog:", "tsx": "4.17.0", "@arethetypeswrong/cli": "^0.18.5", - "@trigger.dev/build": "workspace:4.8.5", - "@trigger.dev/sdk": "workspace:4.8.5" + "@trigger.dev/build": "workspace:4.8.6", + "@trigger.dev/sdk": "workspace:4.8.6" }, "peerDependencies": { - "@trigger.dev/sdk": "workspace:^4.8.5", - "@trigger.dev/build": "workspace:^4.8.5" + "@trigger.dev/sdk": "workspace:^4.8.6", + "@trigger.dev/build": "workspace:^4.8.6" }, "engines": { "node": ">=18.20.0" diff --git a/packages/react-hooks/CHANGELOG.md b/packages/react-hooks/CHANGELOG.md index 32265ea10a0..69cecf3bcd2 100644 --- a/packages/react-hooks/CHANGELOG.md +++ b/packages/react-hooks/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/react-hooks +## 4.8.6 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.6` + ## 4.8.5 ### Patch Changes diff --git a/packages/react-hooks/package.json b/packages/react-hooks/package.json index f3ed9064bd1..4838cd9838e 100644 --- a/packages/react-hooks/package.json +++ b/packages/react-hooks/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/react-hooks", - "version": "4.8.5", + "version": "4.8.6", "description": "trigger.dev react hooks", "license": "MIT", "publishConfig": { @@ -37,7 +37,7 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:^4.8.5", + "@trigger.dev/core": "workspace:^4.8.6", "swr": "^2.2.5" }, "devDependencies": { diff --git a/packages/redis-worker/CHANGELOG.md b/packages/redis-worker/CHANGELOG.md index 24efd859c91..b67249ced8b 100644 --- a/packages/redis-worker/CHANGELOG.md +++ b/packages/redis-worker/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/redis-worker +## 4.8.6 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.6` + ## 4.8.5 ### Patch Changes diff --git a/packages/redis-worker/package.json b/packages/redis-worker/package.json index aa5351a9b8a..20458bd1f90 100644 --- a/packages/redis-worker/package.json +++ b/packages/redis-worker/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/redis-worker", - "version": "4.8.5", + "version": "4.8.6", "description": "Redis worker for trigger.dev", "license": "MIT", "publishConfig": { @@ -23,7 +23,7 @@ "test": "vitest --sequence.concurrent=false --no-file-parallelism" }, "dependencies": { - "@trigger.dev/core": "workspace:4.8.5", + "@trigger.dev/core": "workspace:4.8.6", "nanoid": "^5.1.16", "p-limit": "^6.2.0", "seedrandom": "^3.0.5", diff --git a/packages/rsc/CHANGELOG.md b/packages/rsc/CHANGELOG.md index 3f5b493f44a..412c394a123 100644 --- a/packages/rsc/CHANGELOG.md +++ b/packages/rsc/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/rsc +## 4.8.6 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.6` + ## 4.8.5 ### Patch Changes diff --git a/packages/rsc/package.json b/packages/rsc/package.json index 0cb80152902..b7ac47352b0 100644 --- a/packages/rsc/package.json +++ b/packages/rsc/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/rsc", - "version": "4.8.5", + "version": "4.8.6", "description": "trigger.dev rsc", "license": "MIT", "publishConfig": { @@ -37,7 +37,7 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:^4.8.5", + "@trigger.dev/core": "workspace:^4.8.6", "mlly": "^1.7.1", "react": "19.0.0-rc.1", "react-dom": "19.0.0-rc.1" diff --git a/packages/schema-to-json/CHANGELOG.md b/packages/schema-to-json/CHANGELOG.md index 81bb7059431..46c6f38f12e 100644 --- a/packages/schema-to-json/CHANGELOG.md +++ b/packages/schema-to-json/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/schema-to-json +## 4.8.6 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.6` + ## 4.8.5 ### Patch Changes diff --git a/packages/schema-to-json/package.json b/packages/schema-to-json/package.json index 46f6ec94dbe..b37e3017d5e 100644 --- a/packages/schema-to-json/package.json +++ b/packages/schema-to-json/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/schema-to-json", - "version": "4.8.5", + "version": "4.8.6", "description": "Convert various schema validation libraries to JSON Schema", "license": "MIT", "publishConfig": { diff --git a/packages/slack/CHANGELOG.md b/packages/slack/CHANGELOG.md index fd1beecf491..e0edaec800a 100644 --- a/packages/slack/CHANGELOG.md +++ b/packages/slack/CHANGELOG.md @@ -1,5 +1,13 @@ # @trigger.dev/slack +## 4.8.6 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.6` + - `@trigger.dev/sdk@4.8.6` + ## 4.8.5 ### Patch Changes diff --git a/packages/slack/package.json b/packages/slack/package.json index c3394b438dc..c1f34a50eaf 100644 --- a/packages/slack/package.json +++ b/packages/slack/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/slack", - "version": "4.8.5", + "version": "4.8.6", "description": "Slack chat frontend (channel) for trigger.dev agents", "license": "MIT", "publishConfig": { @@ -41,14 +41,14 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:4.8.5" + "@trigger.dev/core": "workspace:4.8.6" }, "peerDependencies": { - "@trigger.dev/sdk": "workspace:^4.8.5" + "@trigger.dev/sdk": "workspace:^4.8.6" }, "devDependencies": { "@arethetypeswrong/cli": "^0.18.5", - "@trigger.dev/sdk": "workspace:4.8.5", + "@trigger.dev/sdk": "workspace:4.8.6", "@types/node": "^24.13.3", "rimraf": "6.0.1", "tshy": "^3.0.2", diff --git a/packages/trigger-sdk/CHANGELOG.md b/packages/trigger-sdk/CHANGELOG.md index 8de6be5ecf5..f5c9990a0d7 100644 --- a/packages/trigger-sdk/CHANGELOG.md +++ b/packages/trigger-sdk/CHANGELOG.md @@ -1,5 +1,29 @@ # @trigger.dev/sdk +## 4.8.6 + +### Patch Changes + +- Fix `chat.agent` on AI SDK 7 sending the model the same input on every step. Once a step's `prepareStep` returned messages (a steering message, a mid-turn `chat.inject`, context compaction, or your own `prepareStep`), later steps no longer included the newest tool results, so the model kept repeating the same tool call until the step limit. ([`1a2c99034`](https://github.com/triggerdotdev/trigger.dev/commit/1a2c99034ee8741fabb2b500e2766f0ecd8fbdb1)) + + If you call `chat.compact()` from your own `prepareStep`, pass it the `responseMessages` your `prepareStep` receives (`chat.compact(messages, steps, { ...options, responseMessages })`) so steps after a compaction are rebuilt correctly on AI SDK 7. + +- `chat.agent` now passes `chatId`, `turn` and `clientData` to the callbacks an agent can call a model from, so a mock model injected through `clientData` reaches them. The compaction `summarize` that runs through `chat.MessageAccumulator.prepareStep()` and a `chat.createSession` turn's `prepareStep()`, `onCompacted`, `onValidateMessages`, and the `pendingMessages` `onReceived` and `onInjected` callbacks previously lacked it. The `mockChatAgent` turn methods (`sendMessage`, `sendRegenerate`, `sendAction`) now also wait for `onTurnComplete` and the transcript save to finish, so tests can assert on what those hooks recorded without a sleep. ([`579904220`](https://github.com/triggerdotdev/trigger.dev/commit/579904220ce83f8016179d09f68b6b3423eaba9c)) +- `concurrencyKey` now also takes an object, so one run can be limited by two limits keyed by different things, like a cap per session and a cap per organization. `default` is the run's own key and every other entry gives a named limit its own key: `concurrencyKey: { default: sessionId, [orgLimit.name]: orgId }`. A string key works as before. ([`4961fc474`](https://github.com/triggerdotdev/trigger.dev/commit/4961fc474c2fe155e557573f48c5eb95868d3015)) +- `webhooks.notion()` endpoints accept Notion's verification request. While the endpoint has no signing secret, the `verification_token` Notion sends is stored as its signing secret, so you can paste it back into Notion and later deliveries verify with it. Redeploy with this version for existing Notion endpoints to pick it up. ([`4288ea912`](https://github.com/triggerdotdev/trigger.dev/commit/4288ea9126432bfede2c6162e1bdc81a2348a127)) +- Support scoped run tokens without an environment key, including offloaded task inputs and stream waits. Explain why a run has no usable credential for an operation. ([`ed0147895`](https://github.com/triggerdotdev/trigger.dev/commit/ed0147895c9b65069c3a6d6e404c3074d47c4018)) +- Public-token helpers and chat token creation now prefer server minting for root API keys too, avoiding the legacy claims endpoint on compatible servers. Trigger, batch, and waitpoint responses missing a token also try server minting first. ([`90d677b12`](https://github.com/triggerdotdev/trigger.dev/commit/90d677b12a5a37d00a96da922d60a54fc7dd7709)) + + Root-key callers retain local-signing compatibility only when the mint endpoint is missing or an older server specifically rejects an empty scope list. Named API keys and run tokens never self-sign. Authorization failures, expiration validation errors, rate limits, and server or connection failures do not activate the fallback. + + Server minting with a root key signs with that same authenticated key, including during its rotation grace period, rather than with its replacement. Tokens stop authenticating when that key's grace period ends or it is immediately revoked. Deploy this server update before upgrading the SDK if you rely on minting during root-key rotation; older servers can still reject grace-window keys. + + Server-minted tokens use the API rate-limit budget and follow the server's expiration rules, including its 30-day maximum. Minting tokens without scopes requires self-hosted v4.8.4 or later unless the root-key compatibility fallback is available. The default expiration remains 15 minutes. + +- Fix webhook verification for `webhooks.brex()`, which now reads the `webhook-id`, `webhook-timestamp` and `webhook-signature` headers Brex sends instead of `svix-*` headers, and for `webhooks.composio()`, which now keys the signature with the secret's raw text as Composio does instead of base64-decoding it. PagerDuty, Sentry, Vercel, Zendesk, Attio, DocuSign and Intercom endpoints now default to pasting the provider-issued signing secret, and Linear and Calendly offer both generating and pasting one. Redeploy with this version for existing endpoints to pick up the change. ([`b5b311407`](https://github.com/triggerdotdev/trigger.dev/commit/b5b311407aa185457f42361d85eef0cd15f20f4a)) +- Updated dependencies: + - `@trigger.dev/core@4.8.6` + ## 4.8.5 ### Patch Changes diff --git a/packages/trigger-sdk/package.json b/packages/trigger-sdk/package.json index eb40e7584cc..34addff74ee 100644 --- a/packages/trigger-sdk/package.json +++ b/packages/trigger-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/sdk", - "version": "4.8.5", + "version": "4.8.6", "description": "trigger.dev Node.JS SDK", "license": "MIT", "publishConfig": { @@ -87,7 +87,7 @@ "dependencies": { "@opentelemetry/api": "1.9.1", "@opentelemetry/semantic-conventions": "1.41.1", - "@trigger.dev/core": "workspace:4.8.5", + "@trigger.dev/core": "workspace:4.8.6", "uncrypto": "^0.1.3" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 48617579497..b8508272699 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1602,7 +1602,7 @@ importers: specifier: ^6.10.0 version: 6.19.0(magicast@0.3.5) '@trigger.dev/core': - specifier: workspace:4.8.5 + specifier: workspace:4.8.6 version: link:../core mlly: specifier: ^1.7.1 @@ -1669,13 +1669,13 @@ importers: specifier: ^0.25.0 version: 0.25.0(supports-color@10.0.0) '@trigger.dev/build': - specifier: workspace:4.8.5 + specifier: workspace:4.8.6 version: link:../build '@trigger.dev/core': - specifier: workspace:4.8.5 + specifier: workspace:4.8.6 version: link:../core '@trigger.dev/schema-to-json': - specifier: workspace:4.8.5 + specifier: workspace:4.8.6 version: link:../schema-to-json ansi-escapes: specifier: ^7.0.0 @@ -2001,14 +2001,14 @@ importers: packages/linear: dependencies: '@trigger.dev/core': - specifier: workspace:4.8.5 + specifier: workspace:4.8.6 version: link:../core devDependencies: '@arethetypeswrong/cli': specifier: ^0.18.5 version: 0.18.5 '@trigger.dev/sdk': - specifier: workspace:4.8.5 + specifier: workspace:4.8.6 version: link:../trigger-sdk '@types/node': specifier: 24.13.3 @@ -2051,7 +2051,7 @@ importers: packages/python: dependencies: '@trigger.dev/core': - specifier: workspace:4.8.5 + specifier: workspace:4.8.6 version: link:../core tinyexec: specifier: ^0.3.2 @@ -2061,10 +2061,10 @@ importers: specifier: ^0.18.5 version: 0.18.5 '@trigger.dev/build': - specifier: workspace:4.8.5 + specifier: workspace:4.8.6 version: link:../build '@trigger.dev/sdk': - specifier: workspace:4.8.5 + specifier: workspace:4.8.6 version: link:../trigger-sdk '@types/node': specifier: 24.13.3 @@ -2085,7 +2085,7 @@ importers: packages/react-hooks: dependencies: '@trigger.dev/core': - specifier: workspace:^4.8.5 + specifier: workspace:^4.8.6 version: link:../core react: specifier: 18.3.1 @@ -2119,7 +2119,7 @@ importers: packages/redis-worker: dependencies: '@trigger.dev/core': - specifier: workspace:4.8.5 + specifier: workspace:4.8.6 version: link:../core cron-parser: specifier: ^4.9.0 @@ -2165,7 +2165,7 @@ importers: packages/rsc: dependencies: '@trigger.dev/core': - specifier: workspace:^4.8.5 + specifier: workspace:^4.8.6 version: link:../core mlly: specifier: ^1.7.1 @@ -2245,14 +2245,14 @@ importers: packages/slack: dependencies: '@trigger.dev/core': - specifier: workspace:4.8.5 + specifier: workspace:4.8.6 version: link:../core devDependencies: '@arethetypeswrong/cli': specifier: ^0.18.5 version: 0.18.5 '@trigger.dev/sdk': - specifier: workspace:4.8.5 + specifier: workspace:4.8.6 version: link:../trigger-sdk '@types/node': specifier: 24.13.3 @@ -2279,7 +2279,7 @@ importers: specifier: 1.41.1 version: 1.41.1 '@trigger.dev/core': - specifier: workspace:4.8.5 + specifier: workspace:4.8.6 version: link:../core react: specifier: 18.3.1