deepline 0.3.500 → 0.3.501

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 (178) hide show
  1. package/dist/bundling-sources/sdk/src/plays/client-core.ts +45 -7
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  4. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +155 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +7 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/durable-invocation-fence.ts +3 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +54 -1
  9. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +12 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +13 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +56 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +21 -10
  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 +1 -2
  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-launch-transport.ts +9 -2
  17. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +31 -1
  18. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +74 -3
  19. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +226 -2
  20. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +41 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +5 -1
  22. package/dist/bundling-sources/shared_libs/play-runtime/runtime-app-transport.ts +374 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +5 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +49 -9
  25. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +25 -3
  26. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-profile.ts +12 -1
  27. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-sandbox-credential.ts +338 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-staging.ts +417 -0
  29. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +15 -0
  30. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +184 -11
  31. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +17 -3
  32. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-progress-registry.ts +9 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -2
  34. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +176 -16
  35. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-attempt.ts +81 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-journal.ts +708 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-teardown.ts +160 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +4 -0
  39. package/dist/cli/{auth-WK3FDPRP.mjs → auth-6ECHXOI4.mjs} +5 -5
  40. package/dist/cli/auth-VP7PMXKQ.js +43 -0
  41. package/dist/cli/{billing-O3LVKXE7.mjs → billing-75NZYRXA.mjs} +8 -8
  42. package/dist/cli/{billing-K7UHZUF4.js → billing-QRR7O6BD.js} +81 -81
  43. package/dist/cli/{chunk-RAZ3TMOS.js → chunk-463ZOO2L.js} +7 -7
  44. package/dist/cli/{chunk-W64Y7GE7.js → chunk-4OXHLTCP.js} +1 -1
  45. package/dist/cli/{chunk-5TVY5OEH.mjs → chunk-5S7MLAI7.mjs} +11 -11
  46. package/dist/cli/{chunk-SNJNPRIV.js → chunk-5X4AUFYW.js} +7 -7
  47. package/dist/cli/{chunk-CIV5GJAE.mjs → chunk-66XDYH5T.mjs} +2 -2
  48. package/dist/cli/{chunk-SRS2D27G.mjs → chunk-7L6QNHUL.mjs} +1 -1
  49. package/dist/cli/{chunk-GBRI644Y.js → chunk-APAHMCGR.js} +53 -53
  50. package/dist/cli/{chunk-UBKA33KY.mjs → chunk-BMCRTI6Z.mjs} +22 -1
  51. package/dist/cli/{chunk-K3BHKRMS.js → chunk-BOFCF4L7.js} +3 -3
  52. package/dist/cli/{chunk-KEBNXJSK.js → chunk-CJJ7JBM2.js} +16 -16
  53. package/dist/cli/{chunk-5JXGYSXH.mjs → chunk-EHVFBD36.mjs} +1 -1
  54. package/dist/cli/{chunk-5KAZGZG7.js → chunk-EKF4DKUA.js} +5 -5
  55. package/dist/cli/{chunk-IX2DPYIV.js → chunk-EKZQ5LQO.js} +3 -3
  56. package/dist/cli/{chunk-JHNFUCVT.mjs → chunk-EOO7OSS4.mjs} +4 -4
  57. package/dist/cli/{chunk-GOO4VI5M.js → chunk-FS7XYDOF.js} +16 -16
  58. package/dist/cli/{chunk-G3NA4R7M.js → chunk-HDKXSHGA.js} +53 -53
  59. package/dist/cli/{chunk-PHGMC33I.js → chunk-J6SVNKRP.js} +2 -2
  60. package/dist/cli/{chunk-L7X6ADNM.mjs → chunk-J74N375S.mjs} +4 -4
  61. package/dist/cli/{chunk-X7ODM2LK.js → chunk-KTOAJP4N.js} +6 -6
  62. package/dist/cli/{chunk-CBZTKDXW.mjs → chunk-MADTHS56.mjs} +1 -1
  63. package/dist/cli/{chunk-IZ6YWXIK.mjs → chunk-MSLXAVVK.mjs} +2 -2
  64. package/dist/cli/{chunk-Q2FXZ4Z5.js → chunk-N2TJJNCW.js} +96 -96
  65. package/dist/cli/{chunk-CS2AEAD6.mjs → chunk-N4TR6QRI.mjs} +1 -1
  66. package/dist/cli/{chunk-XCBOOB73.mjs → chunk-NA3J3F2Z.mjs} +1 -1
  67. package/dist/cli/{chunk-QRKCCY4L.mjs → chunk-O3DDVP7Z.mjs} +1 -1
  68. package/dist/cli/{chunk-XUOZYAP5.mjs → chunk-OKOXB3LY.mjs} +2 -2
  69. package/dist/cli/{chunk-SNPZ2QWL.js → chunk-PNF2ZU4R.js} +8 -8
  70. package/dist/cli/{chunk-X5SO7RV5.mjs → chunk-PXIF74UJ.mjs} +4 -4
  71. package/dist/cli/{chunk-74VKLBJD.js → chunk-QQ3JJYE2.js} +14 -14
  72. package/dist/cli/{chunk-4CJWOLOS.mjs → chunk-RFV7PPLS.mjs} +3 -3
  73. package/dist/cli/{chunk-EQR5O2D2.js → chunk-RNSHCJME.js} +3 -3
  74. package/dist/cli/{chunk-REIKJREB.js → chunk-RU5ROUFO.js} +5 -5
  75. package/dist/cli/{chunk-TOGCDNMH.js → chunk-SV2TEZ2M.js} +4 -4
  76. package/dist/cli/{chunk-MAHLIWOF.mjs → chunk-T4U245E4.mjs} +2 -2
  77. package/dist/cli/{chunk-T4AGTOKQ.mjs → chunk-T7E3XEPG.mjs} +6 -6
  78. package/dist/cli/{chunk-RHE4YI4H.js → chunk-TOE7LHEA.js} +6 -6
  79. package/dist/cli/{chunk-FJZUG633.mjs → chunk-UJRN6YP6.mjs} +3 -3
  80. package/dist/cli/{chunk-BIE57V6K.js → chunk-UR7JOSLT.js} +360 -300
  81. package/dist/cli/{chunk-5AC7NUQN.mjs → chunk-V5NHEYU7.mjs} +5 -5
  82. package/dist/cli/{chunk-PGRPNRP6.mjs → chunk-VD2374K7.mjs} +1 -1
  83. package/dist/cli/{chunk-VLCY4F6E.js → chunk-VL72UKNW.js} +26 -26
  84. package/dist/cli/{chunk-56QAHX2K.mjs → chunk-VTDAJZIJ.mjs} +90 -30
  85. package/dist/cli/{chunk-Z5LE7NXM.js → chunk-VVEMPC2I.js} +2 -2
  86. package/dist/cli/{chunk-U5GFP26N.js → chunk-W6JTHVPF.js} +21 -21
  87. package/dist/cli/{chunk-C7355NMU.mjs → chunk-WJUDAHIQ.mjs} +1 -1
  88. package/dist/cli/{chunk-XDVT3GOM.js → chunk-WSGXBROE.js} +22 -1
  89. package/dist/cli/{chunk-LNMY2T5S.js → chunk-XEBFJ2PH.js} +41 -41
  90. package/dist/cli/{chunk-HI2BFS5S.mjs → chunk-Z6AUOV7D.mjs} +2 -2
  91. package/dist/cli/{chunk-VPVEPGYS.mjs → chunk-ZUOKIBLJ.mjs} +2 -2
  92. package/dist/cli/{chunk-V7MZYIA7.mjs → chunk-ZUQHQGC5.mjs} +5 -5
  93. package/dist/cli/{csv-MWCWNIBJ.js → csv-JXX2LXK5.js} +13 -13
  94. package/dist/cli/{csv-DEUOSTEB.mjs → csv-RZJ4SOIL.mjs} +4 -4
  95. package/dist/cli/{db-QM5R5BRY.mjs → db-MUTT2NWI.mjs} +8 -8
  96. package/dist/cli/{db-Q6IRXTTG.js → db-T2KJNONM.js} +29 -29
  97. package/dist/cli/{describe-CQZ7TBOG.mjs → describe-K3UMAAVO.mjs} +19 -19
  98. package/dist/cli/describe-SEXUJLE4.js +50 -0
  99. package/dist/cli/describe-core.d.mts +2 -2
  100. package/dist/cli/describe-core.d.ts +2 -2
  101. package/dist/cli/{executions-DCCDXSQI.js → executions-7HSLDRHR.js} +10 -10
  102. package/dist/cli/{executions-SWBKFCY2.mjs → executions-PHS4R2OX.mjs} +8 -8
  103. package/dist/cli/{feedback-EU3EYF4V.js → feedback-BJZRM637.js} +8 -8
  104. package/dist/cli/{feedback-Q27HN3SB.mjs → feedback-RWMDCIDF.mjs} +4 -4
  105. package/dist/cli/git-VNS7UQWN.js +25 -0
  106. package/dist/cli/{git-SEQFTQ4N.mjs → git-YW6VHYZG.mjs} +5 -5
  107. package/dist/cli/index.js +137 -137
  108. package/dist/cli/index.mjs +40 -40
  109. package/dist/cli/{legacy-noops-LCQDEVA3.js → legacy-noops-2WUV2XD7.js} +8 -8
  110. package/dist/cli/{legacy-noops-XKH4VREG.mjs → legacy-noops-5UBSUPGG.mjs} +5 -5
  111. package/dist/cli/{monitors-4XWBV46I.mjs → monitors-HWOQO3OK.mjs} +9 -9
  112. package/dist/cli/{monitors-DJCID6X5.js → monitors-YZZRKSTG.js} +97 -97
  113. package/dist/cli/{org-BU4FG5PN.js → org-JY7HLHBA.js} +74 -74
  114. package/dist/cli/{org-PSBGXBRW.mjs → org-NCXT6RB4.mjs} +8 -8
  115. package/dist/cli/{pages-3PHJYXYB.js → pages-6ZOHXL6X.js} +20 -20
  116. package/dist/cli/{pages-7QLXLJGQ.mjs → pages-QJO53QAT.mjs} +8 -8
  117. package/dist/cli/{play-4OLYXRCG.mjs → play-SQRS7JN3.mjs} +20 -20
  118. package/dist/cli/{play-S3CWPQKB.js → play-TAYGSR35.js} +336 -336
  119. package/dist/cli/{providers-JT7C2QTC.mjs → providers-3IR3N5DT.mjs} +8 -8
  120. package/dist/cli/{providers-U4JUMLB2.js → providers-4Q5LOIQ5.js} +11 -11
  121. package/dist/cli/{quickstart-OUSMXLYZ.js → quickstart-ITNUZENY.js} +6 -6
  122. package/dist/cli/{quickstart-DQF5CF2I.mjs → quickstart-KCZCYO6B.mjs} +4 -4
  123. package/dist/cli/{run-RECNI77K.mjs → run-JCWRWDSK.mjs} +24 -24
  124. package/dist/cli/{run-6XXHLB4X.js → run-YQ57LMKN.js} +42 -42
  125. package/dist/cli/run-identity-HFYABUJS.js +31 -0
  126. package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MNRZS2N3.mjs} +9 -3
  127. package/dist/cli/{search-JN7K3GC6.mjs → search-FUM27HQP.mjs} +9 -9
  128. package/dist/cli/search-I425FRTK.js +32 -0
  129. package/dist/cli/{search-output-L6PC5SPM.mjs → search-output-EWEYT34M.mjs} +4 -4
  130. package/dist/cli/{search-output-JGNYXDWZ.js → search-output-XAMWKRJH.js} +6 -6
  131. package/dist/cli/{secrets-TX6PCZ77.js → secrets-2IRRRZBL.js} +17 -17
  132. package/dist/cli/{secrets-UOXZWHBY.mjs → secrets-YTI4IAKR.mjs} +8 -8
  133. package/dist/cli/{sessions-DTE733EH.mjs → sessions-EFS4KUPF.mjs} +5 -5
  134. package/dist/cli/{sessions-GCEIX4KB.js → sessions-HWTRDXBQ.js} +6 -6
  135. package/dist/cli/{settings-UGXSDHR5.js → settings-FRVEIOKR.js} +80 -80
  136. package/dist/cli/{settings-ZGIMRCTC.mjs → settings-NTOO42DY.mjs} +13 -13
  137. package/dist/cli/{setup-JYB6Z376.js → setup-6ZIOAE2V.js} +49 -49
  138. package/dist/cli/{setup-UT7AO53D.mjs → setup-PAVQPALX.mjs} +9 -9
  139. package/dist/cli/{skills-4QJCMN7J.mjs → skills-3O3XTPUM.mjs} +7 -7
  140. package/dist/cli/skills-6ZNMO2PR.js +36 -0
  141. package/dist/cli/{tools-RGNXIAA6.mjs → tools-7QSB65UL.mjs} +18 -18
  142. package/dist/cli/tools-DPV2JES6.js +57 -0
  143. package/dist/cli/update-Q5GUDEAW.js +34 -0
  144. package/dist/cli/{update-Q62EVSXZ.mjs → update-T6CYS5ZT.mjs} +9 -9
  145. package/dist/cli/{workflow-GENV47RD.js → workflow-4KMJBMGX.js} +19 -19
  146. package/dist/cli/{workflow-YNIOWM7J.mjs → workflow-OMSXZ73T.mjs} +9 -9
  147. package/dist/{client-Cj3UqrCZ.d.ts → client-Bn8FwKGO.d.ts} +1 -1
  148. package/dist/{client-DSCTVVRj.d.mts → client-CfNRmjLK.d.mts} +1 -1
  149. package/dist/{client-core-dI4KTuWS.d.ts → client-core-B91EV0WS.d.ts} +19 -0
  150. package/dist/{client-core-B-8DTIN1.d.mts → client-core-BG8Cgrmk.d.mts} +19 -0
  151. package/dist/index.d.mts +3 -3
  152. package/dist/index.d.ts +3 -3
  153. package/dist/index.js +19 -19
  154. package/dist/index.mjs +8 -8
  155. package/dist/install-integrity.json +114 -108
  156. package/dist/plays/play-description.d.mts +1 -1
  157. package/dist/plays/play-description.d.ts +1 -1
  158. package/dist/plays/run-request.d.mts +1 -1
  159. package/dist/plays/run-request.d.ts +1 -1
  160. package/dist/plays/run-request.js +3 -3
  161. package/dist/plays/run-request.mjs +2 -2
  162. package/dist/release.d.mts +1 -1
  163. package/dist/release.d.ts +1 -1
  164. package/dist/release.js +2 -2
  165. package/dist/release.mjs +1 -1
  166. package/dist/server.d.mts +2 -2
  167. package/dist/server.d.ts +2 -2
  168. package/dist/server.js +7 -7
  169. package/dist/server.mjs +5 -5
  170. package/package.json +1 -1
  171. package/dist/cli/auth-H4PCVUN3.js +0 -43
  172. package/dist/cli/describe-BZ544347.js +0 -50
  173. package/dist/cli/git-NW6BAXX2.js +0 -25
  174. package/dist/cli/run-identity-G257GQED.js +0 -25
  175. package/dist/cli/search-BIQ62ZBE.js +0 -32
  176. package/dist/cli/skills-53LCPB5R.js +0 -36
  177. package/dist/cli/tools-HKJK6UNJ.js +0 -57
  178. package/dist/cli/update-QMZSFTFZ.js +0 -34
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-XCBOOB73.mjs";
4
+ } from "./chunk-NA3J3F2Z.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-X5SO7RV5.mjs";
7
+ } from "./chunk-PXIF74UJ.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-L7X6ADNM.mjs";
10
+ } from "./chunk-J74N375S.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-CIV5GJAE.mjs";
13
+ } from "./chunk-66XDYH5T.mjs";
14
14
  import {
15
15
  autoDetectBaseUrl
16
- } from "./chunk-CBZTKDXW.mjs";
16
+ } from "./chunk-MADTHS56.mjs";
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  import { spawn, spawnSync } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-CIV5GJAE.mjs";
3
+ } from "./chunk-66XDYH5T.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkSNJNPRIVjs = require('./chunk-SNJNPRIV.js');
5
+ var _chunk5X4AUFYWjs = require('./chunk-5X4AUFYW.js');
6
6
 
7
7
 
8
- var _chunkK3BHKRMSjs = require('./chunk-K3BHKRMS.js');
8
+ var _chunkBOFCF4L7js = require('./chunk-BOFCF4L7.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunk5X4AUFYWjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkSNJNPRIVjs.printCommandEnvelope.call(void 0,
39
+ _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunk5X4AUFYWjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkSNJNPRIVjs.printCommandEnvelope.call(void 0,
139
+ _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunk5X4AUFYWjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkSNJNPRIVjs.printCommandEnvelope.call(void 0,
153
+ _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunk5X4AUFYWjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunk5X4AUFYWjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkSNJNPRIVjs.printCommandEnvelope.call(void 0,
200
+ _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunk5X4AUFYWjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkSNJNPRIVjs.printCommandEnvelope.call(void 0,
227
+ _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunk5X4AUFYWjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkSNJNPRIVjs.printCommandEnvelope.call(void 0,
254
+ _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunk5X4AUFYWjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkSNJNPRIVjs.printCommandEnvelope.call(void 0,
269
+ _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunkK3BHKRMSjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkBOFCF4L7js.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkSNJNPRIVjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkSNJNPRIVjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunk5X4AUFYWjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunk5X4AUFYWjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkSNJNPRIVjs.printCommandEnvelope.call(void 0,
322
+ _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunk5X4AUFYWjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkSNJNPRIVjs.printCommandEnvelope.call(void 0,
371
+ _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunk5X4AUFYWjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkSNJNPRIVjs.printCommandEnvelope.call(void 0,
392
+ _chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -20,7 +20,7 @@ import {
20
20
  stagePlayFiles,
21
21
  startPlayRun,
22
22
  submitPreparedPlayRunAdmission
23
- } from "./chunk-CS2AEAD6.mjs";
23
+ } from "./chunk-N4TR6QRI.mjs";
24
24
  import {
25
25
  describePlayDetail,
26
26
  describePlayListItem
@@ -31,7 +31,7 @@ import {
31
31
  RETAINED_PIPELINE_RECEIVERS_HEADER,
32
32
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
33
33
  SDK_API_MAJOR
34
- } from "./chunk-5JXGYSXH.mjs";
34
+ } from "./chunk-EHVFBD36.mjs";
35
35
  import {
36
36
  CustomerDbQueryOutcomeUnknownError
37
37
  } from "./chunk-4QF2K7TM.mjs";
@@ -844,8 +844,52 @@ var ToolCalls = class {
844
844
  }
845
845
  };
846
846
 
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
+
847
887
  // ../play-runtime/runtime-environment.ts
848
888
  var PLAY_RUNTIME_ENVIRONMENTS = ["preview"];
889
+ function selectedGatewayProfile(value) {
890
+ if (value === void 0) return void 0;
891
+ return normalizeRuntimeGatewayProfileId(value) ?? null;
892
+ }
849
893
  var PLAY_RUNTIME_NAMESPACE_PATTERN = /^[a-z][a-z0-9-]{0,30}$/;
850
894
  var PLAY_RUNTIME_SANDBOX_PLACEMENT_POLICY_PATTERN = /^[a-z][a-z0-9_]*@[1-9][0-9]*$/;
851
895
  function normalizePlayRuntimeNamespace(value) {
@@ -862,10 +906,12 @@ function normalizePlayRuntimeSelection(value) {
862
906
  if (!value || typeof value !== "object" || Array.isArray(value)) return null;
863
907
  const record = value;
864
908
  if (Object.keys(record).some(
865
- (key) => key !== "environment" && key !== "namespace" && key !== "backend" && key !== "sandboxPlacementPolicy"
909
+ (key) => key !== "environment" && key !== "namespace" && key !== "backend" && key !== "sandboxPlacementPolicy" && key !== "gatewayProfile"
866
910
  ) || record.environment !== "preview") {
867
911
  return null;
868
912
  }
913
+ const gatewayProfile = selectedGatewayProfile(record.gatewayProfile);
914
+ if (gatewayProfile === null) return null;
869
915
  const namespace = normalizePlayRuntimeNamespace(record.namespace);
870
916
  if (!namespace) return null;
871
917
  const sandboxPlacementPolicy = record.sandboxPlacementPolicy === void 0 ? void 0 : normalizePlayRuntimeSandboxPlacementPolicy(
@@ -881,7 +927,8 @@ function normalizePlayRuntimeSelection(value) {
881
927
  environment: "preview",
882
928
  namespace,
883
929
  ...record.backend === void 0 ? {} : { backend: record.backend },
884
- ...sandboxPlacementPolicy ? { sandboxPlacementPolicy } : {}
930
+ ...sandboxPlacementPolicy ? { sandboxPlacementPolicy } : {},
931
+ ...gatewayProfile ? { gatewayProfile } : {}
885
932
  };
886
933
  }
887
934
  function normalizePlayRunRuntimeSelection(value) {
@@ -891,14 +938,24 @@ function normalizePlayRunRuntimeSelection(value) {
891
938
  return normalizePlayRuntimeSelection(value);
892
939
  }
893
940
  if (Object.keys(record).some(
894
- (key) => key !== "environment" && key !== "sandboxPlacementPolicy"
941
+ (key) => key !== "environment" && key !== "sandboxPlacementPolicy" && key !== "gatewayProfile"
895
942
  )) {
896
943
  return null;
897
944
  }
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
+ }
898
950
  const sandboxPlacementPolicy = normalizePlayRuntimeSandboxPlacementPolicy(
899
951
  record.sandboxPlacementPolicy
900
952
  );
901
- return sandboxPlacementPolicy ? { environment: "native", sandboxPlacementPolicy } : null;
953
+ if (!sandboxPlacementPolicy) return null;
954
+ return {
955
+ environment: "native",
956
+ sandboxPlacementPolicy,
957
+ ...gatewayProfile ? { gatewayProfile } : {}
958
+ };
902
959
  }
903
960
  function normalizePlayRuntimeEnvironment(value) {
904
961
  return typeof value === "string" && PLAY_RUNTIME_ENVIRONMENTS.includes(value) ? value : null;
@@ -932,14 +989,18 @@ function resolvePlayRunRuntimeSelection(request, env) {
932
989
  const configuredNamespace = env.DEEPLINE_RUNTIME_NAMESPACE?.trim();
933
990
  const configuredToken = env.DEEPLINE_RUNTIME_ENVIRONMENT_TOKEN?.trim();
934
991
  const configuredPlacementPolicy = env.DEEPLINE_RUNTIME_SANDBOX_PLACEMENT_POLICY?.trim();
992
+ const configuredGatewayProfile = env.DEEPLINE_RUNTIME_GATEWAY_PROFILE?.trim();
935
993
  if (!configured) {
936
- if (configuredNamespace || configuredToken || configuredPlacementPolicy) {
994
+ if (configuredNamespace || configuredToken || configuredPlacementPolicy || configuredGatewayProfile) {
937
995
  const present = [];
938
996
  if (configuredNamespace) present.push("DEEPLINE_RUNTIME_NAMESPACE");
939
997
  if (configuredToken) present.push("DEEPLINE_RUNTIME_ENVIRONMENT_TOKEN");
940
998
  if (configuredPlacementPolicy) {
941
999
  present.push("DEEPLINE_RUNTIME_SANDBOX_PLACEMENT_POLICY");
942
1000
  }
1001
+ if (configuredGatewayProfile) {
1002
+ present.push("DEEPLINE_RUNTIME_GATEWAY_PROFILE");
1003
+ }
943
1004
  const isPlural = present.length > 1;
944
1005
  throw new DeeplineError(
945
1006
  [
@@ -954,18 +1015,32 @@ function resolvePlayRunRuntimeSelection(request, env) {
954
1015
  }
955
1016
  return void 0;
956
1017
  }
957
- if (configured === "native") {
958
- const sandboxPlacementPolicy = normalizePlayRuntimeSandboxPlacementPolicy(
959
- configuredPlacementPolicy
1018
+ const selectedGatewayProfile2 = configuredGatewayProfile ? normalizeRuntimeGatewayProfileId(configuredGatewayProfile) : void 0;
1019
+ if (configuredGatewayProfile && !selectedGatewayProfile2) {
1020
+ throw new 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"
960
1024
  );
961
- if (configuredNamespace || !sandboxPlacementPolicy) {
1025
+ }
1026
+ const gatewayProfile = selectedGatewayProfile2 ? { gatewayProfile: selectedGatewayProfile2 } : {};
1027
+ if (configured === "native") {
1028
+ const sandboxPlacementPolicy = configuredPlacementPolicy ? normalizePlayRuntimeSandboxPlacementPolicy(configuredPlacementPolicy) : void 0;
1029
+ if (configuredNamespace || configuredPlacementPolicy && !sandboxPlacementPolicy || !sandboxPlacementPolicy && !selectedGatewayProfile2) {
962
1030
  throw new DeeplineError(
963
- "DEEPLINE_RUNTIME_ENVIRONMENT=native requires DEEPLINE_RUNTIME_SANDBOX_PLACEMENT_POLICY (such as modal_only@1) and no DEEPLINE_RUNTIME_NAMESPACE.",
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.",
964
1032
  void 0,
965
1033
  "INVALID_RUNTIME_ENVIRONMENT"
966
1034
  );
967
1035
  }
968
- return { environment: "native", sandboxPlacementPolicy };
1036
+ if (sandboxPlacementPolicy) {
1037
+ return {
1038
+ environment: "native",
1039
+ sandboxPlacementPolicy,
1040
+ ...gatewayProfile
1041
+ };
1042
+ }
1043
+ return { environment: "native", gatewayProfile: selectedGatewayProfile2 };
969
1044
  }
970
1045
  const environment = normalizePlayRuntimeEnvironment(configured);
971
1046
  if (!environment) {
@@ -1003,7 +1078,8 @@ function resolvePlayRunRuntimeSelection(request, env) {
1003
1078
  environment,
1004
1079
  namespace,
1005
1080
  ...configuredBackend ? { backend: configuredBackend } : {},
1006
- ...configuredPlacementPolicy ? { sandboxPlacementPolicy: configuredPlacementPolicy } : {}
1081
+ ...configuredPlacementPolicy ? { sandboxPlacementPolicy: configuredPlacementPolicy } : {},
1082
+ ...gatewayProfile
1007
1083
  };
1008
1084
  }
1009
1085
  function resolveStartPlayRunRequest(request, env) {
@@ -2464,22 +2540,6 @@ var REDACTION_TRIGGER_RE = new RegExp(
2464
2540
  "i"
2465
2541
  );
2466
2542
 
2467
- // ../play-runtime/output-size-limits.ts
2468
- var TERMINAL_RUN_RESULT_MAX_BYTES = 6 * 1024 * 1024;
2469
- var LEDGER_TERMINAL_RESULT_MAX_BYTES = 256 * 1024;
2470
- var CUSTOMER_OUTPUT_VALUE_MAX_BYTES = 5 * 1024 * 1024;
2471
- var CUSTOMER_OUTPUT_TOTAL_MAX_BYTES = 5 * 1024 * 1024;
2472
- var RUNTIME_RECEIPT_OUTPUT_MAX_BYTES = 10 * 1024 * 1024;
2473
- var RUNTIME_RECEIPT_COMPLETION_BUFFER_MAX_BYTES = 32 * 1024 * 1024;
2474
- var RUNTIME_RECEIPT_CONTROL_BUFFER_MAX_BYTES = 2 * 1024 * 1024;
2475
- var RUNNER_TERMINAL_PUSH_MAX_BODY_BYTES = 16 * 1024 * 1024;
2476
- var RUNTIME_SHEET_START_TARGET_BODY_BYTES = 12 * 1024 * 1024;
2477
- var RUNTIME_RECEIPT_GATEWAY_BATCH_MAX_BYTES = 12 * 1024 * 1024;
2478
- var RUNTIME_RECEIPT_WRITER_TARGET_BATCH_BYTES = 8 * 1024 * 1024;
2479
- var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
2480
- var JSON_SIZE_LIMIT_REACHED = Symbol("JSON_SIZE_LIMIT_REACHED");
2481
- var OMIT_JSON_OUTPUT_VALUE = Symbol("OMIT_JSON_OUTPUT_VALUE");
2482
-
2483
2543
  // ../play-runtime/docflow-node-io.ts
2484
2544
  var utf8Encoder = new TextEncoder();
2485
2545
  var PLAY_DATASET_BRAND = Symbol.for("deepline.play.dataset");
@@ -1,6 +1,6 @@
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
- var _chunkGBRI644Yjs = require('./chunk-GBRI644Y.js');
3
+ var _chunkAPAHMCGRjs = require('./chunk-APAHMCGR.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkGBRI644Yjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkAPAHMCGRjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -4,20 +4,20 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkGOO4VI5Mjs = require('./chunk-GOO4VI5M.js');
7
+ var _chunkFS7XYDOFjs = require('./chunk-FS7XYDOF.js');
8
8
 
9
9
 
10
- var _chunkGBRI644Yjs = require('./chunk-GBRI644Y.js');
10
+ var _chunkAPAHMCGRjs = require('./chunk-APAHMCGR.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkSNJNPRIVjs = require('./chunk-SNJNPRIV.js');
14
+ var _chunk5X4AUFYWjs = require('./chunk-5X4AUFYW.js');
15
15
 
16
16
 
17
- var _chunkK3BHKRMSjs = require('./chunk-K3BHKRMS.js');
17
+ var _chunkBOFCF4L7js = require('./chunk-BOFCF4L7.js');
18
18
 
19
19
 
20
- var _chunkTOGCDNMHjs = require('./chunk-TOGCDNMH.js');
20
+ var _chunkSV2TEZ2Mjs = require('./chunk-SV2TEZ2M.js');
21
21
 
22
22
  // src/cli/compatibility-catalog.ts
23
23
  var readers = /* @__PURE__ */ new WeakMap();
@@ -44,7 +44,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
44
44
  async function reportAutoUpdateEvent(input) {
45
45
  let apiKey = "";
46
46
  try {
47
- apiKey = _chunkK3BHKRMSjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
47
+ apiKey = _chunkBOFCF4L7js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
48
48
  } catch (e2) {
49
49
  return;
50
50
  }
@@ -60,15 +60,15 @@ async function reportAutoUpdateEvent(input) {
60
60
  headers: {
61
61
  Authorization: `Bearer ${apiKey}`,
62
62
  "Content-Type": "application/json",
63
- "User-Agent": `deepline-ts-sdk/${_chunkTOGCDNMHjs.SDK_VERSION}`,
63
+ "User-Agent": `deepline-ts-sdk/${_chunkSV2TEZ2Mjs.SDK_VERSION}`,
64
64
  "X-Deepline-Client-Family": "sdk",
65
65
  "X-Deepline-CLI-Family": "sdk",
66
- "X-Deepline-CLI-Version": _chunkTOGCDNMHjs.SDK_VERSION,
67
- "X-Deepline-SDK-Version": _chunkTOGCDNMHjs.SDK_VERSION
66
+ "X-Deepline-CLI-Version": _chunkSV2TEZ2Mjs.SDK_VERSION,
67
+ "X-Deepline-SDK-Version": _chunkSV2TEZ2Mjs.SDK_VERSION
68
68
  },
69
69
  body: JSON.stringify({
70
70
  event: input.event,
71
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkTOGCDNMHjs.SDK_VERSION,
71
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkSV2TEZ2Mjs.SDK_VERSION,
72
72
  target_version: input.response.latest,
73
73
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
74
74
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -87,13 +87,13 @@ function envTruthy(name) {
87
87
  return value === "1" || value === "true" || value === "yes";
88
88
  }
89
89
  function shouldSkipSelfUpdate(policy) {
90
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkGOO4VI5Mjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkGBRI644Yjs.isCiEnvironment.call(void 0, );
90
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkFS7XYDOFjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkAPAHMCGRjs.isCiEnvironment.call(void 0, );
91
91
  }
92
92
  function isDowngradeAutoUpdateResponse(response) {
93
93
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
94
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkTOGCDNMHjs.SDK_VERSION;
94
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkSV2TEZ2Mjs.SDK_VERSION;
95
95
  if (!target) return false;
96
- return _chunkGOO4VI5Mjs.compareUpdateVersions.call(void 0, target, current) < 0;
96
+ return _chunkFS7XYDOFjs.compareUpdateVersions.call(void 0, target, current) < 0;
97
97
  }
98
98
  function relaunchCurrentCommand(plan, runtime = {}) {
99
99
  return new Promise((resolve) => {
@@ -146,7 +146,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
146
146
  }
147
147
  if (isDowngradeAutoUpdateResponse(response)) {
148
148
  const target = response.latest;
149
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkTOGCDNMHjs.SDK_VERSION;
149
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkSV2TEZ2Mjs.SDK_VERSION;
150
150
  process.stderr.write(
151
151
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
152
152
  `
@@ -154,21 +154,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
154
154
  return false;
155
155
  }
156
156
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
157
- const plan = _chunkGOO4VI5Mjs.resolveUpdatePlan.call(void 0, {
157
+ const plan = _chunkFS7XYDOFjs.resolveUpdatePlan.call(void 0, {
158
158
  packageSpec,
159
159
  requireVerifiedNpmOwnership: true,
160
160
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
161
161
  });
162
- if (!_chunkGOO4VI5Mjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
162
+ if (!_chunkFS7XYDOFjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
163
163
  return false;
164
164
  }
165
165
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
166
166
  deferredAutoUpdate = async () => {
167
167
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
168
168
  };
169
- if (_chunkSNJNPRIVjs.isJsonOutputMode.call(void 0, )) {
169
+ if (_chunk5X4AUFYWjs.isJsonOutputMode.call(void 0, )) {
170
170
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
171
- _chunkSNJNPRIVjs.addJsonNotice.call(void 0, {
171
+ _chunk5X4AUFYWjs.addJsonNotice.call(void 0, {
172
172
  code: "sdk_update_queued",
173
173
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
174
174
  });
@@ -181,7 +181,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
181
181
  return true;
182
182
  }
183
183
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
184
- if (!_chunkGOO4VI5Mjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
184
+ if (!_chunkFS7XYDOFjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
185
185
  const autoUpdate = response.auto_update;
186
186
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
187
187
  process.stderr.write(
@@ -194,7 +194,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
194
194
  event: "started",
195
195
  installKind: plan.kind
196
196
  });
197
- const updateResult = await _chunkGOO4VI5Mjs.runAutomaticUpdatePlan.call(void 0, plan);
197
+ const updateResult = await _chunkFS7XYDOFjs.runAutomaticUpdatePlan.call(void 0, plan);
198
198
  if (updateResult.status === "skipped_previous_failure") {
199
199
  void reportAutoUpdateEvent({
200
200
  baseUrl,
@@ -245,7 +245,7 @@ var _crypto = require('crypto');
245
245
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
246
246
  var activeToolExecuteCommand = null;
247
247
  function progressLine(line) {
248
- if (!_chunkSNJNPRIVjs.isJsonOutputMode.call(void 0, )) console.error(line);
248
+ if (!_chunk5X4AUFYWjs.isJsonOutputMode.call(void 0, )) console.error(line);
249
249
  }
250
250
  function beginToolExecuteCommand() {
251
251
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-CIV5GJAE.mjs";
3
+ } from "./chunk-66XDYH5T.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";
@@ -292,6 +292,27 @@ 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
+
314
+
315
+
295
316
 
296
317
 
297
318
 
@@ -307,4 +328,4 @@ function buildAsyncPlayRequestFingerprint(input) {
307
328
 
308
329
 
309
330
 
310
- exports.stableStringify = stableStringify; exports.sha256Hex = sha256Hex; exports.normalizeTableNamespace = normalizeTableNamespace; exports.buildPlayWorkflowFamilyKey = buildPlayWorkflowFamilyKey; exports.buildPlayWorkflowRunSuffix = buildPlayWorkflowRunSuffix; exports.canonicalPlayRunStartedAtMs = canonicalPlayRunStartedAtMs; exports.buildPlayWorkflowId = buildPlayWorkflowId; exports.buildCallerPlayWorkflowId = buildCallerPlayWorkflowId; exports.callerPlayWorkflowIdMatchesRequest = callerPlayWorkflowIdMatchesRequest; exports.buildPlayRunIdentity = buildPlayRunIdentity; exports.buildAsyncPlayRunIdentity = buildAsyncPlayRunIdentity; exports.buildRerunPlayRunIdentity = buildRerunPlayRunIdentity; exports.buildAsyncPlayRequestFingerprint = buildAsyncPlayRequestFingerprint;
331
+ exports.stableStringify = stableStringify; exports.sha256Hex = sha256Hex; exports.normalizeTableNamespace = normalizeTableNamespace; exports.buildPlayWorkflowFamilyKey = buildPlayWorkflowFamilyKey; exports.buildPlayWorkflowRunSuffix = buildPlayWorkflowRunSuffix; exports.canonicalPlayRunStartedAtMs = canonicalPlayRunStartedAtMs; exports.buildPlayWorkflowId = buildPlayWorkflowId; exports.buildCallerPlayWorkflowId = buildCallerPlayWorkflowId; exports.callerPlayWorkflowIdMatchesRequest = callerPlayWorkflowIdMatchesRequest; exports.buildPlayRunIdentity = buildPlayRunIdentity; exports.buildAsyncPlayRunIdentity = buildAsyncPlayRunIdentity; exports.buildRerunPlayRunIdentity = buildRerunPlayRunIdentity; exports.buildAsyncPlayRequestFingerprint = buildAsyncPlayRequestFingerprint; exports.PLAY_RUN_ID_MAX_LENGTH = PLAY_RUN_ID_MAX_LENGTH; exports.isRuntimeScopeRunId = isRuntimeScopeRunId; exports.parsePlayRunId = parsePlayRunId;