deepline 0.3.582 → 0.3.583

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 (145) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +14 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +53 -6
  4. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +14 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +69 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +33 -4
  7. package/dist/cli/{agents-UAXDG4FS.mjs → agents-G344SPW2.mjs} +68 -4
  8. package/dist/cli/{agents-2L73CJHH.js → agents-ZPDXVPEE.js} +95 -31
  9. package/dist/cli/{auth-3B2QB4UH.mjs → auth-V66RP2A6.mjs} +5 -5
  10. package/dist/cli/auth-VU6VIPVY.js +44 -0
  11. package/dist/cli/{billing-CPBRWG3M.mjs → billing-BTMGZJCR.mjs} +9 -9
  12. package/dist/cli/{billing-E7FO622G.js → billing-ROYUQF67.js} +105 -105
  13. package/dist/cli/{chunk-V54YQHPV.js → chunk-23LYXVI4.js} +6 -6
  14. package/dist/cli/{chunk-CYZSHD66.js → chunk-2D5YISAL.js} +2 -2
  15. package/dist/cli/{chunk-OUFOJTEJ.mjs → chunk-2QIVGZKS.mjs} +5 -5
  16. package/dist/cli/{chunk-NZR5PBNP.mjs → chunk-43MKV6E4.mjs} +3 -3
  17. package/dist/cli/{chunk-EGH4JNJP.js → chunk-6GYGMWQV.js} +8 -8
  18. package/dist/cli/{chunk-KDITCSPN.mjs → chunk-6S3OAJCJ.mjs} +19 -0
  19. package/dist/cli/{chunk-JD7P73ZW.mjs → chunk-72MEXMSH.mjs} +1 -1
  20. package/dist/cli/{chunk-ISN4F6AY.js → chunk-73IZARR5.js} +13 -13
  21. package/dist/cli/{chunk-NVHICORD.mjs → chunk-7AFTLM74.mjs} +2 -2
  22. package/dist/cli/{chunk-7QX5PCHP.mjs → chunk-ACS6BYE5.mjs} +2 -2
  23. package/dist/cli/{chunk-POYADK77.js → chunk-AHQDUMDM.js} +20 -20
  24. package/dist/cli/{chunk-JF4DUC2F.mjs → chunk-AXKFZIXC.mjs} +2 -2
  25. package/dist/cli/{chunk-LDMCTV2Z.mjs → chunk-AXOQ2FMS.mjs} +1 -1
  26. package/dist/cli/{chunk-HP6A3JCX.js → chunk-BUMCOVBP.js} +5 -5
  27. package/dist/cli/{chunk-SYWLWTWM.mjs → chunk-C233ZRNX.mjs} +4 -4
  28. package/dist/cli/{chunk-EB2YLLZJ.js → chunk-C7UCDL2K.js} +41 -41
  29. package/dist/cli/{chunk-H3KVMALU.js → chunk-CCC3NIYB.js} +9 -9
  30. package/dist/cli/{chunk-4ZAWRCB6.mjs → chunk-DNYFNOWG.mjs} +5 -5
  31. package/dist/cli/{chunk-ZARGHLZZ.mjs → chunk-EHV52KUV.mjs} +1 -1
  32. package/dist/cli/{chunk-6NEMTKTA.mjs → chunk-GFX6CDAB.mjs} +5 -5
  33. package/dist/cli/{chunk-JUZIMW4S.js → chunk-GQHZV7EQ.js} +7 -7
  34. package/dist/cli/{chunk-ZH23XGJO.js → chunk-H4BYWEV5.js} +4 -4
  35. package/dist/cli/{chunk-I5J6HGVR.mjs → chunk-H7F3ROT3.mjs} +2 -2
  36. package/dist/cli/{chunk-2K6EIL2D.mjs → chunk-HOGRT5X6.mjs} +1 -1
  37. package/dist/cli/{chunk-DPLYQITT.js → chunk-HYT5B2NL.js} +2 -2
  38. package/dist/cli/{chunk-G5YU6RJ4.mjs → chunk-J54DMFV5.mjs} +2 -2
  39. package/dist/cli/{chunk-FWB3QR7W.mjs → chunk-JQT3SHXL.mjs} +1 -1
  40. package/dist/cli/{chunk-4TTEAUZV.mjs → chunk-K6GDSCFL.mjs} +3 -3
  41. package/dist/cli/{chunk-XYQMOXP4.mjs → chunk-KSXBLXLV.mjs} +1 -1
  42. package/dist/cli/{chunk-Y36SQMSN.js → chunk-LHD3HOYN.js} +19 -0
  43. package/dist/cli/{chunk-LHA45DNY.mjs → chunk-LVJAHM2I.mjs} +3 -3
  44. package/dist/cli/{chunk-YPP436NM.js → chunk-MEAWK5G7.js} +53 -53
  45. package/dist/cli/{chunk-MRSYC74T.js → chunk-MFPHCUHK.js} +5 -5
  46. package/dist/cli/{chunk-D7J33HTK.mjs → chunk-N5RCXI3M.mjs} +5 -5
  47. package/dist/cli/{chunk-KQEW3EAU.js → chunk-N5XRUZRS.js} +16 -16
  48. package/dist/cli/{chunk-U2QQQNWW.mjs → chunk-P2YNTAGL.mjs} +2 -2
  49. package/dist/cli/{chunk-CPZL6Z7D.js → chunk-PGUK5VPC.js} +2 -2
  50. package/dist/cli/{chunk-VA35T3AF.js → chunk-PULU5YGX.js} +20 -20
  51. package/dist/cli/{chunk-ABJZQHON.mjs → chunk-PVDP3AZY.mjs} +4 -4
  52. package/dist/cli/{chunk-NJGXYYHN.js → chunk-QGOHEJVJ.js} +5 -5
  53. package/dist/cli/{chunk-3EOET5UB.js → chunk-QPN662ZP.js} +100 -100
  54. package/dist/cli/{chunk-Z3IAEHID.js → chunk-RO2LTLJA.js} +48 -48
  55. package/dist/cli/{chunk-3DVWSTAI.mjs → chunk-ROWROMXD.mjs} +1 -1
  56. package/dist/cli/{chunk-ROUNT4NX.mjs → chunk-U6BTY4WS.mjs} +1 -1
  57. package/dist/cli/{chunk-FBSPHBAF.js → chunk-VH45GV3T.js} +1 -1
  58. package/dist/cli/{chunk-5436ZJPH.js → chunk-VXDKL434.js} +3 -3
  59. package/dist/cli/{chunk-PNQVB4UD.mjs → chunk-VXEZKZU4.mjs} +11 -11
  60. package/dist/cli/{chunk-SKKRESFB.js → chunk-W3ECB7GC.js} +3 -3
  61. package/dist/cli/{chunk-RNZXMOA6.mjs → chunk-W5WLWRKL.mjs} +2 -2
  62. package/dist/cli/{chunk-DI5MULNX.js → chunk-WAZR72D5.js} +26 -26
  63. package/dist/cli/{chunk-GZBXN56A.js → chunk-WUVDJSZE.js} +23 -23
  64. package/dist/cli/{chunk-ZL3O7F5J.js → chunk-YRNWA2IL.js} +15 -15
  65. package/dist/cli/{chunk-3HIJNXRB.js → chunk-ZFJNIZHI.js} +10 -10
  66. package/dist/cli/{chunk-DSHIB2XQ.mjs → chunk-ZHIJA4MW.mjs} +1 -1
  67. package/dist/cli/command-docs.js +2 -2
  68. package/dist/cli/command-docs.mjs +1 -1
  69. package/dist/cli/concurrent-runs-help-6WUNDV77.js +22 -0
  70. package/dist/cli/{concurrent-runs-help-UFNYQYU2.mjs → concurrent-runs-help-A2Y33OQ5.mjs} +6 -6
  71. package/dist/cli/{csv-QSDRGLQH.mjs → csv-PS74WVXE.mjs} +4 -4
  72. package/dist/cli/{csv-ZI5LYFHF.js → csv-TKSR2LFV.js} +13 -13
  73. package/dist/cli/{db-WVWXNNMO.mjs → db-EXLBRZ7K.mjs} +6 -6
  74. package/dist/cli/{db-ZDL6Q53U.js → db-R6GOM4VC.js} +27 -27
  75. package/dist/cli/describe-CA2FL2OS.js +50 -0
  76. package/dist/cli/{describe-UUQBKUVL.mjs → describe-JJBXFPVQ.mjs} +18 -18
  77. package/dist/cli/{executions-SCGHTWTC.js → executions-474U7R3Y.js} +8 -8
  78. package/dist/cli/{executions-QN3OYJKT.mjs → executions-5PEODJQG.mjs} +6 -6
  79. package/dist/cli/{feedback-7QPHLXGU.mjs → feedback-QUQVRDBD.mjs} +6 -6
  80. package/dist/cli/{feedback-6QQ7ONLW.js → feedback-URTCAOXP.js} +14 -14
  81. package/dist/cli/{git-HFPJX573.mjs → git-AQF23KKU.mjs} +5 -5
  82. package/dist/cli/git-WJ4V2B4T.js +26 -0
  83. package/dist/cli/index.js +148 -148
  84. package/dist/cli/index.mjs +47 -47
  85. package/dist/cli/{integrations-4SZ5O24P.mjs → integrations-5POBI72U.mjs} +7 -7
  86. package/dist/cli/{integrations-ND2HULSH.js → integrations-NMFOOSS4.js} +29 -29
  87. package/dist/cli/{legacy-noops-WUP3TBR2.mjs → legacy-noops-6YVCOSFO.mjs} +6 -6
  88. package/dist/cli/{legacy-noops-GQF6AYP5.js → legacy-noops-V75T5LHV.js} +9 -9
  89. package/dist/cli/{mcp-3GUFYGCQ.mjs → mcp-7WEYQ5V7.mjs} +4 -4
  90. package/dist/cli/{mcp-L3YYVEU6.js → mcp-N6GYXCUQ.js} +24 -24
  91. package/dist/cli/{monitors-CVZZN5WG.js → monitors-HW4H4PE5.js} +100 -100
  92. package/dist/cli/{monitors-OFCVJSH5.mjs → monitors-TAK4M5Y4.mjs} +7 -7
  93. package/dist/cli/{org-3DTAYA52.mjs → org-3C2RN36N.mjs} +6 -6
  94. package/dist/cli/{org-MQ5AUN7I.js → org-FULXOXNE.js} +121 -121
  95. package/dist/cli/{outcomes-42W24EXG.mjs → outcomes-4KRZL6OL.mjs} +6 -6
  96. package/dist/cli/{outcomes-MGDUYHUD.js → outcomes-O3HDQWGN.js} +14 -14
  97. package/dist/cli/{play-IMAD7QTV.js → play-HA4RGX7T.js} +336 -336
  98. package/dist/cli/{play-PD45RNYZ.mjs → play-ZTRWUODW.mjs} +19 -19
  99. package/dist/cli/{providers-WONHPTRG.js → providers-DXMKWBZN.js} +9 -9
  100. package/dist/cli/{providers-DYKHG7NV.mjs → providers-FAKWWJE2.mjs} +6 -6
  101. package/dist/cli/{quickstart-6AAFULGC.js → quickstart-MA74UPNI.js} +6 -6
  102. package/dist/cli/{quickstart-5QPGHLEX.mjs → quickstart-YWGBTW77.mjs} +4 -4
  103. package/dist/cli/{run-WOW7QO3W.js → run-4DXSGXRB.js} +44 -44
  104. package/dist/cli/{run-4K6ZU7H7.mjs → run-QHCYMSBP.mjs} +23 -23
  105. package/dist/cli/{search-CKVFWVXQ.mjs → search-N4ZOK5XX.mjs} +7 -7
  106. package/dist/cli/search-V765JH2H.js +32 -0
  107. package/dist/cli/{search-output-B5QE7ZNK.js → search-output-D5VAC52B.js} +6 -6
  108. package/dist/cli/{search-output-WWB25JWA.mjs → search-output-F2OYLVK2.mjs} +4 -4
  109. package/dist/cli/{secrets-WKIMR346.js → secrets-3KETOTDS.js} +15 -15
  110. package/dist/cli/{secrets-SVZB6TSW.mjs → secrets-LD4FVAQI.mjs} +6 -6
  111. package/dist/cli/{sessions-P3QENG6T.mjs → sessions-LPLI4Z4O.mjs} +6 -6
  112. package/dist/cli/sessions-XC65OMDS.js +23 -0
  113. package/dist/cli/{settings-V5ABL6D2.mjs → settings-NCGPJG3Z.mjs} +12 -12
  114. package/dist/cli/{settings-UIFRGJW3.js → settings-NFBTCOMB.js} +85 -85
  115. package/dist/cli/{setup-A5MIJU3S.js → setup-ATBSUSH4.js} +49 -49
  116. package/dist/cli/{setup-E67NJTEF.mjs → setup-NH6MRYXZ.mjs} +9 -9
  117. package/dist/cli/skills-4NQBTGOL.js +37 -0
  118. package/dist/cli/{skills-WLHOQ4DO.mjs → skills-ITPBPIXD.mjs} +7 -7
  119. package/dist/cli/{tools-EG4KL3BB.mjs → tools-2XZPR65V.mjs} +17 -17
  120. package/dist/cli/tools-ZVOFATX2.js +57 -0
  121. package/dist/cli/update-QME3KPOP.js +37 -0
  122. package/dist/cli/{update-IPFBE6SA.mjs → update-VFB22FWO.mjs} +9 -9
  123. package/dist/cli/{views-XDN6SEWY.mjs → views-MRN3HWTG.mjs} +6 -6
  124. package/dist/cli/{views-ZIBY2RVB.js → views-WJUZOQM2.js} +21 -21
  125. package/dist/cli/{workflow-O2XPMOVL.mjs → workflow-A6P7YV5W.mjs} +42 -18
  126. package/dist/cli/{workflow-BLKPBRBT.js → workflow-Q4JFBTVH.js} +53 -29
  127. package/dist/index.js +9 -9
  128. package/dist/index.mjs +6 -6
  129. package/dist/install-integrity.json +116 -116
  130. package/dist/release.d.mts +1 -1
  131. package/dist/release.d.ts +1 -1
  132. package/dist/release.js +2 -2
  133. package/dist/release.mjs +1 -1
  134. package/dist/server.js +5 -5
  135. package/dist/server.mjs +3 -3
  136. package/package.json +1 -1
  137. package/dist/cli/auth-ALBG5LF4.js +0 -44
  138. package/dist/cli/concurrent-runs-help-E3YMAO5Q.js +0 -22
  139. package/dist/cli/describe-QB5T47B3.js +0 -50
  140. package/dist/cli/git-4FXTWHXT.js +0 -26
  141. package/dist/cli/search-YZIJS7QU.js +0 -32
  142. package/dist/cli/sessions-VQPGPXMU.js +0 -23
  143. package/dist/cli/skills-GTBK33MV.js +0 -37
  144. package/dist/cli/tools-GPAIPRPQ.js +0 -57
  145. package/dist/cli/update-QLWS32WR.js +0 -37
@@ -1,26 +1,26 @@
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 _chunkNJGXYYHNjs = require('./chunk-NJGXYYHN.js');
3
+ var _chunkQGOHEJVJjs = require('./chunk-QGOHEJVJ.js');
4
4
 
5
5
 
6
6
  var _chunkMOZDEYQCjs = require('./chunk-MOZDEYQC.js');
7
7
  require('./chunk-BVXIGOBZ.js');
8
- require('./chunk-YPP436NM.js');
8
+ require('./chunk-MEAWK5G7.js');
9
9
 
10
10
 
11
- var _chunkMRSYC74Tjs = require('./chunk-MRSYC74T.js');
11
+ var _chunkMFPHCUHKjs = require('./chunk-MFPHCUHK.js');
12
12
 
13
13
 
14
14
 
15
15
 
16
16
 
17
- var _chunkEGH4JNJPjs = require('./chunk-EGH4JNJP.js');
17
+ var _chunk6GYGMWQVjs = require('./chunk-6GYGMWQV.js');
18
18
  require('./chunk-4WAM6TLD.js');
19
19
  require('./chunk-MJTVX4QK.js');
20
20
  require('./chunk-PMH4GLMD.js');
21
21
 
22
22
 
23
- var _chunkY36SQMSNjs = require('./chunk-Y36SQMSN.js');
23
+ var _chunkLHD3HOYNjs = require('./chunk-LHD3HOYN.js');
24
24
 
25
25
 
26
26
  var _chunkTJCENACZjs = require('./chunk-TJCENACZ.js');
@@ -37,12 +37,12 @@ var _chunk2M3VVGMZjs = require('./chunk-2M3VVGMZ.js');
37
37
 
38
38
 
39
39
 
40
- var _chunkVA35T3AFjs = require('./chunk-VA35T3AF.js');
40
+ var _chunkPULU5YGXjs = require('./chunk-PULU5YGX.js');
41
41
 
42
42
 
43
43
 
44
- var _chunk5436ZJPHjs = require('./chunk-5436ZJPH.js');
45
- require('./chunk-ZH23XGJO.js');
44
+ var _chunkVXDKL434js = require('./chunk-VXDKL434.js');
45
+ require('./chunk-H4BYWEV5.js');
46
46
 
47
47
 
48
48
 
@@ -52,7 +52,7 @@ require('./chunk-XNYIZMNQ.js');
52
52
 
53
53
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
54
54
  require('./chunk-CFJFUVX2.js');
55
- require('./chunk-FBSPHBAF.js');
55
+ require('./chunk-VH45GV3T.js');
56
56
  require('./chunk-OG64RBAC.js');
57
57
  require('./chunk-COGTRVWW.js');
58
58
 
@@ -148,7 +148,7 @@ function reportBillingFailure(failure, options) {
148
148
  if (failure.next) {
149
149
  textLines.push(`Next: ${failure.next}`);
150
150
  }
151
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
151
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
152
152
  {
153
153
  ok: false,
154
154
  exitCode: failure.exitCode,
@@ -169,7 +169,7 @@ function parseTopUpCredits(raw) {
169
169
  return parsed;
170
170
  }
171
171
  function topUpIdempotencyKey(raw) {
172
- return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkEGH4JNJPjs.requireBillingIdempotencyKey.call(void 0, raw);
172
+ return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunk6GYGMWQVjs.requireBillingIdempotencyKey.call(void 0, raw);
173
173
  }
174
174
  function targetBillingIdempotencyKey(raw) {
175
175
  return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${_crypto.randomUUID.call(void 0, )}`;
@@ -390,7 +390,7 @@ function defaultLedgerExportPath() {
390
390
  );
391
391
  }
392
392
  async function handleBalance(options) {
393
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
393
+ const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
394
394
  const payload = await http.get(
395
395
  "/api/v2/billing/balance"
396
396
  );
@@ -480,7 +480,7 @@ async function handleBalance(options) {
480
480
  ...options.verbose ? detail : [],
481
481
  ...lines.slice(1)
482
482
  ];
483
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
483
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
484
484
  {
485
485
  ...payload,
486
486
  ...recovery ? { recovery } : {},
@@ -516,7 +516,7 @@ async function handleUsageEvents(options) {
516
516
  );
517
517
  return;
518
518
  }
519
- const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
519
+ const client = new (0, _chunkMFPHCUHKjs.DeeplineClient)();
520
520
  let payload;
521
521
  try {
522
522
  payload = await client.billing.usageEvents({
@@ -547,7 +547,7 @@ async function handleUsageEvents(options) {
547
547
  ),
548
548
  ...nextPage ? [`Next page: ${nextPage}`] : []
549
549
  ];
550
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
550
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
551
551
  {
552
552
  ...payload,
553
553
  next: { page: nextPage },
@@ -569,7 +569,7 @@ async function handleUsage(options) {
569
569
  return;
570
570
  }
571
571
  if (options.events) return handleUsageEvents(options);
572
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
572
+ const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
573
573
  const params = new URLSearchParams();
574
574
  if (options.requestId !== void 0) {
575
575
  const requestId = options.requestId.trim();
@@ -653,7 +653,7 @@ async function handleUsage(options) {
653
653
  "No continuation is available for this view. Use deepline billing ledger export all for the full ledger."
654
654
  ] : []
655
655
  ];
656
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
656
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
657
657
  {
658
658
  ...payload,
659
659
  recent: {
@@ -667,7 +667,7 @@ async function handleUsage(options) {
667
667
  );
668
668
  }
669
669
  async function handleLimit(options) {
670
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
670
+ const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
671
671
  const payload = await http.get(
672
672
  "/api/v2/billing/limit"
673
673
  );
@@ -675,7 +675,7 @@ async function handleLimit(options) {
675
675
  `Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
676
676
  "Enforcement: checked before new calls; in-flight work can exceed the cap."
677
677
  ] : ["Monthly usage cap: off"];
678
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
678
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
679
679
  {
680
680
  ...payload,
681
681
  render: { sections: [{ title: "billing limit", lines }] }
@@ -684,12 +684,12 @@ async function handleLimit(options) {
684
684
  );
685
685
  }
686
686
  async function handleSetLimit(credits, options) {
687
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
687
+ const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
688
688
  const payload = await http.request("/api/v2/billing/limit", {
689
689
  method: "PUT",
690
690
  body: { monthly_credits_limit: Number.parseInt(credits, 10) }
691
691
  });
692
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
692
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
693
693
  {
694
694
  ...payload,
695
695
  render: {
@@ -705,11 +705,11 @@ async function handleSetLimit(credits, options) {
705
705
  );
706
706
  }
707
707
  async function handleLimitOff(options) {
708
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
708
+ const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
709
709
  const payload = await http.request("/api/v2/billing/limit", {
710
710
  method: "DELETE"
711
711
  });
712
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
712
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
713
713
  {
714
714
  ...payload,
715
715
  render: {
@@ -729,7 +729,7 @@ async function exportLedger(http, outputPath, options) {
729
729
  let initialized = false;
730
730
  let pageNumber = 0;
731
731
  console.error(`Exporting billing ledger to ${outputPath}`);
732
- for await (const entries of _chunkEGH4JNJPjs.iterateCursorPages.call(void 0, async (cursor) => {
732
+ for await (const entries of _chunk6GYGMWQVjs.iterateCursorPages.call(void 0, async (cursor) => {
733
733
  pageNumber += 1;
734
734
  console.error(
735
735
  `Fetching page ${pageNumber}; ${summary.row_count} rows written.`
@@ -768,7 +768,7 @@ async function exportLedger(http, outputPath, options) {
768
768
  return summary;
769
769
  }
770
770
  async function handleHistory(options) {
771
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
771
+ const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
772
772
  const windows = {
773
773
  "1d": 86400,
774
774
  "1w": 604800,
@@ -780,10 +780,10 @@ async function handleHistory(options) {
780
780
  process.cwd(),
781
781
  "deepline",
782
782
  "data",
783
- _chunkVA35T3AFjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
783
+ _chunkPULU5YGXjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
784
784
  );
785
785
  const summary = await exportLedger(http, outputPath, { sinceAt });
786
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
786
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
787
787
  {
788
788
  output_path: outputPath,
789
789
  row_count: summary.row_count,
@@ -820,14 +820,14 @@ async function handleLedgerExportAll(options) {
820
820
  );
821
821
  return;
822
822
  }
823
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
823
+ const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
824
824
  const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
825
825
  const summary = await exportLedger(http, outputPath, {
826
826
  sinceAt,
827
827
  runId: options.runId,
828
828
  operation: options.operation
829
829
  });
830
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
830
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
831
831
  {
832
832
  output_path: outputPath,
833
833
  row_count: summary.row_count,
@@ -869,7 +869,7 @@ function targetPlanLine(plan) {
869
869
  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"}`;
870
870
  }
871
871
  async function handlePlans(options) {
872
- const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
872
+ const client = new (0, _chunkMFPHCUHKjs.DeeplineClient)();
873
873
  const payload = await client.billing.targetPlans(
874
874
  options.promoCode ? { promoCode: options.promoCode } : void 0
875
875
  );
@@ -895,8 +895,8 @@ async function handlePlans(options) {
895
895
  ...plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...plans.map(targetPlanLine)],
896
896
  _optionalChain([promo, 'optionalAccess', _15 => _15.status]) === "applied" ? `Change plan: deepline billing change-plan <plan_sku>, then enter promo code ${promo.code} in the browser` : "Change plan: deepline billing change-plan <plan_sku>"
897
897
  ];
898
- const legacyPayload = _chunkVA35T3AFjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
899
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
898
+ const legacyPayload = _chunkPULU5YGXjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
899
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
900
900
  {
901
901
  ..._nullishCoalesce(legacyPayload, () => ( payload)),
902
902
  ...legacyPayload ? { target_billing: payload } : {},
@@ -906,7 +906,7 @@ async function handlePlans(options) {
906
906
  );
907
907
  }
908
908
  async function handleSubscribe(planVersionId, options) {
909
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
909
+ const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
910
910
  const payload = await http.request(
911
911
  "/api/v2/billing/subscription/checkout",
912
912
  {
@@ -915,8 +915,8 @@ async function handleSubscribe(planVersionId, options) {
915
915
  }
916
916
  );
917
917
  const url = String(payload.checkout_url || "");
918
- if (!options.json && options.open !== false && url) _chunkVA35T3AFjs.openInBrowser.call(void 0, url);
919
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
918
+ if (!options.json && options.open !== false && url) _chunkPULU5YGXjs.openInBrowser.call(void 0, url);
919
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
920
920
  {
921
921
  ...payload,
922
922
  render: {
@@ -932,7 +932,7 @@ async function handleSubscribe(planVersionId, options) {
932
932
  );
933
933
  }
934
934
  async function handleSubscriptionStatus(options) {
935
- const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
935
+ const client = new (0, _chunkMFPHCUHKjs.DeeplineClient)();
936
936
  const payload = await client.billing.subscription.status();
937
937
  const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
938
938
  const lines = [
@@ -952,7 +952,7 @@ async function handleSubscriptionStatus(options) {
952
952
  ],
953
953
  `Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
954
954
  ];
955
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
955
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
956
956
  {
957
957
  ...payload,
958
958
  render: { sections: [{ title: "billing subscription", lines }] }
@@ -961,7 +961,7 @@ async function handleSubscriptionStatus(options) {
961
961
  );
962
962
  }
963
963
  async function handleSubscriptionCancel(options) {
964
- const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
964
+ const client = new (0, _chunkMFPHCUHKjs.DeeplineClient)();
965
965
  const action = options.undo ? "undo_cancel" : "cancel";
966
966
  if (options.dryRun) {
967
967
  const status = await client.billing.subscription.status();
@@ -978,7 +978,7 @@ async function handleSubscriptionCancel(options) {
978
978
  return;
979
979
  }
980
980
  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.";
981
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
981
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
982
982
  {
983
983
  ok: true,
984
984
  dry_run: true,
@@ -1034,7 +1034,7 @@ async function handleSubscriptionCancel(options) {
1034
1034
  "Remaining credits are yours to keep \u2014 cancellation never removes credits.",
1035
1035
  "Undo with: deepline billing subscription cancel --undo"
1036
1036
  ];
1037
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1037
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1038
1038
  {
1039
1039
  ok: true,
1040
1040
  ...result,
@@ -1088,7 +1088,7 @@ async function handleInvoices(options) {
1088
1088
  return;
1089
1089
  }
1090
1090
  }
1091
- const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
1091
+ const client = new (0, _chunkMFPHCUHKjs.DeeplineClient)();
1092
1092
  let payload;
1093
1093
  try {
1094
1094
  payload = await client.billing.invoices.list(
@@ -1117,7 +1117,7 @@ async function handleInvoices(options) {
1117
1117
  url: entry.url
1118
1118
  }))
1119
1119
  } : { ...payload, count: entries.length };
1120
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1120
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1121
1121
  {
1122
1122
  ...envelope,
1123
1123
  render: { sections: [{ title: "billing invoices", lines }] }
@@ -1126,7 +1126,7 @@ async function handleInvoices(options) {
1126
1126
  );
1127
1127
  }
1128
1128
  async function handleCheckout(options) {
1129
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
1129
+ const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
1130
1130
  const payload = await http.post(
1131
1131
  "/api/v2/billing/checkout",
1132
1132
  {
@@ -1136,8 +1136,8 @@ async function handleCheckout(options) {
1136
1136
  }
1137
1137
  );
1138
1138
  const url = String(payload.url || payload.checkout_url || "");
1139
- if (!options.json && !options.noOpen && url) _chunkVA35T3AFjs.openInBrowser.call(void 0, url);
1140
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1139
+ if (!options.json && !options.noOpen && url) _chunkPULU5YGXjs.openInBrowser.call(void 0, url);
1140
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1141
1141
  {
1142
1142
  ...payload,
1143
1143
  render: {
@@ -1182,7 +1182,7 @@ async function handleTopUp(creditsRaw, options) {
1182
1182
  return;
1183
1183
  }
1184
1184
  if (options.dryRun) {
1185
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1185
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1186
1186
  {
1187
1187
  ok: true,
1188
1188
  dry_run: true,
@@ -1212,7 +1212,7 @@ async function handleTopUp(creditsRaw, options) {
1212
1212
  );
1213
1213
  return;
1214
1214
  }
1215
- const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
1215
+ const client = new (0, _chunkMFPHCUHKjs.DeeplineClient)();
1216
1216
  let payload;
1217
1217
  try {
1218
1218
  payload = await client.billing.topUpWithReceipt({
@@ -1229,7 +1229,7 @@ async function handleTopUp(creditsRaw, options) {
1229
1229
  return;
1230
1230
  }
1231
1231
  if (payload.status === "pending") {
1232
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1232
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1233
1233
  {
1234
1234
  ok: true,
1235
1235
  ...payload,
@@ -1293,17 +1293,17 @@ async function handleTopUp(creditsRaw, options) {
1293
1293
  ]
1294
1294
  }
1295
1295
  };
1296
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1296
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1297
1297
  json: options.json
1298
1298
  });
1299
1299
  }
1300
1300
  async function handleTargetStatus(options) {
1301
- const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
1301
+ const client = new (0, _chunkMFPHCUHKjs.DeeplineClient)();
1302
1302
  const payload = await client.billing.targetStatus();
1303
1303
  const balanceCommand = "deepline billing balance";
1304
1304
  const recentChargesCommand = "deepline billing usage --limit 5";
1305
1305
  const exactChargeCommand = "deepline billing usage --request-id <job_id>";
1306
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1306
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1307
1307
  {
1308
1308
  ok: true,
1309
1309
  ...payload,
@@ -1341,13 +1341,13 @@ function formatComputeAmount(minutes, credits) {
1341
1341
  return `${time} ${minutes === 1 ? "minute" : "minutes"} (${cost} ${credits === 1 ? "credit" : "credits"})`;
1342
1342
  }
1343
1343
  async function handleIncludedCompute(options) {
1344
- const client = new (0, _chunkMRSYC74Tjs.DeeplineClient)();
1344
+ const client = new (0, _chunkMFPHCUHKjs.DeeplineClient)();
1345
1345
  const payload = options.enable ? await client.billing.enableIncludedCompute({ includeOverage: true }) : await client.billing.includedCompute({ includeOverage: true });
1346
1346
  const rate = _nullishCoalesce(payload.credits_per_minute, () => ( 0));
1347
1347
  const includedCredits = _nullishCoalesce(payload.included_credits_used, () => ( payload.included_minutes_used * rate));
1348
1348
  const includedMinutes = payload.included_credits_used !== void 0 && rate > 0 ? includedCredits / rate : payload.included_minutes_used;
1349
1349
  const overage = payload.overage_credits;
1350
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1350
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1351
1351
  {
1352
1352
  ok: true,
1353
1353
  ...payload,
@@ -1365,7 +1365,7 @@ async function handleIncludedCompute(options) {
1365
1365
  ] : [],
1366
1366
  `Standard sandbox price: ${formatComputeAmount(60, Math.round(rate * 60))}`,
1367
1367
  `Allowance resets: ${payload.period_end_at.slice(0, 10)} (UTC)`,
1368
- _chunkY36SQMSNjs.PLAY_RUNTIME_PRICING_NOTE,
1368
+ _chunkLHD3HOYNjs.PLAY_RUNTIME_PRICING_NOTE,
1369
1369
  _chunkTJCENACZjs.PRICING_PAGE_NOTE
1370
1370
  ] : payload.status === "off" ? [
1371
1371
  ..._optionalChain([payload, 'access', _21 => _21.database, 'optionalAccess', _22 => _22.enabled]) ? [
@@ -1374,7 +1374,7 @@ async function handleIncludedCompute(options) {
1374
1374
  "Included compute: off; Play compute is billed at provider cost.",
1375
1375
  `Allowance if enabled: ${formatComputeAmount(payload.plan.included_minutes, payload.plan.included_minutes * payload.plan.credits_per_minute)} per month`,
1376
1376
  `Standard sandbox price if enabled: ${formatComputeAmount(60, Math.round(payload.plan.credits_per_minute * 60))}`,
1377
- _chunkY36SQMSNjs.PLAY_RUNTIME_PRICING_NOTE,
1377
+ _chunkLHD3HOYNjs.PLAY_RUNTIME_PRICING_NOTE,
1378
1378
  "Run deepline billing compute --enable to turn on included compute. It cannot be turned off again.",
1379
1379
  _chunkTJCENACZjs.PRICING_PAGE_NOTE
1380
1380
  ] : ["Included compute is not available for this org yet."]
@@ -1386,8 +1386,8 @@ async function handleIncludedCompute(options) {
1386
1386
  );
1387
1387
  }
1388
1388
  async function handleEntitlements(options) {
1389
- const payload = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.entitlements();
1390
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1389
+ const payload = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.entitlements();
1390
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1391
1391
  {
1392
1392
  ok: true,
1393
1393
  ...payload,
@@ -1397,7 +1397,7 @@ async function handleEntitlements(options) {
1397
1397
  title: "billing entitlements",
1398
1398
  lines: [
1399
1399
  `Plan: ${_nullishCoalesce(_optionalChain([payload, 'access', _23 => _23.plan, 'optionalAccess', _24 => _24.name]), () => ( "Legacy billing"))}`,
1400
- ..._chunkNJGXYYHNjs.concurrentRunsLine.call(void 0, payload) ? [`Concurrent runs: ${_chunkNJGXYYHNjs.concurrentRunsLine.call(void 0, payload)}`] : [],
1400
+ ..._chunkQGOHEJVJjs.concurrentRunsLine.call(void 0, payload) ? [`Concurrent runs: ${_chunkQGOHEJVJjs.concurrentRunsLine.call(void 0, payload)}`] : [],
1401
1401
  ...Object.entries(payload.benefits).flatMap(
1402
1402
  ([key, grant]) => "value" in grant ? [
1403
1403
  `${key}: ${grant.status}, ${JSON.stringify(grant.value)}${grant.expiresAt === void 0 ? "" : `, expires ${new Date(grant.expiresAt).toISOString()}`}`
@@ -1422,7 +1422,7 @@ async function handleEntitlements(options) {
1422
1422
  );
1423
1423
  }
1424
1424
  async function handleAutoRechargeStatus(options) {
1425
- const payload = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.autoRecharge.get();
1425
+ const payload = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.autoRecharge.get();
1426
1426
  const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
1427
1427
  const lines = [
1428
1428
  `State: ${state}`,
@@ -1432,7 +1432,7 @@ async function handleAutoRechargeStatus(options) {
1432
1432
  `Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
1433
1433
  ] : []
1434
1434
  ];
1435
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1435
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1436
1436
  {
1437
1437
  ok: true,
1438
1438
  ...payload,
@@ -1481,7 +1481,7 @@ async function handleAutoRechargeSet(options) {
1481
1481
  }
1482
1482
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1483
1483
  if (options.dryRun) {
1484
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1484
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1485
1485
  {
1486
1486
  ok: true,
1487
1487
  dry_run: true,
@@ -1502,7 +1502,7 @@ async function handleAutoRechargeSet(options) {
1502
1502
  );
1503
1503
  return;
1504
1504
  }
1505
- const payload = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.autoRecharge.update({
1505
+ const payload = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.autoRecharge.update({
1506
1506
  enabled: true,
1507
1507
  thresholdCredits,
1508
1508
  refillToCredits,
@@ -1510,7 +1510,7 @@ async function handleAutoRechargeSet(options) {
1510
1510
  ...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
1511
1511
  idempotencyKey
1512
1512
  });
1513
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1513
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1514
1514
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1515
1515
  { json: options.json }
1516
1516
  );
@@ -1518,7 +1518,7 @@ async function handleAutoRechargeSet(options) {
1518
1518
  async function handleAutoRechargeOff(options) {
1519
1519
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1520
1520
  if (options.dryRun) {
1521
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1521
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1522
1522
  {
1523
1523
  ok: true,
1524
1524
  dry_run: true,
@@ -1533,11 +1533,11 @@ async function handleAutoRechargeOff(options) {
1533
1533
  );
1534
1534
  return;
1535
1535
  }
1536
- const payload = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.autoRecharge.update({
1536
+ const payload = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.autoRecharge.update({
1537
1537
  enabled: false,
1538
1538
  idempotencyKey
1539
1539
  });
1540
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1540
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1541
1541
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1542
1542
  { json: options.json }
1543
1543
  );
@@ -1563,18 +1563,18 @@ function savedCardLines(cards, hasMore) {
1563
1563
  async function handleCardsList(options) {
1564
1564
  const limit = options.limit === void 0 ? void 0 : Number(options.limit);
1565
1565
  if (limit !== void 0 && (!Number.isInteger(limit) || limit < 1 || limit > 100)) {
1566
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1566
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1567
1567
  { ok: false, error: "--limit must be a whole number from 1 to 100." },
1568
1568
  { json: options.json }
1569
1569
  );
1570
1570
  process.exitCode = 1;
1571
1571
  return;
1572
1572
  }
1573
- const payload = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.cards.list({
1573
+ const payload = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.cards.list({
1574
1574
  ...limit !== void 0 ? { limit } : {},
1575
1575
  ...options.cursor ? { cursor: options.cursor } : {}
1576
1576
  });
1577
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1577
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1578
1578
  {
1579
1579
  ok: true,
1580
1580
  ...payload,
@@ -1592,8 +1592,8 @@ async function handleCardsList(options) {
1592
1592
  }
1593
1593
  async function handleCardsAdd(options) {
1594
1594
  const makeDefault = options.makeDefault === true;
1595
- const payload = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.cards.add({ makeDefault });
1596
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1595
+ const payload = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.cards.add({ makeDefault });
1596
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1597
1597
  {
1598
1598
  ok: true,
1599
1599
  make_default: makeDefault,
@@ -1618,7 +1618,7 @@ async function handleCardChange(action, cardId, options) {
1618
1618
  const changeId = _nullishCoalesce(options.changeId, () => ( _crypto.randomUUID.call(void 0, )));
1619
1619
  const path = `/api/v2/billing/payment-methods/${action}`;
1620
1620
  if (options.dryRun) {
1621
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1621
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1622
1622
  {
1623
1623
  ok: true,
1624
1624
  dry_run: true,
@@ -1633,9 +1633,9 @@ async function handleCardChange(action, cardId, options) {
1633
1633
  );
1634
1634
  return;
1635
1635
  }
1636
- const cards = new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.cards;
1636
+ const cards = new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.cards;
1637
1637
  const payload = action === "default" ? await cards.setDefault({ cardId, changeId }) : await cards.remove({ cardId, changeId });
1638
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1638
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1639
1639
  {
1640
1640
  ...payload,
1641
1641
  render: {
@@ -1669,11 +1669,11 @@ async function handleBuyCredits(creditsRaw, options) {
1669
1669
  return;
1670
1670
  }
1671
1671
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1672
- const payload = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.purchaseCredits({
1672
+ const payload = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.purchaseCredits({
1673
1673
  credits,
1674
1674
  idempotencyKey
1675
1675
  });
1676
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1676
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1677
1677
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1678
1678
  { json: options.json }
1679
1679
  );
@@ -1709,7 +1709,7 @@ async function handleTopUpRecover(creditsRaw, options) {
1709
1709
  return;
1710
1710
  }
1711
1711
  if (options.dryRun) {
1712
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1712
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1713
1713
  {
1714
1714
  ok: true,
1715
1715
  dry_run: true,
@@ -1722,18 +1722,18 @@ async function handleTopUpRecover(creditsRaw, options) {
1722
1722
  );
1723
1723
  return;
1724
1724
  }
1725
- const payload = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.recoverCreditPurchase({
1725
+ const payload = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.recoverCreditPurchase({
1726
1726
  credits,
1727
1727
  orgId: options.orgId,
1728
1728
  idempotencyKey: options.idempotencyKey
1729
1729
  });
1730
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1730
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1731
1731
  { ok: true, idempotency_key: options.idempotencyKey, ...payload },
1732
1732
  { json: options.json }
1733
1733
  );
1734
1734
  }
1735
1735
  async function handleTargetPlan(planSku, options) {
1736
- const targetPlanSku = planSku === void 0 ? void 0 : [..._chunkEGH4JNJPjs.PUBLIC_PLAN_SKUS, ...COMPATIBLE_PLAN_SKUS].find(
1736
+ const targetPlanSku = planSku === void 0 ? void 0 : [..._chunk6GYGMWQVjs.PUBLIC_PLAN_SKUS, ...COMPATIBLE_PLAN_SKUS].find(
1737
1737
  (sku) => sku === planSku
1738
1738
  );
1739
1739
  if (planSku !== void 0 && !targetPlanSku) {
@@ -1741,20 +1741,20 @@ async function handleTargetPlan(planSku, options) {
1741
1741
  {
1742
1742
  exitCode: 2,
1743
1743
  code: "INVALID_PLAN",
1744
- message: `Plan must be one of ${_chunkEGH4JNJPjs.PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
1744
+ message: `Plan must be one of ${_chunk6GYGMWQVjs.PUBLIC_PLAN_SKUS.join(", ")}. Run deepline billing plans to see workspace availability.`
1745
1745
  },
1746
1746
  options
1747
1747
  );
1748
1748
  return;
1749
1749
  }
1750
- const baseUrl = _chunk5436ZJPHjs.resolveBaseUrlOnly.call(void 0, );
1750
+ const baseUrl = _chunkVXDKL434js.resolveBaseUrlOnly.call(void 0, );
1751
1751
  const link = _chunkMOZDEYQCjs.buildDashboardUrl.call(void 0,
1752
1752
  baseUrl,
1753
- targetPlanSku ? `/dashboard/billing?plan=${encodeURIComponent(_chunkEGH4JNJPjs.resolvePublicPlanSku.call(void 0, targetPlanSku))}` : "/dashboard/billing?plan",
1754
- _chunk5436ZJPHjs.resolveCliDashboardOrgId.call(void 0, baseUrl)
1753
+ targetPlanSku ? `/dashboard/billing?plan=${encodeURIComponent(_chunk6GYGMWQVjs.resolvePublicPlanSku.call(void 0, targetPlanSku))}` : "/dashboard/billing?plan",
1754
+ _chunkVXDKL434js.resolveCliDashboardOrgId.call(void 0, baseUrl)
1755
1755
  );
1756
- if (!options.json && options.open !== false) _chunkVA35T3AFjs.openInBrowser.call(void 0, link);
1757
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1756
+ if (!options.json && options.open !== false) _chunkPULU5YGXjs.openInBrowser.call(void 0, link);
1757
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1758
1758
  {
1759
1759
  ok: true,
1760
1760
  url: link,
@@ -1771,8 +1771,8 @@ async function handleTargetPlan(planSku, options) {
1771
1771
  );
1772
1772
  }
1773
1773
  async function handleBillingDetailsShow(options) {
1774
- const payload = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.getDetails();
1775
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1774
+ const payload = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.getDetails();
1775
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1776
1776
  }
1777
1777
  async function handleBillingDetailsSet(options) {
1778
1778
  const separator = _nullishCoalesce(_optionalChain([options, 'access', _28 => _28.taxId, 'optionalAccess', _29 => _29.indexOf, 'call', _30 => _30(":")]), () => ( -1));
@@ -1789,7 +1789,7 @@ async function handleBillingDetailsSet(options) {
1789
1789
  );
1790
1790
  return;
1791
1791
  }
1792
- const payload = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.setDetails({
1792
+ const payload = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.setDetails({
1793
1793
  ...options.name !== void 0 ? { name: options.name } : {},
1794
1794
  ...options.line1 !== void 0 ? {
1795
1795
  address: {
@@ -1808,28 +1808,28 @@ async function handleBillingDetailsSet(options) {
1808
1808
  }
1809
1809
  } : {}
1810
1810
  });
1811
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1811
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1812
1812
  }
1813
1813
  async function handleTargetPlanCancellation(options) {
1814
1814
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1815
- const payload = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.transitionPlan({
1815
+ const payload = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.transitionPlan({
1816
1816
  action: options.undo ? "undo_cancel" : "cancel",
1817
1817
  idempotencyKey
1818
1818
  });
1819
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1819
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1820
1820
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1821
1821
  { json: options.json }
1822
1822
  );
1823
1823
  }
1824
1824
  async function handleTargetPortal(options) {
1825
- const payload = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.portalSession(
1825
+ const payload = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.portalSession(
1826
1826
  options.billingAddress ? { flow: "customer_update" } : void 0
1827
1827
  );
1828
- if (!options.json && !options.noOpen) _chunkVA35T3AFjs.openInBrowser.call(void 0, payload.url);
1829
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1828
+ if (!options.json && !options.noOpen) _chunkPULU5YGXjs.openInBrowser.call(void 0, payload.url);
1829
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1830
1830
  }
1831
1831
  async function handleRedeemCode(code, options) {
1832
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
1832
+ const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
1833
1833
  const payload = await http.post(
1834
1834
  "/api/v2/billing/checkout",
1835
1835
  {
@@ -1837,8 +1837,8 @@ async function handleRedeemCode(code, options) {
1837
1837
  }
1838
1838
  );
1839
1839
  const url = String(payload.url || payload.checkout_url || "");
1840
- if (!options.json && !options.noOpen && url) _chunkVA35T3AFjs.openInBrowser.call(void 0, url);
1841
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1840
+ if (!options.json && !options.noOpen && url) _chunkPULU5YGXjs.openInBrowser.call(void 0, url);
1841
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1842
1842
  {
1843
1843
  ...payload,
1844
1844
  render: {
@@ -1899,14 +1899,14 @@ Examples:
1899
1899
  if (!Number.isSafeInteger(quantity) || quantity <= 0) {
1900
1900
  throw new Error("--quantity must be a positive safe integer.");
1901
1901
  }
1902
- const quote = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.quote({
1902
+ const quote = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.quote({
1903
1903
  quantity,
1904
1904
  sandbox_runtime: {
1905
1905
  timeout: options.sandboxTimeout,
1906
1906
  size: options.sandboxSize
1907
1907
  }
1908
1908
  });
1909
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0, quote, {
1909
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0, quote, {
1910
1910
  json: options.json,
1911
1911
  text: `Sandbox session ceiling: ${quote.maximum_credits} Deepline credits (${quote.quantity} session${quote.quantity === 1 ? "" : "s"}).
1912
1912
  ${quote.explanation}
@@ -1935,9 +1935,9 @@ Examples:
1935
1935
  billing.command("reuse").description(
1936
1936
  "Show recorded reused tool results for this org; no credit estimate."
1937
1937
  ).option("--json", "Return the org reuse summary as JSON").action(async (options) => {
1938
- const { http } = _chunkVA35T3AFjs.getAuthedHttpClient.call(void 0, );
1938
+ const { http } = _chunkPULU5YGXjs.getAuthedHttpClient.call(void 0, );
1939
1939
  const payload = await http.get("/api/v2/usage/reuse");
1940
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1940
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0,
1941
1941
  {
1942
1942
  status: "ok",
1943
1943
  data: payload,
@@ -2178,8 +2178,8 @@ Examples:
2178
2178
  new (0, _commander.Command)("trigger").description(
2179
2179
  "Evaluate capped automatic recharge and resume any pending purchase."
2180
2180
  ).option("--json", "Emit JSON output").action(async (options) => {
2181
- const result = await new (0, _chunkMRSYC74Tjs.DeeplineClient)().billing.autoRecharge.trigger();
2182
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
2181
+ const result = await new (0, _chunkMFPHCUHKjs.DeeplineClient)().billing.autoRecharge.trigger();
2182
+ _chunkPULU5YGXjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
2183
2183
  })
2184
2184
  );
2185
2185
  billing.command("cards").description("List, add, choose the default of, and remove saved cards.").addHelpText(
@@ -2228,7 +2228,7 @@ Examples:
2228
2228
  `
2229
2229
  ).argument(
2230
2230
  "[plan_sku]",
2231
- `${_chunkEGH4JNJPjs.PUBLIC_PLAN_SKUS.join(", ")}. Opens that plan's confirmation; omit to open the plan picker.`
2231
+ `${_chunk6GYGMWQVjs.PUBLIC_PLAN_SKUS.join(", ")}. Opens that plan's confirmation; omit to open the plan picker.`
2232
2232
  ).option("--no-open", "Print the link without opening a browser").option("--json", "Emit JSON output").action(handleTargetPlan);
2233
2233
  const details = billing.command("details").description(
2234
2234
  "Show the company name, billing address and tax ID printed on invoices."