@trigger.dev/core 0.0.0-v3-trigger-dirs-20240423091017 → 0.0.0-v3-trigger-dirs-20240423123825
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/{consoleInterceptor-pKvaiAI6.d.ts → catalog-e2OUDZEa.d.mts} +52 -84
- package/dist/{consoleInterceptor-tCKb2R0l.d.mts → catalog-ndN7py2b.d.ts} +52 -84
- package/dist/{messages-oFuHKbi4.d.mts → messages-AriaDDm0.d.mts} +48 -48
- package/dist/{messages-oFuHKbi4.d.ts → messages-AriaDDm0.d.ts} +48 -48
- package/dist/v3/dev/index.d.mts +1 -1
- package/dist/v3/dev/index.d.ts +1 -1
- package/dist/v3/index.d.mts +99 -313
- package/dist/v3/index.d.ts +99 -313
- package/dist/v3/index.js +2045 -2595
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +2065 -2603
- package/dist/v3/index.mjs.map +1 -1
- package/dist/v3/otel/index.d.mts +34 -6
- package/dist/v3/otel/index.d.ts +34 -6
- package/dist/v3/otel/index.js +62 -38
- package/dist/v3/otel/index.js.map +1 -1
- package/dist/v3/otel/index.mjs +62 -38
- package/dist/v3/otel/index.mjs.map +1 -1
- package/dist/v3/prod/index.d.mts +2 -2
- package/dist/v3/prod/index.d.ts +2 -2
- package/dist/v3/prod/index.js.map +1 -1
- package/dist/v3/prod/index.mjs.map +1 -1
- package/dist/v3/workers/index.d.mts +57 -12
- package/dist/v3/workers/index.d.ts +57 -12
- package/dist/v3/workers/index.js +728 -124
- package/dist/v3/workers/index.js.map +1 -1
- package/dist/v3/workers/index.mjs +718 -125
- package/dist/v3/workers/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/tracingSDK-XMTLzw35.d.mts +0 -35
- package/dist/tracingSDK-XMTLzw35.d.ts +0 -35
- package/dist/{manager-KhqZOMNe.d.mts → manager-M9GLDnhJ.d.mts} +18 -18
- package/dist/{manager-KhqZOMNe.d.ts → manager-M9GLDnhJ.d.ts} +18 -18
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { Context as Context$1, Span, SpanOptions, Tracer
|
|
2
|
-
import * as logsAPI from '@opentelemetry/api-logs';
|
|
1
|
+
import { Context as Context$1, Span, SpanOptions, Tracer } from '@opentelemetry/api';
|
|
3
2
|
import { Logger } from '@opentelemetry/api-logs';
|
|
4
|
-
import { R as RetryOptions, j as TaskMetadata,
|
|
3
|
+
import { R as RetryOptions, j as TaskMetadata, T as TaskFileMetadata, a as TaskMetadataWithFilePath } from './messages-AriaDDm0.mjs';
|
|
5
4
|
import { InstrumentationOption } from '@opentelemetry/instrumentation';
|
|
6
|
-
import { b as TaskRunContext } from './manager-KhqZOMNe.js';
|
|
7
5
|
import { z } from 'zod';
|
|
8
|
-
import {
|
|
6
|
+
import { b as TaskRunContext } from './manager-M9GLDnhJ.mjs';
|
|
9
7
|
|
|
10
8
|
type RequireKeys<T extends object, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K> extends infer O ? {
|
|
11
9
|
[P in keyof O]: O[P];
|
|
@@ -887,8 +885,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
887
885
|
triggerSource?: string | undefined;
|
|
888
886
|
}>, "many">;
|
|
889
887
|
}, "strip", z.ZodTypeAny, {
|
|
890
|
-
packageVersion: string;
|
|
891
888
|
contentHash: string;
|
|
889
|
+
packageVersion: string;
|
|
892
890
|
tasks: {
|
|
893
891
|
id: string;
|
|
894
892
|
filePath: string;
|
|
@@ -946,8 +944,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
946
944
|
}[];
|
|
947
945
|
cliPackageVersion?: string | undefined;
|
|
948
946
|
}, {
|
|
949
|
-
packageVersion: string;
|
|
950
947
|
contentHash: string;
|
|
948
|
+
packageVersion: string;
|
|
951
949
|
tasks: {
|
|
952
950
|
id: string;
|
|
953
951
|
filePath: string;
|
|
@@ -1009,8 +1007,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
1009
1007
|
version: "v1";
|
|
1010
1008
|
envId: string;
|
|
1011
1009
|
metadata: {
|
|
1012
|
-
packageVersion: string;
|
|
1013
1010
|
contentHash: string;
|
|
1011
|
+
packageVersion: string;
|
|
1014
1012
|
tasks: {
|
|
1015
1013
|
id: string;
|
|
1016
1014
|
filePath: string;
|
|
@@ -1073,8 +1071,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
1073
1071
|
}, {
|
|
1074
1072
|
envId: string;
|
|
1075
1073
|
metadata: {
|
|
1076
|
-
packageVersion: string;
|
|
1077
1074
|
contentHash: string;
|
|
1075
|
+
packageVersion: string;
|
|
1078
1076
|
tasks: {
|
|
1079
1077
|
id: string;
|
|
1080
1078
|
filePath: string;
|
|
@@ -1932,13 +1930,13 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
1932
1930
|
message: z.ZodString;
|
|
1933
1931
|
stackTrace: z.ZodString;
|
|
1934
1932
|
}, "strip", z.ZodTypeAny, {
|
|
1935
|
-
message: string;
|
|
1936
1933
|
type: "BUILT_IN_ERROR";
|
|
1934
|
+
message: string;
|
|
1937
1935
|
name: string;
|
|
1938
1936
|
stackTrace: string;
|
|
1939
1937
|
}, {
|
|
1940
|
-
message: string;
|
|
1941
1938
|
type: "BUILT_IN_ERROR";
|
|
1939
|
+
message: string;
|
|
1942
1940
|
name: string;
|
|
1943
1941
|
stackTrace: string;
|
|
1944
1942
|
}>, z.ZodObject<{
|
|
@@ -1988,8 +1986,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
1988
1986
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
1989
1987
|
}, "strip", z.ZodTypeAny, {
|
|
1990
1988
|
error: {
|
|
1991
|
-
message: string;
|
|
1992
1989
|
type: "BUILT_IN_ERROR";
|
|
1990
|
+
message: string;
|
|
1993
1991
|
name: string;
|
|
1994
1992
|
stackTrace: string;
|
|
1995
1993
|
} | {
|
|
@@ -2013,8 +2011,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
2013
2011
|
skippedRetrying?: boolean | undefined;
|
|
2014
2012
|
}, {
|
|
2015
2013
|
error: {
|
|
2016
|
-
message: string;
|
|
2017
2014
|
type: "BUILT_IN_ERROR";
|
|
2015
|
+
message: string;
|
|
2018
2016
|
name: string;
|
|
2019
2017
|
stackTrace: string;
|
|
2020
2018
|
} | {
|
|
@@ -2104,8 +2102,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
2104
2102
|
};
|
|
2105
2103
|
completion: {
|
|
2106
2104
|
error: {
|
|
2107
|
-
message: string;
|
|
2108
2105
|
type: "BUILT_IN_ERROR";
|
|
2106
|
+
message: string;
|
|
2109
2107
|
name: string;
|
|
2110
2108
|
stackTrace: string;
|
|
2111
2109
|
} | {
|
|
@@ -2193,8 +2191,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
2193
2191
|
};
|
|
2194
2192
|
completion: {
|
|
2195
2193
|
error: {
|
|
2196
|
-
message: string;
|
|
2197
2194
|
type: "BUILT_IN_ERROR";
|
|
2195
|
+
message: string;
|
|
2198
2196
|
name: string;
|
|
2199
2197
|
stackTrace: string;
|
|
2200
2198
|
} | {
|
|
@@ -2399,13 +2397,13 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
2399
2397
|
message: z.ZodString;
|
|
2400
2398
|
stackTrace: z.ZodString;
|
|
2401
2399
|
}, "strip", z.ZodTypeAny, {
|
|
2402
|
-
message: string;
|
|
2403
2400
|
type: "BUILT_IN_ERROR";
|
|
2401
|
+
message: string;
|
|
2404
2402
|
name: string;
|
|
2405
2403
|
stackTrace: string;
|
|
2406
2404
|
}, {
|
|
2407
|
-
message: string;
|
|
2408
2405
|
type: "BUILT_IN_ERROR";
|
|
2406
|
+
message: string;
|
|
2409
2407
|
name: string;
|
|
2410
2408
|
stackTrace: string;
|
|
2411
2409
|
}>, z.ZodObject<{
|
|
@@ -2455,8 +2453,8 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
2455
2453
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
2456
2454
|
}, "strip", z.ZodTypeAny, {
|
|
2457
2455
|
error: {
|
|
2458
|
-
message: string;
|
|
2459
2456
|
type: "BUILT_IN_ERROR";
|
|
2457
|
+
message: string;
|
|
2460
2458
|
name: string;
|
|
2461
2459
|
stackTrace: string;
|
|
2462
2460
|
} | {
|
|
@@ -2480,8 +2478,8 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
2480
2478
|
skippedRetrying?: boolean | undefined;
|
|
2481
2479
|
}, {
|
|
2482
2480
|
error: {
|
|
2483
|
-
message: string;
|
|
2484
2481
|
type: "BUILT_IN_ERROR";
|
|
2482
|
+
message: string;
|
|
2485
2483
|
name: string;
|
|
2486
2484
|
stackTrace: string;
|
|
2487
2485
|
} | {
|
|
@@ -2729,8 +2727,8 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
2729
2727
|
attemptId: string;
|
|
2730
2728
|
completions: ({
|
|
2731
2729
|
error: {
|
|
2732
|
-
message: string;
|
|
2733
2730
|
type: "BUILT_IN_ERROR";
|
|
2731
|
+
message: string;
|
|
2734
2732
|
name: string;
|
|
2735
2733
|
stackTrace: string;
|
|
2736
2734
|
} | {
|
|
@@ -2812,8 +2810,8 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
2812
2810
|
attemptId: string;
|
|
2813
2811
|
completions: ({
|
|
2814
2812
|
error: {
|
|
2815
|
-
message: string;
|
|
2816
2813
|
type: "BUILT_IN_ERROR";
|
|
2814
|
+
message: string;
|
|
2817
2815
|
name: string;
|
|
2818
2816
|
stackTrace: string;
|
|
2819
2817
|
} | {
|
|
@@ -2991,13 +2989,13 @@ declare const ClientToSharedQueueMessages: {
|
|
|
2991
2989
|
message: z.ZodString;
|
|
2992
2990
|
stackTrace: z.ZodString;
|
|
2993
2991
|
}, "strip", z.ZodTypeAny, {
|
|
2994
|
-
message: string;
|
|
2995
2992
|
type: "BUILT_IN_ERROR";
|
|
2993
|
+
message: string;
|
|
2996
2994
|
name: string;
|
|
2997
2995
|
stackTrace: string;
|
|
2998
2996
|
}, {
|
|
2999
|
-
message: string;
|
|
3000
2997
|
type: "BUILT_IN_ERROR";
|
|
2998
|
+
message: string;
|
|
3001
2999
|
name: string;
|
|
3002
3000
|
stackTrace: string;
|
|
3003
3001
|
}>, z.ZodObject<{
|
|
@@ -3047,8 +3045,8 @@ declare const ClientToSharedQueueMessages: {
|
|
|
3047
3045
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
3048
3046
|
}, "strip", z.ZodTypeAny, {
|
|
3049
3047
|
error: {
|
|
3050
|
-
message: string;
|
|
3051
3048
|
type: "BUILT_IN_ERROR";
|
|
3049
|
+
message: string;
|
|
3052
3050
|
name: string;
|
|
3053
3051
|
stackTrace: string;
|
|
3054
3052
|
} | {
|
|
@@ -3072,8 +3070,8 @@ declare const ClientToSharedQueueMessages: {
|
|
|
3072
3070
|
skippedRetrying?: boolean | undefined;
|
|
3073
3071
|
}, {
|
|
3074
3072
|
error: {
|
|
3075
|
-
message: string;
|
|
3076
3073
|
type: "BUILT_IN_ERROR";
|
|
3074
|
+
message: string;
|
|
3077
3075
|
name: string;
|
|
3078
3076
|
stackTrace: string;
|
|
3079
3077
|
} | {
|
|
@@ -3367,8 +3365,8 @@ declare const ClientToSharedQueueMessages: {
|
|
|
3367
3365
|
};
|
|
3368
3366
|
completion: {
|
|
3369
3367
|
error: {
|
|
3370
|
-
message: string;
|
|
3371
3368
|
type: "BUILT_IN_ERROR";
|
|
3369
|
+
message: string;
|
|
3372
3370
|
name: string;
|
|
3373
3371
|
stackTrace: string;
|
|
3374
3372
|
} | {
|
|
@@ -3448,8 +3446,8 @@ declare const ClientToSharedQueueMessages: {
|
|
|
3448
3446
|
};
|
|
3449
3447
|
completion: {
|
|
3450
3448
|
error: {
|
|
3451
|
-
message: string;
|
|
3452
3449
|
type: "BUILT_IN_ERROR";
|
|
3450
|
+
message: string;
|
|
3453
3451
|
name: string;
|
|
3454
3452
|
stackTrace: string;
|
|
3455
3453
|
} | {
|
|
@@ -3545,8 +3543,8 @@ declare const ClientToSharedQueueMessages: {
|
|
|
3545
3543
|
};
|
|
3546
3544
|
completion: {
|
|
3547
3545
|
error: {
|
|
3548
|
-
message: string;
|
|
3549
3546
|
type: "BUILT_IN_ERROR";
|
|
3547
|
+
message: string;
|
|
3550
3548
|
name: string;
|
|
3551
3549
|
stackTrace: string;
|
|
3552
3550
|
} | {
|
|
@@ -3634,8 +3632,8 @@ declare const ClientToSharedQueueMessages: {
|
|
|
3634
3632
|
};
|
|
3635
3633
|
completion: {
|
|
3636
3634
|
error: {
|
|
3637
|
-
message: string;
|
|
3638
3635
|
type: "BUILT_IN_ERROR";
|
|
3636
|
+
message: string;
|
|
3639
3637
|
name: string;
|
|
3640
3638
|
stackTrace: string;
|
|
3641
3639
|
} | {
|
|
@@ -4164,12 +4162,12 @@ declare const SharedQueueToClientMessages: {
|
|
|
4164
4162
|
type: "SCHEDULE_ATTEMPT";
|
|
4165
4163
|
id: string;
|
|
4166
4164
|
version: string;
|
|
4165
|
+
image: string;
|
|
4167
4166
|
machine: {
|
|
4168
4167
|
version: "v1";
|
|
4169
4168
|
cpu: 2 | 1 | 4 | 0.25 | 0.5;
|
|
4170
4169
|
memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
|
|
4171
4170
|
};
|
|
4172
|
-
image: string;
|
|
4173
4171
|
envId: string;
|
|
4174
4172
|
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
4175
4173
|
orgId: string;
|
|
@@ -4179,12 +4177,12 @@ declare const SharedQueueToClientMessages: {
|
|
|
4179
4177
|
type: "SCHEDULE_ATTEMPT";
|
|
4180
4178
|
id: string;
|
|
4181
4179
|
version: string;
|
|
4180
|
+
image: string;
|
|
4182
4181
|
machine: {
|
|
4183
4182
|
version?: "v1" | undefined;
|
|
4184
4183
|
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
4185
4184
|
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
4186
4185
|
};
|
|
4187
|
-
image: string;
|
|
4188
4186
|
envId: string;
|
|
4189
4187
|
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
4190
4188
|
orgId: string;
|
|
@@ -4254,12 +4252,12 @@ declare const SharedQueueToClientMessages: {
|
|
|
4254
4252
|
type: "SCHEDULE_ATTEMPT";
|
|
4255
4253
|
id: string;
|
|
4256
4254
|
version: string;
|
|
4255
|
+
image: string;
|
|
4257
4256
|
machine: {
|
|
4258
4257
|
version: "v1";
|
|
4259
4258
|
cpu: 2 | 1 | 4 | 0.25 | 0.5;
|
|
4260
4259
|
memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
|
|
4261
4260
|
};
|
|
4262
|
-
image: string;
|
|
4263
4261
|
envId: string;
|
|
4264
4262
|
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
4265
4263
|
orgId: string;
|
|
@@ -4331,12 +4329,12 @@ declare const SharedQueueToClientMessages: {
|
|
|
4331
4329
|
type: "SCHEDULE_ATTEMPT";
|
|
4332
4330
|
id: string;
|
|
4333
4331
|
version: string;
|
|
4332
|
+
image: string;
|
|
4334
4333
|
machine: {
|
|
4335
4334
|
version?: "v1" | undefined;
|
|
4336
4335
|
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
4337
4336
|
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
4338
4337
|
};
|
|
4339
|
-
image: string;
|
|
4340
4338
|
envId: string;
|
|
4341
4339
|
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
4342
4340
|
orgId: string;
|
|
@@ -4699,8 +4697,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
4699
4697
|
}>, "many">;
|
|
4700
4698
|
packageVersion: z.ZodString;
|
|
4701
4699
|
}, "strip", z.ZodTypeAny, {
|
|
4702
|
-
packageVersion: string;
|
|
4703
4700
|
version: "v1";
|
|
4701
|
+
packageVersion: string;
|
|
4704
4702
|
tasks: {
|
|
4705
4703
|
id: string;
|
|
4706
4704
|
filePath: string;
|
|
@@ -5159,13 +5157,13 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
5159
5157
|
message: z.ZodString;
|
|
5160
5158
|
stackTrace: z.ZodString;
|
|
5161
5159
|
}, "strip", z.ZodTypeAny, {
|
|
5162
|
-
message: string;
|
|
5163
5160
|
type: "BUILT_IN_ERROR";
|
|
5161
|
+
message: string;
|
|
5164
5162
|
name: string;
|
|
5165
5163
|
stackTrace: string;
|
|
5166
5164
|
}, {
|
|
5167
|
-
message: string;
|
|
5168
5165
|
type: "BUILT_IN_ERROR";
|
|
5166
|
+
message: string;
|
|
5169
5167
|
name: string;
|
|
5170
5168
|
stackTrace: string;
|
|
5171
5169
|
}>, z.ZodObject<{
|
|
@@ -5215,8 +5213,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
5215
5213
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
5216
5214
|
}, "strip", z.ZodTypeAny, {
|
|
5217
5215
|
error: {
|
|
5218
|
-
message: string;
|
|
5219
5216
|
type: "BUILT_IN_ERROR";
|
|
5217
|
+
message: string;
|
|
5220
5218
|
name: string;
|
|
5221
5219
|
stackTrace: string;
|
|
5222
5220
|
} | {
|
|
@@ -5240,8 +5238,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
5240
5238
|
skippedRetrying?: boolean | undefined;
|
|
5241
5239
|
}, {
|
|
5242
5240
|
error: {
|
|
5243
|
-
message: string;
|
|
5244
5241
|
type: "BUILT_IN_ERROR";
|
|
5242
|
+
message: string;
|
|
5245
5243
|
name: string;
|
|
5246
5244
|
stackTrace: string;
|
|
5247
5245
|
} | {
|
|
@@ -5321,8 +5319,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
5321
5319
|
};
|
|
5322
5320
|
completion: {
|
|
5323
5321
|
error: {
|
|
5324
|
-
message: string;
|
|
5325
5322
|
type: "BUILT_IN_ERROR";
|
|
5323
|
+
message: string;
|
|
5326
5324
|
name: string;
|
|
5327
5325
|
stackTrace: string;
|
|
5328
5326
|
} | {
|
|
@@ -5406,8 +5404,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
5406
5404
|
};
|
|
5407
5405
|
completion: {
|
|
5408
5406
|
error: {
|
|
5409
|
-
message: string;
|
|
5410
5407
|
type: "BUILT_IN_ERROR";
|
|
5408
|
+
message: string;
|
|
5411
5409
|
name: string;
|
|
5412
5410
|
stackTrace: string;
|
|
5413
5411
|
} | {
|
|
@@ -5585,13 +5583,13 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
5585
5583
|
message: z.ZodString;
|
|
5586
5584
|
stackTrace: z.ZodString;
|
|
5587
5585
|
}, "strip", z.ZodTypeAny, {
|
|
5588
|
-
message: string;
|
|
5589
5586
|
type: "BUILT_IN_ERROR";
|
|
5587
|
+
message: string;
|
|
5590
5588
|
name: string;
|
|
5591
5589
|
stackTrace: string;
|
|
5592
5590
|
}, {
|
|
5593
|
-
message: string;
|
|
5594
5591
|
type: "BUILT_IN_ERROR";
|
|
5592
|
+
message: string;
|
|
5595
5593
|
name: string;
|
|
5596
5594
|
stackTrace: string;
|
|
5597
5595
|
}>, z.ZodObject<{
|
|
@@ -5641,8 +5639,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
5641
5639
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
5642
5640
|
}, "strip", z.ZodTypeAny, {
|
|
5643
5641
|
error: {
|
|
5644
|
-
message: string;
|
|
5645
5642
|
type: "BUILT_IN_ERROR";
|
|
5643
|
+
message: string;
|
|
5646
5644
|
name: string;
|
|
5647
5645
|
stackTrace: string;
|
|
5648
5646
|
} | {
|
|
@@ -5666,8 +5664,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
5666
5664
|
skippedRetrying?: boolean | undefined;
|
|
5667
5665
|
}, {
|
|
5668
5666
|
error: {
|
|
5669
|
-
message: string;
|
|
5670
5667
|
type: "BUILT_IN_ERROR";
|
|
5668
|
+
message: string;
|
|
5671
5669
|
name: string;
|
|
5672
5670
|
stackTrace: string;
|
|
5673
5671
|
} | {
|
|
@@ -5913,8 +5911,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
5913
5911
|
attemptId: string;
|
|
5914
5912
|
completions: ({
|
|
5915
5913
|
error: {
|
|
5916
|
-
message: string;
|
|
5917
5914
|
type: "BUILT_IN_ERROR";
|
|
5915
|
+
message: string;
|
|
5918
5916
|
name: string;
|
|
5919
5917
|
stackTrace: string;
|
|
5920
5918
|
} | {
|
|
@@ -5994,8 +5992,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
5994
5992
|
attemptId: string;
|
|
5995
5993
|
completions: ({
|
|
5996
5994
|
error: {
|
|
5997
|
-
message: string;
|
|
5998
5995
|
type: "BUILT_IN_ERROR";
|
|
5996
|
+
message: string;
|
|
5999
5997
|
name: string;
|
|
6000
5998
|
stackTrace: string;
|
|
6001
5999
|
} | {
|
|
@@ -6635,43 +6633,13 @@ interface Clock {
|
|
|
6635
6633
|
reset(): void;
|
|
6636
6634
|
}
|
|
6637
6635
|
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
get isInsideTask(): boolean;
|
|
6646
|
-
get ctx(): TaskRunContext | undefined;
|
|
6647
|
-
get worker(): BackgroundWorkerProperties | undefined;
|
|
6648
|
-
get attributes(): Attributes;
|
|
6649
|
-
get workerAttributes(): Attributes;
|
|
6650
|
-
get contextAttributes(): Attributes;
|
|
6651
|
-
runWith<R extends (...args: any[]) => Promise<any>>(context: TaskContext, fn: R): Promise<ReturnType<R>>;
|
|
6652
|
-
}
|
|
6653
|
-
declare const taskContextManager: TaskContextManager;
|
|
6654
|
-
|
|
6655
|
-
declare class TaskContextSpanProcessor implements SpanProcessor {
|
|
6656
|
-
private _innerProcessor;
|
|
6657
|
-
constructor(innerProcessor: SpanProcessor);
|
|
6658
|
-
onStart(span: Span$1, parentContext: Context$1): void;
|
|
6659
|
-
onEnd(span: Span$1): void;
|
|
6660
|
-
shutdown(): Promise<void>;
|
|
6661
|
-
forceFlush(): Promise<void>;
|
|
6662
|
-
}
|
|
6663
|
-
|
|
6664
|
-
declare class ConsoleInterceptor {
|
|
6665
|
-
#private;
|
|
6666
|
-
private readonly logger;
|
|
6667
|
-
private readonly sendToStdIO;
|
|
6668
|
-
constructor(logger: logsAPI.Logger, sendToStdIO: boolean);
|
|
6669
|
-
intercept<T>(console: Console, callback: () => Promise<T>): Promise<T>;
|
|
6670
|
-
debug(...args: unknown[]): void;
|
|
6671
|
-
log(...args: unknown[]): void;
|
|
6672
|
-
info(...args: unknown[]): void;
|
|
6673
|
-
warn(...args: unknown[]): void;
|
|
6674
|
-
error(...args: unknown[]): void;
|
|
6636
|
+
interface TaskCatalog {
|
|
6637
|
+
registerTaskMetadata(task: TaskMetadataWithFunctions): void;
|
|
6638
|
+
updateTaskMetadata(id: string, task: Partial<TaskMetadataWithFunctions>): void;
|
|
6639
|
+
registerTaskFileMetadata(id: string, metadata: TaskFileMetadata): void;
|
|
6640
|
+
getAllTaskMetadata(): Array<TaskMetadataWithFilePath>;
|
|
6641
|
+
getTaskMetadata(id: string): TaskMetadataWithFilePath | undefined;
|
|
6642
|
+
getTask(id: string): TaskMetadataWithFunctions | undefined;
|
|
6675
6643
|
}
|
|
6676
6644
|
|
|
6677
|
-
export { type
|
|
6645
|
+
export { type Clock as C, type HandleErrorFnParams as H, type InitOutput as I, type LogLevel as L, type MiddlewareFnParams as M, OtelTaskLogger as O, type Prettify as P, type ResolvedConfig as R, SharedQueueToClientMessages as S, type TaskLogger as T, WaitReason as W, type ClockTime as a, type TaskCatalog as b, type TaskMetadataWithFunctions as c, TriggerTracer as d, PostStartCauses as e, PreStopCauses as f, Config as g, ProviderToPlatformMessages as h, PlatformToProviderMessages as i, CoordinatorToPlatformMessages as j, PlatformToCoordinatorMessages as k, ClientToSharedQueueMessages as l, ProdWorkerToCoordinatorMessages as m, CoordinatorToProdWorkerMessages as n, ProdWorkerSocketData as o, type RunFnParams as p, type InitFnParams as q, type Context as r, type SuccessFnParams as s, type HandleErrorModificationOptions as t, type HandleErrorResult as u, type HandleErrorArgs as v, type HandleErrorFunction as w, type RequireKeys as x, type ProjectConfig as y, logLevels as z };
|