deepline 0.3.477 → 0.3.479

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 (168) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +5 -4
  2. package/dist/bundling-sources/sdk/src/http-core.ts +84 -3
  3. package/dist/bundling-sources/sdk/src/http.ts +2 -0
  4. package/dist/bundling-sources/sdk/src/play.ts +8 -2
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +11 -0
  7. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +10 -2
  9. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +11 -1
  10. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +5 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +77 -4
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +83 -1
  13. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +7 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +60 -27
  15. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +13 -12
  16. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +5 -2
  17. package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +37 -12
  18. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +3 -1
  19. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +29 -0
  20. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +15 -0
  21. package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +57 -5
  22. package/dist/bundling-sources/shared_libs/product-notifications/slack-transport.ts +19 -0
  23. package/dist/cli/{auth-XVXRRWIQ.mjs → auth-D7DYB57R.mjs} +5 -5
  24. package/dist/cli/auth-MZDFNRPG.js +41 -0
  25. package/dist/cli/{billing-2H7GFJDT.js → billing-DHGSNM6E.js} +107 -87
  26. package/dist/cli/{billing-EOPUJ4JI.mjs → billing-DT4JT4QN.mjs} +34 -14
  27. package/dist/cli/{chunk-CH4VMDB5.js → chunk-27GSBTWD.js} +70 -52
  28. package/dist/cli/{chunk-PQQNMMWM.mjs → chunk-27PXHD2P.mjs} +1 -1
  29. package/dist/cli/{chunk-ACDXGOXE.js → chunk-33O2JGHE.js} +63 -11
  30. package/dist/cli/{chunk-255O6APS.js → chunk-3GIM7XRH.js} +2 -2
  31. package/dist/cli/{chunk-6IJJCRE5.mjs → chunk-3PHOAUU4.mjs} +23 -5
  32. package/dist/cli/{chunk-NC52JG66.js → chunk-3SGA53DX.js} +3 -3
  33. package/dist/cli/{chunk-RHIFH3GD.mjs → chunk-6C3QY5JS.mjs} +1 -1
  34. package/dist/cli/{chunk-NJMYX2TP.mjs → chunk-6QIXWFPO.mjs} +3 -3
  35. package/dist/cli/chunk-7I4B6V2S.mjs +127 -0
  36. package/dist/cli/{chunk-MZSLFWOT.js → chunk-7UFFWPQ2.js} +13 -9
  37. package/dist/cli/{chunk-RGNMMDSJ.js → chunk-AFHFZU5V.js} +37 -37
  38. package/dist/cli/{chunk-KWQNNPMH.js → chunk-AKVNUNL7.js} +3 -3
  39. package/dist/cli/{chunk-LXKGZKTL.js → chunk-CK2Q6AWR.js} +26 -26
  40. package/dist/cli/{chunk-DFKHXZQ7.mjs → chunk-D6MLXRMQ.mjs} +10 -10
  41. package/dist/cli/{chunk-7CILZKLE.js → chunk-EMVWC5LP.js} +5 -5
  42. package/dist/cli/{chunk-75NLWBYQ.js → chunk-FBEXJVQL.js} +93 -93
  43. package/dist/cli/{chunk-JS4UO6G4.mjs → chunk-FKEZ5DIJ.mjs} +2 -1
  44. package/dist/cli/{chunk-ZDPL5AIK.js → chunk-FV7WGK5X.js} +5 -5
  45. package/dist/cli/{chunk-E2CUSH56.js → chunk-G6V34EQ5.js} +16 -16
  46. package/dist/cli/{chunk-DS3DZUES.mjs → chunk-GICSDK72.mjs} +2 -2
  47. package/dist/cli/{chunk-C2V2HQDW.mjs → chunk-GONL4EFT.mjs} +2 -2
  48. package/dist/cli/{chunk-6KKDIISC.js → chunk-GQCH6Y7W.js} +1 -1
  49. package/dist/cli/{chunk-3UKKM6OS.js → chunk-GSULE54L.js} +7 -6
  50. package/dist/cli/{chunk-2YNLW43I.mjs → chunk-GZ43YXHT.mjs} +2 -2
  51. package/dist/cli/{chunk-UYA7LJGC.mjs → chunk-IL5AF6AR.mjs} +4 -2
  52. package/dist/cli/{chunk-R5FNCFEK.js → chunk-J5VDE42G.js} +3 -3
  53. package/dist/cli/{chunk-KMXBZIKO.mjs → chunk-JFGOMQW6.mjs} +2 -2
  54. package/dist/cli/{chunk-C46DWB56.mjs → chunk-JKUFOP7M.mjs} +1 -1
  55. package/dist/cli/{chunk-23EEVP5W.js → chunk-JMCTNS6S.js} +6 -6
  56. package/dist/cli/{chunk-ISEUOYCB.mjs → chunk-JNFNNJ75.mjs} +4 -4
  57. package/dist/cli/{chunk-C2AN2HTB.mjs → chunk-K5RRY7DJ.mjs} +4 -4
  58. package/dist/cli/{chunk-M2UL4ZS5.js → chunk-LXYDN5FE.js} +7 -7
  59. package/dist/cli/{chunk-3W6E3WVU.js → chunk-N4M6CO5H.js} +9 -9
  60. package/dist/cli/{chunk-RLCAECZH.mjs → chunk-N7E25EU2.mjs} +5 -5
  61. package/dist/cli/{chunk-YZA5UJXM.mjs → chunk-O5BUFQ2P.mjs} +1 -1
  62. package/dist/cli/{chunk-WFVEMDQL.js → chunk-OKAZHDYN.js} +4 -2
  63. package/dist/cli/{chunk-4RAENEAX.js → chunk-OVFCPV24.js} +53 -53
  64. package/dist/cli/{chunk-NO7ZC2GV.mjs → chunk-PUOKABQF.mjs} +5 -5
  65. package/dist/cli/{chunk-SG2SZQ4K.mjs → chunk-RJVUILW4.mjs} +2 -2
  66. package/dist/cli/{chunk-SVU2VR6Q.mjs → chunk-TZCHXF4R.mjs} +2 -2
  67. package/dist/cli/{chunk-XQLYPHYW.mjs → chunk-UOYA35OT.mjs} +1 -1
  68. package/dist/cli/{chunk-THMGJOR4.js → chunk-VKBLXJCK.js} +8 -8
  69. package/dist/cli/{chunk-UBNS6GSV.js → chunk-VRZXGJXH.js} +21 -21
  70. package/dist/cli/{chunk-DMWHEYZM.js → chunk-W4HIOBQQ.js} +2 -2
  71. package/dist/cli/{chunk-347EE4YE.js → chunk-W6N2S5N7.js} +8 -8
  72. package/dist/cli/{chunk-WRHLAAGN.mjs → chunk-XBYW5EHY.mjs} +1 -1
  73. package/dist/cli/{chunk-LJYTYNQZ.mjs → chunk-XDFARN7U.mjs} +55 -3
  74. package/dist/cli/{chunk-2QT6KN54.js → chunk-Y2MVDYV6.js} +10 -10
  75. package/dist/cli/{chunk-QODW5ILA.mjs → chunk-YC2QBF2W.mjs} +2 -2
  76. package/dist/cli/chunk-YGCKMI5P.js +127 -0
  77. package/dist/cli/{chunk-3A7TDUZV.mjs → chunk-ZBSUXXZS.mjs} +13 -9
  78. package/dist/cli/{chunk-2GZFIWSA.mjs → chunk-ZJRVHQSZ.mjs} +4 -4
  79. package/dist/cli/command-docs.js +2 -2
  80. package/dist/cli/command-docs.mjs +1 -1
  81. package/dist/cli/{csv-ECB7TYR2.js → csv-DQWOZ2BL.js} +13 -13
  82. package/dist/cli/{csv-IDRPTSSC.mjs → csv-JXFOD7DJ.mjs} +4 -4
  83. package/dist/cli/{db-FOBZD44N.mjs → db-NOGMZAQE.mjs} +6 -6
  84. package/dist/cli/{db-S74XZZ77.js → db-Q2OAAXRX.js} +27 -27
  85. package/dist/cli/describe-THHHNUEA.js +48 -0
  86. package/dist/cli/{describe-KMTPPI2J.mjs → describe-VKZTZLX6.mjs} +17 -17
  87. package/dist/cli/describe-core.d.mts +3 -3
  88. package/dist/cli/describe-core.d.ts +3 -3
  89. package/dist/cli/{executions-ZE3JMNA4.js → executions-B3GDZ4GQ.js} +8 -8
  90. package/dist/cli/{executions-4JAIVE2E.mjs → executions-XU3JMNI3.mjs} +6 -6
  91. package/dist/cli/{feedback-W6VA47A3.js → feedback-5IW3ZKRP.js} +8 -8
  92. package/dist/cli/{feedback-EUX5PDBA.mjs → feedback-R5UQXINE.mjs} +4 -4
  93. package/dist/cli/{git-UOVG4PLH.mjs → git-7B4H7VEL.mjs} +5 -5
  94. package/dist/cli/git-BX27JAW4.js +25 -0
  95. package/dist/cli/index.js +161 -142
  96. package/dist/cli/index.mjs +65 -46
  97. package/dist/cli/{legacy-noops-3H35EH5Y.js → legacy-noops-AVT6T5QI.js} +8 -8
  98. package/dist/cli/{legacy-noops-ZBWUNFWV.mjs → legacy-noops-KY7JAALE.mjs} +5 -5
  99. package/dist/cli/{monitors-AYSGSUAK.mjs → monitors-G7L7AFXR.mjs} +7 -7
  100. package/dist/cli/{monitors-PI3KPLR2.js → monitors-GZB6CWK2.js} +91 -91
  101. package/dist/cli/{org-2BIG7U4V.mjs → org-QDUBOQTH.mjs} +6 -6
  102. package/dist/cli/{org-MVS3Y6BK.js → org-ZHHKAPCE.js} +72 -72
  103. package/dist/cli/{pages-VB6FOVDE.js → pages-5P3SPMN5.js} +17 -17
  104. package/dist/cli/{pages-4TRRL24G.mjs → pages-Q4WGQCST.mjs} +6 -6
  105. package/dist/cli/{play-BLT6IT2O.js → play-IRLKESZB.js} +585 -678
  106. package/dist/cli/{play-JR3VUOZM.mjs → play-WRSHD4RE.mjs} +26 -119
  107. package/dist/cli/{providers-547DPK4S.mjs → providers-7CQUHS57.mjs} +6 -6
  108. package/dist/cli/{providers-BBXIAGW4.js → providers-LKEYLN6D.js} +9 -9
  109. package/dist/cli/{quickstart-NTLXD7HS.mjs → quickstart-I6NYGMEE.mjs} +4 -4
  110. package/dist/cli/{quickstart-RNPI5B6J.js → quickstart-KS45M5SR.js} +6 -6
  111. package/dist/cli/{run-QZ4SFECD.mjs → run-AZETCL7R.mjs} +22 -22
  112. package/dist/cli/{run-BCCEXBOG.js → run-BLMOBNAN.js} +36 -36
  113. package/dist/cli/{search-PYNELH4C.mjs → search-EEKEP67Y.mjs} +7 -7
  114. package/dist/cli/search-PEQXXY2B.js +32 -0
  115. package/dist/cli/{secrets-O5WGREQ7.mjs → secrets-HAULG2EW.mjs} +6 -6
  116. package/dist/cli/{secrets-VD35LMYJ.js → secrets-M6NU3TD2.js} +15 -15
  117. package/dist/cli/{sessions-2TL6Z5J5.mjs → sessions-5MB4XKOK.mjs} +5 -5
  118. package/dist/cli/{sessions-NGGIBYXF.js → sessions-DSR5AHIA.js} +6 -6
  119. package/dist/cli/{settings-ERFNZRHO.js → settings-6US327NQ.js} +78 -78
  120. package/dist/cli/{settings-6KM74AJT.mjs → settings-JUQP4HYQ.mjs} +11 -11
  121. package/dist/cli/{setup-6X7EJ6RG.js → setup-5ZRSEQUD.js} +44 -44
  122. package/dist/cli/{setup-Y3BN6XRS.mjs → setup-JRH4UC47.mjs} +9 -9
  123. package/dist/cli/{skills-OUBQASHI.mjs → skills-HFOZ5WDH.mjs} +7 -7
  124. package/dist/cli/skills-P67KCVDR.js +33 -0
  125. package/dist/cli/{tools-EELZ5FF5.mjs → tools-CJEBZNPB.mjs} +16 -16
  126. package/dist/cli/tools-PDBEAI22.js +55 -0
  127. package/dist/cli/update-G6DI3BQW.js +33 -0
  128. package/dist/cli/{update-TX7SW32Y.mjs → update-VQJEPAAK.mjs} +9 -9
  129. package/dist/cli/{workflow-PUNQG7LG.mjs → workflow-EYWE3T75.mjs} +7 -7
  130. package/dist/cli/{workflow-5AI2BJA7.js → workflow-NKPDRZOP.js} +17 -17
  131. package/dist/{client-AjmfA5nR.d.mts → client-B9N1bcGc.d.mts} +1 -1
  132. package/dist/{client-DMyY-QL8.d.ts → client-Btw075Hq.d.ts} +1 -1
  133. package/dist/{client-core-C705vFyV.d.ts → client-core-DvGWlwtX.d.ts} +45 -6
  134. package/dist/{client-core-CpBbvLEX.d.mts → client-core-TulbIeRB.d.mts} +45 -6
  135. package/dist/{compiler-manifest-hqIAukR0.d.mts → compiler-manifest-gkO9ZkVg.d.mts} +37 -17
  136. package/dist/{compiler-manifest-hqIAukR0.d.ts → compiler-manifest-gkO9ZkVg.d.ts} +37 -17
  137. package/dist/{errors-CRO2qQ6k.d.ts → errors-Cc92LKH-.d.ts} +1 -1
  138. package/dist/{errors-DIHVetNY.d.mts → errors-CeCCOKSA.d.mts} +1 -1
  139. package/dist/{index-B8DVoeYt.d.ts → index-DJQKdV76.d.ts} +1 -1
  140. package/dist/{index-DVZ_X4Gb.d.mts → index-DsqWJL3Q.d.mts} +1 -1
  141. package/dist/index.d.mts +15 -9
  142. package/dist/index.d.ts +15 -9
  143. package/dist/index.js +9 -9
  144. package/dist/index.mjs +6 -6
  145. package/dist/install-integrity.json +112 -110
  146. package/dist/plays/bundle-play-file.d.mts +3 -3
  147. package/dist/plays/bundle-play-file.d.ts +3 -3
  148. package/dist/plays/bundle-play-file.mjs +2 -1
  149. package/dist/plays/play-description.d.mts +2 -2
  150. package/dist/plays/play-description.d.ts +2 -2
  151. package/dist/plays/run-request.d.mts +2 -2
  152. package/dist/plays/run-request.d.ts +2 -2
  153. package/dist/release.d.mts +1 -1
  154. package/dist/release.d.ts +1 -1
  155. package/dist/release.js +2 -2
  156. package/dist/release.mjs +1 -1
  157. package/dist/server.d.mts +4 -4
  158. package/dist/server.d.ts +4 -4
  159. package/dist/server.js +5 -5
  160. package/dist/server.mjs +3 -3
  161. package/package.json +1 -1
  162. package/dist/cli/auth-QITP34OX.js +0 -41
  163. package/dist/cli/describe-PI7HCT7K.js +0 -48
  164. package/dist/cli/git-NDOGCQZY.js +0 -25
  165. package/dist/cli/search-YHEICYQL.js +0 -32
  166. package/dist/cli/skills-F7MPYC4P.js +0 -33
  167. package/dist/cli/tools-MCWDAK53.js +0 -55
  168. package/dist/cli/update-G5BRJOVT.js +0 -33
package/dist/cli/index.js CHANGED
@@ -7,20 +7,20 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkUBNS6GSVjs = require('./chunk-UBNS6GSV.js');
11
- require('./chunk-E2CUSH56.js');
12
- require('./chunk-255O6APS.js');
13
- require('./chunk-RGNMMDSJ.js');
10
+ var _chunkVRZXGJXHjs = require('./chunk-VRZXGJXH.js');
11
+ require('./chunk-G6V34EQ5.js');
12
+ require('./chunk-3GIM7XRH.js');
13
+ require('./chunk-AFHFZU5V.js');
14
14
 
15
15
 
16
- var _chunk23EEVP5Wjs = require('./chunk-23EEVP5W.js');
16
+ var _chunkJMCTNS6Sjs = require('./chunk-JMCTNS6S.js');
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkDMWHEYZMjs = require('./chunk-DMWHEYZM.js');
23
+ var _chunkW4HIOBQQjs = require('./chunk-W4HIOBQQ.js');
24
24
 
25
25
 
26
26
 
@@ -38,15 +38,15 @@ var _chunkDMWHEYZMjs = require('./chunk-DMWHEYZM.js');
38
38
 
39
39
 
40
40
 
41
- var _chunk4RAENEAXjs = require('./chunk-4RAENEAX.js');
41
+ var _chunkOVFCPV24js = require('./chunk-OVFCPV24.js');
42
42
 
43
43
 
44
- var _chunkKWQNNPMHjs = require('./chunk-KWQNNPMH.js');
44
+ var _chunkAKVNUNL7js = require('./chunk-AKVNUNL7.js');
45
45
 
46
46
 
47
47
 
48
48
 
49
- var _chunkWFVEMDQLjs = require('./chunk-WFVEMDQL.js');
49
+ var _chunkOKAZHDYNjs = require('./chunk-OKAZHDYN.js');
50
50
 
51
51
 
52
52
 
@@ -59,7 +59,7 @@ var _chunkWFVEMDQLjs = require('./chunk-WFVEMDQL.js');
59
59
 
60
60
 
61
61
 
62
- var _chunkM2UL4ZS5js = require('./chunk-M2UL4ZS5.js');
62
+ var _chunkLXYDN5FEjs = require('./chunk-LXYDN5FE.js');
63
63
 
64
64
 
65
65
 
@@ -67,17 +67,18 @@ var _chunkM2UL4ZS5js = require('./chunk-M2UL4ZS5.js');
67
67
 
68
68
 
69
69
 
70
- var _chunkNC52JG66js = require('./chunk-NC52JG66.js');
70
+ var _chunk3SGA53DXjs = require('./chunk-3SGA53DX.js');
71
71
 
72
72
 
73
73
 
74
- var _chunkACDXGOXEjs = require('./chunk-ACDXGOXE.js');
74
+
75
+ var _chunk33O2JGHEjs = require('./chunk-33O2JGHE.js');
75
76
 
76
77
 
77
78
  var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
78
79
  require('./chunk-XNYIZMNQ.js');
79
80
  require('./chunk-DIAWYWT5.js');
80
- require('./chunk-6KKDIISC.js');
81
+ require('./chunk-GQCH6Y7W.js');
81
82
  require('./chunk-OG64RBAC.js');
82
83
  require('./chunk-COGTRVWW.js');
83
84
 
@@ -142,56 +143,56 @@ var _os = require('os');
142
143
  var COMMAND_GROUPS = [
143
144
  {
144
145
  names: ["auth"],
145
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-QITP34OX.js")))).registerAuthCommands
146
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MZDFNRPG.js")))).registerAuthCommands
146
147
  },
147
148
  {
148
149
  names: ["providers"],
149
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-BBXIAGW4.js")))).registerProviderCommands
150
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-LKEYLN6D.js")))).registerProviderCommands
150
151
  },
151
152
  {
152
153
  names: ["search"],
153
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-YHEICYQL.js")))).registerSearchCommand
154
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-PEQXXY2B.js")))).registerSearchCommand
154
155
  },
155
156
  {
156
157
  names: ["describe"],
157
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-PI7HCT7K.js")))).registerDescribeCommand
158
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-THHHNUEA.js")))).registerDescribeCommand
158
159
  },
159
160
  {
160
161
  names: ["run"],
161
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-BCCEXBOG.js")))).registerRunCommand
162
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-BLMOBNAN.js")))).registerRunCommand
162
163
  },
163
164
  {
164
165
  names: ["tools"],
165
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-MCWDAK53.js")))).registerToolsCommands
166
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-PDBEAI22.js")))).registerToolsCommands
166
167
  },
167
168
  {
168
169
  names: ["executions"],
169
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-ZE3JMNA4.js")))).registerExecutionsCommands
170
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-B3GDZ4GQ.js")))).registerExecutionsCommands
170
171
  },
171
172
  {
172
173
  names: ["plays", "runs"],
173
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-BLT6IT2O.js")))).registerPlayCommands
174
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-IRLKESZB.js")))).registerPlayCommands
174
175
  },
175
176
  {
176
177
  names: ["sessions"],
177
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-NGGIBYXF.js")))).registerSessionsCommands
178
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-DSR5AHIA.js")))).registerSessionsCommands
178
179
  },
179
180
  {
180
181
  names: ["workflows"],
181
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-5AI2BJA7.js")))).registerWorkflowCommands
182
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-NKPDRZOP.js")))).registerWorkflowCommands
182
183
  },
183
184
  {
184
185
  names: ["pages"],
185
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-VB6FOVDE.js")))).registerPagesCommands
186
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-5P3SPMN5.js")))).registerPagesCommands
186
187
  },
187
188
  {
188
189
  names: ["secrets"],
189
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-VD35LMYJ.js")))).registerSecretsCommands
190
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-M6NU3TD2.js")))).registerSecretsCommands
190
191
  },
191
192
  {
192
193
  names: ["settings", "notifications"],
193
194
  load: async () => {
194
- const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-ERFNZRHO.js")));
195
+ const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-6US327NQ.js")));
195
196
  return (p) => {
196
197
  commands.registerSettingsCommands(p);
197
198
  commands.registerNotificationCommands(p);
@@ -200,51 +201,51 @@ var COMMAND_GROUPS = [
200
201
  },
201
202
  {
202
203
  names: ["billing"],
203
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-2H7GFJDT.js")))).registerBillingCommands
204
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-DHGSNM6E.js")))).registerBillingCommands
204
205
  },
205
206
  {
206
207
  names: ["monitors"],
207
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-PI3KPLR2.js")))).registerMonitorsCommands
208
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-GZB6CWK2.js")))).registerMonitorsCommands
208
209
  },
209
210
  {
210
211
  names: ["org"],
211
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-MVS3Y6BK.js")))).registerOrgCommands
212
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-ZHHKAPCE.js")))).registerOrgCommands
212
213
  },
213
214
  {
214
215
  names: ["git", "projects", "deployments"],
215
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-NDOGCQZY.js")))).registerGitCommands
216
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-BX27JAW4.js")))).registerGitCommands
216
217
  },
217
218
  {
218
219
  names: ["csv"],
219
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-ECB7TYR2.js")))).registerCsvCommands
220
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-DQWOZ2BL.js")))).registerCsvCommands
220
221
  },
221
222
  {
222
223
  names: ["db"],
223
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-S74XZZ77.js")))).registerDbCommands
224
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-Q2OAAXRX.js")))).registerDbCommands
224
225
  },
225
226
  {
226
227
  names: ["feedback"],
227
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-W6VA47A3.js")))).registerFeedbackCommands
228
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-5IW3ZKRP.js")))).registerFeedbackCommands
228
229
  },
229
230
  {
230
231
  names: ["enrich", "session", "backend"],
231
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-3H35EH5Y.js")))).registerDeprecatedCommands
232
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-AVT6T5QI.js")))).registerDeprecatedCommands
232
233
  },
233
234
  {
234
235
  names: ["update"],
235
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-G5BRJOVT.js")))).registerUpdateCommand
236
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-G6DI3BQW.js")))).registerUpdateCommand
236
237
  },
237
238
  {
238
239
  names: ["skills", "skills-auto-sync"],
239
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-F7MPYC4P.js")))).registerSkillsCommand
240
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-P67KCVDR.js")))).registerSkillsCommand
240
241
  },
241
242
  {
242
243
  names: ["setup", "doctor"],
243
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-6X7EJ6RG.js")))).registerSetupCommands
244
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-5ZRSEQUD.js")))).registerSetupCommands
244
245
  },
245
246
  {
246
247
  names: ["quickstart"],
247
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-RNPI5B6J.js")))).registerQuickstartCommands
248
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-KS45M5SR.js")))).registerQuickstartCommands
248
249
  }
249
250
  ];
250
251
  async function registerDeeplineCommandGroups(program, requestedCommand) {
@@ -270,25 +271,25 @@ function registerDeeplineInlineCommands(program) {
270
271
  function createDeferredPlayRunMaintenance(input) {
271
272
  return async () => {
272
273
  try {
273
- const skillsVersion = _chunkNC52JG66js.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
274
- const compatibility = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
274
+ const skillsVersion = _chunk3SGA53DXjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
275
+ const compatibility = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
275
276
  "cli.sdk_compatibility_deferred",
276
277
  {
277
278
  baseUrl: input.baseUrl,
278
279
  command: "plays run",
279
280
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
280
281
  },
281
- () => _chunk4RAENEAXjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
282
+ () => _chunkOVFCPV24js.checkSdkCompatibility.call(void 0, input.baseUrl, {
282
283
  command: "plays run",
283
284
  skillsVersion,
284
285
  persistCache: input.policy !== "off",
285
- catalog: _chunkUBNS6GSVjs.compatibilityCatalog.call(void 0, input.command)
286
+ catalog: _chunkVRZXGJXHjs.compatibilityCatalog.call(void 0, input.command)
286
287
  })
287
288
  );
288
289
  if (compatibility.error || !compatibility.response) return;
289
290
  const automaticUpdate = compatibility.response.auto_update;
290
291
  if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
291
- await _chunkUBNS6GSVjs.maybeAutoUpdateAndRelaunch.call(void 0,
292
+ await _chunkVRZXGJXHjs.maybeAutoUpdateAndRelaunch.call(void 0,
292
293
  compatibility.response,
293
294
  input.baseUrl,
294
295
  input.policy
@@ -298,7 +299,7 @@ function createDeferredPlayRunMaintenance(input) {
298
299
  compatibility.response,
299
300
  "skills"
300
301
  ) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
301
- await _chunk4RAENEAXjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
302
+ await _chunkOVFCPV24js.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
302
303
  update: skillsUpdate,
303
304
  mode: "detached"
304
305
  });
@@ -326,8 +327,8 @@ var MAX_SESSIONS = 20;
326
327
  function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
327
328
  return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
328
329
  }
329
- function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkACDXGOXEjs.agentSessionIdFromEnvironment.call(void 0, )) {
330
- const explicit = _chunkWFVEMDQLjs.helpDetailFromArgv.call(void 0, argv);
330
+ function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunk33O2JGHEjs.agentSessionIdFromEnvironment.call(void 0, )) {
331
+ const explicit = _chunkOKAZHDYNjs.helpDetailFromArgv.call(void 0, argv);
331
332
  if (explicit === "quiet") return { detail: "quiet", firstRead: false };
332
333
  if (!sessionId) return { detail: explicit, firstRead: false };
333
334
  const path = helpSeenPath(homeDir);
@@ -424,7 +425,7 @@ function shouldReport(stdout, stderr) {
424
425
  }
425
426
  function toolName(action) {
426
427
  const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
427
- return typeof toolId === "string" ? _chunk4RAENEAXjs.redactFailureText.call(void 0, toolId) : null;
428
+ return typeof toolId === "string" ? _chunkOVFCPV24js.redactFailureText.call(void 0, toolId) : null;
428
429
  }
429
430
  function chunkText(chunk) {
430
431
  if (typeof chunk === "string") return chunk;
@@ -455,14 +456,14 @@ function watch(stream) {
455
456
  }
456
457
  async function postCommandOutput(body) {
457
458
  try {
458
- const baseUrl = _chunkNC52JG66js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
459
- const apiKey = _chunkNC52JG66js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
459
+ const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
460
+ const apiKey = _chunk3SGA53DXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
460
461
  if (!apiKey) return;
461
- const agentSessionId = _chunkACDXGOXEjs.agentSessionIdFromEnvironment.call(void 0, );
462
+ const agentSessionId = _chunk33O2JGHEjs.agentSessionIdFromEnvironment.call(void 0, );
462
463
  await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
463
464
  method: "POST",
464
465
  headers: {
465
- ..._chunk4RAENEAXjs.failureReportHeaders.call(void 0, apiKey),
466
+ ..._chunkOVFCPV24js.failureReportHeaders.call(void 0, apiKey),
466
467
  ...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
467
468
  },
468
469
  body: JSON.stringify(body),
@@ -478,14 +479,14 @@ function startOutputSizeReporting(invocation, streams = {
478
479
  const stdoutWatch = watch(streams.stdout);
479
480
  const stderrWatch = watch(streams.stderr);
480
481
  return async (finished) => {
481
- if (_chunk4RAENEAXjs.isFailureReportingDisabled.call(void 0, )) return;
482
+ if (_chunkOVFCPV24js.isFailureReportingDisabled.call(void 0, )) return;
482
483
  const [stdout, stderr] = await Promise.all([
483
484
  stdoutWatch.settled(),
484
485
  stderrWatch.settled()
485
486
  ]);
486
487
  if (!shouldReport(stdout, stderr)) return;
487
488
  await postCommandOutput({
488
- command: _chunk4RAENEAXjs.sanitizeCommand.call(void 0, invocation.argv),
489
+ command: _chunkOVFCPV24js.sanitizeCommand.call(void 0, invocation.argv),
489
490
  tool: toolName(finished.action),
490
491
  exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
491
492
  duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
@@ -516,7 +517,7 @@ function silenceCommanderErrorOutput(command) {
516
517
  function printUsageErrorJson(code, message, commandPath) {
517
518
  const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
518
519
  const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
519
- _chunkM2UL4ZS5js.printJson.call(void 0, {
520
+ _chunkLXYDN5FEjs.printJson.call(void 0, {
520
521
  ok: false,
521
522
  error: {
522
523
  code,
@@ -578,7 +579,7 @@ function topLevelCommandKnown(program, commandName) {
578
579
  );
579
580
  }
580
581
  async function runPlayRunnerHealthCheck() {
581
- _chunkNC52JG66js.resolveConfig.call(void 0, );
582
+ _chunk3SGA53DXjs.resolveConfig.call(void 0, );
582
583
  const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
583
584
  const file = _path.join.call(void 0, dir, "health-check.play.ts");
584
585
  try {
@@ -608,7 +609,7 @@ async function runPlayRunnerHealthCheck() {
608
609
  });
609
610
  let exitCode = 1;
610
611
  try {
611
- const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-BLT6IT2O.js")));
612
+ const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-IRLKESZB.js")));
612
613
  exitCode = await handlePlayRun([
613
614
  file,
614
615
  "--input",
@@ -648,7 +649,7 @@ function preflightErrorMessage(error) {
648
649
  return error instanceof Error ? error.message : String(error);
649
650
  }
650
651
  async function runPreflightCheck() {
651
- const baseUrl = _chunkNC52JG66js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
652
+ const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
652
653
  const healthController = new AbortController();
653
654
  const healthTimeout = setTimeout(
654
655
  () => healthController.abort(),
@@ -662,10 +663,17 @@ async function runPreflightCheck() {
662
663
  status: response.ok ? _nullishCoalesce(pickString(payload, "status"), () => ( "ok")) : "unreachable",
663
664
  version: pickString(payload, "version")
664
665
  };
665
- }).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
666
- const apiKey = _chunkNC52JG66js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
667
- const http = apiKey ? new (0, _chunkNC52JG66js.HttpClient)(
668
- _chunkNC52JG66js.resolveConfig.call(void 0, {
666
+ }).catch((error) => ({
667
+ status: "unreachable",
668
+ version: null,
669
+ error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunk33O2JGHEjs.connectionFailureMessage.call(void 0,
670
+ baseUrl,
671
+ error instanceof Error ? error : new Error(String(error))
672
+ )
673
+ })).finally(() => clearTimeout(healthTimeout));
674
+ const apiKey = _chunk3SGA53DXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
675
+ const http = apiKey ? new (0, _chunk3SGA53DXjs.HttpClient)(
676
+ _chunk3SGA53DXjs.resolveConfig.call(void 0, {
669
677
  baseUrl,
670
678
  apiKey,
671
679
  timeout: PREFLIGHT_TIMEOUT_MS,
@@ -710,11 +718,12 @@ async function runPreflightCheck() {
710
718
  const connected = authStatus === "connected" || authStatus === "claimed";
711
719
  return {
712
720
  status: healthResult.status === "ok" && connected ? "ok" : "check",
713
- cli_version: _chunkACDXGOXEjs.SDK_VERSION,
721
+ cli_version: _chunk33O2JGHEjs.SDK_VERSION,
714
722
  host: baseUrl,
715
723
  health: {
716
724
  status: healthResult.status,
717
- version: _nullishCoalesce(healthResult.version, () => ( null))
725
+ version: _nullishCoalesce(healthResult.version, () => ( null)),
726
+ ..."error" in healthResult ? { error: healthResult.error } : {}
718
727
  },
719
728
  auth: {
720
729
  status: authStatus,
@@ -736,12 +745,14 @@ async function runPreflightCheck() {
736
745
  {
737
746
  title: "preflight",
738
747
  lines: [
739
- `cli: ${_chunkACDXGOXEjs.SDK_VERSION}`,
748
+ `cli: ${_chunk33O2JGHEjs.SDK_VERSION}`,
740
749
  `host: ${baseUrl}`,
741
750
  `health: ${healthResult.status}`,
751
+ ..."error" in healthResult ? [` ${healthResult.error}`] : [],
742
752
  `auth: ${authStatus}`,
743
753
  `billing: ${balanceDisplay} (${balanceStatus})`,
744
- ...connected ? [] : [`next: ${AUTH_RECOVERY_COMMAND}`]
754
+ // Registering cannot fix a host this machine cannot reach.
755
+ ...connected || healthResult.status !== "ok" ? [] : [`next: ${AUTH_RECOVERY_COMMAND}`]
745
756
  ]
746
757
  }
747
758
  ]
@@ -761,12 +772,12 @@ function printPreflightHuman(data) {
761
772
  }
762
773
  async function newerCliCommandHint(baseUrl, command) {
763
774
  if (!command.trim()) return null;
764
- const { response, error } = await _chunk4RAENEAXjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
775
+ const { response, error } = await _chunkOVFCPV24js.checkSdkCompatibility.call(void 0, baseUrl, { command });
765
776
  if (error || !response) return null;
766
777
  const introduced = response.command_introduced_in;
767
778
  if (introduced) {
768
779
  return [
769
- `\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkACDXGOXEjs.SDK_VERSION}.`,
780
+ `\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunk33O2JGHEjs.SDK_VERSION}.`,
770
781
  ` ${introduced.reason}`,
771
782
  ` Update with: ${response.update_command}`,
772
783
  " Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
@@ -775,31 +786,31 @@ async function newerCliCommandHint(baseUrl, command) {
775
786
  if (!response.update_required) return null;
776
787
  return [
777
788
  response.message,
778
- ` Installed: ${_chunkACDXGOXEjs.SDK_VERSION}. Run: ${response.update_command}`,
789
+ ` Installed: ${_chunk33O2JGHEjs.SDK_VERSION}. Run: ${response.update_command}`,
779
790
  " If an agent skill told you to run this, the skill is newer than this CLI."
780
791
  ].join("\n");
781
792
  }
782
793
  async function runMain(ensureTransport, onAction) {
783
794
  const mainStartedAt = Date.now();
784
- _chunkM2UL4ZS5js.installJsonStderrGuard.call(void 0, );
795
+ _chunkLXYDN5FEjs.installJsonStderrGuard.call(void 0, );
785
796
  let rootHelpStatus = "";
786
797
  const deferredMaintenance = { inlinePlay: null };
787
- _chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
798
+ _chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
788
799
  phase: "cli.main_start",
789
800
  argv: process.argv.slice(2)
790
801
  });
791
802
  const printStartupPhase = shouldPrintStartupPhase();
792
- const progress = printStartupPhase ? _chunkKWQNNPMHjs.createCliProgress.call(void 0, true) : null;
803
+ const progress = printStartupPhase ? _chunkAKVNUNL7js.createCliProgress.call(void 0, true) : null;
793
804
  if (printStartupPhase) {
794
805
  _optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
795
806
  }
796
807
  const program = new (0, _commander.Command)();
797
808
  program.name("deepline").description(
798
809
  "Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
799
- ).version(_chunkACDXGOXEjs.SDK_VERSION, "-v, --version", "Show version").option(
810
+ ).version(_chunk33O2JGHEjs.SDK_VERSION, "-v, --version", "Show version").option(
800
811
  "--maintenance <policy>",
801
812
  "Installation maintenance: configured preferences or off; independent of output format",
802
- _chunkDMWHEYZMjs.parseCliMaintenancePolicy,
813
+ _chunkW4HIOBQQjs.parseCliMaintenancePolicy,
803
814
  "configured"
804
815
  ).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
805
816
  "beforeAll",
@@ -848,33 +859,33 @@ Exit codes:
848
859
  5 server/runtime/provider failure; 7 validation/check failed.
849
860
  `
850
861
  ).addHelpText("afterAll", ({ command }) => {
851
- const key = _chunkWFVEMDQLjs.commandDocKey.call(void 0, command);
862
+ const key = _chunkOKAZHDYNjs.commandDocKey.call(void 0, command);
852
863
  const { detail, firstRead } = resolveHelpDetail(process.argv, key);
853
- return _chunkWFVEMDQLjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
864
+ return _chunkOKAZHDYNjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
854
865
  });
855
866
  program.hook("preAction", async (_thisCommand, actionCommand) => {
856
867
  onAction({
857
868
  path: compatibilityCommandPath(actionCommand),
858
869
  args: actionCommand.processedArgs
859
870
  });
860
- const maintenance = _chunkDMWHEYZMjs.resolveCliMaintenancePolicy.call(void 0,
871
+ const maintenance = _chunkW4HIOBQQjs.resolveCliMaintenancePolicy.call(void 0,
861
872
  actionCommand.optsWithGlobals()
862
873
  );
863
874
  if (actionCommand.name() !== "version") {
864
875
  await ensureTransport();
865
876
  }
866
- if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunk4RAENEAXjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
877
+ if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkOVFCPV24js.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
867
878
  return;
868
879
  }
869
880
  const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
870
881
  const isToolExecuteCommand = compatibilityCommand === "tools execute";
871
882
  if (isToolExecuteCommand) {
872
- _chunkUBNS6GSVjs.beginToolExecuteCommand.call(void 0, );
883
+ _chunkVRZXGJXHjs.beginToolExecuteCommand.call(void 0, );
873
884
  }
874
885
  if (isToolExecuteCommand) {
875
- const baseUrl = _chunkNC52JG66js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
876
- if (maintenance !== "off") _chunk4RAENEAXjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
877
- _chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
886
+ const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
887
+ if (maintenance !== "off") _chunkOVFCPV24js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
888
+ _chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
878
889
  phase: "cli.sdk_compatibility_deferred_to_tool_execute",
879
890
  baseUrl,
880
891
  command: compatibilityCommand
@@ -882,10 +893,10 @@ Exit codes:
882
893
  return;
883
894
  }
884
895
  const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
885
- if (!playDryRun && _chunk23EEVP5Wjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
896
+ if (!playDryRun && _chunkJMCTNS6Sjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
886
897
  if (maintenance !== "off") {
887
- const baseUrl = _chunkNC52JG66js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
888
- _chunk4RAENEAXjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
898
+ const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
899
+ _chunkOVFCPV24js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
889
900
  deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
890
901
  baseUrl,
891
902
  command: actionCommand,
@@ -894,27 +905,27 @@ Exit codes:
894
905
  }
895
906
  return;
896
907
  }
897
- const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkUBNS6GSVjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
908
+ const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkVRZXGJXHjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
898
909
  if (printStartupPhase) {
899
910
  _optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
900
911
  }
901
912
  const startup = await runStartupStage("SDK compatibility", async () => {
902
- const baseUrl = _chunkNC52JG66js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
903
- if (maintenance !== "off") _chunk4RAENEAXjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
913
+ const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
914
+ if (maintenance !== "off") _chunkOVFCPV24js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
904
915
  const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
905
- const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkNC52JG66js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
906
- const trusted = isToolExecuteCommand ? null : _chunk4RAENEAXjs.readTrustedCleanCompatibility.call(void 0,
916
+ const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunk3SGA53DXjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
917
+ const trusted = isToolExecuteCommand ? null : _chunkOVFCPV24js.readTrustedCleanCompatibility.call(void 0,
907
918
  baseUrl,
908
919
  compatibilityCommand,
909
920
  skillsVersion
910
921
  );
911
- const fastDeadline = !isToolExecuteCommand && trusted === null && _chunk4RAENEAXjs.readFreshCleanCompatibility.call(void 0,
922
+ const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkOVFCPV24js.readFreshCleanCompatibility.call(void 0,
912
923
  baseUrl,
913
924
  compatibilityCommand,
914
925
  skillsVersion
915
926
  ) !== null;
916
927
  if (trusted) {
917
- _chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
928
+ _chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
918
929
  phase: "cli.sdk_compatibility",
919
930
  ms: 0,
920
931
  ok: true,
@@ -924,7 +935,7 @@ Exit codes:
924
935
  source: "trusted_cache"
925
936
  });
926
937
  }
927
- const compatibility = trusted ? { response: trusted, error: null } : await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
938
+ const compatibility = trusted ? { response: trusted, error: null } : await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
928
939
  "cli.sdk_compatibility",
929
940
  {
930
941
  baseUrl,
@@ -932,12 +943,12 @@ Exit codes:
932
943
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
933
944
  fastDeadline
934
945
  },
935
- () => _chunk4RAENEAXjs.checkSdkCompatibility.call(void 0, baseUrl, {
946
+ () => _chunkOVFCPV24js.checkSdkCompatibility.call(void 0, baseUrl, {
936
947
  command: compatibilityCommand,
937
948
  skillsVersion,
938
949
  persistCache: !isToolExecuteCommand && maintenance !== "off",
939
- catalog: _chunkUBNS6GSVjs.compatibilityCatalog.call(void 0, actionCommand),
940
- ...fastDeadline ? { timeoutMs: _chunk4RAENEAXjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
950
+ catalog: _chunkVRZXGJXHjs.compatibilityCatalog.call(void 0, actionCommand),
951
+ ...fastDeadline ? { timeoutMs: _chunkOVFCPV24js.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
941
952
  })
942
953
  );
943
954
  if (compatibility.error) {
@@ -948,7 +959,7 @@ Exit codes:
948
959
  response: null
949
960
  };
950
961
  }
951
- const relaunched = await _chunkUBNS6GSVjs.maybeAutoUpdateAndRelaunch.call(void 0,
962
+ const relaunched = await _chunkVRZXGJXHjs.maybeAutoUpdateAndRelaunch.call(void 0,
952
963
  compatibility.response,
953
964
  baseUrl,
954
965
  maintenance
@@ -962,14 +973,14 @@ Exit codes:
962
973
  };
963
974
  }
964
975
  const policy = compatibility.response;
965
- const jsonOutput = _chunkM2UL4ZS5js.isJsonOutputMode.call(void 0, );
966
- _chunk4RAENEAXjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
976
+ const jsonOutput = _chunkLXYDN5FEjs.isJsonOutputMode.call(void 0, );
977
+ _chunkOVFCPV24js.enforceSdkCompatibilityResponse.call(void 0, policy, {
967
978
  quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
968
- _chunkUBNS6GSVjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunk4RAENEAXjs.claimUpdateAdvisory.call(void 0, baseUrl)
979
+ _chunkVRZXGJXHjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkOVFCPV24js.claimUpdateAdvisory.call(void 0, baseUrl)
969
980
  });
970
981
  const advisory = compatibility.response;
971
- if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunk4RAENEAXjs.isCiEnvironment.call(void 0, ) && !_chunkUBNS6GSVjs.hasDeferredAutoUpdate.call(void 0, )) {
972
- _chunkM2UL4ZS5js.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
982
+ if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkOVFCPV24js.isCiEnvironment.call(void 0, ) && !_chunkVRZXGJXHjs.hasDeferredAutoUpdate.call(void 0, )) {
983
+ _chunkLXYDN5FEjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
973
984
  }
974
985
  return {
975
986
  shouldContinue: true,
@@ -986,10 +997,10 @@ Exit codes:
986
997
  const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
987
998
  await runStartupStage(
988
999
  "agent skills sync",
989
- () => _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
1000
+ () => _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
990
1001
  "cli.sdk_skills_sync",
991
1002
  { baseUrl: startup.baseUrl },
992
- () => _chunk4RAENEAXjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
1003
+ () => _chunkOVFCPV24js.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
993
1004
  update: skillsUpdate,
994
1005
  mode: "detached"
995
1006
  })
@@ -998,19 +1009,19 @@ Exit codes:
998
1009
  }
999
1010
  });
1000
1011
  const requestedCommand = process.argv[2];
1001
- const commandRegistrationStartedAt = _chunkDMWHEYZMjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
1012
+ const commandRegistrationStartedAt = _chunkW4HIOBQQjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
1002
1013
  await registerDeeplineCommandGroups(
1003
1014
  program,
1004
1015
  !requestedCommand || requestedCommand === "help" || requestedCommand.startsWith("-") && !["-v", "--version"].includes(requestedCommand) ? void 0 : requestedCommand
1005
1016
  );
1006
1017
  if (commandRegistrationStartedAt !== void 0) {
1007
- _chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
1018
+ _chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
1008
1019
  phase: "cli.command_registration",
1009
1020
  ms: performance.now() - commandRegistrationStartedAt
1010
1021
  });
1011
1022
  }
1012
1023
  const { preflight, health, version } = registerDeeplineInlineCommands(program);
1013
- if (_chunkM2UL4ZS5js.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
1024
+ if (_chunkLXYDN5FEjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
1014
1025
  preflight.addHelpText(
1015
1026
  "after",
1016
1027
  `
@@ -1018,6 +1029,7 @@ Notes:
1018
1029
  Read-only setup check for the configured Deepline host. Shows the CLI version,
1019
1030
  server health, auth connection, and customer-visible Deepline balance in one
1020
1031
  compact command. When auth is missing it prints the command that connects it.
1032
+ Exits 4 when the host is unreachable.
1021
1033
 
1022
1034
  Examples:
1023
1035
  deepline preflight
@@ -1025,11 +1037,14 @@ Examples:
1025
1037
  `
1026
1038
  ).action(async (options) => {
1027
1039
  const data = await runPreflightCheck();
1028
- if (_chunkM2UL4ZS5js.shouldEmitJson.call(void 0, options.json)) {
1029
- _chunkM2UL4ZS5js.printJson.call(void 0, data);
1040
+ if (_chunkLXYDN5FEjs.shouldEmitJson.call(void 0, options.json)) {
1041
+ _chunkLXYDN5FEjs.printJson.call(void 0, data);
1030
1042
  } else {
1031
1043
  printPreflightHuman(data);
1032
1044
  }
1045
+ if (data.health.status === "unreachable") {
1046
+ process.exitCode = 4;
1047
+ }
1033
1048
  });
1034
1049
  health.addHelpText(
1035
1050
  "after",
@@ -1048,7 +1063,7 @@ Examples:
1048
1063
  ).action(async (options) => {
1049
1064
  if (options.playRunner) {
1050
1065
  const data = await runPlayRunnerHealthCheck();
1051
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, data, {
1066
+ _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, data, {
1052
1067
  json: options.json,
1053
1068
  text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
1054
1069
  `
@@ -1056,15 +1071,15 @@ Examples:
1056
1071
  return;
1057
1072
  }
1058
1073
  try {
1059
- const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-QITP34OX.js")));
1060
- const baseUrl = _chunkNC52JG66js.resolveBaseUrlOnly.call(void 0, );
1074
+ const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MZDFNRPG.js")));
1075
+ const baseUrl = _chunk3SGA53DXjs.resolveBaseUrlOnly.call(void 0, );
1061
1076
  const [{ status, data }, banner] = await Promise.all([
1062
1077
  httpJson("GET", `${baseUrl}/api/v2/health`, null),
1063
1078
  readStatusBanner(baseUrl)
1064
1079
  ]);
1065
1080
  if (status !== 200) throw new Error(`HTTP ${status}`);
1066
1081
  const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
1067
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
1082
+ _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
1068
1083
  { ...data, status_banner: banner },
1069
1084
  {
1070
1085
  json: options.json,
@@ -1092,16 +1107,16 @@ Examples:
1092
1107
  `
1093
1108
  ).action((options) => {
1094
1109
  if (options.json) {
1095
- _chunkM2UL4ZS5js.printCompactJson.call(void 0, { version: _chunkACDXGOXEjs.SDK_VERSION });
1110
+ _chunkLXYDN5FEjs.printCompactJson.call(void 0, { version: _chunk33O2JGHEjs.SDK_VERSION });
1096
1111
  return;
1097
1112
  }
1098
- process.stdout.write(`deepline ${_chunkACDXGOXEjs.SDK_VERSION}
1113
+ process.stdout.write(`deepline ${_chunk33O2JGHEjs.SDK_VERSION}
1099
1114
  `);
1100
1115
  });
1101
1116
  if (process.argv.slice(2).length === 0) {
1102
1117
  program.outputHelp({ error: true });
1103
1118
  console.error("\nerror: missing command (see usage above)");
1104
- _chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
1119
+ _chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
1105
1120
  phase: "cli.main_total",
1106
1121
  ms: Date.now() - mainStartedAt,
1107
1122
  ok: false,
@@ -1113,16 +1128,16 @@ Examples:
1113
1128
  const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
1114
1129
  if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
1115
1130
  const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
1116
- if (!_chunkM2UL4ZS5js.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
1117
- const baseUrl = _chunkNC52JG66js.autoDetectBaseUrl.call(void 0, );
1131
+ if (!_chunkLXYDN5FEjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
1132
+ const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, );
1118
1133
  await ensureTransport();
1119
1134
  const versionHint = await newerCliCommandHint(
1120
1135
  baseUrl,
1121
1136
  requestedTopLevelCommand
1122
1137
  );
1123
- if (_chunkM2UL4ZS5js.isJsonOutputMode.call(void 0, )) {
1138
+ if (_chunkLXYDN5FEjs.isJsonOutputMode.call(void 0, )) {
1124
1139
  if (versionHint) {
1125
- _chunkM2UL4ZS5js.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
1140
+ _chunkLXYDN5FEjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
1126
1141
  }
1127
1142
  printUsageErrorJson(
1128
1143
  "commander.unknownCommand",
@@ -1144,32 +1159,32 @@ Examples:
1144
1159
  const helpArgs = process.argv.slice(2);
1145
1160
  const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
1146
1161
  if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
1147
- const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-QITP34OX.js")));
1148
- rootHelpStatus = `Version: ${_chunkACDXGOXEjs.SDK_VERSION}
1162
+ const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MZDFNRPG.js")));
1163
+ rootHelpStatus = `Version: ${_chunk33O2JGHEjs.SDK_VERSION}
1149
1164
  ${await authStatusLine()}
1150
1165
  `;
1151
1166
  }
1152
1167
  await program.parseAsync(process.argv);
1153
- _chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
1168
+ _chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
1154
1169
  phase: "cli.main_total",
1155
1170
  ms: Date.now() - mainStartedAt,
1156
1171
  ok: true
1157
1172
  });
1158
- await _chunk4RAENEAXjs.maybeReportSdkCliFailure.call(void 0, {
1173
+ await _chunkOVFCPV24js.maybeReportSdkCliFailure.call(void 0, {
1159
1174
  argv: process.argv.slice(2),
1160
1175
  startedAtMs: mainStartedAt,
1161
1176
  exitCode: typeof process.exitCode === "number" ? process.exitCode : null
1162
1177
  });
1163
1178
  } catch (error) {
1164
1179
  const commanderError = asCommanderError(error);
1165
- _chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
1180
+ _chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
1166
1181
  phase: "cli.main_total",
1167
1182
  ms: Date.now() - mainStartedAt,
1168
1183
  ok: false,
1169
1184
  error: error instanceof Error ? error.message : String(error)
1170
1185
  });
1171
1186
  _optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
1172
- const wantsJson = _chunkM2UL4ZS5js.isJsonOutputMode.call(void 0, );
1187
+ const wantsJson = _chunkLXYDN5FEjs.isJsonOutputMode.call(void 0, );
1173
1188
  if (commanderError) {
1174
1189
  const grammarError = [
1175
1190
  "commander.unknownCommand",
@@ -1180,12 +1195,12 @@ ${await authStatusLine()}
1180
1195
  if (grammarError) {
1181
1196
  await ensureTransport();
1182
1197
  const versionHint = await newerCliCommandHint(
1183
- _chunkNC52JG66js.autoDetectBaseUrl.call(void 0, ),
1198
+ _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ),
1184
1199
  commandPath
1185
1200
  );
1186
1201
  if (wantsJson) {
1187
1202
  if (versionHint) {
1188
- _chunkM2UL4ZS5js.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
1203
+ _chunkLXYDN5FEjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
1189
1204
  }
1190
1205
  } else {
1191
1206
  if (versionHint) console.error(versionHint);
@@ -1205,49 +1220,53 @@ ${await authStatusLine()}
1205
1220
  return;
1206
1221
  } else if (wantsJson) {
1207
1222
  if (error instanceof _chunkALJJRZNJjs.AuthError) {
1208
- _chunkM2UL4ZS5js.addJsonNotice.call(void 0, {
1223
+ _chunkLXYDN5FEjs.addJsonNotice.call(void 0, {
1209
1224
  code: "auth_required",
1210
1225
  message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
1211
1226
  });
1212
1227
  }
1213
- const providerConcurrency = _chunkM2UL4ZS5js.formatProviderConcurrencyDiagnostic.call(void 0, error);
1228
+ const providerConcurrency = _chunkLXYDN5FEjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
1214
1229
  if (providerConcurrency) {
1215
- _chunkM2UL4ZS5js.addJsonNotice.call(void 0, {
1230
+ _chunkLXYDN5FEjs.addJsonNotice.call(void 0, {
1216
1231
  code: "provider_concurrency",
1217
1232
  message: providerConcurrency
1218
1233
  });
1219
1234
  }
1220
- _chunkM2UL4ZS5js.printJson.call(void 0, {
1221
- ..._chunkM2UL4ZS5js.errorToJsonPayload.call(void 0, error),
1235
+ const payload = _chunkLXYDN5FEjs.errorToJsonPayload.call(void 0, error);
1236
+ _chunkLXYDN5FEjs.printJson.call(void 0, {
1237
+ ...payload,
1238
+ // The envelope names the code the process exits with, so a caller
1239
+ // that only reads stdout still cannot mistake a failure for data.
1240
+ exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkOVFCPV24js.resolveSdkCliFailureExitCode.call(void 0, error))),
1222
1241
  ...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
1223
1242
  });
1224
1243
  } else if (error instanceof Error) {
1225
1244
  console.error(`Error: ${error.message}`);
1226
- const toolDiagnostic = _chunkM2UL4ZS5js.formatToolExecutionErrorDiagnostic.call(void 0, error);
1245
+ const toolDiagnostic = _chunkLXYDN5FEjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
1227
1246
  if (toolDiagnostic) console.error(toolDiagnostic);
1228
1247
  if (error instanceof _chunkALJJRZNJjs.AuthError) {
1229
1248
  console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
1230
1249
  }
1231
- const providerConcurrency = _chunkM2UL4ZS5js.formatProviderConcurrencyDiagnostic.call(void 0, error);
1250
+ const providerConcurrency = _chunkLXYDN5FEjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
1232
1251
  if (providerConcurrency) console.error(providerConcurrency);
1233
1252
  } else {
1234
1253
  console.error(`Error: ${String(error)}`);
1235
1254
  }
1236
1255
  const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
1237
- const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunk4RAENEAXjs.resolveSdkCliFailureExitCode.call(void 0, error)));
1256
+ const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkOVFCPV24js.resolveSdkCliFailureExitCode.call(void 0, error)));
1238
1257
  process.exitCode = failureExitCode;
1239
- await _chunk4RAENEAXjs.maybeReportSdkCliFailure.call(void 0, {
1258
+ await _chunkOVFCPV24js.maybeReportSdkCliFailure.call(void 0, {
1240
1259
  argv: process.argv.slice(2),
1241
1260
  startedAtMs: mainStartedAt,
1242
1261
  exitCode: failureExitCode,
1243
1262
  error
1244
1263
  });
1245
1264
  } finally {
1246
- _chunkUBNS6GSVjs.finishToolExecuteCommand.call(void 0, );
1265
+ _chunkVRZXGJXHjs.finishToolExecuteCommand.call(void 0, );
1247
1266
  const maintainInlinePlay = deferredMaintenance.inlinePlay;
1248
1267
  deferredMaintenance.inlinePlay = null;
1249
1268
  await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
1250
- await _chunkUBNS6GSVjs.runDeferredAutoUpdate.call(void 0, );
1269
+ await _chunkVRZXGJXHjs.runDeferredAutoUpdate.call(void 0, );
1251
1270
  }
1252
1271
  process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
1253
1272
  }
@@ -1255,7 +1274,7 @@ async function main() {
1255
1274
  let disposeTransport;
1256
1275
  const ensureTransport = async () => {
1257
1276
  if (disposeTransport) return;
1258
- const transportStartedAt = _chunkDMWHEYZMjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
1277
+ const transportStartedAt = _chunkW4HIOBQQjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
1259
1278
  const hasProxy = [
1260
1279
  "HTTP_PROXY",
1261
1280
  "http_proxy",
@@ -1267,7 +1286,7 @@ async function main() {
1267
1286
  disposeTransport = configureCliTransport();
1268
1287
  }
1269
1288
  if (transportStartedAt !== void 0) {
1270
- _chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
1289
+ _chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
1271
1290
  phase: "cli.transport_setup",
1272
1291
  ms: performance.now() - transportStartedAt
1273
1292
  });
@@ -1284,9 +1303,9 @@ async function main() {
1284
1303
  action = dispatched;
1285
1304
  skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
1286
1305
  });
1287
- const silentFailure = _chunkM2UL4ZS5js.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
1306
+ const silentFailure = _chunkLXYDN5FEjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
1288
1307
  if (silentFailure) {
1289
- _chunkM2UL4ZS5js.printJson.call(void 0, {
1308
+ _chunkLXYDN5FEjs.printJson.call(void 0, {
1290
1309
  ok: false,
1291
1310
  exitCode: Number(process.exitCode),
1292
1311
  error: { code: "CLI_ERROR", message: silentFailure }