deepline 0.3.491 → 0.3.493

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 (184) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +11 -5
  2. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +6 -0
  5. package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +25 -9
  6. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  7. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  8. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +54 -0
  9. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +5 -4
  10. package/dist/bundling-sources/shared_libs/play-runtime/crustdata-company-identify-batching.ts +162 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +19 -3
  12. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +5 -3
  13. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/receipt-sql.ts +17 -23
  15. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +28 -1
  16. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +293 -110
  17. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +75 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +20 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +412 -59
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +38 -10
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +19 -11
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +165 -12
  23. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
  24. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +104 -2
  25. package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +7 -2
  26. package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +4 -0
  27. package/dist/bundling-sources/shared_libs/product-notifications/content.ts +13 -0
  28. package/dist/bundling-sources/shared_libs/product-notifications/email.ts +49 -10
  29. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +22 -0
  30. package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +6 -1
  31. package/dist/cli/{auth-FXAC472Y.mjs → auth-3NAY3AST.mjs} +5 -5
  32. package/dist/cli/auth-KYQLDI6V.js +43 -0
  33. package/dist/cli/{billing-PDOA3KZ3.js → billing-FSB4BBBO.js} +80 -80
  34. package/dist/cli/{billing-UM4LE33K.mjs → billing-SBWQCC7B.mjs} +7 -7
  35. package/dist/cli/{chunk-HSJK6EMU.mjs → chunk-2BRTYIAH.mjs} +23 -9
  36. package/dist/cli/{chunk-B2TXKEED.js → chunk-2H4OFVR5.js} +5 -5
  37. package/dist/cli/{chunk-BCKIBVEJ.js → chunk-2I7VN65H.js} +10 -10
  38. package/dist/cli/{chunk-LMG7O6XJ.mjs → chunk-2IHGVAGT.mjs} +2 -2
  39. package/dist/cli/{chunk-5KMGKG4B.js → chunk-2NGIBJM2.js} +8 -8
  40. package/dist/cli/{chunk-2MW6TGNZ.mjs → chunk-3QGUWB6E.mjs} +4 -4
  41. package/dist/cli/{chunk-ORKLMANE.mjs → chunk-4IJFQV3O.mjs} +1 -1
  42. package/dist/cli/{chunk-PIPEPCRL.mjs → chunk-4NIGNT7X.mjs} +1 -1
  43. package/dist/cli/{chunk-H6UIS36S.mjs → chunk-5DIZ2G74.mjs} +2 -2
  44. package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
  45. package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-5WOPBX3H.mjs} +1 -1
  46. package/dist/cli/{chunk-KGJVDR4Q.mjs → chunk-67ZG7XZV.mjs} +3 -3
  47. package/dist/cli/{chunk-DUFRH43S.js → chunk-7HABWOMB.js} +261 -261
  48. package/dist/cli/{chunk-MN6DCV63.js → chunk-AGTXL6LZ.js} +5 -5
  49. package/dist/cli/{chunk-Q7G7CU4W.js → chunk-AWMCZAUR.js} +3 -3
  50. package/dist/cli/{chunk-HHTVRICE.js → chunk-C2MRDPA5.js} +17 -17
  51. package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
  52. package/dist/cli/{chunk-O3K22ZC7.js → chunk-DWJ4RXSA.js} +34 -11
  53. package/dist/cli/{chunk-MAM6ZOVS.mjs → chunk-DYP27IWC.mjs} +99 -24
  54. package/dist/cli/{chunk-NUOKAKZW.mjs → chunk-E5ILCMKQ.mjs} +1 -1
  55. package/dist/cli/{chunk-OLHWZM4A.mjs → chunk-EBAS3UT2.mjs} +6 -6
  56. package/dist/cli/{chunk-74H5OTRM.js → chunk-EFO5GVYS.js} +1 -1
  57. package/dist/cli/{chunk-X7YOVJBC.js → chunk-EYG336YV.js} +132 -57
  58. package/dist/cli/{chunk-YV4DP6KQ.mjs → chunk-GSC35TPZ.mjs} +2 -2
  59. package/dist/cli/{chunk-EPD7NSDJ.mjs → chunk-HLM2UFQ5.mjs} +13 -5
  60. package/dist/cli/{chunk-IG3GSBBE.js → chunk-HTUSTPP4.js} +32 -32
  61. package/dist/cli/{chunk-CFPFTS3A.mjs → chunk-IJJ6D5WL.mjs} +12 -12
  62. package/dist/cli/{chunk-TH7JLR5D.js → chunk-IJOHWGPF.js} +6 -6
  63. package/dist/cli/{chunk-RFSXXDH7.js → chunk-IOBPR2VO.js} +17 -17
  64. package/dist/cli/{chunk-HNG2U3IG.js → chunk-IOMEJKGK.js} +2 -2
  65. package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-IRDYBMA7.mjs} +34 -11
  66. package/dist/cli/{chunk-ZEZ3CZ3X.js → chunk-JO2JZUBR.js} +3 -3
  67. package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
  68. package/dist/cli/{chunk-SJOHQ2WW.js → chunk-KCDZWS2B.js} +56 -56
  69. package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-KGDDQMI7.mjs} +2 -2
  70. package/dist/cli/{chunk-OYJTLEB4.mjs → chunk-KKSKYZO4.mjs} +1 -1
  71. package/dist/cli/{chunk-TMAS3WH3.js → chunk-LGTZYI5B.js} +21 -21
  72. package/dist/cli/{chunk-SUMKWA53.js → chunk-MLEUOTEQ.js} +73 -59
  73. package/dist/cli/{chunk-3WRWPNHE.mjs → chunk-NALJJTPS.mjs} +5 -5
  74. package/dist/cli/{chunk-27MRSV6O.js → chunk-NPNAEPY4.js} +26 -26
  75. package/dist/cli/{chunk-AEKJZJ4R.js → chunk-NWIDPT7H.js} +4 -4
  76. package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
  77. package/dist/cli/{chunk-3FMU6F6E.js → chunk-QTPS5RLG.js} +15 -15
  78. package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
  79. package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
  80. package/dist/cli/{chunk-S4CYM4EC.mjs → chunk-SXD2EYAH.mjs} +6 -6
  81. package/dist/cli/{chunk-YNWET57Z.js → chunk-TIFRRLZT.js} +7 -7
  82. package/dist/cli/{chunk-6PMM7VJN.mjs → chunk-TNQOR6XQ.mjs} +1 -1
  83. package/dist/cli/{chunk-6UARNRXT.js → chunk-UCMY2SO2.js} +23 -15
  84. package/dist/cli/{chunk-X75ONMDJ.mjs → chunk-VFHIYWMC.mjs} +5 -5
  85. package/dist/cli/{chunk-ZX2FXZJN.js → chunk-WCZFCOMZ.js} +7 -7
  86. package/dist/cli/{chunk-IIO7UOVW.mjs → chunk-WTFI7BVH.mjs} +3 -3
  87. package/dist/cli/{chunk-I64PYCTB.js → chunk-XLE7KXE7.js} +2 -2
  88. package/dist/cli/{chunk-CRBBGKRH.js → chunk-XQX476QK.js} +14 -14
  89. package/dist/cli/{chunk-WCWVXN3R.mjs → chunk-Y3NN2UAF.mjs} +2 -2
  90. package/dist/cli/{chunk-3K4IAV7I.mjs → chunk-ZQH4TXM2.mjs} +2 -2
  91. package/dist/cli/{chunk-VC3SH4QW.mjs → chunk-ZVW7EWTC.mjs} +7 -7
  92. package/dist/cli/{chunk-QBOE5LEH.mjs → chunk-ZVXB7OU7.mjs} +1 -1
  93. package/dist/cli/command-docs.js +2 -2
  94. package/dist/cli/command-docs.mjs +1 -1
  95. package/dist/cli/{csv-IGPAPAES.js → csv-DKYZE2KM.js} +13 -13
  96. package/dist/cli/{csv-RNMQHECI.mjs → csv-XR22YQXT.mjs} +4 -4
  97. package/dist/cli/{db-CKMVVGXJ.mjs → db-EOKG36YN.mjs} +7 -7
  98. package/dist/cli/{db-32OXM3TO.js → db-RNYRTCMV.js} +28 -28
  99. package/dist/cli/describe-ICFXOQBW.mjs +50 -0
  100. package/dist/cli/describe-RS75I33X.js +50 -0
  101. package/dist/cli/describe-core.d.mts +2 -2
  102. package/dist/cli/describe-core.d.ts +2 -2
  103. package/dist/cli/describe-core.js +4 -4
  104. package/dist/cli/describe-core.mjs +3 -3
  105. package/dist/cli/{executions-S4M4JMCU.mjs → executions-3RAOACNS.mjs} +7 -7
  106. package/dist/cli/{executions-PCZS7B2M.js → executions-OBWPSWH7.js} +9 -9
  107. package/dist/cli/{feedback-FGUJVCBS.mjs → feedback-6EQRVBKF.mjs} +4 -4
  108. package/dist/cli/{feedback-6EGKPZ3U.js → feedback-6GPEUBLF.js} +8 -8
  109. package/dist/cli/getting-started.d.mts +12 -10
  110. package/dist/cli/getting-started.d.ts +12 -10
  111. package/dist/cli/getting-started.js +4 -2
  112. package/dist/cli/getting-started.mjs +3 -1
  113. package/dist/cli/{git-LR4ARG5H.mjs → git-CVQ24DTR.mjs} +5 -5
  114. package/dist/cli/git-DEFE4SSB.js +25 -0
  115. package/dist/cli/index.js +143 -143
  116. package/dist/cli/index.mjs +43 -43
  117. package/dist/cli/{legacy-noops-S37PJ7OJ.mjs → legacy-noops-QULJZYNH.mjs} +5 -5
  118. package/dist/cli/{legacy-noops-VX4JEQR6.js → legacy-noops-XPOATG5V.js} +8 -8
  119. package/dist/cli/{monitors-H3AX6CZG.mjs → monitors-AFT5YJPZ.mjs} +49 -9
  120. package/dist/cli/{monitors-ADASJI72.js → monitors-OJ4CMREE.js} +169 -129
  121. package/dist/cli/{org-ZRJ3C56J.js → org-RKT52CSL.js} +73 -73
  122. package/dist/cli/{org-D3F5LUDW.mjs → org-WHKNXANG.mjs} +7 -7
  123. package/dist/cli/{pages-PSHU366M.mjs → pages-EEAQFGVD.mjs} +7 -7
  124. package/dist/cli/{pages-5TKO3644.js → pages-SOE3R667.js} +18 -18
  125. package/dist/cli/{play-AUDDK7XB.mjs → play-LXFWHUBP.mjs} +147 -52
  126. package/dist/cli/{play-VDAETQDI.js → play-OTJJ4E4T.js} +661 -566
  127. package/dist/cli/{providers-IURPWRWD.js → providers-RU4HIAT3.js} +10 -10
  128. package/dist/cli/{providers-X7YMZSKQ.mjs → providers-U3CPKTMM.mjs} +7 -7
  129. package/dist/cli/{quickstart-6AGWVFNX.mjs → quickstart-75AO2AJC.mjs} +5 -5
  130. package/dist/cli/{quickstart-Y6GFXLDV.js → quickstart-N72IVA2Y.js} +13 -13
  131. package/dist/cli/{run-TG7J45NS.mjs → run-IGWFL6WH.mjs} +29 -28
  132. package/dist/cli/{run-TQFGOXNT.js → run-MMYES3IW.js} +44 -43
  133. package/dist/cli/search-EQURI7SZ.js +32 -0
  134. package/dist/cli/{search-3G4J2GC6.mjs → search-FIYESBLZ.mjs} +8 -8
  135. package/dist/cli/{search-output-NPZICK5C.js → search-output-2FXN4ZWD.js} +9 -6
  136. package/dist/cli/{search-output-ZGNHDCLL.mjs → search-output-3I5KSW36.mjs} +7 -4
  137. package/dist/cli/{secrets-KTTHT4ZG.js → secrets-HCZQ6JNP.js} +16 -16
  138. package/dist/cli/{secrets-EAWJBRUD.mjs → secrets-O7IUQ3VT.mjs} +7 -7
  139. package/dist/cli/{sessions-S4YVBPAW.js → sessions-5AYTT4IW.js} +6 -6
  140. package/dist/cli/{sessions-D4Q3LCEQ.mjs → sessions-KY7A3EZO.mjs} +5 -5
  141. package/dist/cli/{settings-BAK3VOWW.js → settings-P4VFYWJK.js} +80 -80
  142. package/dist/cli/{settings-JUORW6NL.mjs → settings-WSMRR2GS.mjs} +13 -13
  143. package/dist/cli/{setup-NJPHTW32.js → setup-J7CA3EJL.js} +57 -57
  144. package/dist/cli/{setup-AXFGCXJE.mjs → setup-YTVKVQC7.mjs} +13 -13
  145. package/dist/cli/skills-KKPEGLAR.js +36 -0
  146. package/dist/cli/{skills-SKJVDJEF.mjs → skills-W5WY764N.mjs} +10 -10
  147. package/dist/cli/tools-65Y4QTW6.js +57 -0
  148. package/dist/cli/{tools-63THJVJZ.mjs → tools-YECI6N3N.mjs} +20 -20
  149. package/dist/cli/{update-KSID5F74.mjs → update-BIFBIEII.mjs} +10 -10
  150. package/dist/cli/update-WDG7VFOW.js +34 -0
  151. package/dist/cli/{workflow-BLSMWBKW.js → workflow-D2TUFFH6.js} +18 -18
  152. package/dist/cli/{workflow-C4B54X2Z.mjs → workflow-XZVDNARC.mjs} +8 -8
  153. package/dist/{client-CQgGFxAH.d.ts → client-BDB_VbE4.d.ts} +1 -1
  154. package/dist/{client-B4R1scm2.d.mts → client-CNzJ1LTF.d.mts} +1 -1
  155. package/dist/{client-core-DMvHWjub.d.mts → client-core-CSv3DlPD.d.mts} +76 -5
  156. package/dist/{client-core-BUNjKBKq.d.ts → client-core-xEa9x3pl.d.ts} +76 -5
  157. package/dist/index.d.mts +3 -3
  158. package/dist/index.d.ts +3 -3
  159. package/dist/index.js +10 -10
  160. package/dist/index.mjs +7 -7
  161. package/dist/install-integrity.json +115 -114
  162. package/dist/plays/play-description.d.mts +1 -1
  163. package/dist/plays/play-description.d.ts +1 -1
  164. package/dist/plays/run-request.d.mts +1 -1
  165. package/dist/plays/run-request.d.ts +1 -1
  166. package/dist/plays/run-request.js +2 -2
  167. package/dist/plays/run-request.mjs +1 -1
  168. package/dist/release.d.mts +1 -1
  169. package/dist/release.d.ts +1 -1
  170. package/dist/release.js +2 -2
  171. package/dist/release.mjs +1 -1
  172. package/dist/server.d.mts +2 -2
  173. package/dist/server.d.ts +2 -2
  174. package/dist/server.js +6 -6
  175. package/dist/server.mjs +4 -4
  176. package/package.json +1 -1
  177. package/dist/cli/auth-QIDL3YCW.js +0 -43
  178. package/dist/cli/describe-67GMIEIO.js +0 -50
  179. package/dist/cli/describe-QR7I3VOF.mjs +0 -50
  180. package/dist/cli/git-PIH5Z5LN.js +0 -25
  181. package/dist/cli/search-VC43NUY7.js +0 -32
  182. package/dist/cli/skills-4NQZISNK.js +0 -36
  183. package/dist/cli/tools-BAHK33FQ.js +0 -57
  184. package/dist/cli/update-EMIGRGJ7.js +0 -34
@@ -5,7 +5,7 @@ import {
5
5
  parsePlayRunHeaderFlag,
6
6
  parsePlayRunOptions,
7
7
  resolvePlayRunCliOptions
8
- } from "./chunk-KGJVDR4Q.mjs";
8
+ } from "./chunk-67ZG7XZV.mjs";
9
9
  import {
10
10
  TABLE_EXPORT_ERROR_COLUMN,
11
11
  addDescribeOptions,
@@ -17,18 +17,19 @@ import {
17
17
  underscoreKeysLast,
18
18
  writeExecutionOutput,
19
19
  writeRunDatasetCsv
20
- } from "./chunk-EPD7NSDJ.mjs";
20
+ } from "./chunk-HLM2UFQ5.mjs";
21
21
  import {
22
22
  registerDeprecatedSearchCommand
23
- } from "./chunk-2MW6TGNZ.mjs";
23
+ } from "./chunk-3QGUWB6E.mjs";
24
24
  import "./chunk-5AEDYVB6.mjs";
25
25
  import {
26
26
  handleDeploymentGet,
27
27
  handleDeploymentsList
28
- } from "./chunk-WCWVXN3R.mjs";
28
+ } from "./chunk-Y3NN2UAF.mjs";
29
29
  import {
30
- buildPlayDashboardUrl
31
- } from "./chunk-DEJIN4DF.mjs";
30
+ buildPlayDashboardUrl,
31
+ buildPlayRunUrl
32
+ } from "./chunk-SAW3FBCA.mjs";
32
33
  import {
33
34
  shellQuote
34
35
  } from "./chunk-OVDNJAJN.mjs";
@@ -57,10 +58,10 @@ import {
57
58
  import {
58
59
  pinLocalPlayImports,
59
60
  planLocalPlayExecution
60
- } from "./chunk-H6UIS36S.mjs";
61
+ } from "./chunk-5DIZ2G74.mjs";
61
62
  import {
62
63
  DeeplineClient
63
- } from "./chunk-YV4DP6KQ.mjs";
64
+ } from "./chunk-GSC35TPZ.mjs";
64
65
  import {
65
66
  RUN_EVENT_SEARCH_KIND_VALUES,
66
67
  RunEventQueryInputError,
@@ -73,7 +74,7 @@ import {
73
74
  normalizePlayStatus,
74
75
  normalizeRunEventOperationRequest,
75
76
  parseLogLevel
76
- } from "./chunk-IIO7UOVW.mjs";
77
+ } from "./chunk-WTFI7BVH.mjs";
77
78
  import "./chunk-L2VKAASU.mjs";
78
79
  import {
79
80
  CSV_DATA_INPUT_KEY,
@@ -86,7 +87,7 @@ import {
86
87
  isPlayRunPackage,
87
88
  stageFileInputs,
88
89
  stagedFileContentType
89
- } from "./chunk-ONONSV2Q.mjs";
90
+ } from "./chunk-DVQHG6AM.mjs";
90
91
  import {
91
92
  CSV_HEADER_MATCHING_NOTE,
92
93
  playInputExampleArgs
@@ -95,18 +96,18 @@ import "./chunk-UBKA33KY.mjs";
95
96
  import {
96
97
  checkPlayRunCompatibility,
97
98
  usesCliPlayAdmission
98
- } from "./chunk-3K4IAV7I.mjs";
99
+ } from "./chunk-ZQH4TXM2.mjs";
99
100
  import {
100
101
  isCliTraceEnabled,
101
102
  recordCliTrace,
102
103
  resolveCliMaintenancePolicy,
103
104
  traceCliSpan
104
- } from "./chunk-QBOE5LEH.mjs";
105
- import "./chunk-VC3SH4QW.mjs";
105
+ } from "./chunk-ZVXB7OU7.mjs";
106
+ import "./chunk-ZVW7EWTC.mjs";
106
107
  import {
107
108
  createCliProgress,
108
109
  getActiveCliProgress
109
- } from "./chunk-NUOKAKZW.mjs";
110
+ } from "./chunk-E5ILCMKQ.mjs";
110
111
  import {
111
112
  argsWantJson,
112
113
  describeArgs,
@@ -120,17 +121,17 @@ import {
120
121
  printJsonError,
121
122
  renderCommandEnvelopeText,
122
123
  shouldEmitJson
123
- } from "./chunk-X75ONMDJ.mjs";
124
- import "./chunk-PIPEPCRL.mjs";
124
+ } from "./chunk-VFHIYWMC.mjs";
125
+ import "./chunk-4NIGNT7X.mjs";
125
126
  import {
126
127
  fetchWithDeploymentProtection
127
- } from "./chunk-6PMM7VJN.mjs";
128
+ } from "./chunk-TNQOR6XQ.mjs";
128
129
  import "./chunk-4QF2K7TM.mjs";
129
130
  import "./chunk-DLIRSHV6.mjs";
130
131
  import {
131
132
  DeeplineError
132
133
  } from "./chunk-HBL4PM5Q.mjs";
133
- import "./chunk-OYJTLEB4.mjs";
134
+ import "./chunk-KKSKYZO4.mjs";
134
135
  import "./chunk-WZYKRD7T.mjs";
135
136
  import {
136
137
  __commonJS,
@@ -8505,9 +8506,17 @@ function resolveRunPlayName(status, runId) {
8505
8506
  if (typeof packaged === "string" && packaged.trim()) return packaged.trim();
8506
8507
  return extractRunPlayName(status) ?? /^play\/(.+)\/(?:run|webhook)\//.exec(runId)?.[1] ?? null;
8507
8508
  }
8508
- function openPlayDashboard(dashboardUrl, open2) {
8509
- if (open2 && dashboardUrl) {
8510
- openInBrowser(dashboardUrl);
8509
+ function resolvePlayRunUrl(input) {
8510
+ if (input.runUrl) return input.runUrl;
8511
+ const runId = input.runId?.trim();
8512
+ if (!input.dashboardUrl || !runId || runId === "pending") return void 0;
8513
+ const url = new URL(input.dashboardUrl);
8514
+ url.searchParams.set("runId", runId);
8515
+ return url.toString();
8516
+ }
8517
+ function openPlayDashboard(url, open2) {
8518
+ if (open2 && url) {
8519
+ openInBrowser(url);
8511
8520
  }
8512
8521
  }
8513
8522
  function printPlayLogLines(input) {
@@ -8926,7 +8935,14 @@ async function startAndWaitForPlayCompletion(input) {
8926
8935
  progress: input.progress
8927
8936
  });
8928
8937
  }
8929
- openPlayDashboard(dashboardUrl, input.open ?? false);
8938
+ openPlayDashboard(
8939
+ resolvePlayRunUrl({
8940
+ runId: workflowId,
8941
+ runUrl: started.runUrl,
8942
+ dashboardUrl
8943
+ }),
8944
+ input.open ?? false
8945
+ );
8930
8946
  input.progress.phase("running");
8931
8947
  recordCliTrace({
8932
8948
  phase: "cli.play_start_admitted",
@@ -9271,7 +9287,10 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9271
9287
  progress: input.progress
9272
9288
  });
9273
9289
  }
9274
- openPlayDashboard(dashboardUrl, input.open ?? false);
9290
+ openPlayDashboard(
9291
+ resolvePlayRunUrl({ runId: workflowId, dashboardUrl }),
9292
+ input.open ?? false
9293
+ );
9275
9294
  input.progress.phase("running");
9276
9295
  emittedDashboardUrl = true;
9277
9296
  }
@@ -9910,8 +9929,9 @@ function buildRunNextCommands(status) {
9910
9929
  commands.failedLogs = `deepline runs logs ${runId} --failed`;
9911
9930
  if (status.rerunCommand) commands.run = status.rerunCommand;
9912
9931
  }
9913
- if (status.dashboardUrl) {
9914
- commands.open = `Open ${status.dashboardUrl} to see results.`;
9932
+ const runUrl = playStatusRunUrl(status);
9933
+ if (runUrl) {
9934
+ commands.open = `Open ${runUrl} to see results.`;
9915
9935
  }
9916
9936
  return commands;
9917
9937
  }
@@ -10301,6 +10321,15 @@ function getPlayRunPackage(status) {
10301
10321
  const packaged = status.package;
10302
10322
  return isPlayRunPackageValue(packaged) ? packaged : null;
10303
10323
  }
10324
+ function playStatusRunUrl(status) {
10325
+ const run = readRecord(getPlayRunPackage(status)?.run);
10326
+ const text = (value) => typeof value === "string" && value ? value : void 0;
10327
+ return resolvePlayRunUrl({
10328
+ runId: text(run?.id) ?? status.runId,
10329
+ runUrl: status.runUrl ?? text(run?.runUrl),
10330
+ dashboardUrl: status.dashboardUrl ?? text(run?.dashboardUrl)
10331
+ });
10332
+ }
10304
10333
  function withTerminalPlayIdentity(status, playName) {
10305
10334
  if (!playName.trim() || getPlayRunPackage(status)) {
10306
10335
  return status;
@@ -10386,6 +10415,7 @@ function compactPlayStatus(status) {
10386
10415
  ...typeof status.name === "string" ? { name: status.name } : {},
10387
10416
  ...typeof status.playName === "string" ? { playName: status.playName } : {},
10388
10417
  ...status.dashboardUrl ? { dashboardUrl: status.dashboardUrl } : {},
10418
+ ...playStatusRunUrl(status) ? { runUrl: playStatusRunUrl(status) } : {},
10389
10419
  status: status.status,
10390
10420
  run: normalizeRunStatusForEnvelope(status),
10391
10421
  progress: normalizeProgressForEnvelope(status, rowsInfo),
@@ -11184,6 +11214,7 @@ function buildRunLaunch(status) {
11184
11214
  "apiVersion",
11185
11215
  "rateLimited",
11186
11216
  "dashboardUrl",
11217
+ "runUrl",
11187
11218
  "progress",
11188
11219
  "rowOutcomes",
11189
11220
  "errors",
@@ -11210,6 +11241,8 @@ function buildPlayCompletionTextLines(status) {
11210
11241
  `${label} ${run.playName ?? status.playName ?? "Play"}`,
11211
11242
  `Run: ${run.id}`
11212
11243
  ];
11244
+ const runUrl = playStatusRunUrl(status);
11245
+ if (runUrl) lines.push(`Run page: ${runUrl}`);
11213
11246
  for (const failure of overview.failures.steps) {
11214
11247
  lines.push(
11215
11248
  `Failed step: ${failure.stepId}${failure.message ? ` \u2014 ${failure.message}` : ""}`
@@ -12142,6 +12175,10 @@ function writeStartedPlayRun(input) {
12142
12175
  });
12143
12176
  return;
12144
12177
  }
12178
+ const runUrl = resolvePlayRunUrl({
12179
+ runId: input.runId,
12180
+ dashboardUrl: input.dashboardUrl
12181
+ });
12145
12182
  const payload = {
12146
12183
  ...buildRunNavigation({
12147
12184
  runId: input.runId,
@@ -12149,6 +12186,7 @@ function writeStartedPlayRun(input) {
12149
12186
  status: input.status ?? "started"
12150
12187
  }),
12151
12188
  dashboardUrl: input.dashboardUrl,
12189
+ ...runUrl ? { runUrl } : {},
12152
12190
  execution: {
12153
12191
  revision: input.revisionLabel ?? "resolved by Deepline",
12154
12192
  input_field_count: input.inputFieldCount ?? 0,
@@ -12158,6 +12196,7 @@ function writeStartedPlayRun(input) {
12158
12196
  const lines = [
12159
12197
  input.rateLimited ? input.rateLimited.message : `Started ${input.playName}`,
12160
12198
  `Run: ${input.runId}`,
12199
+ ...runUrl ? [`Run page: ${runUrl}`] : [],
12161
12200
  `Logs: deepline runs logs ${shellQuote(input.runId)}`,
12162
12201
  ...["started", "queued", "running", "waiting"].includes(
12163
12202
  input.status ?? "started"
@@ -12167,9 +12206,6 @@ function writeStartedPlayRun(input) {
12167
12206
  printCommandEnvelope(payload, { json: true, fields: input.jsonFields });
12168
12207
  return;
12169
12208
  }
12170
- if (input.dashboardUrl) {
12171
- lines.push(` play page: ${input.dashboardUrl}`);
12172
- }
12173
12209
  const output = lines.join("\n");
12174
12210
  if (input.progress) {
12175
12211
  input.progress.writeLine(output, process.stdout);
@@ -12953,11 +12989,26 @@ async function handleFileBackedRun(options, hooks) {
12953
12989
  await hooks?.onRunStarted?.(started.workflowId);
12954
12990
  await hooks?.onRunAdmitted?.(started.workflowId);
12955
12991
  const resolvedDashboardUrl = buildPlayDashboardUrl(client.baseUrl, playName);
12956
- openPlayDashboard(resolvedDashboardUrl, options.open);
12992
+ openPlayDashboard(
12993
+ resolvePlayRunUrl({
12994
+ runId: started.workflowId,
12995
+ runUrl: started.runUrl,
12996
+ dashboardUrl: resolvedDashboardUrl
12997
+ }),
12998
+ options.open
12999
+ );
12957
13000
  progress.phase("started run");
12958
13001
  progress.complete();
12959
13002
  if (hooks?.writeStarted) {
12960
- hooks.writeStarted(started.workflowId, started.status ?? "started");
13003
+ hooks.writeStarted(
13004
+ started.workflowId,
13005
+ started.status ?? "started",
13006
+ resolvePlayRunUrl({
13007
+ runId: started.workflowId,
13008
+ runUrl: started.runUrl,
13009
+ dashboardUrl: resolvedDashboardUrl
13010
+ })
13011
+ );
12961
13012
  return 0;
12962
13013
  }
12963
13014
  writeStartedPlayRun({
@@ -13190,11 +13241,26 @@ async function handleNamedRun(options, hooks) {
13190
13241
  await hooks?.onRunStarted?.(started.workflowId);
13191
13242
  await hooks?.onRunAdmitted?.(started.workflowId);
13192
13243
  const resolvedDashboardUrl = buildPlayDashboardUrl(client.baseUrl, playName);
13193
- openPlayDashboard(resolvedDashboardUrl, options.open);
13244
+ openPlayDashboard(
13245
+ resolvePlayRunUrl({
13246
+ runId: started.workflowId,
13247
+ runUrl: started.runUrl,
13248
+ dashboardUrl: resolvedDashboardUrl
13249
+ }),
13250
+ options.open
13251
+ );
13194
13252
  progress.phase("started run");
13195
13253
  progress.complete();
13196
13254
  if (hooks?.writeStarted) {
13197
- hooks.writeStarted(started.workflowId, started.status ?? "started");
13255
+ hooks.writeStarted(
13256
+ started.workflowId,
13257
+ started.status ?? "started",
13258
+ resolvePlayRunUrl({
13259
+ runId: started.workflowId,
13260
+ runUrl: started.runUrl,
13261
+ dashboardUrl: resolvedDashboardUrl
13262
+ })
13263
+ );
13198
13264
  return 0;
13199
13265
  }
13200
13266
  writeStartedPlayRun({
@@ -13224,7 +13290,12 @@ async function writePlayRunReceipt(client, status, output) {
13224
13290
  const playName = /^play\/(.+)\/run\//.exec(status.runId)?.[1] ?? extractRunPlayName(status) ?? null;
13225
13291
  if (!terminal) {
13226
13292
  writeExecutionOutput(
13227
- { id: status.runId, status: status.status, next },
13293
+ {
13294
+ id: status.runId,
13295
+ status: status.status,
13296
+ ...playName ? { page: buildPlayRunUrl(client.baseUrl, playName, status.runId) } : {},
13297
+ next
13298
+ },
13228
13299
  output
13229
13300
  );
13230
13301
  return;
@@ -13310,7 +13381,7 @@ async function writePlayRunReceipt(client, status, output) {
13310
13381
  complete: allCollections.every((c) => c.complete === true) ? true : allCollections.some((c) => c.complete === false) ? false : null,
13311
13382
  error,
13312
13383
  credits: status.billingTotalCreditsRollup ?? status.billing?.totalCredits ?? null,
13313
- ...playName ? { page: buildPlayDashboardUrl(client.baseUrl, playName) } : {},
13384
+ ...playName ? { page: buildPlayRunUrl(client.baseUrl, playName, status.runId) } : {},
13314
13385
  warnings: [
13315
13386
  ...buildRunWarnings(status, null),
13316
13387
  ...status.status === "completed" && collections.length && collections.every((collection) => collection.rows.length === 0) ? ["Run completed with 0 output rows."] : []
@@ -13448,7 +13519,7 @@ function renderRunOverviewText(overview, extras = {}) {
13448
13519
  const lines = [
13449
13520
  `${runGlyph} ${runLabel.word} ${run.id}`,
13450
13521
  ` play: ${run.playName}`,
13451
- ...extras.dashboardUrl ? [` play page: ${extras.dashboardUrl}`] : [],
13522
+ ...extras.runUrl ? [` run page: ${extras.runUrl}`] : [],
13452
13523
  ...extras.credits ? [` credits: ${formatRunCreditsLine(extras.credits)}`] : [],
13453
13524
  ...formatRunTimingTextLines(run),
13454
13525
  ...buildRunActivityTextLines(run),
@@ -13597,7 +13668,7 @@ async function handleRunGet(args) {
13597
13668
  args.includes("--config") ? "config" : "get"
13598
13669
  );
13599
13670
  args = selection.args;
13600
- const usage2 = "Usage: deepline runs get <run-id> [--json] [--full] [--input] [--config] [--web-url] [--timing]";
13671
+ const usage2 = "Usage: deepline runs get <run-id> [--json] [--full] [--input] [--config] [--web] [--web-url] [--timing]";
13601
13672
  let runId;
13602
13673
  try {
13603
13674
  runId = parseRunIdPositional(args, usage2);
@@ -13607,7 +13678,8 @@ async function handleRunGet(args) {
13607
13678
  }
13608
13679
  const client = new DeeplineClient();
13609
13680
  const timing = args.includes("--timing");
13610
- if (args.includes("--web-url")) {
13681
+ const web = args.includes("--web");
13682
+ if (web || args.includes("--web-url")) {
13611
13683
  const status2 = await withRunReadTiming(
13612
13684
  "runs get",
13613
13685
  "status",
@@ -13616,13 +13688,27 @@ async function handleRunGet(args) {
13616
13688
  );
13617
13689
  const playName2 = resolveRunPlayName(status2, runId);
13618
13690
  if (!playName2) {
13619
- console.error(`Run ${runId} does not name its play; no play page URL.`);
13691
+ console.error(`Run ${runId} does not name its play; no run page URL.`);
13620
13692
  return 1;
13621
13693
  }
13622
13694
  const dashboardUrl2 = buildPlayDashboardUrl(client.baseUrl, playName2);
13695
+ const runUrl2 = buildPlayRunUrl(client.baseUrl, playName2, runId);
13696
+ if (web) {
13697
+ const opened = openInBrowser(runUrl2);
13698
+ printCommandEnvelope(
13699
+ { dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
13700
+ {
13701
+ json: args.includes("--json"),
13702
+ text: opened === "opened" ? `Opening ${runUrl2} in your browser.
13703
+ ` : `${runUrl2}
13704
+ `
13705
+ }
13706
+ );
13707
+ return 0;
13708
+ }
13623
13709
  printCommandEnvelope(
13624
- { dashboardUrl: dashboardUrl2 },
13625
- { json: args.includes("--json"), text: `${dashboardUrl2}
13710
+ { dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
13711
+ { json: args.includes("--json"), text: `${runUrl2}
13626
13712
  ` }
13627
13713
  );
13628
13714
  return 0;
@@ -13684,20 +13770,22 @@ async function handleRunGet(args) {
13684
13770
  ) : status;
13685
13771
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
13686
13772
  const legacyDashboardUrl = legacyPlayName ? buildPlayDashboardUrl(client.baseUrl, legacyPlayName) : null;
13773
+ const legacyRunUrl = legacyPlayName ? buildPlayRunUrl(client.baseUrl, legacyPlayName, runId) : null;
13687
13774
  if (argsWantJson(args)) {
13688
13775
  printCommandEnvelope(
13689
13776
  {
13690
13777
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
13691
- ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
13778
+ ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
13779
+ ...legacyRunUrl ? { runUrl: legacyRunUrl } : {}
13692
13780
  },
13693
13781
  { json: true, fields: selection.fields }
13694
13782
  );
13695
13783
  } else {
13696
13784
  writePlayResult(legacyStatus, false, { fullJson: full });
13697
- if (legacyDashboardUrl)
13785
+ if (legacyRunUrl)
13698
13786
  printCommandEnvelope(
13699
- { dashboardUrl: legacyDashboardUrl },
13700
- { json: false, text: `play page: ${legacyDashboardUrl}
13787
+ { dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
13788
+ { json: false, text: `run page: ${legacyRunUrl}
13701
13789
  ` }
13702
13790
  );
13703
13791
  }
@@ -13728,17 +13816,19 @@ async function handleRunGet(args) {
13728
13816
  const json = argsWantJson(args);
13729
13817
  const playName = resolveRunPlayName(status, runId);
13730
13818
  const dashboardUrl = playName ? buildPlayDashboardUrl(client.baseUrl, playName) : void 0;
13819
+ const runUrl = playName ? buildPlayRunUrl(client.baseUrl, playName, runId) : void 0;
13731
13820
  printCommandEnvelope(
13732
13821
  {
13733
13822
  ...overview,
13734
13823
  ...dashboardUrl ? { dashboardUrl } : {},
13824
+ ...runUrl ? { runUrl } : {},
13735
13825
  credits,
13736
13826
  ...hits ? { hits } : {}
13737
13827
  },
13738
13828
  {
13739
13829
  json,
13740
13830
  ...json ? {} : {
13741
- text: `${renderRunOverviewText(overview, { credits, dashboardUrl })}${hitLines.length > 0 ? `${hitLines.join("\n")}
13831
+ text: `${renderRunOverviewText(overview, { credits, runUrl })}${hitLines.length > 0 ? `${hitLines.join("\n")}
13742
13832
  ` : ""}`
13743
13833
  },
13744
13834
  fields: selection.fields
@@ -16183,7 +16273,7 @@ Notes:
16183
16273
  a fire-and-forget run id.
16184
16274
  --run-id-file writes the durable run id to a versioned JSON file as soon as
16185
16275
  the server accepts the run. The destination must not already exist.
16186
- The play page URL is printed when the run starts. Pass --open to open it in a browser.
16276
+ The run page URL is printed when the run starts. Pass --open to open it in a browser.
16187
16277
  Concurrent runs for the same play are allowed.
16188
16278
  --force starts a fresh run graph without refreshing completed provider calls.
16189
16279
  It does not cancel active sibling runs.
@@ -16311,7 +16401,7 @@ Examples:
16311
16401
  ).option(
16312
16402
  "--max-concurrent-rows <count>",
16313
16403
  `Run-wide dataset map row resolver ceiling (max ${MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16314
- ).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the play page in a browser after the run starts").option(
16404
+ ).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
16315
16405
  "--debug-map-latency",
16316
16406
  "Internal diagnostics: emit one aggregate latency profile per dataset map"
16317
16407
  ).option(
@@ -16577,7 +16667,7 @@ Examples:
16577
16667
  process.exitCode = await ownView();
16578
16668
  return;
16579
16669
  }
16580
- const { describeAnything } = await import("./describe-QR7I3VOF.mjs");
16670
+ const { describeAnything } = await import("./describe-ICFXOQBW.mjs");
16581
16671
  process.exitCode = await describeAnything(
16582
16672
  name,
16583
16673
  {
@@ -16876,8 +16966,10 @@ Notes:
16876
16966
  are omitted; array positions are preserved. --json diagnostics needs --full.
16877
16967
  --timing writes each read phase and periodic long-read updates to stderr;
16878
16968
  JSON stdout stays unchanged.
16879
- dashboardUrl (text: "play page:") links the run's play page; link it in a
16880
- final answer. --web-url prints only that URL (with --json: {"dashboardUrl"}).
16969
+ runUrl (text: "run page:") is the Play page with this run selected; link it
16970
+ in a final answer. dashboardUrl is the Play page itself. --web opens the run
16971
+ page in a browser; --web-url prints only its URL (with --json:
16972
+ {"dashboardUrl","runUrl"}).
16881
16973
 
16882
16974
  A tool call's id is the key deepline run gave it; runs get prints that
16883
16975
  call's receipt again, from its saved result, for 24 hours. It takes --json
@@ -16886,6 +16978,7 @@ Notes:
16886
16978
  Examples:
16887
16979
  deepline runs get play/my-play/run/20260501t000000-000
16888
16980
  deepline runs get play/my-play/run/20260501t000000-000
16981
+ deepline runs get play/my-play/run/20260501t000000-000 --web
16889
16982
  deepline runs get play/my-play/run/20260501t000000-000 --web-url
16890
16983
  deepline runs get 0b8f6a52-4f1e-4f43-9a63-1f0c5d2e8a71
16891
16984
  deepline runs logs play/my-play/run/20260501t000000-000 --failed
@@ -16905,14 +16998,14 @@ Examples:
16905
16998
  ).option(
16906
16999
  "--config",
16907
17000
  "Explicitly print the recorded configuration, without full results"
16908
- ).option("--web-url", "Print only the run's play page URL").option(
17001
+ ).option("--web", "Open the run's page in a browser").option("--web-url", "Print only the run's page URL").option(
16909
17002
  "--timing",
16910
17003
  "Report read phases and periodic long-read updates to stderr"
16911
17004
  ).addOption(
16912
17005
  new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
16913
17006
  ).action(async (runId, options) => {
16914
17007
  if (TOOL_EXECUTION_ID.test(runId)) {
16915
- const { getToolExecutionReceipt } = await import("./tools-63THJVJZ.mjs");
17008
+ const { getToolExecutionReceipt } = await import("./tools-YECI6N3N.mjs");
16916
17009
  process.exitCode = await getToolExecutionReceipt(runId, {
16917
17010
  receiptJson: options.json !== void 0
16918
17011
  });
@@ -16921,6 +17014,7 @@ Examples:
16921
17014
  process.exitCode = await handleRunGet([
16922
17015
  runId,
16923
17016
  ...jsonFieldArgs(options.json),
17017
+ ...options.web ? ["--web"] : [],
16924
17018
  ...options.webUrl ? ["--web-url"] : [],
16925
17019
  ...options.full ? ["--full"] : [],
16926
17020
  ...options.input ? ["--input"] : [],
@@ -17643,6 +17737,7 @@ export {
17643
17737
  renderRunOverviewText,
17644
17738
  resolveDatasetByName,
17645
17739
  resolvePlayRunOutputStatus,
17740
+ resolvePlayRunUrl,
17646
17741
  resolveRunStopState,
17647
17742
  selectRunLogTailPage,
17648
17743
  shouldPrintPlayProgressLine,