Complete local hybrid search and improve agent reliability

This commit is contained in:
Hamza Ayed
2026-10-02 23:38:02 +03:00
parent 3563a104a3
commit 140f6eb287
62 changed files with 7546 additions and 314 deletions
+44
View File
@@ -0,0 +1,44 @@
$ErrorActionPreference = 'Stop'
$repoPath = Split-Path -Parent $MyInvocation.MyCommand.Path
$expectedOrigin = 'https://git.intaleqapp.com/Hamza/sovereign_ai.git'
$message = if ($args.Count -gt 0) { $args -join ' ' } else { 'Update SovereignAI project' }
Push-Location $repoPath
try {
$origin = git remote get-url origin
if ($LASTEXITCODE -ne 0) {
throw 'Could not read the origin remote.'
}
if ($origin.Trim() -ne $expectedOrigin) {
throw "Unexpected origin '$origin'; expected '$expectedOrigin'."
}
$branch = git branch --show-current
if ($LASTEXITCODE -ne 0 -or [string]::IsNullOrWhiteSpace($branch)) {
throw 'Cannot push from a detached HEAD or unreadable branch.'
}
git add -A
if ($LASTEXITCODE -ne 0) {
throw 'git add failed.'
}
git diff --cached --quiet
$diffExitCode = $LASTEXITCODE
if ($diffExitCode -eq 1) {
git commit -m $message
if ($LASTEXITCODE -ne 0) {
throw 'git commit failed.'
}
} elseif ($diffExitCode -ne 0) {
throw 'Could not inspect the staged changes.'
}
git push --set-upstream origin $branch
if ($LASTEXITCODE -ne 0) {
throw 'git push failed.'
}
} finally {
Pop-Location
}