claude-code-starter 0.12.2 → 0.13.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.
Files changed (2) hide show
  1. package/dist/cli.js +13 -5
  2. package/package.json +2 -1
package/dist/cli.js CHANGED
@@ -5,6 +5,7 @@ import { execSync, spawn } from "child_process";
5
5
  import fs3 from "fs";
6
6
  import path3 from "path";
7
7
  import { fileURLToPath } from "url";
8
+ import ora from "ora";
8
9
  import pc from "picocolors";
9
10
  import prompts from "prompts";
10
11
 
@@ -1828,6 +1829,14 @@ function runClaudeAnalysis(projectDir, projectInfo) {
1828
1829
  pc.gray("Claude will read your codebase and generate all .claude/ configuration files")
1829
1830
  );
1830
1831
  console.log();
1832
+ const spinner = ora({
1833
+ text: "Claude is analyzing your project...",
1834
+ spinner: {
1835
+ interval: 200,
1836
+ frames: ["\xB7", "\u2722", "\u2733", "\u2736", "\u273B", "\u273D", "\u273B", "\u2736", "\u2733", "\u2722"]
1837
+ },
1838
+ color: "cyan"
1839
+ }).start();
1831
1840
  const child = spawn(
1832
1841
  "claude",
1833
1842
  [
@@ -1845,22 +1854,21 @@ function runClaudeAnalysis(projectDir, projectInfo) {
1845
1854
  ],
1846
1855
  {
1847
1856
  cwd: projectDir,
1848
- stdio: ["pipe", "inherit", "inherit"]
1857
+ stdio: ["pipe", "pipe", "pipe"]
1849
1858
  }
1850
1859
  );
1851
1860
  child.stdin.write(prompt);
1852
1861
  child.stdin.end();
1853
1862
  child.on("error", (err) => {
1854
- console.error(pc.red(`Failed to launch Claude CLI: ${err.message}`));
1863
+ spinner.fail(`Failed to launch Claude CLI: ${err.message}`);
1855
1864
  resolve(false);
1856
1865
  });
1857
1866
  child.on("close", (code) => {
1858
1867
  if (code === 0) {
1859
- console.log();
1860
- console.log(pc.green("Claude analysis complete!"));
1868
+ spinner.succeed("Claude analysis complete!");
1861
1869
  resolve(true);
1862
1870
  } else {
1863
- console.error(pc.red(`Claude exited with code ${code}`));
1871
+ spinner.fail(`Claude exited with code ${code}`);
1864
1872
  resolve(false);
1865
1873
  }
1866
1874
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-starter",
3
- "version": "0.12.2",
3
+ "version": "0.13.0",
4
4
  "description": "A lightweight starter kit for AI-assisted development with Claude Code",
5
5
  "keywords": [
6
6
  "claude",
@@ -41,6 +41,7 @@
41
41
  "prepublishOnly": "bun run build && bun run test"
42
42
  },
43
43
  "dependencies": {
44
+ "ora": "^9.3.0",
44
45
  "picocolors": "^1.1.1",
45
46
  "prompts": "^2.4.2"
46
47
  },