trigger.dev 0.0.0-prerelease-20240930020332 → 0.0.0-realtime-20240930190059
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/esm/apiClient.d.ts +25 -25
- package/dist/esm/build/buildWorker.d.ts +8 -8
- package/dist/esm/commands/dev.d.ts +2 -2
- package/dist/esm/commands/login.d.ts +1 -1
- package/dist/esm/dev/backgroundWorker.d.ts +1 -1
- package/dist/esm/executions/taskRunProcess.d.ts +12 -12
- package/dist/esm/indexing/indexWorkerManifest.d.ts +4 -4
- package/dist/esm/version.js +1 -1
- package/package.json +3 -3
package/dist/esm/apiClient.d.ts
CHANGED
|
@@ -23,36 +23,45 @@ export declare class CliApiClient {
|
|
|
23
23
|
}>>;
|
|
24
24
|
getProject(projectRef: string): Promise<ApiResult<{
|
|
25
25
|
id: string;
|
|
26
|
-
|
|
26
|
+
externalRef: string;
|
|
27
27
|
name: string;
|
|
28
28
|
slug: string;
|
|
29
|
+
createdAt: Date;
|
|
29
30
|
organization: {
|
|
30
31
|
id: string;
|
|
31
|
-
createdAt: Date;
|
|
32
32
|
slug: string;
|
|
33
|
+
createdAt: Date;
|
|
33
34
|
title: string;
|
|
34
35
|
};
|
|
35
|
-
externalRef: string;
|
|
36
36
|
}>>;
|
|
37
37
|
getProjects(): Promise<ApiResult<{
|
|
38
38
|
id: string;
|
|
39
|
-
|
|
39
|
+
externalRef: string;
|
|
40
40
|
name: string;
|
|
41
41
|
slug: string;
|
|
42
|
+
createdAt: Date;
|
|
42
43
|
organization: {
|
|
43
44
|
id: string;
|
|
44
|
-
createdAt: Date;
|
|
45
45
|
slug: string;
|
|
46
|
+
createdAt: Date;
|
|
46
47
|
title: string;
|
|
47
48
|
};
|
|
48
|
-
externalRef: string;
|
|
49
49
|
}[]>>;
|
|
50
50
|
createBackgroundWorker(projectRef: string, body: CreateBackgroundWorkerRequestBody): Promise<ApiResult<{
|
|
51
51
|
id: string;
|
|
52
|
-
version: string;
|
|
53
52
|
contentHash: string;
|
|
53
|
+
version: string;
|
|
54
54
|
}>>;
|
|
55
55
|
createTaskRunAttempt(runFriendlyId: string): Promise<ApiResult<{
|
|
56
|
+
organization: {
|
|
57
|
+
id: string;
|
|
58
|
+
name: string;
|
|
59
|
+
slug: string;
|
|
60
|
+
};
|
|
61
|
+
queue: {
|
|
62
|
+
id: string;
|
|
63
|
+
name: string;
|
|
64
|
+
};
|
|
56
65
|
task: {
|
|
57
66
|
id: string;
|
|
58
67
|
filePath: string;
|
|
@@ -68,35 +77,26 @@ export declare class CliApiClient {
|
|
|
68
77
|
};
|
|
69
78
|
run: {
|
|
70
79
|
id: string;
|
|
71
|
-
|
|
80
|
+
createdAt: Date;
|
|
72
81
|
payload: string;
|
|
73
82
|
payloadType: string;
|
|
74
83
|
tags: string[];
|
|
75
84
|
isTest: boolean;
|
|
76
|
-
|
|
77
|
-
durationMs: number;
|
|
85
|
+
startedAt: Date;
|
|
78
86
|
costInCents: number;
|
|
79
87
|
baseCostInCents: number;
|
|
88
|
+
durationMs: number;
|
|
80
89
|
context?: any;
|
|
81
90
|
idempotencyKey?: string | undefined;
|
|
82
91
|
maxAttempts?: number | undefined;
|
|
83
92
|
version?: string | undefined;
|
|
84
93
|
metadata?: Record<string, import("@trigger.dev/core/schemas").DeserializedJson> | undefined;
|
|
85
94
|
};
|
|
86
|
-
queue: {
|
|
87
|
-
id: string;
|
|
88
|
-
name: string;
|
|
89
|
-
};
|
|
90
95
|
environment: {
|
|
91
96
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
92
97
|
id: string;
|
|
93
98
|
slug: string;
|
|
94
99
|
};
|
|
95
|
-
organization: {
|
|
96
|
-
id: string;
|
|
97
|
-
name: string;
|
|
98
|
-
slug: string;
|
|
99
|
-
};
|
|
100
100
|
project: {
|
|
101
101
|
id: string;
|
|
102
102
|
name: string;
|
|
@@ -130,8 +130,8 @@ export declare class CliApiClient {
|
|
|
130
130
|
}>>;
|
|
131
131
|
initializeDeployment(body: InitializeDeploymentRequestBody): Promise<ApiResult<{
|
|
132
132
|
id: string;
|
|
133
|
-
version: string;
|
|
134
133
|
contentHash: string;
|
|
134
|
+
version: string;
|
|
135
135
|
shortCode: string;
|
|
136
136
|
imageTag: string;
|
|
137
137
|
externalBuildData?: {
|
|
@@ -143,8 +143,8 @@ export declare class CliApiClient {
|
|
|
143
143
|
}>>;
|
|
144
144
|
createDeploymentBackgroundWorker(deploymentId: string, body: CreateBackgroundWorkerRequestBody): Promise<ApiResult<{
|
|
145
145
|
id: string;
|
|
146
|
-
version: string;
|
|
147
146
|
contentHash: string;
|
|
147
|
+
version: string;
|
|
148
148
|
}>>;
|
|
149
149
|
failDeployment(id: string, body: FailDeploymentRequestBody): Promise<ApiResult<{
|
|
150
150
|
id: string;
|
|
@@ -157,10 +157,10 @@ export declare class CliApiClient {
|
|
|
157
157
|
contentHash: string;
|
|
158
158
|
}>>;
|
|
159
159
|
getDeployment(deploymentId: string): Promise<ApiResult<{
|
|
160
|
-
status: "
|
|
160
|
+
status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
|
|
161
161
|
id: string;
|
|
162
|
-
version: string;
|
|
163
162
|
contentHash: string;
|
|
163
|
+
version: string;
|
|
164
164
|
shortCode: string;
|
|
165
165
|
imageReference?: string | null | undefined;
|
|
166
166
|
errorData?: {
|
|
@@ -171,13 +171,13 @@ export declare class CliApiClient {
|
|
|
171
171
|
} | null | undefined;
|
|
172
172
|
worker?: {
|
|
173
173
|
id: string;
|
|
174
|
-
version: string;
|
|
175
174
|
tasks: {
|
|
176
175
|
id: string;
|
|
176
|
+
slug: string;
|
|
177
177
|
filePath: string;
|
|
178
178
|
exportName: string;
|
|
179
|
-
slug: string;
|
|
180
179
|
}[];
|
|
180
|
+
version: string;
|
|
181
181
|
} | undefined;
|
|
182
182
|
}>>;
|
|
183
183
|
}
|
|
@@ -16,13 +16,11 @@ export type BuildWorkerOptions = {
|
|
|
16
16
|
forcedExternals?: string[];
|
|
17
17
|
};
|
|
18
18
|
export declare function buildWorker(options: BuildWorkerOptions): Promise<{
|
|
19
|
+
packageVersion: string;
|
|
20
|
+
contentHash: string;
|
|
21
|
+
cliPackageVersion: string;
|
|
19
22
|
runtime: "node" | "bun";
|
|
20
23
|
environment: string;
|
|
21
|
-
contentHash: string;
|
|
22
|
-
build: {
|
|
23
|
-
env?: Record<string, string> | undefined;
|
|
24
|
-
commands?: string[] | undefined;
|
|
25
|
-
};
|
|
26
24
|
deploy: {
|
|
27
25
|
env?: Record<string, string> | undefined;
|
|
28
26
|
sync?: {
|
|
@@ -30,8 +28,6 @@ export declare function buildWorker(options: BuildWorkerOptions): Promise<{
|
|
|
30
28
|
} | undefined;
|
|
31
29
|
};
|
|
32
30
|
target: "dev" | "deploy";
|
|
33
|
-
packageVersion: string;
|
|
34
|
-
cliPackageVersion: string;
|
|
35
31
|
config: {
|
|
36
32
|
project: string;
|
|
37
33
|
dirs: string[];
|
|
@@ -48,12 +44,16 @@ export declare function buildWorker(options: BuildWorkerOptions): Promise<{
|
|
|
48
44
|
runWorkerEntryPoint: string;
|
|
49
45
|
indexWorkerEntryPoint: string;
|
|
50
46
|
configPath: string;
|
|
47
|
+
build: {
|
|
48
|
+
env?: Record<string, string> | undefined;
|
|
49
|
+
commands?: string[] | undefined;
|
|
50
|
+
};
|
|
51
51
|
runControllerEntryPoint?: string | undefined;
|
|
52
52
|
indexControllerEntryPoint?: string | undefined;
|
|
53
53
|
loaderEntryPoint?: string | undefined;
|
|
54
54
|
externals?: {
|
|
55
|
-
version: string;
|
|
56
55
|
name: string;
|
|
56
|
+
version: string;
|
|
57
57
|
}[] | undefined;
|
|
58
58
|
customConditions?: string[] | undefined;
|
|
59
59
|
image?: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
declare const DevCommandOptions: z.ZodObject<{
|
|
4
|
-
logLevel: z.ZodDefault<z.ZodEnum<["debug", "info", "log", "warn", "error", "none"]>>;
|
|
5
4
|
apiUrl: z.ZodOptional<z.ZodString>;
|
|
5
|
+
logLevel: z.ZodDefault<z.ZodEnum<["debug", "info", "log", "warn", "error", "none"]>>;
|
|
6
6
|
skipTelemetry: z.ZodDefault<z.ZodBoolean>;
|
|
7
7
|
profile: z.ZodDefault<z.ZodString>;
|
|
8
8
|
debugOtel: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -21,8 +21,8 @@ declare const DevCommandOptions: z.ZodObject<{
|
|
|
21
21
|
projectRef?: string | undefined;
|
|
22
22
|
envFile?: string | undefined;
|
|
23
23
|
}, {
|
|
24
|
-
logLevel?: "error" | "none" | "warn" | "info" | "debug" | "log" | undefined;
|
|
25
24
|
apiUrl?: string | undefined;
|
|
25
|
+
logLevel?: "error" | "none" | "warn" | "info" | "debug" | "log" | undefined;
|
|
26
26
|
skipTelemetry?: boolean | undefined;
|
|
27
27
|
profile?: string | undefined;
|
|
28
28
|
debugOtel?: boolean | undefined;
|
|
@@ -7,8 +7,8 @@ export declare const LoginCommandOptions: z.ZodObject<{
|
|
|
7
7
|
profile: z.ZodDefault<z.ZodString>;
|
|
8
8
|
apiUrl: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
logLevel: "error" | "none" | "warn" | "info" | "debug" | "log";
|
|
11
10
|
apiUrl: string;
|
|
11
|
+
logLevel: "error" | "none" | "warn" | "info" | "debug" | "log";
|
|
12
12
|
skipTelemetry: boolean;
|
|
13
13
|
profile: string;
|
|
14
14
|
}, {
|
|
@@ -48,8 +48,8 @@ export declare class BackgroundWorkerCoordinator {
|
|
|
48
48
|
close(): void;
|
|
49
49
|
executeTaskRun(id: string, payload: TaskRunExecutionPayload, messageId: string): Promise<{
|
|
50
50
|
id: string;
|
|
51
|
-
ok: true;
|
|
52
51
|
outputType: string;
|
|
52
|
+
ok: true;
|
|
53
53
|
output?: string | undefined;
|
|
54
54
|
usage?: {
|
|
55
55
|
durationMs: number;
|
|
@@ -43,6 +43,15 @@ export declare class TaskRunProcess {
|
|
|
43
43
|
get isTest(): boolean;
|
|
44
44
|
get payload(): {
|
|
45
45
|
execution: {
|
|
46
|
+
organization: {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
slug: string;
|
|
50
|
+
};
|
|
51
|
+
queue: {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
46
55
|
task: {
|
|
47
56
|
id: string;
|
|
48
57
|
filePath: string;
|
|
@@ -58,35 +67,26 @@ export declare class TaskRunProcess {
|
|
|
58
67
|
};
|
|
59
68
|
run: {
|
|
60
69
|
id: string;
|
|
61
|
-
|
|
70
|
+
createdAt: Date;
|
|
62
71
|
payload: string;
|
|
63
72
|
payloadType: string;
|
|
64
73
|
tags: string[];
|
|
65
74
|
isTest: boolean;
|
|
66
|
-
|
|
67
|
-
durationMs: number;
|
|
75
|
+
startedAt: Date;
|
|
68
76
|
costInCents: number;
|
|
69
77
|
baseCostInCents: number;
|
|
78
|
+
durationMs: number;
|
|
70
79
|
context?: any;
|
|
71
80
|
idempotencyKey?: string | undefined;
|
|
72
81
|
maxAttempts?: number | undefined;
|
|
73
82
|
version?: string | undefined;
|
|
74
83
|
metadata?: Record<string, import("@trigger.dev/core/schemas").DeserializedJson> | undefined;
|
|
75
84
|
};
|
|
76
|
-
queue: {
|
|
77
|
-
id: string;
|
|
78
|
-
name: string;
|
|
79
|
-
};
|
|
80
85
|
environment: {
|
|
81
86
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
82
87
|
id: string;
|
|
83
88
|
slug: string;
|
|
84
89
|
};
|
|
85
|
-
organization: {
|
|
86
|
-
id: string;
|
|
87
|
-
name: string;
|
|
88
|
-
slug: string;
|
|
89
|
-
};
|
|
90
90
|
project: {
|
|
91
91
|
id: string;
|
|
92
92
|
name: string;
|
|
@@ -12,8 +12,6 @@ export type IndexWorkerManifestOptions = {
|
|
|
12
12
|
handleStderr?: (data: string) => void;
|
|
13
13
|
};
|
|
14
14
|
export declare function indexWorkerManifest({ runtime, indexWorkerPath, buildManifestPath, nodeOptions, env: $env, cwd, otelHookInclude, otelHookExclude, handleStderr, handleStdout, }: IndexWorkerManifestOptions): Promise<{
|
|
15
|
-
runtime: "node" | "bun";
|
|
16
|
-
configPath: string;
|
|
17
15
|
tasks: {
|
|
18
16
|
id: string;
|
|
19
17
|
filePath: string;
|
|
@@ -64,8 +62,8 @@ export declare function indexWorkerManifest({ runtime, indexWorkerPath, buildMan
|
|
|
64
62
|
randomize?: boolean | undefined;
|
|
65
63
|
} | undefined;
|
|
66
64
|
machine?: {
|
|
67
|
-
cpu?:
|
|
68
|
-
memory?:
|
|
65
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
66
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
69
67
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
70
68
|
} | undefined;
|
|
71
69
|
triggerSource?: string | undefined;
|
|
@@ -74,6 +72,8 @@ export declare function indexWorkerManifest({ runtime, indexWorkerPath, buildMan
|
|
|
74
72
|
timezone: string;
|
|
75
73
|
} | undefined;
|
|
76
74
|
}[];
|
|
75
|
+
runtime: "node" | "bun";
|
|
76
|
+
configPath: string;
|
|
77
77
|
workerEntryPoint: string;
|
|
78
78
|
controllerEntryPoint?: string | undefined;
|
|
79
79
|
loaderEntryPoint?: string | undefined;
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "0.0.0-
|
|
1
|
+
export const VERSION = "0.0.0-realtime-20240930190059";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trigger.dev",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-realtime-20240930190059",
|
|
4
4
|
"description": "A Command-Line Interface for Trigger.dev (v3) projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
"@opentelemetry/sdk-trace-base": "1.25.1",
|
|
81
81
|
"@opentelemetry/sdk-trace-node": "1.25.1",
|
|
82
82
|
"@opentelemetry/semantic-conventions": "1.25.1",
|
|
83
|
-
"@trigger.dev/build": "0.0.0-
|
|
84
|
-
"@trigger.dev/core": "0.0.0-
|
|
83
|
+
"@trigger.dev/build": "0.0.0-realtime-20240930190059",
|
|
84
|
+
"@trigger.dev/core": "0.0.0-realtime-20240930190059",
|
|
85
85
|
"c12": "^1.11.1",
|
|
86
86
|
"chalk": "^5.2.0",
|
|
87
87
|
"cli-table3": "^0.6.3",
|