trigger.dev 3.0.0-beta.3 → 3.0.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Containerfile.prod +17 -4
- package/dist/index.js +2008 -671
- package/dist/index.js.map +1 -1
- package/dist/templates/trigger.config.ts.template +2 -1
- package/dist/workers/dev/worker-facade.js +51 -54
- package/dist/workers/dev/worker-setup.js +8 -15
- package/dist/workers/prod/entry-point.js +177 -78
- package/dist/workers/prod/worker-facade.js +63 -55
- package/dist/workers/prod/worker-setup.js +5 -20
- package/package.json +9 -14
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// src/workers/prod/worker-setup.ts
|
|
2
2
|
import { Resource } from "@opentelemetry/resources";
|
|
3
|
+
import { SemanticInternalAttributes, taskCatalog } from "@trigger.dev/core/v3";
|
|
3
4
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "@trigger.dev/core/v3";
|
|
5
|
+
TracingSDK,
|
|
6
|
+
StandardTaskCatalog
|
|
7
|
+
} from "@trigger.dev/core/v3/workers";
|
|
7
8
|
__SETUP_IMPORTED_PROJECT_CONFIG__;
|
|
8
9
|
var tracingSDK = new TracingSDK({
|
|
9
10
|
url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT ?? "http://0.0.0.0:4318",
|
|
@@ -13,23 +14,7 @@ var tracingSDK = new TracingSDK({
|
|
|
13
14
|
instrumentations: setupImportedConfig?.instrumentations ?? [],
|
|
14
15
|
diagLogLevel: process.env.OTEL_LOG_LEVEL ?? "none"
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
-
process.send?.({
|
|
18
|
-
type: "EVENT",
|
|
19
|
-
message: {
|
|
20
|
-
type: "UNCAUGHT_EXCEPTION",
|
|
21
|
-
payload: {
|
|
22
|
-
error: {
|
|
23
|
-
name: error.name,
|
|
24
|
-
message: error.message,
|
|
25
|
-
stack: error.stack
|
|
26
|
-
},
|
|
27
|
-
origin
|
|
28
|
-
},
|
|
29
|
-
version: "v1"
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
});
|
|
17
|
+
taskCatalog.setGlobalTaskCatalog(new StandardTaskCatalog());
|
|
33
18
|
export {
|
|
34
19
|
tracingSDK
|
|
35
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trigger.dev",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.30",
|
|
4
4
|
"description": "A Command-Line Interface for Trigger.dev (v3) projects",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -32,11 +32,10 @@
|
|
|
32
32
|
"type": "module",
|
|
33
33
|
"exports": "./dist/index.js",
|
|
34
34
|
"bin": {
|
|
35
|
-
"
|
|
35
|
+
"triggerdev": "./dist/index.js"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/gradient-string": "^1.1.2",
|
|
39
|
-
"@types/jsonlines": "^0.1.5",
|
|
40
39
|
"@types/mock-fs": "^4.13.1",
|
|
41
40
|
"@types/node": "18",
|
|
42
41
|
"@types/object-hash": "^3.0.6",
|
|
@@ -44,8 +43,8 @@
|
|
|
44
43
|
"@types/semver": "^7.3.13",
|
|
45
44
|
"@types/ws": "^8.5.3",
|
|
46
45
|
"cpy-cli": "^5.0.0",
|
|
46
|
+
"nodemon": "^3.0.1",
|
|
47
47
|
"npm-run-all": "^4.1.5",
|
|
48
|
-
"npm-watch": "^0.11.0",
|
|
49
48
|
"open": "^10.0.3",
|
|
50
49
|
"p-retry": "^6.1.0",
|
|
51
50
|
"rimraf": "^3.0.2",
|
|
@@ -54,13 +53,11 @@
|
|
|
54
53
|
"typescript": "^5.3.3",
|
|
55
54
|
"vitest": "^0.34.4",
|
|
56
55
|
"xdg-app-paths": "^8.3.0",
|
|
57
|
-
"@trigger.dev/core-apps": "3.0.0-beta.
|
|
56
|
+
"@trigger.dev/core-apps": "3.0.0-beta.30",
|
|
58
57
|
"@trigger.dev/tsconfig": "0.0.0"
|
|
59
58
|
},
|
|
60
|
-
"watch": {
|
|
61
|
-
"build:prod-containerfile": "src/Containerfile.prod"
|
|
62
|
-
},
|
|
63
59
|
"dependencies": {
|
|
60
|
+
"@anatine/esbuild-decorators": "^0.2.19",
|
|
64
61
|
"@clack/prompts": "^0.7.0",
|
|
65
62
|
"@depot/cli": "0.0.1-cli.2.55.0",
|
|
66
63
|
"@opentelemetry/api": "^1.8.0",
|
|
@@ -75,7 +72,7 @@
|
|
|
75
72
|
"@opentelemetry/sdk-trace-base": "^1.22.0",
|
|
76
73
|
"@opentelemetry/sdk-trace-node": "^1.22.0",
|
|
77
74
|
"@opentelemetry/semantic-conventions": "^1.22.0",
|
|
78
|
-
"@trigger.dev/core": "
|
|
75
|
+
"@trigger.dev/core": "3.0.0-beta.30",
|
|
79
76
|
"@types/degit": "^2.8.3",
|
|
80
77
|
"chalk": "^5.2.0",
|
|
81
78
|
"chokidar": "^3.5.3",
|
|
@@ -92,12 +89,10 @@
|
|
|
92
89
|
"import-meta-resolve": "^4.0.0",
|
|
93
90
|
"ink": "^4.4.1",
|
|
94
91
|
"jsonc-parser": "^3.2.1",
|
|
95
|
-
"jsonlines": "^0.1.1",
|
|
96
92
|
"liquidjs": "^10.9.2",
|
|
97
93
|
"mock-fs": "^5.2.0",
|
|
98
94
|
"nanoid": "^4.0.2",
|
|
99
95
|
"node-fetch": "^3.3.0",
|
|
100
|
-
"npm-check-updates": "^16.12.2",
|
|
101
96
|
"object-hash": "^3.0.0",
|
|
102
97
|
"p-debounce": "^4.0.0",
|
|
103
98
|
"p-throttle": "^6.1.0",
|
|
@@ -109,7 +104,6 @@
|
|
|
109
104
|
"simple-git": "^3.19.0",
|
|
110
105
|
"socket.io-client": "^4.7.4",
|
|
111
106
|
"source-map-support": "^0.5.21",
|
|
112
|
-
"supports-color": "^9.4.0",
|
|
113
107
|
"terminal-link": "^3.0.0",
|
|
114
108
|
"tiny-invariant": "^1.2.0",
|
|
115
109
|
"tsconfig-paths": "^4.2.0",
|
|
@@ -117,7 +111,8 @@
|
|
|
117
111
|
"url": "^0.11.1",
|
|
118
112
|
"ws": "^8.12.0",
|
|
119
113
|
"zod": "3.22.3",
|
|
120
|
-
"zod-validation-error": "^1.5.0"
|
|
114
|
+
"zod-validation-error": "^1.5.0",
|
|
115
|
+
"typescript": "^5.4.0"
|
|
121
116
|
},
|
|
122
117
|
"engines": {
|
|
123
118
|
"node": ">=18.0.0"
|
|
@@ -131,7 +126,7 @@
|
|
|
131
126
|
"dev": "npm run clean && run-p dev:**",
|
|
132
127
|
"dev:main": "tsup --watch",
|
|
133
128
|
"dev:workers": "tsup --config tsup.workers.config.ts --watch",
|
|
134
|
-
"dev:
|
|
129
|
+
"dev:test": "nodemon -w src/Containerfile.prod -x npm run build:prod-containerfile",
|
|
135
130
|
"clean": "rimraf dist",
|
|
136
131
|
"start": "node dist/index.js",
|
|
137
132
|
"test": "vitest"
|