deepline 0.3.577 → 0.3.579

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 (170) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +7 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +3 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +18 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +124 -57
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +4 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +43 -64
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +25 -0
  9. package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +83 -0
  10. package/dist/cli/{agents-ZIGK3FQ2.js → agents-D5RZEVXQ.js} +37 -54
  11. package/dist/cli/{agents-SUJRATC2.mjs → agents-FJTRTYCL.mjs} +10 -27
  12. package/dist/cli/{auth-TRKPRZK6.mjs → auth-OMYIDVXZ.mjs} +5 -5
  13. package/dist/cli/auth-Q4O7MJU4.js +44 -0
  14. package/dist/cli/{billing-6RAF4DQY.js → billing-EWFUDLQ7.js} +104 -102
  15. package/dist/cli/{billing-WPQT3QRS.mjs → billing-XK3LBNYS.mjs} +11 -9
  16. package/dist/cli/{chunk-MVCKEPWF.mjs → chunk-27ZYRIQC.mjs} +5 -5
  17. package/dist/cli/{chunk-CWHXE6HJ.mjs → chunk-3Z4TVZE7.mjs} +1 -1
  18. package/dist/cli/{chunk-KVDIN2YW.js → chunk-44NTNNKC.js} +11 -13
  19. package/dist/cli/{chunk-O35BHZLQ.mjs → chunk-6DMGKAWO.mjs} +2 -2
  20. package/dist/cli/{chunk-ATW77ZBL.mjs → chunk-6EVVUVU3.mjs} +2 -2
  21. package/dist/cli/{chunk-LXM36EXW.mjs → chunk-6GON36H3.mjs} +17 -14
  22. package/dist/cli/{chunk-RSZSKTRC.js → chunk-6MIEJJSO.js} +4 -4
  23. package/dist/cli/{chunk-ID5WQZ2H.mjs → chunk-6NYHMXC7.mjs} +1 -1
  24. package/dist/cli/{chunk-DJP7CJQC.js → chunk-72TWLORR.js} +3 -3
  25. package/dist/cli/{chunk-X5ZE7K4J.js → chunk-7HOYKXVY.js} +8 -8
  26. package/dist/cli/{chunk-NRBIYZUG.js → chunk-7JMCRYXU.js} +10 -10
  27. package/dist/cli/{chunk-MDP3CNDM.mjs → chunk-7SZCJC4R.mjs} +2 -2
  28. package/dist/cli/{chunk-APOWCBO7.js → chunk-ABH6PUDZ.js} +23 -23
  29. package/dist/cli/{chunk-EV47DV25.js → chunk-AP7PIGL5.js} +41 -41
  30. package/dist/cli/{chunk-CZF2LKIT.js → chunk-BLEYV4BJ.js} +21 -21
  31. package/dist/cli/{chunk-DWUESXDD.mjs → chunk-BZ4M7OFO.mjs} +11 -1
  32. package/dist/cli/{chunk-RVICQWXU.js → chunk-DH736ASH.js} +20 -20
  33. package/dist/cli/{chunk-FYKHAT2F.mjs → chunk-DTQBQSUU.mjs} +9 -0
  34. package/dist/cli/{chunk-X7Y4T7CV.mjs → chunk-F57NDSKT.mjs} +5 -5
  35. package/dist/cli/{chunk-ITK5TGQ7.js → chunk-FKXSIIR4.js} +15 -15
  36. package/dist/cli/{chunk-ZHJIDDYR.js → chunk-G5CZDRY3.js} +26 -26
  37. package/dist/cli/{chunk-MOWABWHT.js → chunk-HEZW2IDK.js} +277 -274
  38. package/dist/cli/{chunk-ORLJIJVX.mjs → chunk-HGUFTSB5.mjs} +11 -13
  39. package/dist/cli/{chunk-FHYNK7GL.mjs → chunk-I2TSRLOI.mjs} +1 -1
  40. package/dist/cli/{chunk-OQQDNJ2D.mjs → chunk-JFS4KHA3.mjs} +5 -5
  41. package/dist/cli/{chunk-NMSDMXYS.js → chunk-K2BU67UC.js} +2 -2
  42. package/dist/cli/{chunk-XQTJET2Y.mjs → chunk-KIIOKQFY.mjs} +1 -1
  43. package/dist/cli/{chunk-CCGFSELM.mjs → chunk-KQAEXBVQ.mjs} +3 -3
  44. package/dist/cli/{chunk-Y37JQZBP.js → chunk-KWQHQG53.js} +6 -6
  45. package/dist/cli/{chunk-V5SF5CJ7.js → chunk-LCPJR3IY.js} +2 -2
  46. package/dist/cli/{chunk-EKZ6JD6K.js → chunk-LQ45LCH7.js} +9 -9
  47. package/dist/cli/{chunk-APJ6YIYW.mjs → chunk-LV2LGW2Q.mjs} +1 -1
  48. package/dist/cli/{chunk-N6EU2FRF.mjs → chunk-LYBZLA6F.mjs} +2 -2
  49. package/dist/cli/{chunk-JWLV3XRF.js → chunk-LYJ2NSHD.js} +17 -12
  50. package/dist/cli/{chunk-MTM6WNPP.mjs → chunk-M4YWN5BT.mjs} +4 -4
  51. package/dist/cli/{chunk-H6NF5SNY.mjs → chunk-N6X2UKYQ.mjs} +2 -2
  52. package/dist/cli/{chunk-2NFDB6CL.js → chunk-NKUXW4WB.js} +2 -2
  53. package/dist/cli/{chunk-OBZB4J7B.js → chunk-NOMO5GPI.js} +1 -1
  54. package/dist/cli/{chunk-GFWVBXAK.mjs → chunk-NONMY5CY.mjs} +2 -2
  55. package/dist/cli/{chunk-QXAPAHIG.js → chunk-NWZU6HL4.js} +13 -13
  56. package/dist/cli/{chunk-FXN5WSTY.js → chunk-OOGP737I.js} +20 -20
  57. package/dist/cli/{chunk-LUQMTNFB.mjs → chunk-OSRATALX.mjs} +1 -1
  58. package/dist/cli/{chunk-ZO65VJRJ.js → chunk-PGRRMVQ5.js} +10 -1
  59. package/dist/cli/{chunk-MTHAVEQN.js → chunk-PLWZ3NB7.js} +5 -5
  60. package/dist/cli/{chunk-MXK4M7HP.js → chunk-Q4VKMF3B.js} +17 -17
  61. package/dist/cli/{chunk-SKHUWQZE.js → chunk-QA55PGJH.js} +17 -7
  62. package/dist/cli/{chunk-425SUSDJ.mjs → chunk-S2OXA7QS.mjs} +7 -7
  63. package/dist/cli/{chunk-NDMKFA6W.mjs → chunk-SUHCW7U5.mjs} +3 -3
  64. package/dist/cli/{chunk-U6Y4HX6J.mjs → chunk-SZIWFQI2.mjs} +3 -3
  65. package/dist/cli/{chunk-4ANO4DM5.mjs → chunk-TFNDOH4W.mjs} +1 -1
  66. package/dist/cli/{chunk-JHQ7FORY.js → chunk-TVAFWAOQ.js} +3 -3
  67. package/dist/cli/{chunk-NVJGVNEN.js → chunk-UYCBG75H.js} +5 -5
  68. package/dist/cli/{chunk-RW3URFZK.mjs → chunk-VFIIRK7S.mjs} +2 -2
  69. package/dist/cli/{chunk-WP4Q5PTK.mjs → chunk-WQQQP3FH.mjs} +4 -4
  70. package/dist/cli/{chunk-772IV64Y.js → chunk-WWSGXX6U.js} +5 -5
  71. package/dist/cli/{chunk-Q3WDT3YA.mjs → chunk-X6LPC3SU.mjs} +1 -1
  72. package/dist/cli/{chunk-DA5C5WOI.mjs → chunk-XQYBBCFI.mjs} +2 -2
  73. package/dist/cli/{chunk-FRYLXDNP.js → chunk-XTM6NOJ6.js} +53 -53
  74. package/dist/cli/{chunk-EJN43WGD.js → chunk-Y2ND6PPW.js} +48 -48
  75. package/dist/cli/{chunk-I44Y4MPK.mjs → chunk-YCWRKSLB.mjs} +8 -3
  76. package/dist/cli/command-docs.js +2 -2
  77. package/dist/cli/command-docs.mjs +1 -1
  78. package/dist/cli/concurrent-runs-help-D6XH3FY5.js +22 -0
  79. package/dist/cli/{concurrent-runs-help-6CGXMTFQ.mjs → concurrent-runs-help-IQBZBTD5.mjs} +6 -6
  80. package/dist/cli/{csv-L7P6PC6I.mjs → csv-6BEOWTGM.mjs} +4 -4
  81. package/dist/cli/{csv-7UZT2LGE.js → csv-T7TWLIGD.js} +13 -13
  82. package/dist/cli/{db-4OOEC5KV.mjs → db-FA5QGXZ7.mjs} +6 -6
  83. package/dist/cli/{db-7KETOIZY.js → db-MFTUN3DF.js} +27 -27
  84. package/dist/cli/{describe-M6HEFS46.mjs → describe-TITEQNVE.mjs} +21 -21
  85. package/dist/cli/describe-TYZ5YH3V.js +50 -0
  86. package/dist/cli/describe-core.d.mts +4 -2
  87. package/dist/cli/describe-core.d.ts +4 -2
  88. package/dist/cli/describe-core.js +4 -4
  89. package/dist/cli/describe-core.mjs +3 -3
  90. package/dist/cli/{executions-U27R2LY4.mjs → executions-DMYJJIRB.mjs} +6 -6
  91. package/dist/cli/{executions-UIR6RQFM.js → executions-QW3L7G7J.js} +8 -8
  92. package/dist/cli/{feedback-CQ5FUE4T.js → feedback-6JZGE7OQ.js} +14 -14
  93. package/dist/cli/{feedback-UUUISTGQ.mjs → feedback-WPSNSFRC.mjs} +6 -6
  94. package/dist/cli/{git-DTILSRIQ.mjs → git-GO65XRM3.mjs} +5 -5
  95. package/dist/cli/git-UGGRLGTQ.js +26 -0
  96. package/dist/cli/index.js +148 -148
  97. package/dist/cli/index.mjs +47 -47
  98. package/dist/cli/{integrations-NNACG3HD.mjs → integrations-EEBPETH2.mjs} +7 -7
  99. package/dist/cli/{integrations-ABBLLEJH.js → integrations-T5JPSZXN.js} +29 -29
  100. package/dist/cli/{legacy-noops-3JLS5OD7.js → legacy-noops-B55OMNH7.js} +9 -9
  101. package/dist/cli/{legacy-noops-KQW7AIYU.mjs → legacy-noops-XDNZ46IR.mjs} +6 -6
  102. package/dist/cli/{mcp-JPBFKR26.js → mcp-3YA333TQ.js} +24 -24
  103. package/dist/cli/{mcp-7NHGPYZH.mjs → mcp-4QIUAAWS.mjs} +4 -4
  104. package/dist/cli/{monitors-JOE2DALW.mjs → monitors-BVUPS4CE.mjs} +7 -7
  105. package/dist/cli/{monitors-J6HK5KCN.js → monitors-FOS7MWZO.js} +100 -100
  106. package/dist/cli/{org-WFZFQIXQ.js → org-CYM7HFLN.js} +121 -121
  107. package/dist/cli/{org-VZZ4LN4O.mjs → org-TCMRRVFC.mjs} +6 -6
  108. package/dist/cli/{outcomes-H2WEZYNT.mjs → outcomes-2JSWXWQ3.mjs} +6 -6
  109. package/dist/cli/{outcomes-RZWL47BJ.js → outcomes-VDJVP5YC.js} +14 -14
  110. package/dist/cli/{play-KMWA7GVN.mjs → play-CPP4EBYF.mjs} +20 -20
  111. package/dist/cli/{play-2ZEBUF5T.js → play-U3G73VIR.js} +349 -349
  112. package/dist/cli/{providers-57AZWFSW.js → providers-2ZB67TK7.js} +9 -9
  113. package/dist/cli/{providers-2BIA3OWA.mjs → providers-RVMIX5ED.mjs} +6 -6
  114. package/dist/cli/{quickstart-NSDM2RXV.mjs → quickstart-L3YO3OWZ.mjs} +4 -4
  115. package/dist/cli/{quickstart-EYJFERQO.js → quickstart-V3Y7XZ47.js} +6 -6
  116. package/dist/cli/{run-BW62DZGQ.js → run-M2CADJ6E.js} +49 -48
  117. package/dist/cli/{run-X6H5SCEE.mjs → run-PQ3Z2GOF.mjs} +27 -26
  118. package/dist/cli/{search-2VN74P5N.mjs → search-QVLGI7SZ.mjs} +7 -7
  119. package/dist/cli/search-RHPPZZFG.js +32 -0
  120. package/dist/cli/{search-output-SFWQVBYU.js → search-output-IUANVHWU.js} +8 -8
  121. package/dist/cli/{search-output-VN7XOZEQ.mjs → search-output-PN3V7MSO.mjs} +5 -5
  122. package/dist/cli/{secrets-OIPKG2H7.js → secrets-AOW6F67J.js} +15 -15
  123. package/dist/cli/{secrets-4M26N436.mjs → secrets-HK25G4K2.mjs} +6 -6
  124. package/dist/cli/sessions-AEGGTZ3K.js +23 -0
  125. package/dist/cli/{sessions-SYFH23L3.mjs → sessions-YN2OIAGR.mjs} +6 -6
  126. package/dist/cli/{settings-5NB4HZYL.js → settings-6EV2FPGF.js} +85 -85
  127. package/dist/cli/{settings-4HPF3T4P.mjs → settings-7UW5TWSM.mjs} +12 -12
  128. package/dist/cli/{setup-CI74F6CL.mjs → setup-BG56SHKH.mjs} +9 -9
  129. package/dist/cli/{setup-JV3F5C7P.js → setup-ZQPD2R5K.js} +49 -49
  130. package/dist/cli/skills-C6ZEZWBE.js +37 -0
  131. package/dist/cli/{skills-76CM4GHO.mjs → skills-MQV2TNUZ.mjs} +7 -7
  132. package/dist/cli/tools-PM3MC3RR.js +57 -0
  133. package/dist/cli/{tools-SVGLDWOC.mjs → tools-RGI4OE5T.mjs} +19 -19
  134. package/dist/cli/{update-KPMDOZRX.mjs → update-SQKGHQKF.mjs} +9 -9
  135. package/dist/cli/update-ZHUPF2HT.js +37 -0
  136. package/dist/cli/{views-KW54SAES.mjs → views-734T2CXF.mjs} +6 -6
  137. package/dist/cli/{views-R37NWN6J.js → views-BUKVHCRD.js} +21 -21
  138. package/dist/cli/{workflow-3MIRQV4Q.mjs → workflow-JNRRBMEK.mjs} +7 -7
  139. package/dist/cli/{workflow-BKRKUNYS.js → workflow-LPJC6RHP.js} +17 -17
  140. package/dist/{client-BrdMPFCM.d.ts → client-C1AubrWJ.d.ts} +1 -1
  141. package/dist/{client-CF-bsrtI.d.mts → client-CNYctEBh.d.mts} +1 -1
  142. package/dist/{client-core-DM1ZedOG.d.mts → client-core-Bb06TCx5.d.mts} +7 -0
  143. package/dist/{client-core-rMoUWSYM.d.ts → client-core-D6zAE46g.d.ts} +7 -0
  144. package/dist/index.d.mts +3 -3
  145. package/dist/index.d.ts +3 -3
  146. package/dist/index.js +9 -9
  147. package/dist/index.mjs +6 -6
  148. package/dist/install-integrity.json +126 -126
  149. package/dist/plays/play-description.d.mts +1 -1
  150. package/dist/plays/play-description.d.ts +1 -1
  151. package/dist/plays/run-request.d.mts +1 -1
  152. package/dist/plays/run-request.d.ts +1 -1
  153. package/dist/release.d.mts +1 -1
  154. package/dist/release.d.ts +1 -1
  155. package/dist/release.js +2 -2
  156. package/dist/release.mjs +1 -1
  157. package/dist/server.d.mts +2 -2
  158. package/dist/server.d.ts +2 -2
  159. package/dist/server.js +5 -5
  160. package/dist/server.mjs +3 -3
  161. package/package.json +1 -1
  162. package/dist/cli/auth-A5U6GVCF.js +0 -44
  163. package/dist/cli/concurrent-runs-help-VJDPVGXM.js +0 -22
  164. package/dist/cli/describe-RLWJYZIR.js +0 -50
  165. package/dist/cli/git-ZGDD3BVX.js +0 -26
  166. package/dist/cli/search-HYRDZVPQ.js +0 -32
  167. package/dist/cli/sessions-5P2KZOQE.js +0 -23
  168. package/dist/cli/skills-PJ5EL32L.js +0 -37
  169. package/dist/cli/tools-Y5ID2SPK.js +0 -57
  170. package/dist/cli/update-FSUMCMNZ.js +0 -37
@@ -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 _chunk772IV64Yjs = require('./chunk-772IV64Y.js');
4
- require('./chunk-FRYLXDNP.js');
3
+ var _chunkWWSGXX6Ujs = require('./chunk-WWSGXX6U.js');
4
+ require('./chunk-XTM6NOJ6.js');
5
5
 
6
6
 
7
- var _chunkNVJGVNENjs = require('./chunk-NVJGVNEN.js');
7
+ var _chunkUYCBG75Hjs = require('./chunk-UYCBG75H.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkX5ZE7K4Jjs = require('./chunk-X5ZE7K4J.js');
12
+ var _chunk7HOYKXVYjs = require('./chunk-7HOYKXVY.js');
13
13
  require('./chunk-4WAM6TLD.js');
14
14
  require('./chunk-MJTVX4QK.js');
15
15
  require('./chunk-PMH4GLMD.js');
16
16
 
17
17
 
18
- var _chunkKVDIN2YWjs = require('./chunk-KVDIN2YW.js');
18
+ var _chunk44NTNNKCjs = require('./chunk-44NTNNKC.js');
19
19
 
20
20
 
21
21
  var _chunkTJCENACZjs = require('./chunk-TJCENACZ.js');
@@ -32,9 +32,9 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
32
32
 
33
33
 
34
34
 
35
- var _chunkFXN5WSTYjs = require('./chunk-FXN5WSTY.js');
36
- require('./chunk-JHQ7FORY.js');
37
- require('./chunk-RSZSKTRC.js');
35
+ var _chunkOOGP737Ijs = require('./chunk-OOGP737I.js');
36
+ require('./chunk-TVAFWAOQ.js');
37
+ require('./chunk-6MIEJJSO.js');
38
38
 
39
39
 
40
40
 
@@ -44,7 +44,7 @@ require('./chunk-XNYIZMNQ.js');
44
44
 
45
45
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
46
46
  require('./chunk-CFJFUVX2.js');
47
- require('./chunk-OBZB4J7B.js');
47
+ require('./chunk-NOMO5GPI.js');
48
48
  require('./chunk-OG64RBAC.js');
49
49
  require('./chunk-COGTRVWW.js');
50
50
 
@@ -140,7 +140,7 @@ function reportBillingFailure(failure, options) {
140
140
  if (failure.next) {
141
141
  textLines.push(`Next: ${failure.next}`);
142
142
  }
143
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
143
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
144
144
  {
145
145
  ok: false,
146
146
  exitCode: failure.exitCode,
@@ -161,7 +161,7 @@ function parseTopUpCredits(raw) {
161
161
  return parsed;
162
162
  }
163
163
  function topUpIdempotencyKey(raw) {
164
- return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkX5ZE7K4Jjs.requireBillingIdempotencyKey.call(void 0, raw);
164
+ return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunk7HOYKXVYjs.requireBillingIdempotencyKey.call(void 0, raw);
165
165
  }
166
166
  function targetBillingIdempotencyKey(raw) {
167
167
  return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${_crypto.randomUUID.call(void 0, )}`;
@@ -299,6 +299,8 @@ function recentUsageLines(entries) {
299
299
  const auditBits = [
300
300
  entry.outcome ? `outcome=${entry.outcome}` : null,
301
301
  entry.pricing_basis ? `priced_by=${entry.pricing_basis}` : null,
302
+ // managed: Deepline's provider key; user: the workspace's own key.
303
+ entry.credential_source && entry.credential_source !== "unknown" ? `key=${entry.credential_source}` : null,
302
304
  entry.run_id ? `run=${entry.run_id}` : null,
303
305
  entry.play_run_id || entry.execution_run_id ? `play_run=${_nullishCoalesce(entry.play_run_id, () => ( entry.execution_run_id))}` : null,
304
306
  entry.billing_run_id ? `billing_run=${entry.billing_run_id}` : null,
@@ -380,7 +382,7 @@ function defaultLedgerExportPath() {
380
382
  );
381
383
  }
382
384
  async function handleBalance(options) {
383
- const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
385
+ const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
384
386
  const payload = await http.get(
385
387
  "/api/v2/billing/balance"
386
388
  );
@@ -470,7 +472,7 @@ async function handleBalance(options) {
470
472
  ...options.verbose ? detail : [],
471
473
  ...lines.slice(1)
472
474
  ];
473
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
475
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
474
476
  {
475
477
  ...payload,
476
478
  ...recovery ? { recovery } : {},
@@ -506,7 +508,7 @@ async function handleUsageEvents(options) {
506
508
  );
507
509
  return;
508
510
  }
509
- const client = new (0, _chunkNVJGVNENjs.DeeplineClient)();
511
+ const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
510
512
  let payload;
511
513
  try {
512
514
  payload = await client.billing.usageEvents({
@@ -537,7 +539,7 @@ async function handleUsageEvents(options) {
537
539
  ),
538
540
  ...nextPage ? [`Next page: ${nextPage}`] : []
539
541
  ];
540
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
542
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
541
543
  {
542
544
  ...payload,
543
545
  next: { page: nextPage },
@@ -559,7 +561,7 @@ async function handleUsage(options) {
559
561
  return;
560
562
  }
561
563
  if (options.events) return handleUsageEvents(options);
562
- const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
564
+ const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
563
565
  const params = new URLSearchParams();
564
566
  if (options.requestId !== void 0) {
565
567
  const requestId = options.requestId.trim();
@@ -643,7 +645,7 @@ async function handleUsage(options) {
643
645
  "No continuation is available for this view. Use deepline billing ledger export all for the full ledger."
644
646
  ] : []
645
647
  ];
646
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
648
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
647
649
  {
648
650
  ...payload,
649
651
  recent: {
@@ -657,7 +659,7 @@ async function handleUsage(options) {
657
659
  );
658
660
  }
659
661
  async function handleLimit(options) {
660
- const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
662
+ const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
661
663
  const payload = await http.get(
662
664
  "/api/v2/billing/limit"
663
665
  );
@@ -665,7 +667,7 @@ async function handleLimit(options) {
665
667
  `Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
666
668
  "Enforcement: checked before new calls; in-flight work can exceed the cap."
667
669
  ] : ["Monthly usage cap: off"];
668
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
670
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
669
671
  {
670
672
  ...payload,
671
673
  render: { sections: [{ title: "billing limit", lines }] }
@@ -674,12 +676,12 @@ async function handleLimit(options) {
674
676
  );
675
677
  }
676
678
  async function handleSetLimit(credits, options) {
677
- const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
679
+ const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
678
680
  const payload = await http.request("/api/v2/billing/limit", {
679
681
  method: "PUT",
680
682
  body: { monthly_credits_limit: Number.parseInt(credits, 10) }
681
683
  });
682
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
684
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
683
685
  {
684
686
  ...payload,
685
687
  render: {
@@ -695,11 +697,11 @@ async function handleSetLimit(credits, options) {
695
697
  );
696
698
  }
697
699
  async function handleLimitOff(options) {
698
- const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
700
+ const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
699
701
  const payload = await http.request("/api/v2/billing/limit", {
700
702
  method: "DELETE"
701
703
  });
702
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
704
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
703
705
  {
704
706
  ...payload,
705
707
  render: {
@@ -719,7 +721,7 @@ async function exportLedger(http, outputPath, options) {
719
721
  let initialized = false;
720
722
  let pageNumber = 0;
721
723
  console.error(`Exporting billing ledger to ${outputPath}`);
722
- for await (const entries of _chunkX5ZE7K4Jjs.iterateCursorPages.call(void 0, async (cursor) => {
724
+ for await (const entries of _chunk7HOYKXVYjs.iterateCursorPages.call(void 0, async (cursor) => {
723
725
  pageNumber += 1;
724
726
  console.error(
725
727
  `Fetching page ${pageNumber}; ${summary.row_count} rows written.`
@@ -758,7 +760,7 @@ async function exportLedger(http, outputPath, options) {
758
760
  return summary;
759
761
  }
760
762
  async function handleHistory(options) {
761
- const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
763
+ const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
762
764
  const windows = {
763
765
  "1d": 86400,
764
766
  "1w": 604800,
@@ -770,10 +772,10 @@ async function handleHistory(options) {
770
772
  process.cwd(),
771
773
  "deepline",
772
774
  "data",
773
- _chunkFXN5WSTYjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
775
+ _chunkOOGP737Ijs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
774
776
  );
775
777
  const summary = await exportLedger(http, outputPath, { sinceAt });
776
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
778
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
777
779
  {
778
780
  output_path: outputPath,
779
781
  row_count: summary.row_count,
@@ -810,14 +812,14 @@ async function handleLedgerExportAll(options) {
810
812
  );
811
813
  return;
812
814
  }
813
- const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
815
+ const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
814
816
  const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
815
817
  const summary = await exportLedger(http, outputPath, {
816
818
  sinceAt,
817
819
  runId: options.runId,
818
820
  operation: options.operation
819
821
  });
820
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
822
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
821
823
  {
822
824
  output_path: outputPath,
823
825
  row_count: summary.row_count,
@@ -859,7 +861,7 @@ function targetPlanLine(plan) {
859
861
  return `${_nullishCoalesce(plan.display_name, () => ( plan.name))} (${_nullishCoalesce(plan.public_sku, () => ( plan.sku))}) | ${planPriceText(plan.recurring_price_usd, plan.interval)}${firstMonth}${bonus}${annual} | ${plan.included_credits} included credits/month | $${plan.purchased_credit_price_usd}/purchased credit | ${plan.acquisition_enabled ? "available" : "unavailable"}`;
860
862
  }
861
863
  async function handlePlans(options) {
862
- const client = new (0, _chunkNVJGVNENjs.DeeplineClient)();
864
+ const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
863
865
  const payload = await client.billing.targetPlans(
864
866
  options.promoCode ? { promoCode: options.promoCode } : void 0
865
867
  );
@@ -885,8 +887,8 @@ async function handlePlans(options) {
885
887
  ...plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...plans.map(targetPlanLine)],
886
888
  _optionalChain([promo, 'optionalAccess', _15 => _15.status]) === "applied" ? `Change plan: deepline billing change-plan <plan_sku> --promo-code ${promo.code}` : "Change plan: deepline billing change-plan <plan_sku>"
887
889
  ];
888
- const legacyPayload = _chunkFXN5WSTYjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
889
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
890
+ const legacyPayload = _chunkOOGP737Ijs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
891
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
890
892
  {
891
893
  ..._nullishCoalesce(legacyPayload, () => ( payload)),
892
894
  ...legacyPayload ? { target_billing: payload } : {},
@@ -896,7 +898,7 @@ async function handlePlans(options) {
896
898
  );
897
899
  }
898
900
  async function handleSubscribe(planVersionId, options) {
899
- const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
901
+ const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
900
902
  const payload = await http.request(
901
903
  "/api/v2/billing/subscription/checkout",
902
904
  {
@@ -905,8 +907,8 @@ async function handleSubscribe(planVersionId, options) {
905
907
  }
906
908
  );
907
909
  const url = String(payload.checkout_url || "");
908
- if (!options.json && options.open !== false && url) _chunkFXN5WSTYjs.openInBrowser.call(void 0, url);
909
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
910
+ if (!options.json && options.open !== false && url) _chunkOOGP737Ijs.openInBrowser.call(void 0, url);
911
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
910
912
  {
911
913
  ...payload,
912
914
  render: {
@@ -922,7 +924,7 @@ async function handleSubscribe(planVersionId, options) {
922
924
  );
923
925
  }
924
926
  async function handleSubscriptionStatus(options) {
925
- const client = new (0, _chunkNVJGVNENjs.DeeplineClient)();
927
+ const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
926
928
  const payload = await client.billing.subscription.status();
927
929
  const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
928
930
  const lines = [
@@ -942,7 +944,7 @@ async function handleSubscriptionStatus(options) {
942
944
  ],
943
945
  `Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
944
946
  ];
945
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
947
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
946
948
  {
947
949
  ...payload,
948
950
  render: { sections: [{ title: "billing subscription", lines }] }
@@ -951,7 +953,7 @@ async function handleSubscriptionStatus(options) {
951
953
  );
952
954
  }
953
955
  async function handleSubscriptionCancel(options) {
954
- const client = new (0, _chunkNVJGVNENjs.DeeplineClient)();
956
+ const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
955
957
  const action = options.undo ? "undo_cancel" : "cancel";
956
958
  if (options.dryRun) {
957
959
  const status = await client.billing.subscription.status();
@@ -968,7 +970,7 @@ async function handleSubscriptionCancel(options) {
968
970
  return;
969
971
  }
970
972
  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.";
971
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
973
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
972
974
  {
973
975
  ok: true,
974
976
  dry_run: true,
@@ -1024,7 +1026,7 @@ async function handleSubscriptionCancel(options) {
1024
1026
  "Remaining credits are yours to keep \u2014 cancellation never removes credits.",
1025
1027
  "Undo with: deepline billing subscription cancel --undo"
1026
1028
  ];
1027
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1029
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1028
1030
  {
1029
1031
  ok: true,
1030
1032
  ...result,
@@ -1078,7 +1080,7 @@ async function handleInvoices(options) {
1078
1080
  return;
1079
1081
  }
1080
1082
  }
1081
- const client = new (0, _chunkNVJGVNENjs.DeeplineClient)();
1083
+ const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
1082
1084
  let payload;
1083
1085
  try {
1084
1086
  payload = await client.billing.invoices.list(
@@ -1107,7 +1109,7 @@ async function handleInvoices(options) {
1107
1109
  url: entry.url
1108
1110
  }))
1109
1111
  } : { ...payload, count: entries.length };
1110
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1112
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1111
1113
  {
1112
1114
  ...envelope,
1113
1115
  render: { sections: [{ title: "billing invoices", lines }] }
@@ -1116,7 +1118,7 @@ async function handleInvoices(options) {
1116
1118
  );
1117
1119
  }
1118
1120
  async function handleCheckout(options) {
1119
- const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
1121
+ const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
1120
1122
  const payload = await http.post(
1121
1123
  "/api/v2/billing/checkout",
1122
1124
  {
@@ -1126,8 +1128,8 @@ async function handleCheckout(options) {
1126
1128
  }
1127
1129
  );
1128
1130
  const url = String(payload.url || payload.checkout_url || "");
1129
- if (!options.json && !options.noOpen && url) _chunkFXN5WSTYjs.openInBrowser.call(void 0, url);
1130
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1131
+ if (!options.json && !options.noOpen && url) _chunkOOGP737Ijs.openInBrowser.call(void 0, url);
1132
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1131
1133
  {
1132
1134
  ...payload,
1133
1135
  render: {
@@ -1172,7 +1174,7 @@ async function handleTopUp(creditsRaw, options) {
1172
1174
  return;
1173
1175
  }
1174
1176
  if (options.dryRun) {
1175
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1177
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1176
1178
  {
1177
1179
  ok: true,
1178
1180
  dry_run: true,
@@ -1202,7 +1204,7 @@ async function handleTopUp(creditsRaw, options) {
1202
1204
  );
1203
1205
  return;
1204
1206
  }
1205
- const client = new (0, _chunkNVJGVNENjs.DeeplineClient)();
1207
+ const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
1206
1208
  let payload;
1207
1209
  try {
1208
1210
  payload = await client.billing.topUpWithReceipt({
@@ -1219,7 +1221,7 @@ async function handleTopUp(creditsRaw, options) {
1219
1221
  return;
1220
1222
  }
1221
1223
  if (payload.status === "pending") {
1222
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1224
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1223
1225
  {
1224
1226
  ok: true,
1225
1227
  ...payload,
@@ -1283,17 +1285,17 @@ async function handleTopUp(creditsRaw, options) {
1283
1285
  ]
1284
1286
  }
1285
1287
  };
1286
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1288
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1287
1289
  json: options.json
1288
1290
  });
1289
1291
  }
1290
1292
  async function handleTargetStatus(options) {
1291
- const client = new (0, _chunkNVJGVNENjs.DeeplineClient)();
1293
+ const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
1292
1294
  const payload = await client.billing.targetStatus();
1293
1295
  const balanceCommand = "deepline billing balance";
1294
1296
  const recentChargesCommand = "deepline billing usage --limit 5";
1295
1297
  const exactChargeCommand = "deepline billing usage --request-id <job_id>";
1296
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1298
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1297
1299
  {
1298
1300
  ok: true,
1299
1301
  ...payload,
@@ -1331,13 +1333,13 @@ function formatComputeAmount(minutes, credits) {
1331
1333
  return `${time} ${minutes === 1 ? "minute" : "minutes"} (${cost} ${credits === 1 ? "credit" : "credits"})`;
1332
1334
  }
1333
1335
  async function handleIncludedCompute(options) {
1334
- const client = new (0, _chunkNVJGVNENjs.DeeplineClient)();
1336
+ const client = new (0, _chunkUYCBG75Hjs.DeeplineClient)();
1335
1337
  const payload = options.enable ? await client.billing.enableIncludedCompute({ includeOverage: true }) : await client.billing.includedCompute({ includeOverage: true });
1336
1338
  const rate = _nullishCoalesce(payload.credits_per_minute, () => ( 0));
1337
1339
  const includedCredits = _nullishCoalesce(payload.included_credits_used, () => ( payload.included_minutes_used * rate));
1338
1340
  const includedMinutes = payload.included_credits_used !== void 0 && rate > 0 ? includedCredits / rate : payload.included_minutes_used;
1339
1341
  const overage = payload.overage_credits;
1340
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1342
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1341
1343
  {
1342
1344
  ok: true,
1343
1345
  ...payload,
@@ -1355,7 +1357,7 @@ async function handleIncludedCompute(options) {
1355
1357
  ] : [],
1356
1358
  `Standard sandbox price: ${formatComputeAmount(60, Math.round(rate * 60))}`,
1357
1359
  `Allowance resets: ${payload.period_end_at.slice(0, 10)} (UTC)`,
1358
- _chunkKVDIN2YWjs.PLAY_RUNTIME_PRICING_NOTE,
1360
+ _chunk44NTNNKCjs.PLAY_RUNTIME_PRICING_NOTE,
1359
1361
  _chunkTJCENACZjs.PRICING_PAGE_NOTE
1360
1362
  ] : payload.status === "off" ? [
1361
1363
  ..._optionalChain([payload, 'access', _21 => _21.database, 'optionalAccess', _22 => _22.enabled]) ? [
@@ -1364,7 +1366,7 @@ async function handleIncludedCompute(options) {
1364
1366
  "Included compute: off; Play compute is billed at provider cost.",
1365
1367
  `Allowance if enabled: ${formatComputeAmount(payload.plan.included_minutes, payload.plan.included_minutes * payload.plan.credits_per_minute)} per month`,
1366
1368
  `Standard sandbox price if enabled: ${formatComputeAmount(60, Math.round(payload.plan.credits_per_minute * 60))}`,
1367
- _chunkKVDIN2YWjs.PLAY_RUNTIME_PRICING_NOTE,
1369
+ _chunk44NTNNKCjs.PLAY_RUNTIME_PRICING_NOTE,
1368
1370
  "Run deepline billing compute --enable to turn on included compute. It cannot be turned off again.",
1369
1371
  _chunkTJCENACZjs.PRICING_PAGE_NOTE
1370
1372
  ] : ["Included compute is not available for this org yet."]
@@ -1376,8 +1378,8 @@ async function handleIncludedCompute(options) {
1376
1378
  );
1377
1379
  }
1378
1380
  async function handleEntitlements(options) {
1379
- const payload = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.entitlements();
1380
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1381
+ const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.entitlements();
1382
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1381
1383
  {
1382
1384
  ok: true,
1383
1385
  ...payload,
@@ -1387,7 +1389,7 @@ async function handleEntitlements(options) {
1387
1389
  title: "billing entitlements",
1388
1390
  lines: [
1389
1391
  `Plan: ${_nullishCoalesce(_optionalChain([payload, 'access', _23 => _23.plan, 'optionalAccess', _24 => _24.name]), () => ( "Legacy billing"))}`,
1390
- ..._chunk772IV64Yjs.concurrentRunsLine.call(void 0, payload) ? [`Concurrent runs: ${_chunk772IV64Yjs.concurrentRunsLine.call(void 0, payload)}`] : [],
1392
+ ..._chunkWWSGXX6Ujs.concurrentRunsLine.call(void 0, payload) ? [`Concurrent runs: ${_chunkWWSGXX6Ujs.concurrentRunsLine.call(void 0, payload)}`] : [],
1391
1393
  ...Object.entries(payload.benefits).flatMap(
1392
1394
  ([key, grant]) => "value" in grant ? [
1393
1395
  `${key}: ${grant.status}, ${JSON.stringify(grant.value)}${grant.expiresAt === void 0 ? "" : `, expires ${new Date(grant.expiresAt).toISOString()}`}`
@@ -1412,7 +1414,7 @@ async function handleEntitlements(options) {
1412
1414
  );
1413
1415
  }
1414
1416
  async function handleAutoRechargeStatus(options) {
1415
- const payload = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.autoRecharge.get();
1417
+ const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.autoRecharge.get();
1416
1418
  const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
1417
1419
  const lines = [
1418
1420
  `State: ${state}`,
@@ -1422,7 +1424,7 @@ async function handleAutoRechargeStatus(options) {
1422
1424
  `Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
1423
1425
  ] : []
1424
1426
  ];
1425
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1427
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1426
1428
  {
1427
1429
  ok: true,
1428
1430
  ...payload,
@@ -1471,7 +1473,7 @@ async function handleAutoRechargeSet(options) {
1471
1473
  }
1472
1474
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1473
1475
  if (options.dryRun) {
1474
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1476
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1475
1477
  {
1476
1478
  ok: true,
1477
1479
  dry_run: true,
@@ -1492,7 +1494,7 @@ async function handleAutoRechargeSet(options) {
1492
1494
  );
1493
1495
  return;
1494
1496
  }
1495
- const payload = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.autoRecharge.update({
1497
+ const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.autoRecharge.update({
1496
1498
  enabled: true,
1497
1499
  thresholdCredits,
1498
1500
  refillToCredits,
@@ -1500,7 +1502,7 @@ async function handleAutoRechargeSet(options) {
1500
1502
  ...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
1501
1503
  idempotencyKey
1502
1504
  });
1503
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1505
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1504
1506
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1505
1507
  { json: options.json }
1506
1508
  );
@@ -1508,7 +1510,7 @@ async function handleAutoRechargeSet(options) {
1508
1510
  async function handleAutoRechargeOff(options) {
1509
1511
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1510
1512
  if (options.dryRun) {
1511
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1513
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1512
1514
  {
1513
1515
  ok: true,
1514
1516
  dry_run: true,
@@ -1523,11 +1525,11 @@ async function handleAutoRechargeOff(options) {
1523
1525
  );
1524
1526
  return;
1525
1527
  }
1526
- const payload = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.autoRecharge.update({
1528
+ const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.autoRecharge.update({
1527
1529
  enabled: false,
1528
1530
  idempotencyKey
1529
1531
  });
1530
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1532
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1531
1533
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1532
1534
  { json: options.json }
1533
1535
  );
@@ -1553,18 +1555,18 @@ function savedCardLines(cards, hasMore) {
1553
1555
  async function handleCardsList(options) {
1554
1556
  const limit = options.limit === void 0 ? void 0 : Number(options.limit);
1555
1557
  if (limit !== void 0 && (!Number.isInteger(limit) || limit < 1 || limit > 100)) {
1556
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1558
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1557
1559
  { ok: false, error: "--limit must be a whole number from 1 to 100." },
1558
1560
  { json: options.json }
1559
1561
  );
1560
1562
  process.exitCode = 1;
1561
1563
  return;
1562
1564
  }
1563
- const payload = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.cards.list({
1565
+ const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.cards.list({
1564
1566
  ...limit !== void 0 ? { limit } : {},
1565
1567
  ...options.cursor ? { cursor: options.cursor } : {}
1566
1568
  });
1567
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1569
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1568
1570
  {
1569
1571
  ok: true,
1570
1572
  ...payload,
@@ -1582,8 +1584,8 @@ async function handleCardsList(options) {
1582
1584
  }
1583
1585
  async function handleCardsAdd(options) {
1584
1586
  const makeDefault = options.makeDefault === true;
1585
- const payload = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.cards.add({ makeDefault });
1586
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1587
+ const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.cards.add({ makeDefault });
1588
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1587
1589
  {
1588
1590
  ok: true,
1589
1591
  make_default: makeDefault,
@@ -1608,7 +1610,7 @@ async function handleCardChange(action, cardId, options) {
1608
1610
  const changeId = _nullishCoalesce(options.changeId, () => ( _crypto.randomUUID.call(void 0, )));
1609
1611
  const path = `/api/v2/billing/payment-methods/${action}`;
1610
1612
  if (options.dryRun) {
1611
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1613
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1612
1614
  {
1613
1615
  ok: true,
1614
1616
  dry_run: true,
@@ -1623,9 +1625,9 @@ async function handleCardChange(action, cardId, options) {
1623
1625
  );
1624
1626
  return;
1625
1627
  }
1626
- const cards = new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.cards;
1628
+ const cards = new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.cards;
1627
1629
  const payload = action === "default" ? await cards.setDefault({ cardId, changeId }) : await cards.remove({ cardId, changeId });
1628
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1630
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1629
1631
  {
1630
1632
  ...payload,
1631
1633
  render: {
@@ -1659,11 +1661,11 @@ async function handleBuyCredits(creditsRaw, options) {
1659
1661
  return;
1660
1662
  }
1661
1663
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1662
- const payload = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.purchaseCredits({
1664
+ const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.purchaseCredits({
1663
1665
  credits,
1664
1666
  idempotencyKey
1665
1667
  });
1666
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1668
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1667
1669
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1668
1670
  { json: options.json }
1669
1671
  );
@@ -1699,7 +1701,7 @@ async function handleTopUpRecover(creditsRaw, options) {
1699
1701
  return;
1700
1702
  }
1701
1703
  if (options.dryRun) {
1702
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1704
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1703
1705
  {
1704
1706
  ok: true,
1705
1707
  dry_run: true,
@@ -1712,12 +1714,12 @@ async function handleTopUpRecover(creditsRaw, options) {
1712
1714
  );
1713
1715
  return;
1714
1716
  }
1715
- const payload = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.recoverCreditPurchase({
1717
+ const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.recoverCreditPurchase({
1716
1718
  credits,
1717
1719
  orgId: options.orgId,
1718
1720
  idempotencyKey: options.idempotencyKey
1719
1721
  });
1720
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1722
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1721
1723
  { ok: true, idempotency_key: options.idempotencyKey, ...payload },
1722
1724
  { json: options.json }
1723
1725
  );
@@ -1734,7 +1736,7 @@ async function handleTargetPlan(planSku, options) {
1734
1736
  );
1735
1737
  return;
1736
1738
  }
1737
- const targetPlanSku = _nullishCoalesce([..._chunkX5ZE7K4Jjs.PUBLIC_PLAN_SKUS, ...COMPATIBLE_PLAN_SKUS].find(
1739
+ const targetPlanSku = _nullishCoalesce([..._chunk7HOYKXVYjs.PUBLIC_PLAN_SKUS, ...COMPATIBLE_PLAN_SKUS].find(
1738
1740
  (sku) => sku === planSku
1739
1741
  ), () => ( // Retained Canary requests may replay their original operation. The API
1740
1742
  // rejects new acquisition even when a caller supplies an idempotency key.
@@ -1744,14 +1746,14 @@ async function handleTargetPlan(planSku, options) {
1744
1746
  {
1745
1747
  exitCode: 2,
1746
1748
  code: "INVALID_PLAN",
1747
- message: `Plan must be one of ${_chunkX5ZE7K4Jjs.PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
1749
+ message: `Plan must be one of ${_chunk7HOYKXVYjs.PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
1748
1750
  },
1749
1751
  options
1750
1752
  );
1751
1753
  return;
1752
1754
  }
1753
1755
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1754
- const payload = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.transitionPlan({
1756
+ const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.transitionPlan({
1755
1757
  action: "start_or_change",
1756
1758
  targetPlanSku,
1757
1759
  ...options.billingEmail ? { billingEmail: options.billingEmail } : {},
@@ -1760,14 +1762,14 @@ async function handleTargetPlan(planSku, options) {
1760
1762
  ...options.invoice ? { paymentMethod: "invoice" } : {},
1761
1763
  idempotencyKey
1762
1764
  });
1763
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1765
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1764
1766
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1765
1767
  { json: options.json }
1766
1768
  );
1767
1769
  }
1768
1770
  async function handleBillingDetailsShow(options) {
1769
- const payload = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.getDetails();
1770
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1771
+ const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.getDetails();
1772
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1771
1773
  }
1772
1774
  async function handleBillingDetailsSet(options) {
1773
1775
  const separator = _nullishCoalesce(_optionalChain([options, 'access', _28 => _28.taxId, 'optionalAccess', _29 => _29.indexOf, 'call', _30 => _30(":")]), () => ( -1));
@@ -1784,7 +1786,7 @@ async function handleBillingDetailsSet(options) {
1784
1786
  );
1785
1787
  return;
1786
1788
  }
1787
- const payload = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.setDetails({
1789
+ const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.setDetails({
1788
1790
  ...options.name !== void 0 ? { name: options.name } : {},
1789
1791
  ...options.line1 !== void 0 ? {
1790
1792
  address: {
@@ -1803,28 +1805,28 @@ async function handleBillingDetailsSet(options) {
1803
1805
  }
1804
1806
  } : {}
1805
1807
  });
1806
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1808
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1807
1809
  }
1808
1810
  async function handleTargetPlanCancellation(options) {
1809
1811
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1810
- const payload = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.transitionPlan({
1812
+ const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.transitionPlan({
1811
1813
  action: options.undo ? "undo_cancel" : "cancel",
1812
1814
  idempotencyKey
1813
1815
  });
1814
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1816
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1815
1817
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1816
1818
  { json: options.json }
1817
1819
  );
1818
1820
  }
1819
1821
  async function handleTargetPortal(options) {
1820
- const payload = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.portalSession(
1822
+ const payload = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.portalSession(
1821
1823
  options.billingAddress ? { flow: "customer_update" } : void 0
1822
1824
  );
1823
- if (!options.json && !options.noOpen) _chunkFXN5WSTYjs.openInBrowser.call(void 0, payload.url);
1824
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1825
+ if (!options.json && !options.noOpen) _chunkOOGP737Ijs.openInBrowser.call(void 0, payload.url);
1826
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1825
1827
  }
1826
1828
  async function handleRedeemCode(code, options) {
1827
- const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
1829
+ const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
1828
1830
  const payload = await http.post(
1829
1831
  "/api/v2/billing/checkout",
1830
1832
  {
@@ -1832,8 +1834,8 @@ async function handleRedeemCode(code, options) {
1832
1834
  }
1833
1835
  );
1834
1836
  const url = String(payload.url || payload.checkout_url || "");
1835
- if (!options.json && !options.noOpen && url) _chunkFXN5WSTYjs.openInBrowser.call(void 0, url);
1836
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1837
+ if (!options.json && !options.noOpen && url) _chunkOOGP737Ijs.openInBrowser.call(void 0, url);
1838
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1837
1839
  {
1838
1840
  ...payload,
1839
1841
  render: {
@@ -1894,14 +1896,14 @@ Examples:
1894
1896
  if (!Number.isSafeInteger(quantity) || quantity <= 0) {
1895
1897
  throw new Error("--quantity must be a positive safe integer.");
1896
1898
  }
1897
- const quote = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.quote({
1899
+ const quote = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.quote({
1898
1900
  quantity,
1899
1901
  sandbox_runtime: {
1900
1902
  timeout: options.sandboxTimeout,
1901
1903
  size: options.sandboxSize
1902
1904
  }
1903
1905
  });
1904
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0, quote, {
1906
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, quote, {
1905
1907
  json: options.json,
1906
1908
  text: `Sandbox session ceiling: ${quote.maximum_credits} Deepline credits (${quote.quantity} session${quote.quantity === 1 ? "" : "s"}).
1907
1909
  ${quote.explanation}
@@ -1930,9 +1932,9 @@ Examples:
1930
1932
  billing.command("reuse").description(
1931
1933
  "Show recorded reused tool results for this org; no credit estimate."
1932
1934
  ).option("--json", "Return the org reuse summary as JSON").action(async (options) => {
1933
- const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
1935
+ const { http } = _chunkOOGP737Ijs.getAuthedHttpClient.call(void 0, );
1934
1936
  const payload = await http.get("/api/v2/usage/reuse");
1935
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
1937
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0,
1936
1938
  {
1937
1939
  status: "ok",
1938
1940
  data: payload,
@@ -2173,8 +2175,8 @@ Examples:
2173
2175
  new (0, _commander.Command)("trigger").description(
2174
2176
  "Evaluate capped automatic recharge and resume any pending purchase."
2175
2177
  ).option("--json", "Emit JSON output").action(async (options) => {
2176
- const result = await new (0, _chunkNVJGVNENjs.DeeplineClient)().billing.autoRecharge.trigger();
2177
- _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
2178
+ const result = await new (0, _chunkUYCBG75Hjs.DeeplineClient)().billing.autoRecharge.trigger();
2179
+ _chunkOOGP737Ijs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
2178
2180
  })
2179
2181
  );
2180
2182
  billing.command("cards").description("List, add, choose the default of, and remove saved cards.").addHelpText(
@@ -2208,7 +2210,7 @@ Examples:
2208
2210
  );
2209
2211
  billing.command("change-plan").description("Start or change the target billing plan.").argument(
2210
2212
  "<plan_sku>",
2211
- `${_chunkX5ZE7K4Jjs.PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
2213
+ `${_chunk7HOYKXVYjs.PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
2212
2214
  ).option(
2213
2215
  "--billing-email <email>",
2214
2216
  "Invoice recipient: required with --invoice, otherwise used when the account has no billing email"