@trigger.dev/core 3.0.0-beta.2 → 3.0.0-beta.4
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/v3/index.d.mts +300 -236
- package/dist/v3/index.d.ts +300 -236
- package/dist/v3/index.js +133 -21
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +129 -22
- package/dist/v3/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/v3/index.mjs
CHANGED
|
@@ -434,7 +434,7 @@ var QueueOptions = z.object({
|
|
|
434
434
|
/** An optional property that specifies the maximum number of concurrent run executions.
|
|
435
435
|
*
|
|
436
436
|
* If this property is omitted, the task can potentially use up the full concurrency of an environment. */
|
|
437
|
-
concurrencyLimit: z.number().int().min(
|
|
437
|
+
concurrencyLimit: z.number().int().min(0).max(1e3).optional(),
|
|
438
438
|
/** @deprecated This feature is coming soon */
|
|
439
439
|
rateLimit: RateLimitOptions.optional()
|
|
440
440
|
});
|
|
@@ -461,6 +461,13 @@ var UncaughtExceptionMessage = z.object({
|
|
|
461
461
|
"unhandledRejection"
|
|
462
462
|
])
|
|
463
463
|
});
|
|
464
|
+
var TaskMetadataFailedToParseData = z.object({
|
|
465
|
+
version: z.literal("v1").default("v1"),
|
|
466
|
+
tasks: z.unknown(),
|
|
467
|
+
zodIssues: z.custom((v) => {
|
|
468
|
+
return Array.isArray(v) && v.every((issue) => typeof issue === "object" && "message" in issue);
|
|
469
|
+
})
|
|
470
|
+
});
|
|
464
471
|
var childToWorkerMessages = {
|
|
465
472
|
TASK_RUN_COMPLETED: z.object({
|
|
466
473
|
version: z.literal("v1").default("v1"),
|
|
@@ -471,6 +478,7 @@ var childToWorkerMessages = {
|
|
|
471
478
|
version: z.literal("v1").default("v1"),
|
|
472
479
|
tasks: TaskMetadataWithFilePath.array()
|
|
473
480
|
}),
|
|
481
|
+
TASKS_FAILED_TO_PARSE: TaskMetadataFailedToParseData,
|
|
474
482
|
TASK_HEARTBEAT: z.object({
|
|
475
483
|
version: z.literal("v1").default("v1"),
|
|
476
484
|
id: z.string()
|
|
@@ -505,6 +513,9 @@ var ProdChildToWorkerMessages = {
|
|
|
505
513
|
tasks: TaskMetadataWithFilePath.array()
|
|
506
514
|
})
|
|
507
515
|
},
|
|
516
|
+
TASKS_FAILED_TO_PARSE: {
|
|
517
|
+
message: TaskMetadataFailedToParseData
|
|
518
|
+
},
|
|
508
519
|
TASK_HEARTBEAT: {
|
|
509
520
|
message: z.object({
|
|
510
521
|
version: z.literal("v1").default("v1"),
|
|
@@ -700,6 +711,11 @@ var InitializeDeploymentRequestBody = z.object({
|
|
|
700
711
|
contentHash: z.string(),
|
|
701
712
|
userId: z.string().optional()
|
|
702
713
|
});
|
|
714
|
+
var DeploymentErrorData = z.object({
|
|
715
|
+
name: z.string(),
|
|
716
|
+
message: z.string(),
|
|
717
|
+
stack: z.string().optional()
|
|
718
|
+
});
|
|
703
719
|
var GetDeploymentResponseBody = z.object({
|
|
704
720
|
id: z.string(),
|
|
705
721
|
status: z.enum([
|
|
@@ -715,11 +731,7 @@ var GetDeploymentResponseBody = z.object({
|
|
|
715
731
|
shortCode: z.string(),
|
|
716
732
|
version: z.string(),
|
|
717
733
|
imageReference: z.string().optional(),
|
|
718
|
-
errorData:
|
|
719
|
-
name: z.string(),
|
|
720
|
-
message: z.string(),
|
|
721
|
-
stack: z.string().optional()
|
|
722
|
-
}).optional().nullable(),
|
|
734
|
+
errorData: DeploymentErrorData.optional().nullable(),
|
|
723
735
|
worker: z.object({
|
|
724
736
|
id: z.string(),
|
|
725
737
|
version: z.string(),
|
|
@@ -764,7 +776,8 @@ var Config = z.object({
|
|
|
764
776
|
dependenciesToBundle: z.array(z.union([
|
|
765
777
|
z.string(),
|
|
766
778
|
RegexSchema
|
|
767
|
-
])).optional()
|
|
779
|
+
])).optional(),
|
|
780
|
+
logLevel: z.string().optional()
|
|
768
781
|
});
|
|
769
782
|
var WaitReason = z.enum([
|
|
770
783
|
"WAIT_FOR_DURATION",
|
|
@@ -1399,7 +1412,11 @@ var SpanMessagingEvent = z.object({
|
|
|
1399
1412
|
});
|
|
1400
1413
|
|
|
1401
1414
|
// src/zodfetch.ts
|
|
1402
|
-
async function zodfetch(schema, url, requestInit) {
|
|
1415
|
+
async function zodfetch(schema, url, requestInit, options) {
|
|
1416
|
+
return await _doZodFetch(schema, url, requestInit, options);
|
|
1417
|
+
}
|
|
1418
|
+
__name(zodfetch, "zodfetch");
|
|
1419
|
+
async function _doZodFetch(schema, url, requestInit, options, attempt = 1) {
|
|
1403
1420
|
try {
|
|
1404
1421
|
const response = await fetch(url, requestInit);
|
|
1405
1422
|
if ((!requestInit || requestInit.method === "GET") && response.status === 404) {
|
|
@@ -1408,7 +1425,7 @@ async function zodfetch(schema, url, requestInit) {
|
|
|
1408
1425
|
error: `404: ${response.statusText}`
|
|
1409
1426
|
};
|
|
1410
1427
|
}
|
|
1411
|
-
if (response.status >= 400 && response.status < 500) {
|
|
1428
|
+
if (response.status >= 400 && response.status < 500 && response.status !== 429) {
|
|
1412
1429
|
const body = await response.json();
|
|
1413
1430
|
if (!body.error) {
|
|
1414
1431
|
return {
|
|
@@ -1421,6 +1438,27 @@ async function zodfetch(schema, url, requestInit) {
|
|
|
1421
1438
|
error: body.error
|
|
1422
1439
|
};
|
|
1423
1440
|
}
|
|
1441
|
+
if (response.status === 429 || response.status >= 500) {
|
|
1442
|
+
if (!options?.retry) {
|
|
1443
|
+
return {
|
|
1444
|
+
ok: false,
|
|
1445
|
+
error: `Failed to fetch ${url}, got status code ${response.status}`
|
|
1446
|
+
};
|
|
1447
|
+
}
|
|
1448
|
+
const retry = {
|
|
1449
|
+
...defaultRetryOptions,
|
|
1450
|
+
...options.retry
|
|
1451
|
+
};
|
|
1452
|
+
if (attempt > retry.maxAttempts) {
|
|
1453
|
+
return {
|
|
1454
|
+
ok: false,
|
|
1455
|
+
error: `Failed to fetch ${url}, got status code ${response.status}`
|
|
1456
|
+
};
|
|
1457
|
+
}
|
|
1458
|
+
const delay = calculateNextRetryDelay(retry, attempt);
|
|
1459
|
+
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
1460
|
+
return await _doZodFetch(schema, url, requestInit, options, attempt + 1);
|
|
1461
|
+
}
|
|
1424
1462
|
if (response.status !== 200) {
|
|
1425
1463
|
return {
|
|
1426
1464
|
ok: false,
|
|
@@ -1446,13 +1484,28 @@ async function zodfetch(schema, url, requestInit) {
|
|
|
1446
1484
|
error: parsedResult.error.message
|
|
1447
1485
|
};
|
|
1448
1486
|
} catch (error) {
|
|
1487
|
+
if (options?.retry) {
|
|
1488
|
+
const retry = {
|
|
1489
|
+
...defaultRetryOptions,
|
|
1490
|
+
...options.retry
|
|
1491
|
+
};
|
|
1492
|
+
if (attempt > retry.maxAttempts) {
|
|
1493
|
+
return {
|
|
1494
|
+
ok: false,
|
|
1495
|
+
error: error instanceof Error ? error.message : JSON.stringify(error)
|
|
1496
|
+
};
|
|
1497
|
+
}
|
|
1498
|
+
const delay = calculateNextRetryDelay(retry, attempt);
|
|
1499
|
+
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
1500
|
+
return await _doZodFetch(schema, url, requestInit, options, attempt + 1);
|
|
1501
|
+
}
|
|
1449
1502
|
return {
|
|
1450
1503
|
ok: false,
|
|
1451
1504
|
error: error instanceof Error ? error.message : JSON.stringify(error)
|
|
1452
1505
|
};
|
|
1453
1506
|
}
|
|
1454
1507
|
}
|
|
1455
|
-
__name(
|
|
1508
|
+
__name(_doZodFetch, "_doZodFetch");
|
|
1456
1509
|
|
|
1457
1510
|
// src/v3/utils/flattenAttributes.ts
|
|
1458
1511
|
function flattenAttributes(obj, prefix) {
|
|
@@ -1738,6 +1791,15 @@ function getEnvVar(name) {
|
|
|
1738
1791
|
__name(getEnvVar, "getEnvVar");
|
|
1739
1792
|
|
|
1740
1793
|
// src/v3/apiClient/index.ts
|
|
1794
|
+
var zodFetchOptions = {
|
|
1795
|
+
retry: {
|
|
1796
|
+
maxAttempts: 5,
|
|
1797
|
+
minTimeoutInMs: 1e3,
|
|
1798
|
+
maxTimeoutInMs: 3e4,
|
|
1799
|
+
factor: 2,
|
|
1800
|
+
randomize: false
|
|
1801
|
+
}
|
|
1802
|
+
};
|
|
1741
1803
|
var _getHeaders, getHeaders_fn;
|
|
1742
1804
|
var _ApiClient = class _ApiClient {
|
|
1743
1805
|
constructor(baseUrl, accessToken) {
|
|
@@ -1750,26 +1812,26 @@ var _ApiClient = class _ApiClient {
|
|
|
1750
1812
|
method: "POST",
|
|
1751
1813
|
headers: __privateMethod(this, _getHeaders, getHeaders_fn).call(this, options?.spanParentAsLink ?? false),
|
|
1752
1814
|
body: JSON.stringify(body)
|
|
1753
|
-
});
|
|
1815
|
+
}, zodFetchOptions);
|
|
1754
1816
|
}
|
|
1755
1817
|
batchTriggerTask(taskId, body, options) {
|
|
1756
1818
|
return zodfetch(BatchTriggerTaskResponse, `${this.baseUrl}/api/v1/tasks/${taskId}/batch`, {
|
|
1757
1819
|
method: "POST",
|
|
1758
1820
|
headers: __privateMethod(this, _getHeaders, getHeaders_fn).call(this, options?.spanParentAsLink ?? false),
|
|
1759
1821
|
body: JSON.stringify(body)
|
|
1760
|
-
});
|
|
1822
|
+
}, zodFetchOptions);
|
|
1761
1823
|
}
|
|
1762
1824
|
createUploadPayloadUrl(filename) {
|
|
1763
1825
|
return zodfetch(CreateUploadPayloadUrlResponseBody, `${this.baseUrl}/api/v1/packets/${filename}`, {
|
|
1764
1826
|
method: "PUT",
|
|
1765
1827
|
headers: __privateMethod(this, _getHeaders, getHeaders_fn).call(this, false)
|
|
1766
|
-
});
|
|
1828
|
+
}, zodFetchOptions);
|
|
1767
1829
|
}
|
|
1768
1830
|
getPayloadUrl(filename) {
|
|
1769
1831
|
return zodfetch(CreateUploadPayloadUrlResponseBody, `${this.baseUrl}/api/v1/packets/${filename}`, {
|
|
1770
1832
|
method: "GET",
|
|
1771
1833
|
headers: __privateMethod(this, _getHeaders, getHeaders_fn).call(this, false)
|
|
1772
|
-
});
|
|
1834
|
+
}, zodFetchOptions);
|
|
1773
1835
|
}
|
|
1774
1836
|
};
|
|
1775
1837
|
_getHeaders = new WeakSet();
|
|
@@ -1819,6 +1881,15 @@ getStore_fn2 = /* @__PURE__ */ __name(function() {
|
|
|
1819
1881
|
__name(_ApiClientManager, "ApiClientManager");
|
|
1820
1882
|
var ApiClientManager = _ApiClientManager;
|
|
1821
1883
|
var apiClientManager = new ApiClientManager();
|
|
1884
|
+
var _ZodSchemaParsedError = class _ZodSchemaParsedError extends Error {
|
|
1885
|
+
constructor(error, payload) {
|
|
1886
|
+
super(error.message);
|
|
1887
|
+
this.error = error;
|
|
1888
|
+
this.payload = payload;
|
|
1889
|
+
}
|
|
1890
|
+
};
|
|
1891
|
+
__name(_ZodSchemaParsedError, "ZodSchemaParsedError");
|
|
1892
|
+
var ZodSchemaParsedError = _ZodSchemaParsedError;
|
|
1822
1893
|
var ZodMessageSchema = z.object({
|
|
1823
1894
|
version: z.literal("v1").default("v1"),
|
|
1824
1895
|
type: z.string(),
|
|
@@ -1915,7 +1986,7 @@ var _ZodMessageSender = class _ZodMessageSender {
|
|
|
1915
1986
|
}
|
|
1916
1987
|
const parsedPayload = schema.safeParse(payload);
|
|
1917
1988
|
if (!parsedPayload.success) {
|
|
1918
|
-
throw new
|
|
1989
|
+
throw new ZodSchemaParsedError(parsedPayload.error, payload);
|
|
1919
1990
|
}
|
|
1920
1991
|
await __privateGet(this, _sender).call(this, {
|
|
1921
1992
|
type,
|
|
@@ -2419,7 +2490,7 @@ var _ZodIpcConnection = class _ZodIpcConnection {
|
|
|
2419
2490
|
}
|
|
2420
2491
|
const parsedPayload = schema.safeParse(payload);
|
|
2421
2492
|
if (!parsedPayload.success) {
|
|
2422
|
-
throw new
|
|
2493
|
+
throw new ZodSchemaParsedError(parsedPayload.error, payload);
|
|
2423
2494
|
}
|
|
2424
2495
|
await __privateMethod(this, _sendPacket, sendPacket_fn).call(this, {
|
|
2425
2496
|
type: "EVENT",
|
|
@@ -2608,6 +2679,41 @@ function correctStackTraceLine(line, projectDir) {
|
|
|
2608
2679
|
return line;
|
|
2609
2680
|
}
|
|
2610
2681
|
__name(correctStackTraceLine, "correctStackTraceLine");
|
|
2682
|
+
function groupTaskMetadataIssuesByTask(tasks, issues) {
|
|
2683
|
+
return issues.reduce((acc, issue) => {
|
|
2684
|
+
if (issue.path.length === 0) {
|
|
2685
|
+
return acc;
|
|
2686
|
+
}
|
|
2687
|
+
const taskIndex = issue.path[1];
|
|
2688
|
+
if (typeof taskIndex !== "number") {
|
|
2689
|
+
return acc;
|
|
2690
|
+
}
|
|
2691
|
+
const task = tasks[taskIndex];
|
|
2692
|
+
if (!task) {
|
|
2693
|
+
return acc;
|
|
2694
|
+
}
|
|
2695
|
+
const restOfPath = issue.path.slice(2);
|
|
2696
|
+
const taskId = task.id;
|
|
2697
|
+
const taskName = task.exportName;
|
|
2698
|
+
const filePath = task.filePath;
|
|
2699
|
+
const key = taskIndex;
|
|
2700
|
+
const existing = acc[key] ?? {
|
|
2701
|
+
id: taskId,
|
|
2702
|
+
exportName: taskName,
|
|
2703
|
+
filePath,
|
|
2704
|
+
issues: []
|
|
2705
|
+
};
|
|
2706
|
+
existing.issues.push({
|
|
2707
|
+
message: issue.message,
|
|
2708
|
+
path: restOfPath.length === 0 ? void 0 : restOfPath.join(".")
|
|
2709
|
+
});
|
|
2710
|
+
return {
|
|
2711
|
+
...acc,
|
|
2712
|
+
[key]: existing
|
|
2713
|
+
};
|
|
2714
|
+
}, {});
|
|
2715
|
+
}
|
|
2716
|
+
__name(groupTaskMetadataIssuesByTask, "groupTaskMetadataIssuesByTask");
|
|
2611
2717
|
|
|
2612
2718
|
// src/v3/utils/platform.ts
|
|
2613
2719
|
var _globalThis = typeof globalThis === "object" ? globalThis : global;
|
|
@@ -2808,6 +2914,7 @@ var clock = ClockAPI.getInstance();
|
|
|
2808
2914
|
|
|
2809
2915
|
// src/v3/logger/taskLogger.ts
|
|
2810
2916
|
var logLevels = [
|
|
2917
|
+
"none",
|
|
2811
2918
|
"error",
|
|
2812
2919
|
"warn",
|
|
2813
2920
|
"log",
|
|
@@ -2823,27 +2930,27 @@ var _OtelTaskLogger = class _OtelTaskLogger {
|
|
|
2823
2930
|
this._level = logLevels.indexOf(_config.level);
|
|
2824
2931
|
}
|
|
2825
2932
|
debug(message, properties) {
|
|
2826
|
-
if (this._level <
|
|
2933
|
+
if (this._level < 5)
|
|
2827
2934
|
return;
|
|
2828
2935
|
__privateMethod(this, _emitLog, emitLog_fn).call(this, message, __privateMethod(this, _getTimestampInHrTime, getTimestampInHrTime_fn).call(this), "debug", SeverityNumber.DEBUG, properties);
|
|
2829
2936
|
}
|
|
2830
2937
|
log(message, properties) {
|
|
2831
|
-
if (this._level <
|
|
2938
|
+
if (this._level < 3)
|
|
2832
2939
|
return;
|
|
2833
2940
|
__privateMethod(this, _emitLog, emitLog_fn).call(this, message, __privateMethod(this, _getTimestampInHrTime, getTimestampInHrTime_fn).call(this), "log", SeverityNumber.INFO, properties);
|
|
2834
2941
|
}
|
|
2835
2942
|
info(message, properties) {
|
|
2836
|
-
if (this._level <
|
|
2943
|
+
if (this._level < 4)
|
|
2837
2944
|
return;
|
|
2838
2945
|
__privateMethod(this, _emitLog, emitLog_fn).call(this, message, __privateMethod(this, _getTimestampInHrTime, getTimestampInHrTime_fn).call(this), "info", SeverityNumber.INFO, properties);
|
|
2839
2946
|
}
|
|
2840
2947
|
warn(message, properties) {
|
|
2841
|
-
if (this._level <
|
|
2948
|
+
if (this._level < 2)
|
|
2842
2949
|
return;
|
|
2843
2950
|
__privateMethod(this, _emitLog, emitLog_fn).call(this, message, __privateMethod(this, _getTimestampInHrTime, getTimestampInHrTime_fn).call(this), "warn", SeverityNumber.WARN, properties);
|
|
2844
2951
|
}
|
|
2845
2952
|
error(message, properties) {
|
|
2846
|
-
if (this._level <
|
|
2953
|
+
if (this._level < 1)
|
|
2847
2954
|
return;
|
|
2848
2955
|
__privateMethod(this, _emitLog, emitLog_fn).call(this, message, __privateMethod(this, _getTimestampInHrTime, getTimestampInHrTime_fn).call(this), "error", SeverityNumber.ERROR, properties);
|
|
2849
2956
|
}
|
|
@@ -4471,6 +4578,6 @@ function parseBatchTriggerTaskRequestBody(body) {
|
|
|
4471
4578
|
}
|
|
4472
4579
|
__name(parseBatchTriggerTaskRequestBody, "parseBatchTriggerTaskRequestBody");
|
|
4473
4580
|
|
|
4474
|
-
export { ApiClient, ApiClientManager, BackgroundWorkerClientMessages, BackgroundWorkerMetadata, BackgroundWorkerProperties, BackgroundWorkerServerMessages, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CancellationSpanEvent, ClientToSharedQueueMessages, Config, ConsoleInterceptor, CoordinatorToPlatformMessages, CoordinatorToProdWorkerMessages, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateUploadPayloadUrlResponseBody, DevRuntimeManager, PreciseWallClock as DurableClock, EnvironmentType, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, FixedWindowRateLimit, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, GetPersonalAccessTokenRequestSchema, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, ImageDetailsMetadata, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, LogLevel, Machine, MachineCpu, MachineMemory, OFFLOAD_IO_PACKET_LENGTH_LIMIT, OTEL_ATTRIBUTE_PER_EVENT_COUNT_LIMIT, OTEL_ATTRIBUTE_PER_LINK_COUNT_LIMIT, OTEL_LINK_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT, OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_EVENT_COUNT_LIMIT, OtelTaskLogger, OtherSpanEvent, PRIMARY_VARIANT, PlatformToCoordinatorMessages, PlatformToProviderMessages, PostStartCauses, PreStopCauses, ProdChildToWorkerMessages, ProdRuntimeManager, ProdTaskRunExecution, ProdTaskRunExecutionPayload, ProdWorkerSocketData, ProdWorkerToChildMessages, ProdWorkerToCoordinatorMessages, ProviderToPlatformMessages, QueueOptions, RateLimitOptions, RetryOptions, SemanticInternalAttributes, SharedQueueToClientMessages, SimpleStructuredLogger, SlidingWindowRateLimit, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskContextSpanProcessor, TaskEventStyle, TaskExecutor, TaskMetadata, TaskMetadataWithFilePath, TaskResource, TaskRun, TaskRunBuiltInError, TaskRunContext, TaskRunCustomErrorObject, TaskRunError, TaskRunErrorCodes, TaskRunExecution, TaskRunExecutionAttempt, TaskRunExecutionBatch, TaskRunExecutionEnvironment, TaskRunExecutionOrganization, TaskRunExecutionPayload, TaskRunExecutionProject, TaskRunExecutionQueue, TaskRunExecutionResult, TaskRunExecutionRetry, TaskRunExecutionTask, TaskRunFailedExecutionResult, TaskRunInternalError, TaskRunStringError, TaskRunSuccessfulExecutionResult, TracingSDK, TriggerTaskRequestBody, TriggerTaskResponse, TriggerTracer, UncaughtExceptionMessage, WaitReason, WhoAmIResponseSchema, ZodIpcConnection, ZodMessageHandler, ZodMessageSchema, ZodMessageSender, ZodNamespace, ZodSocketConnection, ZodSocketMessageHandler, ZodSocketMessageSender, accessoryAttributes, apiClientManager, calculateNextRetryDelay, calculateResetAt2 as calculateResetAt, childToWorkerMessages, clientWebsocketMessages, clock, conditionallyExportPacket, conditionallyImportPacket, correctErrorStackTrace, createErrorTaskError, createPacketAttributes, createPacketAttributesAsJson, defaultFetchRetryOptions, defaultRetryOptions, detectDependencyVersion, eventFilterMatches, flattenAttributes, formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, getEnvVar, iconStringForSeverity, imposeAttributeLimits, isCancellationSpanEvent, isExceptionSpanEvent, logger, millisecondsToNanoseconds, nanosecondsToMilliseconds, omit, packetRequiresOffloading, parseBatchTriggerTaskRequestBody, parseError, parsePacket, parseTriggerTaskRequestBody, prettyPrintPacket, primitiveValueOrflattenedAttributes, recordSpanException, runtime, serverWebsocketMessages, stringPatternMatchers, stringifyIO, taskContextManager, unflattenAttributes, workerToChildMessages };
|
|
4581
|
+
export { ApiClient, ApiClientManager, BackgroundWorkerClientMessages, BackgroundWorkerMetadata, BackgroundWorkerProperties, BackgroundWorkerServerMessages, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CancellationSpanEvent, ClientToSharedQueueMessages, Config, ConsoleInterceptor, CoordinatorToPlatformMessages, CoordinatorToProdWorkerMessages, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateUploadPayloadUrlResponseBody, DeploymentErrorData, DevRuntimeManager, PreciseWallClock as DurableClock, EnvironmentType, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, FixedWindowRateLimit, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, GetPersonalAccessTokenRequestSchema, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, ImageDetailsMetadata, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, LogLevel, Machine, MachineCpu, MachineMemory, OFFLOAD_IO_PACKET_LENGTH_LIMIT, OTEL_ATTRIBUTE_PER_EVENT_COUNT_LIMIT, OTEL_ATTRIBUTE_PER_LINK_COUNT_LIMIT, OTEL_LINK_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT, OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_EVENT_COUNT_LIMIT, OtelTaskLogger, OtherSpanEvent, PRIMARY_VARIANT, PlatformToCoordinatorMessages, PlatformToProviderMessages, PostStartCauses, PreStopCauses, ProdChildToWorkerMessages, ProdRuntimeManager, ProdTaskRunExecution, ProdTaskRunExecutionPayload, ProdWorkerSocketData, ProdWorkerToChildMessages, ProdWorkerToCoordinatorMessages, ProviderToPlatformMessages, QueueOptions, RateLimitOptions, RetryOptions, SemanticInternalAttributes, SharedQueueToClientMessages, SimpleStructuredLogger, SlidingWindowRateLimit, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskContextSpanProcessor, TaskEventStyle, TaskExecutor, TaskMetadata, TaskMetadataFailedToParseData, TaskMetadataWithFilePath, TaskResource, TaskRun, TaskRunBuiltInError, TaskRunContext, TaskRunCustomErrorObject, TaskRunError, TaskRunErrorCodes, TaskRunExecution, TaskRunExecutionAttempt, TaskRunExecutionBatch, TaskRunExecutionEnvironment, TaskRunExecutionOrganization, TaskRunExecutionPayload, TaskRunExecutionProject, TaskRunExecutionQueue, TaskRunExecutionResult, TaskRunExecutionRetry, TaskRunExecutionTask, TaskRunFailedExecutionResult, TaskRunInternalError, TaskRunStringError, TaskRunSuccessfulExecutionResult, TracingSDK, TriggerTaskRequestBody, TriggerTaskResponse, TriggerTracer, UncaughtExceptionMessage, WaitReason, WhoAmIResponseSchema, ZodIpcConnection, ZodMessageHandler, ZodMessageSchema, ZodMessageSender, ZodNamespace, ZodSchemaParsedError, ZodSocketConnection, ZodSocketMessageHandler, ZodSocketMessageSender, accessoryAttributes, apiClientManager, calculateNextRetryDelay, calculateResetAt2 as calculateResetAt, childToWorkerMessages, clientWebsocketMessages, clock, conditionallyExportPacket, conditionallyImportPacket, correctErrorStackTrace, createErrorTaskError, createPacketAttributes, createPacketAttributesAsJson, defaultFetchRetryOptions, defaultRetryOptions, detectDependencyVersion, eventFilterMatches, flattenAttributes, formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, getEnvVar, groupTaskMetadataIssuesByTask, iconStringForSeverity, imposeAttributeLimits, isCancellationSpanEvent, isExceptionSpanEvent, logLevels, logger, millisecondsToNanoseconds, nanosecondsToMilliseconds, omit, packetRequiresOffloading, parseBatchTriggerTaskRequestBody, parseError, parsePacket, parseTriggerTaskRequestBody, prettyPrintPacket, primitiveValueOrflattenedAttributes, recordSpanException, runtime, serverWebsocketMessages, stringPatternMatchers, stringifyIO, taskContextManager, unflattenAttributes, workerToChildMessages };
|
|
4475
4582
|
//# sourceMappingURL=out.js.map
|
|
4476
4583
|
//# sourceMappingURL=index.mjs.map
|