@secondlayer/cli 23.4.2 → 23.4.3

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.
package/dist/cli.js CHANGED
@@ -2546,8 +2546,13 @@ function nextStepHint(status, detail, code) {
2546
2546
  return;
2547
2547
  if (code === "STACK_ASLEEP")
2548
2548
  return "Any write starts it, such as creating or updating a webhook.";
2549
- if (status === 402)
2550
- return detail === "spend_cap_reached" ? `You reached your monthly spend cap. Raise it: ${CREDITS_URL}` : `Add credits to create webhooks and deploy subgraphs: ${CREDITS_URL}`;
2549
+ if (status === 402) {
2550
+ if (detail === "spend_cap_reached")
2551
+ return `You reached your monthly spend cap. Raise it: ${CREDITS_URL}`;
2552
+ if (detail === "rows_limit_reached")
2553
+ return `This docs key read all its rows. Make a lasting key: ${SIGNIN_URL}`;
2554
+ return `Add credits to create webhooks and deploy subgraphs: ${CREDITS_URL}`;
2555
+ }
2551
2556
  if (status === 403)
2552
2557
  return "You may not have access — check your active project with `secondlayer whoami`.";
2553
2558
  if (status === 404)
@@ -2666,7 +2671,7 @@ async function getContractPrintSchema(contractId) {
2666
2671
  }
2667
2672
  return client.index.printSchema(contractId);
2668
2673
  }
2669
- var CREDITS_URL = "https://www.secondlayer.tools/account/credits";
2674
+ var CREDITS_URL = "https://www.secondlayer.tools/account/credits", SIGNIN_URL = "https://www.secondlayer.tools/signin";
2670
2675
  var init_api_client = __esm(() => {
2671
2676
  init_http();
2672
2677
  init_output();
@@ -31863,7 +31868,7 @@ var {
31863
31868
  // package.json
31864
31869
  var package_default = {
31865
31870
  name: "@secondlayer/cli",
31866
- version: "23.4.2",
31871
+ version: "23.4.3",
31867
31872
  description: "Run a Stacks index on your own hardware — set it up, restore verified history, and keep it current.",
31868
31873
  repository: {
31869
31874
  type: "git",
@@ -31913,7 +31918,7 @@ var package_default = {
31913
31918
  "@secondlayer/bundler": "^0.7.3",
31914
31919
  "@secondlayer/scaffold": "^1.6.3",
31915
31920
  "@secondlayer/sdk": "^16.2.0",
31916
- "@secondlayer/shared": "^15.0.1",
31921
+ "@secondlayer/shared": "^15.2.1",
31917
31922
  "@secondlayer/stacks": "^6.6.0",
31918
31923
  "@secondlayer/subgraphs": "^8.0.4",
31919
31924
  "@secondlayer/verify": "^0.6.3",
@@ -37713,5 +37718,5 @@ registerCreditsCommand(program);
37713
37718
  registerArchiveCommand(program);
37714
37719
  program.parse();
37715
37720
 
37716
- //# debugId=37772975BA7CA86A64756E2164756E21
37721
+ //# debugId=CCB6C7D1DE3F411864756E2164756E21
37717
37722
  //# sourceMappingURL=cli.js.map