aafc333523
🚀 Publish Trigger.dev Docker / units (push) Failing after 5s
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 15s
🚀 Publish Trigger.dev Docker / scan-webapp (push) Has been skipped
🚀 Publish Trigger.dev Docker / scan-supervisor (push) Has been skipped
🚀 Publish Trigger.dev Docker / publish-webapp (push) Has been skipped
🚀 Publish Trigger.dev Docker / publish-worker-v4 (push) Has been skipped
🧭 Helm Chart Release / lint-and-test (push) Has been cancelled
🧭 Helm Chart Release / release (push) Has been cancelled
🚀 Publish Trigger.dev Docker / 📣 Dispatch main image (push) Has been cancelled
## Summary 5 improvements, 5 bug fixes. ## Improvements - Add `node-24` and `node-26` as supported `runtime` options in `trigger.config.ts`. The `experimental-node-24` and `experimental-node-26` names are now deprecated aliases and emit a deprecation warning; switch to `node-24` / `node-26` instead. ([#4337](https://github.com/triggerdotdev/trigger.dev/pull/4337)) ```ts import { defineConfig } from "@trigger.dev/sdk"; export default defineConfig({ runtime: "node-24", project: "<your-project-ref>", }); ``` - Avoid logging task run environment variable values at debug level ([#4336](https://github.com/triggerdotdev/trigger.dev/pull/4336)) - Custom chat agent loops get two ergonomic wins for owning the turn loop. ([#4304](https://github.com/triggerdotdev/trigger.dev/pull/4304)) `chat.writeTurnComplete()` now returns the turn boundary's resume cursors (`lastEventId` for the output stream and `sessionInEventId` for the input stream), so you can persist them straight from the task instead of round-tripping them back from the client. ```ts const { lastEventId, sessionInEventId } = await chat.writeTurnComplete(); await db.chats.update(chatId, { lastEventId, sessionInEventId }); ``` `chat.pipeAndCapture()` no longer throws when a stream is stopped or fails. It now returns a `PipeAndCaptureResult` whose `message` holds any partial output captured before the stop or failure, alongside a typed `status` (`"complete" | "aborted" | "error"`) and, on failure, the `error`. Read the message off the result: ```ts const { message, status, error } = await chat.pipeAndCapture(result, { signal, }); if (message) conversation.addResponse(message); if (status === "error") logger.error("turn failed", { error }); ``` Note: `pipeAndCapture` previously resolved to `UIMessage | undefined`. Update call sites to read `.message` from the returned result. - Suppress a build-time warning that could appear in Vite-based projects when the optional `@ai-sdk/otel` package is not installed. ([#4188](https://github.com/triggerdotdev/trigger.dev/pull/4188)) ## Bug fixes - Fixes intermittent `trigger dev` run crashes where a run could fail at boot with a cryptic `Cannot find module .../dev-run-worker.mjs` after a rebuild had cleaned up the build directory the run was launched against. Dev runs now retry cleanly instead of hard-crashing when their build directory is missing, the dev watchdog no longer removes the build tree of a still-running session, and a run assigned to a worker version that was superseded by a rebuild now fails fast with a clear message instead of silently hanging until it times out. ([#4276](https://github.com/triggerdotdev/trigger.dev/pull/4276)) ## Server changes These changes affect the self-hosted Docker image and Trigger.dev Cloud: - Refreshed the side menu: separate organization and account menus, a new project switcher, and the menu is now resizable by dragging its edge. The account Profile page has also been redesigned. ([#4066](https://github.com/triggerdotdev/trigger.dev/pull/4066)) - Allow different organization members to use the same development branch name without sharing or colliding with each other's branch environments. ([#4323](https://github.com/triggerdotdev/trigger.dev/pull/4323)) - Limit account settings email input to 254 characters. ([#4330](https://github.com/triggerdotdev/trigger.dev/pull/4330)) - Prevent duplicate Staging and Preview environments when account setup requests overlap ([#4261](https://github.com/triggerdotdev/trigger.dev/pull/4261)) - Fix the docs link on the empty Prompts page, which pointed to a page that no longer exists. ([#4247](https://github.com/triggerdotdev/trigger.dev/pull/4247)) <details> <summary>Raw changeset output</summary> # Releases ## @trigger.dev/build@4.5.7 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.7` ## trigger.dev@4.5.7 ### Patch Changes - Fixes intermittent `trigger dev` run crashes where a run could fail at boot with a cryptic `Cannot find module .../dev-run-worker.mjs` after a rebuild had cleaned up the build directory the run was launched against. Dev runs now retry cleanly instead of hard-crashing when their build directory is missing, the dev watchdog no longer removes the build tree of a still-running session, and a run assigned to a worker version that was superseded by a rebuild now fails fast with a clear message instead of silently hanging until it times out. ([#4276](https://github.com/triggerdotdev/trigger.dev/pull/4276)) - Add `node-24` and `node-26` as supported `runtime` options in `trigger.config.ts`. The `experimental-node-24` and `experimental-node-26` names are now deprecated aliases and emit a deprecation warning; switch to `node-24` / `node-26` instead. ([#4337](https://github.com/triggerdotdev/trigger.dev/pull/4337)) ```ts import { defineConfig } from "@trigger.dev/sdk"; export default defineConfig({ runtime: "node-24", project: "<your-project-ref>", }); ``` - Avoid logging task run environment variable values at debug level ([#4336](https://github.com/triggerdotdev/trigger.dev/pull/4336)) - Updated dependencies: - `@trigger.dev/core@4.5.7` - `@trigger.dev/build@4.5.7` - `@trigger.dev/schema-to-json@4.5.7` ## @trigger.dev/core@4.5.7 ### Patch Changes - Add `node-24` and `node-26` as supported `runtime` options in `trigger.config.ts`. The `experimental-node-24` and `experimental-node-26` names are now deprecated aliases and emit a deprecation warning; switch to `node-24` / `node-26` instead. ([#4337](https://github.com/triggerdotdev/trigger.dev/pull/4337)) ```ts import { defineConfig } from "@trigger.dev/sdk"; export default defineConfig({ runtime: "node-24", project: "<your-project-ref>", }); ``` ## @trigger.dev/python@4.5.7 ### Patch Changes - Updated dependencies: - `@trigger.dev/sdk@4.5.7` - `@trigger.dev/core@4.5.7` - `@trigger.dev/build@4.5.7` ## @trigger.dev/react-hooks@4.5.7 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.7` ## @trigger.dev/redis-worker@4.5.7 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.7` ## @trigger.dev/rsc@4.5.7 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.7` ## @trigger.dev/schema-to-json@4.5.7 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.7` ## @trigger.dev/sdk@4.5.7 ### Patch Changes - Custom chat agent loops get two ergonomic wins for owning the turn loop. ([#4304](https://github.com/triggerdotdev/trigger.dev/pull/4304)) `chat.writeTurnComplete()` now returns the turn boundary's resume cursors (`lastEventId` for the output stream and `sessionInEventId` for the input stream), so you can persist them straight from the task instead of round-tripping them back from the client. ```ts const { lastEventId, sessionInEventId } = await chat.writeTurnComplete(); await db.chats.update(chatId, { lastEventId, sessionInEventId }); ``` `chat.pipeAndCapture()` no longer throws when a stream is stopped or fails. It now returns a `PipeAndCaptureResult` whose `message` holds any partial output captured before the stop or failure, alongside a typed `status` (`"complete" | "aborted" | "error"`) and, on failure, the `error`. Read the message off the result: ```ts const { message, status, error } = await chat.pipeAndCapture(result, { signal, }); if (message) conversation.addResponse(message); if (status === "error") logger.error("turn failed", { error }); ``` Note: `pipeAndCapture` previously resolved to `UIMessage | undefined`. Update call sites to read `.message` from the returned result. - Suppress a build-time warning that could appear in Vite-based projects when the optional `@ai-sdk/otel` package is not installed. ([#4188](https://github.com/triggerdotdev/trigger.dev/pull/4188)) - Updated dependencies: - `@trigger.dev/core@4.5.7` </details> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
165 lines
4.4 KiB
JSON
165 lines
4.4 KiB
JSON
{
|
|
"name": "trigger.dev",
|
|
"version": "4.5.7",
|
|
"description": "A Command-Line Interface for Trigger.dev projects",
|
|
"type": "module",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/triggerdotdev/trigger.dev",
|
|
"directory": "packages/cli-v3"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"mcpName": "io.github.triggerdotdev/trigger.dev",
|
|
"keywords": [
|
|
"typescript",
|
|
"trigger.dev",
|
|
"workflows",
|
|
"orchestration",
|
|
"events",
|
|
"webhooks",
|
|
"integrations",
|
|
"apis",
|
|
"jobs",
|
|
"background jobs",
|
|
"nextjs",
|
|
"tanstack-intent"
|
|
],
|
|
"files": [
|
|
"dist",
|
|
"skills"
|
|
],
|
|
"bin": {
|
|
"trigger": "./dist/esm/index.js"
|
|
},
|
|
"tshy": {
|
|
"selfLink": false,
|
|
"main": false,
|
|
"module": false,
|
|
"dialects": [
|
|
"esm"
|
|
],
|
|
"project": "./tsconfig.src.json",
|
|
"exclude": [
|
|
"**/*.test.ts"
|
|
],
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": "./src/index.ts"
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@epic-web/test-server": "^0.1.0",
|
|
"@types/eventsource": "^1.1.15",
|
|
"@types/gradient-string": "^1.1.2",
|
|
"@types/ini": "^4.1.1",
|
|
"@types/object-hash": "3.0.6",
|
|
"@types/react": "^18.2.48",
|
|
"@types/resolve": "^1.20.6",
|
|
"@types/rimraf": "^4.0.5",
|
|
"@types/semver": "^7.5.0",
|
|
"@types/source-map-support": "0.5.10",
|
|
"@types/ws": "^8.5.3",
|
|
"cpy-cli": "^5.0.0",
|
|
"execa": "^8.0.1",
|
|
"find-up": "^7.0.0",
|
|
"rimraf": "^6.0.1",
|
|
"ts-essentials": "10.0.1",
|
|
"tshy": "^3.0.2",
|
|
"tsx": "4.17.0"
|
|
},
|
|
"scripts": {
|
|
"clean": "rimraf dist .tshy .tshy-build .turbo",
|
|
"typecheck": "tsc -p tsconfig.src.json --noEmit",
|
|
"build": "tshy && pnpm run update-version",
|
|
"dev": "tshy --watch",
|
|
"test": "vitest",
|
|
"test:e2e": "vitest --run -c ./e2e/vitest.config.ts",
|
|
"update-version": "tsx ../../scripts/updateVersion.ts",
|
|
"install-mcp": "./install-mcp.sh",
|
|
"inspector": "npx @modelcontextprotocol/inspector dist/esm/index.js mcp --log-file .mcp.log --api-url http://localhost:3030",
|
|
"mcp:test": "tsx src/mcp/tools.test.ts",
|
|
"mcp:smoke": "tsx src/mcp/smoke.test.ts"
|
|
},
|
|
"dependencies": {
|
|
"@clack/prompts": "0.11.0",
|
|
"@depot/cli": "0.0.1-cli.2.80.0",
|
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
"@opentelemetry/api": "1.9.1",
|
|
"@opentelemetry/api-logs": "0.218.0",
|
|
"@opentelemetry/exporter-trace-otlp-http": "0.218.0",
|
|
"@opentelemetry/instrumentation": "0.218.0",
|
|
"@opentelemetry/instrumentation-fetch": "0.218.0",
|
|
"@opentelemetry/resources": "2.7.1",
|
|
"@opentelemetry/sdk-trace-node": "2.7.1",
|
|
"@opentelemetry/semantic-conventions": "1.41.1",
|
|
"@s2-dev/streamstore": "^0.22.10",
|
|
"@trigger.dev/build": "workspace:4.5.7",
|
|
"@trigger.dev/core": "workspace:4.5.7",
|
|
"@trigger.dev/schema-to-json": "workspace:4.5.7",
|
|
"ansi-escapes": "^7.0.0",
|
|
"braces": "^3.0.3",
|
|
"c12": "^1.11.1",
|
|
"chalk": "^5.2.0",
|
|
"chokidar": "^3.6.0",
|
|
"cli-table3": "^0.6.3",
|
|
"commander": "^9.4.1",
|
|
"confbox": "^0.2.2",
|
|
"defu": "^6.1.4",
|
|
"dotenv": "^16.4.5",
|
|
"esbuild": "^0.23.0",
|
|
"eventsource": "^3.0.2",
|
|
"evt": "^2.4.13",
|
|
"fast-npm-meta": "^0.2.2",
|
|
"git-last-commit": "^1.0.1",
|
|
"gradient-string": "^2.0.2",
|
|
"has-flag": "^5.0.1",
|
|
"ignore": "^7.0.5",
|
|
"import-in-the-middle": "3.0.1",
|
|
"import-meta-resolve": "^4.1.0",
|
|
"ini": "^5.0.0",
|
|
"json-stable-stringify": "^1.3.0",
|
|
"jsonc-parser": "3.2.1",
|
|
"magicast": "^0.3.4",
|
|
"minimatch": "^10.0.1",
|
|
"mlly": "^1.7.1",
|
|
"nypm": "^0.5.4",
|
|
"object-hash": "^3.0.0",
|
|
"open": "^10.0.3",
|
|
"p-limit": "^6.2.0",
|
|
"p-retry": "^6.1.0",
|
|
"partysocket": "^1.0.2",
|
|
"pkg-types": "^1.1.3",
|
|
"resolve": "^1.22.8",
|
|
"semver": "^7.5.0",
|
|
"signal-exit": "^4.1.0",
|
|
"socket.io-client": "4.7.5",
|
|
"source-map-support": "0.5.21",
|
|
"std-env": "^3.7.0",
|
|
"strip-ansi": "^7.1.0",
|
|
"supports-color": "^10.0.0",
|
|
"tar": "^7.5.13",
|
|
"tiny-invariant": "^1.2.0",
|
|
"tinyexec": "^0.3.1",
|
|
"tinyglobby": "^0.2.10",
|
|
"ws": "^8.18.0",
|
|
"xdg-app-paths": "^8.3.0",
|
|
"zod": "3.25.76",
|
|
"zod-validation-error": "^1.5.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.20.0"
|
|
},
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/esm/index.d.ts",
|
|
"default": "./dist/esm/index.js"
|
|
}
|
|
}
|
|
}
|
|
}
|