deepline 0.3.348 → 0.3.349

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 (97) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +38 -13
  3. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +1 -1
  4. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +5 -1
  6. package/dist/cli/auth-KGXZELZ3.js +31 -0
  7. package/dist/cli/{auth-ME53BGXD.mjs → auth-MPHXSP64.mjs} +4 -4
  8. package/dist/cli/{billing-EMRJAWNG.js → billing-2KUUGVDZ.js} +73 -73
  9. package/dist/cli/{billing-466LUN65.mjs → billing-K5WCTRBE.mjs} +4 -4
  10. package/dist/cli/{chunk-2G7KMDDI.mjs → chunk-6OVLJLYH.mjs} +1 -1
  11. package/dist/cli/{chunk-KGKPHGDT.js → chunk-6YZDQZE6.js} +2 -2
  12. package/dist/cli/{chunk-CEC3BXRV.mjs → chunk-BEGPN6NG.mjs} +1 -1
  13. package/dist/cli/{chunk-MM6X5ADB.mjs → chunk-BPJTGASI.mjs} +2 -2
  14. package/dist/cli/{chunk-IICCYB57.js → chunk-CRSMVSER.js} +45 -45
  15. package/dist/cli/{chunk-XVWOERRO.mjs → chunk-DOHULRK2.mjs} +4 -4
  16. package/dist/cli/{chunk-U5U2DJ3A.js → chunk-GHYMVZID.js} +60 -60
  17. package/dist/cli/{chunk-5UWZ52IW.mjs → chunk-GXN7DGNL.mjs} +2 -2
  18. package/dist/cli/{chunk-Q37KLZXK.mjs → chunk-HVD3DK7S.mjs} +5 -5
  19. package/dist/cli/{chunk-NX4WJO5P.js → chunk-I4VZKXMX.js} +26 -26
  20. package/dist/cli/{chunk-5HLM2PGK.js → chunk-IHYVEM5Q.js} +8 -8
  21. package/dist/cli/{chunk-GVJPI7MB.js → chunk-JBGR6U57.js} +4 -4
  22. package/dist/cli/{chunk-VWSEZMCR.mjs → chunk-JKJSTQ2I.mjs} +1 -1
  23. package/dist/cli/{chunk-PQZURAHR.js → chunk-KW25DKRC.js} +1 -1
  24. package/dist/cli/{chunk-6NM2IY4B.js → chunk-M42H2BPA.js} +8 -8
  25. package/dist/cli/{chunk-SIE7MILM.js → chunk-MVQ3JAJA.js} +225 -225
  26. package/dist/cli/{chunk-L645OZEB.mjs → chunk-O2FM2MS5.mjs} +6 -6
  27. package/dist/cli/{chunk-4JJN7BDI.js → chunk-QAM2K3CG.js} +48 -48
  28. package/dist/cli/{chunk-EWYHXSV4.js → chunk-QCSLIEMC.js} +6 -6
  29. package/dist/cli/{chunk-5IYFQJHX.js → chunk-S347PHNB.js} +9 -9
  30. package/dist/cli/{chunk-BAJXRIRP.mjs → chunk-SPB6CF4S.mjs} +2 -2
  31. package/dist/cli/{chunk-2JRKH263.js → chunk-TVS3TAFR.js} +15 -15
  32. package/dist/cli/{chunk-CA7RR4UD.mjs → chunk-UE7DS2YV.mjs} +3 -3
  33. package/dist/cli/{chunk-35PLGSH6.mjs → chunk-VDOH4A34.mjs} +1 -1
  34. package/dist/cli/{chunk-UCVFMPAO.mjs → chunk-WOFHIUOT.mjs} +2 -2
  35. package/dist/cli/{chunk-5AZNXX2S.mjs → chunk-ZQ6UF55Y.mjs} +1 -1
  36. package/dist/cli/{client-K3EFOESB.mjs → client-JWKYNLCR.mjs} +3 -3
  37. package/dist/cli/client-O4DPNWVJ.js +20 -0
  38. package/dist/cli/{csv-4UFHUMIR.js → csv-IW75DRFX.js} +12 -12
  39. package/dist/cli/{csv-ZFH725GM.mjs → csv-Y2O237NO.mjs} +3 -3
  40. package/dist/cli/{db-EJHH7IBM.js → db-6Q4VK5T2.js} +29 -29
  41. package/dist/cli/{db-KTJSJ6LJ.mjs → db-JW6UUJXC.mjs} +4 -4
  42. package/dist/cli/{describe-ZQXDXWKZ.js → describe-DI65QISF.js} +15 -15
  43. package/dist/cli/{describe-2GXTRRSJ.mjs → describe-JLN4RTGM.mjs} +8 -8
  44. package/dist/cli/{executions-FEBZXTAI.js → executions-GB2E3BU6.js} +6 -6
  45. package/dist/cli/{executions-ZFEW2R3V.mjs → executions-UK6LA2O5.mjs} +4 -4
  46. package/dist/cli/{feedback-F3LKI327.js → feedback-MJE3A5ON.js} +7 -7
  47. package/dist/cli/{feedback-BYMYIBHU.mjs → feedback-N2KAFS3R.mjs} +3 -3
  48. package/dist/cli/git-A7J4SSRV.js +23 -0
  49. package/dist/cli/{git-A3V2AKGA.mjs → git-NWRJFNII.mjs} +4 -4
  50. package/dist/cli/index.js +79 -79
  51. package/dist/cli/index.mjs +31 -31
  52. package/dist/cli/{legacy-noops-TYXWVLSD.js → legacy-noops-EIO65N6W.js} +7 -7
  53. package/dist/cli/{legacy-noops-IMOMP5NH.mjs → legacy-noops-RR4W2TTE.mjs} +4 -4
  54. package/dist/cli/{monitors-PJWHKJAG.mjs → monitors-HNUCJYET.mjs} +4 -4
  55. package/dist/cli/{monitors-BG2EP4M2.js → monitors-U7NVJDQL.js} +85 -85
  56. package/dist/cli/{org-CVCRHGQF.mjs → org-O7MFRQNG.mjs} +4 -4
  57. package/dist/cli/{org-NM7EROYH.js → org-UBHNTBSB.js} +60 -60
  58. package/dist/cli/{play-ESB6ZDMP.mjs → play-4EIIEFQK.mjs} +7 -7
  59. package/dist/cli/play-IHLNNVPR.js +153 -0
  60. package/dist/cli/{providers-EXITLSJG.js → providers-CJ56HZIT.js} +7 -7
  61. package/dist/cli/{providers-BPDX7QBF.mjs → providers-REJIT7CX.mjs} +4 -4
  62. package/dist/cli/{quickstart-55MBPFRI.js → quickstart-BZUQWQK5.js} +5 -5
  63. package/dist/cli/{quickstart-P5HLSTZB.mjs → quickstart-DQN2LYBC.mjs} +3 -3
  64. package/dist/cli/{search-UJ3KOFZV.mjs → search-35UOMFL2.mjs} +5 -5
  65. package/dist/cli/search-4EPCIU2T.js +26 -0
  66. package/dist/cli/{secrets-TLV2Q4Z5.js → secrets-G4RYNUUD.js} +13 -13
  67. package/dist/cli/{secrets-XJCZM2M2.mjs → secrets-YJB66UXU.mjs} +4 -4
  68. package/dist/cli/{sessions-4XMG3DEE.mjs → sessions-BUWSRUSJ.mjs} +4 -4
  69. package/dist/cli/{sessions-DJWLUVXM.js → sessions-DGS7S6XX.js} +5 -5
  70. package/dist/cli/{settings-3ZGLOANJ.mjs → settings-OCMJXIFD.mjs} +7 -7
  71. package/dist/cli/{settings-KBNCPN3E.js → settings-OTWDMCM5.js} +74 -74
  72. package/dist/cli/{setup-WZZXC7H5.js → setup-MYD34DUG.js} +41 -41
  73. package/dist/cli/{setup-R3UV4ZXN.mjs → setup-UXYFRGIX.mjs} +6 -6
  74. package/dist/cli/skills-7UHWU7XL.js +28 -0
  75. package/dist/cli/{skills-44RXNHZH.mjs → skills-LOWITZWQ.mjs} +4 -4
  76. package/dist/cli/tools-CBYKQ7IY.js +40 -0
  77. package/dist/cli/{tools-NLUPNYR3.mjs → tools-YJHZJLES.mjs} +6 -6
  78. package/dist/cli/update-5M3OKPEU.js +28 -0
  79. package/dist/cli/{update-57GQJRXF.mjs → update-PB5UCW4I.mjs} +6 -6
  80. package/dist/cli/{workflow-XI7LZRTQ.js → workflow-DJYTA2YM.js} +15 -15
  81. package/dist/cli/{workflow-ARCLSKBC.mjs → workflow-IH2FQSYZ.mjs} +5 -5
  82. package/dist/index.js +6 -6
  83. package/dist/index.mjs +3 -3
  84. package/dist/install-integrity.json +74 -74
  85. package/dist/release.d.mts +1 -1
  86. package/dist/release.d.ts +1 -1
  87. package/dist/release.js +2 -2
  88. package/dist/release.mjs +1 -1
  89. package/package.json +1 -1
  90. package/dist/cli/auth-YHS2NN4I.js +0 -31
  91. package/dist/cli/client-F47WSZBF.js +0 -20
  92. package/dist/cli/git-PWHYGNBR.js +0 -23
  93. package/dist/cli/play-MYWKV6MH.js +0 -153
  94. package/dist/cli/search-2JFDCWWK.js +0 -26
  95. package/dist/cli/skills-52WTBX7A.js +0 -28
  96. package/dist/cli/tools-4ESTBMSN.js +0 -40
  97. package/dist/cli/update-V2FZCYNP.js +0 -28
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk5IYFQJHXjs = require('./chunk-5IYFQJHX.js');
5
+ var _chunkS347PHNBjs = require('./chunk-S347PHNB.js');
6
6
  require('./chunk-LA46MMTL.js');
7
7
 
8
8
 
@@ -10,13 +10,13 @@ require('./chunk-LA46MMTL.js');
10
10
 
11
11
 
12
12
 
13
- var _chunkEWYHXSV4js = require('./chunk-EWYHXSV4.js');
13
+ var _chunkQCSLIEMCjs = require('./chunk-QCSLIEMC.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkGVJPI7MBjs = require('./chunk-GVJPI7MB.js');
17
+ var _chunkJBGR6U57js = require('./chunk-JBGR6U57.js');
18
18
  require('./chunk-XNYIZMNQ.js');
19
- require('./chunk-PQZURAHR.js');
19
+ require('./chunk-KW25DKRC.js');
20
20
  require('./chunk-S6R3OX7B.js');
21
21
 
22
22
 
@@ -35,7 +35,7 @@ var SUBSCRIPTION_CANCEL_PATH = "/api/v2/billing/subscription/cancel";
35
35
  var BILLING_TOP_UP_PATH = "/api/v2/billing/top-up";
36
36
  var DEFAULT_BALANCE_RECOVERY_CREDITS = 100;
37
37
  function billingFailureFromError(error, options) {
38
- if (error instanceof _chunkGVJPI7MBjs.AuthError) {
38
+ if (error instanceof _chunkJBGR6U57js.AuthError) {
39
39
  return {
40
40
  exitCode: 3,
41
41
  code: "AUTH_ERROR",
@@ -69,7 +69,7 @@ function reportBillingFailure(failure, options) {
69
69
  if (failure.next) {
70
70
  textLines.push(`Next: ${failure.next}`);
71
71
  }
72
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
72
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
73
73
  {
74
74
  ok: false,
75
75
  exitCode: failure.exitCode,
@@ -90,7 +90,7 @@ function parseTopUpCredits(raw) {
90
90
  return parsed;
91
91
  }
92
92
  function topUpIdempotencyKey(raw) {
93
- return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunk5IYFQJHXjs.requireBillingIdempotencyKey.call(void 0, raw);
93
+ return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkS347PHNBjs.requireBillingIdempotencyKey.call(void 0, raw);
94
94
  }
95
95
  function targetBillingIdempotencyKey(raw) {
96
96
  return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${_crypto.randomUUID.call(void 0, )}`;
@@ -127,7 +127,7 @@ function apiErrorCode(error) {
127
127
  return _nullishCoalesce(error.code, () => ( "BILLING_API_ERROR"));
128
128
  }
129
129
  function billingTopUpFailureFromError(error, input) {
130
- if (error instanceof _chunkGVJPI7MBjs.AuthError || error instanceof _chunkGVJPI7MBjs.ConfigError) {
130
+ if (error instanceof _chunkJBGR6U57js.AuthError || error instanceof _chunkJBGR6U57js.ConfigError) {
131
131
  return {
132
132
  exitCode: 3,
133
133
  code: "AUTH_ERROR",
@@ -296,7 +296,7 @@ function defaultLedgerExportPath() {
296
296
  );
297
297
  }
298
298
  async function handleBalance(options) {
299
- const { http } = _chunkEWYHXSV4js.getAuthedHttpClient.call(void 0, );
299
+ const { http } = _chunkQCSLIEMCjs.getAuthedHttpClient.call(void 0, );
300
300
  const payload = await http.get(
301
301
  "/api/v2/billing/balance"
302
302
  );
@@ -364,7 +364,7 @@ async function handleBalance(options) {
364
364
  ...options.verbose ? detail : [],
365
365
  ...lines.slice(1)
366
366
  ];
367
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
367
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
368
368
  {
369
369
  ...payload,
370
370
  ...recovery ? { recovery } : {},
@@ -388,7 +388,7 @@ function quoteShellArgument(value) {
388
388
  return `'${value.replace(/'/g, `'\\''`)}'`;
389
389
  }
390
390
  async function handleUsage(options) {
391
- const { http } = _chunkEWYHXSV4js.getAuthedHttpClient.call(void 0, );
391
+ const { http } = _chunkQCSLIEMCjs.getAuthedHttpClient.call(void 0, );
392
392
  const params = new URLSearchParams();
393
393
  if (options.requestId !== void 0) {
394
394
  const requestId = options.requestId.trim();
@@ -469,7 +469,7 @@ async function handleUsage(options) {
469
469
  "No continuation is available for this view. Use deepline billing ledger export all --json for the full ledger."
470
470
  ] : []
471
471
  ];
472
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
472
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
473
473
  {
474
474
  ...payload,
475
475
  recent: {
@@ -483,7 +483,7 @@ async function handleUsage(options) {
483
483
  );
484
484
  }
485
485
  async function handleLimit(options) {
486
- const { http } = _chunkEWYHXSV4js.getAuthedHttpClient.call(void 0, );
486
+ const { http } = _chunkQCSLIEMCjs.getAuthedHttpClient.call(void 0, );
487
487
  const payload = await http.get(
488
488
  "/api/v2/billing/limit"
489
489
  );
@@ -491,7 +491,7 @@ async function handleLimit(options) {
491
491
  `Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
492
492
  "Enforcement: checked before new calls; in-flight work can exceed the cap."
493
493
  ] : ["Monthly usage cap: off"];
494
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
494
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
495
495
  {
496
496
  ...payload,
497
497
  render: { sections: [{ title: "billing limit", lines }] }
@@ -500,12 +500,12 @@ async function handleLimit(options) {
500
500
  );
501
501
  }
502
502
  async function handleSetLimit(credits, options) {
503
- const { http } = _chunkEWYHXSV4js.getAuthedHttpClient.call(void 0, );
503
+ const { http } = _chunkQCSLIEMCjs.getAuthedHttpClient.call(void 0, );
504
504
  const payload = await http.request("/api/v2/billing/limit", {
505
505
  method: "PUT",
506
506
  body: { monthly_credits_limit: Number.parseInt(credits, 10) }
507
507
  });
508
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
508
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
509
509
  {
510
510
  ...payload,
511
511
  render: {
@@ -521,11 +521,11 @@ async function handleSetLimit(credits, options) {
521
521
  );
522
522
  }
523
523
  async function handleLimitOff(options) {
524
- const { http } = _chunkEWYHXSV4js.getAuthedHttpClient.call(void 0, );
524
+ const { http } = _chunkQCSLIEMCjs.getAuthedHttpClient.call(void 0, );
525
525
  const payload = await http.request("/api/v2/billing/limit", {
526
526
  method: "DELETE"
527
527
  });
528
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
528
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
529
529
  {
530
530
  ...payload,
531
531
  render: {
@@ -545,7 +545,7 @@ async function exportLedger(http, outputPath, options) {
545
545
  let initialized = false;
546
546
  let pageNumber = 0;
547
547
  console.error(`Exporting billing ledger to ${outputPath}`);
548
- for await (const entries of _chunk5IYFQJHXjs.iterateCursorPages.call(void 0, async (cursor) => {
548
+ for await (const entries of _chunkS347PHNBjs.iterateCursorPages.call(void 0, async (cursor) => {
549
549
  pageNumber += 1;
550
550
  console.error(
551
551
  `Fetching page ${pageNumber}; ${summary.row_count} rows written.`
@@ -584,7 +584,7 @@ async function exportLedger(http, outputPath, options) {
584
584
  return summary;
585
585
  }
586
586
  async function handleHistory(options) {
587
- const { http } = _chunkEWYHXSV4js.getAuthedHttpClient.call(void 0, );
587
+ const { http } = _chunkQCSLIEMCjs.getAuthedHttpClient.call(void 0, );
588
588
  const windows = {
589
589
  "1d": 86400,
590
590
  "1w": 604800,
@@ -596,10 +596,10 @@ async function handleHistory(options) {
596
596
  process.cwd(),
597
597
  "deepline",
598
598
  "data",
599
- _chunkEWYHXSV4js.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
599
+ _chunkQCSLIEMCjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
600
600
  );
601
601
  const summary = await exportLedger(http, outputPath, { sinceAt });
602
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
602
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
603
603
  {
604
604
  output_path: outputPath,
605
605
  row_count: summary.row_count,
@@ -636,14 +636,14 @@ async function handleLedgerExportAll(options) {
636
636
  );
637
637
  return;
638
638
  }
639
- const { http } = _chunkEWYHXSV4js.getAuthedHttpClient.call(void 0, );
639
+ const { http } = _chunkQCSLIEMCjs.getAuthedHttpClient.call(void 0, );
640
640
  const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
641
641
  const summary = await exportLedger(http, outputPath, {
642
642
  sinceAt,
643
643
  runId: options.runId,
644
644
  operation: options.operation
645
645
  });
646
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
646
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
647
647
  {
648
648
  output_path: outputPath,
649
649
  row_count: summary.row_count,
@@ -682,7 +682,7 @@ function targetPlanLine(plan) {
682
682
  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"}`;
683
683
  }
684
684
  async function handlePlans(options) {
685
- const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
685
+ const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
686
686
  const payload = await client.billing.targetPlans();
687
687
  const listedCurrentPlan = payload.plans.find(
688
688
  (plan) => plan.sku === payload.current_plan_sku
@@ -695,8 +695,8 @@ async function handlePlans(options) {
695
695
  ...payload.plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...payload.plans.map(targetPlanLine)],
696
696
  "Change plan: deepline billing change-plan <plan_sku> --json"
697
697
  ];
698
- const legacyPayload = _chunkEWYHXSV4js.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
699
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
698
+ const legacyPayload = _chunkQCSLIEMCjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
699
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
700
700
  {
701
701
  ..._nullishCoalesce(legacyPayload, () => ( payload)),
702
702
  ...legacyPayload ? { target_billing: payload } : {},
@@ -706,7 +706,7 @@ async function handlePlans(options) {
706
706
  );
707
707
  }
708
708
  async function handleSubscribe(planVersionId, options) {
709
- const { http } = _chunkEWYHXSV4js.getAuthedHttpClient.call(void 0, );
709
+ const { http } = _chunkQCSLIEMCjs.getAuthedHttpClient.call(void 0, );
710
710
  const payload = await http.request(
711
711
  "/api/v2/billing/subscription/checkout",
712
712
  {
@@ -715,8 +715,8 @@ async function handleSubscribe(planVersionId, options) {
715
715
  }
716
716
  );
717
717
  const url = String(payload.checkout_url || "");
718
- if (!options.json && options.open !== false && url) _chunkEWYHXSV4js.openInBrowser.call(void 0, url);
719
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
718
+ if (!options.json && options.open !== false && url) _chunkQCSLIEMCjs.openInBrowser.call(void 0, url);
719
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
720
720
  {
721
721
  ...payload,
722
722
  render: {
@@ -732,7 +732,7 @@ async function handleSubscribe(planVersionId, options) {
732
732
  );
733
733
  }
734
734
  async function handleSubscriptionStatus(options) {
735
- const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
735
+ const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
736
736
  const payload = await client.billing.subscription.status();
737
737
  const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
738
738
  const lines = [
@@ -752,7 +752,7 @@ async function handleSubscriptionStatus(options) {
752
752
  ],
753
753
  `Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
754
754
  ];
755
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
755
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
756
756
  {
757
757
  ...payload,
758
758
  render: { sections: [{ title: "billing subscription", lines }] }
@@ -761,7 +761,7 @@ async function handleSubscriptionStatus(options) {
761
761
  );
762
762
  }
763
763
  async function handleSubscriptionCancel(options) {
764
- const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
764
+ const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
765
765
  const action = options.undo ? "undo_cancel" : "cancel";
766
766
  if (options.dryRun) {
767
767
  const status = await client.billing.subscription.status();
@@ -778,7 +778,7 @@ async function handleSubscriptionCancel(options) {
778
778
  return;
779
779
  }
780
780
  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.";
781
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
781
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
782
782
  {
783
783
  ok: true,
784
784
  dry_run: true,
@@ -833,7 +833,7 @@ async function handleSubscriptionCancel(options) {
833
833
  "Remaining credits are yours to keep \u2014 cancellation never removes credits.",
834
834
  "Undo with: deepline billing subscription cancel --undo"
835
835
  ];
836
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
836
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
837
837
  {
838
838
  ok: true,
839
839
  ...result,
@@ -887,7 +887,7 @@ async function handleInvoices(options) {
887
887
  return;
888
888
  }
889
889
  }
890
- const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
890
+ const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
891
891
  let payload;
892
892
  try {
893
893
  payload = await client.billing.invoices.list(
@@ -916,7 +916,7 @@ async function handleInvoices(options) {
916
916
  url: entry.url
917
917
  }))
918
918
  } : { ...payload, count: entries.length };
919
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
919
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
920
920
  {
921
921
  ...envelope,
922
922
  render: { sections: [{ title: "billing invoices", lines }] }
@@ -925,7 +925,7 @@ async function handleInvoices(options) {
925
925
  );
926
926
  }
927
927
  async function handleCheckout(options) {
928
- const { http } = _chunkEWYHXSV4js.getAuthedHttpClient.call(void 0, );
928
+ const { http } = _chunkQCSLIEMCjs.getAuthedHttpClient.call(void 0, );
929
929
  const payload = await http.post(
930
930
  "/api/v2/billing/checkout",
931
931
  {
@@ -935,8 +935,8 @@ async function handleCheckout(options) {
935
935
  }
936
936
  );
937
937
  const url = String(payload.url || payload.checkout_url || "");
938
- if (!options.json && !options.noOpen && url) _chunkEWYHXSV4js.openInBrowser.call(void 0, url);
939
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
938
+ if (!options.json && !options.noOpen && url) _chunkQCSLIEMCjs.openInBrowser.call(void 0, url);
939
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
940
940
  {
941
941
  ...payload,
942
942
  render: {
@@ -981,7 +981,7 @@ async function handleTopUp(creditsRaw, options) {
981
981
  return;
982
982
  }
983
983
  if (options.dryRun) {
984
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
984
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
985
985
  {
986
986
  ok: true,
987
987
  dry_run: true,
@@ -1011,7 +1011,7 @@ async function handleTopUp(creditsRaw, options) {
1011
1011
  );
1012
1012
  return;
1013
1013
  }
1014
- const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
1014
+ const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
1015
1015
  let payload;
1016
1016
  try {
1017
1017
  payload = await client.billing.topUpWithReceipt({
@@ -1028,7 +1028,7 @@ async function handleTopUp(creditsRaw, options) {
1028
1028
  return;
1029
1029
  }
1030
1030
  if (payload.status === "pending") {
1031
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1031
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1032
1032
  {
1033
1033
  ok: true,
1034
1034
  ...payload,
@@ -1092,17 +1092,17 @@ async function handleTopUp(creditsRaw, options) {
1092
1092
  ]
1093
1093
  }
1094
1094
  };
1095
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1095
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
1096
1096
  json: options.json
1097
1097
  });
1098
1098
  }
1099
1099
  async function handleTargetStatus(options) {
1100
- const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
1100
+ const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
1101
1101
  const payload = await client.billing.targetStatus();
1102
1102
  const balanceCommand = "deepline billing balance --json";
1103
1103
  const recentChargesCommand = "deepline billing usage --limit 5 --json";
1104
1104
  const exactChargeCommand = "deepline billing usage --request-id <job_id> --json";
1105
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1105
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1106
1106
  {
1107
1107
  ok: true,
1108
1108
  ...payload,
@@ -1132,8 +1132,8 @@ async function handleTargetStatus(options) {
1132
1132
  );
1133
1133
  }
1134
1134
  async function handleEntitlements(options) {
1135
- const payload = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().billing.entitlements();
1136
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1135
+ const payload = await new (0, _chunkS347PHNBjs.DeeplineClient)().billing.entitlements();
1136
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1137
1137
  {
1138
1138
  ok: true,
1139
1139
  ...payload,
@@ -1158,7 +1158,7 @@ async function handleEntitlements(options) {
1158
1158
  );
1159
1159
  }
1160
1160
  async function handleAutoRechargeStatus(options) {
1161
- const payload = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().billing.autoRecharge.get();
1161
+ const payload = await new (0, _chunkS347PHNBjs.DeeplineClient)().billing.autoRecharge.get();
1162
1162
  const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
1163
1163
  const lines = [
1164
1164
  `State: ${state}`,
@@ -1168,7 +1168,7 @@ async function handleAutoRechargeStatus(options) {
1168
1168
  `Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
1169
1169
  ] : []
1170
1170
  ];
1171
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1171
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1172
1172
  {
1173
1173
  ok: true,
1174
1174
  ...payload,
@@ -1217,7 +1217,7 @@ async function handleAutoRechargeSet(options) {
1217
1217
  }
1218
1218
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1219
1219
  if (options.dryRun) {
1220
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1220
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1221
1221
  {
1222
1222
  ok: true,
1223
1223
  dry_run: true,
@@ -1238,7 +1238,7 @@ async function handleAutoRechargeSet(options) {
1238
1238
  );
1239
1239
  return;
1240
1240
  }
1241
- const payload = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().billing.autoRecharge.update({
1241
+ const payload = await new (0, _chunkS347PHNBjs.DeeplineClient)().billing.autoRecharge.update({
1242
1242
  enabled: true,
1243
1243
  thresholdCredits,
1244
1244
  refillToCredits,
@@ -1246,7 +1246,7 @@ async function handleAutoRechargeSet(options) {
1246
1246
  ...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
1247
1247
  idempotencyKey
1248
1248
  });
1249
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1249
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1250
1250
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1251
1251
  { json: options.json }
1252
1252
  );
@@ -1254,7 +1254,7 @@ async function handleAutoRechargeSet(options) {
1254
1254
  async function handleAutoRechargeOff(options) {
1255
1255
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1256
1256
  if (options.dryRun) {
1257
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1257
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1258
1258
  {
1259
1259
  ok: true,
1260
1260
  dry_run: true,
@@ -1269,11 +1269,11 @@ async function handleAutoRechargeOff(options) {
1269
1269
  );
1270
1270
  return;
1271
1271
  }
1272
- const payload = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().billing.autoRecharge.update({
1272
+ const payload = await new (0, _chunkS347PHNBjs.DeeplineClient)().billing.autoRecharge.update({
1273
1273
  enabled: false,
1274
1274
  idempotencyKey
1275
1275
  });
1276
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1276
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1277
1277
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1278
1278
  { json: options.json }
1279
1279
  );
@@ -1292,11 +1292,11 @@ async function handleBuyCredits(creditsRaw, options) {
1292
1292
  return;
1293
1293
  }
1294
1294
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1295
- const payload = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().billing.purchaseCredits({
1295
+ const payload = await new (0, _chunkS347PHNBjs.DeeplineClient)().billing.purchaseCredits({
1296
1296
  credits,
1297
1297
  idempotencyKey
1298
1298
  });
1299
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1299
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1300
1300
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1301
1301
  { json: options.json }
1302
1302
  );
@@ -1332,7 +1332,7 @@ async function handleTopUpRecover(creditsRaw, options) {
1332
1332
  return;
1333
1333
  }
1334
1334
  if (options.dryRun) {
1335
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1335
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1336
1336
  {
1337
1337
  ok: true,
1338
1338
  dry_run: true,
@@ -1345,12 +1345,12 @@ async function handleTopUpRecover(creditsRaw, options) {
1345
1345
  );
1346
1346
  return;
1347
1347
  }
1348
- const payload = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().billing.recoverCreditPurchase({
1348
+ const payload = await new (0, _chunkS347PHNBjs.DeeplineClient)().billing.recoverCreditPurchase({
1349
1349
  credits,
1350
1350
  orgId: options.orgId,
1351
1351
  idempotencyKey: options.idempotencyKey
1352
1352
  });
1353
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1353
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1354
1354
  { ok: true, idempotency_key: options.idempotencyKey, ...payload },
1355
1355
  { json: options.json }
1356
1356
  );
@@ -1370,37 +1370,37 @@ async function handleTargetPlan(planSku, options) {
1370
1370
  return;
1371
1371
  }
1372
1372
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1373
- const payload = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().billing.transitionPlan({
1373
+ const payload = await new (0, _chunkS347PHNBjs.DeeplineClient)().billing.transitionPlan({
1374
1374
  action: "start_or_change",
1375
1375
  targetPlanSku: planSku,
1376
1376
  ...options.billingEmail ? { billingEmail: options.billingEmail } : {},
1377
1377
  idempotencyKey
1378
1378
  });
1379
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1379
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1380
1380
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1381
1381
  { json: options.json }
1382
1382
  );
1383
1383
  }
1384
1384
  async function handleTargetPlanCancellation(options) {
1385
1385
  const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
1386
- const payload = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().billing.transitionPlan({
1386
+ const payload = await new (0, _chunkS347PHNBjs.DeeplineClient)().billing.transitionPlan({
1387
1387
  action: options.undo ? "undo_cancel" : "cancel",
1388
1388
  idempotencyKey
1389
1389
  });
1390
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1390
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1391
1391
  { ok: true, idempotency_key: idempotencyKey, ...payload },
1392
1392
  { json: options.json }
1393
1393
  );
1394
1394
  }
1395
1395
  async function handleTargetPortal(options) {
1396
- const payload = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().billing.portalSession(
1396
+ const payload = await new (0, _chunkS347PHNBjs.DeeplineClient)().billing.portalSession(
1397
1397
  options.billingAddress ? { flow: "customer_update" } : void 0
1398
1398
  );
1399
- if (!options.json && !options.noOpen) _chunkEWYHXSV4js.openInBrowser.call(void 0, payload.url);
1400
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1399
+ if (!options.json && !options.noOpen) _chunkQCSLIEMCjs.openInBrowser.call(void 0, payload.url);
1400
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
1401
1401
  }
1402
1402
  async function handleRedeemCode(code, options) {
1403
- const { http } = _chunkEWYHXSV4js.getAuthedHttpClient.call(void 0, );
1403
+ const { http } = _chunkQCSLIEMCjs.getAuthedHttpClient.call(void 0, );
1404
1404
  const payload = await http.post(
1405
1405
  "/api/v2/billing/checkout",
1406
1406
  {
@@ -1408,8 +1408,8 @@ async function handleRedeemCode(code, options) {
1408
1408
  }
1409
1409
  );
1410
1410
  const url = String(payload.url || payload.checkout_url || "");
1411
- if (!options.json && !options.noOpen && url) _chunkEWYHXSV4js.openInBrowser.call(void 0, url);
1412
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
1411
+ if (!options.json && !options.noOpen && url) _chunkQCSLIEMCjs.openInBrowser.call(void 0, url);
1412
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
1413
1413
  {
1414
1414
  ...payload,
1415
1415
  render: {
@@ -1679,8 +1679,8 @@ Examples:
1679
1679
  new (0, _commander.Command)("trigger").description(
1680
1680
  "Evaluate capped automatic recharge and resume any pending purchase."
1681
1681
  ).option("--json", "Emit JSON output").action(async (options) => {
1682
- const result = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().billing.autoRecharge.trigger();
1683
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
1682
+ const result = await new (0, _chunkS347PHNBjs.DeeplineClient)().billing.autoRecharge.trigger();
1683
+ _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
1684
1684
  })
1685
1685
  );
1686
1686
  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(
@@ -2,7 +2,7 @@ import {
2
2
  DeeplineClient,
3
3
  iterateCursorPages,
4
4
  requireBillingIdempotencyKey
5
- } from "./chunk-35PLGSH6.mjs";
5
+ } from "./chunk-VDOH4A34.mjs";
6
6
  import "./chunk-CBVIJSHF.mjs";
7
7
  import {
8
8
  createTimestampedName,
@@ -10,13 +10,13 @@ import {
10
10
  openInBrowser,
11
11
  printCommandEnvelope,
12
12
  shouldEmitJson
13
- } from "./chunk-5AZNXX2S.mjs";
13
+ } from "./chunk-ZQ6UF55Y.mjs";
14
14
  import {
15
15
  AuthError,
16
16
  ConfigError
17
- } from "./chunk-VWSEZMCR.mjs";
17
+ } from "./chunk-JKJSTQ2I.mjs";
18
18
  import "./chunk-DLIRSHV6.mjs";
19
- import "./chunk-2G7KMDDI.mjs";
19
+ import "./chunk-6OVLJLYH.mjs";
20
20
  import "./chunk-6IKARAYD.mjs";
21
21
  import {
22
22
  DeeplineError
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.348",
52
+ version: "0.3.349",
53
53
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
54
54
  packageCapabilities: {
55
55
  updatePreferences: 1
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkU5U2DJ3Ajs = require('./chunk-U5U2DJ3A.js');
3
+ var _chunkGHYMVZIDjs = require('./chunk-GHYMVZID.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkU5U2DJ3Ajs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkGHYMVZIDjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-BAJXRIRP.mjs";
3
+ } from "./chunk-SPB6CF4S.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-5AZNXX2S.mjs";
5
+ } from "./chunk-ZQ6UF55Y.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-VWSEZMCR.mjs";
8
+ } from "./chunk-JKJSTQ2I.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {