spets 0.1.22 → 0.1.24

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1550,15 +1550,26 @@ var CLIAIAdapter = class {
1550
1550
  "--permission-mode",
1551
1551
  "bypassPermissions"
1552
1552
  ], {
1553
- stdio: ["pipe", "inherit", "pipe"]
1553
+ stdio: ["pipe", "pipe", "pipe"]
1554
1554
  });
1555
1555
  proc.stdin.write(prompt);
1556
1556
  proc.stdin.end();
1557
1557
  let stderr = "";
1558
+ const frames = ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"];
1559
+ let frameIndex = 0;
1560
+ const spinner = setInterval(() => {
1561
+ process.stdout.write(`\r${frames[frameIndex++ % frames.length]} Claude is working...`);
1562
+ }, 100);
1563
+ const stopSpinner = (success) => {
1564
+ clearInterval(spinner);
1565
+ process.stdout.write(`\r${success ? "\u2713" : "\u2717"} Claude ${success ? "done" : "failed"}
1566
+ `);
1567
+ };
1558
1568
  proc.stderr.on("data", (data) => {
1559
1569
  stderr += data.toString();
1560
1570
  });
1561
1571
  proc.on("close", (code) => {
1572
+ stopSpinner(code === 0);
1562
1573
  if (code !== 0) {
1563
1574
  reject(new Error(`Claude CLI exited with code ${code}: ${stderr}`));
1564
1575
  } else {
@@ -1566,6 +1577,7 @@ var CLIAIAdapter = class {
1566
1577
  }
1567
1578
  });
1568
1579
  proc.on("error", (err) => {
1580
+ stopSpinner(false);
1569
1581
  reject(new Error(`Failed to run Claude CLI: ${err.message}`));
1570
1582
  });
1571
1583
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spets",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
4
4
  "description": "Spec Driven Development Execution Framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",