claude-scope 0.8.11 → 0.8.12

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.
@@ -7653,14 +7653,20 @@ var DevServerWidget = class {
7653
7653
  styleFn = devServerStyles.balanced;
7654
7654
  cwd = null;
7655
7655
  processPatterns = [
7656
- { regex: /nuxt.*dev/i, name: "Nuxt", icon: "\u26A1" },
7657
- { regex: /next.*dev/i, name: "Next.js", icon: "\u25B2" },
7658
- { regex: /vite.*dev/i, name: "Vite", icon: "\u26A1" },
7659
- { regex: /svelte.*dev/i, name: "Svelte", icon: "\u{1F525}" },
7660
- { regex: /astro.*dev/i, name: "Astro", icon: "\u{1F680}" },
7661
- { regex: /remix.*dev/i, name: "Remix", icon: "\u{1F4BF}" },
7662
- { regex: /(npm|yarn|pnpm|bun).*run\s+dev/i, name: "Dev", icon: "\u{1F680}" },
7663
- { regex: /(npm|yarn|pnpm|bun).*run\s+build/i, name: "Build", icon: "\u{1F528}" }
7656
+ // Generic server patterns (checked first to catch simple servers)
7657
+ { regex: /(npm|npx)\s+exec\s+serve/i, name: "Server", icon: "\u{1F310}" },
7658
+ { regex: /(python|python3)\s+-m\s+http\.server/i, name: "HTTP", icon: "\u{1F310}" },
7659
+ { regex: /serve\s+\.?-l?\s*\d+/i, name: "Server", icon: "\u{1F310}" },
7660
+ // Generic dev/build patterns
7661
+ { regex: /(npm|yarn|pnpm|bun)\s+run\s+dev/i, name: "Dev", icon: "\u{1F680}" },
7662
+ { regex: /(npm|yarn|pnpm|bun)\s+run\s+build/i, name: "Build", icon: "\u{1F528}" },
7663
+ // Framework-specific patterns
7664
+ { regex: /nuxt\s+dev/i, name: "Nuxt", icon: "\u26A1" },
7665
+ { regex: /next\s+dev/i, name: "Next.js", icon: "\u25B2" },
7666
+ { regex: /vite($|\s)/i, name: "Vite", icon: "\u26A1" },
7667
+ { regex: /svelte-kit\s+dev|svelte\s+dev/i, name: "Svelte", icon: "\u{1F525}" },
7668
+ { regex: /astro\s+dev/i, name: "Astro", icon: "\u{1F680}" },
7669
+ { regex: /remix\s+dev|remix\s+watch/i, name: "Remix", icon: "\u{1F4BF}" }
7664
7670
  ];
7665
7671
  constructor(colors2) {
7666
7672
  this.colors = colors2 ?? DEFAULT_THEME;
@@ -7737,16 +7743,18 @@ var DevServerWidget = class {
7737
7743
  */
7738
7744
  async detectDevServer() {
7739
7745
  try {
7740
- const { stdout } = await execFileAsync2("ps", ["-aux"], {
7746
+ const { stdout } = await execFileAsync2("ps", ["aux"], {
7741
7747
  timeout: 1e3
7742
7748
  });
7743
7749
  for (const pattern of this.processPatterns) {
7744
7750
  if (pattern.regex.test(stdout)) {
7751
+ const isBuilding = pattern.name.toLowerCase().includes("build");
7752
+ const isRunning = !isBuilding;
7745
7753
  return {
7746
7754
  name: pattern.name,
7747
7755
  icon: pattern.icon,
7748
- isRunning: /dev/i.test(stdout),
7749
- isBuilding: /build/i.test(stdout)
7756
+ isRunning,
7757
+ isBuilding
7750
7758
  };
7751
7759
  }
7752
7760
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-scope",
3
- "version": "0.8.11",
3
+ "version": "0.8.12",
4
4
  "description": "Claude Code plugin for session status and analytics",
5
5
  "license": "MIT",
6
6
  "type": "module",