deepline 0.1.292 → 0.1.293
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/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +0 -14
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +0 -14
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +2 -2
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/bundling-sources/shared_libs/plays/legacy-webhook-drain.ts +0 -110
|
@@ -155,7 +155,7 @@ export const SDK_RELEASE = {
|
|
|
155
155
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
156
156
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
157
157
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
158
|
-
version: '0.1.
|
|
158
|
+
version: '0.1.293',
|
|
159
159
|
contracts: {
|
|
160
160
|
api: {
|
|
161
161
|
name: 'sdk-http-api',
|
|
@@ -536,20 +536,6 @@ export interface ContextOptions {
|
|
|
536
536
|
artifactHash?: string | null;
|
|
537
537
|
convexUrl?: string;
|
|
538
538
|
runtimeSchedulerSchema?: string | null;
|
|
539
|
-
/**
|
|
540
|
-
* Execution profile for scheduler-backed `ctx.runPlay` child launches. Threaded
|
|
541
|
-
* from the parent launch so a child inherits the parent's scheduler profile
|
|
542
|
-
* (e.g. `absurd`) on the child `/api/v2/plays/run` submission. Absent defaults
|
|
543
|
-
* to the `absurd` profile.
|
|
544
|
-
*/
|
|
545
|
-
childRunProfile?: string | null;
|
|
546
|
-
/**
|
|
547
|
-
* The parent worker's own absurd release lane id. Threaded onto child
|
|
548
|
-
* `ctx.runPlay` launches via the `x-deepline-absurd-release` header so the
|
|
549
|
-
* child pins to the parent's lane (defense-in-depth). Null off the absurd
|
|
550
|
-
* path or on a pre-release parent.
|
|
551
|
-
*/
|
|
552
|
-
absurdReleaseId?: string | null;
|
|
553
539
|
staticPipeline?: PlayStaticPipeline | null;
|
|
554
540
|
workflowId?: string;
|
|
555
541
|
sessionId?: string;
|
|
@@ -140,20 +140,6 @@ export interface PlayRunnerContextConfig {
|
|
|
140
140
|
postgresSessionUnwrapKey?: string | null;
|
|
141
141
|
rateStateBackend?: PlayRunnerRateStateBackendConfig;
|
|
142
142
|
runtimeSchedulerSchema?: string | null;
|
|
143
|
-
/**
|
|
144
|
-
* Execution profile a scheduler-backed `ctx.runPlay` child must be launched
|
|
145
|
-
* under. The runner posts it as the `profile` on the child `/api/v2/plays/run`
|
|
146
|
-
* submission so a child inherits the parent's scheduler (e.g. `absurd`) instead
|
|
147
|
-
* of defaulting away from the parent scheduler. Absent means `absurd`.
|
|
148
|
-
*/
|
|
149
|
-
childRunProfile?: string | null;
|
|
150
|
-
/**
|
|
151
|
-
* The parent worker's absurd release lane id. Posted as the
|
|
152
|
-
* `x-deepline-absurd-release` header on child `ctx.runPlay` launches so the
|
|
153
|
-
* child pins to the parent's lane (defense-in-depth). Absent off the absurd
|
|
154
|
-
* path or on a pre-release parent.
|
|
155
|
-
*/
|
|
156
|
-
absurdReleaseId?: string | null;
|
|
157
143
|
/**
|
|
158
144
|
* Push-execution wiring for the Daytona sandbox runner. When present the
|
|
159
145
|
* runner keeps the Absurd run claim alive itself (heartbeating the receipt
|
|
@@ -2236,8 +2236,8 @@ async function missingRuntimeWorkReceiptSelfHealColumns(
|
|
|
2236
2236
|
);
|
|
2237
2237
|
}
|
|
2238
2238
|
|
|
2239
|
-
// COMPAT / SELF-HEAL — owner: runtime. Removal milestone:
|
|
2240
|
-
// cutover
|
|
2239
|
+
// COMPAT / SELF-HEAL — owner: runtime. Removal milestone: runtime-ledger
|
|
2240
|
+
// cutover. The customer-Neon
|
|
2241
2241
|
// work-receipt table (lease columns + failure_kind) is the dying surface. The
|
|
2242
2242
|
// F2 rolling migration (scripts/migrate-play-runtime-storage.ts) backfills these
|
|
2243
2243
|
// columns; this lazy CREATE/ALTER self-heal is a compat-window safety net and is
|
package/dist/cli/index.js
CHANGED
|
@@ -718,7 +718,7 @@ var SDK_RELEASE = {
|
|
|
718
718
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
719
719
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
720
720
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
721
|
-
version: "0.1.
|
|
721
|
+
version: "0.1.293",
|
|
722
722
|
contracts: {
|
|
723
723
|
api: {
|
|
724
724
|
name: "sdk-http-api",
|
package/dist/cli/index.mjs
CHANGED
|
@@ -703,7 +703,7 @@ var SDK_RELEASE = {
|
|
|
703
703
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
704
704
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
705
705
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
706
|
-
version: "0.1.
|
|
706
|
+
version: "0.1.293",
|
|
707
707
|
contracts: {
|
|
708
708
|
api: {
|
|
709
709
|
name: "sdk-http-api",
|
package/dist/index.js
CHANGED
|
@@ -438,7 +438,7 @@ var SDK_RELEASE = {
|
|
|
438
438
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
439
439
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
440
440
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
441
|
-
version: "0.1.
|
|
441
|
+
version: "0.1.293",
|
|
442
442
|
contracts: {
|
|
443
443
|
api: {
|
|
444
444
|
name: "sdk-http-api",
|
package/dist/index.mjs
CHANGED
|
@@ -367,7 +367,7 @@ var SDK_RELEASE = {
|
|
|
367
367
|
// 0.1.253 makes play-page browser opening opt-in and retires --no-open.
|
|
368
368
|
// 0.1.254 removes the internal operations tree from the published SDK CLI.
|
|
369
369
|
// Operators use the checkout-local deepline-admin binary instead.
|
|
370
|
-
version: "0.1.
|
|
370
|
+
version: "0.1.293",
|
|
371
371
|
contracts: {
|
|
372
372
|
api: {
|
|
373
373
|
name: "sdk-http-api",
|
package/package.json
CHANGED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
export const LEGACY_WEBHOOK_RETRY_CODES = [
|
|
2
|
-
'ACTIVE_CONCURRENCY_LIMIT',
|
|
3
|
-
'SCHEDULER_CAPACITY',
|
|
4
|
-
'TRANSIENT_LAUNCH_FAILURE',
|
|
5
|
-
] as const;
|
|
6
|
-
|
|
7
|
-
export type LegacyWebhookRetryCode =
|
|
8
|
-
(typeof LEGACY_WEBHOOK_RETRY_CODES)[number];
|
|
9
|
-
|
|
10
|
-
export const LEGACY_WEBHOOK_QUARANTINE_CODES = [
|
|
11
|
-
'PLAY_DEFINITION_MISSING',
|
|
12
|
-
'PLAY_BINDING_MISSING',
|
|
13
|
-
'PLAY_BINDING_DISABLED',
|
|
14
|
-
'PLAY_REVISION_MISSING',
|
|
15
|
-
'PLAY_REVISION_MISMATCH',
|
|
16
|
-
'ARTIFACT_RUNTIME_INCOMPATIBLE',
|
|
17
|
-
'ARTIFACT_REFERENCE_MISSING',
|
|
18
|
-
'WEBHOOK_PAYLOAD_INVALID',
|
|
19
|
-
'PLAY_PRE_RUN_VALIDATION_FAILED',
|
|
20
|
-
'RUN_IDENTITY_CONFLICT',
|
|
21
|
-
'MAX_DELIVERY_ATTEMPTS_EXCEEDED',
|
|
22
|
-
] as const;
|
|
23
|
-
|
|
24
|
-
export type LegacyWebhookQuarantineCode =
|
|
25
|
-
(typeof LEGACY_WEBHOOK_QUARANTINE_CODES)[number];
|
|
26
|
-
|
|
27
|
-
export function isLegacyWebhookQuarantineCode(
|
|
28
|
-
value: unknown,
|
|
29
|
-
): value is LegacyWebhookQuarantineCode {
|
|
30
|
-
return (
|
|
31
|
-
typeof value === 'string' &&
|
|
32
|
-
(LEGACY_WEBHOOK_QUARANTINE_CODES as readonly string[]).includes(value)
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export type LegacyWebhookQuarantineFailure =
|
|
37
|
-
| { code: 'PLAY_DEFINITION_MISSING' }
|
|
38
|
-
| { code: 'PLAY_BINDING_MISSING' }
|
|
39
|
-
| { code: 'PLAY_BINDING_DISABLED'; actualStatus: string }
|
|
40
|
-
| { code: 'PLAY_REVISION_MISSING' }
|
|
41
|
-
| {
|
|
42
|
-
code: 'PLAY_REVISION_MISMATCH';
|
|
43
|
-
expectedDefinitionId: string;
|
|
44
|
-
actualDefinitionId: string;
|
|
45
|
-
}
|
|
46
|
-
| {
|
|
47
|
-
code: 'ARTIFACT_RUNTIME_INCOMPATIBLE';
|
|
48
|
-
expectedArtifactKind: 'cjs_node20';
|
|
49
|
-
actualArtifactKind: string;
|
|
50
|
-
}
|
|
51
|
-
| { code: 'ARTIFACT_REFERENCE_MISSING' }
|
|
52
|
-
| {
|
|
53
|
-
code: 'WEBHOOK_PAYLOAD_INVALID';
|
|
54
|
-
reason: 'unsupported_shape';
|
|
55
|
-
}
|
|
56
|
-
| { code: 'PLAY_PRE_RUN_VALIDATION_FAILED' }
|
|
57
|
-
| { code: 'RUN_IDENTITY_CONFLICT' }
|
|
58
|
-
| { code: 'MAX_DELIVERY_ATTEMPTS_EXCEEDED' };
|
|
59
|
-
|
|
60
|
-
export type LegacyWebhookDrainState =
|
|
61
|
-
| { kind: 'pending' }
|
|
62
|
-
| {
|
|
63
|
-
kind: 'leased';
|
|
64
|
-
leaseOwner: string;
|
|
65
|
-
leaseExpiresAt: number;
|
|
66
|
-
attempts: number;
|
|
67
|
-
}
|
|
68
|
-
| {
|
|
69
|
-
kind: 'retry';
|
|
70
|
-
failureCode: LegacyWebhookRetryCode;
|
|
71
|
-
retryAt: number;
|
|
72
|
-
attempts: number;
|
|
73
|
-
error: string;
|
|
74
|
-
}
|
|
75
|
-
| {
|
|
76
|
-
kind: 'quarantined';
|
|
77
|
-
failure: LegacyWebhookQuarantineFailure;
|
|
78
|
-
quarantinedAt: number;
|
|
79
|
-
attempts: number;
|
|
80
|
-
error: string;
|
|
81
|
-
}
|
|
82
|
-
| { kind: 'launched'; launchedAt: number }
|
|
83
|
-
| {
|
|
84
|
-
kind: 'migrated';
|
|
85
|
-
migratedAt: number;
|
|
86
|
-
migratedWebhookEventId: string;
|
|
87
|
-
migratedAbsurdTaskId: string;
|
|
88
|
-
}
|
|
89
|
-
| {
|
|
90
|
-
kind: 'retired';
|
|
91
|
-
retiredAt: number;
|
|
92
|
-
retiredBy: string;
|
|
93
|
-
reason: string;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export type LegacyWebhookDrainOutcome =
|
|
97
|
-
| { kind: 'started' }
|
|
98
|
-
| { kind: 'quarantined'; failure: LegacyWebhookQuarantineFailure }
|
|
99
|
-
| { kind: 'retry'; failureCode: LegacyWebhookRetryCode }
|
|
100
|
-
| { kind: 'lease_lost' };
|
|
101
|
-
|
|
102
|
-
export function isLegacyWebhookPayload(
|
|
103
|
-
value: unknown,
|
|
104
|
-
): value is Record<string, unknown> | unknown[] {
|
|
105
|
-
return Array.isArray(value) || (value !== null && typeof value === 'object');
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export function assertNever(value: never, context: string): never {
|
|
109
|
-
throw new Error(`${context}: ${JSON.stringify(value)}`);
|
|
110
|
-
}
|