trigger.dev 0.0.0-v3-trigger-dirs-20240422184026 → 0.0.0-v3-trigger-dirs-20240423091017
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.
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
// src/workers/dev/worker-facade.ts
|
|
2
2
|
import {
|
|
3
|
-
DurableClock,
|
|
4
|
-
TaskExecutor,
|
|
5
|
-
ZodSchemaParsedError,
|
|
6
3
|
clock,
|
|
7
4
|
getEnvVar,
|
|
8
5
|
logLevels,
|
|
9
6
|
taskCatalog
|
|
10
7
|
} from "@trigger.dev/core/v3";
|
|
8
|
+
import { TaskExecutor, DurableClock } from "@trigger.dev/core/v3/workers";
|
|
11
9
|
import {
|
|
12
10
|
ConsoleInterceptor,
|
|
13
|
-
DevRuntimeManager,
|
|
14
11
|
OtelTaskLogger,
|
|
15
12
|
TaskRunErrorCodes,
|
|
16
13
|
TriggerTracer,
|
|
17
|
-
ZodMessageHandler,
|
|
18
14
|
logger,
|
|
19
15
|
runtime,
|
|
20
16
|
workerToChildMessages
|
|
21
17
|
} from "@trigger.dev/core/v3";
|
|
18
|
+
import { DevRuntimeManager } from "@trigger.dev/core/v3/dev";
|
|
19
|
+
import {
|
|
20
|
+
ZodMessageHandler,
|
|
21
|
+
ZodSchemaParsedError
|
|
22
|
+
} from "@trigger.dev/core/v3/zodMessageHandler";
|
|
22
23
|
|
|
23
24
|
// package.json
|
|
24
|
-
var version = "0.0.0-v3-trigger-dirs-
|
|
25
|
+
var version = "0.0.0-v3-trigger-dirs-20240423091017";
|
|
25
26
|
|
|
26
27
|
// src/workers/dev/worker-facade.ts
|
|
27
28
|
__WORKER_SETUP__;
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
SemanticInternalAttributes,
|
|
6
6
|
StandardTaskCatalog,
|
|
7
7
|
TracingSDK,
|
|
8
|
-
ZodMessageSender,
|
|
9
8
|
childToWorkerMessages,
|
|
10
9
|
taskCatalog
|
|
11
10
|
} from "@trigger.dev/core/v3";
|
|
11
|
+
import { ZodMessageSender } from "@trigger.dev/core/v3/zodMessageHandler";
|
|
12
12
|
__SETUP_IMPORTED_PROJECT_CONFIG__;
|
|
13
13
|
var tracingSDK = new TracingSDK({
|
|
14
14
|
url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT ?? "http://0.0.0.0:4318",
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
CoordinatorToProdWorkerMessages,
|
|
4
4
|
PostStartCauses,
|
|
5
5
|
PreStopCauses,
|
|
6
|
-
ProdWorkerToCoordinatorMessages
|
|
7
|
-
ZodSocketConnection as ZodSocketConnection2
|
|
6
|
+
ProdWorkerToCoordinatorMessages
|
|
8
7
|
} from "@trigger.dev/core/v3";
|
|
8
|
+
import { ZodSocketConnection as ZodSocketConnection2 } from "@trigger.dev/core/v3/zodSocket";
|
|
9
9
|
|
|
10
10
|
// ../core-apps/src/http.ts
|
|
11
11
|
var HttpReply = class {
|
|
@@ -71,10 +71,10 @@ import {
|
|
|
71
71
|
clientWebsocketMessages,
|
|
72
72
|
PlatformToProviderMessages,
|
|
73
73
|
ProviderToPlatformMessages,
|
|
74
|
-
SharedQueueToClientMessages
|
|
75
|
-
ZodMessageSender,
|
|
76
|
-
ZodSocketConnection
|
|
74
|
+
SharedQueueToClientMessages
|
|
77
75
|
} from "@trigger.dev/core/v3";
|
|
76
|
+
import { ZodMessageSender } from "@trigger.dev/core/v3/zodMessageHandler";
|
|
77
|
+
import { ZodSocketConnection } from "@trigger.dev/core/v3/zodSocket";
|
|
78
78
|
var HTTP_SERVER_PORT = Number(process.env.HTTP_SERVER_PORT || getRandomPortNumber());
|
|
79
79
|
var MACHINE_NAME = process.env.MACHINE_NAME || "local";
|
|
80
80
|
var PLATFORM_HOST = process.env.PLATFORM_HOST || "127.0.0.1";
|
|
@@ -93,9 +93,9 @@ import {
|
|
|
93
93
|
ProdWorkerToChildMessages,
|
|
94
94
|
SemanticInternalAttributes,
|
|
95
95
|
TaskRunErrorCodes,
|
|
96
|
-
ZodIpcConnection,
|
|
97
96
|
correctErrorStackTrace
|
|
98
97
|
} from "@trigger.dev/core/v3";
|
|
98
|
+
import { ZodIpcConnection } from "@trigger.dev/core/v3/zodIpc";
|
|
99
99
|
import { Evt } from "evt";
|
|
100
100
|
import { fork } from "node:child_process";
|
|
101
101
|
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
// src/workers/prod/worker-facade.ts
|
|
2
2
|
import {
|
|
3
|
-
DurableClock,
|
|
4
3
|
ProdChildToWorkerMessages,
|
|
5
4
|
ProdWorkerToChildMessages,
|
|
6
|
-
TaskExecutor,
|
|
7
|
-
ZodIpcConnection,
|
|
8
|
-
ZodSchemaParsedError,
|
|
9
5
|
clock,
|
|
10
6
|
getEnvVar,
|
|
11
7
|
logLevels,
|
|
12
8
|
taskCatalog
|
|
13
9
|
} from "@trigger.dev/core/v3";
|
|
10
|
+
import { TaskExecutor, DurableClock } from "@trigger.dev/core/v3/workers";
|
|
11
|
+
import { ZodIpcConnection } from "@trigger.dev/core/v3/zodIpc";
|
|
12
|
+
import { ZodSchemaParsedError } from "@trigger.dev/core/v3/zodMessageHandler";
|
|
14
13
|
import "source-map-support/register.js";
|
|
15
14
|
import {
|
|
16
15
|
ConsoleInterceptor,
|
|
17
16
|
OtelTaskLogger,
|
|
18
|
-
ProdRuntimeManager,
|
|
19
17
|
TaskRunErrorCodes,
|
|
20
18
|
TriggerTracer,
|
|
21
19
|
logger,
|
|
22
20
|
runtime
|
|
23
21
|
} from "@trigger.dev/core/v3";
|
|
22
|
+
import { ProdRuntimeManager } from "@trigger.dev/core/v3/prod";
|
|
24
23
|
|
|
25
24
|
// package.json
|
|
26
|
-
var version = "0.0.0-v3-trigger-dirs-
|
|
25
|
+
var version = "0.0.0-v3-trigger-dirs-20240423091017";
|
|
27
26
|
|
|
28
27
|
// src/workers/prod/worker-facade.ts
|
|
29
28
|
__WORKER_SETUP__;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trigger.dev",
|
|
3
|
-
"version": "0.0.0-v3-trigger-dirs-
|
|
3
|
+
"version": "0.0.0-v3-trigger-dirs-20240423091017",
|
|
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",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"typescript": "^5.3.3",
|
|
54
54
|
"vitest": "^0.34.4",
|
|
55
55
|
"xdg-app-paths": "^8.3.0",
|
|
56
|
-
"@trigger.dev/
|
|
57
|
-
"@trigger.dev/
|
|
56
|
+
"@trigger.dev/tsconfig": "0.0.0",
|
|
57
|
+
"@trigger.dev/core-apps": "0.0.0-v3-trigger-dirs-20240423091017"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@clack/prompts": "^0.7.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@opentelemetry/sdk-trace-base": "^1.22.0",
|
|
72
72
|
"@opentelemetry/sdk-trace-node": "^1.22.0",
|
|
73
73
|
"@opentelemetry/semantic-conventions": "^1.22.0",
|
|
74
|
-
"@trigger.dev/core": "0.0.0-v3-trigger-dirs-
|
|
74
|
+
"@trigger.dev/core": "0.0.0-v3-trigger-dirs-20240423091017",
|
|
75
75
|
"@types/degit": "^2.8.3",
|
|
76
76
|
"chalk": "^5.2.0",
|
|
77
77
|
"chokidar": "^3.5.3",
|