@secondlayer/cli 5.4.6 → 5.4.7

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
@@ -32321,7 +32321,7 @@ var {
32321
32321
  // package.json
32322
32322
  var package_default = {
32323
32323
  name: "@secondlayer/cli",
32324
- version: "5.4.6",
32324
+ version: "5.4.7",
32325
32325
  description: "CLI for subgraphs and blockchain indexing on Stacks",
32326
32326
  type: "module",
32327
32327
  bin: {
@@ -33750,6 +33750,10 @@ function printDead(rows) {
33750
33750
  async function confirmOrExit(message, yes) {
33751
33751
  if (yes)
33752
33752
  return true;
33753
+ if (!process.stdin.isTTY) {
33754
+ error("Interactive prompt unavailable (stdin is not a TTY). Re-run with -y to skip confirmation.");
33755
+ process.exit(1);
33756
+ }
33753
33757
  let ok = false;
33754
33758
  try {
33755
33759
  ok = await confirm({ message });
@@ -35826,6 +35830,10 @@ ${rows.length} row(s)`));
35826
35830
  subgraphs.command("delete <name>").description("Delete a subgraph and its data").option("-y, --yes", "Skip confirmation").option("--force", "Cancel active operations and force delete").action(async (name, options2) => {
35827
35831
  try {
35828
35832
  if (!options2.yes && !options2.force) {
35833
+ if (!process.stdin.isTTY) {
35834
+ error("Interactive prompt unavailable (stdin is not a TTY). Re-run with -y to skip confirmation.");
35835
+ process.exit(1);
35836
+ }
35829
35837
  const { confirm: confirm4 } = await import("@inquirer/prompts");
35830
35838
  let ok = false;
35831
35839
  try {
@@ -37127,5 +37135,5 @@ registerAccountCommand(program);
37127
37135
  registerBillingCommand(program);
37128
37136
  program.parse();
37129
37137
 
37130
- //# debugId=CB87EFABAE883E2964756E2164756E21
37138
+ //# debugId=3A9945EA76A81FFE64756E2164756E21
37131
37139
  //# sourceMappingURL=cli.js.map