deepline 0.3.463 → 0.3.464

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 (158) hide show
  1. package/dist/bundling-sources/sdk/src/play.ts +3 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +3 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +16 -2
  5. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +98 -0
  6. package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +353 -52
  7. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +63 -3
  8. package/dist/cli/{auth-LZLBR4C3.mjs → auth-GMSI6QWR.mjs} +5 -5
  9. package/dist/cli/auth-P4E7M3AV.js +41 -0
  10. package/dist/cli/{billing-OTOP5RE4.mjs → billing-6G2RFLM7.mjs} +6 -6
  11. package/dist/cli/{billing-6TJPNJQD.js → billing-MGH36CNP.js} +77 -77
  12. package/dist/cli/{chunk-5DRNNC72.js → chunk-2RFTOESC.js} +5 -5
  13. package/dist/cli/{chunk-NDHJR2WZ.js → chunk-3AIMFE3Z.js} +36 -36
  14. package/dist/cli/{chunk-S4XQCFES.mjs → chunk-3MKRAI6R.mjs} +5 -5
  15. package/dist/cli/{chunk-NTLI6P6Y.mjs → chunk-44BEFU62.mjs} +2 -2
  16. package/dist/cli/{chunk-3BOIOCNX.js → chunk-4XNXFHG6.js} +1 -1
  17. package/dist/cli/{chunk-F2RHUPVH.mjs → chunk-5CKIO7KA.mjs} +1 -1
  18. package/dist/cli/{chunk-2ZIRCBYG.js → chunk-5XIGEYYK.js} +6 -6
  19. package/dist/cli/{chunk-WUMIYOXQ.mjs → chunk-6A7OH2PV.mjs} +2 -2
  20. package/dist/cli/{chunk-3BVLLJ3H.mjs → chunk-6COF5LIE.mjs} +2 -2
  21. package/dist/cli/{chunk-O3BJYD6D.mjs → chunk-6E2KNNTD.mjs} +2 -2
  22. package/dist/cli/{chunk-UIURR26V.mjs → chunk-6KDOO7IM.mjs} +4 -4
  23. package/dist/cli/{chunk-5LEAXRHV.js → chunk-6P4OYABU.js} +54 -226
  24. package/dist/cli/chunk-7YDN6AEK.mjs +649 -0
  25. package/dist/cli/{chunk-UROQDCVW.js → chunk-ACZLDP7L.js} +3 -3
  26. package/dist/cli/{chunk-UC4SFYNU.js → chunk-BMUDQMYE.js} +6 -6
  27. package/dist/cli/{chunk-DHXCBITQ.mjs → chunk-CUZVOPPY.mjs} +3 -3
  28. package/dist/cli/{chunk-CTQ56DXP.mjs → chunk-DO3FSI4C.mjs} +1 -1
  29. package/dist/cli/{chunk-2NISBXMN.js → chunk-E4QJKJH6.js} +51 -51
  30. package/dist/cli/{chunk-WUZS2HK6.js → chunk-EQNJUG3N.js} +53 -53
  31. package/dist/cli/{chunk-CBZP6J3V.js → chunk-FEWZT4RV.js} +21 -21
  32. package/dist/cli/{chunk-NAPTMYTY.js → chunk-FVAB2JRO.js} +8 -8
  33. package/dist/cli/{chunk-BGNWI3KH.js → chunk-GVJVBBGV.js} +3 -3
  34. package/dist/cli/{chunk-GUT7CLOL.mjs → chunk-HGUHBLX5.mjs} +3 -3
  35. package/dist/cli/{chunk-6PMCRYDA.js → chunk-HIMV32ZX.js} +6 -4
  36. package/dist/cli/{chunk-MSY22NQW.mjs → chunk-I2TCWIW2.mjs} +44 -216
  37. package/dist/cli/{chunk-XDWS2JJT.mjs → chunk-J327QVQV.mjs} +1 -1
  38. package/dist/cli/chunk-JLZKF7EY.js +649 -0
  39. package/dist/cli/{chunk-FK2HNDCN.js → chunk-K3BARC72.js} +2 -2
  40. package/dist/cli/{chunk-TIRBDQ3W.js → chunk-K4DVRQTY.js} +16 -16
  41. package/dist/cli/{chunk-XQCTG5OO.js → chunk-L3U44YVO.js} +5 -5
  42. package/dist/cli/{chunk-XW2JIYG7.mjs → chunk-M4QVY6RW.mjs} +2 -2
  43. package/dist/cli/{chunk-I624J4H5.mjs → chunk-MP3O4ISC.mjs} +1 -1
  44. package/dist/cli/{chunk-3U5EAP6E.mjs → chunk-MQNBOSQP.mjs} +5 -5
  45. package/dist/cli/{chunk-TKAQR3IB.mjs → chunk-MUQAKLBP.mjs} +1 -1
  46. package/dist/cli/{chunk-YGGIZ3VT.js → chunk-NI3QFUK7.js} +4 -4
  47. package/dist/cli/{chunk-BAPTQDLF.mjs → chunk-O4AOYLZE.mjs} +2 -2
  48. package/dist/cli/{chunk-5LHXOIPT.js → chunk-O4ZMADW4.js} +7 -7
  49. package/dist/cli/{chunk-7D6X7IXW.mjs → chunk-OA7IIOLW.mjs} +4 -4
  50. package/dist/cli/{chunk-VPHN2HAL.mjs → chunk-OGCAGZXO.mjs} +6 -4
  51. package/dist/cli/{chunk-C25QE4CH.mjs → chunk-PPQL5F4P.mjs} +1 -1
  52. package/dist/cli/{chunk-4YZKBBLZ.mjs → chunk-RFOQRCMW.mjs} +5 -5
  53. package/dist/cli/{chunk-LYFKBLJI.mjs → chunk-TMVBBGSK.mjs} +1 -1
  54. package/dist/cli/{chunk-PVY4DPPF.js → chunk-TU3M7UXJ.js} +13 -13
  55. package/dist/cli/{chunk-VDGTTH7K.mjs → chunk-UM363DQF.mjs} +2 -2
  56. package/dist/cli/{chunk-VY2GBNTX.js → chunk-UOAHDEAI.js} +9 -9
  57. package/dist/cli/{chunk-RD6IQ2JY.mjs → chunk-VQHEMZ33.mjs} +1 -1
  58. package/dist/cli/{chunk-IKWRUNAP.mjs → chunk-VYDOPASG.mjs} +1 -1
  59. package/dist/cli/{chunk-JVDKZJUH.js → chunk-VZX4P5FT.js} +258 -258
  60. package/dist/cli/{chunk-ALZBANZI.js → chunk-WLIFUH6W.js} +8 -8
  61. package/dist/cli/{chunk-7FCYPAPP.js → chunk-X3XJ6ZSJ.js} +2 -2
  62. package/dist/cli/{chunk-CVQ7N5CV.mjs → chunk-XMDBN2K7.mjs} +11 -11
  63. package/dist/cli/{chunk-RGOUCIIZ.js → chunk-ZAB6KCZW.js} +3 -3
  64. package/dist/cli/{chunk-SKU6ECIY.js → chunk-ZIMCLWEW.js} +5 -5
  65. package/dist/cli/{chunk-7XYDDCQ2.js → chunk-ZQERHPZA.js} +26 -26
  66. package/dist/cli/command-docs.js +2 -2
  67. package/dist/cli/command-docs.mjs +1 -1
  68. package/dist/cli/{csv-OK45Z5XQ.mjs → csv-4ZVMBOCK.mjs} +4 -4
  69. package/dist/cli/{csv-EH5QWR4O.js → csv-W2JPV57R.js} +13 -13
  70. package/dist/cli/{db-3ESJKETS.js → db-6YNFDHEW.js} +27 -27
  71. package/dist/cli/{db-6Z5E4HKN.mjs → db-TVK6BLRB.mjs} +6 -6
  72. package/dist/cli/describe-APW5TWBT.js +48 -0
  73. package/dist/cli/{describe-PNDQB7YS.mjs → describe-JFN4ECPO.mjs} +20 -20
  74. package/dist/cli/describe-core.d.mts +3 -3
  75. package/dist/cli/describe-core.d.ts +3 -3
  76. package/dist/cli/describe-core.js +4 -4
  77. package/dist/cli/describe-core.mjs +3 -3
  78. package/dist/cli/{executions-2NTWQFEG.mjs → executions-2FK4FFKE.mjs} +6 -6
  79. package/dist/cli/{executions-KUOBRX5V.js → executions-J4CAN7RB.js} +8 -8
  80. package/dist/cli/{feedback-7RPRMSGY.mjs → feedback-EYRRLA2P.mjs} +4 -4
  81. package/dist/cli/{feedback-UPHAZJ4C.js → feedback-NOO4OM4U.js} +8 -8
  82. package/dist/cli/{git-SCYP6WSZ.mjs → git-D3Q4JKBC.mjs} +5 -5
  83. package/dist/cli/git-FPF6DT43.js +25 -0
  84. package/dist/cli/index.js +139 -139
  85. package/dist/cli/index.mjs +41 -41
  86. package/dist/cli/{legacy-noops-7XMFCVRG.js → legacy-noops-5ZGRKSN3.js} +8 -8
  87. package/dist/cli/{legacy-noops-A4KYAGI6.mjs → legacy-noops-SUFJWBLZ.mjs} +5 -5
  88. package/dist/cli/{monitors-NZV6IX5H.js → monitors-3QFJZA6Z.js} +91 -91
  89. package/dist/cli/{monitors-FLC5J7RI.mjs → monitors-IRDIIR6J.mjs} +7 -7
  90. package/dist/cli/{org-IZ7UP3XF.js → org-275OJJ7W.js} +68 -68
  91. package/dist/cli/{org-LUETJ7Z5.mjs → org-2VA2FSMG.mjs} +6 -6
  92. package/dist/cli/{pages-22ML3O7O.js → pages-SPRBOZRA.js} +17 -17
  93. package/dist/cli/{pages-EUX5EAGF.mjs → pages-WCUEBFYU.mjs} +6 -6
  94. package/dist/cli/{play-CDHPAKKM.mjs → play-7UL5H6QU.mjs} +18 -18
  95. package/dist/cli/{play-USJBQADG.js → play-NMHUWBET.js} +305 -305
  96. package/dist/cli/{providers-WFEUNPGC.js → providers-72LUJEAT.js} +9 -9
  97. package/dist/cli/{providers-CCXZ3SQF.mjs → providers-WSCKV557.mjs} +6 -6
  98. package/dist/cli/{quickstart-ZUULI635.mjs → quickstart-K4LAKJKJ.mjs} +4 -4
  99. package/dist/cli/{quickstart-O4JSUORZ.js → quickstart-XSUUAE2Y.js} +6 -6
  100. package/dist/cli/{run-ISDJYJMU.js → run-MLV2CLW7.js} +40 -40
  101. package/dist/cli/{run-QJ4NX5F5.mjs → run-R2MOXXHH.mjs} +25 -25
  102. package/dist/cli/search-AYFUV6YV.js +32 -0
  103. package/dist/cli/{search-IX3XKZJ3.mjs → search-WHJZNWKE.mjs} +7 -7
  104. package/dist/cli/{secrets-ELQSNCTR.js → secrets-7PXFBOFY.js} +15 -15
  105. package/dist/cli/{secrets-7VUDXTUZ.mjs → secrets-YGVOFLI5.mjs} +6 -6
  106. package/dist/cli/{sessions-A3FG3AZX.js → sessions-ASXXZI42.js} +6 -6
  107. package/dist/cli/{sessions-VOIQ62GB.mjs → sessions-G7I54W4L.mjs} +5 -5
  108. package/dist/cli/{settings-S6N6EFBG.mjs → settings-4GFO6JYO.mjs} +11 -11
  109. package/dist/cli/{settings-ZTXQEMZI.js → settings-RTEBMDPC.js} +78 -78
  110. package/dist/cli/{setup-AYPIK4JE.mjs → setup-4RJGKSDC.mjs} +9 -9
  111. package/dist/cli/{setup-Y3WOIFLS.js → setup-A6V2MJK7.js} +44 -44
  112. package/dist/cli/{skills-5SF5QWNI.mjs → skills-432W6EGS.mjs} +7 -7
  113. package/dist/cli/skills-GOQECD7H.js +31 -0
  114. package/dist/cli/tools-JXYN7WOE.js +55 -0
  115. package/dist/cli/{tools-3XNZ4J64.mjs → tools-SABREK3C.mjs} +18 -18
  116. package/dist/cli/update-BSB4TJER.js +33 -0
  117. package/dist/cli/{update-3U4OVX5R.mjs → update-F7NO5RDW.mjs} +9 -9
  118. package/dist/cli/{workflow-2M5JP7SA.mjs → workflow-F4N7CFUX.mjs} +7 -7
  119. package/dist/cli/{workflow-RM7H7555.js → workflow-TF6YDWTM.js} +17 -17
  120. package/dist/{client-DTwnz_AW.d.mts → client-ADFHNtFM.d.mts} +1 -1
  121. package/dist/{client-DS2IWYZF.d.ts → client-BClp2yrq.d.ts} +1 -1
  122. package/dist/{client-core-B_6HAIBy.d.ts → client-core-BFU73Ttw.d.ts} +1 -1
  123. package/dist/{client-core-DzBSlY1U.d.mts → client-core-DWLmmJWo.d.mts} +1 -1
  124. package/dist/{compiler-manifest-Dcyd3-Zd.d.ts → compiler-manifest-Cs17yO-H.d.mts} +321 -3
  125. package/dist/{compiler-manifest-Dcyd3-Zd.d.mts → compiler-manifest-Cs17yO-H.d.ts} +321 -3
  126. package/dist/{errors-yQwfgrcX.d.ts → errors-Dee-QpVS.d.ts} +1 -1
  127. package/dist/{errors-d-sTrZhe.d.mts → errors-qNfvQuRB.d.mts} +1 -1
  128. package/dist/{index-C6oXchjN.d.mts → index-BTqNNXmC.d.mts} +1 -1
  129. package/dist/{index-P56zy_z5.d.ts → index-DXTh1Lxe.d.ts} +1 -1
  130. package/dist/index.d.mts +7 -7
  131. package/dist/index.d.ts +7 -7
  132. package/dist/index.js +80 -13
  133. package/dist/index.mjs +76 -9
  134. package/dist/install-integrity.json +114 -114
  135. package/dist/plays/bundle-play-file.d.mts +3 -3
  136. package/dist/plays/bundle-play-file.d.ts +3 -3
  137. package/dist/plays/play-description.d.mts +2 -2
  138. package/dist/plays/play-description.d.ts +2 -2
  139. package/dist/plays/run-request.d.mts +2 -2
  140. package/dist/plays/run-request.d.ts +2 -2
  141. package/dist/release.d.mts +1 -1
  142. package/dist/release.d.ts +1 -1
  143. package/dist/release.js +2 -2
  144. package/dist/release.mjs +1 -1
  145. package/dist/server.d.mts +4 -4
  146. package/dist/server.d.ts +4 -4
  147. package/dist/server.js +5 -5
  148. package/dist/server.mjs +3 -3
  149. package/package.json +1 -1
  150. package/dist/cli/auth-XPGKBJKB.js +0 -41
  151. package/dist/cli/chunk-NA4T3B62.js +0 -286
  152. package/dist/cli/chunk-TXZVVBQZ.mjs +0 -286
  153. package/dist/cli/describe-QUF7VTTR.js +0 -48
  154. package/dist/cli/git-UH653WHV.js +0 -25
  155. package/dist/cli/search-TIFNLRPM.js +0 -32
  156. package/dist/cli/skills-MWFRMG3H.js +0 -31
  157. package/dist/cli/tools-XEC4OD3R.js +0 -55
  158. package/dist/cli/update-DWYEYTZE.js +0 -33
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-NTLI6P6Y.mjs";
3
+ } from "./chunk-44BEFU62.mjs";
4
4
  import {
5
5
  iterateCursorPages,
6
6
  requireBillingIdempotencyKey
7
- } from "./chunk-RD6IQ2JY.mjs";
7
+ } from "./chunk-VQHEMZ33.mjs";
8
8
  import "./chunk-L2VKAASU.mjs";
9
9
  import "./chunk-FAG4DFUC.mjs";
10
10
  import "./chunk-S3A4IXBQ.mjs";
@@ -15,9 +15,9 @@ import {
15
15
  openInBrowser,
16
16
  printCommandEnvelope,
17
17
  shouldEmitJson
18
- } from "./chunk-WUMIYOXQ.mjs";
19
- import "./chunk-F2RHUPVH.mjs";
20
- import "./chunk-I624J4H5.mjs";
18
+ } from "./chunk-6A7OH2PV.mjs";
19
+ import "./chunk-5CKIO7KA.mjs";
20
+ import "./chunk-MP3O4ISC.mjs";
21
21
  import {
22
22
  AuthError,
23
23
  ConfigError
@@ -26,7 +26,7 @@ import "./chunk-DLIRSHV6.mjs";
26
26
  import {
27
27
  DeeplineError
28
28
  } from "./chunk-HBL4PM5Q.mjs";
29
- import "./chunk-XDWS2JJT.mjs";
29
+ import "./chunk-J327QVQV.mjs";
30
30
  import "./chunk-WZYKRD7T.mjs";
31
31
  import "./chunk-KRD6H754.mjs";
32
32
 
@@ -1,10 +1,10 @@
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 _chunkSKU6ECIYjs = require('./chunk-SKU6ECIY.js');
3
+ var _chunkZIMCLWEWjs = require('./chunk-ZIMCLWEW.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkUC4SFYNUjs = require('./chunk-UC4SFYNU.js');
7
+ var _chunkBMUDQMYEjs = require('./chunk-BMUDQMYE.js');
8
8
  require('./chunk-E4CABWXL.js');
9
9
  require('./chunk-JKVRBCZL.js');
10
10
  require('./chunk-NMU3VR5U.js');
@@ -15,9 +15,9 @@ require('./chunk-XDVT3GOM.js');
15
15
 
16
16
 
17
17
 
18
- var _chunk5LHXOIPTjs = require('./chunk-5LHXOIPT.js');
19
- require('./chunk-BGNWI3KH.js');
20
- require('./chunk-YGGIZ3VT.js');
18
+ var _chunkO4ZMADW4js = require('./chunk-O4ZMADW4.js');
19
+ require('./chunk-GVJVBBGV.js');
20
+ require('./chunk-NI3QFUK7.js');
21
21
 
22
22
 
23
23
 
@@ -26,7 +26,7 @@ require('./chunk-XNYIZMNQ.js');
26
26
 
27
27
 
28
28
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
29
- require('./chunk-3BOIOCNX.js');
29
+ require('./chunk-4XNXFHG6.js');
30
30
  require('./chunk-OG64RBAC.js');
31
31
  require('./chunk-COGTRVWW.js');
32
32
 
@@ -75,7 +75,7 @@ function reportBillingFailure(failure, options) {
75
75
  if (failure.next) {
76
76
  textLines.push(`Next: ${failure.next}`);
77
77
  }
78
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
78
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
79
79
  {
80
80
  ok: false,
81
81
  exitCode: failure.exitCode,
@@ -96,7 +96,7 @@ function parseTopUpCredits(raw) {
96
96
  return parsed;
97
97
  }
98
98
  function topUpIdempotencyKey(raw) {
99
- return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkUC4SFYNUjs.requireBillingIdempotencyKey.call(void 0, raw);
99
+ return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkBMUDQMYEjs.requireBillingIdempotencyKey.call(void 0, raw);
100
100
  }
101
101
  function targetBillingIdempotencyKey(raw) {
102
102
  return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${_crypto.randomUUID.call(void 0, )}`;
@@ -315,7 +315,7 @@ function defaultLedgerExportPath() {
315
315
  );
316
316
  }
317
317
  async function handleBalance(options) {
318
- const { http } = _chunk5LHXOIPTjs.getAuthedHttpClient.call(void 0, );
318
+ const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
319
319
  const payload = await http.get(
320
320
  "/api/v2/billing/balance"
321
321
  );
@@ -399,7 +399,7 @@ async function handleBalance(options) {
399
399
  ...options.verbose ? detail : [],
400
400
  ...lines.slice(1)
401
401
  ];
402
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
402
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
403
403
  {
404
404
  ...payload,
405
405
  ...recovery ? { recovery } : {},
@@ -435,7 +435,7 @@ async function handleUsageEvents(options) {
435
435
  );
436
436
  return;
437
437
  }
438
- const client = new (0, _chunkSKU6ECIYjs.DeeplineClient)();
438
+ const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
439
439
  let payload;
440
440
  try {
441
441
  payload = await client.billing.usageEvents({
@@ -466,7 +466,7 @@ async function handleUsageEvents(options) {
466
466
  ),
467
467
  ...nextPage ? [`Next page: ${nextPage}`] : []
468
468
  ];
469
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
469
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
470
470
  {
471
471
  ...payload,
472
472
  next: { page: nextPage },
@@ -477,7 +477,7 @@ async function handleUsageEvents(options) {
477
477
  }
478
478
  async function handleUsage(options) {
479
479
  if (options.events) return handleUsageEvents(options);
480
- const { http } = _chunk5LHXOIPTjs.getAuthedHttpClient.call(void 0, );
480
+ const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
481
481
  const params = new URLSearchParams();
482
482
  if (options.requestId !== void 0) {
483
483
  const requestId = options.requestId.trim();
@@ -558,7 +558,7 @@ async function handleUsage(options) {
558
558
  "No continuation is available for this view. Use deepline billing ledger export all for the full ledger."
559
559
  ] : []
560
560
  ];
561
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
561
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
562
562
  {
563
563
  ...payload,
564
564
  recent: {
@@ -572,7 +572,7 @@ async function handleUsage(options) {
572
572
  );
573
573
  }
574
574
  async function handleLimit(options) {
575
- const { http } = _chunk5LHXOIPTjs.getAuthedHttpClient.call(void 0, );
575
+ const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
576
576
  const payload = await http.get(
577
577
  "/api/v2/billing/limit"
578
578
  );
@@ -580,7 +580,7 @@ async function handleLimit(options) {
580
580
  `Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
581
581
  "Enforcement: checked before new calls; in-flight work can exceed the cap."
582
582
  ] : ["Monthly usage cap: off"];
583
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
583
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
584
584
  {
585
585
  ...payload,
586
586
  render: { sections: [{ title: "billing limit", lines }] }
@@ -589,12 +589,12 @@ async function handleLimit(options) {
589
589
  );
590
590
  }
591
591
  async function handleSetLimit(credits, options) {
592
- const { http } = _chunk5LHXOIPTjs.getAuthedHttpClient.call(void 0, );
592
+ const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
593
593
  const payload = await http.request("/api/v2/billing/limit", {
594
594
  method: "PUT",
595
595
  body: { monthly_credits_limit: Number.parseInt(credits, 10) }
596
596
  });
597
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
597
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
598
598
  {
599
599
  ...payload,
600
600
  render: {
@@ -610,11 +610,11 @@ async function handleSetLimit(credits, options) {
610
610
  );
611
611
  }
612
612
  async function handleLimitOff(options) {
613
- const { http } = _chunk5LHXOIPTjs.getAuthedHttpClient.call(void 0, );
613
+ const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
614
614
  const payload = await http.request("/api/v2/billing/limit", {
615
615
  method: "DELETE"
616
616
  });
617
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
617
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
618
618
  {
619
619
  ...payload,
620
620
  render: {
@@ -634,7 +634,7 @@ async function exportLedger(http, outputPath, options) {
634
634
  let initialized = false;
635
635
  let pageNumber = 0;
636
636
  console.error(`Exporting billing ledger to ${outputPath}`);
637
- for await (const entries of _chunkUC4SFYNUjs.iterateCursorPages.call(void 0, async (cursor) => {
637
+ for await (const entries of _chunkBMUDQMYEjs.iterateCursorPages.call(void 0, async (cursor) => {
638
638
  pageNumber += 1;
639
639
  console.error(
640
640
  `Fetching page ${pageNumber}; ${summary.row_count} rows written.`
@@ -673,7 +673,7 @@ async function exportLedger(http, outputPath, options) {
673
673
  return summary;
674
674
  }
675
675
  async function handleHistory(options) {
676
- const { http } = _chunk5LHXOIPTjs.getAuthedHttpClient.call(void 0, );
676
+ const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
677
677
  const windows = {
678
678
  "1d": 86400,
679
679
  "1w": 604800,
@@ -685,10 +685,10 @@ async function handleHistory(options) {
685
685
  process.cwd(),
686
686
  "deepline",
687
687
  "data",
688
- _chunk5LHXOIPTjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
688
+ _chunkO4ZMADW4js.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
689
689
  );
690
690
  const summary = await exportLedger(http, outputPath, { sinceAt });
691
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
691
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
692
692
  {
693
693
  output_path: outputPath,
694
694
  row_count: summary.row_count,
@@ -725,14 +725,14 @@ async function handleLedgerExportAll(options) {
725
725
  );
726
726
  return;
727
727
  }
728
- const { http } = _chunk5LHXOIPTjs.getAuthedHttpClient.call(void 0, );
728
+ const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
729
729
  const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
730
730
  const summary = await exportLedger(http, outputPath, {
731
731
  sinceAt,
732
732
  runId: options.runId,
733
733
  operation: options.operation
734
734
  });
735
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
735
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
736
736
  {
737
737
  output_path: outputPath,
738
738
  row_count: summary.row_count,
@@ -771,7 +771,7 @@ function targetPlanLine(plan) {
771
771
  return `${plan.name} (${plan.sku}) | ${planPriceText(plan.recurring_price_usd, plan.interval)} | ${plan.included_credits} included credits/month | $${plan.purchased_credit_price_usd}/purchased credit | ${plan.acquisition_enabled ? "available" : "unavailable"}`;
772
772
  }
773
773
  async function handlePlans(options) {
774
- const client = new (0, _chunkSKU6ECIYjs.DeeplineClient)();
774
+ const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
775
775
  const payload = await client.billing.targetPlans();
776
776
  const listedCurrentPlan = payload.plans.find(
777
777
  (plan) => plan.sku === payload.current_plan_sku
@@ -784,8 +784,8 @@ async function handlePlans(options) {
784
784
  ...payload.plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...payload.plans.map(targetPlanLine)],
785
785
  "Change plan: deepline billing change-plan <plan_sku>"
786
786
  ];
787
- const legacyPayload = _chunk5LHXOIPTjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
788
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
787
+ const legacyPayload = _chunkO4ZMADW4js.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
788
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
789
789
  {
790
790
  ..._nullishCoalesce(legacyPayload, () => ( payload)),
791
791
  ...legacyPayload ? { target_billing: payload } : {},
@@ -795,7 +795,7 @@ async function handlePlans(options) {
795
795
  );
796
796
  }
797
797
  async function handleSubscribe(planVersionId, options) {
798
- const { http } = _chunk5LHXOIPTjs.getAuthedHttpClient.call(void 0, );
798
+ const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
799
799
  const payload = await http.request(
800
800
  "/api/v2/billing/subscription/checkout",
801
801
  {
@@ -804,8 +804,8 @@ async function handleSubscribe(planVersionId, options) {
804
804
  }
805
805
  );
806
806
  const url = String(payload.checkout_url || "");
807
- if (!options.json && options.open !== false && url) _chunk5LHXOIPTjs.openInBrowser.call(void 0, url);
808
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
807
+ if (!options.json && options.open !== false && url) _chunkO4ZMADW4js.openInBrowser.call(void 0, url);
808
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
809
809
  {
810
810
  ...payload,
811
811
  render: {
@@ -821,7 +821,7 @@ async function handleSubscribe(planVersionId, options) {
821
821
  );
822
822
  }
823
823
  async function handleSubscriptionStatus(options) {
824
- const client = new (0, _chunkSKU6ECIYjs.DeeplineClient)();
824
+ const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
825
825
  const payload = await client.billing.subscription.status();
826
826
  const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
827
827
  const lines = [
@@ -841,7 +841,7 @@ async function handleSubscriptionStatus(options) {
841
841
  ],
842
842
  `Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
843
843
  ];
844
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
844
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
845
845
  {
846
846
  ...payload,
847
847
  render: { sections: [{ title: "billing subscription", lines }] }
@@ -850,7 +850,7 @@ async function handleSubscriptionStatus(options) {
850
850
  );
851
851
  }
852
852
  async function handleSubscriptionCancel(options) {
853
- const client = new (0, _chunkSKU6ECIYjs.DeeplineClient)();
853
+ const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
854
854
  const action = options.undo ? "undo_cancel" : "cancel";
855
855
  if (options.dryRun) {
856
856
  const status = await client.billing.subscription.status();
@@ -867,7 +867,7 @@ async function handleSubscriptionCancel(options) {
867
867
  return;
868
868
  }
869
869
  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.";
870
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
870
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
871
871
  {
872
872
  ok: true,
873
873
  dry_run: true,
@@ -922,7 +922,7 @@ async function handleSubscriptionCancel(options) {
922
922
  "Remaining credits are yours to keep \u2014 cancellation never removes credits.",
923
923
  "Undo with: deepline billing subscription cancel --undo"
924
924
  ];
925
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
925
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
926
926
  {
927
927
  ok: true,
928
928
  ...result,
@@ -976,7 +976,7 @@ async function handleInvoices(options) {
976
976
  return;
977
977
  }
978
978
  }
979
- const client = new (0, _chunkSKU6ECIYjs.DeeplineClient)();
979
+ const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
980
980
  let payload;
981
981
  try {
982
982
  payload = await client.billing.invoices.list(
@@ -1005,7 +1005,7 @@ async function handleInvoices(options) {
1005
1005
  url: entry.url
1006
1006
  }))
1007
1007
  } : { ...payload, count: entries.length };
1008
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1008
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1009
1009
  {
1010
1010
  ...envelope,
1011
1011
  render: { sections: [{ title: "billing invoices", lines }] }
@@ -1014,7 +1014,7 @@ async function handleInvoices(options) {
1014
1014
  );
1015
1015
  }
1016
1016
  async function handleCheckout(options) {
1017
- const { http } = _chunk5LHXOIPTjs.getAuthedHttpClient.call(void 0, );
1017
+ const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
1018
1018
  const payload = await http.post(
1019
1019
  "/api/v2/billing/checkout",
1020
1020
  {
@@ -1024,8 +1024,8 @@ async function handleCheckout(options) {
1024
1024
  }
1025
1025
  );
1026
1026
  const url = String(payload.url || payload.checkout_url || "");
1027
- if (!options.json && !options.noOpen && url) _chunk5LHXOIPTjs.openInBrowser.call(void 0, url);
1028
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1027
+ if (!options.json && !options.noOpen && url) _chunkO4ZMADW4js.openInBrowser.call(void 0, url);
1028
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1029
1029
  {
1030
1030
  ...payload,
1031
1031
  render: {
@@ -1070,7 +1070,7 @@ async function handleTopUp(creditsRaw, options) {
1070
1070
  return;
1071
1071
  }
1072
1072
  if (options.dryRun) {
1073
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1073
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1074
1074
  {
1075
1075
  ok: true,
1076
1076
  dry_run: true,
@@ -1100,7 +1100,7 @@ async function handleTopUp(creditsRaw, options) {
1100
1100
  );
1101
1101
  return;
1102
1102
  }
1103
- const client = new (0, _chunkSKU6ECIYjs.DeeplineClient)();
1103
+ const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
1104
1104
  let payload;
1105
1105
  try {
1106
1106
  payload = await client.billing.topUpWithReceipt({
@@ -1117,7 +1117,7 @@ async function handleTopUp(creditsRaw, options) {
1117
1117
  return;
1118
1118
  }
1119
1119
  if (payload.status === "pending") {
1120
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1120
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1121
1121
  {
1122
1122
  ok: true,
1123
1123
  ...payload,
@@ -1181,17 +1181,17 @@ async function handleTopUp(creditsRaw, options) {
1181
1181
  ]
1182
1182
  }
1183
1183
  };
1184
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1184
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1185
1185
  json: options.json
1186
1186
  });
1187
1187
  }
1188
1188
  async function handleTargetStatus(options) {
1189
- const client = new (0, _chunkSKU6ECIYjs.DeeplineClient)();
1189
+ const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
1190
1190
  const payload = await client.billing.targetStatus();
1191
1191
  const balanceCommand = "deepline billing balance";
1192
1192
  const recentChargesCommand = "deepline billing usage --limit 5";
1193
1193
  const exactChargeCommand = "deepline billing usage --request-id <job_id>";
1194
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1194
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1195
1195
  {
1196
1196
  ok: true,
1197
1197
  ...payload,
@@ -1224,8 +1224,8 @@ function formatAllowanceAmount(value) {
1224
1224
  return Number(value.toFixed(2)).toLocaleString("en-US");
1225
1225
  }
1226
1226
  async function handleEntitlements(options) {
1227
- const payload = await new (0, _chunkSKU6ECIYjs.DeeplineClient)().billing.entitlements();
1228
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1227
+ const payload = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().billing.entitlements();
1228
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1229
1229
  {
1230
1230
  ok: true,
1231
1231
  ...payload,
@@ -1258,7 +1258,7 @@ async function handleEntitlements(options) {
1258
1258
  );
1259
1259
  }
1260
1260
  async function handleAutoRechargeStatus(options) {
1261
- const payload = await new (0, _chunkSKU6ECIYjs.DeeplineClient)().billing.autoRecharge.get();
1261
+ const payload = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().billing.autoRecharge.get();
1262
1262
  const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
1263
1263
  const lines = [
1264
1264
  `State: ${state}`,
@@ -1268,7 +1268,7 @@ async function handleAutoRechargeStatus(options) {
1268
1268
  `Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
1269
1269
  ] : []
1270
1270
  ];
1271
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1271
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1272
1272
  {
1273
1273
  ok: true,
1274
1274
  ...payload,
@@ -1317,7 +1317,7 @@ async function handleAutoRechargeSet(options) {
1317
1317
  }
1318
1318
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1319
1319
  if (options.dryRun) {
1320
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1320
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1321
1321
  {
1322
1322
  ok: true,
1323
1323
  dry_run: true,
@@ -1338,7 +1338,7 @@ async function handleAutoRechargeSet(options) {
1338
1338
  );
1339
1339
  return;
1340
1340
  }
1341
- const payload = await new (0, _chunkSKU6ECIYjs.DeeplineClient)().billing.autoRecharge.update({
1341
+ const payload = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().billing.autoRecharge.update({
1342
1342
  enabled: true,
1343
1343
  thresholdCredits,
1344
1344
  refillToCredits,
@@ -1346,7 +1346,7 @@ async function handleAutoRechargeSet(options) {
1346
1346
  ...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
1347
1347
  idempotencyKey
1348
1348
  });
1349
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1349
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1350
1350
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1351
1351
  { json: options.json }
1352
1352
  );
@@ -1354,7 +1354,7 @@ async function handleAutoRechargeSet(options) {
1354
1354
  async function handleAutoRechargeOff(options) {
1355
1355
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1356
1356
  if (options.dryRun) {
1357
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1357
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1358
1358
  {
1359
1359
  ok: true,
1360
1360
  dry_run: true,
@@ -1369,11 +1369,11 @@ async function handleAutoRechargeOff(options) {
1369
1369
  );
1370
1370
  return;
1371
1371
  }
1372
- const payload = await new (0, _chunkSKU6ECIYjs.DeeplineClient)().billing.autoRecharge.update({
1372
+ const payload = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().billing.autoRecharge.update({
1373
1373
  enabled: false,
1374
1374
  idempotencyKey
1375
1375
  });
1376
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1376
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1377
1377
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1378
1378
  { json: options.json }
1379
1379
  );
@@ -1392,11 +1392,11 @@ async function handleBuyCredits(creditsRaw, options) {
1392
1392
  return;
1393
1393
  }
1394
1394
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1395
- const payload = await new (0, _chunkSKU6ECIYjs.DeeplineClient)().billing.purchaseCredits({
1395
+ const payload = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().billing.purchaseCredits({
1396
1396
  credits,
1397
1397
  idempotencyKey
1398
1398
  });
1399
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1399
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1400
1400
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1401
1401
  { json: options.json }
1402
1402
  );
@@ -1432,7 +1432,7 @@ async function handleTopUpRecover(creditsRaw, options) {
1432
1432
  return;
1433
1433
  }
1434
1434
  if (options.dryRun) {
1435
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1435
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1436
1436
  {
1437
1437
  ok: true,
1438
1438
  dry_run: true,
@@ -1445,12 +1445,12 @@ async function handleTopUpRecover(creditsRaw, options) {
1445
1445
  );
1446
1446
  return;
1447
1447
  }
1448
- const payload = await new (0, _chunkSKU6ECIYjs.DeeplineClient)().billing.recoverCreditPurchase({
1448
+ const payload = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().billing.recoverCreditPurchase({
1449
1449
  credits,
1450
1450
  orgId: options.orgId,
1451
1451
  idempotencyKey: options.idempotencyKey
1452
1452
  });
1453
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1453
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1454
1454
  { ok: true, idempotency_key: options.idempotencyKey, ...payload },
1455
1455
  { json: options.json }
1456
1456
  );
@@ -1470,37 +1470,37 @@ async function handleTargetPlan(planSku, options) {
1470
1470
  return;
1471
1471
  }
1472
1472
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1473
- const payload = await new (0, _chunkSKU6ECIYjs.DeeplineClient)().billing.transitionPlan({
1473
+ const payload = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().billing.transitionPlan({
1474
1474
  action: "start_or_change",
1475
1475
  targetPlanSku: planSku,
1476
1476
  ...options.billingEmail ? { billingEmail: options.billingEmail } : {},
1477
1477
  idempotencyKey
1478
1478
  });
1479
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1479
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1480
1480
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1481
1481
  { json: options.json }
1482
1482
  );
1483
1483
  }
1484
1484
  async function handleTargetPlanCancellation(options) {
1485
1485
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1486
- const payload = await new (0, _chunkSKU6ECIYjs.DeeplineClient)().billing.transitionPlan({
1486
+ const payload = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().billing.transitionPlan({
1487
1487
  action: options.undo ? "undo_cancel" : "cancel",
1488
1488
  idempotencyKey
1489
1489
  });
1490
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1490
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1491
1491
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1492
1492
  { json: options.json }
1493
1493
  );
1494
1494
  }
1495
1495
  async function handleTargetPortal(options) {
1496
- const payload = await new (0, _chunkSKU6ECIYjs.DeeplineClient)().billing.portalSession(
1496
+ const payload = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().billing.portalSession(
1497
1497
  options.billingAddress ? { flow: "customer_update" } : void 0
1498
1498
  );
1499
- if (!options.json && !options.noOpen) _chunk5LHXOIPTjs.openInBrowser.call(void 0, payload.url);
1500
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1499
+ if (!options.json && !options.noOpen) _chunkO4ZMADW4js.openInBrowser.call(void 0, payload.url);
1500
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1501
1501
  }
1502
1502
  async function handleRedeemCode(code, options) {
1503
- const { http } = _chunk5LHXOIPTjs.getAuthedHttpClient.call(void 0, );
1503
+ const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
1504
1504
  const payload = await http.post(
1505
1505
  "/api/v2/billing/checkout",
1506
1506
  {
@@ -1508,8 +1508,8 @@ async function handleRedeemCode(code, options) {
1508
1508
  }
1509
1509
  );
1510
1510
  const url = String(payload.url || payload.checkout_url || "");
1511
- if (!options.json && !options.noOpen && url) _chunk5LHXOIPTjs.openInBrowser.call(void 0, url);
1512
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1511
+ if (!options.json && !options.noOpen && url) _chunkO4ZMADW4js.openInBrowser.call(void 0, url);
1512
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
1513
1513
  {
1514
1514
  ...payload,
1515
1515
  render: {
@@ -1567,14 +1567,14 @@ Examples:
1567
1567
  if (!Number.isSafeInteger(quantity) || quantity <= 0) {
1568
1568
  throw new Error("--quantity must be a positive safe integer.");
1569
1569
  }
1570
- const quote = await new (0, _chunkSKU6ECIYjs.DeeplineClient)().billing.quote({
1570
+ const quote = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().billing.quote({
1571
1571
  quantity,
1572
1572
  sandbox_runtime: {
1573
1573
  timeout: options.sandboxTimeout,
1574
1574
  size: "standard"
1575
1575
  }
1576
1576
  });
1577
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0, quote, {
1577
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0, quote, {
1578
1578
  json: options.json,
1579
1579
  text: `Sandbox session ceiling: ${quote.maximum_credits} Deepline credits (${quote.quantity} session${quote.quantity === 1 ? "" : "s"}).
1580
1580
  ${quote.explanation}
@@ -1813,8 +1813,8 @@ Examples:
1813
1813
  new (0, _commander.Command)("trigger").description(
1814
1814
  "Evaluate capped automatic recharge and resume any pending purchase."
1815
1815
  ).option("--json", "Emit JSON output").action(async (options) => {
1816
- const result = await new (0, _chunkSKU6ECIYjs.DeeplineClient)().billing.autoRecharge.trigger();
1817
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
1816
+ const result = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().billing.autoRecharge.trigger();
1817
+ _chunkO4ZMADW4js.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
1818
1818
  })
1819
1819
  );
1820
1820
  billing.command("change-plan").description("Start or change the target billing plan.").argument("<plan_sku>", "payg-v1, builder-v1, growth-v1, or team-v1").option(
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkUC4SFYNUjs = require('./chunk-UC4SFYNU.js');
3
+ var _chunkBMUDQMYEjs = require('./chunk-BMUDQMYE.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkBGNWI3KHjs = require('./chunk-BGNWI3KH.js');
7
+ var _chunkGVJVBBGVjs = require('./chunk-GVJVBBGV.js');
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
137
137
 
138
138
  // src/plays/client.ts
139
139
  function createPlayClient(options) {
140
- const config = _chunkBGNWI3KHjs.resolveConfig.call(void 0, options);
141
- return new (0, _chunkUC4SFYNUjs.PlayClient)(
142
- new (0, _chunkBGNWI3KHjs.HttpClient)(config),
140
+ const config = _chunkGVJVBBGVjs.resolveConfig.call(void 0, options);
141
+ return new (0, _chunkBMUDQMYEjs.PlayClient)(
142
+ new (0, _chunkGVJVBBGVjs.HttpClient)(config),
143
143
  _nullishCoalesce(config.environment, () => ( process.env))
144
144
  );
145
145
  }