project-compass 3.8.1 → 3.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-compass",
3
- "version": "3.8.1",
3
+ "version": "3.9.1",
4
4
  "description": "Futuristic project navigator and runner for Node, Python, Rust, and Go",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -52,14 +52,14 @@ function loadConfig() {
52
52
  showArtBoard: true,
53
53
  showHelpCards: false,
54
54
  showStructureGuide: false,
55
- maxVisibleProjects: 8,
55
+ maxVisibleProjects: 4,
56
56
  ...parsed,
57
57
  };
58
58
  }
59
59
  } catch (error) {
60
60
  console.error(`Ignoring corrupt config: ${error.message}`);
61
61
  }
62
- return {customCommands: {}, showArtBoard: true, showHelpCards: false, showStructureGuide: false, maxVisibleProjects: 8};
62
+ return {customCommands: {}, showArtBoard: true, showHelpCards: false, showStructureGuide: false, maxVisibleProjects: 4};
63
63
  }
64
64
 
65
65
  function useScanner(rootPath) {
@@ -293,7 +293,7 @@ function Compass({rootPath, initialView = 'navigator'}) {
293
293
 
294
294
  useInput((input, key) => {
295
295
  if (quitConfirm) {
296
- if (input?.toLowerCase() === 'y') { killAllTasks(); exit(); return; }
296
+ if (input?.toLowerCase() === 'y') { killAllTasks(); console.clear(); exit(); return; }
297
297
  if (input?.toLowerCase() === 'n' || key.escape) { setQuitConfirm(false); return; }
298
298
  return;
299
299
  }
@@ -466,7 +466,7 @@ function Compass({rootPath, initialView = 'navigator'}) {
466
466
  return;
467
467
  }
468
468
  if (shiftCombo('q') || isCtrlC) {
469
- if (hasRunningTasks) setQuitConfirm(true); else exit();
469
+ if (hasRunningTasks) setQuitConfirm(true); else { console.clear(); exit(); }
470
470
  return;
471
471
  }
472
472
  if (shiftCombo('c') && viewMode === 'detail' && selectedProject) { setCustomMode(true); setCustomInput(''); setCustomCursor(0); return; }
@@ -8,7 +8,7 @@ export default function Navigator({
8
8
  rootPath,
9
9
  loading,
10
10
  error,
11
- maxVisibleProjects = 8
11
+ maxVisibleProjects = 4
12
12
  }) {
13
13
  const page = Math.floor(selectedIndex / maxVisibleProjects);
14
14
  const start = page * maxVisibleProjects;
@@ -163,7 +163,8 @@ export const builtInFrameworks = [
163
163
  },
164
164
  commands(project) {
165
165
  const pm = project.metadata?.packageManager || 'npm';
166
- return { install: { label: 'Tailwind install', command: [pm, 'install', '-D', 'tailwindcss'], source: 'framework' } };
166
+ // Moved to 'setup' to avoid hijacking the primary 'install' (I) macro
167
+ return { setup: { label: 'Tailwind Init', command: [pm, 'install', '-D', 'tailwindcss'], source: 'framework' } };
167
168
  }
168
169
  },
169
170
  {