@secondlayer/cli 5.2.0 → 5.2.1

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
@@ -32324,7 +32324,7 @@ var {
32324
32324
  // package.json
32325
32325
  var package_default = {
32326
32326
  name: "@secondlayer/cli",
32327
- version: "5.2.0",
32327
+ version: "5.2.1",
32328
32328
  description: "CLI for subgraphs and blockchain indexing on Stacks",
32329
32329
  type: "module",
32330
32330
  bin: {
@@ -36755,7 +36755,7 @@ async function writeActiveProject(slug, cwd) {
36755
36755
  // src/commands/whoami.ts
36756
36756
  init_session();
36757
36757
  function registerWhoamiCommand(program2) {
36758
- program2.command("whoami").description("Show current authenticated account + active project + tenant").action(async () => {
36758
+ program2.command("whoami").description("Show current authenticated account + active project").action(async () => {
36759
36759
  const session = await readSession();
36760
36760
  if (!session) {
36761
36761
  error("Not logged in. Run: sl login");
@@ -36788,10 +36788,7 @@ function registerWhoamiCommand(program2) {
36788
36788
  rows.push(["Plan", tenant.tenant.plan]);
36789
36789
  rows.push(["Status", tenant.tenant.status]);
36790
36790
  } else {
36791
- rows.push([
36792
- "Instance",
36793
- dim("(none — run `sl instance create --plan launch`)")
36794
- ]);
36791
+ rows.push(["Plan", dim("open beta (shared platform)")]);
36795
36792
  }
36796
36793
  } catch {}
36797
36794
  console.log(formatKeyValue(rows));
@@ -36825,7 +36822,7 @@ init_output();
36825
36822
  init_resolve_tenant();
36826
36823
  var INSTANCE_CREATE_TIMEOUT_MS = 180000;
36827
36824
  function registerInstanceCommand(program2) {
36828
- const instance = program2.command("instance").description("Manage your dedicated Secondlayer instance");
36825
+ const instance = program2.command("instance", { hidden: true }).description("Manage your dedicated Secondlayer instance");
36829
36826
  instance.command("create").description("Provision a new dedicated instance for the active project").option("--plan <plan>", "Plan: launch | scale", "launch").action(async (opts) => {
36830
36827
  guardOssMode();
36831
36828
  const activeSlug = await requireActiveProject();
@@ -37224,7 +37221,7 @@ function registerProjectCommand(program2) {
37224
37221
  success(`Created project ${res.name} (${res.slug})`);
37225
37222
  const path2 = await writeActiveProject(res.slug, process.cwd());
37226
37223
  info(dim(`Bound to this directory → ${path2}`));
37227
- info(dim("Next: sl instance create --plan launch"));
37224
+ info(dim("Next: sl subgraphs deploy <file.ts>"));
37228
37225
  } catch (err) {
37229
37226
  handleProjectError(err);
37230
37227
  }
@@ -37312,10 +37309,9 @@ program.hook("preAction", (thisCommand) => {
37312
37309
  program.addHelpText("after", `
37313
37310
  Quickstart:
37314
37311
  $ sl login # Authenticate (magic-link email)
37315
- $ sl project create my-app # Scaffold a project (tenant + data)
37316
- $ sl project use my-app # Bind this directory to the project
37317
- $ sl instance create --plan launch # Provision a dedicated instance
37318
- $ sl subgraphs deploy ./x.ts # Deploy a subgraph — targets your instance
37312
+ $ sl subgraphs new my-watcher --template sip-010-balances
37313
+ $ sl subgraphs deploy subgraphs/my-watcher.ts
37314
+ $ sl subgraphs status my-watcher
37319
37315
  `);
37320
37316
  program.command("generate [files...]").aliases(["gen", "codegen"]).description("Generate TypeScript interfaces from Clarity contracts").option("-c, --config <path>", "Path to config file").option("-o, --out <path>", "Output file path (required when using direct files)").option("-k, --api-key <key>", "Stacks node API key for direct RPC URLs").option("-w, --watch", "Watch for changes").action(async (files, options3) => {
37321
37317
  const { generate: generate2 } = await Promise.resolve().then(() => (init_generate(), exports_generate));
@@ -37344,5 +37340,5 @@ registerAccountCommand(program);
37344
37340
  registerBillingCommand(program);
37345
37341
  program.parse();
37346
37342
 
37347
- //# debugId=9232228B9119962364756E2164756E21
37343
+ //# debugId=DFA23CCC28753D5464756E2164756E21
37348
37344
  //# sourceMappingURL=cli.js.map