@secondlayer/cli 8.7.1 → 8.8.0

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/README.md CHANGED
@@ -104,7 +104,6 @@ scoped reads and cannot mint (403). Minted keys inherit your plan's tier.
104
104
 
105
105
  | Command | What it does |
106
106
  |---|---|
107
- | `sl datasets list` / `query <dataset> [--filter k=v] [--cursor] [--limit] [--json]` | Foundation Datasets (sBTC, BNS, PoX-4, STX transfers). Public — no key |
108
107
  | `sl index ft-transfers` / `nft-transfers` / `events --event-type <t>` / `contract-calls` | Decoded L2 layer. Anonymous reads OK; free-tier keys rejected (Build+ for keyed) |
109
108
  | `sl streams tip` / `events` / `consume` / `reorgs` / `canonical <h>` / `pull` | Raw L1 event firehose. **Requires `SL_API_KEY`** |
110
109
 
@@ -136,16 +135,6 @@ trait — via the SDK, REST, or MCP with a `triggers` array. Every other
136
135
  `sl subscriptions` command (list/get/update/pause/resume/delete/doctor/test/
137
136
  deliveries/...) operates on both kinds.
138
137
 
139
- ### Local dev & OSS
140
-
141
- | Command | What it does |
142
- |---|---|
143
- | `sl local up [--devnet]` / `sl local down [--devnet]` | Start/stop the full local stack (Stacks node + dev services), or a Clarinet devnet |
144
- | `sl local start/stop/restart/status/logs` | Manage just the local dev services |
145
- | `sl local node setup/start/stop/...` | Manage the local Stacks node |
146
- | `sl local db blocks/txs/events/gaps/truncate/resync` | Inspect the local source DB |
147
- | `sl devnet connect/down/status/logs` | Clarinet devnet integration |
148
-
149
138
  ### Other
150
139
 
151
140
  | Command | What it does |
@@ -220,6 +209,17 @@ await token.write.transfer({ amount: 100n, recipient: "SP..." })
220
209
  const supply = await token.vars.totalSupply.get()
221
210
  ```
222
211
 
212
+ ## Frozen commands
213
+
214
+ Local-dev periphery: still functional, hidden from `sl --help`, no further
215
+ investment — may be removed in a future major. The hosted dev loop
216
+ (`sl subgraphs create/deploy`) is the supported path.
217
+
218
+ - `sl local up/down/start/stop/restart/status/logs` — local stack + dev services
219
+ - `sl local node ...` — local Stacks node management
220
+ - `sl local db ...` — local source DB inspection
221
+ - `sl devnet connect/down/status/logs` — Clarinet devnet integration
222
+
223
223
  ## Docs
224
224
 
225
225
  Full reference: https://secondlayer.tools/docs
package/dist/cli.js CHANGED
@@ -31811,7 +31811,7 @@ var {
31811
31811
  // package.json
31812
31812
  var package_default = {
31813
31813
  name: "@secondlayer/cli",
31814
- version: "8.7.1",
31814
+ version: "8.8.0",
31815
31815
  repository: {
31816
31816
  type: "git",
31817
31817
  url: "git+https://github.com/ryanwaits/secondlayer.git",
@@ -31861,9 +31861,9 @@ var package_default = {
31861
31861
  "@inquirer/prompts": "^8.2.0",
31862
31862
  "@secondlayer/bundler": "^0.3.7",
31863
31863
  "@secondlayer/scaffold": "^1.2.0",
31864
- "@secondlayer/sdk": "^6.21.0",
31864
+ "@secondlayer/sdk": "^6.21.1",
31865
31865
  "@secondlayer/shared": "^6.30.0",
31866
- "@secondlayer/stacks": "^2.5.0",
31866
+ "@secondlayer/stacks": "^2.5.1",
31867
31867
  "@secondlayer/subgraphs": "^3.11.0",
31868
31868
  "@biomejs/js-api": "^0.7.0",
31869
31869
  "@biomejs/wasm-nodejs": "^1.9.0",
@@ -33847,6 +33847,24 @@ stacks_node_events_observers = [${entry}]
33847
33847
  return { status: exists ? "added" : "created" };
33848
33848
  }
33849
33849
 
33850
+ // src/lib/frozen.ts
33851
+ function markFrozen(cmd) {
33852
+ let warned = false;
33853
+ const warn2 = () => {
33854
+ if (warned)
33855
+ return;
33856
+ warned = true;
33857
+ process.stderr.write(`⚠ \`sl ${cmd.name()}\` is frozen — no further investment; it may be removed in a future major. The hosted dev loop (sl subgraphs create/deploy) is the supported path.
33858
+ `);
33859
+ };
33860
+ cmd.hook("preAction", warn2);
33861
+ cmd.addHelpText("beforeAll", () => {
33862
+ warn2();
33863
+ return "";
33864
+ });
33865
+ return cmd;
33866
+ }
33867
+
33850
33868
  // src/commands/devnet.ts
33851
33869
  init_output();
33852
33870
  var COMPOSE_REL = join6(".secondlayer", "docker-compose.yml");
@@ -33877,7 +33895,7 @@ var SERVICES = [
33877
33895
  "migrate"
33878
33896
  ];
33879
33897
  function registerDevnetCommand(program2) {
33880
- const devnet = program2.command("devnet").description("Run Secondlayer services against a local Clarinet devnet");
33898
+ const devnet = markFrozen(program2.command("devnet", { hidden: true }).description("Run Secondlayer services against a local Clarinet devnet"));
33881
33899
  devnet.command("connect").description("Point your clarinet project's devnet at a local Secondlayer stack and start it").option("--project <dir>", "Clarinet project directory (defaults to the nearest Clarinet.toml)").option("--image-tag <tag>", "Published image tag to run", DEFAULT_IMAGE_TAG).option("--owner <owner>", "ghcr image owner (namespace) to pull from").option("--no-up", "Patch config + write compose without starting docker").action(async (options) => {
33882
33900
  await connect(options);
33883
33901
  });
@@ -34595,7 +34613,7 @@ function sip010Balances(name) {
34595
34613
 
34596
34614
  /**
34597
34615
  * Track SIP-010 token balances per (asset_identifier, holder).
34598
- * Mirrors the shape of the Foundation Datasets sBTC token-events
34616
+ * Mirrors the shape of the curated sBTC token-events view
34599
34617
  * surface — but works for ANY SIP-010 token. Constrain to a single
34600
34618
  * token by adding \`assetIdentifier: "SP...token::token-name"\` to each
34601
34619
  * source filter.
@@ -35360,6 +35378,9 @@ Stopped watching.`);
35360
35378
  info(` Publish: sl subgraphs publish ${effectiveDef.name} (open anon /v1 reads)`);
35361
35379
  }
35362
35380
  info(` Watch: sl subgraphs status ${effectiveDef.name}`);
35381
+ if (firstTable) {
35382
+ info(` Webhook: sl subscriptions create ${effectiveDef.name}-hook --subgraph ${effectiveDef.name} --table ${firstTable} --url <your-endpoint>`);
35383
+ }
35363
35384
  } catch {}
35364
35385
  };
35365
35386
  if (result.action === "unchanged") {
@@ -37301,7 +37322,7 @@ async function stopStack(options2) {
37301
37322
  }
37302
37323
  }
37303
37324
  function registerLocalCommand(program2) {
37304
- const local = program2.command("local").description("Manage local development environment and Stacks node").hook("preAction", async (_thisCommand, actionCommand) => {
37325
+ const local = markFrozen(program2.command("local", { hidden: true }).description("Manage local development environment and Stacks node")).hook("preAction", async (_thisCommand, actionCommand) => {
37305
37326
  if (actionCommand.name() === "help")
37306
37327
  return;
37307
37328
  await requireLocalNetwork();
@@ -37913,5 +37934,5 @@ registerAccountCommand(program);
37913
37934
  registerKeysCommand(program);
37914
37935
  program.parse();
37915
37936
 
37916
- //# debugId=C4DF51841ACD727C64756E2164756E21
37937
+ //# debugId=B164F591CA98B53C64756E2164756E21
37917
37938
  //# sourceMappingURL=cli.js.map