shrinker-ai 0.3.1 → 0.3.3
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.
|
@@ -14,7 +14,7 @@ SKIP_AGENT_RULES=0
|
|
|
14
14
|
COPILOT_ONLY=0
|
|
15
15
|
CLAUDE_ONLY=0
|
|
16
16
|
PROFILE_PATH="${PROFILE_PATH:-$HOME/.zshrc}"
|
|
17
|
-
STEP=0
|
|
17
|
+
STEP="${SHRINKER_STEP_OFFSET:-0}"
|
|
18
18
|
|
|
19
19
|
print_message() {
|
|
20
20
|
local emoji="$1"
|
|
@@ -54,13 +54,16 @@ if (( LOCAL == 0 )); then
|
|
|
54
54
|
package_root="$(npm root --global)/$PACKAGE_NAME"
|
|
55
55
|
entrypoint="$package_root/integrations/macos/install.sh"
|
|
56
56
|
[[ -f "$entrypoint" ]] || { print_message "❌" "Installed package installer not found: $entrypoint" >&2; exit 1; }
|
|
57
|
-
bash "$entrypoint" --local --skip-npm-install --skip-build --skip-link \
|
|
57
|
+
SHRINKER_STEP_OFFSET="$STEP" bash "$entrypoint" --local --skip-npm-install --skip-build --skip-link \
|
|
58
58
|
$( (( ENABLE_PROFILE_ROUTING )) && echo --enable-profile-routing ) \
|
|
59
59
|
$( (( SKIP_PROFILE )) && echo --skip-profile ) \
|
|
60
60
|
$( (( SKIP_AGENT_RULES )) && echo --skip-agent-rules ) \
|
|
61
61
|
$( (( COPILOT_ONLY )) && echo --copilot-only ) \
|
|
62
62
|
$( (( CLAUDE_ONLY )) && echo --claude-only ) \
|
|
63
63
|
--profile-path "$PROFILE_PATH"
|
|
64
|
+
if [[ -n "${BASH_SOURCE[0]:-}" && "${BASH_SOURCE[0]}" != "$0" ]]; then
|
|
65
|
+
return 0
|
|
66
|
+
fi
|
|
64
67
|
exit 0
|
|
65
68
|
fi
|
|
66
69
|
|
|
@@ -11,11 +11,12 @@ param(
|
|
|
11
11
|
[switch]$SkipAgentRules,
|
|
12
12
|
[switch]$CopilotOnly,
|
|
13
13
|
[switch]$ClaudeOnly,
|
|
14
|
-
[string]$ProfilePath = $PROFILE
|
|
14
|
+
[string]$ProfilePath = $PROFILE,
|
|
15
|
+
[int]$StepOffset = 0
|
|
15
16
|
)
|
|
16
17
|
|
|
17
18
|
$ErrorActionPreference = "Stop"
|
|
18
|
-
$InstallStep =
|
|
19
|
+
$InstallStep = $StepOffset
|
|
19
20
|
|
|
20
21
|
function Write-InstallStep {
|
|
21
22
|
param([string]$Emoji, [string]$Message)
|
|
@@ -66,10 +67,9 @@ if (-not $Local) {
|
|
|
66
67
|
$entrypoint = Join-Path $packageRoot "integrations\windows\install.ps1"
|
|
67
68
|
if (-not (Test-Path $entrypoint)) { throw "Installed package installer not found: $entrypoint" }
|
|
68
69
|
Write-InstallStep "⚙️" "Configuring the installed package..."
|
|
69
|
-
& pwsh -ExecutionPolicy Bypass -File $entrypoint -Local -SkipNpmInstall -SkipBuild -SkipLink -EnableProfileRouting:$EnableProfileRouting -SkipProfile:$SkipProfile -SkipAgentRules:$SkipAgentRules -CopilotOnly:$CopilotOnly -ClaudeOnly:$ClaudeOnly -ProfilePath $ProfilePath
|
|
70
|
+
& pwsh -ExecutionPolicy Bypass -File $entrypoint -Local -SkipNpmInstall -SkipBuild -SkipLink -EnableProfileRouting:$EnableProfileRouting -SkipProfile:$SkipProfile -SkipAgentRules:$SkipAgentRules -CopilotOnly:$CopilotOnly -ClaudeOnly:$ClaudeOnly -ProfilePath $ProfilePath -StepOffset $InstallStep
|
|
70
71
|
if ($LASTEXITCODE -ne 0) { throw "Repository installer failed with exit code $LASTEXITCODE" }
|
|
71
|
-
|
|
72
|
-
exit 0
|
|
72
|
+
return
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
$scriptDir = $PSScriptRoot
|