@secondlayer/cli 13.0.1 → 13.0.2

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
@@ -16502,7 +16502,7 @@ class StacksApiClient {
16502
16502
  const statusCode = typeof error2 === "object" && error2 !== null && "response" in error2 && typeof error2.response === "object" && error2.response !== null && "statusCode" in error2.response ? error2.response.statusCode : undefined;
16503
16503
  const message = error2 instanceof Error ? error2.message : String(error2);
16504
16504
  if (statusCode === 401) {
16505
- throw new Error("Authentication required. Run: secondlayer auth login");
16505
+ throw new Error(isOssMode() ? "Authentication required. Set INSTANCE_TOKEN from `secondlayer init` (SL_API_KEY is a legacy alias)." : "Authentication required. Run: secondlayer login");
16506
16506
  }
16507
16507
  if (statusCode === 404) {
16508
16508
  throw new Error(`${resourceType} not found: ${resourceId}`);
@@ -30031,8 +30031,7 @@ deployed definition's only copy is the row in the database. Pass
30031
30031
  await closeDb();
30032
30032
  }
30033
30033
  } catch (err) {
30034
- error(`Failed to deploy subgraph: ${err}`);
30035
- process.exit(1);
30034
+ handleApiError(err, "deploy subgraph");
30036
30035
  }
30037
30036
  });
30038
30037
  subgraphs.command("list").alias("ls").description("List all deployed subgraphs").option("--json", "Output as JSON").action(async (options3) => {
@@ -30682,7 +30681,7 @@ function emitOne(doc, label, json) {
30682
30681
  });
30683
30682
  }
30684
30683
  function registerIndexCommand(program2) {
30685
- const index = program2.command("index").description("Query the decoded Index layer (events + contract calls)");
30684
+ const index = program2.command("index").description("Query decoded Index data (events + contract calls)");
30686
30685
  const rangeFlags = (cmd) => cmd.option("--contract-id <id>", "Filter by contract id").option("--from-height <n>", "Start block height (inclusive)").option("--to-height <n>", "End block height (inclusive)").option("--cursor <cursor>", "Resume token from a previous next_cursor").option("--limit <n>", "Rows per page").option("--json", "Print the full envelope as JSON");
30687
30686
  const heightFlags = (cmd) => cmd.option("--from-height <n>", "Start block height (inclusive)").option("--to-height <n>", "End block height (inclusive)").option("--cursor <cursor>", "Resume token from a previous next_cursor").option("--limit <n>", "Rows per page").option("--json", "Print the full envelope as JSON");
30688
30687
  rangeFlags(index.command("ft-transfers")).description("List decoded SIP-010 fungible-token transfers").option("--sender <principal>", "Filter by sender").option("--recipient <principal>", "Filter by recipient").action(async (o3) => {
@@ -36099,7 +36098,7 @@ var {
36099
36098
  // package.json
36100
36099
  var package_default = {
36101
36100
  name: "@secondlayer/cli",
36102
- version: "13.0.1",
36101
+ version: "13.0.2",
36103
36102
  description: "Run a Stacks index on your own hardware — set it up, restore verified history, and keep it current.",
36104
36103
  repository: {
36105
36104
  type: "git",
@@ -36144,7 +36143,7 @@ var package_default = {
36144
36143
  "@opentui/react": "^0.5.3",
36145
36144
  "@secondlayer/bundler": "^0.5.1",
36146
36145
  "@secondlayer/scaffold": "^1.5.4",
36147
- "@secondlayer/sdk": "^9.0.0",
36146
+ "@secondlayer/sdk": "^9.0.1",
36148
36147
  "@secondlayer/shared": "^11.0.0",
36149
36148
  "@secondlayer/stacks": "^4.0.0",
36150
36149
  "@secondlayer/subgraphs": "^4.0.4",
@@ -41718,5 +41717,5 @@ program.commandsGroup("Archive:");
41718
41717
  registerCreditsCommand(program);
41719
41718
  program.parse();
41720
41719
 
41721
- //# debugId=E4B3B7874FAC14F764756E2164756E21
41720
+ //# debugId=BA4FE359F27252EE64756E2164756E21
41722
41721
  //# sourceMappingURL=cli.js.map