deepline 0.3.520 → 0.3.522
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/plays/client-core.ts +16 -45
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +0 -18
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +0 -155
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +8 -1
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +24 -0
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +1 -54
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -7
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +0 -13
- package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +0 -56
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +10 -21
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +2 -37
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +3 -74
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +2 -226
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +3 -36
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +0 -26
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +1 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +0 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +9 -49
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +11 -447
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +5 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +12 -207
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +3 -17
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-progress-registry.ts +0 -9
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +2 -18
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +15 -175
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +0 -4
- package/dist/cli/{artifacts-4DSPSIU5.js → artifacts-GIZZH5VA.js} +20 -20
- package/dist/cli/{artifacts-D6PU7SBC.mjs → artifacts-RY2MK74N.mjs} +8 -8
- package/dist/cli/auth-JSES2JOQ.js +43 -0
- package/dist/cli/{auth-MXKNPUXW.mjs → auth-YIBY5IKT.mjs} +5 -5
- package/dist/cli/{billing-SQ26NKGH.mjs → billing-G3IX3SNY.mjs} +8 -8
- package/dist/cli/{billing-WEYCNJIR.js → billing-UDKL53GI.js} +81 -81
- package/dist/cli/{chunk-6Y3DDRRN.js → chunk-2KHUFWTK.js} +3 -3
- package/dist/cli/{chunk-4VR5OTYP.js → chunk-37SXIFIU.js} +44 -44
- package/dist/cli/{chunk-QSWPDYOP.mjs → chunk-3KMGVOBM.mjs} +4 -4
- package/dist/cli/{chunk-7VJKHJY7.js → chunk-4DFWDA2Q.js} +14 -14
- package/dist/cli/{chunk-VSPNBBRT.js → chunk-4MF44THR.js} +66 -119
- package/dist/cli/{chunk-NLIO6QLP.mjs → chunk-4TUMKJZX.mjs} +2 -2
- package/dist/cli/{chunk-KKSMHTQO.mjs → chunk-52MHE7B4.mjs} +1 -1
- package/dist/cli/{chunk-AVW2LKRF.js → chunk-534YYHIF.js} +6 -6
- package/dist/cli/{chunk-QQGRQRCS.mjs → chunk-5477PEHL.mjs} +1 -1
- package/dist/cli/{chunk-YHHLLONU.js → chunk-5BQPEHEP.js} +14 -14
- package/dist/cli/{chunk-GVTHFDKN.js → chunk-5H22VJPE.js} +6 -6
- package/dist/cli/{chunk-LUIPBI6P.js → chunk-6SJPZV5E.js} +2 -2
- package/dist/cli/{chunk-NNUJQ5O2.mjs → chunk-7J5PLHII.mjs} +1 -1
- package/dist/cli/{chunk-I4GBCKBL.js → chunk-7JEN3FX4.js} +5 -5
- package/dist/cli/{chunk-VSLU4JZV.mjs → chunk-BONXEWYF.mjs} +3 -3
- package/dist/cli/{chunk-AM7HMWNA.js → chunk-BZY335JP.js} +5 -5
- package/dist/cli/{chunk-YP3G2CP6.mjs → chunk-C6WGMODR.mjs} +2 -2
- package/dist/cli/{chunk-V6BUWQBI.mjs → chunk-CFXERH7F.mjs} +1 -1
- package/dist/cli/{chunk-ORAWUIMN.js → chunk-DARD7TJ7.js} +53 -53
- package/dist/cli/{chunk-BHAP6FIZ.js → chunk-DLDWAPA5.js} +4 -4
- package/dist/cli/{chunk-FWGTBR3W.js → chunk-DNJJ3ULJ.js} +2 -2
- package/dist/cli/{chunk-Y5QYWFRI.js → chunk-DRDZBRXV.js} +7 -7
- package/dist/cli/{chunk-JO2MQ6XR.js → chunk-EJBW7Y6Z.js} +98 -98
- package/dist/cli/{chunk-2EDGA7OE.mjs → chunk-ENWJFUWK.mjs} +2 -2
- package/dist/cli/{chunk-6XJA23MZ.js → chunk-F5D623KO.js} +26 -26
- package/dist/cli/{chunk-HT675XNR.mjs → chunk-FKD3KL5Q.mjs} +1 -1
- package/dist/cli/{chunk-2BJILUE3.js → chunk-FNHUDCJE.js} +10 -10
- package/dist/cli/{chunk-XU57CH42.mjs → chunk-FQQAAR3Q.mjs} +1 -1
- package/dist/cli/{chunk-6T2LB43P.mjs → chunk-G65FJ5JX.mjs} +2 -2
- package/dist/cli/{chunk-UA4MXESL.js → chunk-GMYDVW7Z.js} +3 -3
- package/dist/cli/{chunk-74MOIEDC.js → chunk-GVKW3LCA.js} +11 -11
- package/dist/cli/{chunk-D5VTWJ7K.js → chunk-ISUUSSS4.js} +16 -16
- package/dist/cli/{chunk-KTAOVRXT.js → chunk-KMBF3N2Z.js} +16 -16
- package/dist/cli/{chunk-5TEXJM6F.mjs → chunk-LFSOBW7E.mjs} +11 -11
- package/dist/cli/{chunk-A5VR463F.mjs → chunk-MD524MRB.mjs} +1 -1
- package/dist/cli/{chunk-NPRSGUHB.mjs → chunk-NDNG3MAT.mjs} +5 -5
- package/dist/cli/{chunk-NWSKBWQM.mjs → chunk-OAQIVJFY.mjs} +2 -2
- package/dist/cli/{chunk-6VY2SJ6B.mjs → chunk-PDLRUZ42.mjs} +5 -5
- package/dist/cli/{chunk-M6YHS5V7.mjs → chunk-RDJTCW3I.mjs} +3 -3
- package/dist/cli/{chunk-3YHS4BLB.js → chunk-RI672VNY.js} +2 -2
- package/dist/cli/{chunk-TQTQ3YYA.mjs → chunk-RKE5YTHY.mjs} +5 -5
- package/dist/cli/{chunk-SHB2BNI6.mjs → chunk-SFMCKB57.mjs} +37 -90
- package/dist/cli/{chunk-BMCRTI6Z.mjs → chunk-UBKA33KY.mjs} +1 -22
- package/dist/cli/{chunk-6GI7BYSL.mjs → chunk-UV6XCHOZ.mjs} +1 -1
- package/dist/cli/{chunk-U5646OVV.mjs → chunk-VFCVH2LV.mjs} +5 -5
- package/dist/cli/{chunk-7QAX5VBT.js → chunk-VIM6I7RC.js} +41 -41
- package/dist/cli/{chunk-WSGXBROE.js → chunk-XDVT3GOM.js} +1 -22
- package/dist/cli/{chunk-KCISDDNK.mjs → chunk-XR6TN5DT.mjs} +6 -6
- package/dist/cli/{chunk-XXDY7K7F.js → chunk-XT25FX6T.js} +3 -3
- package/dist/cli/{chunk-ASGGZ6BI.mjs → chunk-XXY4E57R.mjs} +2 -2
- package/dist/cli/{chunk-YVQLXMJU.mjs → chunk-Y3LDRCMB.mjs} +3 -3
- package/dist/cli/{chunk-5ECMRQCL.js → chunk-ZUAKRBZB.js} +1 -1
- package/dist/cli/{chunk-DQQ6FDE6.mjs → chunk-ZZ7U4YJS.mjs} +1 -1
- package/dist/cli/{chunk-LYIJ3YUP.js → chunk-ZZLZCO6Y.js} +22 -22
- package/dist/cli/{csv-VJNR6FOZ.js → csv-3HIE4VCO.js} +13 -13
- package/dist/cli/{csv-T7HIELZ2.mjs → csv-PE35WGRO.mjs} +4 -4
- package/dist/cli/{db-OE2EXZXL.mjs → db-L7ZMMQKW.mjs} +8 -8
- package/dist/cli/{db-JF2I54V7.js → db-O2YRTTDO.js} +29 -29
- package/dist/cli/describe-EB336DAO.js +50 -0
- package/dist/cli/{describe-HXZZC3LC.mjs → describe-NI324Y2M.mjs} +20 -20
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-4BXRIJFF.mjs → executions-T6KU2OKK.mjs} +8 -8
- package/dist/cli/{executions-UQ2H6MJZ.js → executions-VH4DKLFI.js} +10 -10
- package/dist/cli/{feedback-TXF5CQKA.mjs → feedback-SCSJC3FX.mjs} +5 -5
- package/dist/cli/{feedback-MKFN7DYY.js → feedback-ZLC6G5OK.js} +10 -10
- package/dist/cli/git-23T7TXAH.js +25 -0
- package/dist/cli/{git-MG3NAV65.mjs → git-I4LVQCID.mjs} +5 -5
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-XSDY46XD.mjs → legacy-noops-44FQ2256.mjs} +6 -6
- package/dist/cli/{legacy-noops-R76I2OWW.js → legacy-noops-UPFWEHPG.js} +9 -9
- package/dist/cli/{monitors-FS3DIDM7.js → monitors-JN6IQGK6.js} +102 -102
- package/dist/cli/{monitors-NVT5YQKV.mjs → monitors-LMSASWXE.mjs} +9 -9
- package/dist/cli/{org-SBI6FC6D.js → org-F7O3ZU5O.js} +74 -74
- package/dist/cli/{org-XU7JONWS.mjs → org-QYLVEE7A.mjs} +8 -8
- package/dist/cli/{pages-AFB5DVBR.mjs → pages-5XE4LBZN.mjs} +8 -8
- package/dist/cli/{pages-2CZFJJV6.js → pages-KEL3Y4L4.js} +20 -20
- package/dist/cli/{play-EQEIT5S4.mjs → play-MWQG3G32.mjs} +21 -21
- package/dist/cli/{play-WZH72UGC.js → play-OURHH6KV.js} +338 -338
- package/dist/cli/{providers-3VXTATHF.mjs → providers-IQY7LUBB.mjs} +8 -8
- package/dist/cli/{providers-SHSVUQA3.js → providers-ZCBWPE3C.js} +11 -11
- package/dist/cli/{quickstart-45YS4SOD.mjs → quickstart-L45NGRMI.mjs} +4 -4
- package/dist/cli/{quickstart-KPVPK3VL.js → quickstart-O53OXTN6.js} +6 -6
- package/dist/cli/{run-XEHRZT57.mjs → run-VCSIWLEU.mjs} +25 -25
- package/dist/cli/{run-U5RWBX5J.js → run-W745Z3Z5.js} +43 -43
- package/dist/cli/run-identity-G257GQED.js +25 -0
- package/dist/cli/{run-identity-MNRZS2N3.mjs → run-identity-MRNCEGV2.mjs} +3 -9
- package/dist/cli/search-R6K7ZAMU.js +33 -0
- package/dist/cli/{search-V7XIWBQ2.mjs → search-THELKULN.mjs} +10 -10
- package/dist/cli/{search-output-3KAJUV2A.mjs → search-output-N7MJLYYD.mjs} +4 -4
- package/dist/cli/{search-output-ZNIICV5Z.js → search-output-SJW7LEOM.js} +6 -6
- package/dist/cli/{secrets-SCSG3QXJ.mjs → secrets-44ST3FJH.mjs} +8 -8
- package/dist/cli/{secrets-53TUV6JK.js → secrets-GDXPX3KB.js} +17 -17
- package/dist/cli/sessions-2V5ZFOWL.js +18 -0
- package/dist/cli/{sessions-MCTHLLK3.mjs → sessions-LYCBI77S.mjs} +6 -6
- package/dist/cli/{settings-ZNOXOIX2.js → settings-3WOFF642.js} +88 -88
- package/dist/cli/{settings-Q2HKACSE.mjs → settings-GXPDMJFG.mjs} +15 -15
- package/dist/cli/{setup-GO4EULLY.js → setup-YHLMBJP4.js} +50 -50
- package/dist/cli/{setup-WKM35SZJ.mjs → setup-YM6JEB64.mjs} +10 -10
- package/dist/cli/{skills-DZZLW6OV.mjs → skills-WX4XWEAT.mjs} +8 -8
- package/dist/cli/skills-XNGADDO6.js +37 -0
- package/dist/cli/{tools-EKVSK6X4.mjs → tools-K24VSQ7S.mjs} +19 -19
- package/dist/cli/tools-ROUMCB7B.js +57 -0
- package/dist/cli/{update-FPHYVHSC.mjs → update-PSSCF5AT.mjs} +10 -10
- package/dist/cli/update-RXURGIRW.js +35 -0
- package/dist/cli/{workflow-5YAZK5EI.mjs → workflow-DGOPYATO.mjs} +9 -9
- package/dist/cli/{workflow-27H3NCNY.js → workflow-FPVI3NIA.js} +19 -19
- package/dist/{client-DhEOE19l.d.ts → client-B-2Am2y6.d.ts} +1 -1
- package/dist/{client-lJmz2QwF.d.mts → client-DA71-2_u.d.mts} +1 -1
- package/dist/{client-core-BGiSMrBD.d.mts → client-core-BXbds1cb.d.mts} +0 -19
- package/dist/{client-core-DYCGaRBZ.d.ts → client-core-C0IzDKMJ.d.ts} +0 -19
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +19 -19
- package/dist/index.mjs +8 -8
- package/dist/install-integrity.json +114 -122
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- 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/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +7 -7
- package/dist/server.mjs +5 -5
- package/package.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-app-transport.ts +0 -374
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-egress.ts +0 -55
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-profile.ts +0 -329
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-sandbox-credential.ts +0 -338
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-staging.ts +0 -417
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-attempt.ts +0 -81
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-journal.ts +0 -708
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-teardown.ts +0 -160
- package/dist/cli/auth-TH4JV6BH.js +0 -43
- package/dist/cli/describe-4FLGKRCA.js +0 -50
- package/dist/cli/git-B2QO3SLK.js +0 -25
- package/dist/cli/run-identity-HFYABUJS.js +0 -31
- package/dist/cli/search-Z2V43OPM.js +0 -33
- package/dist/cli/sessions-BOJCVLR7.js +0 -18
- package/dist/cli/skills-B4BAH2B2.js +0 -37
- package/dist/cli/tools-Z5NCKIAB.js +0 -57
- package/dist/cli/update-XCL7F5T6.js +0 -35
|
@@ -20,7 +20,7 @@ var _chunkE4CABWXLjs = require('./chunk-E4CABWXL.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkDLDWAPA5js = require('./chunk-DLDWAPA5.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
|
|
@@ -674,7 +674,7 @@ var ToolCalls = class {
|
|
|
674
674
|
idempotencyKey,
|
|
675
675
|
onResponse: (response2) => {
|
|
676
676
|
lastResponse = null;
|
|
677
|
-
atomicToolsSupported = response2.headers.get(
|
|
677
|
+
atomicToolsSupported = response2.headers.get(_chunkDLDWAPA5js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
678
678
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
679
679
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
680
680
|
try {
|
|
@@ -866,52 +866,8 @@ var ToolCalls = class {
|
|
|
866
866
|
}
|
|
867
867
|
};
|
|
868
868
|
|
|
869
|
-
// ../play-runtime/output-size-limits.ts
|
|
870
|
-
var TERMINAL_RUN_RESULT_MAX_BYTES = 6 * 1024 * 1024;
|
|
871
|
-
var LEDGER_TERMINAL_RESULT_MAX_BYTES = 256 * 1024;
|
|
872
|
-
var CUSTOMER_OUTPUT_VALUE_MAX_BYTES = 5 * 1024 * 1024;
|
|
873
|
-
var CUSTOMER_OUTPUT_TOTAL_MAX_BYTES = 5 * 1024 * 1024;
|
|
874
|
-
var RUNTIME_RECEIPT_OUTPUT_MAX_BYTES = 10 * 1024 * 1024;
|
|
875
|
-
var RUNTIME_RECEIPT_COMPLETION_BUFFER_MAX_BYTES = 32 * 1024 * 1024;
|
|
876
|
-
var RUNTIME_RECEIPT_CONTROL_BUFFER_MAX_BYTES = 2 * 1024 * 1024;
|
|
877
|
-
var RUNNER_TERMINAL_PUSH_MAX_BODY_BYTES = 16 * 1024 * 1024;
|
|
878
|
-
var RUNTIME_SHEET_START_TARGET_BODY_BYTES = 12 * 1024 * 1024;
|
|
879
|
-
var RUNTIME_RECEIPT_GATEWAY_BATCH_MAX_BYTES = 12 * 1024 * 1024;
|
|
880
|
-
var RUNTIME_RECEIPT_WRITER_TARGET_BATCH_BYTES = 8 * 1024 * 1024;
|
|
881
|
-
var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
|
|
882
|
-
var JSON_SIZE_LIMIT_REACHED = Symbol("JSON_SIZE_LIMIT_REACHED");
|
|
883
|
-
var OMIT_JSON_OUTPUT_VALUE = Symbol("OMIT_JSON_OUTPUT_VALUE");
|
|
884
|
-
|
|
885
|
-
// ../play-runtime/runtime-gateway-profile.ts
|
|
886
|
-
var RUNTIME_GATEWAY_PROFILE_IDS = {
|
|
887
|
-
vercelApp: "vercel_app@1"
|
|
888
|
-
};
|
|
889
|
-
var RUNTIME_GATEWAY_PROFILES = Object.freeze({
|
|
890
|
-
[RUNTIME_GATEWAY_PROFILE_IDS.vercelApp]: Object.freeze({
|
|
891
|
-
id: RUNTIME_GATEWAY_PROFILE_IDS.vercelApp,
|
|
892
|
-
hosting: "admitting_app_deployment",
|
|
893
|
-
receiptPath: "/api/receipt",
|
|
894
|
-
executionPath: "/api/execution",
|
|
895
|
-
maxPinAgeMs: 6 * 60 * 60 * 1e3,
|
|
896
|
-
poolMaxClients: 2,
|
|
897
|
-
requestBodyMaxBytes: RUNNER_TERMINAL_PUSH_MAX_BODY_BYTES
|
|
898
|
-
})
|
|
899
|
-
});
|
|
900
|
-
var RUNTIME_GATEWAY_PROFILE_ID_SET = new Set(
|
|
901
|
-
Object.values(RUNTIME_GATEWAY_PROFILE_IDS)
|
|
902
|
-
);
|
|
903
|
-
function normalizeRuntimeGatewayProfileId(value) {
|
|
904
|
-
if (typeof value !== "string") return void 0;
|
|
905
|
-
const normalized = value.trim();
|
|
906
|
-
return RUNTIME_GATEWAY_PROFILE_ID_SET.has(normalized) ? normalized : void 0;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
869
|
// ../play-runtime/runtime-environment.ts
|
|
910
870
|
var PLAY_RUNTIME_ENVIRONMENTS = ["preview"];
|
|
911
|
-
function selectedGatewayProfile(value) {
|
|
912
|
-
if (value === void 0) return void 0;
|
|
913
|
-
return _nullishCoalesce(normalizeRuntimeGatewayProfileId(value), () => ( null));
|
|
914
|
-
}
|
|
915
871
|
var PLAY_RUNTIME_NAMESPACE_PATTERN = /^[a-z][a-z0-9-]{0,30}$/;
|
|
916
872
|
var PLAY_RUNTIME_SANDBOX_PLACEMENT_POLICY_PATTERN = /^[a-z][a-z0-9_]*@[1-9][0-9]*$/;
|
|
917
873
|
function normalizePlayRuntimeNamespace(value) {
|
|
@@ -928,12 +884,10 @@ function normalizePlayRuntimeSelection(value) {
|
|
|
928
884
|
if (!value || typeof value !== "object" || Array.isArray(value)) return null;
|
|
929
885
|
const record = value;
|
|
930
886
|
if (Object.keys(record).some(
|
|
931
|
-
(key) => key !== "environment" && key !== "namespace" && key !== "backend" && key !== "sandboxPlacementPolicy"
|
|
887
|
+
(key) => key !== "environment" && key !== "namespace" && key !== "backend" && key !== "sandboxPlacementPolicy"
|
|
932
888
|
) || record.environment !== "preview") {
|
|
933
889
|
return null;
|
|
934
890
|
}
|
|
935
|
-
const gatewayProfile = selectedGatewayProfile(record.gatewayProfile);
|
|
936
|
-
if (gatewayProfile === null) return null;
|
|
937
891
|
const namespace = normalizePlayRuntimeNamespace(record.namespace);
|
|
938
892
|
if (!namespace) return null;
|
|
939
893
|
const sandboxPlacementPolicy = record.sandboxPlacementPolicy === void 0 ? void 0 : normalizePlayRuntimeSandboxPlacementPolicy(
|
|
@@ -949,8 +903,7 @@ function normalizePlayRuntimeSelection(value) {
|
|
|
949
903
|
environment: "preview",
|
|
950
904
|
namespace,
|
|
951
905
|
...record.backend === void 0 ? {} : { backend: record.backend },
|
|
952
|
-
...sandboxPlacementPolicy ? { sandboxPlacementPolicy } : {}
|
|
953
|
-
...gatewayProfile ? { gatewayProfile } : {}
|
|
906
|
+
...sandboxPlacementPolicy ? { sandboxPlacementPolicy } : {}
|
|
954
907
|
};
|
|
955
908
|
}
|
|
956
909
|
function normalizePlayRunRuntimeSelection(value) {
|
|
@@ -960,24 +913,14 @@ function normalizePlayRunRuntimeSelection(value) {
|
|
|
960
913
|
return normalizePlayRuntimeSelection(value);
|
|
961
914
|
}
|
|
962
915
|
if (Object.keys(record).some(
|
|
963
|
-
(key) => key !== "environment" && key !== "sandboxPlacementPolicy"
|
|
916
|
+
(key) => key !== "environment" && key !== "sandboxPlacementPolicy"
|
|
964
917
|
)) {
|
|
965
918
|
return null;
|
|
966
919
|
}
|
|
967
|
-
const gatewayProfile = selectedGatewayProfile(record.gatewayProfile);
|
|
968
|
-
if (gatewayProfile === null) return null;
|
|
969
|
-
if (record.sandboxPlacementPolicy === void 0) {
|
|
970
|
-
return gatewayProfile ? { environment: "native", gatewayProfile } : null;
|
|
971
|
-
}
|
|
972
920
|
const sandboxPlacementPolicy = normalizePlayRuntimeSandboxPlacementPolicy(
|
|
973
921
|
record.sandboxPlacementPolicy
|
|
974
922
|
);
|
|
975
|
-
|
|
976
|
-
return {
|
|
977
|
-
environment: "native",
|
|
978
|
-
sandboxPlacementPolicy,
|
|
979
|
-
...gatewayProfile ? { gatewayProfile } : {}
|
|
980
|
-
};
|
|
923
|
+
return sandboxPlacementPolicy ? { environment: "native", sandboxPlacementPolicy } : null;
|
|
981
924
|
}
|
|
982
925
|
function normalizePlayRuntimeEnvironment(value) {
|
|
983
926
|
return typeof value === "string" && PLAY_RUNTIME_ENVIRONMENTS.includes(value) ? value : null;
|
|
@@ -1011,18 +954,21 @@ function resolvePlayRunRuntimeSelection(request, env) {
|
|
|
1011
954
|
const configuredNamespace = _optionalChain([env, 'access', _37 => _37.DEEPLINE_RUNTIME_NAMESPACE, 'optionalAccess', _38 => _38.trim, 'call', _39 => _39()]);
|
|
1012
955
|
const configuredToken = _optionalChain([env, 'access', _40 => _40.DEEPLINE_RUNTIME_ENVIRONMENT_TOKEN, 'optionalAccess', _41 => _41.trim, 'call', _42 => _42()]);
|
|
1013
956
|
const configuredPlacementPolicy = _optionalChain([env, 'access', _43 => _43.DEEPLINE_RUNTIME_SANDBOX_PLACEMENT_POLICY, 'optionalAccess', _44 => _44.trim, 'call', _45 => _45()]);
|
|
1014
|
-
|
|
957
|
+
if (_optionalChain([env, 'access', _46 => _46.DEEPLINE_RUNTIME_GATEWAY_PROFILE, 'optionalAccess', _47 => _47.trim, 'call', _48 => _48()])) {
|
|
958
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
959
|
+
"DEEPLINE_RUNTIME_GATEWAY_PROFILE was removed: Runtime gateway profiles (vercel_app@1) are no longer available. Unset it to run on the default gateways.",
|
|
960
|
+
void 0,
|
|
961
|
+
"RUNTIME_GATEWAY_PROFILE_REMOVED"
|
|
962
|
+
);
|
|
963
|
+
}
|
|
1015
964
|
if (!configured) {
|
|
1016
|
-
if (configuredNamespace || configuredToken || configuredPlacementPolicy
|
|
965
|
+
if (configuredNamespace || configuredToken || configuredPlacementPolicy) {
|
|
1017
966
|
const present = [];
|
|
1018
967
|
if (configuredNamespace) present.push("DEEPLINE_RUNTIME_NAMESPACE");
|
|
1019
968
|
if (configuredToken) present.push("DEEPLINE_RUNTIME_ENVIRONMENT_TOKEN");
|
|
1020
969
|
if (configuredPlacementPolicy) {
|
|
1021
970
|
present.push("DEEPLINE_RUNTIME_SANDBOX_PLACEMENT_POLICY");
|
|
1022
971
|
}
|
|
1023
|
-
if (configuredGatewayProfile) {
|
|
1024
|
-
present.push("DEEPLINE_RUNTIME_GATEWAY_PROFILE");
|
|
1025
|
-
}
|
|
1026
972
|
const isPlural = present.length > 1;
|
|
1027
973
|
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
1028
974
|
[
|
|
@@ -1037,32 +983,18 @@ function resolvePlayRunRuntimeSelection(request, env) {
|
|
|
1037
983
|
}
|
|
1038
984
|
return void 0;
|
|
1039
985
|
}
|
|
1040
|
-
const selectedGatewayProfile2 = configuredGatewayProfile ? normalizeRuntimeGatewayProfileId(configuredGatewayProfile) : void 0;
|
|
1041
|
-
if (configuredGatewayProfile && !selectedGatewayProfile2) {
|
|
1042
|
-
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
1043
|
-
`DEEPLINE_RUNTIME_GATEWAY_PROFILE must be a supported versioned gateway profile id such as vercel_app@1. Received "${configuredGatewayProfile}".`,
|
|
1044
|
-
void 0,
|
|
1045
|
-
"INVALID_RUNTIME_GATEWAY_PROFILE"
|
|
1046
|
-
);
|
|
1047
|
-
}
|
|
1048
|
-
const gatewayProfile = selectedGatewayProfile2 ? { gatewayProfile: selectedGatewayProfile2 } : {};
|
|
1049
986
|
if (configured === "native") {
|
|
1050
|
-
const sandboxPlacementPolicy =
|
|
1051
|
-
|
|
987
|
+
const sandboxPlacementPolicy = normalizePlayRuntimeSandboxPlacementPolicy(
|
|
988
|
+
configuredPlacementPolicy
|
|
989
|
+
);
|
|
990
|
+
if (configuredNamespace || !sandboxPlacementPolicy) {
|
|
1052
991
|
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
1053
|
-
"DEEPLINE_RUNTIME_ENVIRONMENT=native requires DEEPLINE_RUNTIME_SANDBOX_PLACEMENT_POLICY (such as modal_only@1) and
|
|
992
|
+
"DEEPLINE_RUNTIME_ENVIRONMENT=native requires DEEPLINE_RUNTIME_SANDBOX_PLACEMENT_POLICY (such as modal_only@1) and no DEEPLINE_RUNTIME_NAMESPACE.",
|
|
1054
993
|
void 0,
|
|
1055
994
|
"INVALID_RUNTIME_ENVIRONMENT"
|
|
1056
995
|
);
|
|
1057
996
|
}
|
|
1058
|
-
|
|
1059
|
-
return {
|
|
1060
|
-
environment: "native",
|
|
1061
|
-
sandboxPlacementPolicy,
|
|
1062
|
-
...gatewayProfile
|
|
1063
|
-
};
|
|
1064
|
-
}
|
|
1065
|
-
return { environment: "native", gatewayProfile: selectedGatewayProfile2 };
|
|
997
|
+
return { environment: "native", sandboxPlacementPolicy };
|
|
1066
998
|
}
|
|
1067
999
|
const environment = normalizePlayRuntimeEnvironment(configured);
|
|
1068
1000
|
if (!environment) {
|
|
@@ -1100,8 +1032,7 @@ function resolvePlayRunRuntimeSelection(request, env) {
|
|
|
1100
1032
|
environment,
|
|
1101
1033
|
namespace,
|
|
1102
1034
|
...configuredBackend ? { backend: configuredBackend } : {},
|
|
1103
|
-
...configuredPlacementPolicy ? { sandboxPlacementPolicy: configuredPlacementPolicy } : {}
|
|
1104
|
-
...gatewayProfile
|
|
1035
|
+
...configuredPlacementPolicy ? { sandboxPlacementPolicy: configuredPlacementPolicy } : {}
|
|
1105
1036
|
};
|
|
1106
1037
|
}
|
|
1107
1038
|
function resolveStartPlayRunRequest(request, env) {
|
|
@@ -1129,8 +1060,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1129
1060
|
}
|
|
1130
1061
|
const receivers = _optionalChain([env, 'access', _55 => _55.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _56 => _56.trim, 'call', _57 => _57()]);
|
|
1131
1062
|
return {
|
|
1132
|
-
[
|
|
1133
|
-
...receivers ? { [
|
|
1063
|
+
[_chunkDLDWAPA5js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1064
|
+
...receivers ? { [_chunkDLDWAPA5js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1134
1065
|
};
|
|
1135
1066
|
}
|
|
1136
1067
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1164,10 +1095,10 @@ function isRecord2(value) {
|
|
|
1164
1095
|
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
1165
1096
|
}
|
|
1166
1097
|
function normalizePlayStatus(raw) {
|
|
1167
|
-
const runPackage =
|
|
1098
|
+
const runPackage = _chunk2KHUFWTKjs.isPlayRunPackage.call(void 0, raw) ? raw : _chunk2KHUFWTKjs.isPlayRunPackage.call(void 0, raw.package) ? raw.package : null;
|
|
1168
1099
|
const packageRun = _optionalChain([runPackage, 'optionalAccess', _60 => _60.run]);
|
|
1169
1100
|
const rawStatus = typeof raw.status === "string" ? raw.status : typeof _optionalChain([packageRun, 'optionalAccess', _61 => _61.status]) === "string" ? packageRun.status : null;
|
|
1170
|
-
const status =
|
|
1101
|
+
const status = _chunk2KHUFWTKjs.decodePlayRunPublicStatus.call(void 0, rawStatus);
|
|
1171
1102
|
if (!status) {
|
|
1172
1103
|
throw new Error(
|
|
1173
1104
|
`Invalid play run lifecycle status in API response: ${JSON.stringify(rawStatus)}.`
|
|
@@ -1198,10 +1129,10 @@ var PlayClient = class {
|
|
|
1198
1129
|
async startPlayRun(request, options) {
|
|
1199
1130
|
const resolved = resolveStartPlayRunRequest(request, this.environment);
|
|
1200
1131
|
const headers = runtimeSelectionHeaders(resolved.runtime, this.environment);
|
|
1201
|
-
return
|
|
1132
|
+
return _chunk2KHUFWTKjs.startPlayRun.call(void 0,
|
|
1202
1133
|
this.http,
|
|
1203
1134
|
resolved.request,
|
|
1204
|
-
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1135
|
+
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkDLDWAPA5js.SDK_API_MAJOR) } : headers,
|
|
1205
1136
|
options
|
|
1206
1137
|
);
|
|
1207
1138
|
}
|
|
@@ -2562,6 +2493,22 @@ var REDACTION_TRIGGER_RE = new RegExp(
|
|
|
2562
2493
|
"i"
|
|
2563
2494
|
);
|
|
2564
2495
|
|
|
2496
|
+
// ../play-runtime/output-size-limits.ts
|
|
2497
|
+
var TERMINAL_RUN_RESULT_MAX_BYTES = 6 * 1024 * 1024;
|
|
2498
|
+
var LEDGER_TERMINAL_RESULT_MAX_BYTES = 256 * 1024;
|
|
2499
|
+
var CUSTOMER_OUTPUT_VALUE_MAX_BYTES = 5 * 1024 * 1024;
|
|
2500
|
+
var CUSTOMER_OUTPUT_TOTAL_MAX_BYTES = 5 * 1024 * 1024;
|
|
2501
|
+
var RUNTIME_RECEIPT_OUTPUT_MAX_BYTES = 10 * 1024 * 1024;
|
|
2502
|
+
var RUNTIME_RECEIPT_COMPLETION_BUFFER_MAX_BYTES = 32 * 1024 * 1024;
|
|
2503
|
+
var RUNTIME_RECEIPT_CONTROL_BUFFER_MAX_BYTES = 2 * 1024 * 1024;
|
|
2504
|
+
var RUNNER_TERMINAL_PUSH_MAX_BODY_BYTES = 16 * 1024 * 1024;
|
|
2505
|
+
var RUNTIME_SHEET_START_TARGET_BODY_BYTES = 12 * 1024 * 1024;
|
|
2506
|
+
var RUNTIME_RECEIPT_GATEWAY_BATCH_MAX_BYTES = 12 * 1024 * 1024;
|
|
2507
|
+
var RUNTIME_RECEIPT_WRITER_TARGET_BATCH_BYTES = 8 * 1024 * 1024;
|
|
2508
|
+
var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
|
|
2509
|
+
var JSON_SIZE_LIMIT_REACHED = Symbol("JSON_SIZE_LIMIT_REACHED");
|
|
2510
|
+
var OMIT_JSON_OUTPUT_VALUE = Symbol("OMIT_JSON_OUTPUT_VALUE");
|
|
2511
|
+
|
|
2565
2512
|
// ../play-runtime/docflow-node-io.ts
|
|
2566
2513
|
var utf8Encoder = new TextEncoder();
|
|
2567
2514
|
var PLAY_DATASET_BRAND = Symbol.for("deepline.play.dataset");
|
|
@@ -2751,7 +2698,7 @@ var TERMINAL_STATUS_BY_EVENT_TYPE = {
|
|
|
2751
2698
|
|
|
2752
2699
|
// ../play-runtime/run-snapshot-stream.ts
|
|
2753
2700
|
function isTerminalPlayRunLiveStatus(status) {
|
|
2754
|
-
return
|
|
2701
|
+
return _chunk2KHUFWTKjs.isTerminalPlayRunLifecycleStatus.call(void 0, status);
|
|
2755
2702
|
}
|
|
2756
2703
|
function makeRunStreamEvent(input) {
|
|
2757
2704
|
return {
|
|
@@ -3282,7 +3229,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3282
3229
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3283
3230
|
);
|
|
3284
3231
|
}
|
|
3285
|
-
return { [
|
|
3232
|
+
return { [_chunkDLDWAPA5js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3286
3233
|
}
|
|
3287
3234
|
function sleep(ms) {
|
|
3288
3235
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -3413,7 +3360,7 @@ function playLiveRunStatus(event) {
|
|
|
3413
3360
|
return null;
|
|
3414
3361
|
}
|
|
3415
3362
|
const payload = getPlayLiveEventPayload(event);
|
|
3416
|
-
return _nullishCoalesce(
|
|
3363
|
+
return _nullishCoalesce(_chunk2KHUFWTKjs.decodePlayRunPublicStatus.call(void 0, payload.status), () => ( (_chunk2KHUFWTKjs.isPlayRunPackage.call(void 0, payload) ? _chunk2KHUFWTKjs.decodePlayRunPublicStatus.call(void 0, payload.run.status) : null)));
|
|
3417
3364
|
}
|
|
3418
3365
|
function appendPlayLiveLogLines(state, payload) {
|
|
3419
3366
|
const lines = readStringArray(payload.lines);
|
|
@@ -3445,7 +3392,7 @@ function updatePlayLiveStatusState(state, event) {
|
|
|
3445
3392
|
if (event.type !== "play.run.snapshot" && event.type !== "play.run.status" && event.type !== "play.run.final_status") {
|
|
3446
3393
|
return null;
|
|
3447
3394
|
}
|
|
3448
|
-
const runId = typeof payload.runId === "string" && payload.runId ? payload.runId :
|
|
3395
|
+
const runId = typeof payload.runId === "string" && payload.runId ? payload.runId : _chunk2KHUFWTKjs.isPlayRunPackage.call(void 0, payload) ? payload.run.id : state.runId;
|
|
3449
3396
|
const status = _nullishCoalesce(playLiveRunStatus(event), () => ( state.status));
|
|
3450
3397
|
const progressPayload = isRecord3(payload.progress) ? payload.progress : {};
|
|
3451
3398
|
if (event.type === "play.run.final_status" && state.logs.length === 0 && state.lastLogSeq === 0) {
|
|
@@ -3458,7 +3405,7 @@ function updatePlayLiveStatusState(state, event) {
|
|
|
3458
3405
|
}
|
|
3459
3406
|
if ("result" in payload) {
|
|
3460
3407
|
state.result = payload.result;
|
|
3461
|
-
} else if (
|
|
3408
|
+
} else if (_chunk2KHUFWTKjs.isPlayRunPackage.call(void 0, payload)) {
|
|
3462
3409
|
state.result = payload;
|
|
3463
3410
|
}
|
|
3464
3411
|
if (typeof payload.error === "string" && payload.error.trim()) {
|
|
@@ -3471,7 +3418,7 @@ function updatePlayLiveStatusState(state, event) {
|
|
|
3471
3418
|
...payload,
|
|
3472
3419
|
runId,
|
|
3473
3420
|
status,
|
|
3474
|
-
...
|
|
3421
|
+
..._chunk2KHUFWTKjs.isPlayRunPackage.call(void 0, payload) ? { package: payload, outputs: payload.outputs } : {},
|
|
3475
3422
|
progress: {
|
|
3476
3423
|
...progressRecord,
|
|
3477
3424
|
status: typeof progressRecord.status === "string" ? progressRecord.status : status,
|
|
@@ -4159,7 +4106,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4159
4106
|
*/
|
|
4160
4107
|
async preparePlayRunAdmission(request, options) {
|
|
4161
4108
|
const resolved = resolveStartPlayRunRequest(request, this.environment);
|
|
4162
|
-
const prepared = await
|
|
4109
|
+
const prepared = await _chunk2KHUFWTKjs.preparePlayRunAdmission.call(void 0,
|
|
4163
4110
|
this.http,
|
|
4164
4111
|
resolved.request,
|
|
4165
4112
|
_optionalChain([options, 'optionalAccess', _187 => _187.onSubmission]),
|
|
@@ -4172,7 +4119,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4172
4119
|
);
|
|
4173
4120
|
const headers = _optionalChain([options, 'optionalAccess', _188 => _188.cliAdmission]) ? {
|
|
4174
4121
|
...runtimeHeaders,
|
|
4175
|
-
"X-Deepline-API-Major": String(
|
|
4122
|
+
"X-Deepline-API-Major": String(_chunkDLDWAPA5js.SDK_API_MAJOR)
|
|
4176
4123
|
} : runtimeHeaders;
|
|
4177
4124
|
const http = this.http;
|
|
4178
4125
|
let submitted = false;
|
|
@@ -4188,7 +4135,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4188
4135
|
}
|
|
4189
4136
|
if (submitted) {
|
|
4190
4137
|
if (!_optionalChain([options, 'optionalAccess', _189 => _189.callerIntentV2])) {
|
|
4191
|
-
await
|
|
4138
|
+
await _chunk2KHUFWTKjs.preparePlayRunAdmission.call(void 0,
|
|
4192
4139
|
http,
|
|
4193
4140
|
JSON.parse(bodyJson),
|
|
4194
4141
|
void 0,
|
|
@@ -4198,7 +4145,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4198
4145
|
}
|
|
4199
4146
|
submitted = true;
|
|
4200
4147
|
try {
|
|
4201
|
-
return await
|
|
4148
|
+
return await _chunk2KHUFWTKjs.submitPreparedPlayRunAdmission.call(void 0,
|
|
4202
4149
|
http,
|
|
4203
4150
|
JSON.parse(bodyJson),
|
|
4204
4151
|
prepared.workflowId,
|
|
@@ -4211,7 +4158,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4211
4158
|
}
|
|
4212
4159
|
);
|
|
4213
4160
|
} catch (error) {
|
|
4214
|
-
if (error instanceof
|
|
4161
|
+
if (error instanceof _chunk2KHUFWTKjs.CliPlayAdmissionUnsupportedError || error instanceof _chunk2KHUFWTKjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
|
|
4215
4162
|
submitted = false;
|
|
4216
4163
|
}
|
|
4217
4164
|
throw error;
|
|
@@ -4227,7 +4174,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4227
4174
|
}
|
|
4228
4175
|
if (submitted) {
|
|
4229
4176
|
if (!_optionalChain([options, 'optionalAccess', _197 => _197.callerIntentV2])) {
|
|
4230
|
-
await
|
|
4177
|
+
await _chunk2KHUFWTKjs.preparePlayRunAdmission.call(void 0,
|
|
4231
4178
|
http,
|
|
4232
4179
|
JSON.parse(bodyJson),
|
|
4233
4180
|
void 0,
|
|
@@ -4236,7 +4183,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4236
4183
|
}
|
|
4237
4184
|
}
|
|
4238
4185
|
submitted = true;
|
|
4239
|
-
const streamPath = _optionalChain([options, 'optionalAccess', _199 => _199.callerIntentV2]) ?
|
|
4186
|
+
const streamPath = _optionalChain([options, 'optionalAccess', _199 => _199.callerIntentV2]) ? _chunk2KHUFWTKjs.CLI_PLAY_RUN_CALLER_INTENT_V2_START_STREAM_PATH : _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? _chunk2KHUFWTKjs.CLI_PLAY_RUN_START_STREAM_PATH : _chunk2KHUFWTKjs.PLAY_RUN_START_STREAM_PATH;
|
|
4240
4187
|
let cliAdmissionSupported = false;
|
|
4241
4188
|
try {
|
|
4242
4189
|
for await (const event of http.streamSse(streamPath, {
|
|
@@ -4247,7 +4194,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4247
4194
|
exactUrlOnly: true,
|
|
4248
4195
|
..._optionalChain([options, 'optionalAccess', _202 => _202.cliAdmission]) ? {
|
|
4249
4196
|
onResponse: (response) => {
|
|
4250
|
-
cliAdmissionSupported = response.headers.get(
|
|
4197
|
+
cliAdmissionSupported = response.headers.get(_chunk2KHUFWTKjs.CLI_PLAY_RUN_SUPPORTED_HEADER) === "true";
|
|
4251
4198
|
}
|
|
4252
4199
|
} : {}
|
|
4253
4200
|
})) {
|
|
@@ -4257,12 +4204,12 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4257
4204
|
if (_optionalChain([options, 'optionalAccess', _203 => _203.cliAdmission]) && !cliAdmissionSupported && error instanceof _chunkSQWET4SLjs.DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
|
|
4258
4205
|
if (options.callerIntentV2) {
|
|
4259
4206
|
submitted = false;
|
|
4260
|
-
throw new (0,
|
|
4207
|
+
throw new (0, _chunk2KHUFWTKjs.CliPlayAdmissionCallerIntentV2UnsupportedError)(
|
|
4261
4208
|
error.statusCode
|
|
4262
4209
|
);
|
|
4263
4210
|
}
|
|
4264
4211
|
submitted = false;
|
|
4265
|
-
throw new (0,
|
|
4212
|
+
throw new (0, _chunk2KHUFWTKjs.CliPlayAdmissionUnsupportedError)(error.statusCode);
|
|
4266
4213
|
}
|
|
4267
4214
|
throw error;
|
|
4268
4215
|
}
|
|
@@ -4275,7 +4222,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4275
4222
|
* @internal
|
|
4276
4223
|
*/
|
|
4277
4224
|
async prefetchPlayRunAdmissionCapability(options) {
|
|
4278
|
-
return
|
|
4225
|
+
return _chunk2KHUFWTKjs.readPlayRunAdmissionCapability.call(void 0, this.http, options);
|
|
4279
4226
|
}
|
|
4280
4227
|
/**
|
|
4281
4228
|
* Submit a play run through the legacy event response.
|
|
@@ -4549,7 +4496,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4549
4496
|
* ```
|
|
4550
4497
|
*/
|
|
4551
4498
|
async stagePlayFiles(files) {
|
|
4552
|
-
return
|
|
4499
|
+
return _chunk2KHUFWTKjs.stagePlayFiles.call(void 0, this.http, files);
|
|
4553
4500
|
}
|
|
4554
4501
|
/**
|
|
4555
4502
|
* Mint short-lived presigned upload targets for staged play files.
|
|
@@ -4558,7 +4505,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4558
4505
|
* For other files, the server returns a presigned PUT URL. Upload the file body to that URL.
|
|
4559
4506
|
*/
|
|
4560
4507
|
async mintStagedPlayFileUploads(files) {
|
|
4561
|
-
return
|
|
4508
|
+
return _chunk2KHUFWTKjs.mintStagedPlayFileUploads.call(void 0, this.http, files);
|
|
4562
4509
|
}
|
|
4563
4510
|
/**
|
|
4564
4511
|
* Resolve staged play files by content hash without uploading bytes.
|
|
@@ -4669,7 +4616,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4669
4616
|
}
|
|
4670
4617
|
})) {
|
|
4671
4618
|
_optionalChain([options, 'optionalAccess', _241 => _241.onEvent, 'optionalCall', _242 => _242(event)]);
|
|
4672
|
-
if (
|
|
4619
|
+
if (_chunk2KHUFWTKjs.isTerminalPlayRunLifecycleStatus.call(void 0, playLiveRunStatus(event))) {
|
|
4673
4620
|
terminalObserved = true;
|
|
4674
4621
|
}
|
|
4675
4622
|
}
|
|
@@ -4677,7 +4624,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4677
4624
|
throw new (0, _chunkSQWET4SLjs.DeeplineError)("Run watch aborted.", void 0, "ABORTED");
|
|
4678
4625
|
}
|
|
4679
4626
|
const refreshed = await _asyncNullishCoalesce(terminalStatus, async () => ( await this.getRunStatus(runId)));
|
|
4680
|
-
if (terminalObserved ||
|
|
4627
|
+
if (terminalObserved || _chunk2KHUFWTKjs.isTerminalPlayRunLifecycleStatus.call(void 0, refreshed.status)) {
|
|
4681
4628
|
return refreshed;
|
|
4682
4629
|
}
|
|
4683
4630
|
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
@@ -6176,7 +6123,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6176
6123
|
if (event.type !== "play.run.status" || status.status !== previousStatus) {
|
|
6177
6124
|
_optionalChain([options, 'optionalAccess', _343 => _343.onProgress, 'optionalCall', _344 => _344(status)]);
|
|
6178
6125
|
}
|
|
6179
|
-
if (
|
|
6126
|
+
if (_chunk2KHUFWTKjs.isTerminalPlayRunLifecycleStatus.call(void 0, status.status)) {
|
|
6180
6127
|
terminalObserved = status;
|
|
6181
6128
|
}
|
|
6182
6129
|
}
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5477PEHL.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FQQAAR3Q.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
readToolUpstreamResponse,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
|
-
var
|
|
3
|
+
var _chunkDNJJ3ULJjs = require('./chunk-DNJJ3ULJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk37SXIFIUjs = require('./chunk-37SXIFIU.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
|
|
|
18
18
|
}
|
|
19
19
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
|
|
20
20
|
_optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
|
|
21
|
-
if (maintenancePolicy !== "off")
|
|
22
|
-
const compatibility = await
|
|
21
|
+
if (maintenancePolicy !== "off") _chunk37SXIFIUjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunk37SXIFIUjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
|
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
32
|
if (compatibility.error) throw compatibility.error;
|
|
33
|
-
|
|
33
|
+
_chunk37SXIFIUjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
34
34
|
quietAdvisory: true
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunkGMYDVW7Zjs = require('./chunk-GMYDVW7Z.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkDLDWAPA5js = require('./chunk-DLDWAPA5.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
|
|
@@ -150,7 +150,7 @@ function buildEnvironmentContext() {
|
|
|
150
150
|
node_version: process.version,
|
|
151
151
|
runtime: "Node.js",
|
|
152
152
|
hostname: _os.hostname.call(void 0, ),
|
|
153
|
-
agent_runtime:
|
|
153
|
+
agent_runtime: _chunkDLDWAPA5js.detectAgentRuntime.call(void 0, )
|
|
154
154
|
};
|
|
155
155
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
156
156
|
const normalized = _optionalChain([process, 'access', _5 => _5.env, 'access', _6 => _6[key], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);
|
|
@@ -171,18 +171,18 @@ function buildEnvironmentContext() {
|
|
|
171
171
|
return context;
|
|
172
172
|
}
|
|
173
173
|
function failureReportHeaders(apiKey) {
|
|
174
|
-
const agentSessionId =
|
|
174
|
+
const agentSessionId = _chunkDLDWAPA5js.agentSessionIdFromEnvironment.call(void 0, );
|
|
175
175
|
return {
|
|
176
|
-
...
|
|
176
|
+
..._chunkDLDWAPA5js.deploymentProtectionHeaders.call(void 0, ),
|
|
177
177
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
178
178
|
Authorization: `Bearer ${apiKey}`,
|
|
179
179
|
"Content-Type": "application/json",
|
|
180
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
180
|
+
"User-Agent": `deepline-ts-sdk/${_chunkDLDWAPA5js.SDK_VERSION}`,
|
|
181
181
|
"X-Deepline-Client-Family": "sdk",
|
|
182
182
|
"X-Deepline-CLI-Family": "sdk",
|
|
183
|
-
"X-Deepline-Agent-Runtime":
|
|
184
|
-
"X-Deepline-CLI-Version":
|
|
185
|
-
"X-Deepline-SDK-Version":
|
|
183
|
+
"X-Deepline-Agent-Runtime": _chunkDLDWAPA5js.detectAgentRuntime.call(void 0, ),
|
|
184
|
+
"X-Deepline-CLI-Version": _chunkDLDWAPA5js.SDK_VERSION,
|
|
185
|
+
"X-Deepline-SDK-Version": _chunkDLDWAPA5js.SDK_VERSION
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
async function postFailureReport(input) {
|
|
@@ -210,7 +210,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
210
210
|
if (isFailureReportingDisabled()) return false;
|
|
211
211
|
let apiKey = "";
|
|
212
212
|
try {
|
|
213
|
-
apiKey =
|
|
213
|
+
apiKey = _chunkGMYDVW7Zjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
214
214
|
} catch (e2) {
|
|
215
215
|
return false;
|
|
216
216
|
}
|
|
@@ -237,7 +237,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
237
237
|
failure_code: failureCode2,
|
|
238
238
|
failure_stage: failureStage,
|
|
239
239
|
error_body: "Automatic Deepline skills installation failed.",
|
|
240
|
-
cli_version:
|
|
240
|
+
cli_version: _chunkDLDWAPA5js.SDK_VERSION,
|
|
241
241
|
context: {
|
|
242
242
|
environment: buildEnvironmentContext(),
|
|
243
243
|
skills_sync: {
|
|
@@ -357,7 +357,7 @@ function buildFailureReport(input) {
|
|
|
357
357
|
failure_kind: failureKind,
|
|
358
358
|
failure_code: code,
|
|
359
359
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
360
|
-
cli_version:
|
|
360
|
+
cli_version: _chunkDLDWAPA5js.SDK_VERSION,
|
|
361
361
|
context: {
|
|
362
362
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
363
363
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -377,8 +377,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
377
377
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
378
378
|
const exitCode = resolvedExitCode(input);
|
|
379
379
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
380
|
-
const baseUrl =
|
|
381
|
-
const apiKey =
|
|
380
|
+
const baseUrl = _chunkGMYDVW7Zjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
381
|
+
const apiKey = _chunkGMYDVW7Zjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
382
382
|
if (!apiKey) return false;
|
|
383
383
|
return postFailureReport({
|
|
384
384
|
baseUrl,
|
|
@@ -8,7 +8,7 @@ var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/describe-options.ts
|
|
14
14
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -249,7 +249,7 @@ function projectRunDatasetCell(value) {
|
|
|
249
249
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
250
250
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
251
251
|
if (typeof logicalValue === "object") {
|
|
252
|
-
return
|
|
252
|
+
return _chunkDRDZBRXVjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
253
253
|
}
|
|
254
254
|
return logicalValue;
|
|
255
255
|
}
|
|
@@ -641,7 +641,7 @@ function csvText(rows, columns = []) {
|
|
|
641
641
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
642
642
|
columns
|
|
643
643
|
});
|
|
644
|
-
return
|
|
644
|
+
return _chunkDRDZBRXVjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
645
645
|
}
|
|
646
646
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
647
647
|
let temp;
|
|
@@ -768,7 +768,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
768
768
|
};
|
|
769
769
|
if (options.receiptOut && !skipReceiptFile) {
|
|
770
770
|
persist(options.receiptOut, jsonText(receipt));
|
|
771
|
-
|
|
771
|
+
_chunkDRDZBRXVjs.markJsonOutputHandled.call(void 0, );
|
|
772
772
|
} else {
|
|
773
773
|
printReceipt(receipt, options, {
|
|
774
774
|
data: hasData ? result.data : void 0,
|
|
@@ -1027,8 +1027,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1027
1027
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1028
1028
|
` : receiptText(receipt, options, extra);
|
|
1029
1029
|
if (options.receiptOut !== void 0) {
|
|
1030
|
-
|
|
1031
|
-
|
|
1030
|
+
_chunkDRDZBRXVjs.writeRawStderr.call(void 0, text);
|
|
1031
|
+
_chunkDRDZBRXVjs.markJsonOutputHandled.call(void 0, );
|
|
1032
1032
|
} else {
|
|
1033
1033
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1034
1034
|
}
|