deepline 0.3.492 → 0.3.493

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +11 -5
  2. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +6 -0
  5. package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +25 -9
  6. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
  7. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +5 -4
  8. package/dist/bundling-sources/shared_libs/play-runtime/crustdata-company-identify-batching.ts +162 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +19 -3
  10. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/receipt-sql.ts +17 -23
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +28 -1
  13. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +75 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +20 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +412 -59
  16. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +38 -10
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +19 -11
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +165 -12
  19. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
  20. package/dist/cli/{auth-4I6QY5WX.mjs → auth-3NAY3AST.mjs} +5 -5
  21. package/dist/cli/auth-KYQLDI6V.js +43 -0
  22. package/dist/cli/{billing-2H4GOJZY.js → billing-FSB4BBBO.js} +80 -80
  23. package/dist/cli/{billing-4F6L4JSI.mjs → billing-SBWQCC7B.mjs} +7 -7
  24. package/dist/cli/{chunk-MQ2LQOAM.mjs → chunk-2BRTYIAH.mjs} +23 -9
  25. package/dist/cli/{chunk-E47VAVAR.js → chunk-2H4OFVR5.js} +5 -5
  26. package/dist/cli/{chunk-ZDTPSVGF.js → chunk-2I7VN65H.js} +10 -10
  27. package/dist/cli/{chunk-LCCFGSV7.mjs → chunk-2IHGVAGT.mjs} +2 -2
  28. package/dist/cli/{chunk-BDUFZSUL.js → chunk-2NGIBJM2.js} +8 -8
  29. package/dist/cli/{chunk-OTUT3XTX.mjs → chunk-3QGUWB6E.mjs} +4 -4
  30. package/dist/cli/{chunk-3BRDP4UP.mjs → chunk-4IJFQV3O.mjs} +1 -1
  31. package/dist/cli/{chunk-PIC6M4X3.mjs → chunk-4NIGNT7X.mjs} +1 -1
  32. package/dist/cli/{chunk-YVOYZPMY.mjs → chunk-5DIZ2G74.mjs} +2 -2
  33. package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
  34. package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-5WOPBX3H.mjs} +1 -1
  35. package/dist/cli/{chunk-R5MP3CIY.mjs → chunk-67ZG7XZV.mjs} +3 -3
  36. package/dist/cli/{chunk-W4FEX5ZF.js → chunk-7HABWOMB.js} +261 -261
  37. package/dist/cli/{chunk-FPLN7PHP.js → chunk-AGTXL6LZ.js} +5 -5
  38. package/dist/cli/{chunk-SE23YSBK.js → chunk-AWMCZAUR.js} +3 -3
  39. package/dist/cli/{chunk-HHTVRICE.js → chunk-C2MRDPA5.js} +17 -17
  40. package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
  41. package/dist/cli/{chunk-O3K22ZC7.js → chunk-DWJ4RXSA.js} +34 -11
  42. package/dist/cli/{chunk-6YO4OJPM.mjs → chunk-DYP27IWC.mjs} +99 -24
  43. package/dist/cli/{chunk-EANFUHRM.mjs → chunk-E5ILCMKQ.mjs} +1 -1
  44. package/dist/cli/{chunk-Y7QCMOGZ.mjs → chunk-EBAS3UT2.mjs} +6 -6
  45. package/dist/cli/{chunk-DJOLMS2A.js → chunk-EFO5GVYS.js} +1 -1
  46. package/dist/cli/{chunk-NF7NUKWF.js → chunk-EYG336YV.js} +132 -57
  47. package/dist/cli/{chunk-OKHBAAJG.mjs → chunk-GSC35TPZ.mjs} +2 -2
  48. package/dist/cli/{chunk-MPITIXW4.mjs → chunk-HLM2UFQ5.mjs} +13 -5
  49. package/dist/cli/{chunk-TVUE4CPW.js → chunk-HTUSTPP4.js} +32 -32
  50. package/dist/cli/{chunk-GDSZWTJK.mjs → chunk-IJJ6D5WL.mjs} +12 -12
  51. package/dist/cli/{chunk-3TISK5RQ.js → chunk-IJOHWGPF.js} +6 -6
  52. package/dist/cli/{chunk-NBL6JMIY.js → chunk-IOBPR2VO.js} +17 -17
  53. package/dist/cli/{chunk-EFFHRXKB.js → chunk-IOMEJKGK.js} +2 -2
  54. package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-IRDYBMA7.mjs} +34 -11
  55. package/dist/cli/{chunk-B2JE3HD6.js → chunk-JO2JZUBR.js} +3 -3
  56. package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
  57. package/dist/cli/{chunk-O2FB42N2.js → chunk-KCDZWS2B.js} +56 -56
  58. package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-KGDDQMI7.mjs} +2 -2
  59. package/dist/cli/{chunk-UUH4GQRL.mjs → chunk-KKSKYZO4.mjs} +1 -1
  60. package/dist/cli/{chunk-OTDX4A4W.js → chunk-LGTZYI5B.js} +21 -21
  61. package/dist/cli/{chunk-JJAHWKJ2.js → chunk-MLEUOTEQ.js} +73 -59
  62. package/dist/cli/{chunk-YOCEY4EI.mjs → chunk-NALJJTPS.mjs} +5 -5
  63. package/dist/cli/{chunk-HFEJ7JJT.js → chunk-NPNAEPY4.js} +26 -26
  64. package/dist/cli/{chunk-3IBKEOL4.js → chunk-NWIDPT7H.js} +4 -4
  65. package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
  66. package/dist/cli/{chunk-4RB74KJX.js → chunk-QTPS5RLG.js} +15 -15
  67. package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
  68. package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
  69. package/dist/cli/{chunk-RC366IJS.mjs → chunk-SXD2EYAH.mjs} +6 -6
  70. package/dist/cli/{chunk-YNWET57Z.js → chunk-TIFRRLZT.js} +7 -7
  71. package/dist/cli/{chunk-ZCKUNXXR.mjs → chunk-TNQOR6XQ.mjs} +1 -1
  72. package/dist/cli/{chunk-OGNIB64W.js → chunk-UCMY2SO2.js} +23 -15
  73. package/dist/cli/{chunk-O65HDVA7.mjs → chunk-VFHIYWMC.mjs} +5 -5
  74. package/dist/cli/{chunk-JHBRJDUC.js → chunk-WCZFCOMZ.js} +7 -7
  75. package/dist/cli/{chunk-FFOJRD53.mjs → chunk-WTFI7BVH.mjs} +3 -3
  76. package/dist/cli/{chunk-42Z6VC2Q.js → chunk-XLE7KXE7.js} +2 -2
  77. package/dist/cli/{chunk-Q3CCCTRQ.js → chunk-XQX476QK.js} +14 -14
  78. package/dist/cli/{chunk-F6EQWY4E.mjs → chunk-Y3NN2UAF.mjs} +2 -2
  79. package/dist/cli/{chunk-MJFVF5AW.mjs → chunk-ZQH4TXM2.mjs} +2 -2
  80. package/dist/cli/{chunk-DVGCPOEA.mjs → chunk-ZVW7EWTC.mjs} +7 -7
  81. package/dist/cli/{chunk-4GJIJHRQ.mjs → chunk-ZVXB7OU7.mjs} +1 -1
  82. package/dist/cli/command-docs.js +2 -2
  83. package/dist/cli/command-docs.mjs +1 -1
  84. package/dist/cli/{csv-JGJNDRSA.js → csv-DKYZE2KM.js} +13 -13
  85. package/dist/cli/{csv-VGXGV7YM.mjs → csv-XR22YQXT.mjs} +4 -4
  86. package/dist/cli/{db-OYG27ZBM.mjs → db-EOKG36YN.mjs} +7 -7
  87. package/dist/cli/{db-W52WJ6E5.js → db-RNYRTCMV.js} +28 -28
  88. package/dist/cli/describe-ICFXOQBW.mjs +50 -0
  89. package/dist/cli/describe-RS75I33X.js +50 -0
  90. package/dist/cli/describe-core.d.mts +2 -2
  91. package/dist/cli/describe-core.d.ts +2 -2
  92. package/dist/cli/describe-core.js +4 -4
  93. package/dist/cli/describe-core.mjs +3 -3
  94. package/dist/cli/{executions-EVE4KUGL.mjs → executions-3RAOACNS.mjs} +7 -7
  95. package/dist/cli/{executions-LAJHZGPY.js → executions-OBWPSWH7.js} +9 -9
  96. package/dist/cli/{feedback-75QB7KVG.mjs → feedback-6EQRVBKF.mjs} +4 -4
  97. package/dist/cli/{feedback-ZABCN7RT.js → feedback-6GPEUBLF.js} +8 -8
  98. package/dist/cli/getting-started.d.mts +12 -10
  99. package/dist/cli/getting-started.d.ts +12 -10
  100. package/dist/cli/getting-started.js +4 -2
  101. package/dist/cli/getting-started.mjs +3 -1
  102. package/dist/cli/{git-QIFEYQGY.mjs → git-CVQ24DTR.mjs} +5 -5
  103. package/dist/cli/git-DEFE4SSB.js +25 -0
  104. package/dist/cli/index.js +143 -143
  105. package/dist/cli/index.mjs +43 -43
  106. package/dist/cli/{legacy-noops-PNTWBBGY.mjs → legacy-noops-QULJZYNH.mjs} +5 -5
  107. package/dist/cli/{legacy-noops-2TBIAMCM.js → legacy-noops-XPOATG5V.js} +8 -8
  108. package/dist/cli/{monitors-LOHUYJEI.mjs → monitors-AFT5YJPZ.mjs} +49 -9
  109. package/dist/cli/{monitors-UKBOEGBS.js → monitors-OJ4CMREE.js} +169 -129
  110. package/dist/cli/{org-E7A6QLBW.js → org-RKT52CSL.js} +73 -73
  111. package/dist/cli/{org-JRUKUOUF.mjs → org-WHKNXANG.mjs} +7 -7
  112. package/dist/cli/{pages-K76HA473.mjs → pages-EEAQFGVD.mjs} +7 -7
  113. package/dist/cli/{pages-EUDFFLLD.js → pages-SOE3R667.js} +18 -18
  114. package/dist/cli/{play-DG2N66SV.mjs → play-LXFWHUBP.mjs} +147 -52
  115. package/dist/cli/{play-UWHNUJRA.js → play-OTJJ4E4T.js} +661 -566
  116. package/dist/cli/{providers-DZX6TTC6.js → providers-RU4HIAT3.js} +10 -10
  117. package/dist/cli/{providers-RUTTPUZD.mjs → providers-U3CPKTMM.mjs} +7 -7
  118. package/dist/cli/{quickstart-RGZZN2YE.mjs → quickstart-75AO2AJC.mjs} +5 -5
  119. package/dist/cli/{quickstart-U4NMD7KX.js → quickstart-N72IVA2Y.js} +13 -13
  120. package/dist/cli/{run-MOJWQYFQ.mjs → run-IGWFL6WH.mjs} +29 -28
  121. package/dist/cli/{run-5UNF4FHG.js → run-MMYES3IW.js} +44 -43
  122. package/dist/cli/search-EQURI7SZ.js +32 -0
  123. package/dist/cli/{search-5B3ZDU7H.mjs → search-FIYESBLZ.mjs} +8 -8
  124. package/dist/cli/{search-output-VQWJS3FN.js → search-output-2FXN4ZWD.js} +9 -6
  125. package/dist/cli/{search-output-QS4IWWHA.mjs → search-output-3I5KSW36.mjs} +7 -4
  126. package/dist/cli/{secrets-S3PJMEAC.js → secrets-HCZQ6JNP.js} +16 -16
  127. package/dist/cli/{secrets-V5XVDBIS.mjs → secrets-O7IUQ3VT.mjs} +7 -7
  128. package/dist/cli/{sessions-Y5QMEZ3D.js → sessions-5AYTT4IW.js} +6 -6
  129. package/dist/cli/{sessions-5V3X24XI.mjs → sessions-KY7A3EZO.mjs} +5 -5
  130. package/dist/cli/{settings-3U6RRO5F.js → settings-P4VFYWJK.js} +80 -80
  131. package/dist/cli/{settings-LHZYY5PT.mjs → settings-WSMRR2GS.mjs} +13 -13
  132. package/dist/cli/{setup-MLLIGO2S.js → setup-J7CA3EJL.js} +57 -57
  133. package/dist/cli/{setup-AJLWXYAN.mjs → setup-YTVKVQC7.mjs} +13 -13
  134. package/dist/cli/skills-KKPEGLAR.js +36 -0
  135. package/dist/cli/{skills-5O2MUWKK.mjs → skills-W5WY764N.mjs} +10 -10
  136. package/dist/cli/tools-65Y4QTW6.js +57 -0
  137. package/dist/cli/{tools-PWNMI5CD.mjs → tools-YECI6N3N.mjs} +20 -20
  138. package/dist/cli/{update-SXT4QW7S.mjs → update-BIFBIEII.mjs} +10 -10
  139. package/dist/cli/update-WDG7VFOW.js +34 -0
  140. package/dist/cli/{workflow-3WTF5IYT.js → workflow-D2TUFFH6.js} +18 -18
  141. package/dist/cli/{workflow-KPRM6ARO.mjs → workflow-XZVDNARC.mjs} +8 -8
  142. package/dist/{client-Cb1ej1Vr.d.ts → client-BDB_VbE4.d.ts} +1 -1
  143. package/dist/{client-vWpbLNCB.d.mts → client-CNzJ1LTF.d.mts} +1 -1
  144. package/dist/{client-core-CoBTvsXG.d.mts → client-core-CSv3DlPD.d.mts} +10 -3
  145. package/dist/{client-core-BmVs6SP0.d.ts → client-core-xEa9x3pl.d.ts} +10 -3
  146. package/dist/index.d.mts +3 -3
  147. package/dist/index.d.ts +3 -3
  148. package/dist/index.js +10 -10
  149. package/dist/index.mjs +7 -7
  150. package/dist/install-integrity.json +115 -114
  151. package/dist/plays/play-description.d.mts +1 -1
  152. package/dist/plays/play-description.d.ts +1 -1
  153. package/dist/plays/run-request.d.mts +1 -1
  154. package/dist/plays/run-request.d.ts +1 -1
  155. package/dist/plays/run-request.js +2 -2
  156. package/dist/plays/run-request.mjs +1 -1
  157. package/dist/release.d.mts +1 -1
  158. package/dist/release.d.ts +1 -1
  159. package/dist/release.js +2 -2
  160. package/dist/release.mjs +1 -1
  161. package/dist/server.d.mts +2 -2
  162. package/dist/server.d.ts +2 -2
  163. package/dist/server.js +6 -6
  164. package/dist/server.mjs +4 -4
  165. package/package.json +1 -1
  166. package/dist/cli/auth-7BCLZU6K.js +0 -43
  167. package/dist/cli/describe-FIXCRO5N.mjs +0 -50
  168. package/dist/cli/describe-G3O6OUBG.js +0 -50
  169. package/dist/cli/git-QBAR46NW.js +0 -25
  170. package/dist/cli/search-3DAEJL6S.js +0 -32
  171. package/dist/cli/skills-BBLIML5M.js +0 -36
  172. package/dist/cli/tools-X5SQXUMM.js +0 -57
  173. package/dist/cli/update-AEJ2ZSZQ.js +0 -34
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZDTPSVGFjs = require('./chunk-ZDTPSVGF.js');
5
+ var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
6
6
 
7
7
 
8
8
 
@@ -22,14 +22,14 @@ var _chunkZDTPSVGFjs = require('./chunk-ZDTPSVGF.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkB2JE3HD6js = require('./chunk-B2JE3HD6.js');
25
+ var _chunkJO2JZUBRjs = require('./chunk-JO2JZUBR.js');
26
26
 
27
27
 
28
28
 
29
29
 
30
30
 
31
31
 
32
- var _chunk3IBKEOL4js = require('./chunk-3IBKEOL4.js');
32
+ var _chunkNWIDPT7Hjs = require('./chunk-NWIDPT7H.js');
33
33
 
34
34
 
35
35
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
60
60
  return `Service notice: ${banner.message}`;
61
61
  }
62
62
  function envFilePath(baseUrl) {
63
- return _chunkB2JE3HD6js.hostEnvFilePath.call(void 0, baseUrl);
63
+ return _chunkJO2JZUBRjs.hostEnvFilePath.call(void 0, baseUrl);
64
64
  }
65
65
  function normalizeAuthScope(value) {
66
66
  if (!value || value === "global") return "global";
@@ -73,7 +73,7 @@ function parseAuthScope(args) {
73
73
  }
74
74
  function pendingClaimPath(baseUrl, scope) {
75
75
  if (scope === "folder") {
76
- const target = _chunkB2JE3HD6js.resolveProjectPinTarget.call(void 0, );
76
+ const target = _chunkJO2JZUBRjs.resolveProjectPinTarget.call(void 0, );
77
77
  if (!target.ok) {
78
78
  throw new Error(
79
79
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -83,10 +83,10 @@ function pendingClaimPath(baseUrl, scope) {
83
83
  }
84
84
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
85
85
  }
86
- return `${_chunkB2JE3HD6js.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
86
+ return `${_chunkJO2JZUBRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
87
87
  }
88
88
  function legacyPendingClaimTokenPath(baseUrl) {
89
- return `${_chunkB2JE3HD6js.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
89
+ return `${_chunkJO2JZUBRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
90
90
  }
91
91
  function savePendingClaim(baseUrl, claim) {
92
92
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -190,21 +190,21 @@ function parseRegisterWaitMode(args) {
190
190
  function shouldWaitForRegisterClaim(mode) {
191
191
  if (mode === "yes") return true;
192
192
  if (mode === "no") return false;
193
- return _chunk3IBKEOL4js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
193
+ return _chunkNWIDPT7Hjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
194
194
  }
195
195
  function saveEnvValues(values, baseUrl, scope) {
196
196
  const filtered = {
197
- ...values[_chunkB2JE3HD6js.HOST_URL_ENV] ? { [_chunkB2JE3HD6js.HOST_URL_ENV]: values[_chunkB2JE3HD6js.HOST_URL_ENV] } : {},
198
- ...values[_chunkB2JE3HD6js.API_KEY_ENV] ? { [_chunkB2JE3HD6js.API_KEY_ENV]: values[_chunkB2JE3HD6js.API_KEY_ENV] } : {},
199
- ...values[_chunkB2JE3HD6js.ACTIVE_ORG_ID_ENV] ? { [_chunkB2JE3HD6js.ACTIVE_ORG_ID_ENV]: values[_chunkB2JE3HD6js.ACTIVE_ORG_ID_ENV] } : {},
200
- ...Object.prototype.hasOwnProperty.call(values, _chunkB2JE3HD6js.ACTIVE_ORG_NAME_ENV) ? { [_chunkB2JE3HD6js.ACTIVE_ORG_NAME_ENV]: values[_chunkB2JE3HD6js.ACTIVE_ORG_NAME_ENV] } : {},
197
+ ...values[_chunkJO2JZUBRjs.HOST_URL_ENV] ? { [_chunkJO2JZUBRjs.HOST_URL_ENV]: values[_chunkJO2JZUBRjs.HOST_URL_ENV] } : {},
198
+ ...values[_chunkJO2JZUBRjs.API_KEY_ENV] ? { [_chunkJO2JZUBRjs.API_KEY_ENV]: values[_chunkJO2JZUBRjs.API_KEY_ENV] } : {},
199
+ ...values[_chunkJO2JZUBRjs.ACTIVE_ORG_ID_ENV] ? { [_chunkJO2JZUBRjs.ACTIVE_ORG_ID_ENV]: values[_chunkJO2JZUBRjs.ACTIVE_ORG_ID_ENV] } : {},
200
+ ...Object.prototype.hasOwnProperty.call(values, _chunkJO2JZUBRjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkJO2JZUBRjs.ACTIVE_ORG_NAME_ENV]: values[_chunkJO2JZUBRjs.ACTIVE_ORG_NAME_ENV] } : {},
201
201
  // An explicit empty list must reach the store: it clears a stale line.
202
- ...Object.prototype.hasOwnProperty.call(values, _chunkB2JE3HD6js.FEATURES_ENV) ? { [_chunkB2JE3HD6js.FEATURES_ENV]: values[_chunkB2JE3HD6js.FEATURES_ENV] } : {}
202
+ ...Object.prototype.hasOwnProperty.call(values, _chunkJO2JZUBRjs.FEATURES_ENV) ? { [_chunkJO2JZUBRjs.FEATURES_ENV]: values[_chunkJO2JZUBRjs.FEATURES_ENV] } : {}
203
203
  };
204
204
  if (scope === "folder") {
205
- _chunkB2JE3HD6js.saveProjectDeeplineEnvValues.call(void 0, filtered);
205
+ _chunkJO2JZUBRjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
206
206
  } else {
207
- _chunkB2JE3HD6js.saveHostEnvValues.call(void 0, baseUrl, filtered);
207
+ _chunkJO2JZUBRjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
208
208
  }
209
209
  }
210
210
  function activeOrgEnvValues(data) {
@@ -212,21 +212,21 @@ function activeOrgEnvValues(data) {
212
212
  if (!orgId) return {};
213
213
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
214
214
  return {
215
- [_chunkB2JE3HD6js.ACTIVE_ORG_ID_ENV]: orgId,
216
- [_chunkB2JE3HD6js.ACTIVE_ORG_NAME_ENV]: orgName,
217
- ..._chunkB2JE3HD6js.featureEnvValues.call(void 0, data)
215
+ [_chunkJO2JZUBRjs.ACTIVE_ORG_ID_ENV]: orgId,
216
+ [_chunkJO2JZUBRjs.ACTIVE_ORG_NAME_ENV]: orgName,
217
+ ..._chunkJO2JZUBRjs.featureEnvValues.call(void 0, data)
218
218
  };
219
219
  }
220
220
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
221
221
  const headers = {
222
222
  "Content-Type": "application/json",
223
- "User-Agent": `deepline-ts-sdk/${_chunk3IBKEOL4js.SDK_VERSION}`,
223
+ "User-Agent": `deepline-ts-sdk/${_chunkNWIDPT7Hjs.SDK_VERSION}`,
224
224
  "X-Deepline-Client-Family": "sdk",
225
225
  "X-Deepline-CLI-Family": "sdk",
226
- "X-Deepline-Agent-Runtime": _chunk3IBKEOL4js.detectAgentRuntime.call(void 0, ),
227
- "X-Deepline-CLI-Version": _chunk3IBKEOL4js.SDK_VERSION,
228
- "X-Deepline-SDK-Version": _chunk3IBKEOL4js.SDK_VERSION,
229
- "X-Deepline-API-Contract": _chunk3IBKEOL4js.SDK_API_CONTRACT
226
+ "X-Deepline-Agent-Runtime": _chunkNWIDPT7Hjs.detectAgentRuntime.call(void 0, ),
227
+ "X-Deepline-CLI-Version": _chunkNWIDPT7Hjs.SDK_VERSION,
228
+ "X-Deepline-SDK-Version": _chunkNWIDPT7Hjs.SDK_VERSION,
229
+ "X-Deepline-API-Contract": _chunkNWIDPT7Hjs.SDK_API_CONTRACT
230
230
  };
231
231
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
232
232
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -265,10 +265,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
265
265
  if (failure.name === "AbortError" || failure.name === "TimeoutError") {
266
266
  throw failure;
267
267
  }
268
- const causeCode = _chunk3IBKEOL4js.networkCauseCode.call(void 0, failure);
268
+ const causeCode = _chunkNWIDPT7Hjs.networkCauseCode.call(void 0, failure);
269
269
  throw Object.assign(
270
270
  new (0, _chunkDIAWYWT5js.DeeplineError)(
271
- _chunk3IBKEOL4js.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
271
+ _chunkNWIDPT7Hjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
272
272
  void 0,
273
273
  "NETWORK_ERROR",
274
274
  causeCode ? { causeCode } : void 0
@@ -285,7 +285,7 @@ async function readStatusBanner(baseUrl) {
285
285
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
286
286
  }
287
287
  async function reportSetupCompleted(input) {
288
- const apiKey = input.authScope === "folder" ? _chunkB2JE3HD6js.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkB2JE3HD6js.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
288
+ const apiKey = input.authScope === "folder" ? _chunkJO2JZUBRjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkJO2JZUBRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
289
289
  if (!apiKey) return;
290
290
  try {
291
291
  await httpJson(
@@ -397,8 +397,24 @@ async function reportApprovalLinkShown(baseUrl, claim, mode) {
397
397
  } catch (e8) {
398
398
  }
399
399
  }
400
+ var CLAIM_REVEAL_REFUSAL_CODES = /* @__PURE__ */ new Set([
401
+ "CLAIM_ALREADY_REVEALED",
402
+ "CLAIM_REVEAL_FAILED"
403
+ ]);
404
+ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
405
+ if (status === 400 && CLAIM_REVEAL_REFUSAL_CODES.has(data.code)) {
406
+ clearPendingClaim(baseUrl, authScope);
407
+ console.error(
408
+ typeof data.error === "string" && data.error ? data.error : "Could not finish connecting. Run: deepline auth register"
409
+ );
410
+ return EXIT_AUTH;
411
+ }
412
+ console.error(`Auth status error (status ${status}).`);
413
+ if (typeof data.error === "string" && data.error) console.error(data.error);
414
+ return EXIT_SERVER;
415
+ }
400
416
  async function handleRegister(args, options) {
401
- const baseUrl = _chunkB2JE3HD6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
417
+ const baseUrl = _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
402
418
  let orgName = "";
403
419
  let orgId = "";
404
420
  let agentName = "";
@@ -457,19 +473,19 @@ async function handleRegister(args, options) {
457
473
  savePendingClaim(baseUrl, pendingClaim);
458
474
  saveEnvValues(
459
475
  {
460
- [_chunkB2JE3HD6js.HOST_URL_ENV]: baseUrl
476
+ [_chunkJO2JZUBRjs.HOST_URL_ENV]: baseUrl
461
477
  },
462
478
  baseUrl,
463
479
  authScope
464
480
  );
465
481
  }
466
482
  if (claimUrl) {
467
- const shouldOpen = waitMode !== "no" && _chunk3IBKEOL4js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
483
+ const shouldOpen = waitMode !== "no" && _chunkNWIDPT7Hjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
468
484
  console.log(
469
485
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
470
486
  );
471
487
  console.log(` ${claimUrl}`);
472
- if (shouldOpen) _chunkZDTPSVGFjs.openInBrowser.call(void 0, claimUrl);
488
+ if (shouldOpen) _chunk2I7VN65Hjs.openInBrowser.call(void 0, claimUrl);
473
489
  if (claimToken && pendingClaim.approvalLinkReporting && !_optionalChain([options, 'optionalAccess', _16 => _16.deferApprovalLinkReport])) {
474
490
  await reportApprovalLinkShown(
475
491
  baseUrl,
@@ -498,13 +514,12 @@ async function handleRegister(args, options) {
498
514
  console.log("Status: unauthorized");
499
515
  return EXIT_AUTH;
500
516
  }
501
- if (s >= 500 || s === 0 || s === 400) {
517
+ if (s >= 500 || s === 0) {
502
518
  await sleep(2e3);
503
519
  continue;
504
520
  }
505
521
  if (s >= 400) {
506
- console.error(`Auth status error (status ${s}).`);
507
- return EXIT_SERVER;
522
+ return endClaimPollOnRefusal(s, statusData, baseUrl, authScope);
508
523
  }
509
524
  const state = String(statusData.status || "").toLowerCase();
510
525
  if (statusData.code === "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT") {
@@ -519,8 +534,8 @@ async function handleRegister(args, options) {
519
534
  if (apiKey) {
520
535
  saveEnvValues(
521
536
  {
522
- [_chunkB2JE3HD6js.HOST_URL_ENV]: baseUrl,
523
- [_chunkB2JE3HD6js.API_KEY_ENV]: apiKey,
537
+ [_chunkJO2JZUBRjs.HOST_URL_ENV]: baseUrl,
538
+ [_chunkJO2JZUBRjs.API_KEY_ENV]: apiKey,
524
539
  ...activeOrgEnvValues(statusData)
525
540
  },
526
541
  baseUrl,
@@ -542,7 +557,7 @@ async function handleRegister(args, options) {
542
557
  }
543
558
  }
544
559
  async function handleWait(args) {
545
- const baseUrl = _chunkB2JE3HD6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
560
+ const baseUrl = _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
546
561
  let timeoutSeconds = 300;
547
562
  let requestedScope;
548
563
  if (args.includes("--auth-scope")) {
@@ -566,7 +581,7 @@ async function handleWait(args) {
566
581
  const authScope = resumed.scope;
567
582
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
568
583
  if (!pendingClaim) {
569
- const scopedApiKey = authScope === "folder" ? _chunkB2JE3HD6js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkB2JE3HD6js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
584
+ const scopedApiKey = authScope === "folder" ? _chunkJO2JZUBRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkJO2JZUBRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
570
585
  if (scopedApiKey) {
571
586
  console.log("Already connected.");
572
587
  return EXIT_OK;
@@ -588,13 +603,12 @@ async function handleWait(args) {
588
603
  console.error("Claim is invalid. Run: deepline auth register");
589
604
  return EXIT_AUTH;
590
605
  }
591
- if (status >= 500 || status === 0 || status === 400) {
606
+ if (status >= 500 || status === 0) {
592
607
  await sleep(Math.min(2e3, Math.max(0, deadline - Date.now())));
593
608
  continue;
594
609
  }
595
610
  if (status >= 400) {
596
- console.error(`Auth status error (status ${status}).`);
597
- return EXIT_SERVER;
611
+ return endClaimPollOnRefusal(status, data, baseUrl, authScope);
598
612
  }
599
613
  const state = String(data.status || "").toLowerCase();
600
614
  if (data.code === "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT") {
@@ -609,8 +623,8 @@ async function handleWait(args) {
609
623
  if (apiKey) {
610
624
  saveEnvValues(
611
625
  {
612
- [_chunkB2JE3HD6js.HOST_URL_ENV]: baseUrl,
613
- [_chunkB2JE3HD6js.API_KEY_ENV]: apiKey,
626
+ [_chunkJO2JZUBRjs.HOST_URL_ENV]: baseUrl,
627
+ [_chunkJO2JZUBRjs.API_KEY_ENV]: apiKey,
614
628
  ...activeOrgEnvValues(data)
615
629
  },
616
630
  baseUrl,
@@ -634,8 +648,8 @@ async function handleWait(args) {
634
648
  return EXIT_AUTH;
635
649
  }
636
650
  async function authStatusLine(timeoutMs = 3e3) {
637
- const baseUrl = _chunkB2JE3HD6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
638
- const apiKey = _chunkB2JE3HD6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
651
+ const baseUrl = _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
652
+ const apiKey = _chunkJO2JZUBRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
639
653
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
640
654
  try {
641
655
  const { status, data } = await httpJson(
@@ -658,9 +672,9 @@ async function authStatusLine(timeoutMs = 3e3) {
658
672
  }
659
673
  }
660
674
  async function handleStatus(args) {
661
- const baseUrl = _chunkB2JE3HD6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
675
+ const baseUrl = _chunkJO2JZUBRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
662
676
  const reveal = args.includes("--reveal");
663
- const jsonOutput = _chunkZDTPSVGFjs.argsWantJson.call(void 0, args);
677
+ const jsonOutput = _chunk2I7VN65Hjs.argsWantJson.call(void 0, args);
664
678
  const hasExplicitAuthScope = args.includes("--auth-scope");
665
679
  let authScope = null;
666
680
  if (hasExplicitAuthScope) {
@@ -701,14 +715,14 @@ async function handleStatus(args) {
701
715
  };
702
716
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
703
717
  }
704
- const apiKey = authScope === "folder" ? _chunkB2JE3HD6js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkB2JE3HD6js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkB2JE3HD6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
718
+ const apiKey = authScope === "folder" ? _chunkJO2JZUBRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkJO2JZUBRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkJO2JZUBRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
705
719
  if (!apiKey) {
706
720
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
707
721
  baseUrl,
708
722
  _nullishCoalesce(authScope, () => ( void 0))
709
723
  );
710
724
  if (pendingClaim) {
711
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
725
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
712
726
  {
713
727
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
714
728
  status: "pending",
@@ -729,7 +743,7 @@ async function handleStatus(args) {
729
743
  );
730
744
  return EXIT_OK;
731
745
  }
732
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
746
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
733
747
  {
734
748
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
735
749
  status: "not connected",
@@ -762,7 +776,7 @@ async function handleStatus(args) {
762
776
  }
763
777
  );
764
778
  if (status === 401 || status === 403) {
765
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
779
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
766
780
  {
767
781
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
768
782
  status: "unauthorized",
@@ -789,7 +803,7 @@ async function handleStatus(args) {
789
803
  console.error(`Auth status error (status ${status}).`);
790
804
  return EXIT_SERVER;
791
805
  }
792
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkB2JE3HD6js.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
806
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkJO2JZUBRjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
793
807
  clearSatisfiedPendingClaim(
794
808
  baseUrl,
795
809
  resolvedAuthScope,
@@ -817,28 +831,28 @@ async function handleStatus(args) {
817
831
  if (apiKeyResp) {
818
832
  saveEnvValues(
819
833
  {
820
- [_chunkB2JE3HD6js.HOST_URL_ENV]: baseUrl,
821
- [_chunkB2JE3HD6js.API_KEY_ENV]: apiKeyResp,
834
+ [_chunkJO2JZUBRjs.HOST_URL_ENV]: baseUrl,
835
+ [_chunkJO2JZUBRjs.API_KEY_ENV]: apiKeyResp,
822
836
  ...activeOrgEnvValues(data)
823
837
  },
824
838
  baseUrl,
825
839
  resolvedAuthScope
826
840
  );
827
841
  if (resolvedAuthScope === "folder") {
828
- const target = _chunkB2JE3HD6js.resolveProjectPinTarget.call(void 0, );
842
+ const target = _chunkJO2JZUBRjs.resolveProjectPinTarget.call(void 0, );
829
843
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
830
844
  } else {
831
845
  savedApiKeyPath = envFilePath(baseUrl);
832
846
  }
833
847
  }
834
- } else if (resolvedAuthScope === "folder" || _chunkB2JE3HD6js.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
835
- saveEnvValues(_chunkB2JE3HD6js.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
848
+ } else if (resolvedAuthScope === "folder" || _chunkJO2JZUBRjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
849
+ saveEnvValues(_chunkJO2JZUBRjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
836
850
  }
837
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
851
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
838
852
  {
839
853
  ...payload,
840
- ..._chunk3IBKEOL4js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
841
- command_context: _chunkB2JE3HD6js.resolveCliCommandContext.call(void 0,
854
+ ..._chunkNWIDPT7Hjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
855
+ command_context: _chunkJO2JZUBRjs.resolveCliCommandContext.call(void 0,
842
856
  { baseUrl, apiKey },
843
857
  resolvedAuthScope
844
858
  )
@@ -4,20 +4,20 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-Y7QCMOGZ.mjs";
7
+ } from "./chunk-EBAS3UT2.mjs";
8
8
  import {
9
9
  isCiEnvironment
10
- } from "./chunk-DVGCPOEA.mjs";
10
+ } from "./chunk-ZVW7EWTC.mjs";
11
11
  import {
12
12
  addJsonNotice,
13
13
  isJsonOutputMode
14
- } from "./chunk-O65HDVA7.mjs";
14
+ } from "./chunk-VFHIYWMC.mjs";
15
15
  import {
16
16
  resolveApiKeyForBaseUrl
17
- } from "./chunk-PIC6M4X3.mjs";
17
+ } from "./chunk-4NIGNT7X.mjs";
18
18
  import {
19
19
  SDK_VERSION
20
- } from "./chunk-ZCKUNXXR.mjs";
20
+ } from "./chunk-TNQOR6XQ.mjs";
21
21
 
22
22
  // src/cli/compatibility-catalog.ts
23
23
  var readers = /* @__PURE__ */ new WeakMap();
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZDTPSVGFjs = require('./chunk-ZDTPSVGF.js');
5
+ var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
6
6
 
7
7
 
8
- var _chunkB2JE3HD6js = require('./chunk-B2JE3HD6.js');
8
+ var _chunkJO2JZUBRjs = require('./chunk-JO2JZUBR.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkZDTPSVGFjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunk2I7VN65Hjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
39
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkZDTPSVGFjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunk2I7VN65Hjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
139
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkZDTPSVGFjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunk2I7VN65Hjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
153
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkZDTPSVGFjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunk2I7VN65Hjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkZDTPSVGFjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunk2I7VN65Hjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
200
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkZDTPSVGFjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunk2I7VN65Hjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
227
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkZDTPSVGFjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunk2I7VN65Hjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
254
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkZDTPSVGFjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunk2I7VN65Hjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
269
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunkB2JE3HD6js.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkJO2JZUBRjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkZDTPSVGFjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunk2I7VN65Hjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkZDTPSVGFjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunk2I7VN65Hjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
322
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkZDTPSVGFjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunk2I7VN65Hjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
371
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkZDTPSVGFjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunk2I7VN65Hjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
392
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
16
16
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
17
17
 
18
18
 
19
- var _chunkDJOLMS2Ajs = require('./chunk-DJOLMS2A.js');
19
+ var _chunkEFO5GVYSjs = require('./chunk-EFO5GVYS.js');
20
20
 
21
21
  // src/version.ts
22
- var SDK_VERSION = _chunkDJOLMS2Ajs.SDK_RELEASE.version;
23
- var SDK_API_MAJOR = _chunkDJOLMS2Ajs.SDK_RELEASE.contracts.api.currentMajor;
24
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkDJOLMS2Ajs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
22
+ var SDK_VERSION = _chunkEFO5GVYSjs.SDK_RELEASE.version;
23
+ var SDK_API_MAJOR = _chunkEFO5GVYSjs.SDK_RELEASE.contracts.api.currentMajor;
24
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkEFO5GVYSjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
25
25
 
26
26
  // src/agent-runtime.ts
27
27
  var _os = require('os');
@@ -391,6 +391,7 @@ function normalizePlayRunStart(raw) {
391
391
  name: runPackage.run.playName,
392
392
  status,
393
393
  ...runPackage.run.dashboardUrl ? { dashboardUrl: runPackage.run.dashboardUrl } : {},
394
+ ...runPackage.run.runUrl ? { runUrl: runPackage.run.runUrl } : {},
394
395
  ...runPackage.rateLimited ? { rateLimited: runPackage.rateLimited } : {},
395
396
  ...isTerminalPlayRunLifecycleStatus(status) ? raw.finalStatusView === "full" && raw.runId === runPackage.run.id ? { finalStatus: raw, finalStatusView: "full" } : { finalStatus: runPackage } : {},
396
397
  package: runPackage