deepline 0.3.537 → 0.3.539

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 (205) 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 +9 -1
  9. package/dist/bundling-sources/shared_libs/play-runtime/baked-runner-image.ts +392 -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 +4 -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 -7
  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 +2399 -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-speed-profile.ts +136 -0
  40. package/dist/bundling-sources/shared_libs/play-runtime/runtime-traffic-policy.ts +54 -0
  41. package/dist/bundling-sources/shared_libs/play-runtime/runtime-work-counters.ts +10 -1
  42. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +22 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-play-run-task.ts +18 -1
  44. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +18 -4
  45. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +219 -7
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +3 -0
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-claim-affinity.ts +340 -0
  48. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +1 -0
  49. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +10 -1
  50. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +623 -7
  51. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +340 -5
  52. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runner-push.ts +61 -0
  53. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +2 -1
  54. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +269 -2
  55. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +238 -5
  56. package/dist/bundling-sources/shared_libs/play-runtime/startup-read-tool-ids.ts +47 -0
  57. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/runtime-step-receipts-adapter.ts +5 -4
  58. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +6 -0
  59. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +11 -0
  60. package/dist/cli/auth-O5Y2VYXK.js +43 -0
  61. package/dist/cli/{auth-4SUPGDIM.mjs → auth-QD7QGD3B.mjs} +5 -5
  62. package/dist/cli/{billing-5JUA3ZM3.mjs → billing-FIZXMHBW.mjs} +31 -7
  63. package/dist/cli/{billing-SQU726P7.js → billing-KOQAF6WS.js} +114 -90
  64. package/dist/cli/{chunk-R7JYG6XO.mjs → chunk-2XMFT44N.mjs} +1 -1
  65. package/dist/cli/{chunk-XDS26J7Z.js → chunk-3YDI2PTN.js} +10 -10
  66. package/dist/cli/{chunk-KH27B2HJ.mjs → chunk-55ITVU2V.mjs} +2 -2
  67. package/dist/cli/{chunk-2Q7VXTMS.js → chunk-5QL4GJB2.js} +2 -2
  68. package/dist/cli/{chunk-D77W6Q67.js → chunk-5RUB53KG.js} +26 -26
  69. package/dist/cli/{chunk-JS2SBCWD.js → chunk-5YF35HAV.js} +6 -6
  70. package/dist/cli/{chunk-C37VELBR.mjs → chunk-6KG4KVTH.mjs} +5 -5
  71. package/dist/cli/{chunk-AX2OAXDL.mjs → chunk-6NZBLFL4.mjs} +1 -1
  72. package/dist/cli/{chunk-C3XD2WHM.mjs → chunk-6V3LNYK5.mjs} +2 -2
  73. package/dist/cli/{chunk-GPMS6OPX.mjs → chunk-ADV2IB2C.mjs} +5 -5
  74. package/dist/cli/{chunk-ZUAMXZXC.mjs → chunk-APKZGUTU.mjs} +4 -4
  75. package/dist/cli/{chunk-IQOIT6E3.js → chunk-CQJCLHBE.js} +41 -41
  76. package/dist/cli/{chunk-W3J3LT22.mjs → chunk-DZFVVP3S.mjs} +5 -5
  77. package/dist/cli/{chunk-V5IIBG2E.mjs → chunk-E4QHTDPF.mjs} +1 -1
  78. package/dist/cli/{chunk-CXTW7SRW.mjs → chunk-E7D37PLM.mjs} +8 -0
  79. package/dist/cli/{chunk-KULT6O5K.js → chunk-EAZS52DL.js} +15 -15
  80. package/dist/cli/{chunk-L3JVGNAT.mjs → chunk-F43MXIN3.mjs} +2 -2
  81. package/dist/cli/{chunk-WBTYWJLN.js → chunk-FH3P3E4S.js} +2 -2
  82. package/dist/cli/{chunk-K4WJ4BYO.mjs → chunk-FIRV7BXJ.mjs} +1 -1
  83. package/dist/cli/{chunk-NXGLJGPB.js → chunk-FSQCB5SJ.js} +2 -2
  84. package/dist/cli/{chunk-AVQET3NR.js → chunk-FTBWFDF3.js} +7 -7
  85. package/dist/cli/{chunk-QDBGPRR2.mjs → chunk-G3UFDUYU.mjs} +3 -1
  86. package/dist/cli/{chunk-ZHPSJ3LJ.mjs → chunk-GEO2EMM7.mjs} +29 -16
  87. package/dist/cli/{chunk-CGDW2CRR.mjs → chunk-GLEGINSP.mjs} +2 -2
  88. package/dist/cli/{chunk-EEFSUCYP.mjs → chunk-GLKUC5PO.mjs} +2 -2
  89. package/dist/cli/{chunk-BFHR7IC2.mjs → chunk-GNCIMHO2.mjs} +10 -10
  90. package/dist/cli/{chunk-PU42VOBI.js → chunk-ISXX5DUD.js} +3 -3
  91. package/dist/cli/{chunk-Y6AMMXWS.mjs → chunk-JBCQFG7G.mjs} +3 -3
  92. package/dist/cli/{chunk-Z2PPB3IO.mjs → chunk-JHEZQMOM.mjs} +1 -1
  93. package/dist/cli/{chunk-WBFOV5HT.js → chunk-K22EKW6L.js} +5 -5
  94. package/dist/cli/{chunk-CHIGEDAE.js → chunk-K5MZHTK7.js} +3 -3
  95. package/dist/cli/{chunk-L6QAIZNZ.js → chunk-KAEVL62Q.js} +44 -44
  96. package/dist/cli/{chunk-PJ4ZGZAN.js → chunk-KQTX545E.js} +13 -13
  97. package/dist/cli/{chunk-VP2K5B3R.mjs → chunk-LE5KN7CZ.mjs} +3 -3
  98. package/dist/cli/{chunk-BGXEMTIG.js → chunk-LEREPTAE.js} +19 -19
  99. package/dist/cli/{chunk-QPDLG7DQ.js → chunk-MI53W4DN.js} +53 -53
  100. package/dist/cli/{chunk-RMVZTBI5.mjs → chunk-MKESK3SW.mjs} +4 -4
  101. package/dist/cli/{chunk-NU7B5X6J.mjs → chunk-N3LPGGWD.mjs} +1 -1
  102. package/dist/cli/{chunk-VRYX2BR4.js → chunk-NR5PLMNG.js} +107 -107
  103. package/dist/cli/{chunk-JMHYDDBQ.js → chunk-Q4HNK7JX.js} +292 -279
  104. package/dist/cli/{chunk-37AZHCTP.mjs → chunk-RULRGMMM.mjs} +5 -5
  105. package/dist/cli/{chunk-GI3V4D7K.mjs → chunk-SDAP5MCO.mjs} +2 -2
  106. package/dist/cli/{chunk-5EOEJKSV.js → chunk-TZBCJHV6.js} +1 -1
  107. package/dist/cli/{chunk-3PMCQ3LK.js → chunk-V7DEGIYO.js} +7 -5
  108. package/dist/cli/{chunk-ALHKB3AE.js → chunk-VK5UTS5B.js} +9 -9
  109. package/dist/cli/{chunk-ZFSB7GXF.js → chunk-W32KT6LM.js} +5 -5
  110. package/dist/cli/{chunk-6BBGUQJJ.js → chunk-XTYHZEJ2.js} +8 -0
  111. package/dist/cli/{chunk-UGA5KI4A.js → chunk-XZBXQCRJ.js} +22 -22
  112. package/dist/cli/{chunk-BRRCWUOW.mjs → chunk-Y66ZMOJI.mjs} +1 -1
  113. package/dist/cli/{chunk-CFND2ACL.js → chunk-YMQFQO3K.js} +16 -16
  114. package/dist/cli/command-docs.js +2 -2
  115. package/dist/cli/command-docs.mjs +1 -1
  116. package/dist/cli/{csv-JITYN27L.js → csv-BWWJYV2C.js} +13 -13
  117. package/dist/cli/{csv-HZP6QMG7.mjs → csv-G5RQQ74W.mjs} +4 -4
  118. package/dist/cli/{db-FYSRB7O4.js → db-5KNDLADE.js} +27 -27
  119. package/dist/cli/{db-QRIRTOMM.mjs → db-AJZHWB3V.mjs} +6 -6
  120. package/dist/cli/describe-B6CN6CFJ.js +49 -0
  121. package/dist/cli/{describe-REXJVJC3.mjs → describe-QY5TKWVD.mjs} +17 -17
  122. package/dist/cli/describe-core.d.mts +3 -3
  123. package/dist/cli/describe-core.d.ts +3 -3
  124. package/dist/cli/{executions-BSTF4DDS.js → executions-BCCW76BI.js} +8 -8
  125. package/dist/cli/{executions-53KJAFOW.mjs → executions-SJPH3MZT.mjs} +6 -6
  126. package/dist/cli/{feedback-6MW3QOXX.js → feedback-GF65JKK6.js} +14 -14
  127. package/dist/cli/{feedback-CWUJJF3J.mjs → feedback-S6SZOFGK.mjs} +6 -6
  128. package/dist/cli/git-DX6NB7VF.js +25 -0
  129. package/dist/cli/{git-CKVZTJFS.mjs → git-F5FT5YVB.mjs} +5 -5
  130. package/dist/cli/index.js +143 -143
  131. package/dist/cli/index.mjs +42 -42
  132. package/dist/cli/{legacy-noops-QBL4PNGB.js → legacy-noops-ECR6FS6U.js} +9 -9
  133. package/dist/cli/{legacy-noops-USTBRFRX.mjs → legacy-noops-NOA4P5NE.mjs} +6 -6
  134. package/dist/cli/{monitors-6UCG5D7W.mjs → monitors-CTYSAGP4.mjs} +7 -7
  135. package/dist/cli/{monitors-VCR6SUZD.js → monitors-DEWBSURN.js} +100 -100
  136. package/dist/cli/{org-GSRBOJVO.mjs → org-EKSKKT7H.mjs} +6 -6
  137. package/dist/cli/{org-HPILTEG4.js → org-ZM2UUMZZ.js} +86 -86
  138. package/dist/cli/{play-TK7WOP5H.js → play-6JQOM6DE.js} +317 -317
  139. package/dist/cli/{play-QRTYQNG4.mjs → play-R2BH374J.mjs} +17 -17
  140. package/dist/cli/{providers-HEXNJ5QC.js → providers-CMIYHEMN.js} +9 -9
  141. package/dist/cli/{providers-OAQJWVBS.mjs → providers-X7WMIWO4.mjs} +6 -6
  142. package/dist/cli/{quickstart-PYZTFXZX.js → quickstart-6HVPAMSW.js} +6 -6
  143. package/dist/cli/{quickstart-FFVHTPSP.mjs → quickstart-ZZ7L6VZJ.mjs} +4 -4
  144. package/dist/cli/{run-HLN6YYZH.mjs → run-FP32RKBU.mjs} +22 -22
  145. package/dist/cli/{run-4DWJXJRO.js → run-OOHYH3GI.js} +42 -42
  146. package/dist/cli/search-34C6LFOJ.js +32 -0
  147. package/dist/cli/{search-ZHRCXGEL.mjs → search-BDDNC23Z.mjs} +7 -7
  148. package/dist/cli/{search-output-2KY6PFDH.js → search-output-5VZIQQAM.js} +6 -6
  149. package/dist/cli/{search-output-N7QXACVK.mjs → search-output-QXJ6CV5G.mjs} +4 -4
  150. package/dist/cli/{secrets-WXQ7XO5C.js → secrets-EN2HQCO3.js} +15 -15
  151. package/dist/cli/{secrets-FKMWBLHU.mjs → secrets-Z7CQSQGC.mjs} +6 -6
  152. package/dist/cli/{sessions-3YDTEDA5.mjs → sessions-I2H37OTJ.mjs} +6 -6
  153. package/dist/cli/sessions-RYQX3NDD.js +22 -0
  154. package/dist/cli/{settings-67TWLQ6E.js → settings-CTRAPFNZ.js} +85 -85
  155. package/dist/cli/{settings-JTPASUZN.mjs → settings-IYSC5PPQ.mjs} +12 -12
  156. package/dist/cli/{setup-VYNGXUJ6.mjs → setup-PU3HOVI3.mjs} +9 -9
  157. package/dist/cli/{setup-KUERQJUX.js → setup-XIN53GEW.js} +49 -49
  158. package/dist/cli/skills-576CX7DK.js +36 -0
  159. package/dist/cli/{skills-KI4KYHH6.mjs → skills-TYBML2ZO.mjs} +7 -7
  160. package/dist/cli/tools-EXMUWA3Z.js +56 -0
  161. package/dist/cli/{tools-UQDJS2RS.mjs → tools-ZVNE6M6J.mjs} +16 -16
  162. package/dist/cli/{update-7FQQUBOD.mjs → update-54WENBNT.mjs} +9 -9
  163. package/dist/cli/update-RAHETNL2.js +34 -0
  164. package/dist/cli/{views-MJK7JGZG.js → views-7L75EZOJ.js} +21 -21
  165. package/dist/cli/{views-JAM4MNNV.mjs → views-EUBB4ONT.mjs} +6 -6
  166. package/dist/cli/{workflow-AQPRIWQX.js → workflow-EZVYCR6Y.js} +17 -17
  167. package/dist/cli/{workflow-TQRV5FGO.mjs → workflow-GUKGFJ72.mjs} +7 -7
  168. package/dist/{client-BlLYQDNo.d.mts → client-D0uDBybG.d.mts} +1 -1
  169. package/dist/{client-DSQlkIDO.d.ts → client-DZTnAv4B.d.ts} +1 -1
  170. package/dist/{client-core-rX7n2H8U.d.mts → client-core-BhWf8Y1b.d.mts} +15 -2
  171. package/dist/{client-core-CDwapXy5.d.ts → client-core-og3AP1LL.d.ts} +15 -2
  172. package/dist/{compiler-manifest-BHNC4RL-.d.ts → compiler-manifest-Bes3OVA3.d.mts} +1 -1
  173. package/dist/{compiler-manifest-BHNC4RL-.d.mts → compiler-manifest-Bes3OVA3.d.ts} +1 -1
  174. package/dist/{errors-lhtIWG5Z.d.ts → errors-BJm4lLWc.d.ts} +1 -1
  175. package/dist/{errors-D7sPXrvB.d.mts → errors-Dc5r42ks.d.mts} +1 -1
  176. package/dist/{index-CQTBHXHr.d.ts → index-BfV7mRPF.d.ts} +1 -1
  177. package/dist/{index-NaDZq2xf.d.mts → index-DTkiz_Ur.d.mts} +1 -1
  178. package/dist/index.d.mts +7 -7
  179. package/dist/index.d.ts +7 -7
  180. package/dist/index.js +9 -9
  181. package/dist/index.mjs +6 -6
  182. package/dist/install-integrity.json +121 -112
  183. package/dist/plays/bundle-play-file.d.mts +3 -3
  184. package/dist/plays/bundle-play-file.d.ts +3 -3
  185. package/dist/plays/play-description.d.mts +2 -2
  186. package/dist/plays/play-description.d.ts +2 -2
  187. package/dist/plays/run-request.d.mts +2 -2
  188. package/dist/plays/run-request.d.ts +2 -2
  189. package/dist/release.d.mts +1 -1
  190. package/dist/release.d.ts +1 -1
  191. package/dist/release.js +2 -2
  192. package/dist/release.mjs +1 -1
  193. package/dist/server.d.mts +4 -4
  194. package/dist/server.d.ts +4 -4
  195. package/dist/server.js +5 -5
  196. package/dist/server.mjs +3 -3
  197. package/package.json +1 -1
  198. package/dist/cli/auth-Y2K2ZYYA.js +0 -43
  199. package/dist/cli/describe-LSOHOLFI.js +0 -49
  200. package/dist/cli/git-S7SWUZ3T.js +0 -25
  201. package/dist/cli/search-WERQBC6V.js +0 -32
  202. package/dist/cli/sessions-LXQ4Q6BS.js +0 -22
  203. package/dist/cli/skills-EFRLHY3F.js +0 -36
  204. package/dist/cli/tools-C3EIGFFP.js +0 -56
  205. package/dist/cli/update-KCY72RXH.js +0 -34
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; } var _class; var _class2;require('./chunk-I5YZLGMG.js');
2
2
 
3
3
 
4
- var _chunkZFSB7GXFjs = require('./chunk-ZFSB7GXF.js');
5
- require('./chunk-JMHYDDBQ.js');
4
+ var _chunkW32KT6LMjs = require('./chunk-W32KT6LM.js');
5
+ require('./chunk-Q4HNK7JX.js');
6
6
  require('./chunk-E4CABWXL.js');
7
7
  require('./chunk-CQDQNZGH.js');
8
8
  require('./chunk-PMH4GLMD.js');
@@ -18,15 +18,15 @@ require('./chunk-UNEMDKXN.js');
18
18
  var _chunkU2LVWCTDjs = require('./chunk-U2LVWCTD.js');
19
19
 
20
20
 
21
- var _chunkCHIGEDAEjs = require('./chunk-CHIGEDAE.js');
21
+ var _chunkK5MZHTK7js = require('./chunk-K5MZHTK7.js');
22
22
 
23
23
 
24
24
 
25
25
 
26
26
 
27
- var _chunkBGXEMTIGjs = require('./chunk-BGXEMTIG.js');
28
- require('./chunk-PU42VOBI.js');
29
- require('./chunk-3PMCQ3LK.js');
27
+ var _chunkLEREPTAEjs = require('./chunk-LEREPTAE.js');
28
+ require('./chunk-ISXX5DUD.js');
29
+ require('./chunk-V7DEGIYO.js');
30
30
 
31
31
 
32
32
  var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
@@ -34,7 +34,7 @@ require('./chunk-XNYIZMNQ.js');
34
34
 
35
35
 
36
36
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
37
- require('./chunk-5EOEJKSV.js');
37
+ require('./chunk-TZBCJHV6.js');
38
38
  require('./chunk-OG64RBAC.js');
39
39
  require('./chunk-COGTRVWW.js');
40
40
 
@@ -112,10 +112,10 @@ function reportMonitorsFailure(error, options) {
112
112
  const exitCode = monitorsErrorExitCode(error);
113
113
  const next = monitorsFailureNextCommand(error, exitCode, options);
114
114
  const retrySafe = exitCode === 5 && _optionalChain([options, 'optionalAccess', _9 => _9.retryCommand]) !== void 0;
115
- const wantsJson = _chunkBGXEMTIGjs.shouldEmitJson.call(void 0, process.argv.includes("--json"));
115
+ const wantsJson = _chunkLEREPTAEjs.shouldEmitJson.call(void 0, process.argv.includes("--json"));
116
116
  if (wantsJson) {
117
- const payload = _chunkBGXEMTIGjs.errorToJsonPayload.call(void 0, error);
118
- _chunkBGXEMTIGjs.printJson.call(void 0, {
117
+ const payload = _chunkLEREPTAEjs.errorToJsonPayload.call(void 0, error);
118
+ _chunkLEREPTAEjs.printJson.call(void 0, {
119
119
  ok: false,
120
120
  exitCode,
121
121
  ...next ? { next } : {},
@@ -535,14 +535,14 @@ Preview the plan first with:
535
535
  );
536
536
  }
537
537
  async function handleMonitorsStatus(options) {
538
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.status();
538
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.status();
539
539
  const hasAccess = payload.has_access === true;
540
540
  const reason = typeof payload.reason === "string" && payload.reason.trim() ? payload.reason.trim() : void 0;
541
541
  const text = hasAccess ? `\u2713 You have access to Deepline Monitors${reason ? `
542
542
  ${reason}` : ""}
543
543
  ` : `\u2717 No access to Deepline Monitors${reason ? ` \u2014 ${reason}` : ""}
544
544
  `;
545
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
545
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
546
546
  { has_access: hasAccess, ...reason ? { reason } : {} },
547
547
  { json: options.json, text }
548
548
  );
@@ -608,14 +608,14 @@ async function handleMonitorsAvailable(toolId, options) {
608
608
  }
609
609
  }
610
610
  const tool = _nullishCoalesce(toolId, () => ( options.tool));
611
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.available(tool, {
611
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.available(tool, {
612
612
  ...options.provider ? { provider: options.provider } : {},
613
613
  ...options.search ? { search: options.search } : {},
614
614
  ...options.limit ? { limit: options.limit } : {},
615
615
  ...options.full ? { full: true } : {},
616
616
  ...options.compact ? { compact: true } : {}
617
617
  });
618
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
618
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, {
619
619
  json: options.json,
620
620
  // Human list view shows id + name + deployed_count ("deployed: N") so
621
621
  // can-deploy vs already-deployed is visible in one view. Describing a
@@ -722,14 +722,14 @@ async function handleMonitorsList(options) {
722
722
  "`--compact` is deprecated and now does nothing; returning the complete monitor records.\n"
723
723
  );
724
724
  }
725
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.list({
725
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.list({
726
726
  ...state ? { state } : {},
727
727
  ...options.status ? { status: options.status } : {},
728
728
  ...options.limit ? { limit: options.limit } : {},
729
729
  ...options.cursor ? { cursor: options.cursor } : {},
730
730
  ...options.includeConsumers ? { includeConsumers: true } : {}
731
731
  });
732
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
732
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, {
733
733
  json: options.json,
734
734
  text: renderDeployedListText(
735
735
  payload,
@@ -820,7 +820,7 @@ function renderMonitorLedgerText(payload) {
820
820
  var LEDGER_SORTS = ["recent", "installed", "name", "findings"];
821
821
  var LEDGER_WINDOWS = ["1d", "7d", "30d", "90d", "1y"];
822
822
  async function handleMonitorsLedger(key, options) {
823
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
823
+ const client = new (0, _chunkW32KT6LMjs.DeeplineClient)();
824
824
  if (options.findings) {
825
825
  if (!key) {
826
826
  throw new MonitorsUsageError(
@@ -830,12 +830,12 @@ async function handleMonitorsLedger(key, options) {
830
830
  const payload2 = await client.monitors.ledgerFindings(key, {
831
831
  ...options.cursor ? { cursor: options.cursor } : {}
832
832
  });
833
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload2, { json: options.json });
833
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload2, { json: options.json });
834
834
  return;
835
835
  }
836
836
  if (key) {
837
837
  const payload2 = await client.monitors.ledgerGet(key);
838
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload2, { json: options.json });
838
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload2, { json: options.json });
839
839
  return;
840
840
  }
841
841
  if (options.sort !== void 0 && !LEDGER_SORTS.includes(options.sort)) {
@@ -859,7 +859,7 @@ async function handleMonitorsLedger(key, options) {
859
859
  ...options.limit ? { limit: options.limit } : {},
860
860
  ...options.cursor ? { cursor: options.cursor } : {}
861
861
  });
862
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
862
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, {
863
863
  json: options.json,
864
864
  text: renderMonitorLedgerText(payload)
865
865
  });
@@ -871,10 +871,10 @@ async function handleMonitorsCheck(definition, options) {
871
871
  argLabel: "<definition>",
872
872
  command: "deepline monitors check"
873
873
  });
874
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.check(
874
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.check(
875
875
  body
876
876
  );
877
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
877
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
878
878
  }
879
879
  function previewText(value) {
880
880
  return typeof value === "string" && value.trim() ? value.trim() : "-";
@@ -932,22 +932,22 @@ async function handleMonitorsPreview(definition, options) {
932
932
  if (limit !== void 0 && !Number.isInteger(limit)) {
933
933
  throw new MonitorsUsageError("--limit must be a whole number from 1 to 3.");
934
934
  }
935
- const wantsJson = _chunkBGXEMTIGjs.shouldEmitJson.call(void 0, options.json);
935
+ const wantsJson = _chunkLEREPTAEjs.shouldEmitJson.call(void 0, options.json);
936
936
  if (options.idempotencyKey === void 0 && wantsJson) {
937
937
  throw new MonitorsUsageError(
938
938
  "--json requires --idempotency-key <key>. Choose a new key for each new preview and keep it: rerunning with the same key returns the result without paying again."
939
939
  );
940
940
  }
941
941
  const idempotencyKey = _nullishCoalesce(options.idempotencyKey, () => ( `monitor-preview-${_crypto.randomUUID.call(void 0, )}`));
942
- const progress = _chunkCHIGEDAEjs.createCliProgress.call(void 0, !wantsJson);
942
+ const progress = _chunkK5MZHTK7js.createCliProgress.call(void 0, !wantsJson);
943
943
  progress.phase(`Preview key: ${idempotencyKey}`);
944
944
  try {
945
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.preview(
945
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.preview(
946
946
  body,
947
947
  { idempotencyKey, ...limit === void 0 ? {} : { limit } }
948
948
  );
949
949
  progress.complete();
950
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
950
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, {
951
951
  json: options.json,
952
952
  text: renderMonitorPreviewText(payload)
953
953
  });
@@ -992,7 +992,7 @@ async function handleMonitorsDeploy(definition, options) {
992
992
  argLabel: "<definition>",
993
993
  command: "deepline monitors deploy"
994
994
  });
995
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
995
+ const client = new (0, _chunkW32KT6LMjs.DeeplineClient)();
996
996
  const definitionArg = body;
997
997
  if (options.dryRun) {
998
998
  const payload2 = await client.monitors.deploy(definitionArg, {
@@ -1000,7 +1000,7 @@ async function handleMonitorsDeploy(definition, options) {
1000
1000
  });
1001
1001
  const valid = payload2.valid !== false;
1002
1002
  const hasIdentityConflict = Boolean(_optionalChain([asRecord, 'call', _39 => _39(payload2), 'optionalAccess', _40 => _40.identity_conflict]));
1003
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
1003
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
1004
1004
  { dry_run: true, ...payload2 },
1005
1005
  { json: options.json, text: renderMonitorDeployPlan(payload2) }
1006
1006
  );
@@ -1010,7 +1010,7 @@ async function handleMonitorsDeploy(definition, options) {
1010
1010
  return;
1011
1011
  }
1012
1012
  const payload = await client.monitors.deploy(definitionArg);
1013
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
1013
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, {
1014
1014
  json: options.json,
1015
1015
  text: renderMonitorDeployCompletion(payload)
1016
1016
  });
@@ -1022,29 +1022,29 @@ async function handleMonitorsSync(definition, options) {
1022
1022
  argLabel: "<definition>",
1023
1023
  command: "deepline monitors sync"
1024
1024
  });
1025
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.sync(body, {
1025
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.sync(body, {
1026
1026
  ...options.dryRun ? { dryRun: true } : {},
1027
1027
  idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey("scalar-sync", void 0)))
1028
1028
  });
1029
1029
  if (options.dryRun) {
1030
1030
  const plan = payload;
1031
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
1031
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
1032
1032
  { dry_run: true, ...plan },
1033
1033
  { json: options.json, text: renderMonitorDeployPlan(plan) }
1034
1034
  );
1035
1035
  return;
1036
1036
  }
1037
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
1037
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, {
1038
1038
  json: options.json,
1039
1039
  text: renderMonitorJob(payload)
1040
1040
  });
1041
1041
  }
1042
1042
  async function handleScalarMonitorLifecycle(action, key, options) {
1043
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors[action](key, {
1043
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors[action](key, {
1044
1044
  ...options.dryRun ? { dryRun: true } : {},
1045
1045
  idempotencyKey: _nullishCoalesce(options.idempotencyKey, () => ( monitorJobIdempotencyKey(`${action}-${key}`, void 0)))
1046
1046
  });
1047
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
1047
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, {
1048
1048
  json: options.json,
1049
1049
  text: options.dryRun ? void 0 : renderMonitorJob(payload)
1050
1050
  });
@@ -1133,11 +1133,11 @@ async function handleMonitorJobBatchDeploy(options, idempotencyKey) {
1133
1133
  lint.issues.filter((issue) => issue.severity === "error").map((issue) => `${issue.path || "batch"}: ${issue.message}`).join("; ")
1134
1134
  );
1135
1135
  }
1136
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.batch.deploy(
1136
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.batch.deploy(
1137
1137
  lint.normalized.monitors,
1138
1138
  { idempotencyKey }
1139
1139
  );
1140
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
1140
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
1141
1141
  {
1142
1142
  ...payload,
1143
1143
  idempotency_key: idempotencyKey,
@@ -1170,7 +1170,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
1170
1170
  );
1171
1171
  }
1172
1172
  if (options.dryRun) {
1173
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
1173
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
1174
1174
  {
1175
1175
  ok: true,
1176
1176
  dry_run: true,
@@ -1187,7 +1187,7 @@ async function handleNamedMonitorBatchSync(batchId, options) {
1187
1187
  "sync",
1188
1188
  options.idempotencyKey
1189
1189
  );
1190
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.batches.sync(
1190
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.batches.sync(
1191
1191
  batchId,
1192
1192
  lint.normalized.monitors,
1193
1193
  {
@@ -1195,14 +1195,14 @@ async function handleNamedMonitorBatchSync(batchId, options) {
1195
1195
  ...parsedGeneration === void 0 ? {} : { expectedGeneration: parsedGeneration }
1196
1196
  }
1197
1197
  );
1198
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
1198
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
1199
1199
  { ...payload, idempotency_key: idempotencyKey },
1200
1200
  { json: options.json, text: renderMonitorJob(payload) }
1201
1201
  );
1202
1202
  }
1203
1203
  async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
1204
1204
  if (options.dryRun) {
1205
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
1205
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
1206
1206
  {
1207
1207
  ok: true,
1208
1208
  dry_run: true,
@@ -1218,17 +1218,17 @@ async function handleNamedMonitorBatchLifecycle(batchId, intent, options) {
1218
1218
  intent,
1219
1219
  options.idempotencyKey
1220
1220
  );
1221
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.batches[intent](batchId, {
1221
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.batches[intent](batchId, {
1222
1222
  idempotencyKey
1223
1223
  });
1224
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
1224
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
1225
1225
  { ...payload, idempotency_key: idempotencyKey },
1226
1226
  { json: options.json, text: renderMonitorJob(payload) }
1227
1227
  );
1228
1228
  }
1229
1229
  async function handleNamedMonitorBatchGet(batchId, options) {
1230
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.batches.get(batchId);
1231
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
1230
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.batches.get(batchId);
1231
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, {
1232
1232
  json: options.json,
1233
1233
  text: renderMonitorJob(payload)
1234
1234
  });
@@ -1242,7 +1242,7 @@ async function handleMonitorBatchLint(options) {
1242
1242
  const result = _chunkU2LVWCTDjs.lintMonitorBatchInput.call(void 0,
1243
1243
  readMonitorDefinitionsJsonFile(options.file)
1244
1244
  );
1245
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
1245
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
1246
1246
  {
1247
1247
  ok: !result.issues.some((issue) => issue.severity === "error"),
1248
1248
  ...result.normalized ? { normalized: result.normalized } : {},
@@ -1262,7 +1262,7 @@ async function handleMonitorFleetLint(options) {
1262
1262
  const result = _chunkWOQO3GV4js.lintMonitorFleetInput.call(void 0,
1263
1263
  readMonitorDefinitionsJsonFile(options.file)
1264
1264
  );
1265
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
1265
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
1266
1266
  {
1267
1267
  ok: !result.issues.some((issue) => issue.severity === "error"),
1268
1268
  ...result.normalized ? { normalized: result.normalized } : {},
@@ -1274,32 +1274,32 @@ async function handleMonitorFleetLint(options) {
1274
1274
  process.exitCode = 2;
1275
1275
  }
1276
1276
  async function handleMonitorJobGet(jobId, options) {
1277
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.jobs.get(jobId);
1278
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
1277
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.jobs.get(jobId);
1278
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, {
1279
1279
  json: options.json,
1280
1280
  text: renderMonitorJob(payload)
1281
1281
  });
1282
1282
  }
1283
1283
  async function handleMonitorJobWait(jobId, options) {
1284
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.jobs.wait(jobId, {
1284
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.jobs.wait(jobId, {
1285
1285
  timeoutMs: fleetTimeoutMs(options.timeout),
1286
1286
  pollIntervalMs: FLEET_POLL_INTERVAL_MS
1287
1287
  });
1288
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
1288
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, {
1289
1289
  json: options.json,
1290
1290
  text: renderMonitorJob(payload)
1291
1291
  });
1292
1292
  }
1293
1293
  async function handleMonitorJobLogs(jobId, options) {
1294
1294
  const limit = options.limit ? fleetIntegerOption(options.limit, "--limit") : void 0;
1295
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.jobs.logs(jobId, {
1295
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.jobs.logs(jobId, {
1296
1296
  ...limit === void 0 ? {} : { limit }
1297
1297
  });
1298
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
1298
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
1299
1299
  }
1300
1300
  async function handleMonitorJobCancel(jobId, options) {
1301
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.jobs.cancel(jobId);
1302
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
1301
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.jobs.cancel(jobId);
1302
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, {
1303
1303
  json: options.json,
1304
1304
  text: renderMonitorJob(payload)
1305
1305
  });
@@ -1616,7 +1616,7 @@ function renderFleetDeactivatePlan(payload, fleetId) {
1616
1616
  `;
1617
1617
  }
1618
1618
  function reportFleetState(payload, error, options) {
1619
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
1619
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
1620
1620
  {
1621
1621
  ...payload,
1622
1622
  code: error.code,
@@ -1750,7 +1750,7 @@ async function handleMonitorFleetsInit(fleetId, options) {
1750
1750
  _fs.writeFileSync.call(void 0, file, `${JSON.stringify(definition, null, 2)}
1751
1751
  `, "utf8");
1752
1752
  const next = `deepline monitors fleets deploy --file ${fleetShellArg(file)} --dry-run`;
1753
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
1753
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
1754
1754
  { schemaVersion: 2, file, definition, next },
1755
1755
  {
1756
1756
  json: options.json,
@@ -1812,7 +1812,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1812
1812
  'The Fleet definition has no id. Add a top-level "id" and re-run.'
1813
1813
  );
1814
1814
  }
1815
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
1815
+ const client = new (0, _chunkW32KT6LMjs.DeeplineClient)();
1816
1816
  const payload = await client.monitors.fleets.sync(
1817
1817
  _nullishCoalesce(definition, () => ( fleetId)),
1818
1818
  {
@@ -1834,7 +1834,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1834
1834
  }
1835
1835
  const accepted = { ...payload, idempotency_key: idempotencyKey };
1836
1836
  if (!options.wait || options.dryRun) {
1837
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, accepted, {
1837
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, accepted, {
1838
1838
  json: options.json,
1839
1839
  text: renderFleetSync(payload, {
1840
1840
  fleetId,
@@ -1860,7 +1860,7 @@ async function handleMonitorFleetsSync(target, options, idempotencyKey) {
1860
1860
  const status = fleetStatus(final);
1861
1861
  const summary = renderFleetGet(final);
1862
1862
  if (status === "converged") {
1863
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1863
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
1864
1864
  return;
1865
1865
  }
1866
1866
  if (status === "billing_suspended") {
@@ -1900,14 +1900,14 @@ async function handleMonitorFleetsGet(fleetId, options) {
1900
1900
  );
1901
1901
  }
1902
1902
  const limit = options.limit === void 0 ? void 0 : fleetIntegerOption(options.limit, "--limit");
1903
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
1903
+ const client = new (0, _chunkW32KT6LMjs.DeeplineClient)();
1904
1904
  const payload = await client.monitors.fleets.get(fleetId, {
1905
1905
  ...options.drift ? { drift: true } : {},
1906
1906
  ...limit !== void 0 ? { limit } : {}
1907
1907
  });
1908
1908
  const text = fleetId ? renderFleetGet(payload) : renderFleetList(payload);
1909
1909
  if (!options.check) {
1910
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1910
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1911
1911
  return;
1912
1912
  }
1913
1913
  const statuses = fleetId ? [fleetStatus(payload)] : (Array.isArray(payload.fleets) ? payload.fleets : []).map(
@@ -1915,7 +1915,7 @@ async function handleMonitorFleetsGet(fleetId, options) {
1915
1915
  );
1916
1916
  const unconverged = statuses.filter((status) => status !== "converged");
1917
1917
  if (unconverged.length === 0) {
1918
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1918
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
1919
1919
  return;
1920
1920
  }
1921
1921
  const target = _nullishCoalesce(fleetId, () => ( "<fleet-id>"));
@@ -2078,7 +2078,7 @@ function renderFleetIssuePage(payload) {
2078
2078
  }
2079
2079
  async function handleMonitorFleetsOverviewRead(fleetId, options) {
2080
2080
  const window = fleetChoice(options.window, LEDGER_WINDOWS, "--window");
2081
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
2081
+ const client = new (0, _chunkW32KT6LMjs.DeeplineClient)();
2082
2082
  if (fleetId) {
2083
2083
  const listOnly = [
2084
2084
  options.q !== void 0 ? "--q" : "",
@@ -2093,7 +2093,7 @@ async function handleMonitorFleetsOverviewRead(fleetId, options) {
2093
2093
  const payload2 = await client.monitors.fleets.overview(fleetId, {
2094
2094
  ...window ? { window } : {}
2095
2095
  });
2096
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload2, {
2096
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload2, {
2097
2097
  json: options.json,
2098
2098
  text: renderFleetOverviewDetail(payload2, window)
2099
2099
  });
@@ -2109,7 +2109,7 @@ async function handleMonitorFleetsOverviewRead(fleetId, options) {
2109
2109
  ...sort ? { sort } : {},
2110
2110
  ...window ? { window } : {}
2111
2111
  });
2112
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
2112
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, {
2113
2113
  json: options.json,
2114
2114
  text: renderFleetOverviewList(payload)
2115
2115
  });
@@ -2120,13 +2120,13 @@ async function handleMonitorFleetsIssues(fleetId, options) {
2120
2120
  if (limit !== void 0 && (limit < 1 || limit > 100)) {
2121
2121
  throw new MonitorsUsageError("--limit must be an integer from 1 to 100.");
2122
2122
  }
2123
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.fleets.issues(fleetId, {
2123
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.fleets.issues(fleetId, {
2124
2124
  ...group ? { group } : {},
2125
2125
  ...options.cause ? { cause: options.cause } : {},
2126
2126
  ...options.cursor ? { cursor: options.cursor } : {},
2127
2127
  ...limit !== void 0 ? { limit } : {}
2128
2128
  });
2129
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
2129
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, {
2130
2130
  json: options.json,
2131
2131
  text: renderFleetIssuePage(payload)
2132
2132
  });
@@ -2155,13 +2155,13 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
2155
2155
  ${fleetReactivateCommandLine(fleetId, options)}`
2156
2156
  );
2157
2157
  }
2158
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
2158
+ const client = new (0, _chunkW32KT6LMjs.DeeplineClient)();
2159
2159
  const payload = await client.monitors.fleets.reactivate(fleetId, {
2160
2160
  idempotencyKey
2161
2161
  });
2162
2162
  const accepted = { ...payload, idempotency_key: idempotencyKey };
2163
2163
  if (!options.wait) {
2164
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, accepted, {
2164
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, accepted, {
2165
2165
  json: options.json,
2166
2166
  text: `Fleet ${fleetId} \u2014 ${readMonitorState(payload) ? `state ${readMonitorState(payload)}` : "reactivation accepted"}
2167
2167
  idempotency key ${idempotencyKey}
@@ -2184,7 +2184,7 @@ async function handleMonitorFleetsReactivate(fleetId, options, idempotencyKey) {
2184
2184
  const envelope = { ...accepted, ...final };
2185
2185
  const text = renderFleetGet(final);
2186
2186
  if (fleetStatus(final) === "converged") {
2187
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
2187
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text });
2188
2188
  return;
2189
2189
  }
2190
2190
  if (fleetStatus(final) === "billing_suspended") {
@@ -2233,7 +2233,7 @@ async function confirmFleetDeactivate(fleetId, plan) {
2233
2233
  }
2234
2234
  }
2235
2235
  async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
2236
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
2236
+ const client = new (0, _chunkW32KT6LMjs.DeeplineClient)();
2237
2237
  if (options.dryRun) {
2238
2238
  const plan = await client.monitors.fleets.deactivate(fleetId, {
2239
2239
  dryRun: true,
@@ -2243,7 +2243,7 @@ async function handleMonitorFleetsDeactivate(fleetId, options, idempotencyKey) {
2243
2243
  command: "deepline monitors fleets deactivate",
2244
2244
  mutation: "fleet deactivate"
2245
2245
  });
2246
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, plan, {
2246
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, plan, {
2247
2247
  json: options.json,
2248
2248
  text: renderFleetDeactivatePlan(plan, fleetId)
2249
2249
  });
@@ -2281,7 +2281,7 @@ Preview the blast radius first:
2281
2281
  });
2282
2282
  const accepted = { ...payload, idempotency_key: idempotencyKey };
2283
2283
  if (payload.already === true) {
2284
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, accepted, {
2284
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, accepted, {
2285
2285
  json: options.json,
2286
2286
  text: `Fleet ${fleetId} is already deactivated.
2287
2287
  `
@@ -2293,7 +2293,7 @@ Preview the blast radius first:
2293
2293
  ` + (fleetServerNext(payload) ? `Next: ${fleetServerNext(payload)}
2294
2294
  ` : "");
2295
2295
  if (!options.wait) {
2296
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, accepted, {
2296
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, accepted, {
2297
2297
  json: options.json,
2298
2298
  text: acceptedText
2299
2299
  });
@@ -2315,7 +2315,7 @@ Preview the blast radius first:
2315
2315
  const envelope = { ...accepted, ...final };
2316
2316
  const summary = renderFleetGet(final);
2317
2317
  if (fleetStatus(final) === "deactivated") {
2318
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
2318
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, envelope, { json: options.json, text: summary });
2319
2319
  return;
2320
2320
  }
2321
2321
  if (fleetStatus(final) === "billing_suspended") {
@@ -2354,7 +2354,7 @@ function handleMonitorFleetsOverview(options) {
2354
2354
  "Agent notes:",
2355
2355
  ...MONITOR_FLEET_AGENT_NOTES.map((note) => ` ${note}`)
2356
2356
  ];
2357
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
2357
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
2358
2358
  {
2359
2359
  schemaVersion: 1,
2360
2360
  lifecycle: MONITOR_FLEET_LIFECYCLE,
@@ -2516,7 +2516,7 @@ function renderMonitorGet(payload) {
2516
2516
  `;
2517
2517
  }
2518
2518
  async function handleMonitorsGet(key, options) {
2519
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
2519
+ const client = new (0, _chunkW32KT6LMjs.DeeplineClient)();
2520
2520
  const payload = await client.monitors.get(key);
2521
2521
  const boundPlays = Array.isArray(payload.bound_plays) ? payload.bound_plays : null;
2522
2522
  const dependents = boundPlays ? {
@@ -2524,24 +2524,24 @@ async function handleMonitorsGet(key, options) {
2524
2524
  truncated: payload.consumer_health_truncated === true
2525
2525
  } : await client.monitors.dependents(key);
2526
2526
  const detail = { ...payload, dependents };
2527
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, detail, {
2527
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, detail, {
2528
2528
  json: options.json,
2529
2529
  text: renderMonitorGet(detail)
2530
2530
  });
2531
2531
  }
2532
2532
  async function handleMonitorsTest(key, payload, options) {
2533
2533
  const explicitPayload = parseJsonObjectArg(payload, "<payload>");
2534
- const result = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.test(key, explicitPayload);
2534
+ const result = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.test(key, explicitPayload);
2535
2535
  const text = `Monitor diagnostic for ${key}: ${result.accepted === true ? "accepted" : "rejected"}
2536
2536
  mode: validation_only (no rows written, credits spent, or Plays dispatched)
2537
2537
  persisted rows: ${_nullishCoalesce(asFiniteNumber(result.persisted_rows), () => ( 0))}
2538
2538
  dispatched bound Plays: ${_nullishCoalesce(asFiniteNumber(result.dispatched_bound_plays), () => ( 0))}
2539
2539
  `;
2540
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, result, { json: options.json, text });
2540
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, result, { json: options.json, text });
2541
2541
  }
2542
2542
  async function handleMonitorsValidate(key, options) {
2543
- const result = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.validate(key);
2544
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, result, { json: options.json });
2543
+ const result = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.validate(key);
2544
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, result, { json: options.json });
2545
2545
  if (result.valid === false) process.exitCode = 7;
2546
2546
  }
2547
2547
  async function confirmMonitorDelete(key) {
@@ -2559,14 +2559,14 @@ async function confirmMonitorDelete(key) {
2559
2559
  }
2560
2560
  }
2561
2561
  async function handleMonitorsDelete(key, options) {
2562
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
2562
+ const client = new (0, _chunkW32KT6LMjs.DeeplineClient)();
2563
2563
  if (options.dryRun) {
2564
2564
  const payload2 = await client.monitors.delete(key, { dryRun: true });
2565
2565
  assertMonitorDryRunAcknowledged(payload2, {
2566
2566
  command: "deepline monitors delete",
2567
2567
  mutation: "delete"
2568
2568
  });
2569
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload2, {
2569
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload2, {
2570
2570
  json: options.json,
2571
2571
  text: renderMonitorDeletePlan(payload2, key)
2572
2572
  });
@@ -2586,7 +2586,7 @@ async function handleMonitorsDelete(key, options) {
2586
2586
  }
2587
2587
  }
2588
2588
  const payload = await client.monitors.delete(key);
2589
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2589
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2590
2590
  }
2591
2591
  async function handleMonitorsUpdate(key, patch, options) {
2592
2592
  const body = resolveMonitorJsonBody({
@@ -2595,25 +2595,25 @@ async function handleMonitorsUpdate(key, patch, options) {
2595
2595
  argLabel: "<patch>",
2596
2596
  command: `deepline monitors update ${key}`
2597
2597
  });
2598
- const payload = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.update(key, body);
2599
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2598
+ const payload = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.update(key, body);
2599
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2600
2600
  }
2601
2601
  async function handleMonitorsReactivate(key, options) {
2602
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
2602
+ const client = new (0, _chunkW32KT6LMjs.DeeplineClient)();
2603
2603
  if (options.dryRun) {
2604
2604
  const payload2 = await client.monitors.reactivate(key, { dryRun: true });
2605
2605
  assertMonitorDryRunAcknowledged(payload2, {
2606
2606
  command: "deepline monitors reactivate",
2607
2607
  mutation: "reactivate"
2608
2608
  });
2609
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload2, {
2609
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload2, {
2610
2610
  json: options.json,
2611
2611
  text: renderMonitorReactivatePlan(payload2, key)
2612
2612
  });
2613
2613
  return;
2614
2614
  }
2615
2615
  const payload = await client.monitors.reactivate(key);
2616
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2616
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, payload, { json: options.json });
2617
2617
  }
2618
2618
  var MONITOR_VERB_POLL_INTERVAL_MS = 2e3;
2619
2619
  function monitorHealthLine(health) {
@@ -2735,7 +2735,7 @@ function monitorHealthText(health) {
2735
2735
  `;
2736
2736
  }
2737
2737
  async function handleMonitorsAudit(options) {
2738
- const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
2738
+ const client = new (0, _chunkW32KT6LMjs.DeeplineClient)();
2739
2739
  const fleetId = _optionalChain([options, 'access', _106 => _106.fleet, 'optionalAccess', _107 => _107.trim, 'call', _108 => _108()]) || void 0;
2740
2740
  const scope = fleetId ? { fleetId } : {};
2741
2741
  let result = await client.monitors.audit(scope);
@@ -2779,7 +2779,7 @@ async function handleMonitorsAudit(options) {
2779
2779
  "",
2780
2780
  monitorHealthText(health)
2781
2781
  ].join("\n");
2782
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
2782
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
2783
2783
  { ...result, audit: { ...result.audit, totals }, health },
2784
2784
  { json: options.json, text }
2785
2785
  );
@@ -2792,10 +2792,10 @@ async function handleMonitorsRepair(options) {
2792
2792
  }
2793
2793
  async function handleMonitorsHealth(options) {
2794
2794
  const fleetId = _optionalChain([options, 'access', _112 => _112.fleet, 'optionalAccess', _113 => _113.trim, 'call', _114 => _114()]) || void 0;
2795
- const health = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.health(
2795
+ const health = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.health(
2796
2796
  fleetId ? { fleetId } : {}
2797
2797
  );
2798
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, health, {
2798
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, health, {
2799
2799
  json: options.json,
2800
2800
  text: monitorHealthText(health)
2801
2801
  });
@@ -2869,14 +2869,14 @@ async function handleMonitorBatchDeploy(options) {
2869
2869
  "deploy",
2870
2870
  options.idempotencyKey
2871
2871
  );
2872
- const result = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.batch.submit({
2872
+ const result = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.batch.submit({
2873
2873
  kind: "deploy",
2874
2874
  manifestNdjson,
2875
2875
  dryRun: options.dryRun === true,
2876
2876
  idempotencyKey
2877
2877
  });
2878
2878
  const operation = result.operation;
2879
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
2879
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
2880
2880
  { ...result, idempotency_key: idempotencyKey },
2881
2881
  {
2882
2882
  json: options.json,
@@ -2904,7 +2904,7 @@ async function handleMonitorBatch(kind, options) {
2904
2904
  kind,
2905
2905
  options.idempotencyKey
2906
2906
  );
2907
- const result = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.batch.submit({
2907
+ const result = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.batch.submit({
2908
2908
  kind,
2909
2909
  scope,
2910
2910
  dryRun: options.dryRun === true,
@@ -2917,14 +2917,14 @@ async function handleMonitorBatch(kind, options) {
2917
2917
  `state ${operation.state} \xB7 retry key ${idempotencyKey}`,
2918
2918
  `inspect: deepline monitors batch get ${operation.runId}`
2919
2919
  ].join("\n");
2920
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
2920
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0,
2921
2921
  { ...result, idempotency_key: idempotencyKey },
2922
2922
  { json: options.json, text: `${text}
2923
2923
  ` }
2924
2924
  );
2925
2925
  }
2926
2926
  async function handleMonitorBatchGet(operationId, options) {
2927
- const result = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().monitors.batch.get(operationId, {
2927
+ const result = await new (0, _chunkW32KT6LMjs.DeeplineClient)().monitors.batch.get(operationId, {
2928
2928
  ...options.cursor ? { cursor: options.cursor } : {}
2929
2929
  });
2930
2930
  const summary = _nullishCoalesce(result.operation.summary, () => ( {}));
@@ -2936,7 +2936,7 @@ async function handleMonitorBatchGet(operationId, options) {
2936
2936
  `results ${result.results.page.length}${result.results.isDone ? "" : " (more; pass --cursor)"}`
2937
2937
  ] : []
2938
2938
  ].join("\n");
2939
- _chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
2939
+ _chunkLEREPTAEjs.printCommandEnvelope.call(void 0, result, { json: options.json, text: `${text}
2940
2940
  ` });
2941
2941
  }
2942
2942
  function registerMonitorsCommands(program) {