@secondlayer/cli 1.12.0 → 1.12.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
@@ -32678,7 +32678,7 @@ var {
32678
32678
  // package.json
32679
32679
  var package_default = {
32680
32680
  name: "@secondlayer/cli",
32681
- version: "1.12.0",
32681
+ version: "1.12.2",
32682
32682
  description: "CLI for streams, subgraphs, and real-time blockchain indexing on Stacks",
32683
32683
  type: "module",
32684
32684
  bin: {
@@ -35650,7 +35650,9 @@ Stopped watching.`);
35650
35650
  });
35651
35651
  if (result.action === "unchanged") {
35652
35652
  info(`Subgraph "${def.name}" is up to date (v${result.version} — no changes)`);
35653
- } else if (result.action === "created" || result.action === "reindexed") {
35653
+ } else if (result.action === "created") {
35654
+ success(`Subgraph "${def.name}" created → v${result.version}`);
35655
+ } else if (result.action === "reindexed") {
35654
35656
  if (result.diff) {
35655
35657
  const { addedTables, addedColumns, breakingChanges } = result.diff;
35656
35658
  if (breakingChanges.length > 0) {
@@ -35671,7 +35673,7 @@ Stopped watching.`);
35671
35673
  info("Aborted.");
35672
35674
  process.exit(0);
35673
35675
  }
35674
- success(result.action === "created" ? `Subgraph "${def.name}" created → v${result.version}` : `Subgraph "${def.name}" updated → v${result.version} (reindexing)`);
35676
+ success(`Subgraph "${def.name}" updated → v${result.version} (reindexing)`);
35675
35677
  } else {
35676
35678
  if (result.diff) {
35677
35679
  const { addedTables, addedColumns } = result.diff;
@@ -35762,19 +35764,9 @@ ${data.length} subgraph(s) total`));
35762
35764
  ["Created", subgraph.createdAt],
35763
35765
  ["Updated", subgraph.updatedAt]
35764
35766
  ]));
35765
- if (sync && sync.gaps.count > 0 && sync.gaps.ranges.length > 0) {
35767
+ if (sync && sync.gaps.count > 0) {
35766
35768
  console.log(dim(`
35767
- Gap ranges (top 10):`));
35768
- const gapRows = sync.gaps.ranges.map((g) => [
35769
- String(g.start),
35770
- String(g.end),
35771
- String(g.size),
35772
- g.reason
35773
- ]);
35774
- console.log(formatTable(["Start", "End", "Size", "Reason"], gapRows));
35775
- if (sync.gaps.count > sync.gaps.ranges.length) {
35776
- console.log(dim(` ... and ${sync.gaps.count - sync.gaps.ranges.length} more. Run: sl subgraphs gaps ${name}`));
35777
- }
35769
+ Run: sl subgraphs gaps ${name}`));
35778
35770
  }
35779
35771
  const tableEntries = Object.entries(subgraph.tables);
35780
35772
  if (tableEntries.length > 0) {
@@ -37516,5 +37508,5 @@ registerWhoamiCommand(program);
37516
37508
  registerReceiverCommand(program);
37517
37509
  program.parse();
37518
37510
 
37519
- //# debugId=684F7B52D8A7982E64756E2164756E21
37511
+ //# debugId=AB1C48D57706E94764756E2164756E21
37520
37512
  //# sourceMappingURL=cli.js.map