deepline 0.2.31 → 0.2.32
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.
|
@@ -160,7 +160,7 @@ export const SDK_RELEASE = {
|
|
|
160
160
|
// 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
|
|
161
161
|
// exposed storage-dependent synchronous access. This deliberate minor
|
|
162
162
|
// release keeps lazy paging semantics independent of row residency.
|
|
163
|
-
version: '0.2.
|
|
163
|
+
version: '0.2.32',
|
|
164
164
|
contracts: {
|
|
165
165
|
api: {
|
|
166
166
|
name: 'sdk-http-api',
|
|
@@ -645,6 +645,24 @@ function isDeeplineDeveloperTunnelOrigin502(input: {
|
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
|
|
648
|
+
function isUnmarkedExecutionGateway502(input: {
|
|
649
|
+
url: string;
|
|
650
|
+
status: number;
|
|
651
|
+
responseHeaders: Headers;
|
|
652
|
+
}): boolean {
|
|
653
|
+
if (
|
|
654
|
+
input.status !== 502 ||
|
|
655
|
+
input.responseHeaders.has('x-deepline-request-id')
|
|
656
|
+
) {
|
|
657
|
+
return false;
|
|
658
|
+
}
|
|
659
|
+
try {
|
|
660
|
+
return new URL(input.url).pathname.endsWith('/execute-fenced-v1');
|
|
661
|
+
} catch {
|
|
662
|
+
return false;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
648
666
|
function loadSafeFetch(): Promise<SafeFetchModule> {
|
|
649
667
|
safeFetchModule ??= import('@shared_libs/security/safe-fetch');
|
|
650
668
|
return safeFetchModule;
|
|
@@ -10091,16 +10109,25 @@ export class PlayContextImpl implements ScalarPlayAuthoringRuntimeContext {
|
|
|
10091
10109
|
|
|
10092
10110
|
if (!response.ok) {
|
|
10093
10111
|
const text = responseErrorText ?? '';
|
|
10094
|
-
|
|
10112
|
+
const developerTunnelOrigin502 =
|
|
10095
10113
|
isDeeplineDeveloperTunnelOrigin502({
|
|
10096
10114
|
url,
|
|
10097
10115
|
status: response.status,
|
|
10098
10116
|
bodyText: text,
|
|
10099
|
-
})
|
|
10100
|
-
|
|
10117
|
+
});
|
|
10118
|
+
const unmarkedExecutionGateway502 = isUnmarkedExecutionGateway502(
|
|
10119
|
+
{
|
|
10120
|
+
url,
|
|
10121
|
+
status: response.status,
|
|
10122
|
+
responseHeaders: response.headers,
|
|
10123
|
+
},
|
|
10124
|
+
);
|
|
10125
|
+
if (developerTunnelOrigin502 || unmarkedExecutionGateway502) {
|
|
10101
10126
|
await retryToolTransportFailure({
|
|
10102
10127
|
error: new Error(
|
|
10103
|
-
|
|
10128
|
+
developerTunnelOrigin502
|
|
10129
|
+
? 'the Deepline development tunnel returned a branded 502 before reaching the app origin'
|
|
10130
|
+
: 'the execution gateway ingress returned an unmarked 502 before reaching the durable invocation handler',
|
|
10104
10131
|
),
|
|
10105
10132
|
elapsedMs: providerCallElapsedMs ?? 0,
|
|
10106
10133
|
requestId: deeplineRequestId,
|
package/dist/cli/index.js
CHANGED
|
@@ -1044,7 +1044,7 @@ var SDK_RELEASE = {
|
|
|
1044
1044
|
// 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
|
|
1045
1045
|
// exposed storage-dependent synchronous access. This deliberate minor
|
|
1046
1046
|
// release keeps lazy paging semantics independent of row residency.
|
|
1047
|
-
version: "0.2.
|
|
1047
|
+
version: "0.2.32",
|
|
1048
1048
|
contracts: {
|
|
1049
1049
|
api: {
|
|
1050
1050
|
name: "sdk-http-api",
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1030,7 +1030,7 @@ var SDK_RELEASE = {
|
|
|
1030
1030
|
// 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
|
|
1031
1031
|
// exposed storage-dependent synchronous access. This deliberate minor
|
|
1032
1032
|
// release keeps lazy paging semantics independent of row residency.
|
|
1033
|
-
version: "0.2.
|
|
1033
|
+
version: "0.2.32",
|
|
1034
1034
|
contracts: {
|
|
1035
1035
|
api: {
|
|
1036
1036
|
name: "sdk-http-api",
|
package/dist/index.js
CHANGED
|
@@ -763,7 +763,7 @@ var SDK_RELEASE = {
|
|
|
763
763
|
// 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
|
|
764
764
|
// exposed storage-dependent synchronous access. This deliberate minor
|
|
765
765
|
// release keeps lazy paging semantics independent of row residency.
|
|
766
|
-
version: "0.2.
|
|
766
|
+
version: "0.2.32",
|
|
767
767
|
contracts: {
|
|
768
768
|
api: {
|
|
769
769
|
name: "sdk-http-api",
|
package/dist/index.mjs
CHANGED
|
@@ -689,7 +689,7 @@ var SDK_RELEASE = {
|
|
|
689
689
|
// 0.2.0 makes Dataset Handles uniformly async-only after 0.1.320 briefly
|
|
690
690
|
// exposed storage-dependent synchronous access. This deliberate minor
|
|
691
691
|
// release keeps lazy paging semantics independent of row residency.
|
|
692
|
-
version: "0.2.
|
|
692
|
+
version: "0.2.32",
|
|
693
693
|
contracts: {
|
|
694
694
|
api: {
|
|
695
695
|
name: "sdk-http-api",
|