From b69521b6d022df117760ba1983579ff57a05d0fc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 26 Mar 2026 13:21:12 +0000 Subject: [PATCH 1/2] chore: release --- .changeset/ai-prompt-management.md | 5 -- .changeset/chilly-tips-explode.md | 5 -- .changeset/fix-dev-build-dir-leak.md | 5 -- .changeset/fix-list-deploys-nullable.md | 5 -- .changeset/llm-metadata-run-tags.md | 5 -- .changeset/mcp-get-span-details.md | 11 ----- .changeset/mcp-query-tools.md | 42 ----------------- .changeset/tame-oranges-change.md | 8 ---- packages/build/CHANGELOG.md | 7 +++ packages/build/package.json | 4 +- packages/cli-v3/CHANGELOG.md | 62 +++++++++++++++++++++++++ packages/cli-v3/package.json | 8 ++-- packages/core/CHANGELOG.md | 58 +++++++++++++++++++++++ packages/core/package.json | 2 +- packages/python/CHANGELOG.md | 9 ++++ packages/python/package.json | 12 ++--- packages/react-hooks/CHANGELOG.md | 7 +++ packages/react-hooks/package.json | 4 +- packages/redis-worker/CHANGELOG.md | 8 ++++ packages/redis-worker/package.json | 4 +- packages/rsc/CHANGELOG.md | 7 +++ packages/rsc/package.json | 6 +-- packages/schema-to-json/CHANGELOG.md | 7 +++ packages/schema-to-json/package.json | 2 +- packages/trigger-sdk/CHANGELOG.md | 9 ++++ packages/trigger-sdk/package.json | 4 +- 26 files changed, 197 insertions(+), 109 deletions(-) delete mode 100644 .changeset/ai-prompt-management.md delete mode 100644 .changeset/chilly-tips-explode.md delete mode 100644 .changeset/fix-dev-build-dir-leak.md delete mode 100644 .changeset/fix-list-deploys-nullable.md delete mode 100644 .changeset/llm-metadata-run-tags.md delete mode 100644 .changeset/mcp-get-span-details.md delete mode 100644 .changeset/mcp-query-tools.md delete mode 100644 .changeset/tame-oranges-change.md diff --git a/.changeset/ai-prompt-management.md b/.changeset/ai-prompt-management.md deleted file mode 100644 index d3250bebda7..00000000000 --- a/.changeset/ai-prompt-management.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/sdk": patch ---- - -Define and manage AI prompts with `prompts.define()`. Create typesafe prompt templates with variables, resolve them at runtime, and manage versions and overrides from the dashboard without redeploying. diff --git a/.changeset/chilly-tips-explode.md b/.changeset/chilly-tips-explode.md deleted file mode 100644 index 7a5235904a4..00000000000 --- a/.changeset/chilly-tips-explode.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"trigger.dev": patch ---- - -Add platform notifications support to the CLI. The `trigger dev` and `trigger login` commands now fetch and display platform notifications (info, warn, error, success) from the server. Includes discovery-based filtering to conditionally show notifications based on project file patterns, color markup rendering for styled terminal output, and a non-blocking display flow with a spinner fallback for slow fetches. Use `--skip-platform-notifications` flag with `trigger dev` to disable the notification check. diff --git a/.changeset/fix-dev-build-dir-leak.md b/.changeset/fix-dev-build-dir-leak.md deleted file mode 100644 index a1e6219c8bb..00000000000 --- a/.changeset/fix-dev-build-dir-leak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"trigger.dev": patch ---- - -Fix dev CLI leaking build directories on rebuild, causing disk space accumulation. Deprecated workers are now pruned (capped at 2 retained) when no active runs reference them. The watchdog process also cleans up `.trigger/tmp/` when the dev CLI is killed ungracefully (e.g. SIGKILL from pnpm). diff --git a/.changeset/fix-list-deploys-nullable.md b/.changeset/fix-list-deploys-nullable.md deleted file mode 100644 index d9d5e82116a..00000000000 --- a/.changeset/fix-list-deploys-nullable.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/core": patch ---- - -Fix `list_deploys` MCP tool failing when deployments have null `runtime` or `runtimeVersion` fields. diff --git a/.changeset/llm-metadata-run-tags.md b/.changeset/llm-metadata-run-tags.md deleted file mode 100644 index 85f04c363b8..00000000000 --- a/.changeset/llm-metadata-run-tags.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/core": patch ---- - -Propagate run tags to span attributes so they can be extracted server-side for LLM cost attribution metadata. diff --git a/.changeset/mcp-get-span-details.md b/.changeset/mcp-get-span-details.md deleted file mode 100644 index e69b7979b07..00000000000 --- a/.changeset/mcp-get-span-details.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@trigger.dev/core": patch -"trigger.dev": patch ---- - -Add `get_span_details` MCP tool for inspecting individual spans within a run trace. - -- New `get_span_details` tool returns full span attributes, timing, events, and AI enrichment (model, tokens, cost, speed) -- Span IDs now shown in `get_run_details` trace output for easy discovery -- New API endpoint `GET /api/v1/runs/:runId/spans/:spanId` -- New `retrieveSpan()` method on the API client diff --git a/.changeset/mcp-query-tools.md b/.changeset/mcp-query-tools.md deleted file mode 100644 index 23e09c1afec..00000000000 --- a/.changeset/mcp-query-tools.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -"@trigger.dev/core": patch -"trigger.dev": patch ---- - -MCP server improvements: new tools, bug fixes, and new flags. - -**New tools:** -- `get_query_schema` — discover available TRQL tables and columns -- `query` — execute TRQL queries against your data -- `list_dashboards` — list built-in dashboards and their widgets -- `run_dashboard_query` — execute a single dashboard widget query -- `whoami` — show current profile, user, and API URL -- `list_profiles` — list all configured CLI profiles -- `switch_profile` — switch active profile for the MCP session -- `start_dev_server` — start `trigger dev` in the background and stream output -- `stop_dev_server` — stop the running dev server -- `dev_server_status` — check dev server status and view recent logs - -**New API endpoints:** -- `GET /api/v1/query/schema` — query table schema discovery -- `GET /api/v1/query/dashboards` — list built-in dashboards - -**New features:** -- `--readonly` flag hides write tools (`deploy`, `trigger_task`, `cancel_run`) so the AI cannot make changes -- `read:query` JWT scope for query endpoint authorization -- `get_run_details` trace output is now paginated with cursor support -- MCP tool annotations (`readOnlyHint`, `destructiveHint`) for all tools - -**Bug fixes:** -- Fixed `search_docs` tool failing due to renamed upstream Mintlify tool (`SearchTriggerDev` → `search_trigger_dev`) -- Fixed `list_deploys` failing when deployments have null `runtime`/`runtimeVersion` fields (#3139) -- Fixed `list_preview_branches` crashing due to incorrect response shape access -- Fixed `metrics` table column documented as `value` instead of `metric_value` in query docs -- Fixed dev CLI leaking build directories on rebuild — deprecated workers now clean up their build dirs when their last run completes - -**Context optimizations:** -- `get_query_schema` now requires a table name and returns only one table's schema (was returning all tables) -- `get_current_worker` no longer inlines payload schemas; use new `get_task_schema` tool instead -- Query results formatted as text tables instead of JSON (~50% fewer tokens) -- `cancel_run`, `list_deploys`, `list_preview_branches` formatted as text instead of raw JSON -- Schema and dashboard API responses cached to avoid redundant fetches diff --git a/.changeset/tame-oranges-change.md b/.changeset/tame-oranges-change.md deleted file mode 100644 index 9755a41a26a..00000000000 --- a/.changeset/tame-oranges-change.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@trigger.dev/redis-worker": patch -"@trigger.dev/sdk": patch -"trigger.dev": patch -"@trigger.dev/core": patch ---- - -Adapted the CLI API client to propagate the trigger source via http headers. diff --git a/packages/build/CHANGELOG.md b/packages/build/CHANGELOG.md index 9e99c1f6396..3902bf19d7b 100644 --- a/packages/build/CHANGELOG.md +++ b/packages/build/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/build +## 4.4.4 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.4.4` + ## 4.4.3 ### Patch Changes diff --git a/packages/build/package.json b/packages/build/package.json index cbde207ae9e..3fa2212cf07 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/build", - "version": "4.4.3", + "version": "4.4.4", "description": "trigger.dev build extensions", "license": "MIT", "publishConfig": { @@ -78,7 +78,7 @@ }, "dependencies": { "@prisma/config": "^6.10.0", - "@trigger.dev/core": "workspace:4.4.3", + "@trigger.dev/core": "workspace:4.4.4", "mlly": "^1.7.1", "pkg-types": "^1.1.3", "resolve": "^1.22.8", diff --git a/packages/cli-v3/CHANGELOG.md b/packages/cli-v3/CHANGELOG.md index 709c2091885..de7160169f1 100644 --- a/packages/cli-v3/CHANGELOG.md +++ b/packages/cli-v3/CHANGELOG.md @@ -1,5 +1,67 @@ # trigger.dev +## 4.4.4 + +### Patch Changes + +- Add platform notifications support to the CLI. The `trigger dev` and `trigger login` commands now fetch and display platform notifications (info, warn, error, success) from the server. Includes discovery-based filtering to conditionally show notifications based on project file patterns, color markup rendering for styled terminal output, and a non-blocking display flow with a spinner fallback for slow fetches. Use `--skip-platform-notifications` flag with `trigger dev` to disable the notification check. ([#3254](https://github.com/triggerdotdev/trigger.dev/pull/3254)) +- Fix dev CLI leaking build directories on rebuild, causing disk space accumulation. Deprecated workers are now pruned (capped at 2 retained) when no active runs reference them. The watchdog process also cleans up `.trigger/tmp/` when the dev CLI is killed ungracefully (e.g. SIGKILL from pnpm). ([#3224](https://github.com/triggerdotdev/trigger.dev/pull/3224)) +- Add `get_span_details` MCP tool for inspecting individual spans within a run trace. ([#3255](https://github.com/triggerdotdev/trigger.dev/pull/3255)) + + - New `get_span_details` tool returns full span attributes, timing, events, and AI enrichment (model, tokens, cost, speed) + - Span IDs now shown in `get_run_details` trace output for easy discovery + - New API endpoint `GET /api/v1/runs/:runId/spans/:spanId` + - New `retrieveSpan()` method on the API client + +- MCP server improvements: new tools, bug fixes, and new flags. ([#3224](https://github.com/triggerdotdev/trigger.dev/pull/3224)) + + **New tools:** + + - `get_query_schema` — discover available TRQL tables and columns + - `query` — execute TRQL queries against your data + - `list_dashboards` — list built-in dashboards and their widgets + - `run_dashboard_query` — execute a single dashboard widget query + - `whoami` — show current profile, user, and API URL + - `list_profiles` — list all configured CLI profiles + - `switch_profile` — switch active profile for the MCP session + - `start_dev_server` — start `trigger dev` in the background and stream output + - `stop_dev_server` — stop the running dev server + - `dev_server_status` — check dev server status and view recent logs + + **New API endpoints:** + + - `GET /api/v1/query/schema` — query table schema discovery + - `GET /api/v1/query/dashboards` — list built-in dashboards + + **New features:** + + - `--readonly` flag hides write tools (`deploy`, `trigger_task`, `cancel_run`) so the AI cannot make changes + - `read:query` JWT scope for query endpoint authorization + - `get_run_details` trace output is now paginated with cursor support + - MCP tool annotations (`readOnlyHint`, `destructiveHint`) for all tools + + **Bug fixes:** + + - Fixed `search_docs` tool failing due to renamed upstream Mintlify tool (`SearchTriggerDev` → `search_trigger_dev`) + - Fixed `list_deploys` failing when deployments have null `runtime`/`runtimeVersion` fields (#3139) + - Fixed `list_preview_branches` crashing due to incorrect response shape access + - Fixed `metrics` table column documented as `value` instead of `metric_value` in query docs + - Fixed dev CLI leaking build directories on rebuild — deprecated workers now clean up their build dirs when their last run completes + + **Context optimizations:** + + - `get_query_schema` now requires a table name and returns only one table's schema (was returning all tables) + - `get_current_worker` no longer inlines payload schemas; use new `get_task_schema` tool instead + - Query results formatted as text tables instead of JSON (~50% fewer tokens) + - `cancel_run`, `list_deploys`, `list_preview_branches` formatted as text instead of raw JSON + - Schema and dashboard API responses cached to avoid redundant fetches + +- Adapted the CLI API client to propagate the trigger source via http headers. ([#3241](https://github.com/triggerdotdev/trigger.dev/pull/3241)) +- Updated dependencies: + - `@trigger.dev/core@4.4.4` + - `@trigger.dev/build@4.4.4` + - `@trigger.dev/schema-to-json@4.4.4` + ## 4.4.3 ### Patch Changes diff --git a/packages/cli-v3/package.json b/packages/cli-v3/package.json index 2f466bc5c02..24cc211535d 100644 --- a/packages/cli-v3/package.json +++ b/packages/cli-v3/package.json @@ -1,6 +1,6 @@ { "name": "trigger.dev", - "version": "4.4.3", + "version": "4.4.4", "description": "A Command-Line Interface for Trigger.dev projects", "type": "module", "license": "MIT", @@ -95,9 +95,9 @@ "@opentelemetry/sdk-trace-node": "2.0.1", "@opentelemetry/semantic-conventions": "1.36.0", "@s2-dev/streamstore": "^0.22.5", - "@trigger.dev/build": "workspace:4.4.3", - "@trigger.dev/core": "workspace:4.4.3", - "@trigger.dev/schema-to-json": "workspace:4.4.3", + "@trigger.dev/build": "workspace:4.4.4", + "@trigger.dev/core": "workspace:4.4.4", + "@trigger.dev/schema-to-json": "workspace:4.4.4", "ansi-escapes": "^7.0.0", "braces": "^3.0.3", "c12": "^1.11.1", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index db5412c2081..1d60c31976b 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,63 @@ # internal-platform +## 4.4.4 + +### Patch Changes + +- Fix `list_deploys` MCP tool failing when deployments have null `runtime` or `runtimeVersion` fields. ([#3224](https://github.com/triggerdotdev/trigger.dev/pull/3224)) +- Propagate run tags to span attributes so they can be extracted server-side for LLM cost attribution metadata. ([#3213](https://github.com/triggerdotdev/trigger.dev/pull/3213)) +- Add `get_span_details` MCP tool for inspecting individual spans within a run trace. ([#3255](https://github.com/triggerdotdev/trigger.dev/pull/3255)) + + - New `get_span_details` tool returns full span attributes, timing, events, and AI enrichment (model, tokens, cost, speed) + - Span IDs now shown in `get_run_details` trace output for easy discovery + - New API endpoint `GET /api/v1/runs/:runId/spans/:spanId` + - New `retrieveSpan()` method on the API client + +- MCP server improvements: new tools, bug fixes, and new flags. ([#3224](https://github.com/triggerdotdev/trigger.dev/pull/3224)) + + **New tools:** + + - `get_query_schema` — discover available TRQL tables and columns + - `query` — execute TRQL queries against your data + - `list_dashboards` — list built-in dashboards and their widgets + - `run_dashboard_query` — execute a single dashboard widget query + - `whoami` — show current profile, user, and API URL + - `list_profiles` — list all configured CLI profiles + - `switch_profile` — switch active profile for the MCP session + - `start_dev_server` — start `trigger dev` in the background and stream output + - `stop_dev_server` — stop the running dev server + - `dev_server_status` — check dev server status and view recent logs + + **New API endpoints:** + + - `GET /api/v1/query/schema` — query table schema discovery + - `GET /api/v1/query/dashboards` — list built-in dashboards + + **New features:** + + - `--readonly` flag hides write tools (`deploy`, `trigger_task`, `cancel_run`) so the AI cannot make changes + - `read:query` JWT scope for query endpoint authorization + - `get_run_details` trace output is now paginated with cursor support + - MCP tool annotations (`readOnlyHint`, `destructiveHint`) for all tools + + **Bug fixes:** + + - Fixed `search_docs` tool failing due to renamed upstream Mintlify tool (`SearchTriggerDev` → `search_trigger_dev`) + - Fixed `list_deploys` failing when deployments have null `runtime`/`runtimeVersion` fields (#3139) + - Fixed `list_preview_branches` crashing due to incorrect response shape access + - Fixed `metrics` table column documented as `value` instead of `metric_value` in query docs + - Fixed dev CLI leaking build directories on rebuild — deprecated workers now clean up their build dirs when their last run completes + + **Context optimizations:** + + - `get_query_schema` now requires a table name and returns only one table's schema (was returning all tables) + - `get_current_worker` no longer inlines payload schemas; use new `get_task_schema` tool instead + - Query results formatted as text tables instead of JSON (~50% fewer tokens) + - `cancel_run`, `list_deploys`, `list_preview_branches` formatted as text instead of raw JSON + - Schema and dashboard API responses cached to avoid redundant fetches + +- Adapted the CLI API client to propagate the trigger source via http headers. ([#3241](https://github.com/triggerdotdev/trigger.dev/pull/3241)) + ## 4.4.3 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 1ecf044bf6e..35e60bd7c89 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/core", - "version": "4.4.3", + "version": "4.4.4", "description": "Core code used across the Trigger.dev SDK and platform", "license": "MIT", "publishConfig": { diff --git a/packages/python/CHANGELOG.md b/packages/python/CHANGELOG.md index 446e66012b0..57b16c19fd7 100644 --- a/packages/python/CHANGELOG.md +++ b/packages/python/CHANGELOG.md @@ -1,5 +1,14 @@ # @trigger.dev/python +## 4.4.4 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/sdk@4.4.4` + - `@trigger.dev/core@4.4.4` + - `@trigger.dev/build@4.4.4` + ## 4.4.3 ### Patch Changes diff --git a/packages/python/package.json b/packages/python/package.json index c8c7dfcfe81..bdbac024ca9 100644 --- a/packages/python/package.json +++ b/packages/python/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/python", - "version": "4.4.3", + "version": "4.4.4", "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.4.3", + "@trigger.dev/core": "workspace:4.4.4", "tinyexec": "^0.3.2" }, "devDependencies": { @@ -56,12 +56,12 @@ "tsx": "4.17.0", "esbuild": "^0.23.0", "@arethetypeswrong/cli": "^0.15.4", - "@trigger.dev/build": "workspace:4.4.3", - "@trigger.dev/sdk": "workspace:4.4.3" + "@trigger.dev/build": "workspace:4.4.4", + "@trigger.dev/sdk": "workspace:4.4.4" }, "peerDependencies": { - "@trigger.dev/sdk": "workspace:^4.4.3", - "@trigger.dev/build": "workspace:^4.4.3" + "@trigger.dev/sdk": "workspace:^4.4.4", + "@trigger.dev/build": "workspace:^4.4.4" }, "engines": { "node": ">=18.20.0" diff --git a/packages/react-hooks/CHANGELOG.md b/packages/react-hooks/CHANGELOG.md index a0f9233c1fc..d4fcdc21d42 100644 --- a/packages/react-hooks/CHANGELOG.md +++ b/packages/react-hooks/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/react-hooks +## 4.4.4 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.4.4` + ## 4.4.3 ### Patch Changes diff --git a/packages/react-hooks/package.json b/packages/react-hooks/package.json index 239c7d77294..99a6952537a 100644 --- a/packages/react-hooks/package.json +++ b/packages/react-hooks/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/react-hooks", - "version": "4.4.3", + "version": "4.4.4", "description": "trigger.dev react hooks", "license": "MIT", "publishConfig": { @@ -37,7 +37,7 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:^4.4.3", + "@trigger.dev/core": "workspace:^4.4.4", "swr": "^2.2.5" }, "devDependencies": { diff --git a/packages/redis-worker/CHANGELOG.md b/packages/redis-worker/CHANGELOG.md index eee31aa62ba..570a91aca4f 100644 --- a/packages/redis-worker/CHANGELOG.md +++ b/packages/redis-worker/CHANGELOG.md @@ -1,5 +1,13 @@ # @trigger.dev/redis-worker +## 4.4.4 + +### Patch Changes + +- Adapted the CLI API client to propagate the trigger source via http headers. ([#3241](https://github.com/triggerdotdev/trigger.dev/pull/3241)) +- Updated dependencies: + - `@trigger.dev/core@4.4.4` + ## 4.4.3 ### Patch Changes diff --git a/packages/redis-worker/package.json b/packages/redis-worker/package.json index fef723433cb..11e6b00004c 100644 --- a/packages/redis-worker/package.json +++ b/packages/redis-worker/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/redis-worker", - "version": "4.4.3", + "version": "4.4.4", "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.4.3", + "@trigger.dev/core": "workspace:4.4.4", "lodash.omit": "^4.5.0", "nanoid": "^5.0.7", "p-limit": "^6.2.0", diff --git a/packages/rsc/CHANGELOG.md b/packages/rsc/CHANGELOG.md index fe01554636b..b7e9091d785 100644 --- a/packages/rsc/CHANGELOG.md +++ b/packages/rsc/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/rsc +## 4.4.4 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.4.4` + ## 4.4.3 ### Patch Changes diff --git a/packages/rsc/package.json b/packages/rsc/package.json index b887f695b21..17018123bf2 100644 --- a/packages/rsc/package.json +++ b/packages/rsc/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/rsc", - "version": "4.4.3", + "version": "4.4.4", "description": "trigger.dev rsc", "license": "MIT", "publishConfig": { @@ -37,14 +37,14 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:^4.4.3", + "@trigger.dev/core": "workspace:^4.4.4", "mlly": "^1.7.1", "react": "19.0.0-rc.1", "react-dom": "19.0.0-rc.1" }, "devDependencies": { "@arethetypeswrong/cli": "^0.15.4", - "@trigger.dev/build": "workspace:^4.4.3", + "@trigger.dev/build": "workspace:^4.4.4", "@types/node": "^20.14.14", "@types/react": "*", "@types/react-dom": "*", diff --git a/packages/schema-to-json/CHANGELOG.md b/packages/schema-to-json/CHANGELOG.md index e24fa24b07d..8a62977d480 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.4.4 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.4.4` + ## 4.4.3 ### Patch Changes diff --git a/packages/schema-to-json/package.json b/packages/schema-to-json/package.json index e2963c1d70b..e2deaae0a4c 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.4.3", + "version": "4.4.4", "description": "Convert various schema validation libraries to JSON Schema", "license": "MIT", "publishConfig": { diff --git a/packages/trigger-sdk/CHANGELOG.md b/packages/trigger-sdk/CHANGELOG.md index dbccf319fa5..7dd13341ea8 100644 --- a/packages/trigger-sdk/CHANGELOG.md +++ b/packages/trigger-sdk/CHANGELOG.md @@ -1,5 +1,14 @@ # @trigger.dev/sdk +## 4.4.4 + +### Patch Changes + +- Define and manage AI prompts with `prompts.define()`. Create typesafe prompt templates with variables, resolve them at runtime, and manage versions and overrides from the dashboard without redeploying. ([#3244](https://github.com/triggerdotdev/trigger.dev/pull/3244)) +- Adapted the CLI API client to propagate the trigger source via http headers. ([#3241](https://github.com/triggerdotdev/trigger.dev/pull/3241)) +- Updated dependencies: + - `@trigger.dev/core@4.4.4` + ## 4.4.3 ### Patch Changes diff --git a/packages/trigger-sdk/package.json b/packages/trigger-sdk/package.json index e1ff05c4de9..cd38b7d2300 100644 --- a/packages/trigger-sdk/package.json +++ b/packages/trigger-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/sdk", - "version": "4.4.3", + "version": "4.4.4", "description": "trigger.dev Node.JS SDK", "license": "MIT", "publishConfig": { @@ -52,7 +52,7 @@ "dependencies": { "@opentelemetry/api": "1.9.0", "@opentelemetry/semantic-conventions": "1.36.0", - "@trigger.dev/core": "workspace:4.4.3", + "@trigger.dev/core": "workspace:4.4.4", "chalk": "^5.2.0", "cronstrue": "^2.21.0", "debug": "^4.3.4", From 0a5106c8309aa2f13574170c1913ee92531ddaed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 26 Mar 2026 13:23:59 +0000 Subject: [PATCH 2/2] chore: update lockfile and clean up .server-changes/ for release --- .server-changes/ai-prompt-management.md | 30 ---------------- .../allow-rollbacks-promote-api.md | 6 ---- .../ck-index-master-queue-dedup.md | 6 ---- .../fix-batch-waitpoint-lock-contention.md | 6 ---- ...ix-clickhouse-query-client-secure-param.md | 6 ---- .../fix-dev-env-scope-wrong-member.md | 6 ---- .server-changes/llm-cost-tracking.md | 6 ---- .server-changes/mcp-get-span-details.md | 6 ---- .server-changes/platform-notifications.md | 6 ---- pnpm-lock.yaml | 36 +++++++++---------- 10 files changed, 18 insertions(+), 96 deletions(-) delete mode 100644 .server-changes/ai-prompt-management.md delete mode 100644 .server-changes/allow-rollbacks-promote-api.md delete mode 100644 .server-changes/ck-index-master-queue-dedup.md delete mode 100644 .server-changes/fix-batch-waitpoint-lock-contention.md delete mode 100644 .server-changes/fix-clickhouse-query-client-secure-param.md delete mode 100644 .server-changes/fix-dev-env-scope-wrong-member.md delete mode 100644 .server-changes/llm-cost-tracking.md delete mode 100644 .server-changes/mcp-get-span-details.md delete mode 100644 .server-changes/platform-notifications.md diff --git a/.server-changes/ai-prompt-management.md b/.server-changes/ai-prompt-management.md deleted file mode 100644 index 624ec391047..00000000000 --- a/.server-changes/ai-prompt-management.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -area: webapp -type: feature ---- - -AI prompt management dashboard and enhanced span inspectors. - -**Prompt management:** -- Prompts list page with version status, model, override indicators, and 24h usage sparklines -- Prompt detail page with template viewer, variable preview, version history timeline, and override editor -- Create, edit, and remove overrides to change prompt content or model without redeploying -- Promote any code-deployed version to current -- Generations tab with infinite scroll, live polling, and inline span inspector -- Per-prompt metrics: total generations, avg tokens, avg cost, latency, with version-level breakdowns - -**AI span inspectors:** -- Custom inspectors for `ai.generateText`, `ai.streamText`, `ai.generateObject`, `ai.streamObject` parent spans -- `ai.toolCall` inspector showing tool name, call ID, and input arguments -- `ai.embed` inspector showing model, provider, and input text -- Prompt tab on AI spans linking to prompt version with template and input variables -- Compact timestamp and duration header on all AI span inspectors - -**AI metrics dashboard:** -- Operations, Providers, and Prompts filters on the AI Metrics dashboard -- Cost by prompt widget -- "AI" section in the sidebar with Prompts and AI Metrics links - -**Other improvements:** -- Resizable panel sizes now persist across page refreshes -- Fixed `
` inside `

` DOM nesting warnings in span titles and chat messages diff --git a/.server-changes/allow-rollbacks-promote-api.md b/.server-changes/allow-rollbacks-promote-api.md deleted file mode 100644 index fc03fa114ff..00000000000 --- a/.server-changes/allow-rollbacks-promote-api.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -Add allowRollbacks query param to the promote deployment API to enable version downgrades diff --git a/.server-changes/ck-index-master-queue-dedup.md b/.server-changes/ck-index-master-queue-dedup.md deleted file mode 100644 index a2ff6495e61..00000000000 --- a/.server-changes/ck-index-master-queue-dedup.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Concurrency-keyed queues now use a single master queue entry per base queue instead of one entry per key. Prevents high-CK-count tenants from consuming the entire parentQueueLimit window and starving other tenants on the same shard. diff --git a/.server-changes/fix-batch-waitpoint-lock-contention.md b/.server-changes/fix-batch-waitpoint-lock-contention.md deleted file mode 100644 index 6b545eb794b..00000000000 --- a/.server-changes/fix-batch-waitpoint-lock-contention.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Reduce lock contention when processing large `batchTriggerAndWait` batches. Previously, each batch item acquired a Redis lock on the parent run to insert a `TaskRunWaitpoint` row, causing `LockAcquisitionTimeoutError` with high concurrency (880 errors/24h in prod). Since `blockRunWithCreatedBatch` already transitions the parent to `EXECUTING_WITH_WAITPOINTS` before items are processed, the per-item lock is unnecessary. The new `blockRunWithWaitpointLockless` method performs only the idempotent CTE insert without acquiring the lock. diff --git a/.server-changes/fix-clickhouse-query-client-secure-param.md b/.server-changes/fix-clickhouse-query-client-secure-param.md deleted file mode 100644 index 4daa021fe40..00000000000 --- a/.server-changes/fix-clickhouse-query-client-secure-param.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Strip `secure` query parameter from QUERY_CLICKHOUSE_URL before passing to ClickHouse client. This was already done for the main and logs ClickHouse clients but was missing for the query client, causing a startup crash with `Error: Unknown URL parameters: secure`. diff --git a/.server-changes/fix-dev-env-scope-wrong-member.md b/.server-changes/fix-dev-env-scope-wrong-member.md deleted file mode 100644 index 2bd3c92825c..00000000000 --- a/.server-changes/fix-dev-env-scope-wrong-member.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Fix `OrganizationsPresenter.#getEnvironment` matching the wrong development environment on teams with multiple members. All dev environments share the slug `"dev"`, so the previous `find` by slug alone could return another member's environment. Now filters DEVELOPMENT environments by `orgMember.userId` to ensure the logged-in user's dev environment is selected. diff --git a/.server-changes/llm-cost-tracking.md b/.server-changes/llm-cost-tracking.md deleted file mode 100644 index 7567aae7d1b..00000000000 --- a/.server-changes/llm-cost-tracking.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -Add automatic LLM cost calculation for spans with GenAI semantic conventions. When a span arrives with `gen_ai.response.model` and token usage data, costs are calculated from an in-memory pricing registry backed by Postgres and dual-written to both span attributes (`trigger.llm.*`) and a new `llm_metrics_v1` ClickHouse table that captures usage, cost, performance (TTFC, tokens/sec), and behavioral (finish reason, operation type) metrics. diff --git a/.server-changes/mcp-get-span-details.md b/.server-changes/mcp-get-span-details.md deleted file mode 100644 index 336595d2203..00000000000 --- a/.server-changes/mcp-get-span-details.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -Add API endpoint `GET /api/v1/runs/:runId/spans/:spanId` that returns detailed span information including properties, events, AI enrichment (model, tokens, cost), and triggered child runs. diff --git a/.server-changes/platform-notifications.md b/.server-changes/platform-notifications.md deleted file mode 100644 index 54d52d77673..00000000000 --- a/.server-changes/platform-notifications.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: feature ---- - -Add platform notifications to inform users about new features, changelogs, and platform events directly in the dashboard. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 192a5747f2a..17204b0b307 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1116,7 +1116,7 @@ importers: version: 18.3.1 react-email: specifier: ^2.1.1 - version: 2.1.2(@opentelemetry/api@1.9.0)(@swc/helpers@0.5.15)(eslint@8.31.0) + version: 2.1.2(@opentelemetry/api@1.9.0)(@swc/helpers@0.5.15)(bufferutil@4.0.9)(eslint@8.31.0) resend: specifier: ^3.2.0 version: 3.2.0 @@ -1403,7 +1403,7 @@ importers: specifier: ^6.10.0 version: 6.19.0(magicast@0.3.5) '@trigger.dev/core': - specifier: workspace:4.4.3 + specifier: workspace:4.4.4 version: link:../core mlly: specifier: ^1.7.1 @@ -1479,13 +1479,13 @@ importers: specifier: ^0.22.5 version: 0.22.5(supports-color@10.0.0) '@trigger.dev/build': - specifier: workspace:4.4.3 + specifier: workspace:4.4.4 version: link:../build '@trigger.dev/core': - specifier: workspace:4.4.3 + specifier: workspace:4.4.4 version: link:../core '@trigger.dev/schema-to-json': - specifier: workspace:4.4.3 + specifier: workspace:4.4.4 version: link:../schema-to-json ansi-escapes: specifier: ^7.0.0 @@ -1853,7 +1853,7 @@ importers: packages/python: dependencies: '@trigger.dev/core': - specifier: workspace:4.4.3 + specifier: workspace:4.4.4 version: link:../core tinyexec: specifier: ^0.3.2 @@ -1863,10 +1863,10 @@ importers: specifier: ^0.15.4 version: 0.15.4 '@trigger.dev/build': - specifier: workspace:4.4.3 + specifier: workspace:4.4.4 version: link:../build '@trigger.dev/sdk': - specifier: workspace:4.4.3 + specifier: workspace:4.4.4 version: link:../trigger-sdk '@types/node': specifier: 20.14.14 @@ -1890,7 +1890,7 @@ importers: packages/react-hooks: dependencies: '@trigger.dev/core': - specifier: workspace:^4.4.3 + specifier: workspace:^4.4.4 version: link:../core react: specifier: ^18.0 || ^19.0 || ^19.0.0-rc @@ -1924,7 +1924,7 @@ importers: packages/redis-worker: dependencies: '@trigger.dev/core': - specifier: workspace:4.4.3 + specifier: workspace:4.4.4 version: link:../core cron-parser: specifier: ^4.9.0 @@ -1973,7 +1973,7 @@ importers: packages/rsc: dependencies: '@trigger.dev/core': - specifier: workspace:^4.4.3 + specifier: workspace:^4.4.4 version: link:../core mlly: specifier: ^1.7.1 @@ -1989,7 +1989,7 @@ importers: specifier: ^0.15.4 version: 0.15.4 '@trigger.dev/build': - specifier: workspace:^4.4.3 + specifier: workspace:^4.4.4 version: link:../build '@types/node': specifier: 20.14.14 @@ -2065,7 +2065,7 @@ importers: specifier: 1.36.0 version: 1.36.0 '@trigger.dev/core': - specifier: workspace:4.4.3 + specifier: workspace:4.4.4 version: link:../core chalk: specifier: ^5.2.0 @@ -39412,7 +39412,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - react-email@2.1.2(@opentelemetry/api@1.9.0)(@swc/helpers@0.5.15)(eslint@8.31.0): + react-email@2.1.2(@opentelemetry/api@1.9.0)(@swc/helpers@0.5.15)(bufferutil@4.0.9)(eslint@8.31.0): dependencies: '@babel/parser': 7.24.1 '@radix-ui/colors': 1.0.1 @@ -39449,8 +39449,8 @@ snapshots: react: 18.3.1 react-dom: 18.2.0(react@18.3.1) shelljs: 0.8.5 - socket.io: 4.7.3 - socket.io-client: 4.7.3 + socket.io: 4.7.3(bufferutil@4.0.9) + socket.io-client: 4.7.3(bufferutil@4.0.9) sonner: 1.3.1(react-dom@18.2.0(react@18.3.1))(react@18.3.1) source-map-js: 1.0.2 stacktrace-parser: 0.1.10 @@ -40677,7 +40677,7 @@ snapshots: - supports-color - utf-8-validate - socket.io-client@4.7.3: + socket.io-client@4.7.3(bufferutil@4.0.9): dependencies: '@socket.io/component-emitter': 3.1.0 debug: 4.3.7(supports-color@10.0.0) @@ -40706,7 +40706,7 @@ snapshots: transitivePeerDependencies: - supports-color - socket.io@4.7.3: + socket.io@4.7.3(bufferutil@4.0.9): dependencies: accepts: 1.3.8 base64id: 2.0.0