Skip to content

Commit 77c8de3

Browse files
committed
fix(installer): resolve F-08 support deterministic cross-platform setup
1 parent 9806a26 commit 77c8de3

3 files changed

Lines changed: 43 additions & 10 deletions

File tree

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,15 @@ cd Promptimprover
6969
.\build_and_install.ps1
7070
```
7171

72-
Add `gemini-prompt-refiner` to your MCP client configuration. See the [Setup Guide](https://github.com/Coding-Autopilot-System/Promptimprover/wiki/Setup-Guide) for full configuration instructions.
72+
On Linux or macOS:
73+
74+
```sh
75+
git clone https://github.com/Coding-Autopilot-System/Promptimprover.git
76+
cd Promptimprover
77+
./build_and_install.sh
78+
```
79+
80+
Both installers perform a deterministic dependency install, run the full test suite, build the package, install it globally, and verify the `gemini-prompt-refiner` command. Add that command to your MCP client configuration. See the [Setup Guide](https://github.com/Coding-Autopilot-System/Promptimprover/wiki/Setup-Guide) for full configuration instructions.
7381

7482
## License
7583

build_and_install.ps1

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1-
Write-Host "Starting Universal Build & Install..." -ForegroundColor Cyan
1+
[CmdletBinding()]
2+
param()
23

3-
cd universal-refiner
4-
npm install
5-
npm run build
6-
npm install -g .
4+
$ErrorActionPreference = 'Stop'
5+
$packageDir = Join-Path $PSScriptRoot 'universal-refiner'
76

8-
$package = Get-Content .\package.json | ConvertFrom-Json
9-
$version = $package.version
7+
Write-Host 'Validating and installing Universal Refiner...' -ForegroundColor Cyan
8+
Push-Location $packageDir
9+
try {
10+
npm ci --no-fund
11+
npm test
12+
npm run build
13+
npm install --global . --no-fund
1014

11-
Write-Host "Prompt Refiner v$version installed globally as 'gemini-prompt-refiner'" -ForegroundColor Green
12-
Write-Host "Use 'gemini-prompt-refiner' command in your MCP configurations." -ForegroundColor Yellow
15+
$package = Get-Content .\package.json -Raw | ConvertFrom-Json
16+
$command = Get-Command gemini-prompt-refiner -ErrorAction Stop
17+
Write-Host "Prompt Refiner v$($package.version) installed: $($command.Source)" -ForegroundColor Green
18+
}
19+
finally {
20+
Pop-Location
21+
}

build_and_install.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env sh
2+
set -eu
3+
4+
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
5+
PACKAGE_DIR="$SCRIPT_DIR/universal-refiner"
6+
7+
printf '%s\n' 'Validating and installing Universal Refiner...'
8+
cd "$PACKAGE_DIR"
9+
npm ci --no-fund
10+
npm test
11+
npm run build
12+
npm install --global . --no-fund
13+
14+
command -v gemini-prompt-refiner >/dev/null 2>&1
15+
VERSION=$(node -p "require('./package.json').version")
16+
printf 'Prompt Refiner v%s installed: %s\n' "$VERSION" "$(command -v gemini-prompt-refiner)"

0 commit comments

Comments
 (0)