Understand any codebase instantly. System intelligence for codebases, built for humans and AI.
TypeScript aiai-memoryclaude-codeclicode-analysiscode-mappingcode-memorycodebase-understandingcodexdeveloper-toolsllmopenclawpersistent-memoryprogram-analysissoftware-architecturesystem-intelligencesystem-mapping
fix: stamp backend/compass versions on install (#195)
Riley Thompsona948b009fbc0
diff --git a/scripts/install/install.ps1 b/scripts/install/install.ps1index 2964c96a..d249bbb3 100644--- a/scripts/install/install.ps1+++ b/scripts/install/install.ps1@@ -69,6 +69,24 @@ function Test-DockerRunning {return $false}+function Get-BackendLatestVersion {+ try {+ $release = Invoke-RestMethod -Uri "https://api.github.com/repos/$GithubOrg/ix-memory-layer-dist/releases/latest" -ErrorAction Stop+ return $release.tag_name -replace '^v', ''+ } catch {+ return $null+ }+}++function Get-CompassLatestVersion {+ try {+ $release = Invoke-RestMethod -Uri "https://api.github.com/repos/$GithubOrg/ix-compass-dist/releases/latest" -ErrorAction Stop+ return $release.tag_name -replace '^v', ''+ } catch {+ return $null+ }+}+# ══════════════════════════════════════════════════════════════════════════════Write-Host "`nIx Installer`n"@@ -174,6 +192,19 @@ if ($userPath -notlike "*$IxBin*") {$env:Path = "$IxBin;$env:Path"+# Stamp installed versions so upgrade checker doesn't nag+$BackendVer = Get-BackendLatestVersion+if ($BackendVer) {+ [System.IO.File]::WriteAllText((Join-Path $IxHome ".backend-version"), $BackendVer)+}++$CompassVer = Get-CompassLatestVersion+if ($CompassVer) {+ $CompassDir = Join-Path $IxHome "cli\compass"+ New-Item -ItemType Directory -Force -Path $CompassDir | Out-Null+ [System.IO.File]::WriteAllText((Join-Path $CompassDir ".version"), $CompassVer)+}+Write-Ok "CLI installed"# test CLIdiff --git a/scripts/install/install.sh b/scripts/install/install.shindex 71e85ac0..fc833457 100755--- a/scripts/install/install.sh+++ b/scripts/install/install.sh@@ -127,6 +127,16 @@ resolve_version() {echo "0.1.0"}+resolve_backend_version() {+ _fetch "https://api.github.com/repos/${GITHUB_ORG}/ix-memory-layer-dist/releases/latest" 2>/dev/null \+ | sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"v\([^"]*\)".*/\1/p' || true+}++resolve_compass_version() {+ _fetch "https://api.github.com/repos/${GITHUB_ORG}/ix-compass-dist/releases/latest" 2>/dev/null \+ | sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"v\([^"]*\)".*/\1/p' || true+}+# -- Detect platform --detect_platform() {@@ -860,6 +870,16 @@ SHIMinfo "Installed: $IX_BIN/ix"fi+# -- Stamp installed versions so upgrade checker doesn't nag --++BACKEND_VER=$(resolve_backend_version)+COMPASS_VER=$(resolve_compass_version)+[ -n "$BACKEND_VER" ] && printf '%s' "$BACKEND_VER" > "$IX_HOME/.backend-version"+if [ -n "$COMPASS_VER" ]; then+ mkdir -p "$IX_HOME/cli/compass"+ printf '%s' "$COMPASS_VER" > "$IX_HOME/cli/compass/.version"+fi+# -- Done --echo ""