From 6ce4fcc8483a1124fd53fe56c3c3dcb315815c81 Mon Sep 17 00:00:00 2001 From: Julian lechner Date: Thu, 17 Sep 2026 15:27:03 +0200 Subject: [PATCH] fix(scripts): forward retrieval summary options in both shells --- scripts/install.sh | 2 +- scripts/lib/semantic-retrieval.ps1 | 1 + scripts/lib/semantic-retrieval.sh | 3 ++- scripts/update.sh | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 028e7d0..ae45f85 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -63,7 +63,7 @@ while IFS='|' read -r source destination; do done < <(get_install_targets "$generated" "$home_path" "$shell" "$client") sync_configured_plugins "$root" "$client" "$home_path" "$dry_run" false selected_plugins "$summary" -sync_semantic_retrieval "$root" "$client" "$home_path" "$semantic_retrieval" "$dry_run" false +sync_semantic_retrieval "$root" "$client" "$home_path" "$semantic_retrieval" "$dry_run" false "$summary" if [ "$dry_run" = false ]; then save_update_selection; fi if [ "$summary" = true ]; then diff --git a/scripts/lib/semantic-retrieval.ps1 b/scripts/lib/semantic-retrieval.ps1 index f10216e..cb26307 100644 --- a/scripts/lib/semantic-retrieval.ps1 +++ b/scripts/lib/semantic-retrieval.ps1 @@ -4,6 +4,7 @@ function Sync-SemanticRetrieval { if (-not $Enabled -and -not (Test-Path -LiteralPath $statePath)) { return } $arguments = @((Join-Path $PSScriptRoot 'semantic-retrieval.py'), 'sync', '--root', $RepositoryRoot, '--home', $HomePath, '--client', $Client.ToLowerInvariant(), '--enabled', $Enabled.ToString().ToLowerInvariant()) if ($DryRun) { $arguments += '--dry-run' }; if ($Update) { $arguments += '--update' } + if ($Summary) { $arguments += '--summary' } & python @arguments if ($LASTEXITCODE -ne 0) { throw 'Semantic retrieval reconciliation failed.' } } diff --git a/scripts/lib/semantic-retrieval.sh b/scripts/lib/semantic-retrieval.sh index 6c6e05d..c78b09d 100644 --- a/scripts/lib/semantic-retrieval.sh +++ b/scripts/lib/semantic-retrieval.sh @@ -1,8 +1,9 @@ sync_semantic_retrieval() { - local root=$1 client=$2 home_path=$3 enabled=$4 dry_run=$5 update=$6 + local root=$1 client=$2 home_path=$3 enabled=$4 dry_run=$5 update=$6 summary=${7:-false} [ "$enabled" = true ] || [ -f "$home_path/.my-ai-configuration/semantic-retrieval.json" ] || return 0 local arguments=("$root/scripts/lib/semantic-retrieval.py" sync --root "$root" --home "$home_path" --client "$client" --enabled "$enabled") [ "$dry_run" != true ] || arguments+=(--dry-run) [ "$update" != true ] || arguments+=(--update) + [ "$summary" != true ] || arguments+=(--summary) python3 "${arguments[@]}" } diff --git a/scripts/update.sh b/scripts/update.sh index 6d9fdeb..a7a5e9e 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -72,7 +72,7 @@ if [ "$quick" = true ]; then else sync_configured_plugins "$root" "$client" "$home_path" "$dry_run" true selected_plugins "$summary" fi -sync_semantic_retrieval "$root" "$client" "$home_path" "$semantic_retrieval" "$dry_run" true +sync_semantic_retrieval "$root" "$client" "$home_path" "$semantic_retrieval" "$dry_run" true "$summary" if [ "$dry_run" = false ]; then save_update_selection; fi if [ "$summary" = true ]; then