deepline 0.3.440 → 0.3.442
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/context.ts +10 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +37 -15
- package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +17 -3
- package/dist/bundling-sources/shared_libs/tool-execution-error.ts +17 -3
- package/dist/cli/{auth-KBORTFO6.mjs → auth-CUZJMTNS.mjs} +6 -6
- package/dist/cli/auth-HAO2GLGH.js +40 -0
- package/dist/cli/{billing-VJSUCB5I.mjs → billing-SWH3WAMC.mjs} +7 -7
- package/dist/cli/{billing-RE5WN7IQ.js → billing-W2U5VKFI.js} +83 -83
- package/dist/cli/{chunk-VXQQZV4A.js → chunk-2GVUZA6C.js} +33 -33
- package/dist/cli/{chunk-R2P756BJ.js → chunk-2JHQ24IT.js} +16 -16
- package/dist/cli/{chunk-MAMVGOSC.mjs → chunk-4QF2K7TM.mjs} +1 -1
- package/dist/cli/{chunk-O7PC3VOI.mjs → chunk-5ZQEDZDQ.mjs} +1 -1
- package/dist/cli/{chunk-GWC7OBRD.mjs → chunk-6YWIRIOI.mjs} +2 -2
- package/dist/cli/{chunk-Z7SKBAOU.js → chunk-77DW6WSO.js} +93 -93
- package/dist/cli/{chunk-4RKPT6IE.js → chunk-7BH4ZOWE.js} +2 -2
- package/dist/cli/{chunk-N5D4EMIY.mjs → chunk-7DH2FD7Y.mjs} +1 -1
- package/dist/cli/{chunk-PCNOULRB.mjs → chunk-7ICMVQL5.mjs} +4 -4
- package/dist/cli/{chunk-WU4U6VSB.js → chunk-A6QCMBGL.js} +5 -5
- package/dist/cli/{chunk-NPBJI7RE.js → chunk-ALJJRZNJ.js} +8 -8
- package/dist/cli/{chunk-ZLD46RSR.mjs → chunk-AR5YQQF5.mjs} +2 -2
- package/dist/cli/{chunk-GFEWNYQ4.js → chunk-C4WXHMKN.js} +2 -2
- package/dist/cli/{chunk-KAJK6XVI.js → chunk-CFUTOWE4.js} +6 -6
- package/dist/cli/{chunk-M6WSQZHP.js → chunk-D5IOUCJS.js} +57 -57
- package/dist/cli/{chunk-ATTUUPIU.js → chunk-D7IDBZDR.js} +8 -8
- package/dist/cli/{chunk-PPDBRJRW.js → chunk-DIAWYWT5.js} +6 -1
- package/dist/cli/{chunk-42YHEY2R.mjs → chunk-DUUY2JKP.mjs} +2 -2
- package/dist/cli/{chunk-KCC3FKIW.mjs → chunk-FAG4DFUC.mjs} +1 -1
- package/dist/cli/{chunk-V74O7X2X.mjs → chunk-GEHYAQSI.mjs} +2 -2
- package/dist/cli/{chunk-RDIN3NKA.js → chunk-GEQOPXOS.js} +2 -2
- package/dist/cli/{chunk-E4IXDAZI.mjs → chunk-HBL4PM5Q.mjs} +6 -1
- package/dist/cli/{chunk-4GHEUG6W.js → chunk-HYJKJJUM.js} +20 -20
- package/dist/cli/{chunk-2H4EY7KH.js → chunk-JKVRBCZL.js} +26 -26
- package/dist/cli/{chunk-V2ZITVZA.js → chunk-K2DHO3IM.js} +26 -26
- package/dist/cli/{chunk-R7GGDUOM.mjs → chunk-KKTRHDLN.mjs} +3 -3
- package/dist/cli/{chunk-OX5JAD3D.mjs → chunk-L2FWEP4G.mjs} +4 -4
- package/dist/cli/{chunk-BBYGXP2I.js → chunk-L3JU24MF.js} +12 -12
- package/dist/cli/{chunk-OOVQITRM.js → chunk-LCT6MTYQ.js} +50 -50
- package/dist/cli/{chunk-GJI7C2OU.js → chunk-NBFXQCWM.js} +8 -8
- package/dist/cli/{chunk-CWFN7MUU.mjs → chunk-O765GAOA.mjs} +9 -9
- package/dist/cli/{chunk-T6XBX45B.mjs → chunk-ODWSTSRJ.mjs} +5 -5
- package/dist/cli/{chunk-NUX2QHNC.mjs → chunk-OZDT2CZW.mjs} +1 -1
- package/dist/cli/{chunk-XL4FJX7J.mjs → chunk-P4GMPKMW.mjs} +3 -3
- package/dist/cli/{chunk-CI56TXRS.js → chunk-RR2LZVRA.js} +35 -35
- package/dist/cli/{chunk-EPABMF45.js → chunk-RWK35AB3.js} +6 -6
- package/dist/cli/{chunk-DS7Y7X26.mjs → chunk-SKXQZUMX.mjs} +1 -1
- package/dist/cli/{chunk-RAJP44MZ.mjs → chunk-SMM2EKDC.mjs} +1 -1
- package/dist/cli/{chunk-FGTKAXRJ.js → chunk-SOCWFREM.js} +101 -101
- package/dist/cli/{chunk-HNMQSS7P.js → chunk-SZUU2WTZ.js} +1 -1
- package/dist/cli/{chunk-K23LXA4N.mjs → chunk-TP4TMEML.mjs} +2 -2
- package/dist/cli/{chunk-NIR2UK5V.mjs → chunk-VLQWLPQU.mjs} +1 -1
- package/dist/cli/{chunk-GOHOTLUV.mjs → chunk-WY4W6PRD.mjs} +4 -4
- package/dist/cli/{chunk-GRAEERVE.mjs → chunk-YGMUSZLV.mjs} +3 -3
- package/dist/cli/{csv-L64ECPD5.js → csv-C5Z4OZQN.js} +14 -14
- package/dist/cli/{csv-MP3WOYPE.mjs → csv-HSR32EPA.mjs} +5 -5
- package/dist/cli/{db-RZJK6LGN.js → db-AK4ZYYRP.js} +34 -34
- package/dist/cli/{db-FOV7GHXS.mjs → db-JJGI4J5I.mjs} +7 -7
- package/dist/cli/{describe-R2BEQHVZ.mjs → describe-C35MTKF4.mjs} +16 -16
- package/dist/cli/{describe-WWENJAG2.js → describe-JVSD6F2G.js} +22 -22
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-3LFEK56I.js → executions-ZEA7O4PX.js} +9 -9
- package/dist/cli/{executions-C5WO6TGN.mjs → executions-ZECDB4NA.mjs} +7 -7
- package/dist/cli/{feedback-K6OAZUQ4.mjs → feedback-W7UL4V47.mjs} +5 -5
- package/dist/cli/{feedback-EMWUZ4LV.js → feedback-WQC4SX75.js} +9 -9
- package/dist/cli/git-E7CXCBZZ.js +24 -0
- package/dist/cli/{git-DJLL3OCZ.mjs → git-QBB7LEAV.mjs} +6 -6
- package/dist/cli/index.js +136 -136
- package/dist/cli/index.mjs +38 -38
- package/dist/cli/{legacy-noops-57SRSZ7M.js → legacy-noops-2QPJTEF4.js} +9 -9
- package/dist/cli/{legacy-noops-EAJG56KP.mjs → legacy-noops-E5NFHPKQ.mjs} +6 -6
- package/dist/cli/{monitors-FHTQ6227.mjs → monitors-E56RLT6N.mjs} +7 -7
- package/dist/cli/{monitors-OI57AAIG.js → monitors-MWBA46VZ.js} +93 -93
- package/dist/cli/{org-26EHPBKF.js → org-HGIWXACI.js} +69 -69
- package/dist/cli/{org-YGHFZTWJ.mjs → org-KE2DDK5A.mjs} +7 -7
- package/dist/cli/{play-KBKWTIXK.mjs → play-LGTF4IYG.mjs} +15 -15
- package/dist/cli/{play-PXGYS4DH.js → play-WO5UXBZM.js} +373 -373
- package/dist/cli/{providers-YPFEVK5C.mjs → providers-77KQS23B.mjs} +7 -7
- package/dist/cli/{providers-IZYBWI6M.js → providers-AIJPT54M.js} +10 -10
- package/dist/cli/{quickstart-RBCTFLI3.js → quickstart-CZQFBJVH.js} +7 -7
- package/dist/cli/{quickstart-SJ2M56CV.mjs → quickstart-EFMHLU4T.mjs} +5 -5
- package/dist/cli/{search-PSPZTTKR.mjs → search-U5KEPKNV.mjs} +8 -8
- package/dist/cli/search-XMNR7CYI.js +30 -0
- package/dist/cli/{secrets-XIWKYXGD.js → secrets-CBBR73U4.js} +16 -16
- package/dist/cli/{secrets-BCS4FE5D.mjs → secrets-JYHZIRO4.mjs} +7 -7
- package/dist/cli/{sessions-L3UEERFX.mjs → sessions-T74U74J7.mjs} +6 -6
- package/dist/cli/sessions-XA2EZDXD.js +16 -0
- package/dist/cli/{settings-SFFP7AR5.mjs → settings-C45BH4CU.mjs} +11 -11
- package/dist/cli/{settings-X2GMYBE7.js → settings-ND4437UB.js} +78 -78
- package/dist/cli/{setup-4ERUKDQ5.js → setup-FQ7JS4HM.js} +44 -44
- package/dist/cli/{setup-QIHAXFBL.mjs → setup-QDH6FAEZ.mjs} +9 -9
- package/dist/cli/skills-CSA2YFW6.js +29 -0
- package/dist/cli/{skills-BYNSDIKJ.mjs → skills-ZFSBA754.mjs} +7 -7
- package/dist/cli/tools-GUALRDI7.js +44 -0
- package/dist/cli/{tools-PQSMCIA7.mjs → tools-OVGOFORB.mjs} +15 -15
- package/dist/cli/{update-BI4E6UXI.mjs → update-BNU7VX5M.mjs} +9 -9
- package/dist/cli/update-K4WJSWDB.js +31 -0
- package/dist/cli/{workflow-PMRFMZVP.mjs → workflow-FX6GLQ3H.mjs} +8 -8
- package/dist/cli/{workflow-52P63K65.js → workflow-JSSXWU3T.js} +18 -18
- package/dist/{client-Doml68vC.d.mts → client-BCmnJaL9.d.mts} +1 -1
- package/dist/{client-9nH8tx4R.d.ts → client-BqQ7Rb11.d.ts} +1 -1
- package/dist/{compiler-manifest-CF2qngKr.d.ts → compiler-manifest-CWz_sNOQ.d.mts} +6 -2
- package/dist/{compiler-manifest-CF2qngKr.d.mts → compiler-manifest-CWz_sNOQ.d.ts} +6 -2
- package/dist/{index-Bq37k0sE.d.ts → index-4NPXDzlD.d.ts} +1 -1
- package/dist/{index-DTI-iNw8.d.mts → index-BF2JB_Ug.d.mts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +10 -10
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +96 -96
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -2
- package/dist/plays/csv-data-input.js +3 -3
- package/dist/plays/csv-data-input.mjs +2 -2
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +3 -3
- package/dist/plays/run-request.mjs +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-LXI5K7V6.js +0 -40
- package/dist/cli/git-2BW2UDK6.js +0 -24
- package/dist/cli/search-5CFJRSGN.js +0 -30
- package/dist/cli/sessions-YX2AJF5I.js +0 -16
- package/dist/cli/skills-EOPZVMJS.js +0 -29
- package/dist/cli/tools-UEZW4OD7.js +0 -44
- package/dist/cli/update-6TOZCQ4Y.js +0 -31
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkL3JU24MFjs = require('./chunk-L3JU24MF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2GVUZA6Cjs = require('./chunk-2GVUZA6C.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunk2GVUZA6Cjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkL3JU24MFjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -153,6 +153,9 @@ var ProviderTransientError = (_class = class _ProviderTransientError extends Too
|
|
|
153
153
|
}, _class);
|
|
154
154
|
function getProviderUnavailableReason(error) {
|
|
155
155
|
if (error instanceof ProviderTransientError) return error.category;
|
|
156
|
+
if (error instanceof ToolExecutionError && error.origin === "deepline" && error.category === "rate_limit") {
|
|
157
|
+
return "rate_limit";
|
|
158
|
+
}
|
|
156
159
|
if (error instanceof ToolExecutionError && error.origin === "provider" && error.code === "PROVIDER_ACCOUNT_CAPACITY") {
|
|
157
160
|
return "account_capacity";
|
|
158
161
|
}
|
|
@@ -281,7 +284,9 @@ function normalizeToolExecutionFailure(value) {
|
|
|
281
284
|
operation
|
|
282
285
|
});
|
|
283
286
|
const category = normalizeToolExecutionCategory(value.category);
|
|
284
|
-
const publicDetails = normalizeToolExecutionPublicDetails(
|
|
287
|
+
const publicDetails = normalizeToolExecutionPublicDetails(
|
|
288
|
+
value.publicDetails
|
|
289
|
+
);
|
|
285
290
|
const trustworthy = origin !== "unknown" && category !== "unknown" && typeof value.retryable === "boolean";
|
|
286
291
|
return {
|
|
287
292
|
schemaVersion: TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SMM2EKDC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WY4W6PRD.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TP4TMEML.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-P4GMPKMW.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -16,7 +16,7 @@ var _chunkR2QWSSAGjs = require('./chunk-R2QWSSAG.js');
|
|
|
16
16
|
var _chunkVUYUI35Qjs = require('./chunk-VUYUI35Q.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
20
20
|
|
|
21
21
|
// src/cli/tool-features.ts
|
|
22
22
|
var VIEWS = {
|
|
@@ -92,7 +92,7 @@ async function found(lookup) {
|
|
|
92
92
|
try {
|
|
93
93
|
return await lookup;
|
|
94
94
|
} catch (error) {
|
|
95
|
-
if (error instanceof
|
|
95
|
+
if (error instanceof _chunkDIAWYWT5js.DeeplineError && (error.statusCode === 404 || error.code === "PLAY_NOT_FOUND" || error.code === "NOT_FOUND")) {
|
|
96
96
|
return null;
|
|
97
97
|
}
|
|
98
98
|
throw error;
|
|
@@ -153,6 +153,9 @@ var ProviderTransientError = class _ProviderTransientError extends ToolExecution
|
|
|
153
153
|
};
|
|
154
154
|
function getProviderUnavailableReason(error) {
|
|
155
155
|
if (error instanceof ProviderTransientError) return error.category;
|
|
156
|
+
if (error instanceof ToolExecutionError && error.origin === "deepline" && error.category === "rate_limit") {
|
|
157
|
+
return "rate_limit";
|
|
158
|
+
}
|
|
156
159
|
if (error instanceof ToolExecutionError && error.origin === "provider" && error.code === "PROVIDER_ACCOUNT_CAPACITY") {
|
|
157
160
|
return "account_capacity";
|
|
158
161
|
}
|
|
@@ -281,7 +284,9 @@ function normalizeToolExecutionFailure(value) {
|
|
|
281
284
|
operation
|
|
282
285
|
});
|
|
283
286
|
const category = normalizeToolExecutionCategory(value.category);
|
|
284
|
-
const publicDetails = normalizeToolExecutionPublicDetails(
|
|
287
|
+
const publicDetails = normalizeToolExecutionPublicDetails(
|
|
288
|
+
value.publicDetails
|
|
289
|
+
);
|
|
285
290
|
const trustworthy = origin !== "unknown" && category !== "unknown" && typeof value.retryable === "boolean";
|
|
286
291
|
return {
|
|
287
292
|
schemaVersion: TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2JHQ24ITjs = require('./chunk-2JHQ24IT.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkD5IOUCJSjs = require('./chunk-D5IOUCJS.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkL3JU24MFjs = require('./chunk-L3JU24MF.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk2GVUZA6Cjs = require('./chunk-2GVUZA6C.js');
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -42,7 +42,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
42
42
|
async function reportAutoUpdateEvent(input) {
|
|
43
43
|
let apiKey = "";
|
|
44
44
|
try {
|
|
45
|
-
apiKey =
|
|
45
|
+
apiKey = _chunk2GVUZA6Cjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
46
46
|
} catch (e2) {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
@@ -58,15 +58,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
58
58
|
headers: {
|
|
59
59
|
Authorization: `Bearer ${apiKey}`,
|
|
60
60
|
"Content-Type": "application/json",
|
|
61
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
61
|
+
"User-Agent": `deepline-ts-sdk/${_chunk2GVUZA6Cjs.SDK_VERSION}`,
|
|
62
62
|
"X-Deepline-Client-Family": "sdk",
|
|
63
63
|
"X-Deepline-CLI-Family": "sdk",
|
|
64
|
-
"X-Deepline-CLI-Version":
|
|
65
|
-
"X-Deepline-SDK-Version":
|
|
64
|
+
"X-Deepline-CLI-Version": _chunk2GVUZA6Cjs.SDK_VERSION,
|
|
65
|
+
"X-Deepline-SDK-Version": _chunk2GVUZA6Cjs.SDK_VERSION
|
|
66
66
|
},
|
|
67
67
|
body: JSON.stringify({
|
|
68
68
|
event: input.event,
|
|
69
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
69
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk2GVUZA6Cjs.SDK_VERSION,
|
|
70
70
|
target_version: input.response.latest,
|
|
71
71
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
72
72
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -85,13 +85,13 @@ function envTruthy(name) {
|
|
|
85
85
|
return value === "1" || value === "true" || value === "yes";
|
|
86
86
|
}
|
|
87
87
|
function shouldSkipSelfUpdate(policy) {
|
|
88
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
88
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk2JHQ24ITjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkD5IOUCJSjs.isCiEnvironment.call(void 0, );
|
|
89
89
|
}
|
|
90
90
|
function isDowngradeAutoUpdateResponse(response) {
|
|
91
91
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
92
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
92
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk2GVUZA6Cjs.SDK_VERSION;
|
|
93
93
|
if (!target) return false;
|
|
94
|
-
return
|
|
94
|
+
return _chunk2JHQ24ITjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
95
95
|
}
|
|
96
96
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
97
97
|
return new Promise((resolve) => {
|
|
@@ -144,7 +144,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
144
144
|
}
|
|
145
145
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
146
146
|
const target = response.latest;
|
|
147
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
147
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk2GVUZA6Cjs.SDK_VERSION;
|
|
148
148
|
process.stderr.write(
|
|
149
149
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
150
150
|
`
|
|
@@ -152,21 +152,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
152
152
|
return false;
|
|
153
153
|
}
|
|
154
154
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
155
|
-
const plan =
|
|
155
|
+
const plan = _chunk2JHQ24ITjs.resolveUpdatePlan.call(void 0, {
|
|
156
156
|
packageSpec,
|
|
157
157
|
requireVerifiedNpmOwnership: true,
|
|
158
158
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
159
159
|
});
|
|
160
|
-
if (!
|
|
160
|
+
if (!_chunk2JHQ24ITjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
161
161
|
return false;
|
|
162
162
|
}
|
|
163
163
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
164
164
|
deferredAutoUpdate = async () => {
|
|
165
165
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
166
166
|
};
|
|
167
|
-
if (
|
|
167
|
+
if (_chunkL3JU24MFjs.isJsonOutputMode.call(void 0, )) {
|
|
168
168
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
169
|
-
|
|
169
|
+
_chunkL3JU24MFjs.addJsonNotice.call(void 0, {
|
|
170
170
|
code: "sdk_update_queued",
|
|
171
171
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
172
172
|
});
|
|
@@ -179,7 +179,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
179
179
|
return true;
|
|
180
180
|
}
|
|
181
181
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
182
|
-
if (!
|
|
182
|
+
if (!_chunk2JHQ24ITjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
183
183
|
const autoUpdate = response.auto_update;
|
|
184
184
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
185
185
|
process.stderr.write(
|
|
@@ -192,7 +192,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
192
192
|
event: "started",
|
|
193
193
|
installKind: plan.kind
|
|
194
194
|
});
|
|
195
|
-
const updateResult = await
|
|
195
|
+
const updateResult = await _chunk2JHQ24ITjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
196
196
|
if (updateResult.status === "skipped_previous_failure") {
|
|
197
197
|
void reportAutoUpdateEvent({
|
|
198
198
|
baseUrl,
|
|
@@ -243,7 +243,7 @@ var _crypto = require('crypto');
|
|
|
243
243
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
244
244
|
var activeToolExecuteCommand = null;
|
|
245
245
|
function progressLine(line) {
|
|
246
|
-
if (!
|
|
246
|
+
if (!_chunkL3JU24MFjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
247
247
|
}
|
|
248
248
|
function beginToolExecuteCommand() {
|
|
249
249
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -8,7 +8,7 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
|
8
8
|
var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
12
12
|
|
|
13
13
|
// ../play-runtime/run-lifecycle-policy.ts
|
|
14
14
|
var TERMINAL_PLAY_RUN_STATUSES = /* @__PURE__ */ new Set([
|
|
@@ -79,7 +79,7 @@ var PLAY_RUN_START_STREAM_PATH = `${PLAY_RUN_START_PATH}?stream=true`;
|
|
|
79
79
|
var CLI_PLAY_RUN_START_STREAM_PATH = `${CLI_PLAY_RUN_START_PATH}?stream=true`;
|
|
80
80
|
var PLAY_FILES_STAGE_PATH = "/api/v2/plays/files/stage";
|
|
81
81
|
var PLAY_FILES_STAGE_MINT_PATH = `${PLAY_FILES_STAGE_PATH}/mint`;
|
|
82
|
-
var CliPlayAdmissionUnsupportedError = class extends
|
|
82
|
+
var CliPlayAdmissionUnsupportedError = class extends _chunkDIAWYWT5js.DeeplineError {
|
|
83
83
|
constructor(status) {
|
|
84
84
|
super(
|
|
85
85
|
"This server does not support CLI Play admission.",
|
|
@@ -131,13 +131,13 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
|
|
|
131
131
|
try {
|
|
132
132
|
capability = await http.get(PLAY_RUN_START_PATH, options);
|
|
133
133
|
} catch (error) {
|
|
134
|
-
if (!(error instanceof
|
|
134
|
+
if (!(error instanceof _chunkDIAWYWT5js.DeeplineError) || ![404, 405].includes(_nullishCoalesce(error.statusCode, () => ( 0))))
|
|
135
135
|
throw error;
|
|
136
136
|
}
|
|
137
137
|
if (capability && !["caller-intent-v1", "unsupported"].includes(
|
|
138
138
|
_nullishCoalesce(capability.admissionContract, () => ( ""))
|
|
139
139
|
)) {
|
|
140
|
-
throw new (0,
|
|
140
|
+
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
141
141
|
"The server admission capability response is unknown; execution was not submitted.",
|
|
142
142
|
503,
|
|
143
143
|
"PLAY_RUN_ADMISSION_CAPABILITY_UNKNOWN"
|
|
@@ -147,14 +147,14 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
|
|
|
147
147
|
const supportsCallerIntent = _optionalChain([capability, 'optionalAccess', _5 => _5.admissionContract]) === "caller-intent-v1";
|
|
148
148
|
_optionalChain([options, 'optionalAccess', _6 => _6.signal, 'optionalAccess', _7 => _7.throwIfAborted, 'call', _8 => _8()]);
|
|
149
149
|
if (supportsCallerIntent && (!_optionalChain([capability, 'optionalAccess', _9 => _9.orgId]) || request.admissionOrgId && request.admissionOrgId !== capability.orgId)) {
|
|
150
|
-
throw new (0,
|
|
150
|
+
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
151
151
|
"The admission workspace could not be pinned to this request; execution was not submitted.",
|
|
152
152
|
409,
|
|
153
153
|
"PLAY_RUN_ADMISSION_TENANT_CONFLICT"
|
|
154
154
|
);
|
|
155
155
|
}
|
|
156
156
|
if (request.workflowId && !supportsCallerIntent) {
|
|
157
|
-
throw new (0,
|
|
157
|
+
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
158
158
|
"This server has not enabled caller-owned admission recovery. Do not retry an ambiguous start.",
|
|
159
159
|
409,
|
|
160
160
|
"PLAY_RUN_ADMISSION_RECOVERY_UNSUPPORTED"
|
|
@@ -162,20 +162,20 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
|
|
|
162
162
|
}
|
|
163
163
|
if (request.maxTotalCredits !== void 0 && _optionalChain([capability, 'optionalAccess', _10 => _10.strictTotalBudget]) === "unbounded-v1") {
|
|
164
164
|
if (request.maxTotalCredits === 0) {
|
|
165
|
-
throw new (0,
|
|
165
|
+
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
166
166
|
"A zero-credit total budget cannot admit a Play: sandbox compute is billed even when provider tools are free.",
|
|
167
167
|
422,
|
|
168
168
|
"PLAY_TOTAL_BUDGET_COMPUTE_REQUIRED"
|
|
169
169
|
);
|
|
170
170
|
}
|
|
171
|
-
throw new (0,
|
|
171
|
+
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
172
172
|
"A strict total Play budget cannot currently be admitted: provider operations, Customer DB compute, and additional sandbox sessions do not have a finite admitted upper bound.",
|
|
173
173
|
422,
|
|
174
174
|
"PLAY_TOTAL_BUDGET_UNBOUNDED"
|
|
175
175
|
);
|
|
176
176
|
}
|
|
177
177
|
if (request.maxTotalCredits !== void 0 && _optionalChain([capability, 'optionalAccess', _11 => _11.strictTotalBudget]) !== "fail-closed-v1") {
|
|
178
|
-
throw new (0,
|
|
178
|
+
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
179
179
|
"This server cannot honor a strict total Play budget. Execution was not submitted.",
|
|
180
180
|
409,
|
|
181
181
|
"PLAY_TOTAL_BUDGET_UNSUPPORTED"
|
|
@@ -192,7 +192,7 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
|
|
|
192
192
|
const workflowId = supportsCallerIntent ? _nullishCoalesce(request.workflowId, () => ( _chunkXDVT3GOMjs.buildCallerPlayWorkflowId.call(void 0, _nullishCoalesce(request.name, () => ( "play")), wireBody))) : void 0;
|
|
193
193
|
const submittedBody = workflowId ? { workflowId, ...wireBody } : wireBody;
|
|
194
194
|
if (workflowId && !_chunkXDVT3GOMjs.callerPlayWorkflowIdMatchesRequest.call(void 0, workflowId, submittedBody)) {
|
|
195
|
-
throw new (0,
|
|
195
|
+
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
196
196
|
"workflowId must be the caller run ID of this same immutable request.",
|
|
197
197
|
400,
|
|
198
198
|
"PLAY_RUN_START_INTENT_CONFLICT"
|
|
@@ -200,7 +200,7 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
|
|
|
200
200
|
}
|
|
201
201
|
if (onSubmission) {
|
|
202
202
|
if (!workflowId || !_optionalChain([capability, 'optionalAccess', _12 => _12.orgId])) {
|
|
203
|
-
throw new (0,
|
|
203
|
+
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
204
204
|
"This server cannot persist a recoverable submission intent. Execution was not submitted.",
|
|
205
205
|
409,
|
|
206
206
|
"PLAY_RUN_ADMISSION_RECOVERY_UNSUPPORTED"
|
|
@@ -244,17 +244,17 @@ async function startPlayRun(http, request, headers, options) {
|
|
|
244
244
|
}
|
|
245
245
|
);
|
|
246
246
|
} catch (error) {
|
|
247
|
-
if (_optionalChain([options, 'optionalAccess', _17 => _17.cliAdmission]) && !cliAdmissionSupported && error instanceof
|
|
247
|
+
if (_optionalChain([options, 'optionalAccess', _17 => _17.cliAdmission]) && !cliAdmissionSupported && error instanceof _chunkDIAWYWT5js.DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
|
|
248
248
|
throw new CliPlayAdmissionUnsupportedError(error.statusCode);
|
|
249
249
|
}
|
|
250
|
-
if (error instanceof
|
|
250
|
+
if (error instanceof _chunkDIAWYWT5js.DeeplineError && ["NETWORK_TIMEOUT", "NETWORK_ERROR", "FETCH_FAILED"].includes(
|
|
251
251
|
_nullishCoalesce(error.code, () => ( ""))
|
|
252
252
|
) || error instanceof TypeError || error instanceof Error && ["AbortError", "TimeoutError"].includes(error.name)) {
|
|
253
253
|
const originalMessage = error instanceof Error ? error.message : "Transport failed";
|
|
254
|
-
const failure = new (0,
|
|
254
|
+
const failure = new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
255
255
|
workflowId ? `${originalMessage} Admission outcome is unknown for ${workflowId}. Inspect this run before retrying; reuse this workflowId for the same immutable request.` : `${originalMessage} Admission outcome is unknown. This server did not prove caller-owned recovery support; inspect existing runs before starting again.`,
|
|
256
|
-
error instanceof
|
|
257
|
-
error instanceof
|
|
256
|
+
error instanceof _chunkDIAWYWT5js.DeeplineError ? error.statusCode : void 0,
|
|
257
|
+
error instanceof _chunkDIAWYWT5js.DeeplineError ? error.code : "NETWORK_ERROR",
|
|
258
258
|
{
|
|
259
259
|
...workflowId ? { runId: workflowId, workflowId } : {},
|
|
260
260
|
admissionState: "unknown",
|
|
@@ -271,7 +271,7 @@ async function startPlayRun(http, request, headers, options) {
|
|
|
271
271
|
}
|
|
272
272
|
const started = normalizePlayRunStart(response);
|
|
273
273
|
if (_optionalChain([options, 'optionalAccess', _18 => _18.cliAdmission]) && (!started.workflowId || started.workflowId === "pending")) {
|
|
274
|
-
throw new (0,
|
|
274
|
+
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
275
275
|
"Play admission returned no run id. Check recent runs before submitting again.",
|
|
276
276
|
void 0,
|
|
277
277
|
"PLAY_START_MISSING_RUN_ID"
|
|
@@ -427,10 +427,10 @@ function stagedUploadIdentity(logicalPath, contentHash) {
|
|
|
427
427
|
return `${contentHash}:${logicalPath}`;
|
|
428
428
|
}
|
|
429
429
|
function isStagedUploadMintUnsupported(error) {
|
|
430
|
-
return error instanceof
|
|
430
|
+
return error instanceof _chunkDIAWYWT5js.DeeplineError && error.statusCode === 404;
|
|
431
431
|
}
|
|
432
432
|
function isStagedUploadDirectEgressDenied(error) {
|
|
433
|
-
return error instanceof
|
|
433
|
+
return error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "STAGED_FILE_UPLOAD_EGRESS_DENIED";
|
|
434
434
|
}
|
|
435
435
|
function formatMegabytes(bytes) {
|
|
436
436
|
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
|
@@ -461,7 +461,7 @@ async function uploadStagedFileToPresignedUrl(input) {
|
|
|
461
461
|
}
|
|
462
462
|
const text = await response.text().catch(() => "");
|
|
463
463
|
const egressDenied = response.status === 403 && _optionalChain([response, 'access', _23 => _23.headers, 'access', _24 => _24.get, 'call', _25 => _25("x-deny-reason"), 'optionalAccess', _26 => _26.trim, 'call', _27 => _27(), 'access', _28 => _28.toLowerCase, 'call', _29 => _29()]) === "host_not_allowed";
|
|
464
|
-
lastError = new (0,
|
|
464
|
+
lastError = new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
465
465
|
`Direct storage upload of ${input.logicalPath} failed: ${response.status} ${text.slice(0, 200)}`,
|
|
466
466
|
response.status,
|
|
467
467
|
egressDenied ? "STAGED_FILE_UPLOAD_EGRESS_DENIED" : "STAGED_FILE_UPLOAD_FAILED",
|
|
@@ -471,7 +471,7 @@ async function uploadStagedFileToPresignedUrl(input) {
|
|
|
471
471
|
break;
|
|
472
472
|
}
|
|
473
473
|
} catch (error) {
|
|
474
|
-
lastError = error instanceof TypeError ? new (0,
|
|
474
|
+
lastError = error instanceof TypeError ? new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
475
475
|
`Direct storage upload of ${input.logicalPath} could not reach the storage endpoint: ${error.message}`,
|
|
476
476
|
void 0,
|
|
477
477
|
"STAGED_FILE_UPLOAD_EGRESS_DENIED",
|
|
@@ -482,7 +482,7 @@ async function uploadStagedFileToPresignedUrl(input) {
|
|
|
482
482
|
await sleep(250 * attempt);
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
throw lastError instanceof Error ? lastError : new (0,
|
|
485
|
+
throw lastError instanceof Error ? lastError : new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
486
486
|
`Direct storage upload of ${input.logicalPath} failed.`,
|
|
487
487
|
void 0,
|
|
488
488
|
"STAGED_FILE_UPLOAD_FAILED",
|
|
@@ -497,7 +497,7 @@ async function stagePlayFilesViaMultipart(http, files, reason = "mint-unsupporte
|
|
|
497
497
|
for (const file of files) {
|
|
498
498
|
if (file.bytes > STAGE_LEGACY_MULTIPART_MAX_BYTES) {
|
|
499
499
|
const reasonMessage = reason === "direct-egress-denied" ? "direct storage is blocked by this environment's network egress policy" : "the connected Deepline server does not support direct-to-storage uploads";
|
|
500
|
-
throw new (0,
|
|
500
|
+
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
501
501
|
`Cannot stage ${file.logicalPath} (${formatMegabytes(file.bytes)}): ${reasonMessage}, and this file exceeds the ~4.5MB request-body limit the legacy upload path is subject to.`,
|
|
502
502
|
413,
|
|
503
503
|
"STAGED_FILE_TOO_LARGE_FOR_LEGACY_UPLOAD",
|
|
@@ -571,7 +571,7 @@ async function stagePlayFiles(http, files) {
|
|
|
571
571
|
stagedUploadIdentity(file.logicalPath, file.contentHash)
|
|
572
572
|
);
|
|
573
573
|
if (!upload) {
|
|
574
|
-
throw new (0,
|
|
574
|
+
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
575
575
|
`The staging server did not return an upload target for ${file.logicalPath}.`,
|
|
576
576
|
void 0,
|
|
577
577
|
"STAGED_FILE_MINT_INCOMPLETE"
|
|
@@ -607,7 +607,7 @@ async function stagePlayFiles(http, files) {
|
|
|
607
607
|
"direct-egress-denied"
|
|
608
608
|
);
|
|
609
609
|
if (!ref) {
|
|
610
|
-
throw new (0,
|
|
610
|
+
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
611
611
|
`The staging server did not return an upload target for ${result.fallbackFile.logicalPath}.`,
|
|
612
612
|
void 0,
|
|
613
613
|
"STAGED_FILE_MINT_INCOMPLETE"
|
|
@@ -675,7 +675,7 @@ function createSessionPlayRunHttp(fetchImpl = (...args) => fetch(...args)) {
|
|
|
675
675
|
} catch (e) {
|
|
676
676
|
}
|
|
677
677
|
if (!response.ok) {
|
|
678
|
-
throw new (0,
|
|
678
|
+
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
679
679
|
_chunkXNYIZMNQjs.apiErrorMessage.call(void 0, parsed, response.status),
|
|
680
680
|
response.status,
|
|
681
681
|
_chunkXNYIZMNQjs.apiErrorCodeFromResponse.call(void 0, parsed),
|