deepline 0.3.508 → 0.3.510

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 (136) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts +7 -2
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/db-session-plan.ts +47 -6
  5. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +94 -43
  6. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +111 -27
  7. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/runtime-topology.ts +79 -6
  8. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +80 -6
  9. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-transient-retry.ts +571 -0
  10. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -0
  11. package/dist/cli/auth-S2Z5YMU3.js +43 -0
  12. package/dist/cli/{auth-2URIN52G.mjs → auth-USS2W3UV.mjs} +5 -5
  13. package/dist/cli/{billing-IW23GSR5.mjs → billing-JCUWM5XB.mjs} +7 -7
  14. package/dist/cli/{billing-R2HY2ZVJ.js → billing-LQQHU443.js} +82 -82
  15. package/dist/cli/{chunk-7PELFO3C.js → chunk-2JXEZAJF.js} +21 -21
  16. package/dist/cli/chunk-3LXU22UZ.js +77 -0
  17. package/dist/cli/{chunk-74UO7THC.js → chunk-4NJK6P5T.js} +4 -4
  18. package/dist/cli/{chunk-FXKKFM7J.js → chunk-4ZIIS6KG.js} +9 -9
  19. package/dist/cli/{chunk-63MCLOR2.mjs → chunk-563HM4D2.mjs} +6 -6
  20. package/dist/cli/{chunk-XSOLA2ED.mjs → chunk-5DU7RXDW.mjs} +4 -4
  21. package/dist/cli/{chunk-OWH7SSBO.mjs → chunk-5MYXW6M6.mjs} +2 -2
  22. package/dist/cli/{chunk-3BZ74K27.js → chunk-5N2HFB3G.js} +16 -16
  23. package/dist/cli/{chunk-2YOM5J3G.js → chunk-63DHG7BM.js} +26 -26
  24. package/dist/cli/{chunk-P7GOQTUN.js → chunk-6AL2VF3E.js} +14 -14
  25. package/dist/cli/{chunk-QBZECLNG.mjs → chunk-7BF4R26M.mjs} +3 -3
  26. package/dist/cli/{chunk-JRHMPZJX.js → chunk-7VQKU6MS.js} +7 -7
  27. package/dist/cli/{chunk-3C6VBHNW.mjs → chunk-7VT7RMZ2.mjs} +2 -2
  28. package/dist/cli/{chunk-M37I4A2Z.js → chunk-ASBWPRBN.js} +16 -16
  29. package/dist/cli/{chunk-3ZNPIJX6.js → chunk-B2T7PBS6.js} +41 -41
  30. package/dist/cli/{chunk-NC2FIUPX.mjs → chunk-B2U3LVSO.mjs} +1 -1
  31. package/dist/cli/{chunk-RNZQ7RDW.mjs → chunk-B6Q6BHSY.mjs} +2 -2
  32. package/dist/cli/{chunk-IZZ7FFWP.js → chunk-BPGFNVH2.js} +44 -44
  33. package/dist/cli/{chunk-2PYFXXYA.mjs → chunk-CLV4T5FN.mjs} +2 -2
  34. package/dist/cli/{chunk-JEB6BNIU.mjs → chunk-DEPBCRKG.mjs} +15 -4
  35. package/dist/cli/{chunk-DZ7JCRAL.mjs → chunk-DMF56C6D.mjs} +2 -2
  36. package/dist/cli/{chunk-RWXHMG6F.js → chunk-EEQ2QQOH.js} +21 -10
  37. package/dist/cli/{chunk-UDH3YMBI.mjs → chunk-EJ57CA2L.mjs} +1 -1
  38. package/dist/cli/{chunk-JYNHHO3J.js → chunk-F6IXWFPF.js} +6 -6
  39. package/dist/cli/{chunk-DWV7KM6H.mjs → chunk-FFPLCSTZ.mjs} +10 -10
  40. package/dist/cli/{chunk-VXNL4HLE.mjs → chunk-FND6GZZ4.mjs} +5 -5
  41. package/dist/cli/{chunk-D73YB5NQ.js → chunk-HC27PYJM.js} +2 -2
  42. package/dist/cli/{chunk-FRT5MFLF.mjs → chunk-HOKOJGQW.mjs} +1 -1
  43. package/dist/cli/{chunk-AYNO4VFW.js → chunk-JNECQ5QF.js} +11 -11
  44. package/dist/cli/chunk-JVEU6MXD.mjs +77 -0
  45. package/dist/cli/{chunk-ZLIAUR2E.js → chunk-JY73USD7.js} +2 -2
  46. package/dist/cli/{chunk-K4RME7AV.mjs → chunk-KXSOZYCS.mjs} +1 -1
  47. package/dist/cli/{chunk-ESVK4Z7S.js → chunk-LF3FF2B2.js} +1 -1
  48. package/dist/cli/{chunk-63BGKU3A.js → chunk-N7FV7OM3.js} +96 -96
  49. package/dist/cli/{chunk-Q4I5YKN4.mjs → chunk-OEG6VCK4.mjs} +1 -1
  50. package/dist/cli/{chunk-2LY42EZJ.mjs → chunk-PQ56GE55.mjs} +1 -1
  51. package/dist/cli/{chunk-GRGZKXLL.mjs → chunk-Q5EJO4TE.mjs} +5 -5
  52. package/dist/cli/{chunk-N5HRBS4K.js → chunk-QRQBKLOM.js} +3 -3
  53. package/dist/cli/{chunk-4DAR2GYV.mjs → chunk-RHKFNEV2.mjs} +2 -2
  54. package/dist/cli/{chunk-C6TP4DR3.mjs → chunk-UV524JZ5.mjs} +1 -1
  55. package/dist/cli/{chunk-KSQO32L5.mjs → chunk-V6DLYRSO.mjs} +1 -1
  56. package/dist/cli/{chunk-J3LJ37WD.js → chunk-VPJSQMWQ.js} +3 -3
  57. package/dist/cli/{chunk-3XBI4KZM.mjs → chunk-WAOLTP6R.mjs} +2 -2
  58. package/dist/cli/{chunk-JXYVBF5L.mjs → chunk-WC5754QJ.mjs} +5 -5
  59. package/dist/cli/{chunk-RUD77W2Y.js → chunk-XJZU7KO4.js} +5 -5
  60. package/dist/cli/{chunk-GDHLL5EQ.js → chunk-XK3AJFYQ.js} +35 -10
  61. package/dist/cli/{chunk-JUYW6TSU.js → chunk-XL4FFVWL.js} +7 -7
  62. package/dist/cli/{chunk-ZL2ME3UT.js → chunk-XRLE2FPE.js} +6 -6
  63. package/dist/cli/{chunk-R4S2AK3Q.js → chunk-YDALHHUC.js} +53 -53
  64. package/dist/cli/{chunk-IF242BIJ.mjs → chunk-YYUVOUEH.mjs} +5 -5
  65. package/dist/cli/{chunk-TVADI7K5.js → chunk-ZCYV6MZH.js} +5 -5
  66. package/dist/cli/{chunk-AFSYNOG4.mjs → chunk-ZRACZKEE.mjs} +35 -10
  67. package/dist/cli/command-docs.js +2 -2
  68. package/dist/cli/command-docs.mjs +1 -1
  69. package/dist/cli/{csv-CMJSMC2I.mjs → csv-MTFVEDPU.mjs} +4 -4
  70. package/dist/cli/{csv-DPDO6BU6.js → csv-UXFQZLZM.js} +13 -13
  71. package/dist/cli/{db-SL3EFN6V.mjs → db-3WPUYCCI.mjs} +6 -6
  72. package/dist/cli/{db-PPPKNTT5.js → db-RGWT6B7K.js} +27 -27
  73. package/dist/cli/describe-LNCLA2LA.js +50 -0
  74. package/dist/cli/{describe-XLN33FJX.mjs → describe-XJY5654F.mjs} +18 -18
  75. package/dist/cli/{executions-6YDTV2J6.js → executions-IWTALFNB.js} +8 -8
  76. package/dist/cli/{executions-O6Z5B5NY.mjs → executions-PDE4V5YH.mjs} +6 -6
  77. package/dist/cli/{feedback-DP7LPWAD.mjs → feedback-BMOVTPC4.mjs} +11 -7
  78. package/dist/cli/{feedback-BZ434BN4.js → feedback-I72P4XZS.js} +15 -11
  79. package/dist/cli/{git-MI7E5WGL.mjs → git-QJG3EF4P.mjs} +5 -5
  80. package/dist/cli/git-QWH7SPGF.js +25 -0
  81. package/dist/cli/index.js +173 -156
  82. package/dist/cli/index.mjs +76 -59
  83. package/dist/cli/{legacy-noops-65WNPQVZ.js → legacy-noops-5P75CQC7.js} +9 -8
  84. package/dist/cli/{legacy-noops-6VYXF2MG.mjs → legacy-noops-MZ45GDMK.mjs} +6 -5
  85. package/dist/cli/{monitors-BYUCTVSC.js → monitors-5PHQZDZM.js} +100 -100
  86. package/dist/cli/{monitors-Y7I5ZVCN.mjs → monitors-VIOBUG2X.mjs} +7 -7
  87. package/dist/cli/{org-F2ASWTFY.js → org-B5LDVP2P.js} +72 -72
  88. package/dist/cli/{org-IW3YD6JZ.mjs → org-D5RTFJNY.mjs} +6 -6
  89. package/dist/cli/{pages-X6HLRQNV.js → pages-BUJYG3JL.js} +18 -18
  90. package/dist/cli/{pages-H2CXNIDB.mjs → pages-XWZL3YV2.mjs} +6 -6
  91. package/dist/cli/{play-LLEEDXRX.mjs → play-OSXLGCLZ.mjs} +93 -54
  92. package/dist/cli/{play-H2EM7DTI.js → play-SEC3EE7H.js} +468 -429
  93. package/dist/cli/{providers-BZR5JONN.mjs → providers-ENSURIW6.mjs} +6 -6
  94. package/dist/cli/{providers-6R2SPOEV.js → providers-RQPUASLI.js} +9 -9
  95. package/dist/cli/{quickstart-KVES7R6D.mjs → quickstart-HJTK6XWI.mjs} +4 -4
  96. package/dist/cli/{quickstart-PW7ONQUH.js → quickstart-XDTU4MAT.js} +6 -6
  97. package/dist/cli/{run-HVUQROBE.js → run-GX2SU5AT.js} +41 -41
  98. package/dist/cli/{run-RDI3Q6GO.mjs → run-ZMWSQAR2.mjs} +23 -23
  99. package/dist/cli/search-7WPABWYO.js +33 -0
  100. package/dist/cli/{search-3TJ24CUF.mjs → search-DZHZBHWT.mjs} +8 -8
  101. package/dist/cli/{search-output-JHT553SL.js → search-output-3JVZERNV.js} +6 -6
  102. package/dist/cli/{search-output-Y57OBQXX.mjs → search-output-MNHAR754.mjs} +4 -4
  103. package/dist/cli/{secrets-OZK7GRD5.mjs → secrets-VALVNVXB.mjs} +6 -6
  104. package/dist/cli/{secrets-U5JHWAXU.js → secrets-WO2LMDQ2.js} +15 -15
  105. package/dist/cli/sessions-2IA2DGWO.js +18 -0
  106. package/dist/cli/{sessions-D6DSEQ2T.mjs → sessions-EPYCH3AY.mjs} +6 -5
  107. package/dist/cli/{settings-DLPEHYGS.js → settings-OSF4O5HM.js} +109 -82
  108. package/dist/cli/{settings-ITLSLT2R.mjs → settings-W2ABZUD4.mjs} +39 -12
  109. package/dist/cli/{setup-Y5ZYEC6U.js → setup-DCXNQG6R.js} +50 -50
  110. package/dist/cli/{setup-XTYLF2CF.mjs → setup-XI2ERSMQ.mjs} +10 -10
  111. package/dist/cli/skills-QMD2WARJ.js +37 -0
  112. package/dist/cli/{skills-C4WCAVII.mjs → skills-ZO4AH2YR.mjs} +8 -8
  113. package/dist/cli/tools-53E6GBQU.js +57 -0
  114. package/dist/cli/{tools-ZESAPVOW.mjs → tools-FTECXZYA.mjs} +17 -17
  115. package/dist/cli/update-PPPNR6J5.js +35 -0
  116. package/dist/cli/{update-4PCKVDCS.mjs → update-WPFZO2JE.mjs} +10 -10
  117. package/dist/cli/{workflow-42CL4TVR.mjs → workflow-7X75IP3D.mjs} +7 -7
  118. package/dist/cli/{workflow-XXKXMPTI.js → workflow-PKMU33LV.js} +17 -17
  119. package/dist/index.js +9 -9
  120. package/dist/index.mjs +6 -6
  121. package/dist/install-integrity.json +105 -102
  122. package/dist/release.d.mts +1 -1
  123. package/dist/release.d.ts +1 -1
  124. package/dist/release.js +2 -2
  125. package/dist/release.mjs +1 -1
  126. package/dist/server.js +5 -5
  127. package/dist/server.mjs +3 -3
  128. package/package.json +1 -1
  129. package/dist/cli/auth-LFU77QDI.js +0 -43
  130. package/dist/cli/describe-JKZ67X3E.js +0 -50
  131. package/dist/cli/git-U5N6CTML.js +0 -25
  132. package/dist/cli/search-NKEEGLY6.js +0 -33
  133. package/dist/cli/sessions-PNMYAJNB.js +0 -17
  134. package/dist/cli/skills-K6FVG3BX.js +0 -37
  135. package/dist/cli/tools-LSALTN7I.js +0 -57
  136. package/dist/cli/update-P5KGNFNL.js +0 -35
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkFXKKFM7Jjs = require('./chunk-FXKKFM7J.js');
8
+ var _chunk4ZIIS6KGjs = require('./chunk-4ZIIS6KG.js');
9
9
 
10
10
 
11
11
 
@@ -18,15 +18,15 @@ var _chunkFXKKFM7Jjs = require('./chunk-FXKKFM7J.js');
18
18
 
19
19
 
20
20
 
21
- var _chunkZL2ME3UTjs = require('./chunk-ZL2ME3UT.js');
21
+ var _chunkXRLE2FPEjs = require('./chunk-XRLE2FPE.js');
22
22
 
23
23
 
24
- var _chunkAYNO4VFWjs = require('./chunk-AYNO4VFW.js');
24
+ var _chunkJNECQ5QFjs = require('./chunk-JNECQ5QF.js');
25
25
  require('./chunk-D3BCSAN7.js');
26
26
 
27
27
 
28
28
 
29
- var _chunk2YOM5J3Gjs = require('./chunk-2YOM5J3G.js');
29
+ var _chunk63DHG7BMjs = require('./chunk-63DHG7BM.js');
30
30
 
31
31
 
32
32
 
@@ -51,10 +51,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
51
51
 
52
52
 
53
53
 
54
- var _chunkRUD77W2Yjs = require('./chunk-RUD77W2Y.js');
54
+ var _chunkXJZU7KO4js = require('./chunk-XJZU7KO4.js');
55
55
 
56
56
 
57
- var _chunkTVADI7K5js = require('./chunk-TVADI7K5.js');
57
+ var _chunkZCYV6MZHjs = require('./chunk-ZCYV6MZH.js');
58
58
 
59
59
 
60
60
 
@@ -67,7 +67,7 @@ var _chunkTVADI7K5js = require('./chunk-TVADI7K5.js');
67
67
 
68
68
 
69
69
 
70
- var _chunkJRHMPZJXjs = require('./chunk-JRHMPZJX.js');
70
+ var _chunk7VQKU6MSjs = require('./chunk-7VQKU6MS.js');
71
71
  require('./chunk-E4CABWXL.js');
72
72
 
73
73
 
@@ -81,6 +81,7 @@ require('./chunk-E4CABWXL.js');
81
81
 
82
82
 
83
83
 
84
+
84
85
  var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
85
86
 
86
87
 
@@ -90,19 +91,19 @@ require('./chunk-WSGXBROE.js');
90
91
 
91
92
 
92
93
 
93
- var _chunkJYNHHO3Jjs = require('./chunk-JYNHHO3J.js');
94
+ var _chunkF6IXWFPFjs = require('./chunk-F6IXWFPF.js');
94
95
 
95
96
 
96
97
 
97
98
 
98
99
 
99
- var _chunkZLIAUR2Ejs = require('./chunk-ZLIAUR2E.js');
100
- require('./chunk-IZZ7FFWP.js');
100
+ var _chunkJY73USD7js = require('./chunk-JY73USD7.js');
101
+ require('./chunk-BPGFNVH2.js');
101
102
 
102
103
 
103
104
 
104
- var _chunkN5HRBS4Kjs = require('./chunk-N5HRBS4K.js');
105
- require('./chunk-P7GOQTUN.js');
105
+ var _chunkQRQBKLOMjs = require('./chunk-QRQBKLOM.js');
106
+ require('./chunk-6AL2VF3E.js');
106
107
 
107
108
 
108
109
  var _chunkR7J7CJPZjs = require('./chunk-R7J7CJPZ.js');
@@ -122,17 +123,17 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
122
123
 
123
124
 
124
125
 
125
- var _chunkJUYW6TSUjs = require('./chunk-JUYW6TSU.js');
126
- require('./chunk-J3LJ37WD.js');
126
+ var _chunkXL4FFVWLjs = require('./chunk-XL4FFVWL.js');
127
+ require('./chunk-VPJSQMWQ.js');
127
128
 
128
129
 
129
- var _chunk74UO7THCjs = require('./chunk-74UO7THC.js');
130
+ var _chunk4NJK6P5Tjs = require('./chunk-4NJK6P5T.js');
130
131
  require('./chunk-ALJJRZNJ.js');
131
132
  require('./chunk-XNYIZMNQ.js');
132
133
 
133
134
 
134
135
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
135
- require('./chunk-ESVK4Z7S.js');
136
+ require('./chunk-LF3FF2B2.js');
136
137
  require('./chunk-OG64RBAC.js');
137
138
 
138
139
 
@@ -334,8 +335,8 @@ var require_constants = _chunkCOGTRVWWjs.__commonJS.call(void 0, {
334
335
  /**
335
336
  * Create GLOB_CHARS
336
337
  */
337
- globChars(win32) {
338
- return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
338
+ globChars(win322) {
339
+ return win322 === true ? WINDOWS_CHARS : POSIX_CHARS;
339
340
  }
340
341
  };
341
342
  }
@@ -1257,9 +1258,9 @@ var require_parse = _chunkCOGTRVWWjs.__commonJS.call(void 0, {
1257
1258
  const idx = prev.value.lastIndexOf("[");
1258
1259
  const pre = prev.value.slice(0, idx);
1259
1260
  const rest2 = prev.value.slice(idx + 2);
1260
- const posix = POSIX_REGEX_SOURCE[rest2];
1261
- if (posix) {
1262
- prev.value = pre + posix;
1261
+ const posix2 = POSIX_REGEX_SOURCE[rest2];
1262
+ if (posix2) {
1263
+ prev.value = pre + posix2;
1263
1264
  state.backtrack = true;
1264
1265
  advance();
1265
1266
  if (!bos.output && tokens.indexOf(prev) === 1) {
@@ -1775,7 +1776,7 @@ var require_picomatch = _chunkCOGTRVWWjs.__commonJS.call(void 0, {
1775
1776
  throw new TypeError("Expected pattern to be a non-empty string");
1776
1777
  }
1777
1778
  const opts = options || {};
1778
- const posix = opts.windows;
1779
+ const posix2 = opts.windows;
1779
1780
  const regex = isState ? picomatch2.compileRe(glob, options) : picomatch2.makeRe(glob, options, false, true);
1780
1781
  const state = regex.state;
1781
1782
  delete regex.state;
@@ -1785,8 +1786,8 @@ var require_picomatch = _chunkCOGTRVWWjs.__commonJS.call(void 0, {
1785
1786
  isIgnored = picomatch2(opts.ignore, ignoreOpts, returnState);
1786
1787
  }
1787
1788
  const matcher = (input, returnObject = false) => {
1788
- const { isMatch, match, output } = picomatch2.test(input, regex, options, { glob, posix });
1789
- const result = { glob, state, regex, posix, input, output, match, isMatch };
1789
+ const { isMatch, match, output } = picomatch2.test(input, regex, options, { glob, posix: posix2 });
1790
+ const result = { glob, state, regex, posix: posix2, input, output, match, isMatch };
1790
1791
  if (typeof opts.onResult === "function") {
1791
1792
  opts.onResult(result);
1792
1793
  }
@@ -1811,7 +1812,7 @@ var require_picomatch = _chunkCOGTRVWWjs.__commonJS.call(void 0, {
1811
1812
  }
1812
1813
  return matcher;
1813
1814
  };
1814
- picomatch2.test = (input, regex, options, { glob, posix } = {}) => {
1815
+ picomatch2.test = (input, regex, options, { glob, posix: posix2 } = {}) => {
1815
1816
  if (typeof input !== "string") {
1816
1817
  throw new TypeError("Expected input to be a string");
1817
1818
  }
@@ -1819,7 +1820,7 @@ var require_picomatch = _chunkCOGTRVWWjs.__commonJS.call(void 0, {
1819
1820
  return { isMatch: false, output: "" };
1820
1821
  }
1821
1822
  const opts = options || {};
1822
- const format = opts.format || (posix ? utils.toPosixSlashes : null);
1823
+ const format = opts.format || (posix2 ? utils.toPosixSlashes : null);
1823
1824
  let match = input === glob;
1824
1825
  let output = match && format ? format(input) : input;
1825
1826
  if (match === false) {
@@ -1828,16 +1829,16 @@ var require_picomatch = _chunkCOGTRVWWjs.__commonJS.call(void 0, {
1828
1829
  }
1829
1830
  if (match === false || opts.capture === true) {
1830
1831
  if (opts.matchBase === true || opts.basename === true) {
1831
- match = picomatch2.matchBase(input, regex, options, posix);
1832
+ match = picomatch2.matchBase(input, regex, options, posix2);
1832
1833
  } else {
1833
1834
  match = regex.exec(output);
1834
1835
  }
1835
1836
  }
1836
1837
  return { isMatch: Boolean(match), match, output };
1837
1838
  };
1838
- picomatch2.matchBase = (input, glob, options, posix = options && options.windows) => {
1839
+ picomatch2.matchBase = (input, glob, options, posix2 = options && options.windows) => {
1839
1840
  const regex = glob instanceof RegExp ? glob : picomatch2.makeRe(glob, options);
1840
- return regex.test(utils.basename(input, { windows: posix }));
1841
+ return regex.test(utils.basename(input, { windows: posix2 }));
1841
1842
  };
1842
1843
  picomatch2.isMatch = (str, patterns, options) => picomatch2(patterns, options)(str);
1843
1844
  picomatch2.parse = (pattern, options) => {
@@ -2114,7 +2115,7 @@ function resolveField(key, command) {
2114
2115
  function printSettings(result, json, name) {
2115
2116
  result = { ...result, settings: parsePlaySettings(result.settings) };
2116
2117
  const selected = fields.filter(([key]) => !name || key === name);
2117
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
2118
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
2118
2119
  {
2119
2120
  ...result,
2120
2121
  settings: Object.fromEntries(
@@ -2158,7 +2159,7 @@ function registerPlaySettingsCommands(plays) {
2158
2159
  valueSyntax: field.cli.valueSyntax,
2159
2160
  examples: field.cli.examples
2160
2161
  }));
2161
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
2162
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
2162
2163
  {
2163
2164
  fields: descriptions,
2164
2165
  render: {
@@ -2183,7 +2184,7 @@ function registerPlaySettingsCommands(plays) {
2183
2184
  async (options, command) => {
2184
2185
  if (options.name !== void 0) resolveField(options.name, command);
2185
2186
  printSettings(
2186
- await new (0, _chunkTVADI7K5js.DeeplineClient)().getPlaySettings(options.play),
2187
+ await new (0, _chunkZCYV6MZHjs.DeeplineClient)().getPlaySettings(options.play),
2187
2188
  options.json,
2188
2189
  options.name
2189
2190
  );
@@ -2214,7 +2215,7 @@ function registerPlaySettingsCommands(plays) {
2214
2215
  );
2215
2216
  }
2216
2217
  if (options.dryRun) {
2217
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
2218
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
2218
2219
  {
2219
2220
  dryRun: true,
2220
2221
  play,
@@ -2235,7 +2236,7 @@ function registerPlaySettingsCommands(plays) {
2235
2236
  return;
2236
2237
  }
2237
2238
  printSettings(
2238
- await new (0, _chunkTVADI7K5js.DeeplineClient)().updatePlaySettings(play, patch),
2239
+ await new (0, _chunkZCYV6MZHjs.DeeplineClient)().updatePlaySettings(play, patch),
2239
2240
  options.json
2240
2241
  );
2241
2242
  };
@@ -2261,13 +2262,13 @@ function registerPlaySettingsCommands(plays) {
2261
2262
  "--root must be person or team; --limit must be 1\u2013100.",
2262
2263
  { exitCode: 2 }
2263
2264
  );
2264
- const page = await new (0, _chunkTVADI7K5js.DeeplineClient)().listPlaySettingsPaths({
2265
+ const page = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().listPlaySettingsPaths({
2265
2266
  root: options.root,
2266
2267
  limit,
2267
2268
  cursor: options.cursor
2268
2269
  });
2269
2270
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2270
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
2271
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
2271
2272
  {
2272
2273
  ...page,
2273
2274
  nextCommand,
@@ -2318,7 +2319,7 @@ function registerPlaySettingsCommands(plays) {
2318
2319
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
2319
2320
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
2320
2321
  };
2321
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
2322
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
2322
2323
  const paths = [];
2323
2324
  let cursor;
2324
2325
  do {
@@ -2380,7 +2381,7 @@ function registerPlaySettingsCommands(plays) {
2380
2381
  moved.push(move.playName);
2381
2382
  }
2382
2383
  }
2383
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
2384
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
2384
2385
  {
2385
2386
  dryRun: Boolean(options.dryRun),
2386
2387
  from: options.from,
@@ -2508,7 +2509,7 @@ function triggerLines(view) {
2508
2509
  return lines;
2509
2510
  }
2510
2511
  function printView(view, json) {
2511
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
2512
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
2512
2513
  {
2513
2514
  ...view,
2514
2515
  render: {
@@ -2521,7 +2522,7 @@ function printView(view, json) {
2521
2522
  );
2522
2523
  }
2523
2524
  function printResult(result, json) {
2524
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
2525
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
2525
2526
  {
2526
2527
  ...result,
2527
2528
  render: {
@@ -2551,7 +2552,7 @@ async function mutate(command, options, build) {
2551
2552
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2552
2553
  }
2553
2554
  if (options.dryRun) {
2554
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
2555
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
2555
2556
  {
2556
2557
  dryRun: true,
2557
2558
  play: options.play,
@@ -2570,7 +2571,7 @@ async function mutate(command, options, build) {
2570
2571
  return;
2571
2572
  }
2572
2573
  printResult(
2573
- await new (0, _chunkTVADI7K5js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2574
+ await new (0, _chunkZCYV6MZHjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2574
2575
  options.json
2575
2576
  );
2576
2577
  }
@@ -2603,7 +2604,7 @@ function registerPlayTriggerConfigCommands(plays) {
2603
2604
  }).addHelpText("after", help2);
2604
2605
  trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
2605
2606
  printView(
2606
- await new (0, _chunkTVADI7K5js.DeeplineClient)().getPlayTriggerConfig(options.play),
2607
+ await new (0, _chunkZCYV6MZHjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2607
2608
  options.json
2608
2609
  );
2609
2610
  });
@@ -2647,7 +2648,7 @@ function registerPlayTriggerConfigCommands(plays) {
2647
2648
  if (options.auth === void 0) {
2648
2649
  if (secrets.length || options.header || options.signaturePrefix)
2649
2650
  usage(setWebhook, "--secret/--header need --auth.");
2650
- const current = await new (0, _chunkTVADI7K5js.DeeplineClient)().getPlayTriggerConfig(
2651
+ const current = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().getPlayTriggerConfig(
2651
2652
  options.play
2652
2653
  );
2653
2654
  return {
@@ -2724,7 +2725,7 @@ var KIND_DESCRIPTIONS = {
2724
2725
  "receipt.skipped": "Saved work result: skipped.",
2725
2726
  "runtime.event": "Other event."
2726
2727
  };
2727
- var RUN_LOGS_KIND_HELP = _chunkJRHMPZJXjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2728
+ var RUN_LOGS_KIND_HELP = _chunk7VQKU6MSjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2728
2729
  kind,
2729
2730
  description: KIND_DESCRIPTIONS[kind]
2730
2731
  }));
@@ -2861,9 +2862,9 @@ function configureRunQueryCommandErrors(command, resource) {
2861
2862
  const args = program.args;
2862
2863
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2863
2864
  error.exitCode = 2;
2864
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2865
- _chunkJUYW6TSUjs.printJsonError.call(void 0,
2866
- Object.assign(new (0, _chunkJRHMPZJXjs.RunEventQueryInputError)(error.message), {
2865
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2866
+ _chunkXL4FFVWLjs.printJsonError.call(void 0,
2867
+ Object.assign(new (0, _chunk7VQKU6MSjs.RunEventQueryInputError)(error.message), {
2867
2868
  exitCode: 2,
2868
2869
  retryable: false
2869
2870
  })
@@ -2907,14 +2908,14 @@ function parseQuery(args, resource) {
2907
2908
  if (VALUE_FLAGS.has(flag)) {
2908
2909
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2909
2910
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2910
- throw new (0, _chunkJRHMPZJXjs.RunEventQueryInputError)(
2911
+ throw new (0, _chunk7VQKU6MSjs.RunEventQueryInputError)(
2911
2912
  `${flag} requires a value. Use ${flag} <value>.`
2912
2913
  );
2913
2914
  }
2914
2915
  if (flag === "--sum") sums.push(value);
2915
2916
  else {
2916
2917
  if (values[flag] !== void 0) {
2917
- throw new (0, _chunkJRHMPZJXjs.RunEventQueryInputError)(
2918
+ throw new (0, _chunk7VQKU6MSjs.RunEventQueryInputError)(
2918
2919
  `${flag} may only be supplied once.`
2919
2920
  );
2920
2921
  }
@@ -2928,12 +2929,12 @@ function parseQuery(args, resource) {
2928
2929
  }
2929
2930
  if (arg.startsWith("-")) {
2930
2931
  const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
2931
- throw new (0, _chunkJRHMPZJXjs.RunEventQueryInputError)(
2932
+ throw new (0, _chunk7VQKU6MSjs.RunEventQueryInputError)(
2932
2933
  `Unsupported query flag ${flag}. ${correction}`
2933
2934
  );
2934
2935
  }
2935
2936
  if (runId !== void 0) {
2936
- throw new (0, _chunkJRHMPZJXjs.RunEventQueryInputError)(
2937
+ throw new (0, _chunk7VQKU6MSjs.RunEventQueryInputError)(
2937
2938
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2938
2939
  );
2939
2940
  }
@@ -2941,7 +2942,7 @@ function parseQuery(args, resource) {
2941
2942
  }
2942
2943
  if (switches.has("--fields")) {
2943
2944
  if (runId !== void 0) {
2944
- throw new (0, _chunkJRHMPZJXjs.RunEventQueryInputError)(
2945
+ throw new (0, _chunk7VQKU6MSjs.RunEventQueryInputError)(
2945
2946
  "--fields does not use a run ID. Omit the positional run ID."
2946
2947
  );
2947
2948
  }
@@ -2954,18 +2955,18 @@ function parseQuery(args, resource) {
2954
2955
  )
2955
2956
  ];
2956
2957
  if (incompatible.length) {
2957
- throw new (0, _chunkJRHMPZJXjs.RunEventQueryInputError)(
2958
+ throw new (0, _chunk7VQKU6MSjs.RunEventQueryInputError)(
2958
2959
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2959
2960
  );
2960
2961
  }
2961
2962
  }
2962
2963
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2963
- throw new (0, _chunkJRHMPZJXjs.RunEventQueryInputError)(
2964
+ throw new (0, _chunk7VQKU6MSjs.RunEventQueryInputError)(
2964
2965
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2965
2966
  );
2966
2967
  }
2967
2968
  if (sums.length && switches.has("--count")) {
2968
- throw new (0, _chunkJRHMPZJXjs.RunEventQueryInputError)(
2969
+ throw new (0, _chunk7VQKU6MSjs.RunEventQueryInputError)(
2969
2970
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2970
2971
  );
2971
2972
  }
@@ -2973,7 +2974,7 @@ function parseQuery(args, resource) {
2973
2974
  if (operation === "count") {
2974
2975
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2975
2976
  if (values[flag] !== void 0 || switches.has(flag)) {
2976
- throw new (0, _chunkJRHMPZJXjs.RunEventQueryInputError)(
2977
+ throw new (0, _chunk7VQKU6MSjs.RunEventQueryInputError)(
2977
2978
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2978
2979
  );
2979
2980
  }
@@ -3008,16 +3009,16 @@ function parseQuery(args, resource) {
3008
3009
  ];
3009
3010
  }
3010
3011
  }
3011
- const request = _chunkJRHMPZJXjs.normalizeRunEventOperationRequest.call(void 0, body);
3012
+ const request = _chunk7VQKU6MSjs.normalizeRunEventOperationRequest.call(void 0, body);
3012
3013
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
3013
3014
  const backend = values["--runtime-backend"];
3014
3015
  if (backend && backend !== "daytona" && backend !== "modal") {
3015
- throw new (0, _chunkJRHMPZJXjs.RunEventQueryInputError)(
3016
+ throw new (0, _chunk7VQKU6MSjs.RunEventQueryInputError)(
3016
3017
  "--runtime-backend must be daytona or modal."
3017
3018
  );
3018
3019
  }
3019
3020
  if (backend && !namespace) {
3020
- throw new (0, _chunkJRHMPZJXjs.RunEventQueryInputError)(
3021
+ throw new (0, _chunk7VQKU6MSjs.RunEventQueryInputError)(
3021
3022
  "--runtime-backend requires --runtime-namespace."
3022
3023
  );
3023
3024
  }
@@ -3064,12 +3065,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3064
3065
  const failure = error instanceof Error ? error : new Error(String(error));
3065
3066
  const record3 = failure;
3066
3067
  const status = record3.statusCode;
3067
- const exitCode = error instanceof _chunkJRHMPZJXjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3068
+ const exitCode = error instanceof _chunk7VQKU6MSjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3068
3069
  const diagnostic = Object.assign(failure, {
3069
3070
  exitCode,
3070
3071
  retryable: exitCode === 5
3071
3072
  });
3072
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) _chunkJUYW6TSUjs.printJsonError.call(void 0, diagnostic);
3073
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) _chunkXL4FFVWLjs.printJsonError.call(void 0, diagnostic);
3073
3074
  else console.error(`Error: ${diagnostic.message}`);
3074
3075
  return exitCode;
3075
3076
  }
@@ -3084,7 +3085,7 @@ async function executeRunEventQuery(args, resource) {
3084
3085
  ...criteria
3085
3086
  } = request;
3086
3087
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3087
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
3088
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
3088
3089
  let result;
3089
3090
  if (request.operation === "fields") {
3090
3091
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3150,13 +3151,13 @@ async function executeRunEventQuery(args, resource) {
3150
3151
  lines.push(`Next page: ${nextPage}`);
3151
3152
  }
3152
3153
  }
3153
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
3154
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
3154
3155
  {
3155
3156
  ...result,
3156
3157
  ...nextPage ? { next: { page: nextPage } } : {},
3157
3158
  render: { sections: [{ title: `run ${resource}`, lines }] }
3158
3159
  },
3159
- { json: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3160
+ { json: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3160
3161
  ` }
3161
3162
  );
3162
3163
  return 0;
@@ -4035,7 +4036,7 @@ var _promises = require('fs/promises');
4035
4036
 
4036
4037
 
4037
4038
 
4038
- var _path = require('path');
4039
+ var _path = require('path'); var nodePath = _interopRequireWildcard(_path);
4039
4040
 
4040
4041
 
4041
4042
  // src/cli/commands/run-receipt.ts
@@ -4075,7 +4076,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4075
4076
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4076
4077
  );
4077
4078
  }
4078
- const response = await new (0, _chunkTVADI7K5js.DeeplineClient)().runs.getReceipts(runId, {
4079
+ const response = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().runs.getReceipts(runId, {
4079
4080
  keys
4080
4081
  });
4081
4082
  const failed = response.receipts.filter(
@@ -4087,7 +4088,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4087
4088
  JSON.stringify(response, null, 2) + "\n",
4088
4089
  { flag: "wx", mode: 384 }
4089
4090
  );
4090
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
4091
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
4091
4092
  {
4092
4093
  runId,
4093
4094
  out: options.out,
@@ -4097,7 +4098,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4097
4098
  { json: true }
4098
4099
  );
4099
4100
  } else {
4100
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4101
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4101
4102
  }
4102
4103
  if (failed)
4103
4104
  process.exitCode = response.receipts.some(
@@ -4136,7 +4137,7 @@ includes nextCommand when another page is available.
4136
4137
  { exitCode: 2 }
4137
4138
  );
4138
4139
  }
4139
- const page = await new (0, _chunkTVADI7K5js.DeeplineClient)().runs.children(parentRunId, {
4140
+ const page = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().runs.children(parentRunId, {
4140
4141
  launchKey: options.launchKey,
4141
4142
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4142
4143
  limit
@@ -4151,7 +4152,7 @@ includes nextCommand when another page is available.
4151
4152
  "--limit",
4152
4153
  String(limit)
4153
4154
  ].join(" ") : null;
4154
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
4155
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
4155
4156
  {
4156
4157
  parentRunId,
4157
4158
  launchKey: options.launchKey,
@@ -4187,7 +4188,7 @@ async function handleRunsHistory(options) {
4187
4188
  throw new Error("--limit must be a positive integer.");
4188
4189
  }
4189
4190
  }
4190
- const page = await new (0, _chunkTVADI7K5js.DeeplineClient)().runs.history({
4191
+ const page = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().runs.history({
4191
4192
  cursor: options.cursor,
4192
4193
  orgId: options.org,
4193
4194
  search: options.search,
@@ -4203,7 +4204,7 @@ async function handleRunsHistory(options) {
4203
4204
  );
4204
4205
  }
4205
4206
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4206
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
4207
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
4207
4208
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4208
4209
  options.json ? { json: true } : {}
4209
4210
  );
@@ -4256,12 +4257,12 @@ async function runRunsRerunCommand(runId, options) {
4256
4257
  }
4257
4258
  }
4258
4259
  if (options.notice) console.error(options.notice);
4259
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().runs.rerun(runId, {
4260
+ const result = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().runs.rerun(runId, {
4260
4261
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4261
4262
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4262
4263
  });
4263
- if (_chunkJUYW6TSUjs.shouldEmitJson.call(void 0, options.json)) {
4264
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, result, { json: true });
4264
+ if (_chunkXL4FFVWLjs.shouldEmitJson.call(void 0, options.json)) {
4265
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, result, { json: true });
4265
4266
  } else if (result.rateLimited) {
4266
4267
  console.log(`
4267
4268
  ${result.rateLimited.message}`);
@@ -4285,7 +4286,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
4285
4286
  // src/cli/operations/runs-resume.ts
4286
4287
  async function runRunsResumeCommand(runId) {
4287
4288
  try {
4288
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().runs.resume(runId);
4289
+ const result = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().runs.resume(runId);
4289
4290
  if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
4290
4291
  throw new Error(
4291
4292
  "Invalid resume receipt: expected the requested run and a new positive epoch."
@@ -4302,6 +4303,50 @@ async function runRunsResumeCommand(runId) {
4302
4303
  }
4303
4304
  }
4304
4305
 
4306
+ // src/cli/play-file-input-paths.ts
4307
+
4308
+
4309
+ function hostFileInputPathEnvironment() {
4310
+ return {
4311
+ path: nodePath,
4312
+ cwd: process.cwd(),
4313
+ isFile: (absolutePath) => {
4314
+ try {
4315
+ return _fs.statSync.call(void 0, absolutePath).isFile();
4316
+ } catch (e4) {
4317
+ return false;
4318
+ }
4319
+ },
4320
+ readFile: (absolutePath) => _fs.readFileSync.call(void 0, absolutePath)
4321
+ };
4322
+ }
4323
+ var URL_VALUE = /^[a-z][a-z0-9+.-]*:\/\//i;
4324
+ function isUnambiguousLocalFilePath(value) {
4325
+ const trimmed = value.trim();
4326
+ return nodePath.posix.isAbsolute(trimmed) || nodePath.win32.isAbsolute(trimmed) || /^\.\.?[\\/]/.test(trimmed) || trimmed.includes("\\");
4327
+ }
4328
+ function resolveCliFileInput(value, binding, environment = hostFileInputPathEnvironment()) {
4329
+ if (typeof value !== "string") return null;
4330
+ const trimmed = value.trim();
4331
+ if (!trimmed || URL_VALUE.test(trimmed)) return null;
4332
+ const absolutePath = environment.path.resolve(environment.cwd, trimmed);
4333
+ if (environment.isFile(absolutePath)) {
4334
+ return {
4335
+ logicalPath: environment.path.basename(absolutePath),
4336
+ read: async () => environment.readFile(absolutePath)
4337
+ };
4338
+ }
4339
+ if (isUnambiguousLocalFilePath(trimmed)) {
4340
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
4341
+ `Input ${binding.inputPath} is a local file path that is not a readable file: ${trimmed} (resolved to ${absolutePath}). Pass a readable file path or an https:// URL. No run was created.`,
4342
+ void 0,
4343
+ "PLAY_INPUT_FILE_PREFLIGHT",
4344
+ { inputPath: binding.inputPath, path: trimmed, resolved: absolutePath }
4345
+ );
4346
+ }
4347
+ return null;
4348
+ }
4349
+
4305
4350
  // ../plays/cascade-falloff.ts
4306
4351
  function cascadeFalloff(input) {
4307
4352
  const order = new Map(input.legs.map((leg, index) => [leg, index]));
@@ -5075,13 +5120,13 @@ var RunDataset = class _RunDataset {
5075
5120
  const absolutePath = _path.resolve.call(void 0, outPath);
5076
5121
  _fs.writeFileSync.call(void 0,
5077
5122
  absolutePath,
5078
- `${JSON.stringify(_chunkZL2ME3UTjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
5123
+ `${JSON.stringify(_chunkXRLE2FPEjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
5079
5124
  `,
5080
5125
  "utf-8"
5081
5126
  );
5082
5127
  return absolutePath;
5083
5128
  }
5084
- return _chunkZL2ME3UTjs.writeRunDatasetCsv.call(void 0, {
5129
+ return _chunkXRLE2FPEjs.writeRunDatasetCsv.call(void 0, {
5085
5130
  rows: this.rows,
5086
5131
  columns: this.#info.columns,
5087
5132
  outPath
@@ -5344,7 +5389,7 @@ var DeployApiClient = class {
5344
5389
  let parsed = null;
5345
5390
  try {
5346
5391
  parsed = text ? JSON.parse(text) : null;
5347
- } catch (e4) {
5392
+ } catch (e5) {
5348
5393
  parsed = text;
5349
5394
  }
5350
5395
  if (!response.ok) {
@@ -5610,7 +5655,7 @@ async function readMonitorFiles(input) {
5610
5655
  const raw = await _promises.readFile.call(void 0, _path.join.call(void 0, input.projectRoot, file), "utf8");
5611
5656
  try {
5612
5657
  return { file: sourcePath, definition: JSON.parse(raw) };
5613
- } catch (e5) {
5658
+ } catch (e6) {
5614
5659
  throw new DeeplineManifestError(
5615
5660
  `${sourcePath} must contain a monitor definition as valid JSON.`
5616
5661
  );
@@ -5732,7 +5777,7 @@ async function extractWithCompiler(sourceCode) {
5732
5777
  try {
5733
5778
  const loaded = await Promise.resolve().then(() => _interopRequireWildcard(require("typescript")));
5734
5779
  ts = _nullishCoalesce(loaded.default, () => ( loaded));
5735
- } catch (e6) {
5780
+ } catch (e7) {
5736
5781
  return null;
5737
5782
  }
5738
5783
  const sourceFile = ts.createSourceFile(
@@ -6586,7 +6631,7 @@ function renderOutcome(outcome) {
6586
6631
  function printResult2(input) {
6587
6632
  const failed = input.status === "failed" || input.status === "cancelled";
6588
6633
  if (failed) process.exitCode = 1;
6589
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
6634
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
6590
6635
  {
6591
6636
  deployment: { ...input.deployment, status: input.status },
6592
6637
  plays: input.outcomes,
@@ -6611,7 +6656,7 @@ async function handlePlaysDeploy(directory, options) {
6611
6656
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6612
6657
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6613
6658
  });
6614
- const { http, config } = _chunkJUYW6TSUjs.getAuthedHttpClient.call(void 0, );
6659
+ const { http, config } = _chunkXL4FFVWLjs.getAuthedHttpClient.call(void 0, );
6615
6660
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6616
6661
  const startDeployment = () => http.post("/api/v2/deployments", {
6617
6662
  deliveryId,
@@ -6638,7 +6683,7 @@ async function handlePlaysDeploy(directory, options) {
6638
6683
  },
6639
6684
  {
6640
6685
  bundle: bundleDeployPlayFile,
6641
- fetchImpl: _chunk74UO7THCjs.fetchWithDeploymentProtection,
6686
+ fetchImpl: _chunk4NJK6P5Tjs.fetchWithDeploymentProtection,
6642
6687
  // The plays are already here: "opening" the source is naming it.
6643
6688
  openSource: async () => ({
6644
6689
  open: async () => ({ repoRoot: root })
@@ -6764,7 +6809,7 @@ async function checkLocalPlayGraph(input) {
6764
6809
  // src/cli/renderers/local-play-execution.ts
6765
6810
  function renderLocalPlayExecutionPlan(plan, options = {}) {
6766
6811
  if (options.dryRun) {
6767
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6812
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6768
6813
  return;
6769
6814
  }
6770
6815
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -6936,7 +6981,7 @@ function traceCliSync(phase, fields2, run) {
6936
6981
  const startedAt = Date.now();
6937
6982
  try {
6938
6983
  const result = run();
6939
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
6984
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
6940
6985
  phase,
6941
6986
  ms: Date.now() - startedAt,
6942
6987
  ok: true,
@@ -6944,7 +6989,7 @@ function traceCliSync(phase, fields2, run) {
6944
6989
  });
6945
6990
  return result;
6946
6991
  } catch (error) {
6947
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
6992
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
6948
6993
  phase,
6949
6994
  ms: Date.now() - startedAt,
6950
6995
  ok: false,
@@ -7148,7 +7193,7 @@ async function buildPlayReferenceNotFoundError(input) {
7148
7193
  plays,
7149
7194
  limit: 5
7150
7195
  });
7151
- } catch (e7) {
7196
+ } catch (e8) {
7152
7197
  suggestions = [];
7153
7198
  }
7154
7199
  const sourceError = input.sourceError instanceof _chunkDIAWYWT5js.DeeplineError ? input.sourceError : null;
@@ -7381,7 +7426,7 @@ function parsePositiveInteger(value, flagName) {
7381
7426
  function isLocalFilePathValue(value) {
7382
7427
  if (typeof value !== "string" || !value.trim()) return false;
7383
7428
  if (/^[a-z][a-z0-9+.-]*:\/\//i.test(value.trim())) return false;
7384
- return _fs.existsSync.call(void 0, _path.resolve.call(void 0, value));
7429
+ return isUnambiguousLocalFilePath(value) || _fs.existsSync.call(void 0, _path.resolve.call(void 0, value));
7385
7430
  }
7386
7431
  function inputContainsLocalFilePath(value) {
7387
7432
  if (isLocalFilePathValue(value)) {
@@ -7532,14 +7577,7 @@ async function stageFileInputArgs(input) {
7532
7577
  runtimeInput: input.runtimeInput,
7533
7578
  bindings: input.bindings,
7534
7579
  codec: NODE_STAGED_FILE_CODEC,
7535
- resolveLocalFile: (value) => {
7536
- if (!isLocalFilePathValue(value)) return null;
7537
- const absolutePath = _path.resolve.call(void 0, value);
7538
- return {
7539
- logicalPath: _path.basename.call(void 0, absolutePath),
7540
- read: async () => _fs.readFileSync.call(void 0, absolutePath)
7541
- };
7542
- },
7580
+ resolveLocalFile: (value, binding) => resolveCliFileInput(value, binding),
7543
7581
  onStaging: (fileCount) => input.progress.phase(
7544
7582
  fileCount === 1 ? "staging input file" : "staging input files"
7545
7583
  )
@@ -7558,7 +7596,7 @@ function stageFile(logicalPath, absolutePath) {
7558
7596
  function normalizePlayPath(filePath) {
7559
7597
  try {
7560
7598
  return _fs.realpathSync.native(_path.resolve.call(void 0, filePath));
7561
- } catch (e8) {
7599
+ } catch (e9) {
7562
7600
  return _path.resolve.call(void 0, filePath);
7563
7601
  }
7564
7602
  }
@@ -7750,7 +7788,7 @@ function playStatusErrorText(status) {
7750
7788
  function isRetryablePendingStartFailure(status) {
7751
7789
  if (status.status !== "failed") return false;
7752
7790
  if (status.runId && status.runId !== "pending") return false;
7753
- return _chunkJRHMPZJXjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7791
+ return _chunk7VQKU6MSjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7754
7792
  }
7755
7793
  function isAmbiguousPlayStartOutcomeError(error) {
7756
7794
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
@@ -7800,13 +7838,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
7800
7838
  }, _class);
7801
7839
  function watchSurfaceReaches(state, provenance, level) {
7802
7840
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
7803
- if (!_chunkJRHMPZJXjs.logLevelReaches.call(void 0, level, minimumLevel)) {
7841
+ if (!_chunk7VQKU6MSjs.logLevelReaches.call(void 0, level, minimumLevel)) {
7804
7842
  return false;
7805
7843
  }
7806
- if (_chunkJRHMPZJXjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
7844
+ if (_chunk7VQKU6MSjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
7807
7845
  return true;
7808
7846
  }
7809
- return state.verbose === true && _chunkJRHMPZJXjs.logProvenanceReaches.call(void 0, provenance, "debug");
7847
+ return state.verbose === true && _chunk7VQKU6MSjs.logProvenanceReaches.call(void 0, provenance, "debug");
7810
7848
  }
7811
7849
  function getEventPayload(event) {
7812
7850
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -8316,7 +8354,7 @@ function resolvePlayRunUrl(input) {
8316
8354
  }
8317
8355
  function openPlayDashboard(url, open2) {
8318
8356
  if (open2 && url) {
8319
- _chunkJUYW6TSUjs.openInBrowser.call(void 0, url);
8357
+ _chunkXL4FFVWLjs.openInBrowser.call(void 0, url);
8320
8358
  }
8321
8359
  }
8322
8360
  function printPlayLogLines(input) {
@@ -8397,7 +8435,7 @@ async function waitForPlayCompletionByWatch(input) {
8397
8435
  ...input.fullJson === void 0 ? {} : { full: input.fullJson }
8398
8436
  });
8399
8437
  } catch (error) {
8400
- if (_chunkJRHMPZJXjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8438
+ if (_chunk7VQKU6MSjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8401
8439
  return null;
8402
8440
  }
8403
8441
  throw error;
@@ -8478,9 +8516,9 @@ async function waitForPlayCompletionByWatch(input) {
8478
8516
  signal: controller.signal,
8479
8517
  deferLogs: !input.emitLogs,
8480
8518
  omitTerminalLogs: !input.emitLogs,
8481
- ..._chunkZLIAUR2Ejs.isCliTraceEnabled.call(void 0, ) ? {
8519
+ ..._chunkJY73USD7js.isCliTraceEnabled.call(void 0, ) ? {
8482
8520
  onPoll: (observation) => {
8483
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
8521
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
8484
8522
  phase: "play_watch_poll",
8485
8523
  workflowId: input.workflowId,
8486
8524
  ms: observation.durationMs,
@@ -8494,7 +8532,7 @@ async function waitForPlayCompletionByWatch(input) {
8494
8532
  full: input.fullJson,
8495
8533
  billing: false,
8496
8534
  onStatus: async (status) => {
8497
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
8535
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
8498
8536
  phase: "play_watch_terminal_status",
8499
8537
  workflowId: input.workflowId,
8500
8538
  full: input.fullJson === true
@@ -8583,7 +8621,7 @@ async function startAndWaitForPlayCompletion(input) {
8583
8621
  signal: controller.signal,
8584
8622
  cliAdmission: useCliAdmission
8585
8623
  });
8586
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
8624
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
8587
8625
  phase: "cli.play_start_admission_attempt",
8588
8626
  ms: Date.now() - postStartedAt,
8589
8627
  ok: true,
@@ -8595,7 +8633,7 @@ async function startAndWaitForPlayCompletion(input) {
8595
8633
  });
8596
8634
  break;
8597
8635
  } catch (error) {
8598
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
8636
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
8599
8637
  phase: "cli.play_start_admission_attempt",
8600
8638
  ms: Date.now() - postStartedAt,
8601
8639
  ok: false,
@@ -8646,7 +8684,7 @@ async function startAndWaitForPlayCompletion(input) {
8646
8684
  prepared.workflowId
8647
8685
  );
8648
8686
  }
8649
- await _chunkJYNHHO3Jjs.checkPlayRunCompatibility.call(void 0,
8687
+ await _chunkF6IXWFPFjs.checkPlayRunCompatibility.call(void 0,
8650
8688
  input.client.baseUrl,
8651
8689
  input.maintenancePolicy
8652
8690
  );
@@ -8664,7 +8702,7 @@ async function startAndWaitForPlayCompletion(input) {
8664
8702
  `[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
8665
8703
  );
8666
8704
  }
8667
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
8705
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
8668
8706
  phase: "cli.play_start_json_retry",
8669
8707
  ms: 0,
8670
8708
  ok: true,
@@ -8744,7 +8782,7 @@ async function startAndWaitForPlayCompletion(input) {
8744
8782
  _nullishCoalesce(input.open, () => ( false))
8745
8783
  );
8746
8784
  input.progress.phase("running");
8747
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
8785
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
8748
8786
  phase: "cli.play_start_admitted",
8749
8787
  ms: Date.now() - startedAt,
8750
8788
  ok: true,
@@ -8762,7 +8800,7 @@ async function startAndWaitForPlayCompletion(input) {
8762
8800
  startedAt,
8763
8801
  waitTimeoutMs: input.waitTimeoutMs
8764
8802
  });
8765
- const initialStatus = _chunkJRHMPZJXjs.normalizePlayStatus.call(void 0, initialTerminal);
8803
+ const initialStatus = _chunk7VQKU6MSjs.normalizePlayStatus.call(void 0, initialTerminal);
8766
8804
  const status2 = await resolvePlayRunOutputStatus({
8767
8805
  client: input.client,
8768
8806
  status: initialStatus,
@@ -8770,7 +8808,7 @@ async function startAndWaitForPlayCompletion(input) {
8770
8808
  jsonOutput: input.jsonOutput,
8771
8809
  fromDurableStatus: true
8772
8810
  });
8773
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
8811
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
8774
8812
  phase: "play_watch_terminal_status",
8775
8813
  workflowId,
8776
8814
  full: true,
@@ -8875,7 +8913,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8875
8913
  });
8876
8914
  }
8877
8915
  if (error instanceof _chunkRNSHCJMEjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
8878
- await _chunkJYNHHO3Jjs.checkPlayRunCompatibility.call(void 0,
8916
+ await _chunkF6IXWFPFjs.checkPlayRunCompatibility.call(void 0,
8879
8917
  input.client.baseUrl,
8880
8918
  input.maintenancePolicy,
8881
8919
  admissionDeadline.signal
@@ -8916,7 +8954,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8916
8954
  `[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
8917
8955
  );
8918
8956
  }
8919
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
8957
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
8920
8958
  phase: "cli.play_start_stream_retry",
8921
8959
  ms: 0,
8922
8960
  ok: true,
@@ -8937,7 +8975,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8937
8975
  `[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
8938
8976
  );
8939
8977
  }
8940
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
8978
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
8941
8979
  phase: "cli.play_start_stream_retry",
8942
8980
  ms: 0,
8943
8981
  ok: true,
@@ -8994,7 +9032,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
8994
9032
  if (launchConfirmed || !runId || runId === "pending") return;
8995
9033
  launchConfirmed = true;
8996
9034
  await _optionalChain([input, 'access', _313 => _313.onRunAdmitted, 'optionalCall', _314 => _314(runId)]);
8997
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
9035
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
8998
9036
  phase: "cli.play_start_admitted",
8999
9037
  ms: Date.now() - startedAt,
9000
9038
  ok: true,
@@ -9028,7 +9066,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9028
9066
  full: input.fullJson
9029
9067
  });
9030
9068
  } catch (error) {
9031
- if (_chunkJRHMPZJXjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9069
+ if (_chunk7VQKU6MSjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9032
9070
  return null;
9033
9071
  }
9034
9072
  throw error;
@@ -9199,7 +9237,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9199
9237
  };
9200
9238
  }
9201
9239
  if (!canonicalTerminal) {
9202
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
9240
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
9203
9241
  phase: "cli.play_start_stream_stale_terminal_ignored",
9204
9242
  ms: Date.now() - startedAt,
9205
9243
  ok: true,
@@ -9220,14 +9258,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9220
9258
  fromDurableStatus
9221
9259
  }) : canonicalTerminal;
9222
9260
  if (input.fullJson === true) {
9223
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
9261
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
9224
9262
  phase: "play_watch_terminal_status",
9225
9263
  workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
9226
9264
  full: true,
9227
9265
  source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
9228
9266
  });
9229
9267
  }
9230
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
9268
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
9231
9269
  phase: "cli.play_start_stream_terminal",
9232
9270
  ms: Date.now() - startedAt,
9233
9271
  ok: true,
@@ -9247,7 +9285,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9247
9285
  clearTimeout(timeout);
9248
9286
  }
9249
9287
  controller.abort();
9250
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
9288
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
9251
9289
  phase: "cli.play_start_stream_handoff_to_tail",
9252
9290
  ms: Date.now() - startedAt,
9253
9291
  ok: true,
@@ -9278,7 +9316,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9278
9316
  if (timedOut) {
9279
9317
  const terminal = await fetchKnownTerminalStatus();
9280
9318
  if (terminal) {
9281
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
9319
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
9282
9320
  phase: "cli.play_start_stream_timeout_status_reconcile",
9283
9321
  ms: Date.now() - startedAt,
9284
9322
  ok: true,
@@ -9298,7 +9336,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9298
9336
  lastPhase
9299
9337
  });
9300
9338
  }
9301
- if (lastKnownWorkflowId && (terminalWindowExpired || _chunkJRHMPZJXjs.isTransientPlayRunReadError.call(void 0, error))) {
9339
+ if (lastKnownWorkflowId && (terminalWindowExpired || _chunk7VQKU6MSjs.isTransientPlayRunReadError.call(void 0, error))) {
9302
9340
  if (timeout) {
9303
9341
  clearTimeout(timeout);
9304
9342
  }
@@ -9309,7 +9347,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9309
9347
  `
9310
9348
  );
9311
9349
  }
9312
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
9350
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
9313
9351
  phase: "cli.play_start_stream_reconnect",
9314
9352
  ms: Date.now() - startedAt,
9315
9353
  ok: true,
@@ -9336,7 +9374,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9336
9374
  });
9337
9375
  }
9338
9376
  if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
9339
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
9377
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
9340
9378
  phase: "cli.play_start_stream_transient_failure",
9341
9379
  ms: Date.now() - startedAt,
9342
9380
  ok: false,
@@ -9364,7 +9402,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9364
9402
  `[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
9365
9403
  );
9366
9404
  }
9367
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
9405
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
9368
9406
  phase: "cli.play_start_stream_reconnect",
9369
9407
  ms: Date.now() - startedAt,
9370
9408
  ok: true,
@@ -9444,7 +9482,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
9444
9482
  "logs"
9445
9483
  ]);
9446
9484
  function formatPlayLogLine(rawLine, state) {
9447
- const classified = _chunkJRHMPZJXjs.classifyLogLine.call(void 0, rawLine);
9485
+ const classified = _chunk7VQKU6MSjs.classifyLogLine.call(void 0, rawLine);
9448
9486
  const line = classified.line;
9449
9487
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
9450
9488
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _336 => _336[1]]) ? new Date(timestampMatch[1]) : null;
@@ -9459,14 +9497,14 @@ function formatPlayLogLine(rawLine, state) {
9459
9497
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
9460
9498
  const providerWait = formatProviderCapacityWaitLogLine(line);
9461
9499
  if (providerWait && !state.verbose) {
9462
- return _chunkJRHMPZJXjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9500
+ return _chunk7VQKU6MSjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9463
9501
  }
9464
9502
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
9465
9503
  if (mapProgress && !state.verbose) {
9466
- return _chunkJRHMPZJXjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9504
+ return _chunk7VQKU6MSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9467
9505
  }
9468
9506
  if (/\[worker\] picked up run\b/.test(message)) {
9469
- if (!_chunkJRHMPZJXjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9507
+ if (!_chunk7VQKU6MSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9470
9508
  return null;
9471
9509
  }
9472
9510
  if (state.emittedRunnerStarted) {
@@ -9479,7 +9517,7 @@ function formatPlayLogLine(rawLine, state) {
9479
9517
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
9480
9518
  );
9481
9519
  if (mapStart) {
9482
- if (!_chunkJRHMPZJXjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9520
+ if (!_chunk7VQKU6MSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9483
9521
  return null;
9484
9522
  }
9485
9523
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -9489,7 +9527,7 @@ function formatPlayLogLine(rawLine, state) {
9489
9527
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
9490
9528
  );
9491
9529
  if (mapDone) {
9492
- if (!_chunkJRHMPZJXjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9530
+ if (!_chunk7VQKU6MSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9493
9531
  return null;
9494
9532
  }
9495
9533
  const [, results, executed, cached] = mapDone;
@@ -9519,7 +9557,7 @@ function formatProviderCapacityWaitLogLine(line) {
9519
9557
  const record3 = readRecord(parsed);
9520
9558
  if (!record3) return null;
9521
9559
  details = record3;
9522
- } catch (e9) {
9560
+ } catch (e10) {
9523
9561
  return null;
9524
9562
  }
9525
9563
  const provider = typeof details.provider === "string" ? details.provider.trim() : "";
@@ -9539,7 +9577,7 @@ function formatMapProgressDiagnosticLogLine(line) {
9539
9577
  const record3 = readRecord(parsed);
9540
9578
  if (!record3) return null;
9541
9579
  details = record3;
9542
- } catch (e10) {
9580
+ } catch (e11) {
9543
9581
  return null;
9544
9582
  }
9545
9583
  const map = typeof details.map === "string" ? details.map.trim() : "";
@@ -9808,7 +9846,7 @@ function extractJsonObjectFromText(text) {
9808
9846
  try {
9809
9847
  const parsed = JSON.parse(suffix);
9810
9848
  return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : null;
9811
- } catch (e11) {
9849
+ } catch (e12) {
9812
9850
  let depth = 0;
9813
9851
  let inString = false;
9814
9852
  let escaped = false;
@@ -9834,7 +9872,7 @@ function extractJsonObjectFromText(text) {
9834
9872
  try {
9835
9873
  const parsed = JSON.parse(text.slice(start, index + 1));
9836
9874
  return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : null;
9837
- } catch (e12) {
9875
+ } catch (e13) {
9838
9876
  return null;
9839
9877
  }
9840
9878
  }
@@ -10789,7 +10827,7 @@ function formatRecentRunLogLines(value) {
10789
10827
  (line) => typeof line === "string"
10790
10828
  );
10791
10829
  if (tail.length === 0) return [];
10792
- const shown = tail.map((line) => _chunkJRHMPZJXjs.classifyLogLine.call(void 0, line)).filter(
10830
+ const shown = tail.map((line) => _chunk7VQKU6MSjs.classifyLogLine.call(void 0, line)).filter(
10793
10831
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
10794
10832
  ).slice(-8);
10795
10833
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11087,11 +11125,11 @@ function buildPlayCompletionTextLines(status) {
11087
11125
  }
11088
11126
  function writePlayResult(status, jsonOutput, options) {
11089
11127
  const packaged = getPlayRunPackage(status);
11090
- if (status.package) _chunkZL2ME3UTjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11128
+ if (status.package) _chunkXRLE2FPEjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11091
11129
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
11092
11130
  if (jsonOutput) {
11093
11131
  const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11094
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
11132
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
11095
11133
  hits ? { ...payload2, hits } : payload2,
11096
11134
  { json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
11097
11135
  );
@@ -11107,7 +11145,7 @@ function writePlayResult(status, jsonOutput, options) {
11107
11145
  ...buildPlayCompletionTextLines(status),
11108
11146
  ...formatRunHitsLines(hits)
11109
11147
  ];
11110
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, displayPackage, {
11148
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, displayPackage, {
11111
11149
  json: false,
11112
11150
  text: `${lines2.join("\n")}
11113
11151
  `
@@ -11158,7 +11196,7 @@ function writePlayResult(status, jsonOutput, options) {
11158
11196
  lines.push(...buildBillingRollupTextLines(status));
11159
11197
  const compact = compactPlayStatus(status);
11160
11198
  const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
11161
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
11199
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
11162
11200
  {
11163
11201
  ...payload,
11164
11202
  render: {
@@ -11382,7 +11420,7 @@ async function fetchBackingDatasetRows(input) {
11382
11420
  }
11383
11421
  offset += page.rows.length;
11384
11422
  }
11385
- const withError = _chunkZL2ME3UTjs.tableExportHasFailedRows.call(void 0,
11423
+ const withError = _chunkXRLE2FPEjs.tableExportHasFailedRows.call(void 0,
11386
11424
  sheetRows.filter(
11387
11425
  (row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
11388
11426
  )
@@ -11398,7 +11436,7 @@ async function fetchBackingDatasetRows(input) {
11398
11436
  return [
11399
11437
  withError ? {
11400
11438
  ...exported,
11401
- [_chunkZL2ME3UTjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkZL2ME3UTjs.tableExportErrorCell.call(void 0,
11439
+ [_chunkXRLE2FPEjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkXRLE2FPEjs.tableExportErrorCell.call(void 0,
11402
11440
  row
11403
11441
  )
11404
11442
  } : exported
@@ -11933,7 +11971,7 @@ function renderServerResultView(value) {
11933
11971
  function writeStartedPlayRun(input) {
11934
11972
  if (input.package && isPlayRunPackageValue(input.package)) {
11935
11973
  const run = input.package.run;
11936
- _chunkZL2ME3UTjs.recordPlayTermination.call(void 0, {
11974
+ _chunkXRLE2FPEjs.recordPlayTermination.call(void 0, {
11937
11975
  id: run.id,
11938
11976
  status: run.status,
11939
11977
  finishedAt: run.finishedAt
@@ -11946,7 +11984,7 @@ function writeStartedPlayRun(input) {
11946
11984
  dashboardUrl: input.dashboardUrl,
11947
11985
  package: input.package
11948
11986
  };
11949
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
11987
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
11950
11988
  json: true,
11951
11989
  fields: input.jsonFields
11952
11990
  });
@@ -11968,7 +12006,7 @@ function writeStartedPlayRun(input) {
11968
12006
  input.progress.writeLine(output2, process.stdout);
11969
12007
  return;
11970
12008
  }
11971
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, input.package, {
12009
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, input.package, {
11972
12010
  json: false,
11973
12011
  text: `${output2}
11974
12012
  `
@@ -12003,7 +12041,7 @@ function writeStartedPlayRun(input) {
12003
12041
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12004
12042
  ];
12005
12043
  if (input.jsonOutput) {
12006
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12044
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12007
12045
  return;
12008
12046
  }
12009
12047
  const output = lines.join("\n");
@@ -12011,7 +12049,7 @@ function writeStartedPlayRun(input) {
12011
12049
  input.progress.writeLine(output, process.stdout);
12012
12050
  return;
12013
12051
  }
12014
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
12052
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
12015
12053
  {
12016
12054
  ...payload,
12017
12055
  render: { sections: [{ title: "play run", lines }] }
@@ -12021,7 +12059,7 @@ function writeStartedPlayRun(input) {
12021
12059
  );
12022
12060
  }
12023
12061
  function parsePlayCheckOptions(args) {
12024
- const selection = _chunkJUYW6TSUjs.parseJsonFields.call(void 0, args, "check");
12062
+ const selection = _chunkXL4FFVWLjs.parseJsonFields.call(void 0, args, "check");
12025
12063
  args = selection.args;
12026
12064
  const target = args[0];
12027
12065
  if (!target || target.startsWith("-")) {
@@ -12033,7 +12071,7 @@ function parsePlayCheckOptions(args) {
12033
12071
  if (arg !== "--json" && arg !== "--full")
12034
12072
  throw new Error(`Unknown plays check option: ${arg}`);
12035
12073
  }
12036
- const jsonOutput = _chunkJUYW6TSUjs.argsWantJson.call(void 0, args);
12074
+ const jsonOutput = _chunkXL4FFVWLjs.argsWantJson.call(void 0, args);
12037
12075
  return {
12038
12076
  target,
12039
12077
  jsonOutput,
@@ -12109,7 +12147,7 @@ ${PLAY_PUBLISH_USAGE}`
12109
12147
  useLatest,
12110
12148
  expectedArtifactHash,
12111
12149
  dryRun,
12112
- jsonOutput: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args)
12150
+ jsonOutput: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args)
12113
12151
  };
12114
12152
  }
12115
12153
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12150,7 +12188,7 @@ ${PLAY_SAVE_USAGE}`);
12150
12188
  target,
12151
12189
  expectedArtifactHash,
12152
12190
  dryRun,
12153
- jsonOutput: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args)
12191
+ jsonOutput: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args)
12154
12192
  };
12155
12193
  }
12156
12194
  function printScheduledPlayCapacity(capacity) {
@@ -12361,7 +12399,7 @@ function printBundledRuntimeWarning(bundle) {
12361
12399
  async function handlePlayCheck(args) {
12362
12400
  const options = parsePlayCheckOptions(args);
12363
12401
  if (!isFileTarget(options.target)) {
12364
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
12402
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
12365
12403
  try {
12366
12404
  await assertCanonicalNamedPlayReference(client, options.target, {
12367
12405
  command: "check"
@@ -12390,7 +12428,7 @@ async function handlePlayCheck(args) {
12390
12428
  },
12391
12429
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12392
12430
  };
12393
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, result, {
12431
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, result, {
12394
12432
  json: options.jsonOutput,
12395
12433
  fields: options.jsonFields,
12396
12434
  text: renderPlayCheckOutput(result) + "\n"
@@ -12400,7 +12438,7 @@ async function handlePlayCheck(args) {
12400
12438
  const resolved = _path.resolve.call(void 0, options.target);
12401
12439
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12402
12440
  if (options.jsonOutput) {
12403
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
12441
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
12404
12442
  {
12405
12443
  kind: "play_check",
12406
12444
  checked: "named_contract",
@@ -12431,7 +12469,7 @@ async function handlePlayCheck(args) {
12431
12469
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
12432
12470
  publishCommand: _optionalChain([primary, 'optionalAccess', _478 => _478.result, 'access', _479 => _479.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
12433
12471
  });
12434
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, output, {
12472
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, output, {
12435
12473
  json: options.jsonOutput,
12436
12474
  fields: options.jsonFields,
12437
12475
  text: renderPlayCheckOutput(output) + "\n"
@@ -12499,7 +12537,7 @@ async function checkOneExportedPlay(input) {
12499
12537
  }
12500
12538
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
12501
12539
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
12502
- const client = _nullishCoalesce(input.client, () => ( new (0, _chunkTVADI7K5js.DeeplineClient)()));
12540
+ const client = _nullishCoalesce(input.client, () => ( new (0, _chunkZCYV6MZHjs.DeeplineClient)()));
12503
12541
  const integrationMode = resolveEvalIntegrationMode();
12504
12542
  const checked = await checkLocalPlayGraph({
12505
12543
  client,
@@ -12555,8 +12593,8 @@ async function handleFileBackedRun(options, hooks) {
12555
12593
  let prefetchClient;
12556
12594
  let admissionCapability;
12557
12595
  let cancelAdmissionCapability;
12558
- let cliAdmission = _chunkJYNHHO3Jjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12559
- const progress = _nullishCoalesce(_chunkN5HRBS4Kjs.getActiveCliProgress.call(void 0, ), () => ( _chunkN5HRBS4Kjs.createCliProgress.call(void 0, !options.jsonOutput)));
12596
+ let cliAdmission = _chunkF6IXWFPFjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12597
+ const progress = _nullishCoalesce(_chunkQRQBKLOMjs.getActiveCliProgress.call(void 0, ), () => ( _chunkQRQBKLOMjs.createCliProgress.call(void 0, !options.jsonOutput)));
12560
12598
  const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _488 => _488.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
12561
12599
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
12562
12600
  progress.phase("compiling play");
@@ -12573,11 +12611,11 @@ async function handleFileBackedRun(options, hooks) {
12573
12611
  return 1;
12574
12612
  }
12575
12613
  if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
12576
- const clientForPrefetch = new (0, _chunkTVADI7K5js.DeeplineClient)(playRunClientOptions(options));
12614
+ const clientForPrefetch = new (0, _chunkZCYV6MZHjs.DeeplineClient)(playRunClientOptions(options));
12577
12615
  prefetchClient = clientForPrefetch;
12578
12616
  const capabilityController = new AbortController();
12579
12617
  cancelAdmissionCapability = () => capabilityController.abort();
12580
- admissionCapability = _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
12618
+ admissionCapability = _chunkJY73USD7js.traceCliSpan.call(void 0,
12581
12619
  "cli.play_admission_capability_prefetch",
12582
12620
  { targetKind: "file" },
12583
12621
  () => clientForPrefetch.prefetchPlayRunAdmissionCapability({
@@ -12588,7 +12626,7 @@ async function handleFileBackedRun(options, hooks) {
12588
12626
  }
12589
12627
  let graph;
12590
12628
  try {
12591
- graph = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
12629
+ graph = await _chunkJY73USD7js.traceCliSpan.call(void 0,
12592
12630
  "cli.play_file_bundle_graph",
12593
12631
  { targetKind: "file" },
12594
12632
  () => collectBundledPlayGraph(
@@ -12601,7 +12639,7 @@ async function handleFileBackedRun(options, hooks) {
12601
12639
  assertPlayGraphAuthoring(graph);
12602
12640
  if (options.dryRun) {
12603
12641
  progress.complete();
12604
- const plan = _chunkRUD77W2Yjs.planLocalPlayExecution.call(void 0, graph, {
12642
+ const plan = _chunkXJZU7KO4js.planLocalPlayExecution.call(void 0, graph, {
12605
12643
  runIdFile: options.runIdFile
12606
12644
  });
12607
12645
  if (_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
@@ -12612,9 +12650,9 @@ async function handleFileBackedRun(options, hooks) {
12612
12650
  });
12613
12651
  return 0;
12614
12652
  }
12615
- client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkTVADI7K5js.DeeplineClient)(playRunClientOptions(options))));
12653
+ client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkZCYV6MZHjs.DeeplineClient)(playRunClientOptions(options))));
12616
12654
  if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
12617
- await _chunkJYNHHO3Jjs.checkPlayRunCompatibility.call(void 0,
12655
+ await _chunkF6IXWFPFjs.checkPlayRunCompatibility.call(void 0,
12618
12656
  client.baseUrl,
12619
12657
  options.maintenancePolicy
12620
12658
  );
@@ -12627,7 +12665,7 @@ async function handleFileBackedRun(options, hooks) {
12627
12665
  });
12628
12666
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
12629
12667
  if (canDeferCompilerManifest) {
12630
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
12668
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
12631
12669
  phase: "cli.play_file_compile_manifests",
12632
12670
  ms: 0,
12633
12671
  ok: true,
@@ -12636,7 +12674,7 @@ async function handleFileBackedRun(options, hooks) {
12636
12674
  reason: "validated_by_run_route"
12637
12675
  });
12638
12676
  } else {
12639
- await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
12677
+ await _chunkJY73USD7js.traceCliSpan.call(void 0,
12640
12678
  "cli.play_file_compile_manifests",
12641
12679
  { targetKind: "file", skipped: false },
12642
12680
  () => compileBundledPlayGraphManifests(client, graph)
@@ -12644,7 +12682,7 @@ async function handleFileBackedRun(options, hooks) {
12644
12682
  }
12645
12683
  progress.phase("compiled play");
12646
12684
  } catch (error) {
12647
- if (error instanceof _chunkZL2ME3UTjs.ExecutionOutputError) throw error;
12685
+ if (error instanceof _chunkXRLE2FPEjs.ExecutionOutputError) throw error;
12648
12686
  progress.fail();
12649
12687
  reportError(normalizePlayValidationError(error));
12650
12688
  return 1;
@@ -12655,13 +12693,13 @@ async function handleFileBackedRun(options, hooks) {
12655
12693
  if (bundleResult.importedPlayDependencies.length > 0) {
12656
12694
  try {
12657
12695
  renderLocalPlayExecutionPlan(
12658
- _chunkRUD77W2Yjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12696
+ _chunkXJZU7KO4js.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12659
12697
  );
12660
12698
  progress.phase("pinning imported plays");
12661
- graph = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
12699
+ graph = await _chunkJY73USD7js.traceCliSpan.call(void 0,
12662
12700
  "cli.play_file_pin_imports",
12663
12701
  { targetKind: "file" },
12664
- () => _chunkRUD77W2Yjs.pinLocalPlayImports.call(void 0, client, graph)
12702
+ () => _chunkXJZU7KO4js.pinLocalPlayImports.call(void 0, client, graph)
12665
12703
  );
12666
12704
  bundleResult = graph.root;
12667
12705
  } catch (error) {
@@ -12674,10 +12712,11 @@ async function handleFileBackedRun(options, hooks) {
12674
12712
  (file) => stageFile(file.logicalPath, file.absolutePath)
12675
12713
  );
12676
12714
  const compilerManifest = _nullishCoalesce(bundleResult.compilerManifest, () => ( null));
12677
- const fileInputBindings = _chunkRNSHCJMEjs.fileInputBindingsFromStaticPipeline.call(void 0,
12678
- _optionalChain([compilerManifest, 'optionalAccess', _490 => _490.staticPipeline])
12679
- );
12680
- const stagedFileInputs = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
12715
+ const fileInputBindings = _chunkRNSHCJMEjs.playRunFileInputBindings.call(void 0, {
12716
+ inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _490 => _490.authoringContract, 'optionalAccess', _491 => _491.inputSchema]),
12717
+ staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _492 => _492.staticPipeline])
12718
+ });
12719
+ const stagedFileInputs = await _chunkJY73USD7js.traceCliSpan.call(void 0,
12681
12720
  "cli.play_stage_inputs",
12682
12721
  {
12683
12722
  targetKind: "file",
@@ -12724,7 +12763,7 @@ async function handleFileBackedRun(options, hooks) {
12724
12763
  };
12725
12764
  if (options.watch) {
12726
12765
  progress.phase("starting run");
12727
- const finalStatus = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
12766
+ const finalStatus = await _chunkJY73USD7js.traceCliSpan.call(void 0,
12728
12767
  "cli.play_start_watch",
12729
12768
  { targetKind: "file", playName },
12730
12769
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -12738,9 +12777,9 @@ async function handleFileBackedRun(options, hooks) {
12738
12777
  waitTimeoutMs: options.waitTimeoutMs,
12739
12778
  open: options.open,
12740
12779
  progress,
12741
- onRunStarted: _optionalChain([hooks, 'optionalAccess', _491 => _491.onRunStarted]),
12742
- onSubmission: _optionalChain([hooks, 'optionalAccess', _492 => _492.onSubmission]),
12743
- onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _493 => _493.onRunAdmitted]),
12780
+ onRunStarted: _optionalChain([hooks, 'optionalAccess', _493 => _493.onRunStarted]),
12781
+ onSubmission: _optionalChain([hooks, 'optionalAccess', _494 => _494.onSubmission]),
12782
+ onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _495 => _495.onRunAdmitted]),
12744
12783
  maintenancePolicy: options.maintenancePolicy,
12745
12784
  ...!options.runIdFile || options.fullJson ? { fullJson: options.fullJson } : {},
12746
12785
  ...cliAdmission ? {
@@ -12770,8 +12809,8 @@ async function handleFileBackedRun(options, hooks) {
12770
12809
  ),
12771
12810
  options
12772
12811
  );
12773
- _optionalChain([hooks, 'optionalAccess', _494 => _494.onTerminalStatus, 'optionalCall', _495 => _495(outputStatus)]);
12774
- if (_optionalChain([hooks, 'optionalAccess', _496 => _496.writeResult])) {
12812
+ _optionalChain([hooks, 'optionalAccess', _496 => _496.onTerminalStatus, 'optionalCall', _497 => _497(outputStatus)]);
12813
+ if (_optionalChain([hooks, 'optionalAccess', _498 => _498.writeResult])) {
12775
12814
  await hooks.writeResult(client, outputStatus);
12776
12815
  return outputStatus.status === "completed" ? 0 : 1;
12777
12816
  }
@@ -12786,15 +12825,15 @@ async function handleFileBackedRun(options, hooks) {
12786
12825
  return outputStatus.status === "completed" ? 0 : 1;
12787
12826
  }
12788
12827
  progress.phase("starting run");
12789
- const started = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
12828
+ const started = await _chunkJY73USD7js.traceCliSpan.call(void 0,
12790
12829
  "cli.play_start_unwatched",
12791
12830
  { targetKind: "file", playName },
12792
- () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _497 => _497.onSubmission]) }).catch(async (error) => {
12831
+ () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _499 => _499.onSubmission]) }).catch(async (error) => {
12793
12832
  throw await normalizePlayStartError(client, error, playName);
12794
12833
  })
12795
12834
  );
12796
- await _optionalChain([hooks, 'optionalAccess', _498 => _498.onRunStarted, 'optionalCall', _499 => _499(started.workflowId)]);
12797
- await _optionalChain([hooks, 'optionalAccess', _500 => _500.onRunAdmitted, 'optionalCall', _501 => _501(started.workflowId)]);
12835
+ await _optionalChain([hooks, 'optionalAccess', _500 => _500.onRunStarted, 'optionalCall', _501 => _501(started.workflowId)]);
12836
+ await _optionalChain([hooks, 'optionalAccess', _502 => _502.onRunAdmitted, 'optionalCall', _503 => _503(started.workflowId)]);
12798
12837
  const resolvedDashboardUrl = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
12799
12838
  openPlayDashboard(
12800
12839
  resolvePlayRunUrl({
@@ -12806,7 +12845,7 @@ async function handleFileBackedRun(options, hooks) {
12806
12845
  );
12807
12846
  progress.phase("started run");
12808
12847
  progress.complete();
12809
- if (_optionalChain([hooks, 'optionalAccess', _502 => _502.writeStarted])) {
12848
+ if (_optionalChain([hooks, 'optionalAccess', _504 => _504.writeStarted])) {
12810
12849
  hooks.writeStarted(
12811
12850
  started.workflowId,
12812
12851
  _nullishCoalesce(started.status, () => ( "started")),
@@ -12841,7 +12880,7 @@ async function resolveNamedRunRevisionId(input) {
12841
12880
  if (input.selector === "latest") {
12842
12881
  const versions = await input.client.listPlayVersions(input.playName);
12843
12882
  const latest = versions[0];
12844
- if (!_optionalChain([latest, 'optionalAccess', _503 => _503._id])) {
12883
+ if (!_optionalChain([latest, 'optionalAccess', _505 => _505._id])) {
12845
12884
  throw new Error(`No saved revisions found for ${input.playName}.`);
12846
12885
  }
12847
12886
  return latest._id;
@@ -12852,9 +12891,9 @@ async function handleNamedRun(options, hooks) {
12852
12891
  if (options.target.kind !== "name") {
12853
12892
  throw new Error("Expected a named play run target.");
12854
12893
  }
12855
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)(playRunClientOptions(options));
12856
- let cliAdmission = _chunkJYNHHO3Jjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12857
- const progress = _nullishCoalesce(_chunkN5HRBS4Kjs.getActiveCliProgress.call(void 0, ), () => ( _chunkN5HRBS4Kjs.createCliProgress.call(void 0, !options.jsonOutput)));
12894
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)(playRunClientOptions(options));
12895
+ let cliAdmission = _chunkF6IXWFPFjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12896
+ const progress = _nullishCoalesce(_chunkQRQBKLOMjs.getActiveCliProgress.call(void 0, ), () => ( _chunkQRQBKLOMjs.createCliProgress.call(void 0, !options.jsonOutput)));
12858
12897
  const playName = options.target.name;
12859
12898
  const runtimeInput = options.input ? { ...options.input } : {};
12860
12899
  try {
@@ -12872,7 +12911,7 @@ async function handleNamedRun(options, hooks) {
12872
12911
  if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
12873
12912
  const capabilityController = new AbortController();
12874
12913
  cancelAdmissionCapability = () => capabilityController.abort();
12875
- admissionCapability = _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
12914
+ admissionCapability = _chunkJY73USD7js.traceCliSpan.call(void 0,
12876
12915
  "cli.play_admission_capability_prefetch",
12877
12916
  { targetKind: "name", playName },
12878
12917
  () => client.prefetchPlayRunAdmissionCapability({
@@ -12883,14 +12922,14 @@ async function handleNamedRun(options, hooks) {
12883
12922
  }
12884
12923
  const playDetail = needsPlayDefinition ? await (async () => {
12885
12924
  progress.phase("loading play definition");
12886
- return _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
12925
+ return _chunkJY73USD7js.traceCliSpan.call(void 0,
12887
12926
  "cli.play_load_definition",
12888
12927
  { targetKind: "name", playName, skipped: false },
12889
12928
  () => assertCanonicalNamedPlayReference(client, playName, {
12890
12929
  command: "run"
12891
12930
  })
12892
12931
  );
12893
- })() : (_chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
12932
+ })() : (_chunkJY73USD7js.recordCliTrace.call(void 0, {
12894
12933
  phase: "cli.play_load_definition",
12895
12934
  ms: 0,
12896
12935
  ok: true,
@@ -12899,7 +12938,7 @@ async function handleNamedRun(options, hooks) {
12899
12938
  skipped: true
12900
12939
  }), null);
12901
12940
  progress.phase("selecting revision");
12902
- const selectedRevisionId = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
12941
+ const selectedRevisionId = await _chunkJY73USD7js.traceCliSpan.call(void 0,
12903
12942
  "cli.play_select_revision",
12904
12943
  {
12905
12944
  targetKind: "name",
@@ -12924,10 +12963,10 @@ async function handleNamedRun(options, hooks) {
12924
12963
  ..._chunkRNSHCJMEjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
12925
12964
  ] : [];
12926
12965
  if (cliAdmission && fileInputBindings.length > 0) {
12927
- await _chunkJYNHHO3Jjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
12966
+ await _chunkF6IXWFPFjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
12928
12967
  cliAdmission = false;
12929
12968
  }
12930
- const stagedFileInputs = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
12969
+ const stagedFileInputs = await _chunkJY73USD7js.traceCliSpan.call(void 0,
12931
12970
  "cli.play_stage_inputs",
12932
12971
  {
12933
12972
  targetKind: "name",
@@ -12971,7 +13010,7 @@ async function handleNamedRun(options, hooks) {
12971
13010
  });
12972
13011
  if (options.watch) {
12973
13012
  progress.phase("starting run");
12974
- const finalStatus = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
13013
+ const finalStatus = await _chunkJY73USD7js.traceCliSpan.call(void 0,
12975
13014
  "cli.play_start_watch",
12976
13015
  { targetKind: "name", playName },
12977
13016
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -12985,9 +13024,9 @@ async function handleNamedRun(options, hooks) {
12985
13024
  waitTimeoutMs: options.waitTimeoutMs,
12986
13025
  open: options.open,
12987
13026
  progress,
12988
- onRunStarted: _optionalChain([hooks, 'optionalAccess', _504 => _504.onRunStarted]),
12989
- onSubmission: _optionalChain([hooks, 'optionalAccess', _505 => _505.onSubmission]),
12990
- onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _506 => _506.onRunAdmitted]),
13027
+ onRunStarted: _optionalChain([hooks, 'optionalAccess', _506 => _506.onRunStarted]),
13028
+ onSubmission: _optionalChain([hooks, 'optionalAccess', _507 => _507.onSubmission]),
13029
+ onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _508 => _508.onRunAdmitted]),
12991
13030
  maintenancePolicy: options.maintenancePolicy,
12992
13031
  ...!options.runIdFile || options.fullJson ? { fullJson: options.fullJson } : {},
12993
13032
  ...cliAdmission ? {
@@ -13020,8 +13059,8 @@ async function handleNamedRun(options, hooks) {
13020
13059
  options,
13021
13060
  _nullishCoalesce(finalStatus.revisionId, () => ( selectedRevisionId))
13022
13061
  );
13023
- _optionalChain([hooks, 'optionalAccess', _507 => _507.onTerminalStatus, 'optionalCall', _508 => _508(outputStatus)]);
13024
- if (_optionalChain([hooks, 'optionalAccess', _509 => _509.writeResult])) {
13062
+ _optionalChain([hooks, 'optionalAccess', _509 => _509.onTerminalStatus, 'optionalCall', _510 => _510(outputStatus)]);
13063
+ if (_optionalChain([hooks, 'optionalAccess', _511 => _511.writeResult])) {
13025
13064
  await hooks.writeResult(client, outputStatus);
13026
13065
  return outputStatus.status === "completed" ? 0 : 1;
13027
13066
  }
@@ -13036,17 +13075,17 @@ async function handleNamedRun(options, hooks) {
13036
13075
  return outputStatus.status === "completed" ? 0 : 1;
13037
13076
  }
13038
13077
  progress.phase("starting run");
13039
- const started = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
13078
+ const started = await _chunkJY73USD7js.traceCliSpan.call(void 0,
13040
13079
  "cli.play_start_unwatched",
13041
13080
  { targetKind: "name", playName },
13042
- () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _510 => _510.onSubmission]) }).catch(async (error) => {
13081
+ () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _512 => _512.onSubmission]) }).catch(async (error) => {
13043
13082
  throw await normalizePlayStartError(client, error, playName, {
13044
13083
  suggestMissingPlay: true
13045
13084
  });
13046
13085
  })
13047
13086
  );
13048
- await _optionalChain([hooks, 'optionalAccess', _511 => _511.onRunStarted, 'optionalCall', _512 => _512(started.workflowId)]);
13049
- await _optionalChain([hooks, 'optionalAccess', _513 => _513.onRunAdmitted, 'optionalCall', _514 => _514(started.workflowId)]);
13087
+ await _optionalChain([hooks, 'optionalAccess', _513 => _513.onRunStarted, 'optionalCall', _514 => _514(started.workflowId)]);
13088
+ await _optionalChain([hooks, 'optionalAccess', _515 => _515.onRunAdmitted, 'optionalCall', _516 => _516(started.workflowId)]);
13050
13089
  const resolvedDashboardUrl = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
13051
13090
  openPlayDashboard(
13052
13091
  resolvePlayRunUrl({
@@ -13058,7 +13097,7 @@ async function handleNamedRun(options, hooks) {
13058
13097
  );
13059
13098
  progress.phase("started run");
13060
13099
  progress.complete();
13061
- if (_optionalChain([hooks, 'optionalAccess', _515 => _515.writeStarted])) {
13100
+ if (_optionalChain([hooks, 'optionalAccess', _517 => _517.writeStarted])) {
13062
13101
  hooks.writeStarted(
13063
13102
  started.workflowId,
13064
13103
  _nullishCoalesce(started.status, () => ( "started")),
@@ -13091,12 +13130,12 @@ async function writePlayRunReceipt(client, status, output) {
13091
13130
  const compact = compactPlayStatus(status);
13092
13131
  const errors = Array.isArray(compact.errors) ? compact.errors : [];
13093
13132
  const error = status.status === "failed" ? _nullishCoalesce(errors[0], () => ( {
13094
- message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access', _516 => _516.progress, 'optionalAccess', _517 => _517.error]))), () => ( "Play failed. Inspect the run for details."))
13133
+ message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access', _518 => _518.progress, 'optionalAccess', _519 => _519.error]))), () => ( "Play failed. Inspect the run for details."))
13095
13134
  })) : null;
13096
13135
  const next = { status: `deepline runs get ${status.runId}` };
13097
- const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _518 => _518.exec, 'call', _519 => _519(status.runId), 'optionalAccess', _520 => _520[1]]), () => ( extractRunPlayName(status))), () => ( null));
13136
+ const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _520 => _520.exec, 'call', _521 => _521(status.runId), 'optionalAccess', _522 => _522[1]]), () => ( extractRunPlayName(status))), () => ( null));
13098
13137
  if (!terminal) {
13099
- _chunkZL2ME3UTjs.writeExecutionOutput.call(void 0,
13138
+ _chunkXRLE2FPEjs.writeExecutionOutput.call(void 0,
13100
13139
  {
13101
13140
  id: status.runId,
13102
13141
  status: status.status,
@@ -13160,11 +13199,11 @@ async function writePlayRunReceipt(client, status, output) {
13160
13199
  Object.entries(handle).filter(([key]) => source !== "result" || key !== "_metadata").map(([key, child]) => [key, materialize(child, `${source}.${key}`)])
13161
13200
  );
13162
13201
  };
13163
- const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call', _521 => _521(status), 'optionalAccess', _522 => _522.outputs]));
13202
+ const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call', _523 => _523(status), 'optionalAccess', _524 => _524.outputs]));
13164
13203
  const returned = status.result !== void 0 ? status.result : packagedOutputs ? Object.fromEntries(
13165
13204
  Object.entries(packagedOutputs).map(([key, value]) => [
13166
13205
  key,
13167
- _optionalChain([readRecord, 'call', _523 => _523(value), 'optionalAccess', _524 => _524.kind]) === "value" ? _optionalChain([readRecord, 'call', _525 => _525(value), 'optionalAccess', _526 => _526.value]) : value
13206
+ _optionalChain([readRecord, 'call', _525 => _525(value), 'optionalAccess', _526 => _526.kind]) === "value" ? _optionalChain([readRecord, 'call', _527 => _527(value), 'optionalAccess', _528 => _528.value]) : value
13168
13207
  ])
13169
13208
  ) : null;
13170
13209
  let data = materialize(returned);
@@ -13176,10 +13215,10 @@ async function writePlayRunReceipt(client, status, output) {
13176
13215
  };
13177
13216
  }
13178
13217
  const byRows = new Map(collections.map((c) => [c.rows, c]));
13179
- const allCollections = _chunkZL2ME3UTjs.outputCollections.call(void 0, data).map(
13218
+ const allCollections = _chunkXRLE2FPEjs.outputCollections.call(void 0, data).map(
13180
13219
  (collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
13181
13220
  );
13182
- _chunkZL2ME3UTjs.writeExecutionOutput.call(void 0,
13221
+ _chunkXRLE2FPEjs.writeExecutionOutput.call(void 0,
13183
13222
  {
13184
13223
  id: status.runId,
13185
13224
  status: status.status,
@@ -13187,7 +13226,7 @@ async function writePlayRunReceipt(client, status, output) {
13187
13226
  ...allCollections.length ? { collections: allCollections } : {},
13188
13227
  complete: allCollections.every((c) => c.complete === true) ? true : allCollections.some((c) => c.complete === false) ? false : null,
13189
13228
  error,
13190
- credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _527 => _527.billing, 'optionalAccess', _528 => _528.totalCredits]))), () => ( null)),
13229
+ credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _529 => _529.billing, 'optionalAccess', _530 => _530.totalCredits]))), () => ( null)),
13191
13230
  ...playName ? { page: _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
13192
13231
  warnings: [
13193
13232
  ...buildRunWarnings(status, null),
@@ -13200,7 +13239,7 @@ async function writePlayRunReceipt(client, status, output) {
13200
13239
  }
13201
13240
  var TOOL_EXECUTION_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
13202
13241
  async function handlePlayRun(args, hooks) {
13203
- const parsedOptions = Array.isArray(args) ? _chunkFXKKFM7Jjs.parsePlayRunOptions.call(void 0, args) : args;
13242
+ const parsedOptions = Array.isArray(args) ? _chunk4ZIIS6KGjs.parsePlayRunOptions.call(void 0, args) : args;
13204
13243
  const options = parsedOptions.runIdFile ? {
13205
13244
  ...parsedOptions,
13206
13245
  runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
@@ -13217,7 +13256,7 @@ async function handlePlayRun(args, hooks) {
13217
13256
  JSON.stringify({
13218
13257
  version: 1,
13219
13258
  admissionState: "submitted_unknown",
13220
- baseUrl: new (0, _chunkTVADI7K5js.DeeplineClient)().baseUrl,
13259
+ baseUrl: new (0, _chunkZCYV6MZHjs.DeeplineClient)().baseUrl,
13221
13260
  ...intent
13222
13261
  })
13223
13262
  );
@@ -13229,7 +13268,7 @@ async function handlePlayRun(args, hooks) {
13229
13268
  } finally {
13230
13269
  await removeRunIdTempFile(tempPath);
13231
13270
  }
13232
- await _optionalChain([hooks, 'optionalAccess', _529 => _529.onSubmission, 'optionalCall', _530 => _530(intent)]);
13271
+ await _optionalChain([hooks, 'optionalAccess', _531 => _531.onSubmission, 'optionalCall', _532 => _532(intent)]);
13233
13272
  },
13234
13273
  onRunStarted: async (runId) => {
13235
13274
  try {
@@ -13240,7 +13279,7 @@ async function handlePlayRun(args, hooks) {
13240
13279
  { cause: error }
13241
13280
  );
13242
13281
  }
13243
- await _optionalChain([hooks, 'optionalAccess', _531 => _531.onRunStarted, 'optionalCall', _532 => _532(runId)]);
13282
+ await _optionalChain([hooks, 'optionalAccess', _533 => _533.onRunStarted, 'optionalCall', _534 => _534(runId)]);
13244
13283
  },
13245
13284
  onRunAdmitted: async (runId) => {
13246
13285
  try {
@@ -13253,7 +13292,7 @@ async function handlePlayRun(args, hooks) {
13253
13292
  { cause: error }
13254
13293
  );
13255
13294
  }
13256
- await _optionalChain([hooks, 'optionalAccess', _533 => _533.onRunAdmitted, 'optionalCall', _534 => _534(runId)]);
13295
+ await _optionalChain([hooks, 'optionalAccess', _535 => _535.onRunAdmitted, 'optionalCall', _536 => _536(runId)]);
13257
13296
  }
13258
13297
  } : hooks;
13259
13298
  if (options.target.kind === "file") {
@@ -13262,7 +13301,7 @@ async function handlePlayRun(args, hooks) {
13262
13301
  }
13263
13302
  const resolved = _path.resolve.call(void 0, options.target.path);
13264
13303
  const message = `File not found: ${resolved}`;
13265
- if (_optionalChain([runHooks, 'optionalAccess', _535 => _535.writeDryRunError])) {
13304
+ if (_optionalChain([runHooks, 'optionalAccess', _537 => _537.writeDryRunError])) {
13266
13305
  runHooks.writeDryRunError(message);
13267
13306
  return 1;
13268
13307
  }
@@ -13280,7 +13319,7 @@ async function handlePlayRun(args, hooks) {
13280
13319
  console.error(` ${_path.join.call(void 0, dir, s)}`);
13281
13320
  }
13282
13321
  }
13283
- } catch (e13) {
13322
+ } catch (e14) {
13284
13323
  }
13285
13324
  }
13286
13325
  return 1;
@@ -13337,10 +13376,10 @@ function renderRunOverviewText(overview, extras = {}) {
13337
13376
  ...buildRunActivityTextLines(run),
13338
13377
  ...buildRunStatusEvidenceTextLines(overview)
13339
13378
  ];
13340
- if (_optionalChain([overview, 'access', _536 => _536.runStatus, 'optionalAccess', _537 => _537.available]) === false)
13379
+ if (_optionalChain([overview, 'access', _538 => _538.runStatus, 'optionalAccess', _539 => _539.available]) === false)
13341
13380
  lines.push(` call progress: unavailable (${overview.runStatus.reason})`);
13342
- const work = readRecord(_optionalChain([readRecord, 'call', _538 => _538(run), 'optionalAccess', _539 => _539.work]));
13343
- if (work && !_optionalChain([overview, 'access', _540 => _540.runStatus, 'optionalAccess', _541 => _541.available]))
13381
+ const work = readRecord(_optionalChain([readRecord, 'call', _540 => _540(run), 'optionalAccess', _541 => _541.work]));
13382
+ if (work && !_optionalChain([overview, 'access', _542 => _542.runStatus, 'optionalAccess', _543 => _543.available]))
13344
13383
  lines.push(
13345
13384
  ` calls (${_nullishCoalesce(work.scope, () => ( "attempt scope unknown"))}): ${formatObservedRunCounter({ value: work.logicalCalls, confirmed: true })} logical, ${formatObservedRunCounter({ value: work.providerRequests, confirmed: true })} provider requests`
13346
13385
  );
@@ -13391,7 +13430,7 @@ function renderRunOverviewText(overview, extras = {}) {
13391
13430
  ...overview.failedLogs.warning ? [`warning: ${overview.failedLogs.warning}`] : [],
13392
13431
  ...overview.failedLogs.logsTruncated ? ["Older log bodies were not retained."] : [],
13393
13432
  ...overview.failedLogs.entries,
13394
- ..._optionalChain([overview, 'access', _542 => _542.failedLogs, 'access', _543 => _543.next, 'optionalAccess', _544 => _544.logs]) ? [`More logs: ${overview.failedLogs.next.logs}`] : []
13433
+ ..._optionalChain([overview, 'access', _544 => _544.failedLogs, 'access', _545 => _545.next, 'optionalAccess', _546 => _546.logs]) ? [`More logs: ${overview.failedLogs.next.logs}`] : []
13395
13434
  ]
13396
13435
  });
13397
13436
  sections.push({
@@ -13451,7 +13490,7 @@ function renderRunOverviewText(overview, extras = {}) {
13451
13490
  );
13452
13491
  return `${lines.join("\n")}
13453
13492
 
13454
- ${_chunkJUYW6TSUjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13493
+ ${_chunkXL4FFVWLjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13455
13494
  }
13456
13495
  var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
13457
13496
  async function withRunReadTiming(command, stage, enabled, action) {
@@ -13462,7 +13501,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
13462
13501
  const progressTimer = setInterval(() => {
13463
13502
  console.error(`[${command}] ${stage} still running after ${elapsedMs()}ms`);
13464
13503
  }, RUN_READ_TIMING_PROGRESS_INTERVAL_MS);
13465
- _optionalChain([progressTimer, 'access', _545 => _545.unref, 'optionalCall', _546 => _546()]);
13504
+ _optionalChain([progressTimer, 'access', _547 => _547.unref, 'optionalCall', _548 => _548()]);
13466
13505
  try {
13467
13506
  const result = await action();
13468
13507
  console.error(`[${command}] ${stage} completed in ${elapsedMs()}ms`);
@@ -13475,7 +13514,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
13475
13514
  }
13476
13515
  }
13477
13516
  async function handleRunGet(args) {
13478
- const selection = _chunkJUYW6TSUjs.parseJsonFields.call(void 0,
13517
+ const selection = _chunkXL4FFVWLjs.parseJsonFields.call(void 0,
13479
13518
  args,
13480
13519
  args.includes("--config") ? "config" : "get"
13481
13520
  );
@@ -13488,7 +13527,7 @@ async function handleRunGet(args) {
13488
13527
  console.error(error instanceof Error ? error.message : usage2);
13489
13528
  return 1;
13490
13529
  }
13491
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
13530
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
13492
13531
  const timing = args.includes("--timing");
13493
13532
  const web = args.includes("--web");
13494
13533
  if (web || args.includes("--web-url")) {
@@ -13506,8 +13545,8 @@ async function handleRunGet(args) {
13506
13545
  const dashboardUrl2 = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
13507
13546
  const runUrl2 = _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
13508
13547
  if (web) {
13509
- const opened = _chunkJUYW6TSUjs.openInBrowser.call(void 0, runUrl2);
13510
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
13548
+ const opened = _chunkXL4FFVWLjs.openInBrowser.call(void 0, runUrl2);
13549
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
13511
13550
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
13512
13551
  {
13513
13552
  json: args.includes("--json"),
@@ -13518,7 +13557,7 @@ async function handleRunGet(args) {
13518
13557
  );
13519
13558
  return 0;
13520
13559
  }
13521
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
13560
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
13522
13561
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
13523
13562
  { json: args.includes("--json"), text: `${runUrl2}
13524
13563
  ` }
@@ -13543,7 +13582,7 @@ async function handleRunGet(args) {
13543
13582
  "This server does not support recorded configuration reads."
13544
13583
  );
13545
13584
  }
13546
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
13585
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
13547
13586
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13548
13587
  { json: true, fields: selection.fields }
13549
13588
  );
@@ -13556,7 +13595,7 @@ async function handleRunGet(args) {
13556
13595
  timing,
13557
13596
  () => client.getRunInput(runId)
13558
13597
  );
13559
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, input, { json: true });
13598
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, input, { json: true });
13560
13599
  return 0;
13561
13600
  }
13562
13601
  const full = args.includes("--full");
@@ -13569,7 +13608,7 @@ async function handleRunGet(args) {
13569
13608
  failedLogs: args.includes("--log-failed")
13570
13609
  })
13571
13610
  );
13572
- if (status.package) _chunkZL2ME3UTjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13611
+ if (status.package) _chunkXRLE2FPEjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13573
13612
  if (!status.package) {
13574
13613
  const legacyStatus = full ? await withRunReadTiming(
13575
13614
  "runs get",
@@ -13583,8 +13622,8 @@ async function handleRunGet(args) {
13583
13622
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
13584
13623
  const legacyDashboardUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
13585
13624
  const legacyRunUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
13586
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
13587
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
13625
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
13626
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
13588
13627
  {
13589
13628
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
13590
13629
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
@@ -13595,7 +13634,7 @@ async function handleRunGet(args) {
13595
13634
  } else {
13596
13635
  writePlayResult(legacyStatus, false, { fullJson: full });
13597
13636
  if (legacyRunUrl)
13598
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
13637
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
13599
13638
  { dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
13600
13639
  { json: false, text: `run page: ${legacyRunUrl}
13601
13640
  ` }
@@ -13625,11 +13664,11 @@ async function handleRunGet(args) {
13625
13664
  )
13626
13665
  ]);
13627
13666
  const hitLines = formatRunHitsLines(hits);
13628
- const json = _chunkJUYW6TSUjs.argsWantJson.call(void 0, args);
13667
+ const json = _chunkXL4FFVWLjs.argsWantJson.call(void 0, args);
13629
13668
  const playName = resolveRunPlayName(status, runId);
13630
13669
  const dashboardUrl = playName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
13631
13670
  const runUrl = playName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
13632
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
13671
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
13633
13672
  {
13634
13673
  ...overview,
13635
13674
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -13734,9 +13773,9 @@ async function handleRunLifecycleStatus(args) {
13734
13773
  console.error(error instanceof Error ? error.message : usage2);
13735
13774
  return 1;
13736
13775
  }
13737
- const status = await new (0, _chunkTVADI7K5js.DeeplineClient)().runs.status(runId);
13738
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
13739
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, status, { json: true });
13776
+ const status = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().runs.status(runId);
13777
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
13778
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, status, { json: true });
13740
13779
  return 0;
13741
13780
  }
13742
13781
  if (!status.available) {
@@ -13779,7 +13818,7 @@ async function handleRunsRerun(args) {
13779
13818
  console.error(error instanceof Error ? error.message : usage2);
13780
13819
  return 1;
13781
13820
  }
13782
- const options = { json: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args) };
13821
+ const options = { json: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args) };
13783
13822
  for (let index = 0; index < args.length; index += 1) {
13784
13823
  if (args[index] === "--idempotency-key") {
13785
13824
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -13845,8 +13884,8 @@ ${usage2}
13845
13884
  Discover Plays: ${next.discover}
13846
13885
  Active runs: ${next.running}`
13847
13886
  );
13848
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
13849
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
13887
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
13888
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
13850
13889
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
13851
13890
  { json: true }
13852
13891
  );
@@ -13861,7 +13900,7 @@ Active runs: ${next.running}`
13861
13900
  console.error("--offset requires --play.");
13862
13901
  return 1;
13863
13902
  }
13864
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
13903
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
13865
13904
  const page = await withRunReadTiming(
13866
13905
  "runs list",
13867
13906
  "run inventory",
@@ -13896,7 +13935,7 @@ Active runs: ${next.running}`
13896
13935
  executionTime: run.executionTime,
13897
13936
  billingTotalCredits: run.billingTotalCredits,
13898
13937
  billingMaxCreditsPerRun: run.billingMaxCreditsPerRun,
13899
- playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access', _547 => _547.memo, 'optionalAccess', _548 => _548.playName]))), () => ( playName)), () => ( null)),
13938
+ playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access', _549 => _549.memo, 'optionalAccess', _550 => _550.playName]))), () => ( playName)), () => ( null)),
13900
13939
  ...nodeId ? { nodeObservation: _nullishCoalesce(run.nodeObservation, () => ( null)) } : {}
13901
13940
  }));
13902
13941
  const lines = runs.length === 0 ? [
@@ -13928,14 +13967,14 @@ Active runs: ${next.running}`
13928
13967
  return lines2.join("\n");
13929
13968
  });
13930
13969
  const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
13931
- const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkJUYW6TSUjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
13970
+ const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkXL4FFVWLjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
13932
13971
  if (page.hasMore) {
13933
13972
  lines.push("List truncated \u2014 more runs match this filter.");
13934
13973
  lines.push(
13935
13974
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
13936
13975
  );
13937
13976
  }
13938
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
13977
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
13939
13978
  {
13940
13979
  runs,
13941
13980
  count: runs.length,
@@ -13945,11 +13984,11 @@ Active runs: ${next.running}`
13945
13984
  ...page.hasMore !== void 0 ? { has_more: page.hasMore, is_truncated: page.hasMore } : {},
13946
13985
  next: {
13947
13986
  page: nextPage,
13948
- get: _optionalChain([runs, 'access', _549 => _549[0], 'optionalAccess', _550 => _550.id]) ? `deepline runs get ${runs[0].id}` : null
13987
+ get: _optionalChain([runs, 'access', _551 => _551[0], 'optionalAccess', _552 => _552.id]) ? `deepline runs get ${runs[0].id}` : null
13949
13988
  },
13950
13989
  render: { sections: [{ title: "runs", lines }] }
13951
13990
  },
13952
- { json: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args) }
13991
+ { json: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args) }
13953
13992
  );
13954
13993
  return 0;
13955
13994
  }
@@ -13979,7 +14018,7 @@ async function handleRunTail(args) {
13979
14018
  console.error("--log-level requires one of: debug, info, warn, error.");
13980
14019
  return 1;
13981
14020
  }
13982
- const parsed = _chunkJRHMPZJXjs.parseLogLevel.call(void 0, value);
14021
+ const parsed = _chunk7VQKU6MSjs.parseLogLevel.call(void 0, value);
13983
14022
  if (!parsed) {
13984
14023
  console.error(
13985
14024
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14017,9 +14056,9 @@ async function handleRunTail(args) {
14017
14056
  );
14018
14057
  return 1;
14019
14058
  }
14020
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
14059
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
14021
14060
  const jsonLines = args.includes("--jsonl");
14022
- const jsonOutput = !jsonLines && _chunkJUYW6TSUjs.argsWantJson.call(void 0, args);
14061
+ const jsonOutput = !jsonLines && _chunkXL4FFVWLjs.argsWantJson.call(void 0, args);
14023
14062
  const compact = args.includes("--compact");
14024
14063
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14025
14064
  const compactState = {
@@ -14100,7 +14139,7 @@ async function handleRunLogs(args) {
14100
14139
  ]);
14101
14140
  const cursorIndex = args.indexOf("--cursor");
14102
14141
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14103
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkJRHMPZJXjs.isRunLogsCursor.call(void 0, cursorValue));
14142
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk7VQKU6MSjs.isRunLogsCursor.call(void 0, cursorValue));
14104
14143
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14105
14144
  return handleRunEventSearch(args);
14106
14145
  }
@@ -14134,7 +14173,7 @@ async function handleRunLogs(args) {
14134
14173
  console.error("--log-level requires one of: debug, info, warn, error.");
14135
14174
  return 1;
14136
14175
  }
14137
- const parsed = _chunkJRHMPZJXjs.parseLogLevel.call(void 0, value);
14176
+ const parsed = _chunk7VQKU6MSjs.parseLogLevel.call(void 0, value);
14138
14177
  if (!parsed) {
14139
14178
  console.error(
14140
14179
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14181,12 +14220,12 @@ async function handleRunLogs(args) {
14181
14220
  );
14182
14221
  return 1;
14183
14222
  }
14184
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
14223
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
14185
14224
  if (outPath) {
14186
14225
  const result2 = await client.runs.logs(runId, { all: true });
14187
- const logs = result2.entries.filter((line) => _chunkJRHMPZJXjs.logLevelReaches.call(void 0, _chunkJRHMPZJXjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkJRHMPZJXjs.classifyLogLine.call(void 0, line).line);
14226
+ const logs = result2.entries.filter((line) => _chunk7VQKU6MSjs.logLevelReaches.call(void 0, _chunk7VQKU6MSjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk7VQKU6MSjs.classifyLogLine.call(void 0, line).line);
14188
14227
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14189
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
14228
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
14190
14229
  {
14191
14230
  runId: result2.runId,
14192
14231
  log_path: outPath,
@@ -14209,7 +14248,7 @@ async function handleRunLogs(args) {
14209
14248
  ]
14210
14249
  }
14211
14250
  },
14212
- { json: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args) }
14251
+ { json: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args) }
14213
14252
  );
14214
14253
  return 0;
14215
14254
  }
@@ -14240,7 +14279,7 @@ async function handleRunLogs(args) {
14240
14279
  }
14241
14280
  };
14242
14281
  const text = buildRunLogsText(filteredResult);
14243
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
14282
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
14244
14283
  {
14245
14284
  runId: result.runId,
14246
14285
  totalCount: result.totalCount,
@@ -14264,7 +14303,7 @@ async function handleRunLogs(args) {
14264
14303
  render: { sections: [{ title: "run logs", lines: entries }] }
14265
14304
  },
14266
14305
  {
14267
- json: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args),
14306
+ json: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args),
14268
14307
  text
14269
14308
  }
14270
14309
  );
@@ -14288,17 +14327,17 @@ function selectRunLogTailPage(result, logLevel, limit) {
14288
14327
  );
14289
14328
  }
14290
14329
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14291
- (entry) => _chunkJRHMPZJXjs.logLevelReaches.call(void 0, _chunkJRHMPZJXjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14330
+ (entry) => _chunk7VQKU6MSjs.logLevelReaches.call(void 0, _chunk7VQKU6MSjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14292
14331
  );
14293
14332
  const selected = matching.slice(-limit);
14294
14333
  const olderMatchesExist = matching.length > selected.length;
14295
14334
  return {
14296
14335
  entries: selected.map((entry) => entry.line),
14297
- firstSequence: _nullishCoalesce(_optionalChain([selected, 'access', _551 => _551[0], 'optionalAccess', _552 => _552.seq]), () => ( null)),
14298
- lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _553 => _553.at, 'call', _554 => _554(-1), 'optionalAccess', _555 => _555.seq]), () => ( null)),
14336
+ firstSequence: _nullishCoalesce(_optionalChain([selected, 'access', _553 => _553[0], 'optionalAccess', _554 => _554.seq]), () => ( null)),
14337
+ lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _555 => _555.at, 'call', _556 => _556(-1), 'optionalAccess', _557 => _557.seq]), () => ( null)),
14299
14338
  truncated: result.truncated || olderMatchesExist,
14300
14339
  hasMore: olderMatchesExist,
14301
- nextCursor: olderMatchesExist ? _chunkJRHMPZJXjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14340
+ nextCursor: olderMatchesExist ? _chunk7VQKU6MSjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14302
14341
  };
14303
14342
  }
14304
14343
  async function handleRunEventSearch(args) {
@@ -14365,7 +14404,7 @@ ${usage2}`);
14365
14404
  namespace,
14366
14405
  ...backend ? { backend } : {}
14367
14406
  } : void 0;
14368
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
14407
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
14369
14408
  const result = await client.runs.searchEvents({
14370
14409
  ...runId ? { runId } : {},
14371
14410
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14437,7 +14476,7 @@ ${renderedDetails}` : ""}`;
14437
14476
  "--limit",
14438
14477
  String(limit)
14439
14478
  ].join(" ") : null;
14440
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
14479
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
14441
14480
  {
14442
14481
  events,
14443
14482
  nextCursor: result.nextCursor,
@@ -14448,19 +14487,19 @@ ${renderedDetails}` : ""}`;
14448
14487
  render: { sections: [{ title: "runtime events", lines }] }
14449
14488
  },
14450
14489
  {
14451
- json: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args),
14490
+ json: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args),
14452
14491
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14453
14492
  }
14454
14493
  );
14455
14494
  return 0;
14456
14495
  }
14457
14496
  function buildRunLogsText(result) {
14458
- const lines = result.entries.map((line) => _chunkJRHMPZJXjs.classifyLogLine.call(void 0, line).line);
14497
+ const lines = result.entries.map((line) => _chunk7VQKU6MSjs.classifyLogLine.call(void 0, line).line);
14459
14498
  if (result.warning) {
14460
14499
  if (lines.length > 0) lines.push("");
14461
14500
  lines.push(`warning: ${result.warning}`);
14462
14501
  lines.push(
14463
- `retained logs: ${_nullishCoalesce(_optionalChain([result, 'access', _556 => _556.next, 'optionalAccess', _557 => _557.logs]), () => ( `deepline runs logs ${result.runId} --out run.log`))}`
14502
+ `retained logs: ${_nullishCoalesce(_optionalChain([result, 'access', _558 => _558.next, 'optionalAccess', _559 => _559.logs]), () => ( `deepline runs logs ${result.runId} --out run.log`))}`
14464
14503
  );
14465
14504
  }
14466
14505
  return `${lines.join("\n")}${lines.length > 0 ? "\n" : ""}`;
@@ -14489,7 +14528,7 @@ async function handleRunStop(args) {
14489
14528
  reason = args[++index];
14490
14529
  }
14491
14530
  }
14492
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
14531
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
14493
14532
  const result = await client.runs.stop(runId, { reason });
14494
14533
  const state = resolveRunStopState(result);
14495
14534
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14504,7 +14543,7 @@ async function handleRunStop(args) {
14504
14543
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14505
14544
  `inspect: deepline runs get ${runId} --full`
14506
14545
  ];
14507
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
14546
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
14508
14547
  {
14509
14548
  ...cancelling,
14510
14549
  state,
@@ -14519,7 +14558,7 @@ async function handleRunStop(args) {
14519
14558
  ]
14520
14559
  }
14521
14560
  },
14522
- { json: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args) }
14561
+ { json: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args) }
14523
14562
  );
14524
14563
  return 0;
14525
14564
  }
@@ -14536,7 +14575,7 @@ async function handleRunStop(args) {
14536
14575
  ];
14537
14576
  process.stderr.write(`${lines2.join("\n")}
14538
14577
  `);
14539
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
14578
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
14540
14579
  {
14541
14580
  ...result,
14542
14581
  render: {
@@ -14551,7 +14590,7 @@ async function handleRunStop(args) {
14551
14590
  ]
14552
14591
  }
14553
14592
  },
14554
- { json: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args) }
14593
+ { json: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args) }
14555
14594
  );
14556
14595
  return 1;
14557
14596
  }
@@ -14562,12 +14601,12 @@ async function handleRunStop(args) {
14562
14601
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14563
14602
  ] : []
14564
14603
  ];
14565
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
14604
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
14566
14605
  {
14567
14606
  ...result,
14568
14607
  render: { sections: [{ title: "run stop", lines }] }
14569
14608
  },
14570
- { json: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args) }
14609
+ { json: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args) }
14571
14610
  );
14572
14611
  return 0;
14573
14612
  }
@@ -14617,18 +14656,18 @@ async function handleRunStopAll(args) {
14617
14656
  reason = args[++index];
14618
14657
  }
14619
14658
  }
14620
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
14659
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
14621
14660
  if (dryRun) {
14622
14661
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14623
14662
  const lines2 = buildStopAllDryRunTextLines(result2);
14624
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
14663
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
14625
14664
  {
14626
14665
  ...result2,
14627
14666
  render: {
14628
14667
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14629
14668
  }
14630
14669
  },
14631
- { json: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14670
+ { json: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14632
14671
  ` }
14633
14672
  );
14634
14673
  return 0;
@@ -14641,17 +14680,17 @@ async function handleRunStopAll(args) {
14641
14680
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14642
14681
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14643
14682
  ];
14644
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
14683
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
14645
14684
  {
14646
14685
  ...result,
14647
14686
  render: { sections: [{ title: "workspace stop-all", lines }] }
14648
14687
  },
14649
- { json: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args) }
14688
+ { json: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args) }
14650
14689
  );
14651
14690
  return result.failed > 0 || result.partial ? 1 : 0;
14652
14691
  }
14653
14692
  async function handleRunExport(args) {
14654
- const selection = _chunkJUYW6TSUjs.parseJsonFields.call(void 0, args, "export");
14693
+ const selection = _chunkXL4FFVWLjs.parseJsonFields.call(void 0, args, "export");
14655
14694
  args = selection.args;
14656
14695
  const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--summary full|counts] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
14657
14696
  let runId;
@@ -14722,17 +14761,17 @@ async function handleRunExport(args) {
14722
14761
  "INVALID_ARGUMENT"
14723
14762
  );
14724
14763
  }
14725
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
14764
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
14726
14765
  let status = await client.getPlayStatus(runId, { full: true });
14727
14766
  assertRunExportStatusIdentity(status, runId);
14728
14767
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14729
- const progress = _chunkN5HRBS4Kjs.createCliProgress.call(void 0, !_chunkJUYW6TSUjs.argsWantJson.call(void 0, args));
14768
+ const progress = _chunkQRQBKLOMjs.createCliProgress.call(void 0, !_chunkXL4FFVWLjs.argsWantJson.call(void 0, args));
14730
14769
  try {
14731
14770
  await waitForPlayCompletionByWatch({
14732
14771
  client,
14733
14772
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14734
14773
  workflowId: runId,
14735
- jsonOutput: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args),
14774
+ jsonOutput: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args),
14736
14775
  emitLogs: false,
14737
14776
  waitTimeoutMs,
14738
14777
  startedAt: Date.now(),
@@ -14758,26 +14797,26 @@ async function handleRunExport(args) {
14758
14797
  format,
14759
14798
  summary
14760
14799
  });
14761
- const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _558 => _558.rowsInfo, 'access', _559 => _559.source]), () => ( datasetPath)), () => ( null));
14762
- const currentTableNotice = _optionalChain([exportResult, 'optionalAccess', _560 => _560.currentTable]) ? {
14800
+ const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _560 => _560.rowsInfo, 'access', _561 => _561.source]), () => ( datasetPath)), () => ( null));
14801
+ const currentTableNotice = _optionalChain([exportResult, 'optionalAccess', _562 => _562.currentTable]) ? {
14763
14802
  code: "CURRENT_SHARED_DATASET",
14764
14803
  message: "This export is the current shared dataset and may include writes from another run.",
14765
14804
  full_run_output_command: `deepline runs get ${status.runId} --full`
14766
14805
  } : null;
14767
14806
  const navigation = buildRunNavigation(status);
14768
- const resolved = _optionalChain([exportResult, 'optionalAccess', _561 => _561.datasetInfo]);
14807
+ const resolved = _optionalChain([exportResult, 'optionalAccess', _563 => _563.datasetInfo]);
14769
14808
  const identity = navigation.datasets.find(
14770
- (dataset) => _optionalChain([resolved, 'optionalAccess', _562 => _562.datasetId]) ? dataset.datasetId === resolved.datasetId : dataset.name === _optionalChain([resolved, 'optionalAccess', _563 => _563.tableNamespace])
14809
+ (dataset) => _optionalChain([resolved, 'optionalAccess', _564 => _564.datasetId]) ? dataset.datasetId === resolved.datasetId : dataset.name === _optionalChain([resolved, 'optionalAccess', _565 => _565.tableNamespace])
14771
14810
  );
14772
14811
  const unambiguousName = identity && !identity.exportUnavailable && navigation.datasets.filter((dataset) => dataset.name === identity.name).length === 1 ? identity.name : void 0;
14773
14812
  const exportCommand = runExportRetryCommand(
14774
14813
  status.runId,
14775
14814
  outPath,
14776
- _nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess', _564 => _564.datasetPath]))),
14815
+ _nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess', _566 => _566.datasetPath]))),
14777
14816
  { format, summary }
14778
14817
  ) + (args.includes("--allow-empty") ? " --allow-empty" : "");
14779
- const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _565 => _565.path]), () => ( null)) } : { csv_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _566 => _566.path]), () => ( null)) };
14780
- const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess', _567 => _567.rowsInfo, 'access', _568 => _568.exportedRowOutcomes]);
14818
+ const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _567 => _567.path]), () => ( null)) } : { csv_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _568 => _568.path]), () => ( null)) };
14819
+ const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess', _569 => _569.rowsInfo, 'access', _570 => _570.exportedRowOutcomes]);
14781
14820
  const rowFailures = exportedRowOutcomes && exportedRowOutcomes.failed > 0 ? {
14782
14821
  count: exportedRowOutcomes.failed,
14783
14822
  message: "Failed rows can retain values from stages that completed earlier; those values do not prove the row succeeded.",
@@ -14797,17 +14836,17 @@ async function handleRunExport(args) {
14797
14836
  ...fileLocation,
14798
14837
  format,
14799
14838
  source,
14800
- rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _569 => _569.rowsInfo, 'access', _570 => _570.totalRows]), () => ( null)),
14839
+ rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.totalRows]), () => ( null)),
14801
14840
  ...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
14802
14841
  ...rowFailures ? { rowFailures } : {},
14803
- columns: _chunkZL2ME3UTjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.columns]), () => ( []))),
14842
+ columns: _chunkXRLE2FPEjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _573 => _573.rowsInfo, 'access', _574 => _574.columns]), () => ( []))),
14804
14843
  ...currentTableNotice ? { notice: currentTableNotice } : {},
14805
14844
  ...metadataOutPath ? { metadata_path: metadataOutPath } : {},
14806
14845
  ...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
14807
14846
  };
14808
14847
  const lines = withRunNavigationLines(
14809
14848
  [
14810
- `Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _573 => _573.path]), () => ( outPath))}`,
14849
+ `Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _575 => _575.path]), () => ( outPath))}`,
14811
14850
  ...!TERMINAL_PLAY_STATUSES.has(status.status) ? [
14812
14851
  `Partial export: run is ${status.status}; more rows may be saved.`,
14813
14852
  `Export after completion: ${exportCommand} --wait`
@@ -14834,8 +14873,8 @@ async function handleRunExport(args) {
14834
14873
  "utf-8"
14835
14874
  );
14836
14875
  }
14837
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, payload, {
14838
- json: _chunkJUYW6TSUjs.argsWantJson.call(void 0, args),
14876
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, payload, {
14877
+ json: _chunkXL4FFVWLjs.argsWantJson.call(void 0, args),
14839
14878
  fields: selection.fields,
14840
14879
  text: `${lines.join("\n")}
14841
14880
  `
@@ -14869,10 +14908,10 @@ async function handlePlayGet(args) {
14869
14908
  );
14870
14909
  return 2;
14871
14910
  }
14872
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
14911
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
14873
14912
  const explicitJson = args.includes("--json");
14874
14913
  const sourceOutput = args.includes("--source");
14875
- const jsonOutput = sourceOutput ? explicitJson : _chunkJUYW6TSUjs.argsWantJson.call(void 0, args);
14914
+ const jsonOutput = sourceOutput ? explicitJson : _chunkXL4FFVWLjs.argsWantJson.call(void 0, args);
14876
14915
  const requestedRevisionFlags = [
14877
14916
  args.includes("--working"),
14878
14917
  args.includes("--live"),
@@ -14925,7 +14964,7 @@ async function handlePlayGet(args) {
14925
14964
  ...includeSource ? { source: sourceSelector } : {}
14926
14965
  });
14927
14966
  const source = detail.source;
14928
- const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess', _574 => _574.files, 'access', _575 => _575[source.entryFile]]), () => ( ""));
14967
+ const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess', _576 => _576.files, 'access', _577 => _577[source.entryFile]]), () => ( ""));
14929
14968
  let materializedFile = null;
14930
14969
  try {
14931
14970
  materializedFile = outPath && source ? materializeRemotePlaySource({ target, playName, source, outPath }) : null;
@@ -14935,7 +14974,7 @@ async function handlePlayGet(args) {
14935
14974
  }
14936
14975
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
14937
14976
  if (jsonOutput) {
14938
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, {
14977
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, {
14939
14978
  ...detail,
14940
14979
  ...materializedFile ? {
14941
14980
  message: loadedMessage,
@@ -14976,16 +15015,16 @@ async function handlePlayGet(args) {
14976
15015
  }
14977
15016
  console.log(`Play: ${formatPlayReference(detail.play)}`);
14978
15017
  console.log(
14979
- `Working version: ${_nullishCoalesce(_optionalChain([detail, 'access', _576 => _576.play, 'access', _577 => _577.workingRevision, 'optionalAccess', _578 => _578.version]), () => ( "\u2014"))}`
15018
+ `Working version: ${_nullishCoalesce(_optionalChain([detail, 'access', _578 => _578.play, 'access', _579 => _579.workingRevision, 'optionalAccess', _580 => _580.version]), () => ( "\u2014"))}`
14980
15019
  );
14981
- console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access', _579 => _579.play, 'access', _580 => _580.liveRevision, 'optionalAccess', _581 => _581.version]), () => ( "\u2014"))}`);
15020
+ console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access', _581 => _581.play, 'access', _582 => _582.liveRevision, 'optionalAccess', _583 => _583.version]), () => ( "\u2014"))}`);
14982
15021
  if (detail.play.liveRevision) {
14983
15022
  console.log(
14984
15023
  `Live max credits per run: ${liveMaxCreditsPerRun(detail.play.liveRevision.sourceCode)}`
14985
15024
  );
14986
15025
  }
14987
15026
  console.log(`Draft dirty: ${detail.play.isDraftDirty ? "yes" : "no"}`);
14988
- if (detail.play.isDraftDirty && _optionalChain([detail, 'access', _582 => _582.play, 'access', _583 => _583.liveRevision, 'optionalAccess', _584 => _584.version])) {
15027
+ if (detail.play.isDraftDirty && _optionalChain([detail, 'access', _584 => _584.play, 'access', _585 => _585.liveRevision, 'optionalAccess', _586 => _586.version])) {
14989
15028
  console.log(
14990
15029
  ` Scheduled and named runs continue to use live v${detail.play.liveRevision.version}.`
14991
15030
  );
@@ -14997,7 +15036,7 @@ async function handlePlayGet(args) {
14997
15036
  console.log(line);
14998
15037
  }
14999
15038
  console.log(`Updated: ${formatTimestamp(detail.play.updatedAt)}`);
15000
- console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access', _585 => _585.sheetSummary, 'optionalAccess', _586 => _586.stats, 'optionalAccess', _587 => _587.total]), () => ( 0))}`);
15039
+ console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access', _587 => _587.sheetSummary, 'optionalAccess', _588 => _588.stats, 'optionalAccess', _589 => _589.total]), () => ( 0))}`);
15001
15040
  if (detail.customerDbUrl) {
15002
15041
  console.log(`Customer DB: ${detail.customerDbUrl}`);
15003
15042
  }
@@ -15013,7 +15052,7 @@ async function handlePlayGet(args) {
15013
15052
  return 0;
15014
15053
  }
15015
15054
  function formatVersionLine(version) {
15016
- const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access', _588 => _588.artifactHash, 'optionalAccess', _589 => _589.slice, 'call', _590 => _590(0, 12)]), () => ( "unknown-revision"));
15055
+ const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access', _590 => _590.artifactHash, 'optionalAccess', _591 => _591.slice, 'call', _592 => _592(0, 12)]), () => ( "unknown-revision"));
15017
15056
  const state = [
15018
15057
  version.isLive ? "live" : null,
15019
15058
  version.isWorking ? "working" : null
@@ -15027,8 +15066,8 @@ async function handlePlayVersions(args) {
15027
15066
  console.error("Usage: deepline plays versions --name <name> [--json]");
15028
15067
  return 1;
15029
15068
  }
15030
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
15031
- const jsonOutput = _chunkJUYW6TSUjs.argsWantJson.call(void 0, args);
15069
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
15070
+ const jsonOutput = _chunkXL4FFVWLjs.argsWantJson.call(void 0, args);
15032
15071
  await assertCanonicalNamedPlayReference(client, playName, {
15033
15072
  command: "versions"
15034
15073
  });
@@ -15036,7 +15075,7 @@ async function handlePlayVersions(args) {
15036
15075
  parseReferencedPlayTarget(playName).playName
15037
15076
  );
15038
15077
  if (jsonOutput) {
15039
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, { versions });
15078
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, { versions });
15040
15079
  return 0;
15041
15080
  }
15042
15081
  if (versions.length === 0) {
@@ -15049,7 +15088,7 @@ async function handlePlayVersions(args) {
15049
15088
  return 0;
15050
15089
  }
15051
15090
  function formatPlayCostEstimate(estimate) {
15052
- const computeSummary = _optionalChain([estimate, 'optionalAccess', _591 => _591.compute]) ? `; ${estimate.status === "available" && estimate.source === "observed" ? "observed Deepline total includes usage-based compute; per-session ceiling" : "separate Deepline compute is usage-based; per-session ceiling"} across ${estimate.compute.pricedBackends.map(formatSandboxBackend).join(" and ")}: ${formatCredits(estimate.compute.maximumCredits)} credits (${formatSandboxBackend(estimate.compute.maximumBackend)} is highest; ${formatCredits(estimate.compute.maximumBillingSeconds)}s; total session count unbounded)` : "";
15091
+ const computeSummary = _optionalChain([estimate, 'optionalAccess', _593 => _593.compute]) ? `; ${estimate.status === "available" && estimate.source === "observed" ? "observed Deepline total includes usage-based compute; per-session ceiling" : "separate Deepline compute is usage-based; per-session ceiling"} across ${estimate.compute.pricedBackends.map(formatSandboxBackend).join(" and ")}: ${formatCredits(estimate.compute.maximumCredits)} credits (${formatSandboxBackend(estimate.compute.maximumBackend)} is highest; ${formatCredits(estimate.compute.maximumBillingSeconds)}s; total session count unbounded)` : "";
15053
15092
  if (!estimate || estimate.status === "unavailable") {
15054
15093
  return `unavailable${estimate ? `: ${estimate.message}${computeSummary}` : ""}`;
15055
15094
  }
@@ -15079,8 +15118,8 @@ async function handlePlayCost(args) {
15079
15118
  console.error("Usage: deepline plays cost <play> [--json]");
15080
15119
  return 2;
15081
15120
  }
15082
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().getPlayCostEstimate(name);
15083
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15121
+ const result = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().getPlayCostEstimate(name);
15122
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15084
15123
  else
15085
15124
  console.log(
15086
15125
  `${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
@@ -15088,11 +15127,11 @@ async function handlePlayCost(args) {
15088
15127
  return 0;
15089
15128
  }
15090
15129
  async function handlePlayList(args) {
15091
- const jsonOutput = _chunkJUYW6TSUjs.argsWantJson.call(void 0, args);
15130
+ const jsonOutput = _chunkXL4FFVWLjs.argsWantJson.call(void 0, args);
15092
15131
  const showCost = args.includes("--show-cost");
15093
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
15132
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
15094
15133
  const categoriesIndex = args.indexOf("--categories");
15095
- const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _592 => _592[categoriesIndex + 1], 'optionalAccess', _593 => _593.trim, 'call', _594 => _594()]) : void 0;
15134
+ const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _594 => _594[categoriesIndex + 1], 'optionalAccess', _595 => _595.trim, 'call', _596 => _596()]) : void 0;
15096
15135
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
15097
15136
  if (args.includes("--tag") && tags.length === 0) {
15098
15137
  console.error(
@@ -15113,7 +15152,7 @@ async function handlePlayList(args) {
15113
15152
  const cursorIndex = args.indexOf("--cursor");
15114
15153
  const limit = limitIndex >= 0 ? Number(args[limitIndex + 1]) : void 0;
15115
15154
  const cursor = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
15116
- if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess', _595 => _595.trim, 'call', _596 => _596()])) {
15155
+ if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess', _597 => _597.trim, 'call', _598 => _598()])) {
15117
15156
  console.error("Pass a positive --limit and a non-empty --cursor.");
15118
15157
  return 2;
15119
15158
  }
@@ -15154,7 +15193,7 @@ async function handlePlayList(args) {
15154
15193
  if (play.inputSchema || play.hasInputSchema) {
15155
15194
  lines.push(" inputSchema: yes");
15156
15195
  }
15157
- if (_optionalChain([play, 'access', _597 => _597.triggerStatus, 'optionalAccess', _598 => _598.cron])) {
15196
+ if (_optionalChain([play, 'access', _599 => _599.triggerStatus, 'optionalAccess', _600 => _600.cron])) {
15158
15197
  lines.push(
15159
15198
  ` scheduled execution: ${cronExecutionLabel(play.triggerStatus.cron)}`
15160
15199
  );
@@ -15174,12 +15213,12 @@ async function handlePlayList(args) {
15174
15213
  } else {
15175
15214
  lines.push(" scheduled execution: not configured");
15176
15215
  }
15177
- if (_optionalChain([play, 'access', _599 => _599.triggerStatus, 'optionalAccess', _600 => _600.webhook])) {
15216
+ if (_optionalChain([play, 'access', _601 => _601.triggerStatus, 'optionalAccess', _602 => _602.webhook])) {
15178
15217
  lines.push(` webhook: ${play.triggerStatus.webhook}`);
15179
15218
  }
15180
15219
  if (showCost) {
15181
15220
  lines.push(
15182
- ` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access', _601 => _601.observedCost, 'optionalAccess', _602 => _602.displayText]), () => ( formatPlayCostEstimate(play.costEstimate)))}`
15221
+ ` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access', _603 => _603.observedCost, 'optionalAccess', _604 => _604.displayText]), () => ( formatPlayCostEstimate(play.costEstimate)))}`
15183
15222
  );
15184
15223
  }
15185
15224
  lines.push(` run: deepline run ${reference}`);
@@ -15188,7 +15227,7 @@ async function handlePlayList(args) {
15188
15227
  lines.push("List truncated \u2014 more plays are available.");
15189
15228
  lines.push(`Next page: ${nextPage}`);
15190
15229
  }
15191
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
15230
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
15192
15231
  {
15193
15232
  plays,
15194
15233
  count: plays.length,
@@ -15205,8 +15244,8 @@ async function handlePlayList(args) {
15205
15244
  return 0;
15206
15245
  }
15207
15246
  async function handlePlayPin(args, pinned) {
15208
- const target = _optionalChain([args, 'access', _603 => _603.find, 'call', _604 => _604((arg) => !arg.startsWith("-")), 'optionalAccess', _605 => _605.trim, 'call', _606 => _606()]);
15209
- const jsonOutput = _chunkJUYW6TSUjs.argsWantJson.call(void 0, args);
15247
+ const target = _optionalChain([args, 'access', _605 => _605.find, 'call', _606 => _606((arg) => !arg.startsWith("-")), 'optionalAccess', _607 => _607.trim, 'call', _608 => _608()]);
15248
+ const jsonOutput = _chunkXL4FFVWLjs.argsWantJson.call(void 0, args);
15210
15249
  const dryRun = args.includes("--dry-run");
15211
15250
  if (!target) {
15212
15251
  console.error(
@@ -15224,11 +15263,11 @@ async function handlePlayPin(args, pinned) {
15224
15263
  const name = parsedTarget.playName;
15225
15264
  const plan = { name, pinned, dryRun };
15226
15265
  if (dryRun) {
15227
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, plan);
15266
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, plan);
15228
15267
  return 0;
15229
15268
  }
15230
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().setPlayPinned(name, pinned);
15231
- if (jsonOutput) _chunkJUYW6TSUjs.printCompactJson.call(void 0, result);
15269
+ const result = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().setPlayPinned(name, pinned);
15270
+ if (jsonOutput) _chunkXL4FFVWLjs.printCompactJson.call(void 0, result);
15232
15271
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15233
15272
  return 0;
15234
15273
  }
@@ -15276,7 +15315,7 @@ function printPlayDescription(play) {
15276
15315
  console.log(` ${line}`);
15277
15316
  }
15278
15317
  }
15279
- if (_optionalChain([play, 'access', _607 => _607.toolCategories, 'optionalAccess', _608 => _608.length])) {
15318
+ if (_optionalChain([play, 'access', _609 => _609.toolCategories, 'optionalAccess', _610 => _610.length])) {
15280
15319
  console.log(` Tool categories: ${play.toolCategories.join(", ")}`);
15281
15320
  }
15282
15321
  if (play.aliases.length > 0) {
@@ -15321,7 +15360,7 @@ function printPlayDescription(play) {
15321
15360
  const runtimeLimit = formatPlayRuntimeLimit(play.runtimeLimit);
15322
15361
  if (runtimeLimit) {
15323
15362
  console.log(
15324
- ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _609 => _609.runtimeLimit, 'optionalAccess', _610 => _610.source]), () => ( "live"))})`
15363
+ ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _611 => _611.runtimeLimit, 'optionalAccess', _612 => _612.source]), () => ( "live"))})`
15325
15364
  );
15326
15365
  }
15327
15366
  printScheduledPlayCapacity(play.activeScheduledPlays);
@@ -15349,17 +15388,17 @@ function formatPlayGrepMatches(matches) {
15349
15388
  return matches.map((match) => `${match.field}: ${match.terms.join(", ")}`).join("; ");
15350
15389
  }
15351
15390
  async function handlePlayGrep(args) {
15352
- const query = _optionalChain([args, 'access', _611 => _611[0], 'optionalAccess', _612 => _612.trim, 'call', _613 => _613()]);
15391
+ const query = _optionalChain([args, 'access', _613 => _613[0], 'optionalAccess', _614 => _614.trim, 'call', _615 => _615()]);
15353
15392
  if (!query) {
15354
15393
  console.error("Usage: deepline plays grep <query> [--json]");
15355
15394
  return 1;
15356
15395
  }
15357
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
15396
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
15358
15397
  const results = (await client.listPlays({ grep: query })).map(
15359
15398
  summarizePlayGrepResult
15360
15399
  );
15361
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
15362
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, {
15400
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
15401
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, {
15363
15402
  plays: results,
15364
15403
  count: results.length,
15365
15404
  query,
@@ -15373,7 +15412,7 @@ async function handlePlayGrep(args) {
15373
15412
  `
15374
15413
  );
15375
15414
  for (const result of results) {
15376
- console.log(_optionalChain([result, 'access', _614 => _614.displayName, 'optionalAccess', _615 => _615.trim, 'call', _616 => _616()]) || result.name);
15415
+ console.log(_optionalChain([result, 'access', _616 => _616.displayName, 'optionalAccess', _617 => _617.trim, 'call', _618 => _618()]) || result.name);
15377
15416
  const matches = formatPlayGrepMatches(result.matches);
15378
15417
  if (matches) console.log(` Matched: ${matches}`);
15379
15418
  console.log(` Describe: ${result.describe}`);
@@ -15382,7 +15421,7 @@ async function handlePlayGrep(args) {
15382
15421
  return 0;
15383
15422
  }
15384
15423
  async function handlePlayDescribe(args) {
15385
- const selection = _chunkJUYW6TSUjs.parseJsonFields.call(void 0, args, "describe");
15424
+ const selection = _chunkXL4FFVWLjs.parseJsonFields.call(void 0, args, "describe");
15386
15425
  args = selection.args;
15387
15426
  const playName = args[0];
15388
15427
  if (!playName) {
@@ -15408,7 +15447,7 @@ async function handlePlayDescribe(args) {
15408
15447
  _fs.readFileSync.call(void 0, _path.resolve.call(void 0, playName), "utf-8"),
15409
15448
  playName
15410
15449
  );
15411
- } catch (e14) {
15450
+ } catch (e15) {
15412
15451
  return null;
15413
15452
  }
15414
15453
  })() : null;
@@ -15416,8 +15455,8 @@ async function handlePlayDescribe(args) {
15416
15455
  `deepline plays check ${playName}`,
15417
15456
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15418
15457
  ];
15419
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
15420
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, {
15458
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
15459
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, {
15421
15460
  ok: false,
15422
15461
  error: { message },
15423
15462
  next
@@ -15431,7 +15470,7 @@ async function handlePlayDescribe(args) {
15431
15470
  }
15432
15471
  return 2;
15433
15472
  }
15434
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
15473
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
15435
15474
  await assertCanonicalNamedPlayReference(client, playName, {
15436
15475
  command: "describe"
15437
15476
  });
@@ -15441,9 +15480,9 @@ async function handlePlayDescribe(args) {
15441
15480
  compact: args.includes("--compact")
15442
15481
  }
15443
15482
  );
15444
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
15445
- if (selection.fields) _chunkJUYW6TSUjs.printJson.call(void 0, play, selection.fields);
15446
- else _chunkJUYW6TSUjs.printCompactJson.call(void 0, play);
15483
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
15484
+ if (selection.fields) _chunkXL4FFVWLjs.printJson.call(void 0, play, selection.fields);
15485
+ else _chunkXL4FFVWLjs.printCompactJson.call(void 0, play);
15447
15486
  return 0;
15448
15487
  }
15449
15488
  printPlayDescription(play);
@@ -15465,7 +15504,7 @@ async function handlePlaySave(args) {
15465
15504
  }
15466
15505
  let graph;
15467
15506
  try {
15468
- graph = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
15507
+ graph = await _chunkJY73USD7js.traceCliSpan.call(void 0,
15469
15508
  "cli.play_save_bundle_graph",
15470
15509
  { targetKind: "file" },
15471
15510
  () => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
@@ -15487,7 +15526,7 @@ async function handlePlaySave(args) {
15487
15526
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15488
15527
  };
15489
15528
  if (options.jsonOutput) {
15490
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, result);
15529
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, result);
15491
15530
  } else {
15492
15531
  console.error(result.message);
15493
15532
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15509,7 +15548,7 @@ async function handlePlaySave(args) {
15509
15548
  };
15510
15549
  if (options.dryRun) {
15511
15550
  if (options.jsonOutput) {
15512
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, dryRun);
15551
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, dryRun);
15513
15552
  } else {
15514
15553
  console.log(`Dry run: ${playName}`);
15515
15554
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15518,14 +15557,14 @@ async function handlePlaySave(args) {
15518
15557
  }
15519
15558
  return 0;
15520
15559
  }
15521
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
15560
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
15522
15561
  try {
15523
- await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
15562
+ await _chunkJY73USD7js.traceCliSpan.call(void 0,
15524
15563
  "cli.play_save_compile_manifests",
15525
15564
  { targetKind: "file", nodeCount: graph.nodes.size },
15526
15565
  () => compileBundledPlayGraphManifests(client, graph)
15527
15566
  );
15528
- const saved = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
15567
+ const saved = await _chunkJY73USD7js.traceCliSpan.call(void 0,
15529
15568
  "cli.play_save_register_draft",
15530
15569
  { targetKind: "file", playName, artifactHash },
15531
15570
  () => client.registerPlayArtifact({
@@ -15554,7 +15593,7 @@ async function handlePlaySave(args) {
15554
15593
  }
15555
15594
  };
15556
15595
  if (options.jsonOutput) {
15557
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, result);
15596
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, result);
15558
15597
  } else {
15559
15598
  console.log(
15560
15599
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15580,7 +15619,7 @@ async function handlePlayPublish(args) {
15580
15619
  }
15581
15620
  const { target: playName, useLatest } = options;
15582
15621
  let revisionId = options.revisionId;
15583
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
15622
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
15584
15623
  if (isFileTarget(playName)) {
15585
15624
  if (revisionId || useLatest) {
15586
15625
  console.error(
@@ -15590,7 +15629,7 @@ async function handlePlayPublish(args) {
15590
15629
  }
15591
15630
  let graph;
15592
15631
  try {
15593
- graph = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
15632
+ graph = await _chunkJY73USD7js.traceCliSpan.call(void 0,
15594
15633
  "cli.play_publish_bundle_graph",
15595
15634
  { targetKind: "file" },
15596
15635
  () => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
@@ -15612,7 +15651,7 @@ async function handlePlayPublish(args) {
15612
15651
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15613
15652
  };
15614
15653
  if (options.jsonOutput) {
15615
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, result3);
15654
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, result3);
15616
15655
  } else {
15617
15656
  console.error(result3.message);
15618
15657
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15635,7 +15674,7 @@ async function handlePlayPublish(args) {
15635
15674
  };
15636
15675
  if (options.dryRun) {
15637
15676
  if (options.jsonOutput) {
15638
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, dryRun);
15677
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, dryRun);
15639
15678
  } else {
15640
15679
  console.log(`Dry run: ${rootPlayName}`);
15641
15680
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15654,12 +15693,12 @@ async function handlePlayPublish(args) {
15654
15693
  }
15655
15694
  }
15656
15695
  try {
15657
- await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
15696
+ await _chunkJY73USD7js.traceCliSpan.call(void 0,
15658
15697
  "cli.play_publish_compile_manifests",
15659
15698
  { targetKind: "file", nodeCount: graph.nodes.size },
15660
15699
  () => compileBundledPlayGraphManifests(client, graph)
15661
15700
  );
15662
- await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
15701
+ await _chunkJY73USD7js.traceCliSpan.call(void 0,
15663
15702
  "cli.play_publish_imports",
15664
15703
  { targetKind: "file", nodeCount: graph.nodes.size },
15665
15704
  () => publishImportedPlayDependencies(client, graph)
@@ -15668,7 +15707,7 @@ async function handlePlayPublish(args) {
15668
15707
  console.error(error instanceof Error ? error.message : String(error));
15669
15708
  return 1;
15670
15709
  }
15671
- const published = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
15710
+ const published = await _chunkJY73USD7js.traceCliSpan.call(void 0,
15672
15711
  "cli.play_publish_register_root",
15673
15712
  {
15674
15713
  targetKind: "file",
@@ -15693,17 +15732,17 @@ async function handlePlayPublish(args) {
15693
15732
  artifactHash,
15694
15733
  liveVersion: _nullishCoalesce(published.version, () => ( null)),
15695
15734
  revisionId: _nullishCoalesce(published.revisionId, () => ( null)),
15696
- previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _617 => _617.version]), () => ( null)),
15697
- previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _618 => _618.artifactHash]), () => ( null)),
15735
+ previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _619 => _619.version]), () => ( null)),
15736
+ previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _620 => _620.artifactHash]), () => ( null)),
15698
15737
  sourceBytes: {
15699
- before: _optionalChain([previousLive, 'optionalAccess', _619 => _619.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15738
+ before: _optionalChain([previousLive, 'optionalAccess', _621 => _621.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15700
15739
  after: Buffer.byteLength(graph.root.sourceCode, "utf8")
15701
15740
  },
15702
15741
  triggerMetadata: _nullishCoalesce(published.triggerMetadata, () => ( null)),
15703
15742
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15704
15743
  };
15705
15744
  if (options.jsonOutput) {
15706
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, result2);
15745
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, result2);
15707
15746
  } else {
15708
15747
  printPublishReceipt({
15709
15748
  name: rootPlayName,
@@ -15734,14 +15773,14 @@ async function handlePlayPublish(args) {
15734
15773
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15735
15774
  latest: useLatest
15736
15775
  };
15737
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, result2);
15776
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, result2);
15738
15777
  return 0;
15739
15778
  }
15740
15779
  const resolvedName = parseReferencedPlayTarget(playName).playName;
15741
15780
  if (useLatest) {
15742
15781
  const versions = await client.listPlayVersions(resolvedName);
15743
15782
  const latest = versions[0];
15744
- if (!_optionalChain([latest, 'optionalAccess', _620 => _620._id])) {
15783
+ if (!_optionalChain([latest, 'optionalAccess', _622 => _622._id])) {
15745
15784
  console.error(`No saved revisions found for ${resolvedName}.`);
15746
15785
  return 1;
15747
15786
  }
@@ -15758,7 +15797,7 @@ async function handlePlayPublish(args) {
15758
15797
  revisionId ? { revisionId } : {}
15759
15798
  );
15760
15799
  if (options.jsonOutput) {
15761
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, result);
15800
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, result);
15762
15801
  } else {
15763
15802
  printPublishReceipt({
15764
15803
  name: result.name,
@@ -15798,7 +15837,7 @@ async function handlePlayDelete(args) {
15798
15837
  );
15799
15838
  return 2;
15800
15839
  }
15801
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
15840
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
15802
15841
  let detail;
15803
15842
  try {
15804
15843
  detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
@@ -15822,8 +15861,8 @@ async function handlePlayDelete(args) {
15822
15861
  name: resolvedName,
15823
15862
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
15824
15863
  };
15825
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
15826
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, result2);
15864
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
15865
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, result2);
15827
15866
  } else {
15828
15867
  process.stdout.write(
15829
15868
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -15833,8 +15872,8 @@ async function handlePlayDelete(args) {
15833
15872
  return 0;
15834
15873
  }
15835
15874
  const result = await client.deletePlay(resolvedName);
15836
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
15837
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, result);
15875
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
15876
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, result);
15838
15877
  return result.archived || result.alreadyArchived ? 0 : 4;
15839
15878
  }
15840
15879
  if (result.alreadyArchived) {
@@ -15873,13 +15912,13 @@ async function handlePlayRestore(args) {
15873
15912
  );
15874
15913
  return 2;
15875
15914
  }
15876
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
15915
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
15877
15916
  try {
15878
15917
  const result = await client.restorePlay(
15879
15918
  parseReferencedPlayTarget(playName).playName
15880
15919
  );
15881
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
15882
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, result);
15920
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
15921
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, result);
15883
15922
  return result.restored || result.alreadyActive ? 0 : 4;
15884
15923
  }
15885
15924
  if (result.alreadyActive) {
@@ -16006,21 +16045,21 @@ Common commands:
16006
16045
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16007
16046
  }
16008
16047
  };
16009
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, result2, {
16048
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, result2, {
16010
16049
  json: options.json,
16011
16050
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16012
16051
  `
16013
16052
  });
16014
16053
  return;
16015
16054
  }
16016
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
16055
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
16017
16056
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16018
16057
  throw new Error(
16019
16058
  "The submission belongs to a different API origin. Select its original host before recovery."
16020
16059
  );
16021
16060
  }
16022
16061
  const result = await client.startPlayRun(saved.request);
16023
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
16062
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
16024
16063
  { ...result },
16025
16064
  {
16026
16065
  json: options.json,
@@ -16056,7 +16095,7 @@ Examples:
16056
16095
  ).action(async (target, options) => {
16057
16096
  process.exitCode = await handlePlayCheck([
16058
16097
  target,
16059
- ..._chunkJUYW6TSUjs.jsonFieldArgs.call(void 0, options.json),
16098
+ ..._chunkXL4FFVWLjs.jsonFieldArgs.call(void 0, options.json),
16060
16099
  ...options.full ? ["--full"] : []
16061
16100
  ]);
16062
16101
  });
@@ -16099,10 +16138,10 @@ Notes:
16099
16138
  retained input and pinned revision, and returns once it starts. It accepts
16100
16139
  only --json.
16101
16140
  --max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
16102
- resident-work ceiling. Default: ${_chunkFXKKFM7Jjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkFXKKFM7Jjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16141
+ resident-work ceiling. Default: ${_chunk4ZIIS6KGjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunk4ZIIS6KGjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16103
16142
  Provider pacing and sandbox memory limits still apply.
16104
16143
  --max-concurrent-rows sets the run-wide default and ceiling for live map row
16105
- resolvers. Accepted range: 1-${_chunkFXKKFM7Jjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16144
+ resolvers. Accepted range: 1-${_chunk4ZIIS6KGjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16106
16145
  may lower it when source-row size exceeds the active-row memory budget.
16107
16146
  --max-credits replaces the play's billing.maxCreditsPerRun for this run.
16108
16147
  Tool calls that would exceed it are denied.
@@ -16227,10 +16266,10 @@ Examples:
16227
16266
  ).hideHelp()
16228
16267
  ).option(
16229
16268
  "--max-concurrent-external-calls <count>",
16230
- `Concurrent provider-tool and deepline.fetch executions (${_chunkFXKKFM7Jjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkFXKKFM7Jjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16269
+ `Concurrent provider-tool and deepline.fetch executions (${_chunk4ZIIS6KGjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunk4ZIIS6KGjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16231
16270
  ).option(
16232
16271
  "--max-concurrent-rows <count>",
16233
- `Run-wide dataset map row resolver ceiling (max ${_chunkFXKKFM7Jjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16272
+ `Run-wide dataset map row resolver ceiling (max ${_chunk4ZIIS6KGjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16234
16273
  ).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
16235
16274
  "--debug-map-latency",
16236
16275
  "Internal diagnostics: emit one aggregate latency profile per dataset map"
@@ -16281,7 +16320,7 @@ JSON field selection:
16281
16320
  }
16282
16321
  }
16283
16322
  async function runPlayFromRun(target, options, command) {
16284
- const runId = _optionalChain([options, 'access', _621 => _621.fromRun, 'optionalAccess', _622 => _622.trim, 'call', _623 => _623()]);
16323
+ const runId = _optionalChain([options, 'access', _623 => _623.fromRun, 'optionalAccess', _624 => _624.trim, 'call', _625 => _625()]);
16285
16324
  if (!runId || runId.startsWith("--")) {
16286
16325
  console.error("--from-run requires a run id.");
16287
16326
  return 1;
@@ -16316,14 +16355,14 @@ JSON field selection:
16316
16355
  passthroughArgs.shift();
16317
16356
  }
16318
16357
  const exitCode = await handlePlayRun(
16319
- _chunkFXKKFM7Jjs.resolvePlayRunCliOptions.call(void 0,
16358
+ _chunk4ZIIS6KGjs.resolvePlayRunCliOptions.call(void 0,
16320
16359
  _nullishCoalesce(effectiveTarget, () => ( void 0)),
16321
16360
  options,
16322
16361
  passthroughArgs,
16323
- _chunkZLIAUR2Ejs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16362
+ _chunkJY73USD7js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16324
16363
  )
16325
16364
  );
16326
- _chunkZLIAUR2Ejs.recordCliTrace.call(void 0, {
16365
+ _chunkJY73USD7js.recordCliTrace.call(void 0, {
16327
16366
  phase: "cli.play_command_exit",
16328
16367
  exitCode
16329
16368
  });
@@ -16372,9 +16411,9 @@ Examples:
16372
16411
  const limit = Number(options.historyLimit);
16373
16412
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16374
16413
  throw new Error("--history-limit must be an integer from 1 to 30.");
16375
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
16414
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
16376
16415
  if (options.binding) {
16377
- _chunkJUYW6TSUjs.printCompactJson.call(void 0,
16416
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0,
16378
16417
  await client.getPlayTriggerHistory(options.binding, { limit })
16379
16418
  );
16380
16419
  return;
@@ -16382,7 +16421,7 @@ Examples:
16382
16421
  const result = await client.listPlayTriggerInventory({
16383
16422
  cursor: options.cursor
16384
16423
  });
16385
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, {
16424
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, {
16386
16425
  ...result,
16387
16426
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16388
16427
  });
@@ -16441,7 +16480,7 @@ Examples:
16441
16480
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16442
16481
  throw new Error("--group-by must be kind or trigger_source.");
16443
16482
  }
16444
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().getPlaysActivity({
16483
+ const result = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().getPlaysActivity({
16445
16484
  timeZone: options.timeZone,
16446
16485
  days,
16447
16486
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16455,7 +16494,7 @@ Examples:
16455
16494
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16456
16495
  );
16457
16496
  }
16458
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
16497
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
16459
16498
  { ...result },
16460
16499
  {
16461
16500
  json: Boolean(options.json),
@@ -16484,7 +16523,7 @@ Examples:
16484
16523
  false
16485
16524
  );
16486
16525
  });
16487
- _chunkAYNO4VFWjs.registerDeprecatedSearchCommand.call(void 0,
16526
+ _chunkJNECQ5QFjs.registerDeprecatedSearchCommand.call(void 0,
16488
16527
  play,
16489
16528
  (options) => options.all ? ["plays"] : ["prebuilts"]
16490
16529
  );
@@ -16525,9 +16564,9 @@ Examples:
16525
16564
  "--json [fields]",
16526
16565
  "JSON output; optionally select comma-separated dotted paths"
16527
16566
  );
16528
- _chunkZL2ME3UTjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16567
+ _chunkXRLE2FPEjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16529
16568
  async (target, options) => {
16530
- const ownView = () => handlePlayDescribe(_chunkJUYW6TSUjs.describeArgs.call(void 0, target, options));
16569
+ const ownView = () => handlePlayDescribe(_chunkXL4FFVWLjs.describeArgs.call(void 0, target, options));
16531
16570
  const [flagText] = [options.json].filter(
16532
16571
  (value) => typeof value === "string"
16533
16572
  );
@@ -16538,7 +16577,7 @@ Examples:
16538
16577
  process.exitCode = await ownView();
16539
16578
  return;
16540
16579
  }
16541
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-JKZ67X3E.js")));
16580
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-LNCLA2LA.js")));
16542
16581
  process.exitCode = await describeAnything(
16543
16582
  name,
16544
16583
  {
@@ -16656,7 +16695,7 @@ Examples:
16656
16695
  deepline plays deployments <deployment-id>
16657
16696
  `
16658
16697
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16659
- async (id, options) => id ? _chunk2YOM5J3Gjs.handleDeploymentGet.call(void 0, id, options) : _chunk2YOM5J3Gjs.handleDeploymentsList.call(void 0, options)
16698
+ async (id, options) => id ? _chunk63DHG7BMjs.handleDeploymentGet.call(void 0, id, options) : _chunk63DHG7BMjs.handleDeploymentsList.call(void 0, options)
16660
16699
  );
16661
16700
  addPublishHelp(
16662
16701
  play.command("publish <target>").description(
@@ -16791,14 +16830,14 @@ Examples:
16791
16830
  const limit = Number(options.limit);
16792
16831
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
16793
16832
  throw new Error("--limit must be an integer from 1 to 1000.");
16794
- const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().runs.rowHistory({
16833
+ const result = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().runs.rowHistory({
16795
16834
  playName: options.play,
16796
16835
  runId,
16797
16836
  tableNamespace: options.dataset,
16798
16837
  limit,
16799
16838
  cursor: options.cursor
16800
16839
  });
16801
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, {
16840
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, {
16802
16841
  ...result,
16803
16842
  ...result.nextCursor ? {
16804
16843
  next: `deepline runs rows-history ${_chunkAID3OYVJjs.shellQuote.call(void 0, runId)} --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, result.nextCursor)} --json`
@@ -16876,7 +16915,7 @@ Examples:
16876
16915
  new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
16877
16916
  ).action(async (runId, options) => {
16878
16917
  if (TOOL_EXECUTION_ID.test(runId)) {
16879
- const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-LSALTN7I.js")));
16918
+ const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-53E6GBQU.js")));
16880
16919
  process.exitCode = await getToolExecutionReceipt(runId, {
16881
16920
  receiptJson: options.json !== void 0
16882
16921
  });
@@ -16884,7 +16923,7 @@ Examples:
16884
16923
  }
16885
16924
  process.exitCode = await handleRunGet([
16886
16925
  runId,
16887
- ..._chunkJUYW6TSUjs.jsonFieldArgs.call(void 0, options.json),
16926
+ ..._chunkXL4FFVWLjs.jsonFieldArgs.call(void 0, options.json),
16888
16927
  ...options.web ? ["--web"] : [],
16889
16928
  ...options.webUrl ? ["--web-url"] : [],
16890
16929
  ...options.full ? ["--full"] : [],
@@ -17201,7 +17240,7 @@ Examples:
17201
17240
  ...options.allowEmpty ? ["--allow-empty"] : [],
17202
17241
  ...options.wait ? ["--wait"] : [],
17203
17242
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17204
- ..._chunkJUYW6TSUjs.jsonFieldArgs.call(void 0, options.json)
17243
+ ..._chunkXL4FFVWLjs.jsonFieldArgs.call(void 0, options.json)
17205
17244
  ]);
17206
17245
  });
17207
17246
  const share = play.command("share").description(
@@ -17336,14 +17375,14 @@ function absolutePublicPlayUrl(path) {
17336
17375
  }
17337
17376
  try {
17338
17377
  return new URL(path, PUBLIC_PLAY_BASE_URL).toString();
17339
- } catch (e15) {
17378
+ } catch (e16) {
17340
17379
  return null;
17341
17380
  }
17342
17381
  }
17343
17382
  function shareUrlFields(status) {
17344
17383
  return {
17345
- publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _624 => _624.share, 'optionalAccess', _625 => _625.publicPath])),
17346
- canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _626 => _626.share, 'optionalAccess', _627 => _627.canonicalPath]))
17384
+ publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _626 => _626.share, 'optionalAccess', _627 => _627.publicPath])),
17385
+ canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _628 => _628.share, 'optionalAccess', _629 => _629.canonicalPath]))
17347
17386
  };
17348
17387
  }
17349
17388
  function shareStatusForOutput(status) {
@@ -17367,10 +17406,10 @@ async function handlePlayShareStatus(args) {
17367
17406
  return 2;
17368
17407
  }
17369
17408
  const name = parseReferencedPlayTarget(target).playName;
17370
- const status = await new (0, _chunkTVADI7K5js.DeeplineClient)().getSharePage(name);
17409
+ const status = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().getSharePage(name);
17371
17410
  const outputStatus = shareStatusForOutput(status);
17372
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
17373
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, outputStatus);
17411
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
17412
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, outputStatus);
17374
17413
  return 0;
17375
17414
  }
17376
17415
  if (!outputStatus.share) {
@@ -17409,7 +17448,7 @@ async function handlePlaySharePublish(args) {
17409
17448
  return 2;
17410
17449
  }
17411
17450
  const name = parseReferencedPlayTarget(target).playName;
17412
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
17451
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
17413
17452
  let revisionId = shareFlagValue(args, "--revision-id");
17414
17453
  let resolvedVersion;
17415
17454
  if (!revisionId) {
@@ -17440,8 +17479,8 @@ async function handlePlaySharePublish(args) {
17440
17479
  );
17441
17480
  if (!hasCompleted) {
17442
17481
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17443
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
17444
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, {
17482
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
17483
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, {
17445
17484
  ok: false,
17446
17485
  code: "NO_SUCCESSFUL_RUN",
17447
17486
  message,
@@ -17465,8 +17504,8 @@ async function handlePlaySharePublish(args) {
17465
17504
  };
17466
17505
  if (args.includes("--dry-run")) {
17467
17506
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17468
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
17469
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, plan);
17507
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
17508
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, plan);
17470
17509
  } else {
17471
17510
  console.log(
17472
17511
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17476,13 +17515,13 @@ async function handlePlaySharePublish(args) {
17476
17515
  }
17477
17516
  const status = await client.publishSharePage(name, request);
17478
17517
  const outputStatus = shareStatusForOutput(status);
17479
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
17480
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, outputStatus);
17518
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
17519
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, outputStatus);
17481
17520
  return 0;
17482
17521
  }
17483
17522
  const urls = shareUrlFields(outputStatus);
17484
17523
  console.log(
17485
- `Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _628 => _628.share, 'optionalAccess', _629 => _629.publicPath]))), () => ( ""))}`
17524
+ `Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _630 => _630.share, 'optionalAccess', _631 => _631.publicPath]))), () => ( ""))}`
17486
17525
  );
17487
17526
  if (urls.canonicalUrl && urls.canonicalUrl !== urls.publicUrl) {
17488
17527
  console.log(`Version URL: ${urls.canonicalUrl}`);
@@ -17508,9 +17547,9 @@ async function handlePlayShareUpdate(args) {
17508
17547
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17509
17548
  ...seoIndexing ? { seoIndexing } : {}
17510
17549
  };
17511
- const status = await new (0, _chunkTVADI7K5js.DeeplineClient)().updateSharePage(name, request);
17512
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
17513
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, status);
17550
+ const status = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().updateSharePage(name, request);
17551
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
17552
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, status);
17514
17553
  return 0;
17515
17554
  }
17516
17555
  console.log(`Updated ${name} share settings.`);
@@ -17525,13 +17564,13 @@ async function handlePlayShareRegenerate(args) {
17525
17564
  return 2;
17526
17565
  }
17527
17566
  const name = parseReferencedPlayTarget(target).playName;
17528
- const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
17567
+ const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
17529
17568
  let revisionId = shareFlagValue(args, "--revision-id");
17530
17569
  const versionFlag = shareFlagValue(args, "--version");
17531
17570
  if (!revisionId && versionFlag) {
17532
17571
  const versions = await client.listPlayVersions(name);
17533
17572
  const chosen = versions.find((r) => r.version === Number(versionFlag));
17534
- if (!_optionalChain([chosen, 'optionalAccess', _630 => _630._id])) {
17573
+ if (!_optionalChain([chosen, 'optionalAccess', _632 => _632._id])) {
17535
17574
  console.error(`Version ${versionFlag} not found for ${name}.`);
17536
17575
  return 4;
17537
17576
  }
@@ -17542,12 +17581,12 @@ async function handlePlayShareRegenerate(args) {
17542
17581
  revisionId ? { revisionId } : {}
17543
17582
  );
17544
17583
  const outputStatus = shareStatusForOutput(status);
17545
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
17546
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, outputStatus);
17584
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
17585
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, outputStatus);
17547
17586
  return 0;
17548
17587
  }
17549
17588
  const urls = shareUrlFields(outputStatus);
17550
- const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _631 => _631.share, 'optionalAccess', _632 => _632.publishedRevisionId]) === revisionId;
17589
+ const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _633 => _633.share, 'optionalAccess', _634 => _634.publishedRevisionId]) === revisionId;
17551
17590
  console.log(
17552
17591
  `Regenerated public copy for ${name}${regeneratedPublishedRevision && urls.publicUrl ? `: ${urls.publicUrl}` : "."}`
17553
17592
  );
@@ -17568,9 +17607,9 @@ async function handlePlayShareUnpublish(args) {
17568
17607
  return 2;
17569
17608
  }
17570
17609
  const name = parseReferencedPlayTarget(target).playName;
17571
- const status = await new (0, _chunkTVADI7K5js.DeeplineClient)().unpublishSharePage(name);
17572
- if (_chunkJUYW6TSUjs.argsWantJson.call(void 0, args)) {
17573
- _chunkJUYW6TSUjs.printCompactJson.call(void 0, status);
17610
+ const status = await new (0, _chunkZCYV6MZHjs.DeeplineClient)().unpublishSharePage(name);
17611
+ if (_chunkXL4FFVWLjs.argsWantJson.call(void 0, args)) {
17612
+ _chunkXL4FFVWLjs.printCompactJson.call(void 0, status);
17574
17613
  return 0;
17575
17614
  }
17576
17615
  console.log(`Unpublished ${name}; the public page has been removed.`);
@@ -17647,4 +17686,4 @@ async function handlePlayShareUnpublish(args) {
17647
17686
 
17648
17687
 
17649
17688
 
17650
- exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkFXKKFM7Jjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkFXKKFM7Jjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
17689
+ exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunk4ZIIS6KGjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunk4ZIIS6KGjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;