deepline 0.3.537 → 0.3.538

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 (204) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +22 -5
  2. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  3. package/dist/bundling-sources/sdk/src/plays/client-core.ts +18 -1
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +33 -4
  6. package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +1 -1
  7. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +1 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/baked-runner-image.ts +330 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +717 -133
  11. package/dist/bundling-sources/shared_libs/play-runtime/coordinator-headers.ts +7 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/daytona-payload-contract.ts +22 -1
  13. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +123 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +480 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +24 -16
  16. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +293 -53
  17. package/dist/bundling-sources/shared_libs/play-runtime/governor/block-reserving-budget-state-backend.ts +57 -2
  18. package/dist/bundling-sources/shared_libs/play-runtime/governor/budget-state-backend.ts +43 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +141 -9
  20. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +6 -0
  22. package/dist/bundling-sources/shared_libs/play-runtime/modal-supervisor-sidecar.ts +556 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +27 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +19 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +54 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +5 -0
  27. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +155 -3
  28. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/relay-connection-counter.ts +103 -0
  29. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +75 -6
  30. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +59 -0
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +544 -73
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +8 -1
  33. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/detached-runner-readiness-pacing.ts +19 -1
  34. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2390 -110
  35. package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +42 -8
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-read-through.ts +287 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-finish.ts +606 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +274 -119
  39. package/dist/bundling-sources/shared_libs/play-runtime/runtime-traffic-policy.ts +54 -0
  40. package/dist/bundling-sources/shared_libs/play-runtime/runtime-work-counters.ts +10 -1
  41. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +15 -0
  42. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-play-run-task.ts +18 -1
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +18 -4
  44. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +219 -7
  45. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +3 -0
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-claim-affinity.ts +340 -0
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +1 -0
  48. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +10 -1
  49. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +623 -7
  50. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +340 -5
  51. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runner-push.ts +61 -0
  52. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +2 -1
  53. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +269 -2
  54. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +238 -5
  55. package/dist/bundling-sources/shared_libs/play-runtime/startup-read-tool-ids.ts +47 -0
  56. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/runtime-step-receipts-adapter.ts +5 -4
  57. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +6 -0
  58. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +11 -0
  59. package/dist/cli/auth-4WEVLYK4.js +43 -0
  60. package/dist/cli/{auth-4SUPGDIM.mjs → auth-KYH7N7RQ.mjs} +5 -5
  61. package/dist/cli/{billing-SQU726P7.js → billing-4KTUVZ4S.js} +114 -90
  62. package/dist/cli/{billing-5JUA3ZM3.mjs → billing-WK346KAI.mjs} +31 -7
  63. package/dist/cli/{chunk-KULT6O5K.js → chunk-25RGHJQL.js} +15 -15
  64. package/dist/cli/{chunk-PJ4ZGZAN.js → chunk-34PLG5OE.js} +13 -13
  65. package/dist/cli/{chunk-37AZHCTP.mjs → chunk-35OCRH5C.mjs} +5 -5
  66. package/dist/cli/{chunk-JMHYDDBQ.js → chunk-3I5TU5XE.js} +292 -279
  67. package/dist/cli/{chunk-Y6AMMXWS.mjs → chunk-4KZF6OYY.mjs} +3 -3
  68. package/dist/cli/{chunk-BRRCWUOW.mjs → chunk-4NEOGPKD.mjs} +1 -1
  69. package/dist/cli/{chunk-NU7B5X6J.mjs → chunk-4WQR4DG4.mjs} +1 -1
  70. package/dist/cli/{chunk-AVQET3NR.js → chunk-5VSPRRTI.js} +7 -7
  71. package/dist/cli/{chunk-EEFSUCYP.mjs → chunk-6JG3MRTM.mjs} +2 -2
  72. package/dist/cli/{chunk-D77W6Q67.js → chunk-6SLQLWWL.js} +26 -26
  73. package/dist/cli/{chunk-ZUAMXZXC.mjs → chunk-7XDJKIM2.mjs} +4 -4
  74. package/dist/cli/{chunk-C37VELBR.mjs → chunk-A6E7TCK2.mjs} +5 -5
  75. package/dist/cli/{chunk-JS2SBCWD.js → chunk-ADLDU2QG.js} +6 -6
  76. package/dist/cli/{chunk-VP2K5B3R.mjs → chunk-ALARRSMZ.mjs} +3 -3
  77. package/dist/cli/{chunk-CHIGEDAE.js → chunk-B2BTBHX2.js} +3 -3
  78. package/dist/cli/{chunk-CFND2ACL.js → chunk-BBS2BLPV.js} +16 -16
  79. package/dist/cli/{chunk-QDBGPRR2.mjs → chunk-CLO562KG.mjs} +3 -1
  80. package/dist/cli/{chunk-CXTW7SRW.mjs → chunk-E7D37PLM.mjs} +8 -0
  81. package/dist/cli/{chunk-UGA5KI4A.js → chunk-ESX3H7Q7.js} +22 -22
  82. package/dist/cli/{chunk-BFHR7IC2.mjs → chunk-FJ5KPGCS.mjs} +10 -10
  83. package/dist/cli/{chunk-R7JYG6XO.mjs → chunk-FWE37N2P.mjs} +1 -1
  84. package/dist/cli/{chunk-K4WJ4BYO.mjs → chunk-ICTA5ICE.mjs} +1 -1
  85. package/dist/cli/{chunk-PU42VOBI.js → chunk-IMLFB66A.js} +3 -3
  86. package/dist/cli/{chunk-GI3V4D7K.mjs → chunk-IP3XJTWA.mjs} +2 -2
  87. package/dist/cli/{chunk-WBFOV5HT.js → chunk-JCLRSMUP.js} +5 -5
  88. package/dist/cli/{chunk-L3JVGNAT.mjs → chunk-JPEBKN3K.mjs} +2 -2
  89. package/dist/cli/{chunk-Z2PPB3IO.mjs → chunk-JTOV5RUA.mjs} +1 -1
  90. package/dist/cli/{chunk-WBTYWJLN.js → chunk-KCUQNH4K.js} +2 -2
  91. package/dist/cli/{chunk-C3XD2WHM.mjs → chunk-KNIYEZVV.mjs} +2 -2
  92. package/dist/cli/{chunk-3PMCQ3LK.js → chunk-LPTBHNGB.js} +7 -5
  93. package/dist/cli/{chunk-KH27B2HJ.mjs → chunk-M3NCXGNN.mjs} +2 -2
  94. package/dist/cli/{chunk-XDS26J7Z.js → chunk-MNBIGX6O.js} +10 -10
  95. package/dist/cli/{chunk-L6QAIZNZ.js → chunk-MYSPQUAO.js} +44 -44
  96. package/dist/cli/{chunk-W3J3LT22.mjs → chunk-N2BCPZVR.mjs} +5 -5
  97. package/dist/cli/{chunk-ZFSB7GXF.js → chunk-N5HSG4OV.js} +5 -5
  98. package/dist/cli/{chunk-2Q7VXTMS.js → chunk-O765M4LT.js} +2 -2
  99. package/dist/cli/{chunk-QPDLG7DQ.js → chunk-OOLBE6FR.js} +53 -53
  100. package/dist/cli/{chunk-IQOIT6E3.js → chunk-P3DP56HB.js} +41 -41
  101. package/dist/cli/{chunk-BGXEMTIG.js → chunk-PQKD5DMT.js} +19 -19
  102. package/dist/cli/{chunk-V5IIBG2E.mjs → chunk-T6GPTJ5F.mjs} +1 -1
  103. package/dist/cli/{chunk-GPMS6OPX.mjs → chunk-TWWYCJJW.mjs} +5 -5
  104. package/dist/cli/{chunk-ZHPSJ3LJ.mjs → chunk-UE7JHAZ2.mjs} +29 -16
  105. package/dist/cli/{chunk-VRYX2BR4.js → chunk-UEZNIPFO.js} +107 -107
  106. package/dist/cli/{chunk-AX2OAXDL.mjs → chunk-VCHV4LS3.mjs} +1 -1
  107. package/dist/cli/{chunk-NXGLJGPB.js → chunk-VIFLWQXS.js} +2 -2
  108. package/dist/cli/{chunk-6BBGUQJJ.js → chunk-XTYHZEJ2.js} +8 -0
  109. package/dist/cli/{chunk-5EOEJKSV.js → chunk-YQURGSRB.js} +1 -1
  110. package/dist/cli/{chunk-ALHKB3AE.js → chunk-YZ2ZPHWR.js} +9 -9
  111. package/dist/cli/{chunk-CGDW2CRR.mjs → chunk-ZDLDCXY3.mjs} +2 -2
  112. package/dist/cli/{chunk-RMVZTBI5.mjs → chunk-ZU6JBRV5.mjs} +4 -4
  113. package/dist/cli/command-docs.js +2 -2
  114. package/dist/cli/command-docs.mjs +1 -1
  115. package/dist/cli/{csv-HZP6QMG7.mjs → csv-2YKLUKDR.mjs} +4 -4
  116. package/dist/cli/{csv-JITYN27L.js → csv-LM7FBECI.js} +13 -13
  117. package/dist/cli/{db-QRIRTOMM.mjs → db-234UBWJH.mjs} +6 -6
  118. package/dist/cli/{db-FYSRB7O4.js → db-5PMA4IVW.js} +27 -27
  119. package/dist/cli/describe-C7GOSGYB.js +49 -0
  120. package/dist/cli/{describe-REXJVJC3.mjs → describe-W26LW5O7.mjs} +17 -17
  121. package/dist/cli/describe-core.d.mts +3 -3
  122. package/dist/cli/describe-core.d.ts +3 -3
  123. package/dist/cli/{executions-BSTF4DDS.js → executions-3S736GXX.js} +8 -8
  124. package/dist/cli/{executions-53KJAFOW.mjs → executions-GD7GXTJM.mjs} +6 -6
  125. package/dist/cli/{feedback-6MW3QOXX.js → feedback-BUWTDY4R.js} +14 -14
  126. package/dist/cli/{feedback-CWUJJF3J.mjs → feedback-GBV5HJJZ.mjs} +6 -6
  127. package/dist/cli/git-YG36MROC.js +25 -0
  128. package/dist/cli/{git-CKVZTJFS.mjs → git-YXJGTDQL.mjs} +5 -5
  129. package/dist/cli/index.js +143 -143
  130. package/dist/cli/index.mjs +42 -42
  131. package/dist/cli/{legacy-noops-USTBRFRX.mjs → legacy-noops-UJM6GBNP.mjs} +6 -6
  132. package/dist/cli/{legacy-noops-QBL4PNGB.js → legacy-noops-ZSF64V2U.js} +9 -9
  133. package/dist/cli/{monitors-6UCG5D7W.mjs → monitors-UERUQ6CT.mjs} +7 -7
  134. package/dist/cli/{monitors-VCR6SUZD.js → monitors-XQ2GNH6D.js} +100 -100
  135. package/dist/cli/{org-GSRBOJVO.mjs → org-CP4VLH6M.mjs} +6 -6
  136. package/dist/cli/{org-HPILTEG4.js → org-IF6MPVNR.js} +86 -86
  137. package/dist/cli/{play-TK7WOP5H.js → play-2NHQO5MO.js} +317 -317
  138. package/dist/cli/{play-QRTYQNG4.mjs → play-ZWDYYVPI.mjs} +17 -17
  139. package/dist/cli/{providers-OAQJWVBS.mjs → providers-2CVIATU4.mjs} +6 -6
  140. package/dist/cli/{providers-HEXNJ5QC.js → providers-LOPXQN56.js} +9 -9
  141. package/dist/cli/{quickstart-FFVHTPSP.mjs → quickstart-KVCFXLID.mjs} +4 -4
  142. package/dist/cli/{quickstart-PYZTFXZX.js → quickstart-N4WDEQZY.js} +6 -6
  143. package/dist/cli/{run-4DWJXJRO.js → run-BDT5LK3I.js} +42 -42
  144. package/dist/cli/{run-HLN6YYZH.mjs → run-RUXHYWLF.mjs} +22 -22
  145. package/dist/cli/search-ATDDVADT.js +32 -0
  146. package/dist/cli/{search-ZHRCXGEL.mjs → search-BFUTNPA5.mjs} +7 -7
  147. package/dist/cli/{search-output-2KY6PFDH.js → search-output-CTXI2QZU.js} +6 -6
  148. package/dist/cli/{search-output-N7QXACVK.mjs → search-output-WUGH4PZA.mjs} +4 -4
  149. package/dist/cli/{secrets-WXQ7XO5C.js → secrets-BZJZYFOU.js} +15 -15
  150. package/dist/cli/{secrets-FKMWBLHU.mjs → secrets-Z4XQVTC6.mjs} +6 -6
  151. package/dist/cli/sessions-HNU35AFM.js +22 -0
  152. package/dist/cli/{sessions-3YDTEDA5.mjs → sessions-VZXR3MQZ.mjs} +6 -6
  153. package/dist/cli/{settings-JTPASUZN.mjs → settings-VYEZFR4L.mjs} +12 -12
  154. package/dist/cli/{settings-67TWLQ6E.js → settings-WBYA4JMM.js} +85 -85
  155. package/dist/cli/{setup-KUERQJUX.js → setup-FS2RMSS2.js} +49 -49
  156. package/dist/cli/{setup-VYNGXUJ6.mjs → setup-H7KCI4SO.mjs} +9 -9
  157. package/dist/cli/skills-VPIURCAZ.js +36 -0
  158. package/dist/cli/{skills-KI4KYHH6.mjs → skills-YQNSJUUG.mjs} +7 -7
  159. package/dist/cli/tools-273GS5HU.js +56 -0
  160. package/dist/cli/{tools-UQDJS2RS.mjs → tools-ZF6SVEGW.mjs} +16 -16
  161. package/dist/cli/{update-7FQQUBOD.mjs → update-RKQNNJM4.mjs} +9 -9
  162. package/dist/cli/update-TOD3XY55.js +34 -0
  163. package/dist/cli/{views-JAM4MNNV.mjs → views-JHHOTWDU.mjs} +6 -6
  164. package/dist/cli/{views-MJK7JGZG.js → views-KN7FEDGT.js} +21 -21
  165. package/dist/cli/{workflow-AQPRIWQX.js → workflow-2WHSKTTV.js} +17 -17
  166. package/dist/cli/{workflow-TQRV5FGO.mjs → workflow-AAYLCLWA.mjs} +7 -7
  167. package/dist/{client-BlLYQDNo.d.mts → client-D0uDBybG.d.mts} +1 -1
  168. package/dist/{client-DSQlkIDO.d.ts → client-DZTnAv4B.d.ts} +1 -1
  169. package/dist/{client-core-rX7n2H8U.d.mts → client-core-BhWf8Y1b.d.mts} +15 -2
  170. package/dist/{client-core-CDwapXy5.d.ts → client-core-og3AP1LL.d.ts} +15 -2
  171. package/dist/{compiler-manifest-BHNC4RL-.d.ts → compiler-manifest-Bes3OVA3.d.mts} +1 -1
  172. package/dist/{compiler-manifest-BHNC4RL-.d.mts → compiler-manifest-Bes3OVA3.d.ts} +1 -1
  173. package/dist/{errors-lhtIWG5Z.d.ts → errors-BJm4lLWc.d.ts} +1 -1
  174. package/dist/{errors-D7sPXrvB.d.mts → errors-Dc5r42ks.d.mts} +1 -1
  175. package/dist/{index-CQTBHXHr.d.ts → index-BfV7mRPF.d.ts} +1 -1
  176. package/dist/{index-NaDZq2xf.d.mts → index-DTkiz_Ur.d.mts} +1 -1
  177. package/dist/index.d.mts +7 -7
  178. package/dist/index.d.ts +7 -7
  179. package/dist/index.js +9 -9
  180. package/dist/index.mjs +6 -6
  181. package/dist/install-integrity.json +120 -112
  182. package/dist/plays/bundle-play-file.d.mts +3 -3
  183. package/dist/plays/bundle-play-file.d.ts +3 -3
  184. package/dist/plays/play-description.d.mts +2 -2
  185. package/dist/plays/play-description.d.ts +2 -2
  186. package/dist/plays/run-request.d.mts +2 -2
  187. package/dist/plays/run-request.d.ts +2 -2
  188. package/dist/release.d.mts +1 -1
  189. package/dist/release.d.ts +1 -1
  190. package/dist/release.js +2 -2
  191. package/dist/release.mjs +1 -1
  192. package/dist/server.d.mts +4 -4
  193. package/dist/server.d.ts +4 -4
  194. package/dist/server.js +5 -5
  195. package/dist/server.mjs +3 -3
  196. package/package.json +1 -1
  197. package/dist/cli/auth-Y2K2ZYYA.js +0 -43
  198. package/dist/cli/describe-LSOHOLFI.js +0 -49
  199. package/dist/cli/git-S7SWUZ3T.js +0 -25
  200. package/dist/cli/search-WERQBC6V.js +0 -32
  201. package/dist/cli/sessions-LXQ4Q6BS.js +0 -22
  202. package/dist/cli/skills-EFRLHY3F.js +0 -36
  203. package/dist/cli/tools-C3EIGFFP.js +0 -56
  204. package/dist/cli/update-KCY72RXH.js +0 -34
package/dist/cli/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
3
3
 
4
- var _chunkJS2SBCWDjs = require('./chunk-JS2SBCWD.js');
4
+ var _chunkADLDU2QGjs = require('./chunk-ADLDU2QG.js');
5
5
 
6
6
 
7
- var _chunk2Q7VXTMSjs = require('./chunk-2Q7VXTMS.js');
7
+ var _chunkO765M4LTjs = require('./chunk-O765M4LT.js');
8
8
 
9
9
 
10
10
 
@@ -13,17 +13,17 @@ var _chunk2Q7VXTMSjs = require('./chunk-2Q7VXTMS.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkUGA5KI4Ajs = require('./chunk-UGA5KI4A.js');
16
+ var _chunkESX3H7Q7js = require('./chunk-ESX3H7Q7.js');
17
17
 
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkNXGLJGPBjs = require('./chunk-NXGLJGPB.js');
24
- require('./chunk-CFND2ACL.js');
25
- require('./chunk-WBTYWJLN.js');
26
- require('./chunk-IQOIT6E3.js');
23
+ var _chunkVIFLWQXSjs = require('./chunk-VIFLWQXS.js');
24
+ require('./chunk-BBS2BLPV.js');
25
+ require('./chunk-KCUQNH4K.js');
26
+ require('./chunk-P3DP56HB.js');
27
27
 
28
28
 
29
29
 
@@ -35,15 +35,15 @@ require('./chunk-IQOIT6E3.js');
35
35
 
36
36
 
37
37
 
38
- var _chunkL6QAIZNZjs = require('./chunk-L6QAIZNZ.js');
38
+ var _chunkMYSPQUAOjs = require('./chunk-MYSPQUAO.js');
39
39
 
40
40
 
41
- var _chunkCHIGEDAEjs = require('./chunk-CHIGEDAE.js');
41
+ var _chunkB2BTBHX2js = require('./chunk-B2BTBHX2.js');
42
42
 
43
43
 
44
44
 
45
45
 
46
- var _chunk6BBGUQJJjs = require('./chunk-6BBGUQJJ.js');
46
+ var _chunkXTYHZEJ2js = require('./chunk-XTYHZEJ2.js');
47
47
  require('./chunk-R7J7CJPZ.js');
48
48
  require('./chunk-YGCKMI5P.js');
49
49
 
@@ -64,7 +64,7 @@ require('./chunk-YGCKMI5P.js');
64
64
 
65
65
 
66
66
 
67
- var _chunkBGXEMTIGjs = require('./chunk-BGXEMTIG.js');
67
+ var _chunkPQKD5DMTjs = require('./chunk-PQKD5DMT.js');
68
68
 
69
69
 
70
70
 
@@ -72,18 +72,18 @@ var _chunkBGXEMTIGjs = require('./chunk-BGXEMTIG.js');
72
72
 
73
73
 
74
74
 
75
- var _chunkPU42VOBIjs = require('./chunk-PU42VOBI.js');
75
+ var _chunkIMLFB66Ajs = require('./chunk-IMLFB66A.js');
76
76
 
77
77
 
78
78
 
79
79
 
80
- var _chunk3PMCQ3LKjs = require('./chunk-3PMCQ3LK.js');
80
+ var _chunkLPTBHNGBjs = require('./chunk-LPTBHNGB.js');
81
81
 
82
82
 
83
83
  var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
84
84
  require('./chunk-XNYIZMNQ.js');
85
85
  require('./chunk-BBTKAASQ.js');
86
- require('./chunk-5EOEJKSV.js');
86
+ require('./chunk-YQURGSRB.js');
87
87
  require('./chunk-OG64RBAC.js');
88
88
  require('./chunk-RLX5ZFNX.js');
89
89
  require('./chunk-COGTRVWW.js');
@@ -164,56 +164,56 @@ var _os = require('os');
164
164
  var COMMAND_GROUPS = [
165
165
  {
166
166
  names: ["auth"],
167
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-Y2K2ZYYA.js")))).registerAuthCommands
167
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-4WEVLYK4.js")))).registerAuthCommands
168
168
  },
169
169
  {
170
170
  names: ["providers"],
171
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-HEXNJ5QC.js")))).registerProviderCommands
171
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-LOPXQN56.js")))).registerProviderCommands
172
172
  },
173
173
  {
174
174
  names: ["search"],
175
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-WERQBC6V.js")))).registerSearchCommand
175
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-ATDDVADT.js")))).registerSearchCommand
176
176
  },
177
177
  {
178
178
  names: ["describe"],
179
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-LSOHOLFI.js")))).registerDescribeCommand
179
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-C7GOSGYB.js")))).registerDescribeCommand
180
180
  },
181
181
  {
182
182
  names: ["run"],
183
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-4DWJXJRO.js")))).registerRunCommand
183
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-BDT5LK3I.js")))).registerRunCommand
184
184
  },
185
185
  {
186
186
  names: ["tools"],
187
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-C3EIGFFP.js")))).registerToolsCommands
187
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-273GS5HU.js")))).registerToolsCommands
188
188
  },
189
189
  {
190
190
  names: ["executions"],
191
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-BSTF4DDS.js")))).registerExecutionsCommands
191
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-3S736GXX.js")))).registerExecutionsCommands
192
192
  },
193
193
  {
194
194
  names: ["plays", "runs"],
195
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-TK7WOP5H.js")))).registerPlayCommands
195
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2NHQO5MO.js")))).registerPlayCommands
196
196
  },
197
197
  {
198
198
  names: ["sessions"],
199
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-LXQ4Q6BS.js")))).registerSessionsCommands
199
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-HNU35AFM.js")))).registerSessionsCommands
200
200
  },
201
201
  {
202
202
  names: ["workflows"],
203
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-AQPRIWQX.js")))).registerWorkflowCommands
203
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-2WHSKTTV.js")))).registerWorkflowCommands
204
204
  },
205
205
  {
206
206
  names: ["views"],
207
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-MJK7JGZG.js")))).registerViewsCommands
207
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-KN7FEDGT.js")))).registerViewsCommands
208
208
  },
209
209
  {
210
210
  names: ["secrets"],
211
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-WXQ7XO5C.js")))).registerSecretsCommands
211
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-BZJZYFOU.js")))).registerSecretsCommands
212
212
  },
213
213
  {
214
214
  names: ["settings", "notifications"],
215
215
  load: async () => {
216
- const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-67TWLQ6E.js")));
216
+ const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-WBYA4JMM.js")));
217
217
  return (p) => {
218
218
  commands.registerSettingsCommands(p);
219
219
  commands.registerNotificationCommands(p);
@@ -222,51 +222,51 @@ var COMMAND_GROUPS = [
222
222
  },
223
223
  {
224
224
  names: ["billing"],
225
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-SQU726P7.js")))).registerBillingCommands
225
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-4KTUVZ4S.js")))).registerBillingCommands
226
226
  },
227
227
  {
228
228
  names: ["monitors"],
229
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-VCR6SUZD.js")))).registerMonitorsCommands
229
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-XQ2GNH6D.js")))).registerMonitorsCommands
230
230
  },
231
231
  {
232
232
  names: ["org"],
233
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-HPILTEG4.js")))).registerOrgCommands
233
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-IF6MPVNR.js")))).registerOrgCommands
234
234
  },
235
235
  {
236
236
  names: ["git", "projects", "deployments"],
237
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-S7SWUZ3T.js")))).registerGitCommands
237
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-YG36MROC.js")))).registerGitCommands
238
238
  },
239
239
  {
240
240
  names: ["csv"],
241
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-JITYN27L.js")))).registerCsvCommands
241
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-LM7FBECI.js")))).registerCsvCommands
242
242
  },
243
243
  {
244
244
  names: ["db"],
245
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-FYSRB7O4.js")))).registerDbCommands
245
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-5PMA4IVW.js")))).registerDbCommands
246
246
  },
247
247
  {
248
248
  names: ["feedback"],
249
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-6MW3QOXX.js")))).registerFeedbackCommands
249
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-BUWTDY4R.js")))).registerFeedbackCommands
250
250
  },
251
251
  {
252
252
  names: ["enrich", "session", "backend"],
253
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-QBL4PNGB.js")))).registerDeprecatedCommands
253
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-ZSF64V2U.js")))).registerDeprecatedCommands
254
254
  },
255
255
  {
256
256
  names: ["update"],
257
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-KCY72RXH.js")))).registerUpdateCommand
257
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-TOD3XY55.js")))).registerUpdateCommand
258
258
  },
259
259
  {
260
260
  names: ["skills", "skills-auto-sync"],
261
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-EFRLHY3F.js")))).registerSkillsCommand
261
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-VPIURCAZ.js")))).registerSkillsCommand
262
262
  },
263
263
  {
264
264
  names: ["setup", "doctor"],
265
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-KUERQJUX.js")))).registerSetupCommands
265
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-FS2RMSS2.js")))).registerSetupCommands
266
266
  },
267
267
  {
268
268
  names: ["quickstart"],
269
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-PYZTFXZX.js")))).registerQuickstartCommands
269
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-N4WDEQZY.js")))).registerQuickstartCommands
270
270
  }
271
271
  ];
272
272
  async function registerDeeplineCommandGroups(program, requestedCommand) {
@@ -292,8 +292,8 @@ function registerDeeplineInlineCommands(program) {
292
292
  function createDeferredPlayRunMaintenance(input) {
293
293
  return async () => {
294
294
  try {
295
- const skillsVersion = _chunkPU42VOBIjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
296
- const compatibility = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
295
+ const skillsVersion = _chunkIMLFB66Ajs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
296
+ const compatibility = await _chunkVIFLWQXSjs.traceCliSpan.call(void 0,
297
297
  "cli.sdk_compatibility_deferred",
298
298
  {
299
299
  baseUrl: input.baseUrl,
@@ -301,24 +301,24 @@ function createDeferredPlayRunMaintenance(input) {
301
301
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
302
302
  },
303
303
  async () => {
304
- const trusted = _chunkL6QAIZNZjs.readTrustedCleanCompatibility.call(void 0,
304
+ const trusted = _chunkMYSPQUAOjs.readTrustedCleanCompatibility.call(void 0,
305
305
  input.baseUrl,
306
306
  "plays run",
307
307
  skillsVersion
308
308
  );
309
309
  if (trusted) return { response: trusted, error: null };
310
- return _chunkL6QAIZNZjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
310
+ return _chunkMYSPQUAOjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
311
311
  command: "plays run",
312
312
  skillsVersion,
313
313
  persistCache: input.policy !== "off",
314
- catalog: _chunkUGA5KI4Ajs.compatibilityCatalog.call(void 0, input.command)
314
+ catalog: _chunkESX3H7Q7js.compatibilityCatalog.call(void 0, input.command)
315
315
  });
316
316
  }
317
317
  );
318
318
  if (compatibility.error || !compatibility.response) return;
319
319
  const automaticUpdate = compatibility.response.auto_update;
320
320
  if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
321
- await _chunkUGA5KI4Ajs.maybeAutoUpdateAndRelaunch.call(void 0,
321
+ await _chunkESX3H7Q7js.maybeAutoUpdateAndRelaunch.call(void 0,
322
322
  compatibility.response,
323
323
  input.baseUrl,
324
324
  input.policy
@@ -328,7 +328,7 @@ function createDeferredPlayRunMaintenance(input) {
328
328
  compatibility.response,
329
329
  "skills"
330
330
  ) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
331
- await _chunkL6QAIZNZjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
331
+ await _chunkMYSPQUAOjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
332
332
  update: skillsUpdate,
333
333
  mode: "detached"
334
334
  });
@@ -356,8 +356,8 @@ var MAX_SESSIONS = 20;
356
356
  function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
357
357
  return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
358
358
  }
359
- function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunk3PMCQ3LKjs.agentSessionIdFromEnvironment.call(void 0, )) {
360
- const explicit = _chunk6BBGUQJJjs.helpDetailFromArgv.call(void 0, argv);
359
+ function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkLPTBHNGBjs.agentSessionIdFromEnvironment.call(void 0, )) {
360
+ const explicit = _chunkXTYHZEJ2js.helpDetailFromArgv.call(void 0, argv);
361
361
  if (explicit === "quiet") return { detail: "quiet", firstRead: false };
362
362
  if (!sessionId) return { detail: explicit, firstRead: false };
363
363
  const path = helpSeenPath(homeDir);
@@ -454,7 +454,7 @@ function shouldReport(stdout, stderr) {
454
454
  }
455
455
  function toolName(action) {
456
456
  const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
457
- return typeof toolId === "string" ? _chunkBGXEMTIGjs.redactFailureText.call(void 0, toolId) : null;
457
+ return typeof toolId === "string" ? _chunkPQKD5DMTjs.redactFailureText.call(void 0, toolId) : null;
458
458
  }
459
459
  function chunkText(chunk) {
460
460
  if (typeof chunk === "string") return chunk;
@@ -485,14 +485,14 @@ function watch(stream) {
485
485
  }
486
486
  async function postCommandOutput(body) {
487
487
  try {
488
- const baseUrl = _chunkPU42VOBIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
489
- const apiKey = _chunkPU42VOBIjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
488
+ const baseUrl = _chunkIMLFB66Ajs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
489
+ const apiKey = _chunkIMLFB66Ajs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
490
490
  if (!apiKey) return;
491
- const agentSessionId = _chunk3PMCQ3LKjs.agentSessionIdFromEnvironment.call(void 0, );
491
+ const agentSessionId = _chunkLPTBHNGBjs.agentSessionIdFromEnvironment.call(void 0, );
492
492
  await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
493
493
  method: "POST",
494
494
  headers: {
495
- ..._chunkBGXEMTIGjs.failureReportHeaders.call(void 0, apiKey),
495
+ ..._chunkPQKD5DMTjs.failureReportHeaders.call(void 0, apiKey),
496
496
  ...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
497
497
  },
498
498
  body: JSON.stringify(body),
@@ -508,14 +508,14 @@ function startOutputSizeReporting(invocation, streams = {
508
508
  const stdoutWatch = watch(streams.stdout);
509
509
  const stderrWatch = watch(streams.stderr);
510
510
  return async (finished) => {
511
- if (_chunkBGXEMTIGjs.isFailureReportingDisabled.call(void 0, )) return;
511
+ if (_chunkPQKD5DMTjs.isFailureReportingDisabled.call(void 0, )) return;
512
512
  const [stdout, stderr] = await Promise.all([
513
513
  stdoutWatch.settled(),
514
514
  stderrWatch.settled()
515
515
  ]);
516
516
  if (!shouldReport(stdout, stderr)) return;
517
517
  await postCommandOutput({
518
- command: _chunkBGXEMTIGjs.sanitizeCommand.call(void 0, invocation.argv),
518
+ command: _chunkPQKD5DMTjs.sanitizeCommand.call(void 0, invocation.argv),
519
519
  tool: toolName(finished.action),
520
520
  exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
521
521
  duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
@@ -546,7 +546,7 @@ function silenceCommanderErrorOutput(command) {
546
546
  function printUsageErrorJson(code, message, commandPath) {
547
547
  const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
548
548
  const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
549
- _chunkBGXEMTIGjs.printJson.call(void 0, {
549
+ _chunkPQKD5DMTjs.printJson.call(void 0, {
550
550
  ok: false,
551
551
  error: {
552
552
  code,
@@ -604,7 +604,7 @@ function topLevelCommandKnown(program, commandName) {
604
604
  );
605
605
  }
606
606
  async function runPlayRunnerHealthCheck() {
607
- _chunkPU42VOBIjs.resolveConfig.call(void 0, );
607
+ _chunkIMLFB66Ajs.resolveConfig.call(void 0, );
608
608
  const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
609
609
  const file = _path.join.call(void 0, dir, "health-check.play.ts");
610
610
  try {
@@ -634,7 +634,7 @@ async function runPlayRunnerHealthCheck() {
634
634
  });
635
635
  let exitCode = 1;
636
636
  try {
637
- const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-TK7WOP5H.js")));
637
+ const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2NHQO5MO.js")));
638
638
  exitCode = await handlePlayRun([
639
639
  file,
640
640
  "--input",
@@ -674,7 +674,7 @@ function preflightErrorMessage(error) {
674
674
  return error instanceof Error ? error.message : String(error);
675
675
  }
676
676
  async function runPreflightCheck() {
677
- const baseUrl = _chunkPU42VOBIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
677
+ const baseUrl = _chunkIMLFB66Ajs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
678
678
  const healthController = new AbortController();
679
679
  const healthTimeout = setTimeout(
680
680
  () => healthController.abort(),
@@ -691,14 +691,14 @@ async function runPreflightCheck() {
691
691
  }).catch((error) => ({
692
692
  status: "unreachable",
693
693
  version: null,
694
- error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunk3PMCQ3LKjs.connectionFailureMessage.call(void 0,
694
+ error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkLPTBHNGBjs.connectionFailureMessage.call(void 0,
695
695
  baseUrl,
696
696
  error instanceof Error ? error : new Error(String(error))
697
697
  )
698
698
  })).finally(() => clearTimeout(healthTimeout));
699
- const apiKey = _chunkPU42VOBIjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
700
- const http = apiKey ? new (0, _chunkPU42VOBIjs.HttpClient)(
701
- _chunkPU42VOBIjs.resolveConfig.call(void 0, {
699
+ const apiKey = _chunkIMLFB66Ajs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
700
+ const http = apiKey ? new (0, _chunkIMLFB66Ajs.HttpClient)(
701
+ _chunkIMLFB66Ajs.resolveConfig.call(void 0, {
702
702
  baseUrl,
703
703
  apiKey,
704
704
  timeout: PREFLIGHT_TIMEOUT_MS,
@@ -743,7 +743,7 @@ async function runPreflightCheck() {
743
743
  const connected = authStatus === "connected" || authStatus === "claimed";
744
744
  return {
745
745
  status: healthResult.status === "ok" && connected ? "ok" : "check",
746
- cli_version: _chunk3PMCQ3LKjs.SDK_VERSION,
746
+ cli_version: _chunkLPTBHNGBjs.SDK_VERSION,
747
747
  host: baseUrl,
748
748
  health: {
749
749
  status: healthResult.status,
@@ -770,7 +770,7 @@ async function runPreflightCheck() {
770
770
  {
771
771
  title: "preflight",
772
772
  lines: [
773
- `cli: ${_chunk3PMCQ3LKjs.SDK_VERSION}`,
773
+ `cli: ${_chunkLPTBHNGBjs.SDK_VERSION}`,
774
774
  `host: ${baseUrl}`,
775
775
  `health: ${healthResult.status}`,
776
776
  ..."error" in healthResult ? [` ${healthResult.error}`] : [],
@@ -797,12 +797,12 @@ function printPreflightHuman(data) {
797
797
  }
798
798
  async function newerCliCommandHint(baseUrl, command) {
799
799
  if (!command.trim()) return null;
800
- const { response, error } = await _chunkL6QAIZNZjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
800
+ const { response, error } = await _chunkMYSPQUAOjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
801
801
  if (error || !response) return null;
802
802
  const introduced = response.command_introduced_in;
803
803
  if (introduced) {
804
804
  return [
805
- `\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunk3PMCQ3LKjs.SDK_VERSION}.`,
805
+ `\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkLPTBHNGBjs.SDK_VERSION}.`,
806
806
  ` ${introduced.reason}`,
807
807
  ` Update with: ${response.update_command}`,
808
808
  " Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
@@ -811,32 +811,32 @@ async function newerCliCommandHint(baseUrl, command) {
811
811
  if (!response.update_required) return null;
812
812
  return [
813
813
  response.message,
814
- ` Installed: ${_chunk3PMCQ3LKjs.SDK_VERSION}. Run: ${response.update_command}`,
814
+ ` Installed: ${_chunkLPTBHNGBjs.SDK_VERSION}. Run: ${response.update_command}`,
815
815
  " If an agent skill told you to run this, the skill is newer than this CLI."
816
816
  ].join("\n");
817
817
  }
818
818
  async function runMain(ensureTransport, onAction, suppressOutputReport) {
819
819
  const mainStartedAt = Date.now();
820
- _chunkBGXEMTIGjs.installJsonStderrGuard.call(void 0, );
820
+ _chunkPQKD5DMTjs.installJsonStderrGuard.call(void 0, );
821
821
  let rootHelpStatus = "";
822
822
  let commandFailed = false;
823
823
  const deferredMaintenance = { inlinePlay: null };
824
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
824
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, {
825
825
  phase: "cli.main_start",
826
826
  argv: process.argv.slice(2)
827
827
  });
828
828
  const printStartupPhase = shouldPrintStartupPhase();
829
- const progress = printStartupPhase ? _chunkCHIGEDAEjs.createCliProgress.call(void 0, true) : null;
829
+ const progress = printStartupPhase ? _chunkB2BTBHX2js.createCliProgress.call(void 0, true) : null;
830
830
  if (printStartupPhase) {
831
831
  _optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
832
832
  }
833
833
  const program = new (0, _commander.Command)();
834
834
  program.name("deepline").description(
835
835
  "Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
836
- ).version(_chunk3PMCQ3LKjs.SDK_VERSION, "-v, --version", "Show version").option(
836
+ ).version(_chunkLPTBHNGBjs.SDK_VERSION, "-v, --version", "Show version").option(
837
837
  "--maintenance <policy>",
838
838
  "Installation maintenance: configured preferences or off; independent of output format",
839
- _chunkNXGLJGPBjs.parseCliMaintenancePolicy,
839
+ _chunkVIFLWQXSjs.parseCliMaintenancePolicy,
840
840
  "configured"
841
841
  ).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
842
842
  "beforeAll",
@@ -885,9 +885,9 @@ Exit codes:
885
885
  5 server/runtime/provider failure; 7 validation/check failed.
886
886
  `
887
887
  ).addHelpText("afterAll", ({ command }) => {
888
- const key = _chunk6BBGUQJJjs.commandDocKey.call(void 0, command);
888
+ const key = _chunkXTYHZEJ2js.commandDocKey.call(void 0, command);
889
889
  const { detail, firstRead } = resolveHelpDetail(process.argv, key);
890
- return _chunk6BBGUQJJjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
890
+ return _chunkXTYHZEJ2js.renderCommandExplanation.call(void 0, key, detail, { firstRead });
891
891
  });
892
892
  program.hook("preAction", async (_thisCommand, actionCommand) => {
893
893
  const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
@@ -895,25 +895,25 @@ Exit codes:
895
895
  path: compatibilityCommand,
896
896
  args: actionCommand.processedArgs
897
897
  });
898
- const maintenance = _chunkNXGLJGPBjs.resolveCliMaintenancePolicy.call(void 0,
898
+ const maintenance = _chunkVIFLWQXSjs.resolveCliMaintenancePolicy.call(void 0,
899
899
  actionCommand.optsWithGlobals()
900
900
  );
901
901
  if (actionCommand.name() !== "version") {
902
902
  await ensureTransport();
903
903
  }
904
- if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkL6QAIZNZjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || compatibilityCommand === "settings autoupdate" || compatibilityCommand.startsWith("settings autoupdate ") || compatibilityCommand === "settings skills-sync" || isDeprecatedCommandInvocation() || compatibilityCommand === "settings feedback" || compatibilityCommand.startsWith("settings feedback ") || ["feedback send", "sessions send", "session send"].includes(
904
+ if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkMYSPQUAOjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || compatibilityCommand === "settings autoupdate" || compatibilityCommand.startsWith("settings autoupdate ") || compatibilityCommand === "settings skills-sync" || isDeprecatedCommandInvocation() || compatibilityCommand === "settings feedback" || compatibilityCommand.startsWith("settings feedback ") || ["feedback send", "sessions send", "session send"].includes(
905
905
  compatibilityCommand
906
- ) && _chunk2Q7VXTMSjs.feedbackSendRestriction.call(void 0, actionCommand.optsWithGlobals().requested)) {
906
+ ) && _chunkO765M4LTjs.feedbackSendRestriction.call(void 0, actionCommand.optsWithGlobals().requested)) {
907
907
  return;
908
908
  }
909
909
  const isToolExecuteCommand = compatibilityCommand === "tools execute";
910
910
  if (isToolExecuteCommand) {
911
- _chunkUGA5KI4Ajs.beginToolExecuteCommand.call(void 0, );
911
+ _chunkESX3H7Q7js.beginToolExecuteCommand.call(void 0, );
912
912
  }
913
913
  if (isToolExecuteCommand) {
914
- const baseUrl = _chunkPU42VOBIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
915
- if (maintenance !== "off") _chunkL6QAIZNZjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
916
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
914
+ const baseUrl = _chunkIMLFB66Ajs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
915
+ if (maintenance !== "off") _chunkMYSPQUAOjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
916
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, {
917
917
  phase: "cli.sdk_compatibility_deferred_to_tool_execute",
918
918
  baseUrl,
919
919
  command: compatibilityCommand
@@ -921,9 +921,9 @@ Exit codes:
921
921
  return;
922
922
  }
923
923
  const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
924
- if (!playDryRun && _chunkJS2SBCWDjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
924
+ if (!playDryRun && _chunkADLDU2QGjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
925
925
  if (maintenance !== "off") {
926
- const baseUrl = _chunkPU42VOBIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
926
+ const baseUrl = _chunkIMLFB66Ajs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
927
927
  deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
928
928
  baseUrl,
929
929
  command: actionCommand,
@@ -932,27 +932,27 @@ Exit codes:
932
932
  }
933
933
  return;
934
934
  }
935
- const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkUGA5KI4Ajs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
935
+ const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkESX3H7Q7js.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
936
936
  if (printStartupPhase) {
937
937
  _optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
938
938
  }
939
939
  const startup = await runStartupStage("SDK compatibility", async () => {
940
- const baseUrl = _chunkPU42VOBIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
941
- if (maintenance !== "off") _chunkL6QAIZNZjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
940
+ const baseUrl = _chunkIMLFB66Ajs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
941
+ if (maintenance !== "off") _chunkMYSPQUAOjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
942
942
  const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
943
- const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkPU42VOBIjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
944
- const trusted = isToolExecuteCommand ? null : _chunkL6QAIZNZjs.readTrustedCleanCompatibility.call(void 0,
943
+ const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkIMLFB66Ajs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
944
+ const trusted = isToolExecuteCommand ? null : _chunkMYSPQUAOjs.readTrustedCleanCompatibility.call(void 0,
945
945
  baseUrl,
946
946
  compatibilityCommand,
947
947
  skillsVersion
948
948
  );
949
- const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkL6QAIZNZjs.readFreshCleanCompatibility.call(void 0,
949
+ const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkMYSPQUAOjs.readFreshCleanCompatibility.call(void 0,
950
950
  baseUrl,
951
951
  compatibilityCommand,
952
952
  skillsVersion
953
953
  ) !== null;
954
954
  if (trusted) {
955
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
955
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, {
956
956
  phase: "cli.sdk_compatibility",
957
957
  ms: 0,
958
958
  ok: true,
@@ -962,7 +962,7 @@ Exit codes:
962
962
  source: "trusted_cache"
963
963
  });
964
964
  }
965
- const compatibility = trusted ? { response: trusted, error: null } : await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
965
+ const compatibility = trusted ? { response: trusted, error: null } : await _chunkVIFLWQXSjs.traceCliSpan.call(void 0,
966
966
  "cli.sdk_compatibility",
967
967
  {
968
968
  baseUrl,
@@ -970,12 +970,12 @@ Exit codes:
970
970
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
971
971
  fastDeadline
972
972
  },
973
- () => _chunkL6QAIZNZjs.checkSdkCompatibility.call(void 0, baseUrl, {
973
+ () => _chunkMYSPQUAOjs.checkSdkCompatibility.call(void 0, baseUrl, {
974
974
  command: compatibilityCommand,
975
975
  skillsVersion,
976
976
  persistCache: !isToolExecuteCommand && maintenance !== "off",
977
- catalog: _chunkUGA5KI4Ajs.compatibilityCatalog.call(void 0, actionCommand),
978
- ...fastDeadline ? { timeoutMs: _chunkL6QAIZNZjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
977
+ catalog: _chunkESX3H7Q7js.compatibilityCatalog.call(void 0, actionCommand),
978
+ ...fastDeadline ? { timeoutMs: _chunkMYSPQUAOjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
979
979
  })
980
980
  );
981
981
  if (compatibility.error) {
@@ -986,7 +986,7 @@ Exit codes:
986
986
  response: null
987
987
  };
988
988
  }
989
- const relaunched = await _chunkUGA5KI4Ajs.maybeAutoUpdateAndRelaunch.call(void 0,
989
+ const relaunched = await _chunkESX3H7Q7js.maybeAutoUpdateAndRelaunch.call(void 0,
990
990
  compatibility.response,
991
991
  baseUrl,
992
992
  maintenance
@@ -1000,14 +1000,14 @@ Exit codes:
1000
1000
  };
1001
1001
  }
1002
1002
  const policy = compatibility.response;
1003
- const jsonOutput = _chunkBGXEMTIGjs.isJsonOutputMode.call(void 0, );
1004
- _chunkL6QAIZNZjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
1003
+ const jsonOutput = _chunkPQKD5DMTjs.isJsonOutputMode.call(void 0, );
1004
+ _chunkMYSPQUAOjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
1005
1005
  quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
1006
- _chunkUGA5KI4Ajs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkL6QAIZNZjs.claimUpdateAdvisory.call(void 0, baseUrl)
1006
+ _chunkESX3H7Q7js.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkMYSPQUAOjs.claimUpdateAdvisory.call(void 0, baseUrl)
1007
1007
  });
1008
1008
  const advisory = compatibility.response;
1009
- if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkL6QAIZNZjs.isCiEnvironment.call(void 0, ) && !_chunkUGA5KI4Ajs.hasDeferredAutoUpdate.call(void 0, )) {
1010
- _chunkBGXEMTIGjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
1009
+ if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkMYSPQUAOjs.isCiEnvironment.call(void 0, ) && !_chunkESX3H7Q7js.hasDeferredAutoUpdate.call(void 0, )) {
1010
+ _chunkPQKD5DMTjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
1011
1011
  }
1012
1012
  return {
1013
1013
  shouldContinue: true,
@@ -1024,10 +1024,10 @@ Exit codes:
1024
1024
  const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
1025
1025
  await runStartupStage(
1026
1026
  "agent skills sync",
1027
- () => _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
1027
+ () => _chunkVIFLWQXSjs.traceCliSpan.call(void 0,
1028
1028
  "cli.sdk_skills_sync",
1029
1029
  { baseUrl: startup.baseUrl },
1030
- () => _chunkL6QAIZNZjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
1030
+ () => _chunkMYSPQUAOjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
1031
1031
  update: skillsUpdate,
1032
1032
  mode: "detached"
1033
1033
  })
@@ -1041,16 +1041,16 @@ Exit codes:
1041
1041
  );
1042
1042
  const carriesFeedback = requestedCommand === "feedback" || requestedCommand === "session" || requestedCommand === "sessions";
1043
1043
  if (carriesFeedback) suppressOutputReport();
1044
- const commandRegistrationStartedAt = _chunkNXGLJGPBjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
1044
+ const commandRegistrationStartedAt = _chunkVIFLWQXSjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
1045
1045
  await registerDeeplineCommandGroups(program, requestedCommand);
1046
1046
  if (commandRegistrationStartedAt !== void 0) {
1047
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
1047
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, {
1048
1048
  phase: "cli.command_registration",
1049
1049
  ms: performance.now() - commandRegistrationStartedAt
1050
1050
  });
1051
1051
  }
1052
1052
  const { preflight, health, version } = registerDeeplineInlineCommands(program);
1053
- if (_chunkBGXEMTIGjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
1053
+ if (_chunkPQKD5DMTjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
1054
1054
  preflight.addHelpText(
1055
1055
  "after",
1056
1056
  `
@@ -1066,8 +1066,8 @@ Examples:
1066
1066
  `
1067
1067
  ).action(async (options) => {
1068
1068
  const data = await runPreflightCheck();
1069
- if (_chunkBGXEMTIGjs.shouldEmitJson.call(void 0, options.json)) {
1070
- _chunkBGXEMTIGjs.printJson.call(void 0, data);
1069
+ if (_chunkPQKD5DMTjs.shouldEmitJson.call(void 0, options.json)) {
1070
+ _chunkPQKD5DMTjs.printJson.call(void 0, data);
1071
1071
  } else {
1072
1072
  printPreflightHuman(data);
1073
1073
  }
@@ -1092,7 +1092,7 @@ Examples:
1092
1092
  ).action(async (options) => {
1093
1093
  if (options.playRunner) {
1094
1094
  const data = await runPlayRunnerHealthCheck();
1095
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, data, {
1095
+ _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0, data, {
1096
1096
  json: options.json,
1097
1097
  text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
1098
1098
  `
@@ -1100,15 +1100,15 @@ Examples:
1100
1100
  return;
1101
1101
  }
1102
1102
  try {
1103
- const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-Y2K2ZYYA.js")));
1104
- const baseUrl = _chunkPU42VOBIjs.resolveBaseUrlOnly.call(void 0, );
1103
+ const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-4WEVLYK4.js")));
1104
+ const baseUrl = _chunkIMLFB66Ajs.resolveBaseUrlOnly.call(void 0, );
1105
1105
  const [{ status, data }, banner] = await Promise.all([
1106
1106
  httpJson("GET", `${baseUrl}/api/v2/health`, null),
1107
1107
  readStatusBanner(baseUrl)
1108
1108
  ]);
1109
1109
  if (status !== 200) throw new Error(`HTTP ${status}`);
1110
1110
  const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
1111
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
1111
+ _chunkPQKD5DMTjs.printCommandEnvelope.call(void 0,
1112
1112
  { ...data, status_banner: banner },
1113
1113
  {
1114
1114
  json: options.json,
@@ -1136,16 +1136,16 @@ Examples:
1136
1136
  `
1137
1137
  ).action((options) => {
1138
1138
  if (options.json) {
1139
- _chunkBGXEMTIGjs.printCompactJson.call(void 0, { version: _chunk3PMCQ3LKjs.SDK_VERSION });
1139
+ _chunkPQKD5DMTjs.printCompactJson.call(void 0, { version: _chunkLPTBHNGBjs.SDK_VERSION });
1140
1140
  return;
1141
1141
  }
1142
- process.stdout.write(`deepline ${_chunk3PMCQ3LKjs.SDK_VERSION}
1142
+ process.stdout.write(`deepline ${_chunkLPTBHNGBjs.SDK_VERSION}
1143
1143
  `);
1144
1144
  });
1145
1145
  if (process.argv.slice(2).length === 0) {
1146
1146
  program.outputHelp({ error: true });
1147
1147
  console.error("\nerror: missing command (see usage above)");
1148
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
1148
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, {
1149
1149
  phase: "cli.main_total",
1150
1150
  ms: Date.now() - mainStartedAt,
1151
1151
  ok: false,
@@ -1157,16 +1157,16 @@ Examples:
1157
1157
  const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
1158
1158
  if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
1159
1159
  const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
1160
- if (!_chunkBGXEMTIGjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
1161
- const baseUrl = _chunkPU42VOBIjs.autoDetectBaseUrl.call(void 0, );
1160
+ if (!_chunkPQKD5DMTjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
1161
+ const baseUrl = _chunkIMLFB66Ajs.autoDetectBaseUrl.call(void 0, );
1162
1162
  await ensureTransport();
1163
1163
  const versionHint = await newerCliCommandHint(
1164
1164
  baseUrl,
1165
1165
  requestedTopLevelCommand
1166
1166
  );
1167
- if (_chunkBGXEMTIGjs.isJsonOutputMode.call(void 0, )) {
1167
+ if (_chunkPQKD5DMTjs.isJsonOutputMode.call(void 0, )) {
1168
1168
  if (versionHint) {
1169
- _chunkBGXEMTIGjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
1169
+ _chunkPQKD5DMTjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
1170
1170
  }
1171
1171
  printUsageErrorJson(
1172
1172
  "commander.unknownCommand",
@@ -1188,19 +1188,19 @@ Examples:
1188
1188
  const helpArgs = process.argv.slice(2);
1189
1189
  const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
1190
1190
  if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
1191
- const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-Y2K2ZYYA.js")));
1192
- rootHelpStatus = `Version: ${_chunk3PMCQ3LKjs.SDK_VERSION}
1191
+ const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-4WEVLYK4.js")));
1192
+ rootHelpStatus = `Version: ${_chunkLPTBHNGBjs.SDK_VERSION}
1193
1193
  ${await authStatusLine()}
1194
1194
  `;
1195
1195
  }
1196
1196
  await program.parseAsync(process.argv);
1197
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
1197
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, {
1198
1198
  phase: "cli.main_total",
1199
1199
  ms: Date.now() - mainStartedAt,
1200
1200
  ok: true
1201
1201
  });
1202
1202
  if (!carriesFeedback) {
1203
- await _chunkBGXEMTIGjs.maybeReportSdkCliFailure.call(void 0, {
1203
+ await _chunkPQKD5DMTjs.maybeReportSdkCliFailure.call(void 0, {
1204
1204
  argv: process.argv.slice(2),
1205
1205
  startedAtMs: mainStartedAt,
1206
1206
  exitCode: typeof process.exitCode === "number" ? process.exitCode : null
@@ -1209,14 +1209,14 @@ ${await authStatusLine()}
1209
1209
  } catch (error) {
1210
1210
  commandFailed = true;
1211
1211
  const commanderError = asCommanderError(error);
1212
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
1212
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, {
1213
1213
  phase: "cli.main_total",
1214
1214
  ms: Date.now() - mainStartedAt,
1215
1215
  ok: false,
1216
1216
  error: error instanceof Error ? error.message : String(error)
1217
1217
  });
1218
1218
  _optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
1219
- const wantsJson = _chunkBGXEMTIGjs.isJsonOutputMode.call(void 0, );
1219
+ const wantsJson = _chunkPQKD5DMTjs.isJsonOutputMode.call(void 0, );
1220
1220
  if (commanderError) {
1221
1221
  const grammarError = [
1222
1222
  "commander.unknownCommand",
@@ -1227,12 +1227,12 @@ ${await authStatusLine()}
1227
1227
  if (grammarError) {
1228
1228
  await ensureTransport();
1229
1229
  const versionHint = await newerCliCommandHint(
1230
- _chunkPU42VOBIjs.autoDetectBaseUrl.call(void 0, ),
1230
+ _chunkIMLFB66Ajs.autoDetectBaseUrl.call(void 0, ),
1231
1231
  commandPath
1232
1232
  );
1233
1233
  if (wantsJson) {
1234
1234
  if (versionHint) {
1235
- _chunkBGXEMTIGjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
1235
+ _chunkPQKD5DMTjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
1236
1236
  }
1237
1237
  } else {
1238
1238
  if (versionHint) console.error(versionHint);
@@ -1252,43 +1252,43 @@ ${await authStatusLine()}
1252
1252
  return;
1253
1253
  } else if (wantsJson) {
1254
1254
  if (error instanceof _chunk2GJZLIKWjs.AuthError) {
1255
- _chunkBGXEMTIGjs.addJsonNotice.call(void 0, {
1255
+ _chunkPQKD5DMTjs.addJsonNotice.call(void 0, {
1256
1256
  code: "auth_required",
1257
1257
  message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
1258
1258
  });
1259
1259
  }
1260
- const providerConcurrency = _chunkBGXEMTIGjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
1260
+ const providerConcurrency = _chunkPQKD5DMTjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
1261
1261
  if (providerConcurrency) {
1262
- _chunkBGXEMTIGjs.addJsonNotice.call(void 0, {
1262
+ _chunkPQKD5DMTjs.addJsonNotice.call(void 0, {
1263
1263
  code: "provider_concurrency",
1264
1264
  message: providerConcurrency
1265
1265
  });
1266
1266
  }
1267
- const payload = _chunkBGXEMTIGjs.errorToJsonPayload.call(void 0, error);
1268
- _chunkBGXEMTIGjs.printJson.call(void 0, {
1267
+ const payload = _chunkPQKD5DMTjs.errorToJsonPayload.call(void 0, error);
1268
+ _chunkPQKD5DMTjs.printJson.call(void 0, {
1269
1269
  ...payload,
1270
1270
  // The envelope names the code the process exits with, so a caller
1271
1271
  // that only reads stdout still cannot mistake a failure for data.
1272
- exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkBGXEMTIGjs.resolveSdkCliFailureExitCode.call(void 0, error))),
1272
+ exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkPQKD5DMTjs.resolveSdkCliFailureExitCode.call(void 0, error))),
1273
1273
  ...error instanceof _chunk2GJZLIKWjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
1274
1274
  });
1275
1275
  } else if (error instanceof Error) {
1276
1276
  console.error(`Error: ${error.message}`);
1277
- const toolDiagnostic = _chunkBGXEMTIGjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
1277
+ const toolDiagnostic = _chunkPQKD5DMTjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
1278
1278
  if (toolDiagnostic) console.error(toolDiagnostic);
1279
1279
  if (error instanceof _chunk2GJZLIKWjs.AuthError) {
1280
1280
  console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
1281
1281
  }
1282
- const providerConcurrency = _chunkBGXEMTIGjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
1282
+ const providerConcurrency = _chunkPQKD5DMTjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
1283
1283
  if (providerConcurrency) console.error(providerConcurrency);
1284
1284
  } else {
1285
1285
  console.error(`Error: ${String(error)}`);
1286
1286
  }
1287
1287
  const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
1288
- const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkBGXEMTIGjs.resolveSdkCliFailureExitCode.call(void 0, error)));
1288
+ const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkPQKD5DMTjs.resolveSdkCliFailureExitCode.call(void 0, error)));
1289
1289
  process.exitCode = failureExitCode;
1290
1290
  if (!carriesFeedback) {
1291
- await _chunkBGXEMTIGjs.maybeReportSdkCliFailure.call(void 0, {
1291
+ await _chunkPQKD5DMTjs.maybeReportSdkCliFailure.call(void 0, {
1292
1292
  argv: process.argv.slice(2),
1293
1293
  startedAtMs: mainStartedAt,
1294
1294
  exitCode: failureExitCode,
@@ -1296,13 +1296,13 @@ ${await authStatusLine()}
1296
1296
  });
1297
1297
  }
1298
1298
  } finally {
1299
- _chunkUGA5KI4Ajs.finishToolExecuteCommand.call(void 0, );
1299
+ _chunkESX3H7Q7js.finishToolExecuteCommand.call(void 0, );
1300
1300
  const maintainInlinePlay = deferredMaintenance.inlinePlay;
1301
1301
  deferredMaintenance.inlinePlay = null;
1302
1302
  if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
1303
1303
  await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
1304
1304
  }
1305
- await _chunkUGA5KI4Ajs.runDeferredAutoUpdate.call(void 0, );
1305
+ await _chunkESX3H7Q7js.runDeferredAutoUpdate.call(void 0, );
1306
1306
  }
1307
1307
  process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
1308
1308
  }
@@ -1310,7 +1310,7 @@ async function main() {
1310
1310
  let disposeTransport;
1311
1311
  const ensureTransport = async () => {
1312
1312
  if (disposeTransport) return;
1313
- const transportStartedAt = _chunkNXGLJGPBjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
1313
+ const transportStartedAt = _chunkVIFLWQXSjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
1314
1314
  const hasProxy = [
1315
1315
  "HTTP_PROXY",
1316
1316
  "http_proxy",
@@ -1322,7 +1322,7 @@ async function main() {
1322
1322
  disposeTransport = configureCliTransport();
1323
1323
  }
1324
1324
  if (transportStartedAt !== void 0) {
1325
- _chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
1325
+ _chunkVIFLWQXSjs.recordCliTrace.call(void 0, {
1326
1326
  phase: "cli.transport_setup",
1327
1327
  ms: performance.now() - transportStartedAt
1328
1328
  });
@@ -1345,9 +1345,9 @@ async function main() {
1345
1345
  skipOutputReport = true;
1346
1346
  }
1347
1347
  );
1348
- const silentFailure = _chunkBGXEMTIGjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
1348
+ const silentFailure = _chunkPQKD5DMTjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
1349
1349
  if (silentFailure) {
1350
- _chunkBGXEMTIGjs.printJson.call(void 0, {
1350
+ _chunkPQKD5DMTjs.printJson.call(void 0, {
1351
1351
  ok: false,
1352
1352
  exitCode: Number(process.exitCode),
1353
1353
  error: { code: "CLI_ERROR", message: silentFailure }