project-compass 4.1.1 → 4.1.2

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/README.md CHANGED
@@ -30,7 +30,7 @@ npm install -g project-compass
30
30
  ### 🏗️ Project Architect (`Shift+N`)
31
31
  - **Modern Templates**: Scaffold high-performance projects with built-in support for **Bun, Next.js, Vite, Rust, and Django**.
32
32
 
33
- ### 🤖 AI Horizon (`Shift+O` or `0`)
33
+ ### 🔌 Manual Infrastructure\n- **Port Mapping**: Hit `Shift + R` in details to manually assign ports to projects. Settings are saved persistently.\n\n### 🤖 AI Horizon (`Shift+O` or `0`)
34
34
  - **Intelligence Persistence**: Configure your provider (**OpenRouter, Gemini, Claude, Ollama**) once; Compass remembers your settings.
35
35
  - **Deep DNA Analysis**: Press `0` on any project to analyze its structure.
36
36
  - **Auto-Config (BRIT)**: AI automatically detects and configures missing **Build, Run, Install, and Test** commands, saving them directly to your `config.json`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-compass",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
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
@@ -484,10 +484,7 @@ function Compass({rootPath, initialView = 'navigator'}) {
484
484
 
485
485
  const pageLimit = config.maxVisibleProjects || 3;
486
486
  const pageStep = Math.max(1, pageLimit);
487
- const clampIndex = (value) => {
488
- const idx = Math.max(0, Math.min(projects.length - 1, value));
489
- return isNaN(idx) ? 0 : idx;
490
- };
487
+
491
488
  if (key.pageUp && projects.length > pageLimit) {
492
489
  console.clear();
493
490
  setSelectedIndex((prev) => {
@@ -1,4 +1,4 @@
1
- /* global setTimeout, fetch */
1
+ /* global fetch */
2
2
  import React, {useState, memo} from 'react';
3
3
  import {Box, Text, useInput} from 'ink';
4
4