@darkrei08/setup-ai 3.0.4 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darkrei08/setup-ai",
3
- "version": "3.0.4",
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.4
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.4"
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.4
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.4"
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" \