deepline 0.3.519 → 0.3.521

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.
Files changed (186) hide show
  1. package/dist/bundling-sources/sdk/src/plays/client-core.ts +16 -45
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +0 -18
  4. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +0 -155
  5. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +160 -2
  6. package/dist/bundling-sources/shared_libs/play-runtime/execute-server-timing.ts +22 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +24 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +1 -54
  9. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -7
  10. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +0 -13
  11. package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +0 -56
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +10 -21
  13. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +1 -1
  14. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +2 -1
  15. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +1 -1
  16. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +2 -37
  17. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +3 -74
  18. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +2 -226
  19. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +3 -36
  20. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +0 -26
  21. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +1 -9
  22. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +0 -5
  23. package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +9 -49
  24. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +11 -447
  25. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +5 -4
  26. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +12 -207
  27. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +3 -17
  28. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-progress-registry.ts +0 -9
  29. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +2 -18
  30. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +15 -175
  31. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +0 -4
  32. package/dist/cli/{artifacts-YRKH7KNC.js → artifacts-JGH464N2.js} +20 -20
  33. package/dist/cli/{artifacts-ZZULJ6X5.mjs → artifacts-TYPU37IU.mjs} +8 -8
  34. package/dist/cli/auth-JWR3VSNT.js +43 -0
  35. package/dist/cli/{auth-WU2BDO3T.mjs → auth-XPQT6NUB.mjs} +5 -5
  36. package/dist/cli/{billing-DG62VVXW.mjs → billing-47AMHOMP.mjs} +8 -8
  37. package/dist/cli/{billing-MUMMBMQK.js → billing-6D4KXBFJ.js} +81 -81
  38. package/dist/cli/{chunk-R3OAKFHJ.mjs → chunk-2DQPB5HT.mjs} +5 -5
  39. package/dist/cli/{chunk-6Y3DDRRN.js → chunk-2KHUFWTK.js} +3 -3
  40. package/dist/cli/{chunk-XUCAH3LN.js → chunk-3Q7HEEH2.js} +10 -10
  41. package/dist/cli/{chunk-MI5DKOBD.mjs → chunk-4DB6JV7X.mjs} +2 -2
  42. package/dist/cli/{chunk-J4X4RNSP.mjs → chunk-4GGXAYKI.mjs} +3 -3
  43. package/dist/cli/{chunk-AXA5DFY5.mjs → chunk-4I7I5CGB.mjs} +1 -1
  44. package/dist/cli/{chunk-I3ICKVYH.js → chunk-4MN65FRF.js} +53 -53
  45. package/dist/cli/{chunk-Y7D6L4M7.mjs → chunk-4MONKWYE.mjs} +5 -5
  46. package/dist/cli/{chunk-3CUIIVGR.mjs → chunk-5T7QKHQL.mjs} +1 -1
  47. package/dist/cli/{chunk-UMPHUAGZ.js → chunk-6DCBTJZP.js} +3 -3
  48. package/dist/cli/{chunk-LKYLIZ5X.js → chunk-6N72GHAV.js} +2 -2
  49. package/dist/cli/{chunk-RHQKDHCX.mjs → chunk-6UHYXNCP.mjs} +2 -2
  50. package/dist/cli/{chunk-RU5JRQKJ.mjs → chunk-6V2RI3AL.mjs} +3 -3
  51. package/dist/cli/{chunk-NIJE62ZD.mjs → chunk-7AUXX6M5.mjs} +1 -1
  52. package/dist/cli/{chunk-NH22WUUG.mjs → chunk-7IYDCHTG.mjs} +2 -2
  53. package/dist/cli/{chunk-FEJKDR67.mjs → chunk-7LRALARF.mjs} +1 -1
  54. package/dist/cli/{chunk-N3LUYBOB.mjs → chunk-A2B5AAU3.mjs} +11 -11
  55. package/dist/cli/{chunk-CRE3OGHH.mjs → chunk-A6USUS4L.mjs} +2 -2
  56. package/dist/cli/{chunk-ZQ23WQP3.js → chunk-AMVKLEPH.js} +2 -2
  57. package/dist/cli/{chunk-RQ2BHYUM.mjs → chunk-CBBCUYIN.mjs} +2 -2
  58. package/dist/cli/{chunk-CBMTBMIJ.mjs → chunk-DQURY3WH.mjs} +1 -1
  59. package/dist/cli/{chunk-EMV6EHK2.js → chunk-DY6634MN.js} +14 -14
  60. package/dist/cli/{chunk-5A2SIIPH.mjs → chunk-E4ZS2B2J.mjs} +1 -1
  61. package/dist/cli/{chunk-BQYXIAJM.js → chunk-EILHJRPW.js} +3 -3
  62. package/dist/cli/{chunk-RQDD2VV3.js → chunk-EW3EAEWZ.js} +5 -5
  63. package/dist/cli/{chunk-A7W3CCU5.mjs → chunk-EZNZDOAG.mjs} +5 -5
  64. package/dist/cli/{chunk-HT675XNR.mjs → chunk-FKD3KL5Q.mjs} +1 -1
  65. package/dist/cli/{chunk-FJAGGBDR.mjs → chunk-FQJFONFT.mjs} +59 -90
  66. package/dist/cli/{chunk-C7ZD4LXZ.js → chunk-FTZX4QZN.js} +2 -2
  67. package/dist/cli/{chunk-F6XD4CRW.js → chunk-GNYSODBR.js} +1 -1
  68. package/dist/cli/{chunk-4PWBHYH4.js → chunk-HD3KYCDC.js} +7 -7
  69. package/dist/cli/{chunk-IMIHYCJ5.mjs → chunk-HHBJJYKL.mjs} +5 -5
  70. package/dist/cli/{chunk-YRU46P7H.mjs → chunk-HRWVEIAX.mjs} +1 -1
  71. package/dist/cli/{chunk-TT2XB433.js → chunk-HSFLMTED.js} +4 -4
  72. package/dist/cli/{chunk-E6YWCXII.js → chunk-JFQJNYTB.js} +16 -16
  73. package/dist/cli/{chunk-XBS4RDKU.js → chunk-LGU2NIOT.js} +98 -98
  74. package/dist/cli/{chunk-SBF4K3QF.mjs → chunk-LNBMEFOI.mjs} +4 -4
  75. package/dist/cli/{chunk-G2QD575P.js → chunk-MD43YAL6.js} +6 -6
  76. package/dist/cli/{chunk-S7R4O62I.js → chunk-MRU4N33M.js} +6 -6
  77. package/dist/cli/{chunk-UB2REJPL.mjs → chunk-NNDAVVBG.mjs} +2 -2
  78. package/dist/cli/{chunk-ORNLTNBN.js → chunk-PUKWFJXW.js} +44 -44
  79. package/dist/cli/{chunk-O655PVT4.js → chunk-QGTWGHYD.js} +88 -119
  80. package/dist/cli/{chunk-AL7FDMD6.mjs → chunk-TBIWR7M2.mjs} +1 -1
  81. package/dist/cli/{chunk-PK6VYYEY.js → chunk-UAZKOH3J.js} +5 -5
  82. package/dist/cli/{chunk-BMCRTI6Z.mjs → chunk-UBKA33KY.mjs} +1 -22
  83. package/dist/cli/{chunk-4ECU5DI3.js → chunk-ULW2KBKL.js} +26 -26
  84. package/dist/cli/{chunk-52DFTRVC.js → chunk-VSH3AE5E.js} +16 -16
  85. package/dist/cli/{chunk-P62S3ZMS.js → chunk-VYY5V4M5.js} +11 -11
  86. package/dist/cli/{chunk-HXPHRSNM.js → chunk-WL6WPW6X.js} +14 -14
  87. package/dist/cli/{chunk-WSGXBROE.js → chunk-XDVT3GOM.js} +1 -22
  88. package/dist/cli/{chunk-GO467AXG.js → chunk-Y23TOHNV.js} +41 -41
  89. package/dist/cli/{chunk-FTJ2D3XD.mjs → chunk-Y7IR4LBU.mjs} +3 -3
  90. package/dist/cli/{chunk-25WXWSFS.js → chunk-YROP3H6T.js} +22 -22
  91. package/dist/cli/{chunk-HKKC7J6K.mjs → chunk-ZO2XJVFH.mjs} +6 -6
  92. package/dist/cli/{csv-BKWIYPMK.js → csv-5TM2OSYP.js} +13 -13
  93. package/dist/cli/{csv-3TUJHAOW.mjs → csv-PM3WDXDF.mjs} +4 -4
  94. package/dist/cli/{db-EJMJDKDA.js → db-3LJ32FZM.js} +29 -29
  95. package/dist/cli/{db-I75IQ7XI.mjs → db-5P72NPRL.mjs} +8 -8
  96. package/dist/cli/describe-GRS3IRSX.js +50 -0
  97. package/dist/cli/{describe-RUFLLRIN.mjs → describe-ZLCMBGHG.mjs} +20 -20
  98. package/dist/cli/describe-core.d.mts +2 -2
  99. package/dist/cli/describe-core.d.ts +2 -2
  100. package/dist/cli/{executions-TQJCMUUG.js → executions-4AJ5TQVY.js} +10 -10
  101. package/dist/cli/{executions-VW3MYJEE.mjs → executions-JMFL6AV7.mjs} +8 -8
  102. package/dist/cli/{feedback-76342G7E.mjs → feedback-DKMG2QB7.mjs} +5 -5
  103. package/dist/cli/{feedback-UFAEXH5B.js → feedback-I2BLXMGH.js} +10 -10
  104. package/dist/cli/git-2LNT43A2.js +25 -0
  105. package/dist/cli/{git-L5XKAODI.mjs → git-ARG223MY.mjs} +5 -5
  106. package/dist/cli/index.js +141 -141
  107. package/dist/cli/index.mjs +43 -43
  108. package/dist/cli/{legacy-noops-DKAZ7JG3.mjs → legacy-noops-24LOAOZN.mjs} +6 -6
  109. package/dist/cli/{legacy-noops-DM66YISP.js → legacy-noops-N7SVA7PL.js} +9 -9
  110. package/dist/cli/{monitors-QXEJI54B.mjs → monitors-RYQFWM2T.mjs} +9 -9
  111. package/dist/cli/{monitors-NKDIH4TY.js → monitors-XNCYLOJM.js} +102 -102
  112. package/dist/cli/{org-NKIIBUNO.js → org-I33TKZXF.js} +74 -74
  113. package/dist/cli/{org-KZQCVREB.mjs → org-ORIH56E5.mjs} +8 -8
  114. package/dist/cli/{pages-UJUFCJEL.js → pages-2UXXGIMF.js} +20 -20
  115. package/dist/cli/{pages-E7IT5SWT.mjs → pages-ME43HSBL.mjs} +8 -8
  116. package/dist/cli/{play-SPI5MO67.js → play-F4QOFU37.js} +338 -338
  117. package/dist/cli/{play-AKL5E2DF.mjs → play-XEKNY46M.mjs} +21 -21
  118. package/dist/cli/{providers-4NVQ3FSC.js → providers-E7DPCBNX.js} +11 -11
  119. package/dist/cli/{providers-6HSSVI74.mjs → providers-XKU44G74.mjs} +8 -8
  120. package/dist/cli/{quickstart-FEQD7S4Z.js → quickstart-ICLF2F6A.js} +6 -6
  121. package/dist/cli/{quickstart-EHLEHSMI.mjs → quickstart-J7NVEXV5.mjs} +4 -4
  122. package/dist/cli/{run-GH6ECTJF.js → run-HJMHUQBN.js} +43 -43
  123. package/dist/cli/{run-IWVM7BD6.mjs → run-MQ5ZONGL.mjs} +25 -25
  124. package/dist/cli/run-identity-G257GQED.js +25 -0
  125. package/dist/cli/{run-identity-MNRZS2N3.mjs → run-identity-MRNCEGV2.mjs} +3 -9
  126. package/dist/cli/{search-X4CDMN7J.mjs → search-GGRC77CV.mjs} +10 -10
  127. package/dist/cli/search-V6IBJ4TX.js +33 -0
  128. package/dist/cli/{search-output-IIYMGZTQ.js → search-output-MXZTZI2P.js} +6 -6
  129. package/dist/cli/{search-output-PJ7N5WUQ.mjs → search-output-NY4GDBRU.mjs} +4 -4
  130. package/dist/cli/{secrets-4YPMC7XZ.mjs → secrets-FA37G4Q2.mjs} +8 -8
  131. package/dist/cli/{secrets-QPP2FXID.js → secrets-PFESG72B.js} +17 -17
  132. package/dist/cli/{sessions-BEOI47VZ.mjs → sessions-BLLXPETU.mjs} +6 -6
  133. package/dist/cli/sessions-DNFTQOQH.js +18 -0
  134. package/dist/cli/{settings-FZDONKPW.js → settings-32VPG4Z2.js} +88 -88
  135. package/dist/cli/{settings-VHULXNY3.mjs → settings-U26S7MPH.mjs} +15 -15
  136. package/dist/cli/{setup-5IV3NHGD.mjs → setup-4AXBCX7C.mjs} +10 -10
  137. package/dist/cli/{setup-LZ6IN5JS.js → setup-R6NSENH7.js} +50 -50
  138. package/dist/cli/skills-G4ZE3OS5.js +37 -0
  139. package/dist/cli/{skills-FZAFBW5J.mjs → skills-JUH7AVUL.mjs} +8 -8
  140. package/dist/cli/tools-27LHZFJD.js +57 -0
  141. package/dist/cli/{tools-TLBH3RFK.mjs → tools-FOYLU3FH.mjs} +19 -19
  142. package/dist/cli/{update-KPLIZYOV.mjs → update-FUVX22VM.mjs} +10 -10
  143. package/dist/cli/update-KNZ7N242.js +35 -0
  144. package/dist/cli/{workflow-ACHPT3DD.js → workflow-JACZW4GJ.js} +19 -19
  145. package/dist/cli/{workflow-GYJOYYWK.mjs → workflow-QLT22BLT.mjs} +9 -9
  146. package/dist/{client-CswZYCGj.d.ts → client-B-2Am2y6.d.ts} +1 -1
  147. package/dist/{client-CpSiHSti.d.mts → client-DA71-2_u.d.mts} +1 -1
  148. package/dist/{client-core-C1xVOg8Y.d.mts → client-core-BXbds1cb.d.mts} +1 -20
  149. package/dist/{client-core-D2pLt36Q.d.ts → client-core-C0IzDKMJ.d.ts} +1 -20
  150. package/dist/index.d.mts +3 -3
  151. package/dist/index.d.ts +3 -3
  152. package/dist/index.js +19 -19
  153. package/dist/index.mjs +8 -8
  154. package/dist/install-integrity.json +114 -122
  155. package/dist/plays/play-description.d.mts +1 -1
  156. package/dist/plays/play-description.d.ts +1 -1
  157. package/dist/plays/run-request.d.mts +1 -1
  158. package/dist/plays/run-request.d.ts +1 -1
  159. package/dist/plays/run-request.js +3 -3
  160. package/dist/plays/run-request.mjs +2 -2
  161. package/dist/release.d.mts +1 -1
  162. package/dist/release.d.ts +1 -1
  163. package/dist/release.js +2 -2
  164. package/dist/release.mjs +1 -1
  165. package/dist/server.d.mts +2 -2
  166. package/dist/server.d.ts +2 -2
  167. package/dist/server.js +7 -7
  168. package/dist/server.mjs +5 -5
  169. package/package.json +1 -1
  170. package/dist/bundling-sources/shared_libs/play-runtime/runtime-app-transport.ts +0 -374
  171. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-egress.ts +0 -55
  172. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-profile.ts +0 -329
  173. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-sandbox-credential.ts +0 -338
  174. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-staging.ts +0 -417
  175. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-attempt.ts +0 -81
  176. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-journal.ts +0 -708
  177. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-teardown.ts +0 -160
  178. package/dist/cli/auth-DF6WJLN2.js +0 -43
  179. package/dist/cli/describe-EAK3MPTG.js +0 -50
  180. package/dist/cli/git-OOCPCIGZ.js +0 -25
  181. package/dist/cli/run-identity-HFYABUJS.js +0 -31
  182. package/dist/cli/search-NIRYA3VL.js +0 -33
  183. package/dist/cli/sessions-5I2IFTW7.js +0 -18
  184. package/dist/cli/skills-WJWLFSHI.js +0 -37
  185. package/dist/cli/tools-SH35NRGU.js +0 -57
  186. package/dist/cli/update-MA46YSGR.js +0 -35
@@ -20,7 +20,7 @@ var _chunkE4CABWXLjs = require('./chunk-E4CABWXL.js');
20
20
 
21
21
 
22
22
 
23
- var _chunk6Y3DDRRNjs = require('./chunk-6Y3DDRRN.js');
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 _chunkTT2XB433js = require('./chunk-TT2XB433.js');
34
+ var _chunkHSFLMTEDjs = require('./chunk-HSFLMTED.js');
35
35
 
36
36
 
37
37
  var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
@@ -243,6 +243,19 @@ var EXECUTE_SERVER_TIMING_STAGES = [
243
243
  "execute",
244
244
  "identity",
245
245
  "usage_schedule",
246
+ // Handler slices that previously had no stage of their own. Each is a
247
+ // disjoint wall inside `total`; none overlaps the stages above.
248
+ // - `request_parse` body read/JSON parse, actor and route params, and the
249
+ // gateway attestation HMAC checks, after `auth`
250
+ // - `entitlements` tool entitlement read (only tools with tool limits)
251
+ // - `response_build` success-path async metadata, managed-create metadata
252
+ // and response serialization, after billing settlement
253
+ // - `call_evidence` runner calls only: clone, parse and re-serialize the
254
+ // response to attach provider call evidence
255
+ "request_parse",
256
+ "entitlements",
257
+ "response_build",
258
+ "call_evidence",
246
259
  // Managed AI inference slices: `ai_prepare` includes request preparation and
247
260
  // contains `ai_billing_authorize`; `ai_provider_work_start` is the durable
248
261
  // pre-call transition; `ai_gateway_first_output` is the time to the first
@@ -283,6 +296,15 @@ var EXECUTE_SERVER_TIMING_STAGES = [
283
296
  "body_parse",
284
297
  "dispatch_pool",
285
298
  "dispatch_callback",
299
+ // Relay pre-dispatch slices: upstream admission queueing, the
300
+ // retired-attempt fence (a refresh can wait up to 250 ms), and gateway-side
301
+ // provider permit validation. The relay appends them only when the request
302
+ // took that step. Like the relay stages above, the app handler's own header
303
+ // lists every stage at zero, and the later relay entry wins for a reader, so
304
+ // a zero here can also mean the relay did not take the step.
305
+ "relay_admission",
306
+ "attempt_fence",
307
+ "permit_validate",
286
308
  // The execution relay measures its own upstream fetch. `upstream_headers`
287
309
  // contains the app handler's `total`; subtracting those two clocks leaves
288
310
  // only the Vercel/platform-or-transit boundary, never a made-up provider
@@ -652,7 +674,7 @@ var ToolCalls = class {
652
674
  idempotencyKey,
653
675
  onResponse: (response2) => {
654
676
  lastResponse = null;
655
- atomicToolsSupported = response2.headers.get(_chunkTT2XB433js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
677
+ atomicToolsSupported = response2.headers.get(_chunkHSFLMTEDjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
656
678
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
657
679
  if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
658
680
  try {
@@ -844,52 +866,8 @@ var ToolCalls = class {
844
866
  }
845
867
  };
846
868
 
847
- // ../play-runtime/output-size-limits.ts
848
- var TERMINAL_RUN_RESULT_MAX_BYTES = 6 * 1024 * 1024;
849
- var LEDGER_TERMINAL_RESULT_MAX_BYTES = 256 * 1024;
850
- var CUSTOMER_OUTPUT_VALUE_MAX_BYTES = 5 * 1024 * 1024;
851
- var CUSTOMER_OUTPUT_TOTAL_MAX_BYTES = 5 * 1024 * 1024;
852
- var RUNTIME_RECEIPT_OUTPUT_MAX_BYTES = 10 * 1024 * 1024;
853
- var RUNTIME_RECEIPT_COMPLETION_BUFFER_MAX_BYTES = 32 * 1024 * 1024;
854
- var RUNTIME_RECEIPT_CONTROL_BUFFER_MAX_BYTES = 2 * 1024 * 1024;
855
- var RUNNER_TERMINAL_PUSH_MAX_BODY_BYTES = 16 * 1024 * 1024;
856
- var RUNTIME_SHEET_START_TARGET_BODY_BYTES = 12 * 1024 * 1024;
857
- var RUNTIME_RECEIPT_GATEWAY_BATCH_MAX_BYTES = 12 * 1024 * 1024;
858
- var RUNTIME_RECEIPT_WRITER_TARGET_BATCH_BYTES = 8 * 1024 * 1024;
859
- var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
860
- var JSON_SIZE_LIMIT_REACHED = Symbol("JSON_SIZE_LIMIT_REACHED");
861
- var OMIT_JSON_OUTPUT_VALUE = Symbol("OMIT_JSON_OUTPUT_VALUE");
862
-
863
- // ../play-runtime/runtime-gateway-profile.ts
864
- var RUNTIME_GATEWAY_PROFILE_IDS = {
865
- vercelApp: "vercel_app@1"
866
- };
867
- var RUNTIME_GATEWAY_PROFILES = Object.freeze({
868
- [RUNTIME_GATEWAY_PROFILE_IDS.vercelApp]: Object.freeze({
869
- id: RUNTIME_GATEWAY_PROFILE_IDS.vercelApp,
870
- hosting: "admitting_app_deployment",
871
- receiptPath: "/api/receipt",
872
- executionPath: "/api/execution",
873
- maxPinAgeMs: 6 * 60 * 60 * 1e3,
874
- poolMaxClients: 2,
875
- requestBodyMaxBytes: RUNNER_TERMINAL_PUSH_MAX_BODY_BYTES
876
- })
877
- });
878
- var RUNTIME_GATEWAY_PROFILE_ID_SET = new Set(
879
- Object.values(RUNTIME_GATEWAY_PROFILE_IDS)
880
- );
881
- function normalizeRuntimeGatewayProfileId(value) {
882
- if (typeof value !== "string") return void 0;
883
- const normalized = value.trim();
884
- return RUNTIME_GATEWAY_PROFILE_ID_SET.has(normalized) ? normalized : void 0;
885
- }
886
-
887
869
  // ../play-runtime/runtime-environment.ts
888
870
  var PLAY_RUNTIME_ENVIRONMENTS = ["preview"];
889
- function selectedGatewayProfile(value) {
890
- if (value === void 0) return void 0;
891
- return _nullishCoalesce(normalizeRuntimeGatewayProfileId(value), () => ( null));
892
- }
893
871
  var PLAY_RUNTIME_NAMESPACE_PATTERN = /^[a-z][a-z0-9-]{0,30}$/;
894
872
  var PLAY_RUNTIME_SANDBOX_PLACEMENT_POLICY_PATTERN = /^[a-z][a-z0-9_]*@[1-9][0-9]*$/;
895
873
  function normalizePlayRuntimeNamespace(value) {
@@ -906,12 +884,10 @@ function normalizePlayRuntimeSelection(value) {
906
884
  if (!value || typeof value !== "object" || Array.isArray(value)) return null;
907
885
  const record = value;
908
886
  if (Object.keys(record).some(
909
- (key) => key !== "environment" && key !== "namespace" && key !== "backend" && key !== "sandboxPlacementPolicy" && key !== "gatewayProfile"
887
+ (key) => key !== "environment" && key !== "namespace" && key !== "backend" && key !== "sandboxPlacementPolicy"
910
888
  ) || record.environment !== "preview") {
911
889
  return null;
912
890
  }
913
- const gatewayProfile = selectedGatewayProfile(record.gatewayProfile);
914
- if (gatewayProfile === null) return null;
915
891
  const namespace = normalizePlayRuntimeNamespace(record.namespace);
916
892
  if (!namespace) return null;
917
893
  const sandboxPlacementPolicy = record.sandboxPlacementPolicy === void 0 ? void 0 : normalizePlayRuntimeSandboxPlacementPolicy(
@@ -927,8 +903,7 @@ function normalizePlayRuntimeSelection(value) {
927
903
  environment: "preview",
928
904
  namespace,
929
905
  ...record.backend === void 0 ? {} : { backend: record.backend },
930
- ...sandboxPlacementPolicy ? { sandboxPlacementPolicy } : {},
931
- ...gatewayProfile ? { gatewayProfile } : {}
906
+ ...sandboxPlacementPolicy ? { sandboxPlacementPolicy } : {}
932
907
  };
933
908
  }
934
909
  function normalizePlayRunRuntimeSelection(value) {
@@ -938,24 +913,14 @@ function normalizePlayRunRuntimeSelection(value) {
938
913
  return normalizePlayRuntimeSelection(value);
939
914
  }
940
915
  if (Object.keys(record).some(
941
- (key) => key !== "environment" && key !== "sandboxPlacementPolicy" && key !== "gatewayProfile"
916
+ (key) => key !== "environment" && key !== "sandboxPlacementPolicy"
942
917
  )) {
943
918
  return null;
944
919
  }
945
- const gatewayProfile = selectedGatewayProfile(record.gatewayProfile);
946
- if (gatewayProfile === null) return null;
947
- if (record.sandboxPlacementPolicy === void 0) {
948
- return gatewayProfile ? { environment: "native", gatewayProfile } : null;
949
- }
950
920
  const sandboxPlacementPolicy = normalizePlayRuntimeSandboxPlacementPolicy(
951
921
  record.sandboxPlacementPolicy
952
922
  );
953
- if (!sandboxPlacementPolicy) return null;
954
- return {
955
- environment: "native",
956
- sandboxPlacementPolicy,
957
- ...gatewayProfile ? { gatewayProfile } : {}
958
- };
923
+ return sandboxPlacementPolicy ? { environment: "native", sandboxPlacementPolicy } : null;
959
924
  }
960
925
  function normalizePlayRuntimeEnvironment(value) {
961
926
  return typeof value === "string" && PLAY_RUNTIME_ENVIRONMENTS.includes(value) ? value : null;
@@ -989,18 +954,21 @@ function resolvePlayRunRuntimeSelection(request, env) {
989
954
  const configuredNamespace = _optionalChain([env, 'access', _37 => _37.DEEPLINE_RUNTIME_NAMESPACE, 'optionalAccess', _38 => _38.trim, 'call', _39 => _39()]);
990
955
  const configuredToken = _optionalChain([env, 'access', _40 => _40.DEEPLINE_RUNTIME_ENVIRONMENT_TOKEN, 'optionalAccess', _41 => _41.trim, 'call', _42 => _42()]);
991
956
  const configuredPlacementPolicy = _optionalChain([env, 'access', _43 => _43.DEEPLINE_RUNTIME_SANDBOX_PLACEMENT_POLICY, 'optionalAccess', _44 => _44.trim, 'call', _45 => _45()]);
992
- const configuredGatewayProfile = _optionalChain([env, 'access', _46 => _46.DEEPLINE_RUNTIME_GATEWAY_PROFILE, 'optionalAccess', _47 => _47.trim, 'call', _48 => _48()]);
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
+ }
993
964
  if (!configured) {
994
- if (configuredNamespace || configuredToken || configuredPlacementPolicy || configuredGatewayProfile) {
965
+ if (configuredNamespace || configuredToken || configuredPlacementPolicy) {
995
966
  const present = [];
996
967
  if (configuredNamespace) present.push("DEEPLINE_RUNTIME_NAMESPACE");
997
968
  if (configuredToken) present.push("DEEPLINE_RUNTIME_ENVIRONMENT_TOKEN");
998
969
  if (configuredPlacementPolicy) {
999
970
  present.push("DEEPLINE_RUNTIME_SANDBOX_PLACEMENT_POLICY");
1000
971
  }
1001
- if (configuredGatewayProfile) {
1002
- present.push("DEEPLINE_RUNTIME_GATEWAY_PROFILE");
1003
- }
1004
972
  const isPlural = present.length > 1;
1005
973
  throw new (0, _chunkSQWET4SLjs.DeeplineError)(
1006
974
  [
@@ -1015,32 +983,18 @@ function resolvePlayRunRuntimeSelection(request, env) {
1015
983
  }
1016
984
  return void 0;
1017
985
  }
1018
- const selectedGatewayProfile2 = configuredGatewayProfile ? normalizeRuntimeGatewayProfileId(configuredGatewayProfile) : void 0;
1019
- if (configuredGatewayProfile && !selectedGatewayProfile2) {
1020
- throw new (0, _chunkSQWET4SLjs.DeeplineError)(
1021
- `DEEPLINE_RUNTIME_GATEWAY_PROFILE must be a supported versioned gateway profile id such as vercel_app@1. Received "${configuredGatewayProfile}".`,
1022
- void 0,
1023
- "INVALID_RUNTIME_GATEWAY_PROFILE"
1024
- );
1025
- }
1026
- const gatewayProfile = selectedGatewayProfile2 ? { gatewayProfile: selectedGatewayProfile2 } : {};
1027
986
  if (configured === "native") {
1028
- const sandboxPlacementPolicy = configuredPlacementPolicy ? normalizePlayRuntimeSandboxPlacementPolicy(configuredPlacementPolicy) : void 0;
1029
- if (configuredNamespace || configuredPlacementPolicy && !sandboxPlacementPolicy || !sandboxPlacementPolicy && !selectedGatewayProfile2) {
987
+ const sandboxPlacementPolicy = normalizePlayRuntimeSandboxPlacementPolicy(
988
+ configuredPlacementPolicy
989
+ );
990
+ if (configuredNamespace || !sandboxPlacementPolicy) {
1030
991
  throw new (0, _chunkSQWET4SLjs.DeeplineError)(
1031
- "DEEPLINE_RUNTIME_ENVIRONMENT=native requires DEEPLINE_RUNTIME_SANDBOX_PLACEMENT_POLICY (such as modal_only@1) and/or DEEPLINE_RUNTIME_GATEWAY_PROFILE (such as vercel_app@1), and no DEEPLINE_RUNTIME_NAMESPACE.",
992
+ "DEEPLINE_RUNTIME_ENVIRONMENT=native requires DEEPLINE_RUNTIME_SANDBOX_PLACEMENT_POLICY (such as modal_only@1) and no DEEPLINE_RUNTIME_NAMESPACE.",
1032
993
  void 0,
1033
994
  "INVALID_RUNTIME_ENVIRONMENT"
1034
995
  );
1035
996
  }
1036
- if (sandboxPlacementPolicy) {
1037
- return {
1038
- environment: "native",
1039
- sandboxPlacementPolicy,
1040
- ...gatewayProfile
1041
- };
1042
- }
1043
- return { environment: "native", gatewayProfile: selectedGatewayProfile2 };
997
+ return { environment: "native", sandboxPlacementPolicy };
1044
998
  }
1045
999
  const environment = normalizePlayRuntimeEnvironment(configured);
1046
1000
  if (!environment) {
@@ -1078,8 +1032,7 @@ function resolvePlayRunRuntimeSelection(request, env) {
1078
1032
  environment,
1079
1033
  namespace,
1080
1034
  ...configuredBackend ? { backend: configuredBackend } : {},
1081
- ...configuredPlacementPolicy ? { sandboxPlacementPolicy: configuredPlacementPolicy } : {},
1082
- ...gatewayProfile
1035
+ ...configuredPlacementPolicy ? { sandboxPlacementPolicy: configuredPlacementPolicy } : {}
1083
1036
  };
1084
1037
  }
1085
1038
  function resolveStartPlayRunRequest(request, env) {
@@ -1107,8 +1060,8 @@ function runtimeSelectionHeaders(runtime, env) {
1107
1060
  }
1108
1061
  const receivers = _optionalChain([env, 'access', _55 => _55.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _56 => _56.trim, 'call', _57 => _57()]);
1109
1062
  return {
1110
- [_chunkTT2XB433js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1111
- ...receivers ? { [_chunkTT2XB433js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1063
+ [_chunkHSFLMTEDjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1064
+ ...receivers ? { [_chunkHSFLMTEDjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1112
1065
  };
1113
1066
  }
1114
1067
  function normalizeTestPolicyOverrides(value, source) {
@@ -1142,10 +1095,10 @@ function isRecord2(value) {
1142
1095
  return Boolean(value && typeof value === "object" && !Array.isArray(value));
1143
1096
  }
1144
1097
  function normalizePlayStatus(raw) {
1145
- const runPackage = _chunk6Y3DDRRNjs.isPlayRunPackage.call(void 0, raw) ? raw : _chunk6Y3DDRRNjs.isPlayRunPackage.call(void 0, raw.package) ? raw.package : null;
1098
+ const runPackage = _chunk2KHUFWTKjs.isPlayRunPackage.call(void 0, raw) ? raw : _chunk2KHUFWTKjs.isPlayRunPackage.call(void 0, raw.package) ? raw.package : null;
1146
1099
  const packageRun = _optionalChain([runPackage, 'optionalAccess', _60 => _60.run]);
1147
1100
  const rawStatus = typeof raw.status === "string" ? raw.status : typeof _optionalChain([packageRun, 'optionalAccess', _61 => _61.status]) === "string" ? packageRun.status : null;
1148
- const status = _chunk6Y3DDRRNjs.decodePlayRunPublicStatus.call(void 0, rawStatus);
1101
+ const status = _chunk2KHUFWTKjs.decodePlayRunPublicStatus.call(void 0, rawStatus);
1149
1102
  if (!status) {
1150
1103
  throw new Error(
1151
1104
  `Invalid play run lifecycle status in API response: ${JSON.stringify(rawStatus)}.`
@@ -1176,10 +1129,10 @@ var PlayClient = class {
1176
1129
  async startPlayRun(request, options) {
1177
1130
  const resolved = resolveStartPlayRunRequest(request, this.environment);
1178
1131
  const headers = runtimeSelectionHeaders(resolved.runtime, this.environment);
1179
- return _chunk6Y3DDRRNjs.startPlayRun.call(void 0,
1132
+ return _chunk2KHUFWTKjs.startPlayRun.call(void 0,
1180
1133
  this.http,
1181
1134
  resolved.request,
1182
- _optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkTT2XB433js.SDK_API_MAJOR) } : headers,
1135
+ _optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkHSFLMTEDjs.SDK_API_MAJOR) } : headers,
1183
1136
  options
1184
1137
  );
1185
1138
  }
@@ -2540,6 +2493,22 @@ var REDACTION_TRIGGER_RE = new RegExp(
2540
2493
  "i"
2541
2494
  );
2542
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
+
2543
2512
  // ../play-runtime/docflow-node-io.ts
2544
2513
  var utf8Encoder = new TextEncoder();
2545
2514
  var PLAY_DATASET_BRAND = Symbol.for("deepline.play.dataset");
@@ -2729,7 +2698,7 @@ var TERMINAL_STATUS_BY_EVENT_TYPE = {
2729
2698
 
2730
2699
  // ../play-runtime/run-snapshot-stream.ts
2731
2700
  function isTerminalPlayRunLiveStatus(status) {
2732
- return _chunk6Y3DDRRNjs.isTerminalPlayRunLifecycleStatus.call(void 0, status);
2701
+ return _chunk2KHUFWTKjs.isTerminalPlayRunLifecycleStatus.call(void 0, status);
2733
2702
  }
2734
2703
  function makeRunStreamEvent(input) {
2735
2704
  return {
@@ -3260,7 +3229,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3260
3229
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3261
3230
  );
3262
3231
  }
3263
- return { [_chunkTT2XB433js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3232
+ return { [_chunkHSFLMTEDjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3264
3233
  }
3265
3234
  function sleep(ms) {
3266
3235
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -3391,7 +3360,7 @@ function playLiveRunStatus(event) {
3391
3360
  return null;
3392
3361
  }
3393
3362
  const payload = getPlayLiveEventPayload(event);
3394
- return _nullishCoalesce(_chunk6Y3DDRRNjs.decodePlayRunPublicStatus.call(void 0, payload.status), () => ( (_chunk6Y3DDRRNjs.isPlayRunPackage.call(void 0, payload) ? _chunk6Y3DDRRNjs.decodePlayRunPublicStatus.call(void 0, payload.run.status) : null)));
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)));
3395
3364
  }
3396
3365
  function appendPlayLiveLogLines(state, payload) {
3397
3366
  const lines = readStringArray(payload.lines);
@@ -3423,7 +3392,7 @@ function updatePlayLiveStatusState(state, event) {
3423
3392
  if (event.type !== "play.run.snapshot" && event.type !== "play.run.status" && event.type !== "play.run.final_status") {
3424
3393
  return null;
3425
3394
  }
3426
- const runId = typeof payload.runId === "string" && payload.runId ? payload.runId : _chunk6Y3DDRRNjs.isPlayRunPackage.call(void 0, payload) ? payload.run.id : state.runId;
3395
+ const runId = typeof payload.runId === "string" && payload.runId ? payload.runId : _chunk2KHUFWTKjs.isPlayRunPackage.call(void 0, payload) ? payload.run.id : state.runId;
3427
3396
  const status = _nullishCoalesce(playLiveRunStatus(event), () => ( state.status));
3428
3397
  const progressPayload = isRecord3(payload.progress) ? payload.progress : {};
3429
3398
  if (event.type === "play.run.final_status" && state.logs.length === 0 && state.lastLogSeq === 0) {
@@ -3436,7 +3405,7 @@ function updatePlayLiveStatusState(state, event) {
3436
3405
  }
3437
3406
  if ("result" in payload) {
3438
3407
  state.result = payload.result;
3439
- } else if (_chunk6Y3DDRRNjs.isPlayRunPackage.call(void 0, payload)) {
3408
+ } else if (_chunk2KHUFWTKjs.isPlayRunPackage.call(void 0, payload)) {
3440
3409
  state.result = payload;
3441
3410
  }
3442
3411
  if (typeof payload.error === "string" && payload.error.trim()) {
@@ -3449,7 +3418,7 @@ function updatePlayLiveStatusState(state, event) {
3449
3418
  ...payload,
3450
3419
  runId,
3451
3420
  status,
3452
- ..._chunk6Y3DDRRNjs.isPlayRunPackage.call(void 0, payload) ? { package: payload, outputs: payload.outputs } : {},
3421
+ ..._chunk2KHUFWTKjs.isPlayRunPackage.call(void 0, payload) ? { package: payload, outputs: payload.outputs } : {},
3453
3422
  progress: {
3454
3423
  ...progressRecord,
3455
3424
  status: typeof progressRecord.status === "string" ? progressRecord.status : status,
@@ -4137,7 +4106,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4137
4106
  */
4138
4107
  async preparePlayRunAdmission(request, options) {
4139
4108
  const resolved = resolveStartPlayRunRequest(request, this.environment);
4140
- const prepared = await _chunk6Y3DDRRNjs.preparePlayRunAdmission.call(void 0,
4109
+ const prepared = await _chunk2KHUFWTKjs.preparePlayRunAdmission.call(void 0,
4141
4110
  this.http,
4142
4111
  resolved.request,
4143
4112
  _optionalChain([options, 'optionalAccess', _187 => _187.onSubmission]),
@@ -4150,7 +4119,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4150
4119
  );
4151
4120
  const headers = _optionalChain([options, 'optionalAccess', _188 => _188.cliAdmission]) ? {
4152
4121
  ...runtimeHeaders,
4153
- "X-Deepline-API-Major": String(_chunkTT2XB433js.SDK_API_MAJOR)
4122
+ "X-Deepline-API-Major": String(_chunkHSFLMTEDjs.SDK_API_MAJOR)
4154
4123
  } : runtimeHeaders;
4155
4124
  const http = this.http;
4156
4125
  let submitted = false;
@@ -4166,7 +4135,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4166
4135
  }
4167
4136
  if (submitted) {
4168
4137
  if (!_optionalChain([options, 'optionalAccess', _189 => _189.callerIntentV2])) {
4169
- await _chunk6Y3DDRRNjs.preparePlayRunAdmission.call(void 0,
4138
+ await _chunk2KHUFWTKjs.preparePlayRunAdmission.call(void 0,
4170
4139
  http,
4171
4140
  JSON.parse(bodyJson),
4172
4141
  void 0,
@@ -4176,7 +4145,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4176
4145
  }
4177
4146
  submitted = true;
4178
4147
  try {
4179
- return await _chunk6Y3DDRRNjs.submitPreparedPlayRunAdmission.call(void 0,
4148
+ return await _chunk2KHUFWTKjs.submitPreparedPlayRunAdmission.call(void 0,
4180
4149
  http,
4181
4150
  JSON.parse(bodyJson),
4182
4151
  prepared.workflowId,
@@ -4189,7 +4158,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4189
4158
  }
4190
4159
  );
4191
4160
  } catch (error) {
4192
- if (error instanceof _chunk6Y3DDRRNjs.CliPlayAdmissionUnsupportedError || error instanceof _chunk6Y3DDRRNjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
4161
+ if (error instanceof _chunk2KHUFWTKjs.CliPlayAdmissionUnsupportedError || error instanceof _chunk2KHUFWTKjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
4193
4162
  submitted = false;
4194
4163
  }
4195
4164
  throw error;
@@ -4205,7 +4174,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4205
4174
  }
4206
4175
  if (submitted) {
4207
4176
  if (!_optionalChain([options, 'optionalAccess', _197 => _197.callerIntentV2])) {
4208
- await _chunk6Y3DDRRNjs.preparePlayRunAdmission.call(void 0,
4177
+ await _chunk2KHUFWTKjs.preparePlayRunAdmission.call(void 0,
4209
4178
  http,
4210
4179
  JSON.parse(bodyJson),
4211
4180
  void 0,
@@ -4214,7 +4183,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4214
4183
  }
4215
4184
  }
4216
4185
  submitted = true;
4217
- const streamPath = _optionalChain([options, 'optionalAccess', _199 => _199.callerIntentV2]) ? _chunk6Y3DDRRNjs.CLI_PLAY_RUN_CALLER_INTENT_V2_START_STREAM_PATH : _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? _chunk6Y3DDRRNjs.CLI_PLAY_RUN_START_STREAM_PATH : _chunk6Y3DDRRNjs.PLAY_RUN_START_STREAM_PATH;
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;
4218
4187
  let cliAdmissionSupported = false;
4219
4188
  try {
4220
4189
  for await (const event of http.streamSse(streamPath, {
@@ -4225,7 +4194,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4225
4194
  exactUrlOnly: true,
4226
4195
  ..._optionalChain([options, 'optionalAccess', _202 => _202.cliAdmission]) ? {
4227
4196
  onResponse: (response) => {
4228
- cliAdmissionSupported = response.headers.get(_chunk6Y3DDRRNjs.CLI_PLAY_RUN_SUPPORTED_HEADER) === "true";
4197
+ cliAdmissionSupported = response.headers.get(_chunk2KHUFWTKjs.CLI_PLAY_RUN_SUPPORTED_HEADER) === "true";
4229
4198
  }
4230
4199
  } : {}
4231
4200
  })) {
@@ -4235,12 +4204,12 @@ var DeeplineClient = (_class = class _DeeplineClient {
4235
4204
  if (_optionalChain([options, 'optionalAccess', _203 => _203.cliAdmission]) && !cliAdmissionSupported && error instanceof _chunkSQWET4SLjs.DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
4236
4205
  if (options.callerIntentV2) {
4237
4206
  submitted = false;
4238
- throw new (0, _chunk6Y3DDRRNjs.CliPlayAdmissionCallerIntentV2UnsupportedError)(
4207
+ throw new (0, _chunk2KHUFWTKjs.CliPlayAdmissionCallerIntentV2UnsupportedError)(
4239
4208
  error.statusCode
4240
4209
  );
4241
4210
  }
4242
4211
  submitted = false;
4243
- throw new (0, _chunk6Y3DDRRNjs.CliPlayAdmissionUnsupportedError)(error.statusCode);
4212
+ throw new (0, _chunk2KHUFWTKjs.CliPlayAdmissionUnsupportedError)(error.statusCode);
4244
4213
  }
4245
4214
  throw error;
4246
4215
  }
@@ -4253,7 +4222,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4253
4222
  * @internal
4254
4223
  */
4255
4224
  async prefetchPlayRunAdmissionCapability(options) {
4256
- return _chunk6Y3DDRRNjs.readPlayRunAdmissionCapability.call(void 0, this.http, options);
4225
+ return _chunk2KHUFWTKjs.readPlayRunAdmissionCapability.call(void 0, this.http, options);
4257
4226
  }
4258
4227
  /**
4259
4228
  * Submit a play run through the legacy event response.
@@ -4527,7 +4496,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4527
4496
  * ```
4528
4497
  */
4529
4498
  async stagePlayFiles(files) {
4530
- return _chunk6Y3DDRRNjs.stagePlayFiles.call(void 0, this.http, files);
4499
+ return _chunk2KHUFWTKjs.stagePlayFiles.call(void 0, this.http, files);
4531
4500
  }
4532
4501
  /**
4533
4502
  * Mint short-lived presigned upload targets for staged play files.
@@ -4536,7 +4505,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4536
4505
  * For other files, the server returns a presigned PUT URL. Upload the file body to that URL.
4537
4506
  */
4538
4507
  async mintStagedPlayFileUploads(files) {
4539
- return _chunk6Y3DDRRNjs.mintStagedPlayFileUploads.call(void 0, this.http, files);
4508
+ return _chunk2KHUFWTKjs.mintStagedPlayFileUploads.call(void 0, this.http, files);
4540
4509
  }
4541
4510
  /**
4542
4511
  * Resolve staged play files by content hash without uploading bytes.
@@ -4647,7 +4616,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4647
4616
  }
4648
4617
  })) {
4649
4618
  _optionalChain([options, 'optionalAccess', _241 => _241.onEvent, 'optionalCall', _242 => _242(event)]);
4650
- if (_chunk6Y3DDRRNjs.isTerminalPlayRunLifecycleStatus.call(void 0, playLiveRunStatus(event))) {
4619
+ if (_chunk2KHUFWTKjs.isTerminalPlayRunLifecycleStatus.call(void 0, playLiveRunStatus(event))) {
4651
4620
  terminalObserved = true;
4652
4621
  }
4653
4622
  }
@@ -4655,7 +4624,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4655
4624
  throw new (0, _chunkSQWET4SLjs.DeeplineError)("Run watch aborted.", void 0, "ABORTED");
4656
4625
  }
4657
4626
  const refreshed = await _asyncNullishCoalesce(terminalStatus, async () => ( await this.getRunStatus(runId)));
4658
- if (terminalObserved || _chunk6Y3DDRRNjs.isTerminalPlayRunLifecycleStatus.call(void 0, refreshed.status)) {
4627
+ if (terminalObserved || _chunk2KHUFWTKjs.isTerminalPlayRunLifecycleStatus.call(void 0, refreshed.status)) {
4659
4628
  return refreshed;
4660
4629
  }
4661
4630
  throw new (0, _chunkSQWET4SLjs.DeeplineError)(
@@ -6154,7 +6123,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6154
6123
  if (event.type !== "play.run.status" || status.status !== previousStatus) {
6155
6124
  _optionalChain([options, 'optionalAccess', _343 => _343.onProgress, 'optionalCall', _344 => _344(status)]);
6156
6125
  }
6157
- if (_chunk6Y3DDRRNjs.isTerminalPlayRunLifecycleStatus.call(void 0, status.status)) {
6126
+ if (_chunk2KHUFWTKjs.isTerminalPlayRunLifecycleStatus.call(void 0, status.status)) {
6158
6127
  terminalObserved = status;
6159
6128
  }
6160
6129
  }
@@ -8,7 +8,7 @@ import {
8
8
  csvStringFromRows,
9
9
  markJsonOutputHandled,
10
10
  writeRawStderr
11
- } from "./chunk-CRE3OGHH.mjs";
11
+ } from "./chunk-A6USUS4L.mjs";
12
12
 
13
13
  // src/cli/describe-options.ts
14
14
  function addDescribeOptions(command, options = {}) {
@@ -1,16 +1,16 @@
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 _chunkO655PVT4js = require('./chunk-O655PVT4.js');
3
+ var _chunkQGTWGHYDjs = require('./chunk-QGTWGHYD.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkBQYXIAJMjs = require('./chunk-BQYXIAJM.js');
7
+ var _chunkEILHJRPWjs = require('./chunk-EILHJRPW.js');
8
8
 
9
9
  // src/client.ts
10
- var DeeplineClient2 = class extends _chunkO655PVT4js.DeeplineClient {
10
+ var DeeplineClient2 = class extends _chunkQGTWGHYDjs.DeeplineClient {
11
11
  constructor(options) {
12
- const config = _chunkBQYXIAJMjs.resolveConfig.call(void 0, options);
13
- super(config, new (0, _chunkBQYXIAJMjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
12
+ const config = _chunkEILHJRPWjs.resolveConfig.call(void 0, options);
13
+ super(config, new (0, _chunkEILHJRPWjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
14
14
  }
15
15
  };
16
16
 
@@ -292,24 +292,6 @@ function buildAsyncPlayRequestFingerprint(input) {
292
292
  })
293
293
  );
294
294
  }
295
- var PLAY_RUN_ID_MAX_LENGTH = 256;
296
- var RUNTIME_SCOPE_RUN_ID_PATTERN = /^[A-Za-z0-9_.:@/-]+$/;
297
- function isRuntimeScopeRunId(value) {
298
- return typeof value === "string" && value.length > 0 && value.length <= PLAY_RUN_ID_MAX_LENGTH && RUNTIME_SCOPE_RUN_ID_PATTERN.test(value);
299
- }
300
- var PLAY_RUN_ID_PATTERN = /^play\/([a-z0-9-]+(?:\/[a-z0-9-]+)*)\/run\/\d{8}t\d{6}-\d{3}(?:-[a-z0-9]{8}(-caller-[a-f0-9]{64})?|(-async-[a-f0-9]{20})|(-rerun-[a-f0-9]{20}))?$/;
301
- function parsePlayRunId(value) {
302
- if (!isRuntimeScopeRunId(value)) return null;
303
- const match = PLAY_RUN_ID_PATTERN.exec(value);
304
- if (!match) return null;
305
- const startedAtMs = canonicalPlayRunStartedAtMs(value);
306
- if (startedAtMs === null) return null;
307
- return Object.freeze({
308
- familyKey: match[1],
309
- startedAtMs,
310
- kind: match[2] ? "caller" : match[3] ? "async" : match[4] ? "rerun" : "root"
311
- });
312
- }
313
295
 
314
296
  export {
315
297
  stableStringify,
@@ -324,8 +306,5 @@ export {
324
306
  buildPlayRunIdentity,
325
307
  buildAsyncPlayRunIdentity,
326
308
  buildRerunPlayRunIdentity,
327
- buildAsyncPlayRequestFingerprint,
328
- PLAY_RUN_ID_MAX_LENGTH,
329
- isRuntimeScopeRunId,
330
- parsePlayRunId
309
+ buildAsyncPlayRequestFingerprint
331
310
  };