deepline 0.1.283 → 0.1.284
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.
|
@@ -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.284',
|
|
159
159
|
contracts: {
|
|
160
160
|
api: {
|
|
161
161
|
name: 'sdk-http-api',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isHardBillingToolHttpError } from './tool-http-errors';
|
|
1
|
+
import { isHardBillingToolHttpError, ToolHttpError } from './tool-http-errors';
|
|
2
2
|
import { isRuntimePersistenceCircuitOpenError } from './persistence-latch';
|
|
3
3
|
import { isWorkspaceStorageNotReadyFailure } from './run-failure';
|
|
4
4
|
|
|
@@ -36,6 +36,23 @@ export function isAbortLikeError(error: unknown): boolean {
|
|
|
36
36
|
*/
|
|
37
37
|
export function isRowIsolationExemptError(error: unknown): boolean {
|
|
38
38
|
if (isAbortLikeError(error)) return true;
|
|
39
|
+
// A remote tool can return arbitrary provider/database wording. Its message
|
|
40
|
+
// must never be mistaken for a failure of the runner's own receipt or sheet
|
|
41
|
+
// persistence plane. Hard Deepline billing denials are the sole typed tool
|
|
42
|
+
// failure that intentionally remains run-fatal.
|
|
43
|
+
if (error instanceof ToolHttpError) {
|
|
44
|
+
return isHardBillingToolHttpError(error);
|
|
45
|
+
}
|
|
46
|
+
const nestedErrors =
|
|
47
|
+
error && typeof error === 'object'
|
|
48
|
+
? (error as { errors?: unknown }).errors
|
|
49
|
+
: undefined;
|
|
50
|
+
if (
|
|
51
|
+
Array.isArray(nestedErrors) &&
|
|
52
|
+
nestedErrors.some(isRowIsolationExemptError)
|
|
53
|
+
) {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
39
56
|
if (error instanceof Error && error.name === 'GovernorBudgetError') {
|
|
40
57
|
return true;
|
|
41
58
|
}
|
|
@@ -63,12 +80,13 @@ function isRuntimeReceiptPersistenceError(error: unknown): boolean {
|
|
|
63
80
|
|
|
64
81
|
function isRuntimeStoragePersistenceError(error: unknown): boolean {
|
|
65
82
|
if (!error || typeof error !== 'object') return false;
|
|
83
|
+
if (error instanceof ToolHttpError) return false;
|
|
66
84
|
const nestedErrors = (error as { errors?: unknown }).errors;
|
|
67
|
-
if (
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return
|
|
85
|
+
if (Array.isArray(nestedErrors) && nestedErrors.length > 0) {
|
|
86
|
+
// AggregateError.message is caller-controlled summary text. Once typed
|
|
87
|
+
// children exist, classify those children and never fall through to a
|
|
88
|
+
// misleading container message.
|
|
89
|
+
return nestedErrors.some(isRuntimeStoragePersistenceError);
|
|
72
90
|
}
|
|
73
91
|
const message =
|
|
74
92
|
error instanceof Error ? error.message : String((error as object) ?? '');
|
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.284",
|
|
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.284",
|
|
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.284",
|
|
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.284",
|
|
371
371
|
contracts: {
|
|
372
372
|
api: {
|
|
373
373
|
name: "sdk-http-api",
|