015106d7fa
📚 Publish docs / publish (push) Has been cancelled
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 4s
🚀 Publish Trigger.dev Docker / publish-worker-v4 (push) Has been skipped
🚀 Publish Trigger.dev Docker / scan-webapp (push) Has been skipped
🚀 Publish Trigger.dev Docker / publish-webapp (push) Has been skipped
🚀 Publish Trigger.dev Docker / publish-worker (push) Has been skipped
🚀 Publish Trigger.dev Docker / units (push) Failing after 5s
🧭 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 7 improvements. ## Improvements - `@trigger.dev/sdk` now bundles the Trigger.dev agent skills and a curated snapshot of the docs those skills reference. The skills that `trigger skills` installs into your coding agent read this content from node_modules, so the guidance your AI assistant follows is pinned to the SDK version installed in your project and stays current across upgrades instead of going stale until the next reinstall. ([#3937](https://github.com/triggerdotdev/trigger.dev/pull/3937)) - Running a CLI command like `dev`, `deploy`, `preview`, or `update` before initializing a project no longer crashes with a raw `Cannot find matching package.json` stack trace. The CLI now detects the missing project and points you to `npx trigger.dev@latest init` instead. ([#3929](https://github.com/triggerdotdev/trigger.dev/pull/3929)) - The agent skills installed by `trigger skills` are now namespaced with a `trigger-` prefix (e.g. `trigger-authoring-tasks`, `trigger-getting-started`) so they don't collide with unrelated skills in your coding agent's skills directory. Adds a `trigger-cost-savings` skill for auditing and reducing compute spend (right-sizing machines, `maxDuration`, batching, debounce), and `@trigger.dev/sdk` now bundles the full Trigger.dev documentation so your agent can read the complete, version-pinned reference directly from node_modules. ([#3970](https://github.com/triggerdotdev/trigger.dev/pull/3970)) - The run span API response now includes `cachedCost` and `cacheCreationCost` on the `ai` object, alongside the existing `inputCost` / `outputCost` / `totalCost`. `inputCost` reflects only the non-cached input, so these fields let you reconstruct the full cost breakdown for prompt-cached calls. ([#3958](https://github.com/triggerdotdev/trigger.dev/pull/3958)) - `chat.headStart` now works with the `chat.customAgent` and `chat.createSession` backends, not only `chat.agent`. The warm step-1 response hands over to your loop the same way it does for a managed agent. ([#3963](https://github.com/triggerdotdev/trigger.dev/pull/3963)) In a `chat.customAgent` loop, consume the handover on turn 0: ```ts const conversation = new chat.MessageAccumulator(); const { isFinal, skipped } = await conversation.consumeHandover({ payload }); if (skipped) return; // warm handler aborted, so exit without a turn if (isFinal) { await chat.writeTurnComplete(); // step 1 is the response, no streamText } else { const result = streamText({ model, messages: conversation.modelMessages, tools }); // Pass originalMessages so the handed-over tool round merges into the // step-1 assistant instead of starting a new message. const response = await chat.pipeAndCapture(result, { originalMessages: conversation.uiMessages, }); if (response) await conversation.addResponse(response); } ``` With `chat.createSession`, the iterator surfaces it as `turn.handover`; call `turn.complete()` with no argument on a final handover. The lower-level `chat.waitForHandover()` and `accumulator.applyHandover()` are also exported for hand-rolled loops. - Cache your chat agent's system prompt with Anthropic prompt caching. `chat.toStreamTextOptions()` now emits the system prompt as a cacheable message when you opt in, so a large, stable system block is billed at cache-read rates on every turn instead of full price. ([#3952](https://github.com/triggerdotdev/trigger.dev/pull/3952)) ```ts // at the streamText call site (Anthropic sugar) streamText({ ...chat.toStreamTextOptions({ cacheControl: { type: "ephemeral" } }), messages, }); // provider-agnostic equivalent chat.toStreamTextOptions({ systemProviderOptions: { anthropic: { cacheControl: { type: "ephemeral" } } }, }); // or where the prompt is defined chat.prompt.set(SYSTEM_PROMPT, { providerOptions: { anthropic: { cacheControl: { type: "ephemeral" } } }, }); ``` Without an option, `system` stays a plain string. Pairs with a `prepareMessages` cache breakpoint to cache the conversation prefix across turns too. - Three fixes for custom agent loops (`chat.customAgent`, `chat.createSession`, and hand-rolled `MessageAccumulator` loops): ([#3936](https://github.com/triggerdotdev/trigger.dev/pull/3936)) - Continuation runs no longer replay already-answered user messages into the first turn. The `.in` resume cursor is now seeded before any listener attaches (the same boot logic `chat.agent` uses), so a chat that continues after a cancel, crash, or upgrade only sees genuinely new messages. - Steering a hand-rolled loop mid-stream no longer wipes the in-flight assistant response. `chat.pipeAndCapture` now stamps a server-generated message id on the stream, so a `prepareStep` injection keeps the partial text instead of replacing the message. - Task-backed tools (`ai.toolExecute`) now work from custom agent loops: the parent's session is threaded to the child run, so child tasks can stream progress into the chat with `chat.stream.writer({ target: "root" })` instead of failing with "session handle is not initialized". <details> <summary>Raw changeset output</summary> ⚠️⚠️⚠️⚠️⚠️⚠️ `main` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `main`. ⚠️⚠️⚠️⚠️⚠️⚠️ # Releases ## @trigger.dev/build@4.5.0-rc.7 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.0-rc.7` ## trigger.dev@4.5.0-rc.7 ### Patch Changes - `@trigger.dev/sdk` now bundles the Trigger.dev agent skills and a curated snapshot of the docs those skills reference. The skills that `trigger skills` installs into your coding agent read this content from node_modules, so the guidance your AI assistant follows is pinned to the SDK version installed in your project and stays current across upgrades instead of going stale until the next reinstall. ([#3937](https://github.com/triggerdotdev/trigger.dev/pull/3937)) - Running a CLI command like `dev`, `deploy`, `preview`, or `update` before initializing a project no longer crashes with a raw `Cannot find matching package.json` stack trace. The CLI now detects the missing project and points you to `npx trigger.dev@latest init` instead. ([#3929](https://github.com/triggerdotdev/trigger.dev/pull/3929)) - The agent skills installed by `trigger skills` are now namespaced with a `trigger-` prefix (e.g. `trigger-authoring-tasks`, `trigger-getting-started`) so they don't collide with unrelated skills in your coding agent's skills directory. Adds a `trigger-cost-savings` skill for auditing and reducing compute spend (right-sizing machines, `maxDuration`, batching, debounce), and `@trigger.dev/sdk` now bundles the full Trigger.dev documentation so your agent can read the complete, version-pinned reference directly from node_modules. ([#3970](https://github.com/triggerdotdev/trigger.dev/pull/3970)) - Updated dependencies: - `@trigger.dev/core@4.5.0-rc.7` - `@trigger.dev/build@4.5.0-rc.7` - `@trigger.dev/schema-to-json@4.5.0-rc.7` ## @trigger.dev/core@4.5.0-rc.7 ### Patch Changes - The run span API response now includes `cachedCost` and `cacheCreationCost` on the `ai` object, alongside the existing `inputCost` / `outputCost` / `totalCost`. `inputCost` reflects only the non-cached input, so these fields let you reconstruct the full cost breakdown for prompt-cached calls. ([#3958](https://github.com/triggerdotdev/trigger.dev/pull/3958)) ## @trigger.dev/python@4.5.0-rc.7 ### Patch Changes - Updated dependencies: - `@trigger.dev/sdk@4.5.0-rc.7` - `@trigger.dev/core@4.5.0-rc.7` - `@trigger.dev/build@4.5.0-rc.7` ## @trigger.dev/react-hooks@4.5.0-rc.7 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.0-rc.7` ## @trigger.dev/redis-worker@4.5.0-rc.7 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.0-rc.7` ## @trigger.dev/rsc@4.5.0-rc.7 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.0-rc.7` ## @trigger.dev/schema-to-json@4.5.0-rc.7 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.0-rc.7` ## @trigger.dev/sdk@4.5.0-rc.7 ### Patch Changes - `@trigger.dev/sdk` now bundles the Trigger.dev agent skills and a curated snapshot of the docs those skills reference. The skills that `trigger skills` installs into your coding agent read this content from node_modules, so the guidance your AI assistant follows is pinned to the SDK version installed in your project and stays current across upgrades instead of going stale until the next reinstall. ([#3937](https://github.com/triggerdotdev/trigger.dev/pull/3937)) - `chat.headStart` now works with the `chat.customAgent` and `chat.createSession` backends, not only `chat.agent`. The warm step-1 response hands over to your loop the same way it does for a managed agent. ([#3963](https://github.com/triggerdotdev/trigger.dev/pull/3963)) In a `chat.customAgent` loop, consume the handover on turn 0: ```ts const conversation = new chat.MessageAccumulator(); const { isFinal, skipped } = await conversation.consumeHandover({ payload }); if (skipped) return; // warm handler aborted, so exit without a turn if (isFinal) { await chat.writeTurnComplete(); // step 1 is the response, no streamText } else { const result = streamText({ model, messages: conversation.modelMessages, tools }); // Pass originalMessages so the handed-over tool round merges into the // step-1 assistant instead of starting a new message. const response = await chat.pipeAndCapture(result, { originalMessages: conversation.uiMessages, }); if (response) await conversation.addResponse(response); } ``` With `chat.createSession`, the iterator surfaces it as `turn.handover`; call `turn.complete()` with no argument on a final handover. The lower-level `chat.waitForHandover()` and `accumulator.applyHandover()` are also exported for hand-rolled loops. - Add `triggerConfig` support to `chat.headStart()` and `chat.openSession()`, so the auto-triggered handover-prepare run inherits tags, queue, machine, and other session trigger options the same way `chat.createStartSessionAction()` does. The `chat:{chatId}` tag is prepended automatically. ([#3963](https://github.com/triggerdotdev/trigger.dev/pull/3963)) ```ts export const POST = chat.headStart({ agentId: "my-agent", triggerConfig: { tags: ["org:acme"], queue: "chat" }, run: async ({ chat }) => streamText({ ...chat.toStreamTextOptions(), model }), }); ``` Because the session is created once on the first head-start turn and is idempotent on the chat id, this is the only place to set those options for a head-start chat's lifetime. `chat.createStartSessionAction()` now also forwards `maxDuration`, `region`, and `lockToVersion` so both session entry points stay consistent. - Cache your chat agent's system prompt with Anthropic prompt caching. `chat.toStreamTextOptions()` now emits the system prompt as a cacheable message when you opt in, so a large, stable system block is billed at cache-read rates on every turn instead of full price. ([#3952](https://github.com/triggerdotdev/trigger.dev/pull/3952)) ```ts // at the streamText call site (Anthropic sugar) streamText({ ...chat.toStreamTextOptions({ cacheControl: { type: "ephemeral" } }), messages, }); // provider-agnostic equivalent chat.toStreamTextOptions({ systemProviderOptions: { anthropic: { cacheControl: { type: "ephemeral" } } }, }); // or where the prompt is defined chat.prompt.set(SYSTEM_PROMPT, { providerOptions: { anthropic: { cacheControl: { type: "ephemeral" } } }, }); ``` Without an option, `system` stays a plain string. Pairs with a `prepareMessages` cache breakpoint to cache the conversation prefix across turns too. - Three fixes for custom agent loops (`chat.customAgent`, `chat.createSession`, and hand-rolled `MessageAccumulator` loops): ([#3936](https://github.com/triggerdotdev/trigger.dev/pull/3936)) - Continuation runs no longer replay already-answered user messages into the first turn. The `.in` resume cursor is now seeded before any listener attaches (the same boot logic `chat.agent` uses), so a chat that continues after a cancel, crash, or upgrade only sees genuinely new messages. - Steering a hand-rolled loop mid-stream no longer wipes the in-flight assistant response. `chat.pipeAndCapture` now stamps a server-generated message id on the stream, so a `prepareStep` injection keeps the partial text instead of replacing the message. - Task-backed tools (`ai.toolExecute`) now work from custom agent loops: the parent's session is threaded to the child run, so child tasks can stream progress into the chat with `chat.stream.writer({ target: "root" })` instead of failing with "session handle is not initialized". - The agent skills installed by `trigger skills` are now namespaced with a `trigger-` prefix (e.g. `trigger-authoring-tasks`, `trigger-getting-started`) so they don't collide with unrelated skills in your coding agent's skills directory. Adds a `trigger-cost-savings` skill for auditing and reducing compute spend (right-sizing machines, `maxDuration`, batching, debounce), and `@trigger.dev/sdk` now bundles the full Trigger.dev documentation so your agent can read the complete, version-pinned reference directly from node_modules. ([#3970](https://github.com/triggerdotdev/trigger.dev/pull/3970)) - Updated dependencies: - `@trigger.dev/core@4.5.0-rc.7` ## @trigger.dev/plugins@4.5.0-rc.7 ### Patch Changes - Updated dependencies: - `@trigger.dev/core@4.5.0-rc.7` </details> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
653 lines
21 KiB
JSON
653 lines
21 KiB
JSON
{
|
|
"name": "@trigger.dev/core",
|
|
"version": "4.5.0-rc.7",
|
|
"description": "Core code used across the Trigger.dev SDK and platform",
|
|
"license": "MIT",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/triggerdotdev/trigger.dev",
|
|
"directory": "packages/core"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"tshy": {
|
|
"selfLink": false,
|
|
"main": true,
|
|
"module": true,
|
|
"project": "./tsconfig.src.json",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": "./src/index.ts",
|
|
"./logger": "./src/logger.ts",
|
|
"./utils": "./src/utils.ts",
|
|
"./schemas": "./src/schemas/index.ts",
|
|
"./types": "./src/types.ts",
|
|
"./v3": "./src/v3/index.ts",
|
|
"./v3/tracer": "./src/v3/tracer.ts",
|
|
"./v3/build": "./src/v3/build/index.ts",
|
|
"./v3/apps": "./src/v3/apps/index.ts",
|
|
"./v3/auth/environment": "./src/v3/auth/environment.ts",
|
|
"./v3/jwt": "./src/v3/jwt.ts",
|
|
"./v3/errors": "./src/v3/errors.ts",
|
|
"./v3/logger-api": "./src/v3/logger-api.ts",
|
|
"./v3/otel": "./src/v3/otel/index.ts",
|
|
"./v3/semanticInternalAttributes": "./src/v3/semanticInternalAttributes.ts",
|
|
"./v3/utils/durations": "./src/v3/utils/durations.ts",
|
|
"./v3/utils/flattenAttributes": "./src/v3/utils/flattenAttributes.ts",
|
|
"./v3/utils/gitBranch": "./src/v3/utils/gitBranch.ts",
|
|
"./v3/utils/ioSerialization": "./src/v3/utils/ioSerialization.ts",
|
|
"./v3/utils/omit": "./src/v3/utils/omit.ts",
|
|
"./v3/utils/retries": "./src/v3/utils/retries.ts",
|
|
"./v3/utils/structuredLogger": "./src/v3/utils/structuredLogger.ts",
|
|
"./v3/test": "./src/v3/test/index.ts",
|
|
"./v3/zodfetch": "./src/v3/zodfetch.ts",
|
|
"./v3/zodMessageHandler": "./src/v3/zodMessageHandler.ts",
|
|
"./v3/zodNamespace": "./src/v3/zodNamespace.ts",
|
|
"./v3/zodSocket": "./src/v3/zodSocket.ts",
|
|
"./v3/zodIpc": "./src/v3/zodIpc.ts",
|
|
"./v3/utils/timers": "./src/v3/utils/timers.ts",
|
|
"./v3/workers": "./src/v3/workers/index.ts",
|
|
"./v3/schemas": "./src/v3/schemas/index.ts",
|
|
"./v3/runEngineWorker": "./src/v3/runEngineWorker/index.ts",
|
|
"./v3/machines": "./src/v3/machines/index.ts",
|
|
"./v3/serverOnly": "./src/v3/serverOnly/index.ts",
|
|
"./v3/isomorphic": "./src/v3/isomorphic/index.ts",
|
|
"./v3/sdk-scope-storage": "./src/v3/sdkScope/storage-node.ts"
|
|
},
|
|
"sourceDialects": [
|
|
"@triggerdotdev/source"
|
|
]
|
|
},
|
|
"typesVersions": {
|
|
"*": {
|
|
"logger": [
|
|
"dist/commonjs/logger.d.ts"
|
|
],
|
|
"utils": [
|
|
"dist/commonjs/utils.d.ts"
|
|
],
|
|
"schemas": [
|
|
"dist/commonjs/schemas/index.d.ts"
|
|
],
|
|
"types": [
|
|
"dist/commonjs/types.d.ts"
|
|
],
|
|
"v3": [
|
|
"dist/commonjs/v3/index.d.ts"
|
|
],
|
|
"v3/tracer": [
|
|
"dist/commonjs/v3/tracer.d.ts"
|
|
],
|
|
"v3/build": [
|
|
"dist/commonjs/v3/build/index.d.ts"
|
|
],
|
|
"v3/apps": [
|
|
"dist/commonjs/v3/apps/index.d.ts"
|
|
],
|
|
"v3/errors": [
|
|
"dist/commonjs/v3/errors.d.ts"
|
|
],
|
|
"v3/logger-api": [
|
|
"dist/commonjs/v3/logger-api.d.ts"
|
|
],
|
|
"v3/otel": [
|
|
"dist/commonjs/v3/otel/index.d.ts"
|
|
],
|
|
"v3/semanticInternalAttributes": [
|
|
"dist/commonjs/v3/semanticInternalAttributes.d.ts"
|
|
],
|
|
"v3/auth/environment": [
|
|
"dist/commonjs/v3/auth/environment.d.ts"
|
|
],
|
|
"v3/utils/durations": [
|
|
"dist/commonjs/v3/utils/durations.d.ts"
|
|
],
|
|
"v3/utils/flattenAttributes": [
|
|
"dist/commonjs/v3/utils/flattenAttributes.d.ts"
|
|
],
|
|
"v3/utils/gitBranch": [
|
|
"dist/commonjs/v3/utils/gitBranch.d.ts"
|
|
],
|
|
"v3/utils/ioSerialization": [
|
|
"dist/commonjs/v3/utils/ioSerialization.d.ts"
|
|
],
|
|
"v3/utils/omit": [
|
|
"dist/commonjs/v3/utils/omit.d.ts"
|
|
],
|
|
"v3/utils/retries": [
|
|
"dist/commonjs/v3/utils/retries.d.ts"
|
|
],
|
|
"v3/utils/structuredLogger": [
|
|
"dist/commonjs/v3/utils/structuredLogger.d.ts"
|
|
],
|
|
"v3/zodfetch": [
|
|
"dist/commonjs/v3/zodfetch.d.ts"
|
|
],
|
|
"v3/zodMessageHandler": [
|
|
"dist/commonjs/v3/zodMessageHandler.d.ts"
|
|
],
|
|
"v3/zodNamespace": [
|
|
"dist/commonjs/v3/zodNamespace.d.ts"
|
|
],
|
|
"v3/zodSocket": [
|
|
"dist/commonjs/v3/zodSocket.d.ts"
|
|
],
|
|
"v3/zodIpc": [
|
|
"dist/commonjs/v3/zodIpc.d.ts"
|
|
],
|
|
"v3/utils/timers": [
|
|
"dist/commonjs/v3/utils/timers.d.ts"
|
|
],
|
|
"v3/workers": [
|
|
"dist/commonjs/v3/workers/index.d.ts"
|
|
],
|
|
"v3/schemas": [
|
|
"dist/commonjs/v3/schemas/index.d.ts"
|
|
],
|
|
"v3/jwt": [
|
|
"dist/commonjs/v3/jwt.d.ts"
|
|
],
|
|
"v3/runEngineWorker": [
|
|
"dist/commonjs/v3/runEngineWorker/index.d.ts"
|
|
],
|
|
"v3/machines": [
|
|
"dist/commonjs/v3/machines/index.d.ts"
|
|
],
|
|
"v3/serverOnly": [
|
|
"dist/commonjs/v3/serverOnly/index.d.ts"
|
|
],
|
|
"v3/isomorphic": [
|
|
"dist/commonjs/v3/isomorphic/index.d.ts"
|
|
],
|
|
"v3/sdk-scope-storage": [
|
|
"dist/commonjs/v3/sdkScope/storage-node.d.ts"
|
|
],
|
|
"v3/test": [
|
|
"dist/commonjs/v3/test/index.d.ts"
|
|
]
|
|
}
|
|
},
|
|
"sideEffects": [
|
|
"./dist/esm/v3/sdkScope/storage-node.js",
|
|
"./dist/commonjs/v3/sdkScope/storage-node.js",
|
|
"./src/v3/sdkScope/storage-node.ts"
|
|
],
|
|
"scripts": {
|
|
"clean": "rimraf dist .tshy .tshy-build .turbo src/v3/vendor",
|
|
"update-version": "tsx ../../scripts/updateVersion.ts",
|
|
"bundle-vendor": "node scripts/bundle-superjson.mjs",
|
|
"build": "pnpm run bundle-vendor && tshy && node scripts/bundle-superjson.mjs --copy && pnpm run update-version",
|
|
"dev": "pnpm run bundle-vendor && tshy --watch",
|
|
"typecheck": "pnpm run bundle-vendor && tsc --noEmit -p tsconfig.src.json",
|
|
"typecheck:ai-v7": "pnpm run bundle-vendor && tsc --noEmit -p tsconfig.ai-v7.json",
|
|
"pretest": "pnpm run bundle-vendor",
|
|
"test": "vitest",
|
|
"check-exports": "attw --pack ."
|
|
},
|
|
"dependencies": {
|
|
"@bugsnag/cuid": "^3.1.1",
|
|
"@electric-sql/client": "1.0.14",
|
|
"@google-cloud/precise-date": "^4.0.0",
|
|
"@jsonhero/path": "^1.0.21",
|
|
"@opentelemetry/api": "1.9.1",
|
|
"@opentelemetry/api-logs": "0.218.0",
|
|
"@opentelemetry/core": "2.7.1",
|
|
"@opentelemetry/exporter-logs-otlp-http": "0.218.0",
|
|
"@opentelemetry/exporter-metrics-otlp-http": "0.218.0",
|
|
"@opentelemetry/exporter-trace-otlp-http": "0.218.0",
|
|
"@opentelemetry/host-metrics": "^0.38.3",
|
|
"@opentelemetry/instrumentation": "0.218.0",
|
|
"@opentelemetry/resources": "2.7.1",
|
|
"@opentelemetry/sdk-logs": "0.218.0",
|
|
"@opentelemetry/sdk-metrics": "2.7.1",
|
|
"@opentelemetry/sdk-trace-base": "2.7.1",
|
|
"@opentelemetry/sdk-trace-node": "2.7.1",
|
|
"@opentelemetry/semantic-conventions": "1.41.1",
|
|
"@s2-dev/streamstore": "0.22.10",
|
|
"dequal": "^2.0.3",
|
|
"eventsource": "^3.0.5",
|
|
"eventsource-parser": "^3.0.0",
|
|
"execa": "^8.0.1",
|
|
"humanize-duration": "^3.27.3",
|
|
"jose": "^5.4.0",
|
|
"nanoid": "3.3.8",
|
|
"prom-client": "^15.1.0",
|
|
"socket.io": "4.7.4",
|
|
"socket.io-client": "4.7.5",
|
|
"std-env": "^3.8.1",
|
|
"tinyexec": "^0.3.2",
|
|
"uncrypto": "^0.1.3",
|
|
"zod": "3.25.76",
|
|
"zod-error": "1.5.0",
|
|
"zod-validation-error": "^1.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@ai-sdk/provider-utils": "^1.0.22",
|
|
"@arethetypeswrong/cli": "^0.15.4",
|
|
"@epic-web/test-server": "^0.1.0",
|
|
"@trigger.dev/database": "workspace:*",
|
|
"@types/humanize-duration": "^3.27.1",
|
|
"@types/lodash.get": "^4.4.9",
|
|
"@types/readable-stream": "^4.0.14",
|
|
"ai": "^6.0.0",
|
|
"ai-v7": "npm:ai@7.0.0-canary.159",
|
|
"defu": "^6.1.4",
|
|
"esbuild": "^0.23.0",
|
|
"rimraf": "^6.0.1",
|
|
"superjson": "^2.2.1",
|
|
"ts-essentials": "10.0.1",
|
|
"tshy": "^3.0.2",
|
|
"tsx": "4.17.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.20.0"
|
|
},
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/index.ts",
|
|
"types": "./dist/esm/index.d.ts",
|
|
"default": "./dist/esm/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/index.d.ts",
|
|
"default": "./dist/commonjs/index.js"
|
|
}
|
|
},
|
|
"./logger": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/logger.ts",
|
|
"types": "./dist/esm/logger.d.ts",
|
|
"default": "./dist/esm/logger.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/logger.d.ts",
|
|
"default": "./dist/commonjs/logger.js"
|
|
}
|
|
},
|
|
"./utils": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/utils.ts",
|
|
"types": "./dist/esm/utils.d.ts",
|
|
"default": "./dist/esm/utils.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/utils.d.ts",
|
|
"default": "./dist/commonjs/utils.js"
|
|
}
|
|
},
|
|
"./schemas": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/schemas/index.ts",
|
|
"types": "./dist/esm/schemas/index.d.ts",
|
|
"default": "./dist/esm/schemas/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/schemas/index.d.ts",
|
|
"default": "./dist/commonjs/schemas/index.js"
|
|
}
|
|
},
|
|
"./types": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/types.ts",
|
|
"types": "./dist/esm/types.d.ts",
|
|
"default": "./dist/esm/types.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/types.d.ts",
|
|
"default": "./dist/commonjs/types.js"
|
|
}
|
|
},
|
|
"./v3": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/index.ts",
|
|
"types": "./dist/esm/v3/index.d.ts",
|
|
"default": "./dist/esm/v3/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/index.d.ts",
|
|
"default": "./dist/commonjs/v3/index.js"
|
|
}
|
|
},
|
|
"./v3/tracer": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/tracer.ts",
|
|
"types": "./dist/esm/v3/tracer.d.ts",
|
|
"default": "./dist/esm/v3/tracer.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/tracer.d.ts",
|
|
"default": "./dist/commonjs/v3/tracer.js"
|
|
}
|
|
},
|
|
"./v3/build": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/build/index.ts",
|
|
"types": "./dist/esm/v3/build/index.d.ts",
|
|
"default": "./dist/esm/v3/build/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/build/index.d.ts",
|
|
"default": "./dist/commonjs/v3/build/index.js"
|
|
}
|
|
},
|
|
"./v3/apps": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/apps/index.ts",
|
|
"types": "./dist/esm/v3/apps/index.d.ts",
|
|
"default": "./dist/esm/v3/apps/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/apps/index.d.ts",
|
|
"default": "./dist/commonjs/v3/apps/index.js"
|
|
}
|
|
},
|
|
"./v3/auth/environment": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/auth/environment.ts",
|
|
"types": "./dist/esm/v3/auth/environment.d.ts",
|
|
"default": "./dist/esm/v3/auth/environment.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/auth/environment.d.ts",
|
|
"default": "./dist/commonjs/v3/auth/environment.js"
|
|
}
|
|
},
|
|
"./v3/jwt": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/jwt.ts",
|
|
"types": "./dist/esm/v3/jwt.d.ts",
|
|
"default": "./dist/esm/v3/jwt.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/jwt.d.ts",
|
|
"default": "./dist/commonjs/v3/jwt.js"
|
|
}
|
|
},
|
|
"./v3/errors": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/errors.ts",
|
|
"types": "./dist/esm/v3/errors.d.ts",
|
|
"default": "./dist/esm/v3/errors.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/errors.d.ts",
|
|
"default": "./dist/commonjs/v3/errors.js"
|
|
}
|
|
},
|
|
"./v3/logger-api": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/logger-api.ts",
|
|
"types": "./dist/esm/v3/logger-api.d.ts",
|
|
"default": "./dist/esm/v3/logger-api.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/logger-api.d.ts",
|
|
"default": "./dist/commonjs/v3/logger-api.js"
|
|
}
|
|
},
|
|
"./v3/otel": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/otel/index.ts",
|
|
"types": "./dist/esm/v3/otel/index.d.ts",
|
|
"default": "./dist/esm/v3/otel/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/otel/index.d.ts",
|
|
"default": "./dist/commonjs/v3/otel/index.js"
|
|
}
|
|
},
|
|
"./v3/semanticInternalAttributes": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/semanticInternalAttributes.ts",
|
|
"types": "./dist/esm/v3/semanticInternalAttributes.d.ts",
|
|
"default": "./dist/esm/v3/semanticInternalAttributes.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/semanticInternalAttributes.d.ts",
|
|
"default": "./dist/commonjs/v3/semanticInternalAttributes.js"
|
|
}
|
|
},
|
|
"./v3/utils/durations": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/utils/durations.ts",
|
|
"types": "./dist/esm/v3/utils/durations.d.ts",
|
|
"default": "./dist/esm/v3/utils/durations.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/utils/durations.d.ts",
|
|
"default": "./dist/commonjs/v3/utils/durations.js"
|
|
}
|
|
},
|
|
"./v3/utils/flattenAttributes": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/utils/flattenAttributes.ts",
|
|
"types": "./dist/esm/v3/utils/flattenAttributes.d.ts",
|
|
"default": "./dist/esm/v3/utils/flattenAttributes.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/utils/flattenAttributes.d.ts",
|
|
"default": "./dist/commonjs/v3/utils/flattenAttributes.js"
|
|
}
|
|
},
|
|
"./v3/utils/gitBranch": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/utils/gitBranch.ts",
|
|
"types": "./dist/esm/v3/utils/gitBranch.d.ts",
|
|
"default": "./dist/esm/v3/utils/gitBranch.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/utils/gitBranch.d.ts",
|
|
"default": "./dist/commonjs/v3/utils/gitBranch.js"
|
|
}
|
|
},
|
|
"./v3/utils/ioSerialization": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/utils/ioSerialization.ts",
|
|
"types": "./dist/esm/v3/utils/ioSerialization.d.ts",
|
|
"default": "./dist/esm/v3/utils/ioSerialization.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/utils/ioSerialization.d.ts",
|
|
"default": "./dist/commonjs/v3/utils/ioSerialization.js"
|
|
}
|
|
},
|
|
"./v3/utils/omit": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/utils/omit.ts",
|
|
"types": "./dist/esm/v3/utils/omit.d.ts",
|
|
"default": "./dist/esm/v3/utils/omit.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/utils/omit.d.ts",
|
|
"default": "./dist/commonjs/v3/utils/omit.js"
|
|
}
|
|
},
|
|
"./v3/utils/retries": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/utils/retries.ts",
|
|
"types": "./dist/esm/v3/utils/retries.d.ts",
|
|
"default": "./dist/esm/v3/utils/retries.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/utils/retries.d.ts",
|
|
"default": "./dist/commonjs/v3/utils/retries.js"
|
|
}
|
|
},
|
|
"./v3/utils/structuredLogger": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/utils/structuredLogger.ts",
|
|
"types": "./dist/esm/v3/utils/structuredLogger.d.ts",
|
|
"default": "./dist/esm/v3/utils/structuredLogger.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/utils/structuredLogger.d.ts",
|
|
"default": "./dist/commonjs/v3/utils/structuredLogger.js"
|
|
}
|
|
},
|
|
"./v3/test": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/test/index.ts",
|
|
"types": "./dist/esm/v3/test/index.d.ts",
|
|
"default": "./dist/esm/v3/test/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/test/index.d.ts",
|
|
"default": "./dist/commonjs/v3/test/index.js"
|
|
}
|
|
},
|
|
"./v3/zodfetch": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/zodfetch.ts",
|
|
"types": "./dist/esm/v3/zodfetch.d.ts",
|
|
"default": "./dist/esm/v3/zodfetch.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/zodfetch.d.ts",
|
|
"default": "./dist/commonjs/v3/zodfetch.js"
|
|
}
|
|
},
|
|
"./v3/zodMessageHandler": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/zodMessageHandler.ts",
|
|
"types": "./dist/esm/v3/zodMessageHandler.d.ts",
|
|
"default": "./dist/esm/v3/zodMessageHandler.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/zodMessageHandler.d.ts",
|
|
"default": "./dist/commonjs/v3/zodMessageHandler.js"
|
|
}
|
|
},
|
|
"./v3/zodNamespace": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/zodNamespace.ts",
|
|
"types": "./dist/esm/v3/zodNamespace.d.ts",
|
|
"default": "./dist/esm/v3/zodNamespace.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/zodNamespace.d.ts",
|
|
"default": "./dist/commonjs/v3/zodNamespace.js"
|
|
}
|
|
},
|
|
"./v3/zodSocket": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/zodSocket.ts",
|
|
"types": "./dist/esm/v3/zodSocket.d.ts",
|
|
"default": "./dist/esm/v3/zodSocket.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/zodSocket.d.ts",
|
|
"default": "./dist/commonjs/v3/zodSocket.js"
|
|
}
|
|
},
|
|
"./v3/zodIpc": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/zodIpc.ts",
|
|
"types": "./dist/esm/v3/zodIpc.d.ts",
|
|
"default": "./dist/esm/v3/zodIpc.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/zodIpc.d.ts",
|
|
"default": "./dist/commonjs/v3/zodIpc.js"
|
|
}
|
|
},
|
|
"./v3/utils/timers": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/utils/timers.ts",
|
|
"types": "./dist/esm/v3/utils/timers.d.ts",
|
|
"default": "./dist/esm/v3/utils/timers.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/utils/timers.d.ts",
|
|
"default": "./dist/commonjs/v3/utils/timers.js"
|
|
}
|
|
},
|
|
"./v3/workers": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/workers/index.ts",
|
|
"types": "./dist/esm/v3/workers/index.d.ts",
|
|
"default": "./dist/esm/v3/workers/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/workers/index.d.ts",
|
|
"default": "./dist/commonjs/v3/workers/index.js"
|
|
}
|
|
},
|
|
"./v3/schemas": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/schemas/index.ts",
|
|
"types": "./dist/esm/v3/schemas/index.d.ts",
|
|
"default": "./dist/esm/v3/schemas/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/schemas/index.d.ts",
|
|
"default": "./dist/commonjs/v3/schemas/index.js"
|
|
}
|
|
},
|
|
"./v3/runEngineWorker": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/runEngineWorker/index.ts",
|
|
"types": "./dist/esm/v3/runEngineWorker/index.d.ts",
|
|
"default": "./dist/esm/v3/runEngineWorker/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/runEngineWorker/index.d.ts",
|
|
"default": "./dist/commonjs/v3/runEngineWorker/index.js"
|
|
}
|
|
},
|
|
"./v3/machines": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/machines/index.ts",
|
|
"types": "./dist/esm/v3/machines/index.d.ts",
|
|
"default": "./dist/esm/v3/machines/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/machines/index.d.ts",
|
|
"default": "./dist/commonjs/v3/machines/index.js"
|
|
}
|
|
},
|
|
"./v3/serverOnly": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/serverOnly/index.ts",
|
|
"types": "./dist/esm/v3/serverOnly/index.d.ts",
|
|
"default": "./dist/esm/v3/serverOnly/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/serverOnly/index.d.ts",
|
|
"default": "./dist/commonjs/v3/serverOnly/index.js"
|
|
}
|
|
},
|
|
"./v3/isomorphic": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/isomorphic/index.ts",
|
|
"types": "./dist/esm/v3/isomorphic/index.d.ts",
|
|
"default": "./dist/esm/v3/isomorphic/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/isomorphic/index.d.ts",
|
|
"default": "./dist/commonjs/v3/isomorphic/index.js"
|
|
}
|
|
},
|
|
"./v3/sdk-scope-storage": {
|
|
"import": {
|
|
"@triggerdotdev/source": "./src/v3/sdkScope/storage-node.ts",
|
|
"types": "./dist/esm/v3/sdkScope/storage-node.d.ts",
|
|
"default": "./dist/esm/v3/sdkScope/storage-node.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/commonjs/v3/sdkScope/storage-node.d.ts",
|
|
"default": "./dist/commonjs/v3/sdkScope/storage-node.js"
|
|
}
|
|
}
|
|
},
|
|
"type": "module",
|
|
"main": "./dist/commonjs/index.js",
|
|
"types": "./dist/commonjs/index.d.ts",
|
|
"module": "./dist/esm/index.js"
|
|
}
|