@darkrei08/setup-ai 3.0.3 → 3.0.5

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
@@ -10,24 +10,24 @@ skill — each via its **official, current** method for your OS.
10
10
 
11
11
  ## Quick start
12
12
 
13
- One command. No install, no clone. It opens a menu to choose what to set up:
13
+ One command opens a menu to choose what to set up:
14
14
 
15
15
  ```bash
16
- npx github:darkrei08/setup-ai
16
+ npx @darkrei08/setup-ai
17
17
  ```
18
18
 
19
- Prefer non-interactive? Same command, add a flag:
19
+ Non-interactive:
20
20
 
21
21
  ```bash
22
- npx github:darkrei08/setup-ai --only pi,codex,opencode # just these
23
- npx github:darkrei08/setup-ai --all # everything
22
+ npx @darkrei08/setup-ai --only pi,codex,opencode # just these
23
+ npx @darkrei08/setup-ai --all # everything
24
24
  ```
25
25
 
26
26
  That's the whole thing. Three details worth knowing:
27
27
 
28
+ - **Use the npm package above.** `npx github:darkrei08/setup-ai` also works, but many npm setups block git fetches (`EALLOWGIT`); the published package avoids that. Run it from any folder except the repo's own source dir.
28
29
  - **Windows PowerShell**: one command per line (no bash `\`). If node or git was just installed, open a **new terminal** so PATH refreshes.
29
- - **What it does**: detects your OS and runs `setup-ai.sh` (macOS/Linux) or `setup-ai.ps1` (Windows). Menu keys: ↑/↓ move · Space toggle · `a` all · Enter.
30
- - **Shorter name**: once it's on npm, drop `github:` → `npx @darkrei08/setup-ai` (run it from any folder except the repo's own source dir).
30
+ - **What it does**: detects your OS and runs `setup-ai.sh` (macOS/Linux) or `setup-ai.ps1` (Windows). `--list` shows modules; menu keys: ↑/↓ move · Space toggle · `a` all · Enter.
31
31
 
32
32
  ### npm vs npx
33
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darkrei08/setup-ai",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "description": "Cross-OS installer for an AI coding toolchain (pi, codex, antigravity, opencode, herdr, gentle-ai, engram, Engineering Excellence) with an interactive module menu.",
5
5
  "type": "module",
6
6
  "bin": {
package/setup-ai.ps1 CHANGED
@@ -2,7 +2,7 @@
2
2
  <#
3
3
  ==============================================================================
4
4
  AI Dev Suite — Engineering Excellence Edition (Windows)
5
- Version: 3.0.0
5
+ Version: 3.0.5
6
6
 
7
7
  Windows-native installer, sibling of setup-ai.sh. Uses each tool's official
8
8
  Windows method: winget for language runtimes, the vendor install.ps1 scripts
@@ -41,7 +41,7 @@ try {
41
41
  if (Get-Command chcp -ErrorAction SilentlyContinue) { chcp 65001 | Out-Null }
42
42
  } catch { }
43
43
 
44
- $ScriptVersion = "3.0.3"
44
+ $ScriptVersion = "3.0.5"
45
45
  $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
46
46
  $LogDir = Join-Path $ScriptDir "logs"
47
47
  New-Item -ItemType Directory -Force -Path $LogDir | Out-Null
@@ -307,7 +307,9 @@ function Mod-Engram {
307
307
  }
308
308
  }
309
309
  if (-not (Test-Cmd pi)) { Write-Log WARN "engram" "pi_missing" "pi not found; skipped"; return }
310
- Invoke-Step -Phase "engram" -Optional -Action { pi install npm:gentle-engram }
310
+ # `pi-engram init` is the single source of truth (adds pinned gentle-engram +
311
+ # wires the Engram MCP server). Do NOT also `pi install npm:gentle-engram` —
312
+ # that adds a second, unversioned entry and duplicates it every run.
311
313
  Invoke-Step -Phase "engram" -Optional -Action { pi install npm:pi-mcp-adapter }
312
314
  Invoke-Step -Phase "engram" -Optional -Action { npm exec --yes --package gentle-engram@latest -- pi-engram init }
313
315
  Write-Log INFO "engram" "enabled" "Engram enabled — RESTART pi, verify: mem_current_project / mem_doctor / 'engram tui'"
package/setup-ai.sh CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ==============================================================================
4
4
  # AI Dev Suite — Engineering Excellence Edition
5
- # Version: 3.0.0
5
+ # Version: 3.0.5
6
6
  #
7
7
  # Cross-platform (macOS + all major Linux distros) installer for an AI coding
8
8
  # toolchain. Windows is handled by the sibling setup-ai.ps1; the Node launcher
@@ -26,7 +26,7 @@
26
26
  set -Eeuo pipefail
27
27
  IFS=$'\n\t'
28
28
 
29
- SCRIPT_VERSION="3.0.3"
29
+ SCRIPT_VERSION="3.0.5"
30
30
 
31
31
  SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
32
32
  LOG_DIR="${SCRIPT_DIR}/logs"
@@ -762,9 +762,11 @@ mod_engram() {
762
762
  "engram binary not found after install; the pi extension needs it on PATH" 1
763
763
  fi
764
764
 
765
- # 2. pi integration (in-process extension is the primary path; MCP adapter optional).
765
+ # 2. pi integration. `pi-engram init` is the single source of truth: it adds
766
+ # the pinned gentle-engram to settings.json and wires the Engram MCP server
767
+ # in mcp.json. Do NOT also `pi install npm:gentle-engram` — that adds a
768
+ # second, unversioned entry and creates a duplicate on every run.
766
769
  if command -v pi >/dev/null 2>&1; then
767
- run_optional "engram" pi install npm:gentle-engram
768
770
  run_optional "engram" pi install npm:pi-mcp-adapter
769
771
  run_optional "engram" npm exec --yes --package gentle-engram@latest -- pi-engram init
770
772
  log_event "INFO" "engram" "enabled" \