Open
Conversation
700ef53 to
acc6571
Compare
a98df24 to
943a8eb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
2 new features, 43 improvements, 14 bug fixes.
Improvements
get_query_schema— discover available TRQL tables and columnsquery— execute TRQL queries against your datalist_dashboards— list built-in dashboards and their widgetsrun_dashboard_query— execute a single dashboard widget querywhoami— show current profile, user, and API URLlist_profiles— list all configured CLI profilesswitch_profile— switch active profile for the MCP sessionstart_dev_server— starttrigger devin the background and stream outputstop_dev_server— stop the running dev serverdev_server_status— check dev server status and view recent logsGET /api/v1/query/schema— query table schema discoveryGET /api/v1/query/dashboards— list built-in dashboards--readonlyflag hides write tools (deploy,trigger_task,cancel_run) so the AI cannot make changesread:queryJWT scope for query endpoint authorizationget_run_detailstrace output is now paginated with cursor supportreadOnlyHint,destructiveHint) for all toolsget_query_schemanow requires a table name and returns only one table's schema (was returning all tables)get_current_workerno longer inlines payload schemas; use newget_task_schematool insteadcancel_run,list_deploys,list_preview_branchesformatted as text instead of raw JSONget_query_schema— discover available TRQL tables and columnsquery— execute TRQL queries against your datalist_dashboards— list built-in dashboards and their widgetsrun_dashboard_query— execute a single dashboard widget querywhoami— show current profile, user, and API URLlist_profiles— list all configured CLI profilesswitch_profile— switch active profile for the MCP sessionstart_dev_server— starttrigger devin the background and stream outputstop_dev_server— stop the running dev serverdev_server_status— check dev server status and view recent logsGET /api/v1/query/schema— query table schema discoveryGET /api/v1/query/dashboards— list built-in dashboards--readonlyflag hides write tools (deploy,trigger_task,cancel_run) so the AI cannot make changesread:queryJWT scope for query endpoint authorizationget_run_detailstrace output is now paginated with cursor supportreadOnlyHint,destructiveHint) for all toolsget_query_schemanow requires a table name and returns only one table's schema (was returning all tables)get_current_workerno longer inlines payload schemas; use newget_task_schematool insteadcancel_run,list_deploys,list_preview_branchesformatted as text instead of raw JSONBug fixes
.trigger/tmp/when the dev CLI is killed ungracefully (e.g. SIGKILL from pnpm). (#3224)search_docstool failing due to renamed upstream Mintlify tool (SearchTriggerDev→search_trigger_dev)list_deploysfailing when deployments have nullruntime/runtimeVersionfields (MCP server: list_deploys fails with validation error on null runtime/runtimeVersion #3139)list_preview_branchescrashing due to incorrect response shape accessmetricstable column documented asvalueinstead ofmetric_valuein query docssearch_docstool failing due to renamed upstream Mintlify tool (SearchTriggerDev→search_trigger_dev)list_deploysfailing when deployments have nullruntime/runtimeVersionfields (MCP server: list_deploys fails with validation error on null runtime/runtimeVersion #3139)list_preview_branchescrashing due to incorrect response shape accessmetricstable column documented asvalueinstead ofmetric_valuein query docsServer changes
These changes affect the self-hosted Docker image and Trigger.dev Cloud:
gen_ai.response.modeland 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 newllm_metrics_v1ClickHouse table that captures usage, cost, performance (TTFC, tokens/sec), and behavioral (finish reason, operation type) metrics. (#3213)batchTriggerAndWaitbatches. Previously, each batch item acquired a Redis lock on the parent run to insert aTaskRunWaitpointrow, causingLockAcquisitionTimeoutErrorwith high concurrency (880 errors/24h in prod). SinceblockRunWithCreatedBatchalready transitions the parent toEXECUTING_WITH_WAITPOINTSbefore items are processed, the per-item lock is unnecessary. The newblockRunWithWaitpointLocklessmethod performs only the idempotent CTE insert without acquiring the lock. (#3232)securequery 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 withError: Unknown URL parameters: secure. (#3204)Raw changeset output
Releases
@trigger.dev/build@4.4.4
Patch Changes
@trigger.dev/core@4.4.4trigger.dev@4.4.4
Patch Changes
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)MCP server improvements: new tools, bug fixes, and new flags. (#3224)
New tools:
get_query_schema— discover available TRQL tables and columnsquery— execute TRQL queries against your datalist_dashboards— list built-in dashboards and their widgetsrun_dashboard_query— execute a single dashboard widget querywhoami— show current profile, user, and API URLlist_profiles— list all configured CLI profilesswitch_profile— switch active profile for the MCP sessionstart_dev_server— starttrigger devin the background and stream outputstop_dev_server— stop the running dev serverdev_server_status— check dev server status and view recent logsNew API endpoints:
GET /api/v1/query/schema— query table schema discoveryGET /api/v1/query/dashboards— list built-in dashboardsNew features:
--readonlyflag hides write tools (deploy,trigger_task,cancel_run) so the AI cannot make changesread:queryJWT scope for query endpoint authorizationget_run_detailstrace output is now paginated with cursor supportreadOnlyHint,destructiveHint) for all toolsBug fixes:
search_docstool failing due to renamed upstream Mintlify tool (SearchTriggerDev→search_trigger_dev)list_deploysfailing when deployments have nullruntime/runtimeVersionfields (MCP server: list_deploys fails with validation error on null runtime/runtimeVersion #3139)list_preview_branchescrashing due to incorrect response shape accessmetricstable column documented asvalueinstead ofmetric_valuein query docsContext optimizations:
get_query_schemanow requires a table name and returns only one table's schema (was returning all tables)get_current_workerno longer inlines payload schemas; use newget_task_schematool insteadcancel_run,list_deploys,list_preview_branchesformatted as text instead of raw JSONUpdated dependencies:
@trigger.dev/core@4.4.4@trigger.dev/build@4.4.4@trigger.dev/schema-to-json@4.4.4@trigger.dev/core@4.4.4
Patch Changes
Fix
list_deploysMCP tool failing when deployments have nullruntimeorruntimeVersionfields. (#3224)Propagate run tags to span attributes so they can be extracted server-side for LLM cost attribution metadata. (#3213)
MCP server improvements: new tools, bug fixes, and new flags. (#3224)
New tools:
get_query_schema— discover available TRQL tables and columnsquery— execute TRQL queries against your datalist_dashboards— list built-in dashboards and their widgetsrun_dashboard_query— execute a single dashboard widget querywhoami— show current profile, user, and API URLlist_profiles— list all configured CLI profilesswitch_profile— switch active profile for the MCP sessionstart_dev_server— starttrigger devin the background and stream outputstop_dev_server— stop the running dev serverdev_server_status— check dev server status and view recent logsNew API endpoints:
GET /api/v1/query/schema— query table schema discoveryGET /api/v1/query/dashboards— list built-in dashboardsNew features:
--readonlyflag hides write tools (deploy,trigger_task,cancel_run) so the AI cannot make changesread:queryJWT scope for query endpoint authorizationget_run_detailstrace output is now paginated with cursor supportreadOnlyHint,destructiveHint) for all toolsBug fixes:
search_docstool failing due to renamed upstream Mintlify tool (SearchTriggerDev→search_trigger_dev)list_deploysfailing when deployments have nullruntime/runtimeVersionfields (MCP server: list_deploys fails with validation error on null runtime/runtimeVersion #3139)list_preview_branchescrashing due to incorrect response shape accessmetricstable column documented asvalueinstead ofmetric_valuein query docsContext optimizations:
get_query_schemanow requires a table name and returns only one table's schema (was returning all tables)get_current_workerno longer inlines payload schemas; use newget_task_schematool insteadcancel_run,list_deploys,list_preview_branchesformatted as text instead of raw JSON@trigger.dev/python@4.4.4
Patch Changes
@trigger.dev/core@4.4.4@trigger.dev/build@4.4.4@trigger.dev/sdk@4.4.4@trigger.dev/react-hooks@4.4.4
Patch Changes
@trigger.dev/core@4.4.4@trigger.dev/redis-worker@4.4.4
Patch Changes
@trigger.dev/core@4.4.4@trigger.dev/rsc@4.4.4
Patch Changes
@trigger.dev/core@4.4.4@trigger.dev/schema-to-json@4.4.4
Patch Changes
@trigger.dev/core@4.4.4@trigger.dev/sdk@4.4.4
Patch Changes
@trigger.dev/core@4.4.4