deepline 0.3.546 → 0.3.547

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 (202) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +13 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +7 -1
  3. package/dist/bundling-sources/sdk/src/integrations.ts +17 -7
  4. package/dist/bundling-sources/sdk/src/play.ts +71 -0
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +13 -4
  7. package/dist/bundling-sources/sdk/src/types.ts +33 -0
  8. package/dist/bundling-sources/shared_libs/integration-contracts/calendar-delegation.ts +7 -0
  9. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +2 -0
  10. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +1 -0
  11. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +19 -1
  12. package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +17 -2
  13. package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +57 -5
  14. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +295 -52
  15. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +10 -1
  16. package/dist/bundling-sources/shared_libs/play-runtime/docflow-decision-tracker.ts +135 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/docflow-fail-open.ts +177 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/docflow-node-io.ts +99 -2
  19. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +16 -10
  20. package/dist/bundling-sources/shared_libs/play-runtime/fenced-call-diagnostics.ts +211 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +52 -14
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +21 -2
  23. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +68 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +11 -3
  26. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +9 -1
  27. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +48 -0
  28. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -1
  29. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +716 -51
  30. package/dist/bundling-sources/shared_libs/plays/docflow-decision-arms.ts +146 -0
  31. package/dist/bundling-sources/shared_libs/plays/docflow-flow-order.ts +94 -0
  32. package/dist/bundling-sources/shared_libs/plays/docflow-unreached-reason.ts +10 -1
  33. package/dist/bundling-sources/shared_libs/plays/docflow.ts +787 -117
  34. package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +8 -2
  35. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +6 -0
  36. package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +13 -0
  37. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +25 -0
  38. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +56 -0
  39. package/dist/cli/auth-AC5277PI.js +43 -0
  40. package/dist/cli/{auth-KFWG72AZ.mjs → auth-WJEY4IDX.mjs} +5 -5
  41. package/dist/cli/{billing-OQVOAZ4S.js → billing-IJITDDRQ.js} +96 -96
  42. package/dist/cli/{billing-MMZ336HO.mjs → billing-PHJUDYF3.mjs} +10 -10
  43. package/dist/cli/{chunk-TBWYZOSV.js → chunk-2AHY47SI.js} +3 -3
  44. package/dist/cli/{chunk-MXQP7CXZ.js → chunk-2HPTLBNB.js} +3 -3
  45. package/dist/cli/{chunk-TI6DTURF.js → chunk-4WAM6TLD.js} +7 -1
  46. package/dist/cli/{chunk-JARZ47OP.mjs → chunk-56MEAGWA.mjs} +2 -2
  47. package/dist/cli/{chunk-GYTSDSQD.mjs → chunk-5SFHPMBY.mjs} +11 -11
  48. package/dist/cli/{chunk-Z3UEBFIN.js → chunk-ABLTVG3J.js} +41 -41
  49. package/dist/cli/{chunk-LX2TC3HO.mjs → chunk-AEQ5VWZ5.mjs} +4 -4
  50. package/dist/cli/{chunk-MI7X6V6V.mjs → chunk-CKIRKYW7.mjs} +3 -3
  51. package/dist/cli/{chunk-2JHYYB3F.js → chunk-CSPHSNBW.js} +3 -3
  52. package/dist/cli/{chunk-IVWU7SJC.js → chunk-D6OIEH47.js} +5 -5
  53. package/dist/cli/{chunk-KUK7ARXA.mjs → chunk-DIUNDLSX.mjs} +2 -2
  54. package/dist/cli/{chunk-RO66FPTS.mjs → chunk-DJI5CLLW.mjs} +1 -1
  55. package/dist/cli/{chunk-LIJKRDDG.js → chunk-DZC7LMYM.js} +6 -6
  56. package/dist/cli/{chunk-UQJBV5PM.js → chunk-E2OIYPB4.js} +10 -10
  57. package/dist/cli/{chunk-JA633HRV.mjs → chunk-ECUD4QPD.mjs} +3 -3
  58. package/dist/cli/{chunk-VPERQ3U6.mjs → chunk-ESCVHDNY.mjs} +5 -5
  59. package/dist/cli/{chunk-JVOUQFHT.js → chunk-FFBXLFKV.js} +1 -1
  60. package/dist/cli/{chunk-3DUNNZB6.mjs → chunk-FMQXAOVE.mjs} +4 -4
  61. package/dist/cli/{chunk-HXIR3VQL.mjs → chunk-FZHMNK6F.mjs} +7 -1
  62. package/dist/cli/{chunk-PU3ZAG6V.mjs → chunk-G6KW764N.mjs} +1 -1
  63. package/dist/cli/{chunk-EEG46QZY.mjs → chunk-G6XTCG3J.mjs} +2 -2
  64. package/dist/cli/{chunk-EEJHB76U.js → chunk-GIGAYLY6.js} +12 -12
  65. package/dist/cli/{chunk-BLYW6FFB.js → chunk-GJA2PRHJ.js} +2 -2
  66. package/dist/cli/{chunk-H7Q5IDO3.js → chunk-GJOGFWX3.js} +20 -20
  67. package/dist/cli/{chunk-6Y5TU3R7.mjs → chunk-GPAWLXW3.mjs} +1 -1
  68. package/dist/cli/{chunk-5W4ENHWM.js → chunk-GZFZZQL4.js} +285 -264
  69. package/dist/cli/{chunk-P7A3H6G5.mjs → chunk-HARZ4AAX.mjs} +1 -1
  70. package/dist/cli/{chunk-MEGHIX4M.js → chunk-HFIFKP3A.js} +5 -5
  71. package/dist/cli/{chunk-LHE2TSV6.mjs → chunk-IGAK22XO.mjs} +1 -1
  72. package/dist/cli/{chunk-VTK3HGMN.mjs → chunk-IKYN6PLO.mjs} +5 -5
  73. package/dist/cli/{chunk-UREAIHUU.mjs → chunk-ITLZBDSR.mjs} +3 -3
  74. package/dist/cli/{chunk-6LG7MLJ2.js → chunk-IVFFCAV2.js} +44 -44
  75. package/dist/cli/{chunk-SYTWWVIQ.js → chunk-K3GMDSUX.js} +5 -5
  76. package/dist/cli/{chunk-WKHPLBJK.js → chunk-L5J6UJ2X.js} +15 -15
  77. package/dist/cli/{chunk-X5KOHDJN.mjs → chunk-L6QE2XVM.mjs} +1 -1
  78. package/dist/cli/{chunk-SH32HL7I.js → chunk-LMLSOHTU.js} +53 -53
  79. package/dist/cli/{chunk-JCWNF44W.js → chunk-MBQELFL7.js} +22 -22
  80. package/dist/cli/{chunk-Z7SXGOIQ.mjs → chunk-MF7PCM6C.mjs} +1 -1
  81. package/dist/cli/{chunk-F2VEFMU5.js → chunk-MO7TGNXB.js} +13 -13
  82. package/dist/cli/{chunk-7ZW67ME6.mjs → chunk-MOZEAGSR.mjs} +1 -1
  83. package/dist/cli/{chunk-5VNQMVCU.js → chunk-N63U5CRG.js} +26 -26
  84. package/dist/cli/{chunk-JCH4UNNS.js → chunk-NBYFQZ6O.js} +2 -2
  85. package/dist/cli/{chunk-BTFUAGHC.js → chunk-OVYXYTEP.js} +16 -16
  86. package/dist/cli/{chunk-J65HJCJO.mjs → chunk-PBMO36BP.mjs} +2 -2
  87. package/dist/cli/{chunk-F5YQXCP3.js → chunk-PVQCX6KQ.js} +50 -7
  88. package/dist/cli/{chunk-K2XELBPF.mjs → chunk-QLE3QKJ2.mjs} +5 -5
  89. package/dist/cli/{chunk-VAT2SXFF.js → chunk-QU3K3IY6.js} +12 -12
  90. package/dist/cli/{chunk-JYG4XZLT.js → chunk-REAFIEV5.js} +99 -99
  91. package/dist/cli/{chunk-5OEFXAKP.mjs → chunk-RMCCB3XY.mjs} +50 -7
  92. package/dist/cli/{chunk-HJR2DDJS.mjs → chunk-RXRC2COC.mjs} +2 -2
  93. package/dist/cli/{chunk-4AZLGNXV.js → chunk-SAJWYN4B.js} +4 -4
  94. package/dist/cli/{chunk-VXTTAYOT.mjs → chunk-TNJG4ZPN.mjs} +3 -3
  95. package/dist/cli/{chunk-PMDHY2YK.js → chunk-VNOQEDVC.js} +7 -7
  96. package/dist/cli/{chunk-GOOF7E2B.mjs → chunk-VPF54TXQ.mjs} +5 -5
  97. package/dist/cli/{chunk-2HSZCQMT.mjs → chunk-WYT3H6JD.mjs} +1 -1
  98. package/dist/cli/{chunk-OAKWSLKS.mjs → chunk-XMBVHJPR.mjs} +28 -7
  99. package/dist/cli/{chunk-7MY7KWJS.mjs → chunk-XNTDTAKC.mjs} +1 -1
  100. package/dist/cli/{chunk-5V7NZKGG.js → chunk-YURGAKI3.js} +2 -2
  101. package/dist/cli/{chunk-ND7SFRQL.js → chunk-YVKLF7RW.js} +2 -2
  102. package/dist/cli/{chunk-6FBDTYR2.mjs → chunk-Z2YGQZWV.mjs} +2 -2
  103. package/dist/cli/command-docs.js +2 -2
  104. package/dist/cli/command-docs.mjs +1 -1
  105. package/dist/cli/{concurrent-runs-help-C2O5YKQA.mjs → concurrent-runs-help-ZNGP563R.mjs} +6 -6
  106. package/dist/cli/concurrent-runs-help-ZYISYOQA.js +21 -0
  107. package/dist/cli/{csv-Z4DNGR54.mjs → csv-VAHQHYYV.mjs} +4 -4
  108. package/dist/cli/{csv-MJDNOIQJ.js → csv-X6D4ZELE.js} +13 -13
  109. package/dist/cli/{db-4RL2BNOF.mjs → db-4G4S2VOV.mjs} +7 -7
  110. package/dist/cli/{db-S5QVPK5E.js → db-YA5ZGVEX.js} +28 -28
  111. package/dist/cli/{describe-L4P5SZLQ.mjs → describe-EVXEM2S6.mjs} +19 -19
  112. package/dist/cli/describe-GYYSLZLV.js +50 -0
  113. package/dist/cli/describe-core.d.mts +4 -4
  114. package/dist/cli/describe-core.d.ts +4 -4
  115. package/dist/cli/{executions-MFZ2Z36O.js → executions-5YC7ABF6.js} +9 -9
  116. package/dist/cli/{executions-RR6O3XK5.mjs → executions-HR6CTN5M.mjs} +7 -7
  117. package/dist/cli/{feedback-EQBQ3ABB.mjs → feedback-GEU5SPLR.mjs} +6 -6
  118. package/dist/cli/{feedback-YDAG7VH2.js → feedback-MJHSYLFF.js} +14 -14
  119. package/dist/cli/git-FZIQZNI4.js +25 -0
  120. package/dist/cli/{git-YGLCCU35.mjs → git-NPFF6QUS.mjs} +5 -5
  121. package/dist/cli/index.js +146 -146
  122. package/dist/cli/index.mjs +45 -45
  123. package/dist/cli/{integrations-IQXYMRMW.js → integrations-YPHFI77G.js} +19 -17
  124. package/dist/cli/{integrations-FWYXSBHK.mjs → integrations-Z7EGVBHF.mjs} +11 -9
  125. package/dist/cli/{legacy-noops-U7LI7UXC.js → legacy-noops-246E3KKG.js} +9 -9
  126. package/dist/cli/{legacy-noops-I4YRIX5F.mjs → legacy-noops-5IYCFWWX.mjs} +6 -6
  127. package/dist/cli/{mcp-QJBMB6VS.mjs → mcp-WUYGZXPI.mjs} +4 -4
  128. package/dist/cli/{mcp-GX2UKKWU.js → mcp-YTYTW67G.js} +24 -24
  129. package/dist/cli/{monitors-Z6EGKYJP.mjs → monitors-73DQKCU7.mjs} +26 -8
  130. package/dist/cli/{monitors-WCJYINGX.js → monitors-SA6ILD6Z.js} +119 -101
  131. package/dist/cli/{org-NNHICBR2.mjs → org-WVQRB2KX.mjs} +7 -7
  132. package/dist/cli/{org-7SKG423N.js → org-X7ELDV7B.js} +89 -89
  133. package/dist/cli/{play-CXDFPJ7Z.mjs → play-QI6V2EUQ.mjs} +295 -67
  134. package/dist/cli/{play-4P4DTG3Q.js → play-QTYOAJPE.js} +897 -669
  135. package/dist/cli/{providers-VQLQ7DTR.mjs → providers-DPVMVDS4.mjs} +7 -7
  136. package/dist/cli/{providers-EE4TUE3O.js → providers-XXFLVREV.js} +10 -10
  137. package/dist/cli/{quickstart-RVXHK4WA.js → quickstart-33ISXQJU.js} +6 -6
  138. package/dist/cli/{quickstart-IYNJRB5G.mjs → quickstart-YWGNHULM.mjs} +4 -4
  139. package/dist/cli/{run-R3F34KU3.js → run-BWHZXLTD.js} +45 -45
  140. package/dist/cli/{run-VBQPPMEX.mjs → run-J6FCAKQC.mjs} +25 -25
  141. package/dist/cli/search-JCWJX2XD.js +32 -0
  142. package/dist/cli/{search-B7R62HX5.mjs → search-Z3UU3WBB.mjs} +8 -8
  143. package/dist/cli/{search-output-LNQQXIGZ.mjs → search-output-OJYY4J7E.mjs} +4 -4
  144. package/dist/cli/{search-output-LWHWEPOT.js → search-output-YIPV74ME.js} +6 -6
  145. package/dist/cli/{secrets-QBOZ7WTD.js → secrets-UXRJCEN4.js} +16 -16
  146. package/dist/cli/{secrets-NM3VAJLO.mjs → secrets-YZZN2WST.mjs} +7 -7
  147. package/dist/cli/{sessions-R5BSIJ4I.mjs → sessions-ITCGPD7Z.mjs} +6 -6
  148. package/dist/cli/sessions-NA4SJH6Q.js +22 -0
  149. package/dist/cli/{settings-POYWKNRD.js → settings-LAFYMILP.js} +86 -86
  150. package/dist/cli/{settings-S4PN7WLY.mjs → settings-ZP2LSVNM.mjs} +13 -13
  151. package/dist/cli/{setup-VHB4Z654.js → setup-4AL3XYM5.js} +49 -49
  152. package/dist/cli/{setup-PFLXVBTL.mjs → setup-WEQAQSYC.mjs} +9 -9
  153. package/dist/cli/{skills-W2TELEU7.mjs → skills-NQH4HFW2.mjs} +7 -7
  154. package/dist/cli/skills-XZ4Y6SZ7.js +36 -0
  155. package/dist/cli/{tools-M4FA6N3Y.mjs → tools-CXK2GSI4.mjs} +18 -18
  156. package/dist/cli/tools-WJQ6Y7E4.js +57 -0
  157. package/dist/cli/{update-W7LIHEA7.mjs → update-3ROF3Z75.mjs} +9 -9
  158. package/dist/cli/update-ZLRLTBRD.js +34 -0
  159. package/dist/cli/{views-KTVPV6UP.mjs → views-AOUHVGV2.mjs} +7 -7
  160. package/dist/cli/{views-DJXAGD7V.js → views-XJFO5CEH.js} +22 -22
  161. package/dist/cli/{workflow-NVZDJKH2.js → workflow-GY3DBHXX.js} +18 -18
  162. package/dist/cli/{workflow-LGKCRODX.mjs → workflow-KBS2QJK6.mjs} +8 -8
  163. package/dist/{client-Tp1LSULB.d.mts → client-D1uWA2Vc.d.mts} +1 -1
  164. package/dist/{client-CCyWJqAI.d.ts → client-Hz7SsBXs.d.ts} +1 -1
  165. package/dist/{client-core-BpYiYEfu.d.ts → client-core-D3Ad7Flt.d.ts} +554 -504
  166. package/dist/{client-core-D8eCZz3O.d.mts → client-core-Db_e63Hb.d.mts} +554 -504
  167. package/dist/{compiler-manifest-EBWEUj0b.d.ts → compiler-manifest-BqwVrOri.d.mts} +38 -18
  168. package/dist/{compiler-manifest-EBWEUj0b.d.mts → compiler-manifest-BqwVrOri.d.ts} +38 -18
  169. package/dist/{errors-CParKUQR.d.mts → errors-BU8FB99X.d.mts} +1 -1
  170. package/dist/{errors-Qt0OTA7_.d.ts → errors-DfVN_FUG.d.ts} +1 -1
  171. package/dist/{index-CoqDkIw0.d.ts → index-BGnvtYGc.d.ts} +6 -1
  172. package/dist/{index-BMUVCNp7.d.mts → index-DjZgwpGw.d.mts} +6 -1
  173. package/dist/index.d.mts +28 -8
  174. package/dist/index.d.ts +28 -8
  175. package/dist/index.js +64 -39
  176. package/dist/index.mjs +32 -7
  177. package/dist/install-integrity.json +133 -128
  178. package/dist/plays/bundle-play-file.d.mts +3 -3
  179. package/dist/plays/bundle-play-file.d.ts +3 -3
  180. package/dist/plays/bundle-play-file.mjs +620 -124
  181. package/dist/plays/play-description.d.mts +3 -3
  182. package/dist/plays/play-description.d.ts +3 -3
  183. package/dist/plays/run-request.d.mts +2 -2
  184. package/dist/plays/run-request.d.ts +2 -2
  185. package/dist/release.d.mts +1 -1
  186. package/dist/release.d.ts +1 -1
  187. package/dist/release.js +2 -2
  188. package/dist/release.mjs +1 -1
  189. package/dist/server.d.mts +4 -4
  190. package/dist/server.d.ts +4 -4
  191. package/dist/server.js +6 -6
  192. package/dist/server.mjs +4 -4
  193. package/package.json +1 -1
  194. package/dist/cli/auth-W32GMYND.js +0 -43
  195. package/dist/cli/concurrent-runs-help-6QT7ZR4W.js +0 -21
  196. package/dist/cli/describe-VLU2LUDJ.js +0 -50
  197. package/dist/cli/git-E6W44F5M.js +0 -25
  198. package/dist/cli/search-UUVFXZRA.js +0 -32
  199. package/dist/cli/sessions-K3PD73Q2.js +0 -22
  200. package/dist/cli/skills-QNE2EYT3.js +0 -36
  201. package/dist/cli/tools-3RLI4HGF.js +0 -57
  202. package/dist/cli/update-UT6KIW2W.js +0 -34
@@ -1,21 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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; }
2
2
 
3
- var _chunkMEGHIX4Mjs = require('./chunk-MEGHIX4M.js');
4
- require('./chunk-SH32HL7I.js');
3
+ var _chunkHFIFKP3Ajs = require('./chunk-HFIFKP3A.js');
4
+ require('./chunk-LMLSOHTU.js');
5
5
 
6
6
 
7
- var _chunkSYTWWVIQjs = require('./chunk-SYTWWVIQ.js');
7
+ var _chunkK3GMDSUXjs = require('./chunk-K3GMDSUX.js');
8
8
 
9
9
 
10
10
 
11
- var _chunk5W4ENHWMjs = require('./chunk-5W4ENHWM.js');
12
- require('./chunk-TI6DTURF.js');
11
+ var _chunkGZFZZQL4js = require('./chunk-GZFZZQL4.js');
12
+ require('./chunk-4WAM6TLD.js');
13
13
  require('./chunk-SL6MYJYM.js');
14
14
  require('./chunk-PMH4GLMD.js');
15
15
  require('./chunk-XDVT3GOM.js');
16
16
 
17
17
 
18
- var _chunkF5YQXCP3js = require('./chunk-F5YQXCP3.js');
18
+ var _chunkPVQCX6KQjs = require('./chunk-PVQCX6KQ.js');
19
19
 
20
20
 
21
21
  var _chunkUV4RU2TEjs = require('./chunk-UV4RU2TE.js');
@@ -29,9 +29,9 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
29
29
 
30
30
 
31
31
 
32
- var _chunkH7Q5IDO3js = require('./chunk-H7Q5IDO3.js');
33
- require('./chunk-MXQP7CXZ.js');
34
- require('./chunk-4AZLGNXV.js');
32
+ var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
33
+ require('./chunk-2HPTLBNB.js');
34
+ require('./chunk-SAJWYN4B.js');
35
35
 
36
36
 
37
37
 
@@ -40,7 +40,7 @@ require('./chunk-XNYIZMNQ.js');
40
40
 
41
41
 
42
42
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
43
- require('./chunk-JVOUQFHT.js');
43
+ require('./chunk-FFBXLFKV.js');
44
44
  require('./chunk-OG64RBAC.js');
45
45
  require('./chunk-COGTRVWW.js');
46
46
 
@@ -89,7 +89,7 @@ function reportBillingFailure(failure, options) {
89
89
  if (failure.next) {
90
90
  textLines.push(`Next: ${failure.next}`);
91
91
  }
92
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
92
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
93
93
  {
94
94
  ok: false,
95
95
  exitCode: failure.exitCode,
@@ -110,7 +110,7 @@ function parseTopUpCredits(raw) {
110
110
  return parsed;
111
111
  }
112
112
  function topUpIdempotencyKey(raw) {
113
- return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunk5W4ENHWMjs.requireBillingIdempotencyKey.call(void 0, raw);
113
+ return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkGZFZZQL4js.requireBillingIdempotencyKey.call(void 0, raw);
114
114
  }
115
115
  function targetBillingIdempotencyKey(raw) {
116
116
  return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${_crypto.randomUUID.call(void 0, )}`;
@@ -329,7 +329,7 @@ function defaultLedgerExportPath() {
329
329
  );
330
330
  }
331
331
  async function handleBalance(options) {
332
- const { http } = _chunkH7Q5IDO3js.getAuthedHttpClient.call(void 0, );
332
+ const { http } = _chunkGJOGFWX3js.getAuthedHttpClient.call(void 0, );
333
333
  const payload = await http.get(
334
334
  "/api/v2/billing/balance"
335
335
  );
@@ -413,7 +413,7 @@ async function handleBalance(options) {
413
413
  ...options.verbose ? detail : [],
414
414
  ...lines.slice(1)
415
415
  ];
416
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
416
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
417
417
  {
418
418
  ...payload,
419
419
  ...recovery ? { recovery } : {},
@@ -449,7 +449,7 @@ async function handleUsageEvents(options) {
449
449
  );
450
450
  return;
451
451
  }
452
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
452
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
453
453
  let payload;
454
454
  try {
455
455
  payload = await client.billing.usageEvents({
@@ -480,7 +480,7 @@ async function handleUsageEvents(options) {
480
480
  ),
481
481
  ...nextPage ? [`Next page: ${nextPage}`] : []
482
482
  ];
483
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
483
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
484
484
  {
485
485
  ...payload,
486
486
  next: { page: nextPage },
@@ -502,7 +502,7 @@ async function handleUsage(options) {
502
502
  return;
503
503
  }
504
504
  if (options.events) return handleUsageEvents(options);
505
- const { http } = _chunkH7Q5IDO3js.getAuthedHttpClient.call(void 0, );
505
+ const { http } = _chunkGJOGFWX3js.getAuthedHttpClient.call(void 0, );
506
506
  const params = new URLSearchParams();
507
507
  if (options.requestId !== void 0) {
508
508
  const requestId = options.requestId.trim();
@@ -586,7 +586,7 @@ async function handleUsage(options) {
586
586
  "No continuation is available for this view. Use deepline billing ledger export all for the full ledger."
587
587
  ] : []
588
588
  ];
589
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
589
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
590
590
  {
591
591
  ...payload,
592
592
  recent: {
@@ -600,7 +600,7 @@ async function handleUsage(options) {
600
600
  );
601
601
  }
602
602
  async function handleLimit(options) {
603
- const { http } = _chunkH7Q5IDO3js.getAuthedHttpClient.call(void 0, );
603
+ const { http } = _chunkGJOGFWX3js.getAuthedHttpClient.call(void 0, );
604
604
  const payload = await http.get(
605
605
  "/api/v2/billing/limit"
606
606
  );
@@ -608,7 +608,7 @@ async function handleLimit(options) {
608
608
  `Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
609
609
  "Enforcement: checked before new calls; in-flight work can exceed the cap."
610
610
  ] : ["Monthly usage cap: off"];
611
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
611
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
612
612
  {
613
613
  ...payload,
614
614
  render: { sections: [{ title: "billing limit", lines }] }
@@ -617,12 +617,12 @@ async function handleLimit(options) {
617
617
  );
618
618
  }
619
619
  async function handleSetLimit(credits, options) {
620
- const { http } = _chunkH7Q5IDO3js.getAuthedHttpClient.call(void 0, );
620
+ const { http } = _chunkGJOGFWX3js.getAuthedHttpClient.call(void 0, );
621
621
  const payload = await http.request("/api/v2/billing/limit", {
622
622
  method: "PUT",
623
623
  body: { monthly_credits_limit: Number.parseInt(credits, 10) }
624
624
  });
625
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
625
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
626
626
  {
627
627
  ...payload,
628
628
  render: {
@@ -638,11 +638,11 @@ async function handleSetLimit(credits, options) {
638
638
  );
639
639
  }
640
640
  async function handleLimitOff(options) {
641
- const { http } = _chunkH7Q5IDO3js.getAuthedHttpClient.call(void 0, );
641
+ const { http } = _chunkGJOGFWX3js.getAuthedHttpClient.call(void 0, );
642
642
  const payload = await http.request("/api/v2/billing/limit", {
643
643
  method: "DELETE"
644
644
  });
645
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
645
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
646
646
  {
647
647
  ...payload,
648
648
  render: {
@@ -662,7 +662,7 @@ async function exportLedger(http, outputPath, options) {
662
662
  let initialized = false;
663
663
  let pageNumber = 0;
664
664
  console.error(`Exporting billing ledger to ${outputPath}`);
665
- for await (const entries of _chunk5W4ENHWMjs.iterateCursorPages.call(void 0, async (cursor) => {
665
+ for await (const entries of _chunkGZFZZQL4js.iterateCursorPages.call(void 0, async (cursor) => {
666
666
  pageNumber += 1;
667
667
  console.error(
668
668
  `Fetching page ${pageNumber}; ${summary.row_count} rows written.`
@@ -701,7 +701,7 @@ async function exportLedger(http, outputPath, options) {
701
701
  return summary;
702
702
  }
703
703
  async function handleHistory(options) {
704
- const { http } = _chunkH7Q5IDO3js.getAuthedHttpClient.call(void 0, );
704
+ const { http } = _chunkGJOGFWX3js.getAuthedHttpClient.call(void 0, );
705
705
  const windows = {
706
706
  "1d": 86400,
707
707
  "1w": 604800,
@@ -713,10 +713,10 @@ async function handleHistory(options) {
713
713
  process.cwd(),
714
714
  "deepline",
715
715
  "data",
716
- _chunkH7Q5IDO3js.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
716
+ _chunkGJOGFWX3js.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
717
717
  );
718
718
  const summary = await exportLedger(http, outputPath, { sinceAt });
719
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
719
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
720
720
  {
721
721
  output_path: outputPath,
722
722
  row_count: summary.row_count,
@@ -753,14 +753,14 @@ async function handleLedgerExportAll(options) {
753
753
  );
754
754
  return;
755
755
  }
756
- const { http } = _chunkH7Q5IDO3js.getAuthedHttpClient.call(void 0, );
756
+ const { http } = _chunkGJOGFWX3js.getAuthedHttpClient.call(void 0, );
757
757
  const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
758
758
  const summary = await exportLedger(http, outputPath, {
759
759
  sinceAt,
760
760
  runId: options.runId,
761
761
  operation: options.operation
762
762
  });
763
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
763
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
764
764
  {
765
765
  output_path: outputPath,
766
766
  row_count: summary.row_count,
@@ -801,7 +801,7 @@ function targetPlanLine(plan) {
801
801
  return `${_nullishCoalesce(plan.display_name, () => ( plan.name))} (${plan.sku}) | ${planPriceText(plan.recurring_price_usd, plan.interval)}${firstMonth}${bonus} | ${plan.included_credits} included credits/month | $${plan.purchased_credit_price_usd}/purchased credit | ${plan.acquisition_enabled ? "available" : "unavailable"}`;
802
802
  }
803
803
  async function handlePlans(options) {
804
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
804
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
805
805
  const payload = await client.billing.targetPlans(
806
806
  options.promoCode ? { promoCode: options.promoCode } : void 0
807
807
  );
@@ -821,8 +821,8 @@ async function handlePlans(options) {
821
821
  ...payload.plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...payload.plans.map(targetPlanLine)],
822
822
  _optionalChain([promo, 'optionalAccess', _8 => _8.status]) === "applied" ? `Change plan: deepline billing change-plan <plan_sku> --promo-code ${promo.code}` : "Change plan: deepline billing change-plan <plan_sku>"
823
823
  ];
824
- const legacyPayload = _chunkH7Q5IDO3js.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
825
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
824
+ const legacyPayload = _chunkGJOGFWX3js.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
825
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
826
826
  {
827
827
  ..._nullishCoalesce(legacyPayload, () => ( payload)),
828
828
  ...legacyPayload ? { target_billing: payload } : {},
@@ -832,7 +832,7 @@ async function handlePlans(options) {
832
832
  );
833
833
  }
834
834
  async function handleSubscribe(planVersionId, options) {
835
- const { http } = _chunkH7Q5IDO3js.getAuthedHttpClient.call(void 0, );
835
+ const { http } = _chunkGJOGFWX3js.getAuthedHttpClient.call(void 0, );
836
836
  const payload = await http.request(
837
837
  "/api/v2/billing/subscription/checkout",
838
838
  {
@@ -841,8 +841,8 @@ async function handleSubscribe(planVersionId, options) {
841
841
  }
842
842
  );
843
843
  const url = String(payload.checkout_url || "");
844
- if (!options.json && options.open !== false && url) _chunkH7Q5IDO3js.openInBrowser.call(void 0, url);
845
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
844
+ if (!options.json && options.open !== false && url) _chunkGJOGFWX3js.openInBrowser.call(void 0, url);
845
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
846
846
  {
847
847
  ...payload,
848
848
  render: {
@@ -858,7 +858,7 @@ async function handleSubscribe(planVersionId, options) {
858
858
  );
859
859
  }
860
860
  async function handleSubscriptionStatus(options) {
861
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
861
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
862
862
  const payload = await client.billing.subscription.status();
863
863
  const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
864
864
  const lines = [
@@ -878,7 +878,7 @@ async function handleSubscriptionStatus(options) {
878
878
  ],
879
879
  `Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
880
880
  ];
881
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
881
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
882
882
  {
883
883
  ...payload,
884
884
  render: { sections: [{ title: "billing subscription", lines }] }
@@ -887,7 +887,7 @@ async function handleSubscriptionStatus(options) {
887
887
  );
888
888
  }
889
889
  async function handleSubscriptionCancel(options) {
890
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
890
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
891
891
  const action = options.undo ? "undo_cancel" : "cancel";
892
892
  if (options.dryRun) {
893
893
  const status = await client.billing.subscription.status();
@@ -904,7 +904,7 @@ async function handleSubscriptionCancel(options) {
904
904
  return;
905
905
  }
906
906
  const consequence = action === "cancel" ? `Would schedule cancellation at period end${status.current_period_end ? ` (${status.current_period_end})` : ""}. The subscription stays active until then and remaining credits are kept.` : "Would reverse the pending cancellation; the subscription would renew normally.";
907
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
907
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
908
908
  {
909
909
  ok: true,
910
910
  dry_run: true,
@@ -960,7 +960,7 @@ async function handleSubscriptionCancel(options) {
960
960
  "Remaining credits are yours to keep \u2014 cancellation never removes credits.",
961
961
  "Undo with: deepline billing subscription cancel --undo"
962
962
  ];
963
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
963
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
964
964
  {
965
965
  ok: true,
966
966
  ...result,
@@ -1014,7 +1014,7 @@ async function handleInvoices(options) {
1014
1014
  return;
1015
1015
  }
1016
1016
  }
1017
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
1017
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
1018
1018
  let payload;
1019
1019
  try {
1020
1020
  payload = await client.billing.invoices.list(
@@ -1043,7 +1043,7 @@ async function handleInvoices(options) {
1043
1043
  url: entry.url
1044
1044
  }))
1045
1045
  } : { ...payload, count: entries.length };
1046
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1046
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1047
1047
  {
1048
1048
  ...envelope,
1049
1049
  render: { sections: [{ title: "billing invoices", lines }] }
@@ -1052,7 +1052,7 @@ async function handleInvoices(options) {
1052
1052
  );
1053
1053
  }
1054
1054
  async function handleCheckout(options) {
1055
- const { http } = _chunkH7Q5IDO3js.getAuthedHttpClient.call(void 0, );
1055
+ const { http } = _chunkGJOGFWX3js.getAuthedHttpClient.call(void 0, );
1056
1056
  const payload = await http.post(
1057
1057
  "/api/v2/billing/checkout",
1058
1058
  {
@@ -1062,8 +1062,8 @@ async function handleCheckout(options) {
1062
1062
  }
1063
1063
  );
1064
1064
  const url = String(payload.url || payload.checkout_url || "");
1065
- if (!options.json && !options.noOpen && url) _chunkH7Q5IDO3js.openInBrowser.call(void 0, url);
1066
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1065
+ if (!options.json && !options.noOpen && url) _chunkGJOGFWX3js.openInBrowser.call(void 0, url);
1066
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1067
1067
  {
1068
1068
  ...payload,
1069
1069
  render: {
@@ -1108,7 +1108,7 @@ async function handleTopUp(creditsRaw, options) {
1108
1108
  return;
1109
1109
  }
1110
1110
  if (options.dryRun) {
1111
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1111
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1112
1112
  {
1113
1113
  ok: true,
1114
1114
  dry_run: true,
@@ -1138,7 +1138,7 @@ async function handleTopUp(creditsRaw, options) {
1138
1138
  );
1139
1139
  return;
1140
1140
  }
1141
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
1141
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
1142
1142
  let payload;
1143
1143
  try {
1144
1144
  payload = await client.billing.topUpWithReceipt({
@@ -1155,7 +1155,7 @@ async function handleTopUp(creditsRaw, options) {
1155
1155
  return;
1156
1156
  }
1157
1157
  if (payload.status === "pending") {
1158
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1158
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1159
1159
  {
1160
1160
  ok: true,
1161
1161
  ...payload,
@@ -1219,17 +1219,17 @@ async function handleTopUp(creditsRaw, options) {
1219
1219
  ]
1220
1220
  }
1221
1221
  };
1222
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1222
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1223
1223
  json: options.json
1224
1224
  });
1225
1225
  }
1226
1226
  async function handleTargetStatus(options) {
1227
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
1227
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
1228
1228
  const payload = await client.billing.targetStatus();
1229
1229
  const balanceCommand = "deepline billing balance";
1230
1230
  const recentChargesCommand = "deepline billing usage --limit 5";
1231
1231
  const exactChargeCommand = "deepline billing usage --request-id <job_id>";
1232
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1232
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1233
1233
  {
1234
1234
  ok: true,
1235
1235
  ...payload,
@@ -1267,13 +1267,13 @@ function formatComputeAmount(minutes, credits) {
1267
1267
  return `${time} ${minutes === 1 ? "minute" : "minutes"} (${cost} ${credits === 1 ? "credit" : "credits"})`;
1268
1268
  }
1269
1269
  async function handleIncludedCompute(options) {
1270
- const client = new (0, _chunkSYTWWVIQjs.DeeplineClient)();
1270
+ const client = new (0, _chunkK3GMDSUXjs.DeeplineClient)();
1271
1271
  const payload = options.enable ? await client.billing.enableIncludedCompute({ includeOverage: true }) : await client.billing.includedCompute({ includeOverage: true });
1272
1272
  const rate = _nullishCoalesce(payload.credits_per_minute, () => ( 0));
1273
1273
  const includedCredits = _nullishCoalesce(payload.included_credits_used, () => ( payload.included_minutes_used * rate));
1274
1274
  const includedMinutes = payload.included_credits_used !== void 0 && rate > 0 ? includedCredits / rate : payload.included_minutes_used;
1275
1275
  const overage = payload.overage_credits;
1276
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1276
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1277
1277
  {
1278
1278
  ok: true,
1279
1279
  ...payload,
@@ -1288,13 +1288,13 @@ async function handleIncludedCompute(options) {
1288
1288
  ] : [],
1289
1289
  `Standard sandbox price: ${formatComputeAmount(60, Math.round(rate * 60))}`,
1290
1290
  `Allowance resets: ${payload.period_end_at.slice(0, 10)} (UTC)`,
1291
- _chunkF5YQXCP3js.PLAY_RUNTIME_PRICING_NOTE,
1291
+ _chunkPVQCX6KQjs.PLAY_RUNTIME_PRICING_NOTE,
1292
1292
  _chunkUV4RU2TEjs.PRICING_PAGE_NOTE
1293
1293
  ] : payload.status === "off" ? [
1294
1294
  "Included compute: off; Play compute is billed at provider cost.",
1295
1295
  `Allowance if enabled: ${formatComputeAmount(payload.plan.included_minutes, payload.plan.included_minutes * payload.plan.credits_per_minute)} per month`,
1296
1296
  `Standard sandbox price if enabled: ${formatComputeAmount(60, Math.round(payload.plan.credits_per_minute * 60))}`,
1297
- _chunkF5YQXCP3js.PLAY_RUNTIME_PRICING_NOTE,
1297
+ _chunkPVQCX6KQjs.PLAY_RUNTIME_PRICING_NOTE,
1298
1298
  "Run deepline billing compute --enable to turn on included compute. It cannot be turned off again.",
1299
1299
  _chunkUV4RU2TEjs.PRICING_PAGE_NOTE
1300
1300
  ] : [
@@ -1308,8 +1308,8 @@ async function handleIncludedCompute(options) {
1308
1308
  );
1309
1309
  }
1310
1310
  async function handleEntitlements(options) {
1311
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.entitlements();
1312
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1311
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.entitlements();
1312
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1313
1313
  {
1314
1314
  ok: true,
1315
1315
  ...payload,
@@ -1319,7 +1319,7 @@ async function handleEntitlements(options) {
1319
1319
  title: "billing entitlements",
1320
1320
  lines: [
1321
1321
  `Plan: ${_nullishCoalesce(_optionalChain([payload, 'access', _12 => _12.plan, 'optionalAccess', _13 => _13.name]), () => ( "Legacy billing"))}`,
1322
- ..._chunkMEGHIX4Mjs.concurrentRunsLine.call(void 0, payload) ? [`Concurrent runs: ${_chunkMEGHIX4Mjs.concurrentRunsLine.call(void 0, payload)}`] : [],
1322
+ ..._chunkHFIFKP3Ajs.concurrentRunsLine.call(void 0, payload) ? [`Concurrent runs: ${_chunkHFIFKP3Ajs.concurrentRunsLine.call(void 0, payload)}`] : [],
1323
1323
  ...Object.entries(payload.benefits).flatMap(
1324
1324
  ([key, grant]) => "value" in grant ? [
1325
1325
  `${key}: ${grant.status}, ${JSON.stringify(grant.value)}${grant.expiresAt === void 0 ? "" : `, expires ${new Date(grant.expiresAt).toISOString()}`}`
@@ -1344,7 +1344,7 @@ async function handleEntitlements(options) {
1344
1344
  );
1345
1345
  }
1346
1346
  async function handleAutoRechargeStatus(options) {
1347
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.autoRecharge.get();
1347
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.autoRecharge.get();
1348
1348
  const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
1349
1349
  const lines = [
1350
1350
  `State: ${state}`,
@@ -1354,7 +1354,7 @@ async function handleAutoRechargeStatus(options) {
1354
1354
  `Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
1355
1355
  ] : []
1356
1356
  ];
1357
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1357
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1358
1358
  {
1359
1359
  ok: true,
1360
1360
  ...payload,
@@ -1403,7 +1403,7 @@ async function handleAutoRechargeSet(options) {
1403
1403
  }
1404
1404
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1405
1405
  if (options.dryRun) {
1406
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1406
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1407
1407
  {
1408
1408
  ok: true,
1409
1409
  dry_run: true,
@@ -1424,7 +1424,7 @@ async function handleAutoRechargeSet(options) {
1424
1424
  );
1425
1425
  return;
1426
1426
  }
1427
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.autoRecharge.update({
1427
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.autoRecharge.update({
1428
1428
  enabled: true,
1429
1429
  thresholdCredits,
1430
1430
  refillToCredits,
@@ -1432,7 +1432,7 @@ async function handleAutoRechargeSet(options) {
1432
1432
  ...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
1433
1433
  idempotencyKey
1434
1434
  });
1435
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1435
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1436
1436
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1437
1437
  { json: options.json }
1438
1438
  );
@@ -1440,7 +1440,7 @@ async function handleAutoRechargeSet(options) {
1440
1440
  async function handleAutoRechargeOff(options) {
1441
1441
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1442
1442
  if (options.dryRun) {
1443
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1443
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1444
1444
  {
1445
1445
  ok: true,
1446
1446
  dry_run: true,
@@ -1455,11 +1455,11 @@ async function handleAutoRechargeOff(options) {
1455
1455
  );
1456
1456
  return;
1457
1457
  }
1458
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.autoRecharge.update({
1458
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.autoRecharge.update({
1459
1459
  enabled: false,
1460
1460
  idempotencyKey
1461
1461
  });
1462
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1462
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1463
1463
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1464
1464
  { json: options.json }
1465
1465
  );
@@ -1485,18 +1485,18 @@ function savedCardLines(cards, hasMore) {
1485
1485
  async function handleCardsList(options) {
1486
1486
  const limit = options.limit === void 0 ? void 0 : Number(options.limit);
1487
1487
  if (limit !== void 0 && (!Number.isInteger(limit) || limit < 1 || limit > 100)) {
1488
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1488
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1489
1489
  { ok: false, error: "--limit must be a whole number from 1 to 100." },
1490
1490
  { json: options.json }
1491
1491
  );
1492
1492
  process.exitCode = 1;
1493
1493
  return;
1494
1494
  }
1495
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.cards.list({
1495
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.cards.list({
1496
1496
  ...limit !== void 0 ? { limit } : {},
1497
1497
  ...options.cursor ? { cursor: options.cursor } : {}
1498
1498
  });
1499
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1499
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1500
1500
  {
1501
1501
  ok: true,
1502
1502
  ...payload,
@@ -1514,8 +1514,8 @@ async function handleCardsList(options) {
1514
1514
  }
1515
1515
  async function handleCardsAdd(options) {
1516
1516
  const makeDefault = options.makeDefault === true;
1517
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.cards.add({ makeDefault });
1518
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1517
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.cards.add({ makeDefault });
1518
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1519
1519
  {
1520
1520
  ok: true,
1521
1521
  make_default: makeDefault,
@@ -1540,7 +1540,7 @@ async function handleCardChange(action, cardId, options) {
1540
1540
  const changeId = _nullishCoalesce(options.changeId, () => ( _crypto.randomUUID.call(void 0, )));
1541
1541
  const path = `/api/v2/billing/payment-methods/${action}`;
1542
1542
  if (options.dryRun) {
1543
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1543
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1544
1544
  {
1545
1545
  ok: true,
1546
1546
  dry_run: true,
@@ -1555,9 +1555,9 @@ async function handleCardChange(action, cardId, options) {
1555
1555
  );
1556
1556
  return;
1557
1557
  }
1558
- const cards = new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.cards;
1558
+ const cards = new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.cards;
1559
1559
  const payload = action === "default" ? await cards.setDefault({ cardId, changeId }) : await cards.remove({ cardId, changeId });
1560
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1560
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1561
1561
  {
1562
1562
  ...payload,
1563
1563
  render: {
@@ -1591,11 +1591,11 @@ async function handleBuyCredits(creditsRaw, options) {
1591
1591
  return;
1592
1592
  }
1593
1593
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1594
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.purchaseCredits({
1594
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.purchaseCredits({
1595
1595
  credits,
1596
1596
  idempotencyKey
1597
1597
  });
1598
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1598
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1599
1599
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1600
1600
  { json: options.json }
1601
1601
  );
@@ -1631,7 +1631,7 @@ async function handleTopUpRecover(creditsRaw, options) {
1631
1631
  return;
1632
1632
  }
1633
1633
  if (options.dryRun) {
1634
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1634
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1635
1635
  {
1636
1636
  ok: true,
1637
1637
  dry_run: true,
@@ -1644,12 +1644,12 @@ async function handleTopUpRecover(creditsRaw, options) {
1644
1644
  );
1645
1645
  return;
1646
1646
  }
1647
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.recoverCreditPurchase({
1647
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.recoverCreditPurchase({
1648
1648
  credits,
1649
1649
  orgId: options.orgId,
1650
1650
  idempotencyKey: options.idempotencyKey
1651
1651
  });
1652
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1652
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1653
1653
  { ok: true, idempotency_key: options.idempotencyKey, ...payload },
1654
1654
  { json: options.json }
1655
1655
  );
@@ -1669,38 +1669,38 @@ async function handleTargetPlan(planSku, options) {
1669
1669
  return;
1670
1670
  }
1671
1671
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1672
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.transitionPlan({
1672
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.transitionPlan({
1673
1673
  action: "start_or_change",
1674
1674
  targetPlanSku: planSku,
1675
1675
  ...options.billingEmail ? { billingEmail: options.billingEmail } : {},
1676
1676
  ...options.promoCode ? { promoCode: options.promoCode } : {},
1677
1677
  idempotencyKey
1678
1678
  });
1679
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1679
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1680
1680
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1681
1681
  { json: options.json }
1682
1682
  );
1683
1683
  }
1684
1684
  async function handleTargetPlanCancellation(options) {
1685
1685
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1686
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.transitionPlan({
1686
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.transitionPlan({
1687
1687
  action: options.undo ? "undo_cancel" : "cancel",
1688
1688
  idempotencyKey
1689
1689
  });
1690
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1690
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1691
1691
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1692
1692
  { json: options.json }
1693
1693
  );
1694
1694
  }
1695
1695
  async function handleTargetPortal(options) {
1696
- const payload = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.portalSession(
1696
+ const payload = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.portalSession(
1697
1697
  options.billingAddress ? { flow: "customer_update" } : void 0
1698
1698
  );
1699
- if (!options.json && !options.noOpen) _chunkH7Q5IDO3js.openInBrowser.call(void 0, payload.url);
1700
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1699
+ if (!options.json && !options.noOpen) _chunkGJOGFWX3js.openInBrowser.call(void 0, payload.url);
1700
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1701
1701
  }
1702
1702
  async function handleRedeemCode(code, options) {
1703
- const { http } = _chunkH7Q5IDO3js.getAuthedHttpClient.call(void 0, );
1703
+ const { http } = _chunkGJOGFWX3js.getAuthedHttpClient.call(void 0, );
1704
1704
  const payload = await http.post(
1705
1705
  "/api/v2/billing/checkout",
1706
1706
  {
@@ -1708,8 +1708,8 @@ async function handleRedeemCode(code, options) {
1708
1708
  }
1709
1709
  );
1710
1710
  const url = String(payload.url || payload.checkout_url || "");
1711
- if (!options.json && !options.noOpen && url) _chunkH7Q5IDO3js.openInBrowser.call(void 0, url);
1712
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1711
+ if (!options.json && !options.noOpen && url) _chunkGJOGFWX3js.openInBrowser.call(void 0, url);
1712
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1713
1713
  {
1714
1714
  ...payload,
1715
1715
  render: {
@@ -1770,14 +1770,14 @@ Examples:
1770
1770
  if (!Number.isSafeInteger(quantity) || quantity <= 0) {
1771
1771
  throw new Error("--quantity must be a positive safe integer.");
1772
1772
  }
1773
- const quote = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.quote({
1773
+ const quote = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.quote({
1774
1774
  quantity,
1775
1775
  sandbox_runtime: {
1776
1776
  timeout: options.sandboxTimeout,
1777
1777
  size: options.sandboxSize
1778
1778
  }
1779
1779
  });
1780
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, quote, {
1780
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, quote, {
1781
1781
  json: options.json,
1782
1782
  text: `Sandbox session ceiling: ${quote.maximum_credits} Deepline credits (${quote.quantity} session${quote.quantity === 1 ? "" : "s"}).
1783
1783
  ${quote.explanation}
@@ -1806,9 +1806,9 @@ Examples:
1806
1806
  billing.command("reuse").description(
1807
1807
  "Show recorded reused tool results for this workspace; no credit estimate."
1808
1808
  ).option("--json", "Return the workspace reuse summary as JSON").action(async (options) => {
1809
- const { http } = _chunkH7Q5IDO3js.getAuthedHttpClient.call(void 0, );
1809
+ const { http } = _chunkGJOGFWX3js.getAuthedHttpClient.call(void 0, );
1810
1810
  const payload = await http.get("/api/v2/usage/reuse");
1811
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1811
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0,
1812
1812
  {
1813
1813
  status: "ok",
1814
1814
  data: payload,
@@ -2049,8 +2049,8 @@ Examples:
2049
2049
  new (0, _commander.Command)("trigger").description(
2050
2050
  "Evaluate capped automatic recharge and resume any pending purchase."
2051
2051
  ).option("--json", "Emit JSON output").action(async (options) => {
2052
- const result = await new (0, _chunkSYTWWVIQjs.DeeplineClient)().billing.autoRecharge.trigger();
2053
- _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
2052
+ const result = await new (0, _chunkK3GMDSUXjs.DeeplineClient)().billing.autoRecharge.trigger();
2053
+ _chunkGJOGFWX3js.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
2054
2054
  })
2055
2055
  );
2056
2056
  billing.command("cards").description("List, add, choose the default of, and remove saved cards.").addHelpText(