@dmsdc-ai/aigentry-devkit 0.1.5 → 0.1.6
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/install.ps1 +24 -1
- package/install.sh +32 -1
- package/package.json +1 -1
package/install.ps1
CHANGED
|
@@ -46,7 +46,30 @@ if (-not $npmCmd) {
|
|
|
46
46
|
if (Get-Command tmux -ErrorAction SilentlyContinue) {
|
|
47
47
|
Write-Info "tmux found (deliberation monitor can run in tmux)"
|
|
48
48
|
} else {
|
|
49
|
-
Write-
|
|
49
|
+
Write-Info "tmux not found. Attempting to install..."
|
|
50
|
+
$tmuxInstalled = $false
|
|
51
|
+
if (Get-Command choco -ErrorAction SilentlyContinue) {
|
|
52
|
+
try {
|
|
53
|
+
choco install tmux -y | Out-Null
|
|
54
|
+
$tmuxInstalled = $true
|
|
55
|
+
} catch {}
|
|
56
|
+
} elseif (Get-Command scoop -ErrorAction SilentlyContinue) {
|
|
57
|
+
try {
|
|
58
|
+
scoop install tmux | Out-Null
|
|
59
|
+
$tmuxInstalled = $true
|
|
60
|
+
} catch {}
|
|
61
|
+
} elseif (Get-Command winget -ErrorAction SilentlyContinue) {
|
|
62
|
+
try {
|
|
63
|
+
winget install tmux --accept-source-agreements --accept-package-agreements | Out-Null
|
|
64
|
+
$tmuxInstalled = $true
|
|
65
|
+
} catch {}
|
|
66
|
+
}
|
|
67
|
+
if ($tmuxInstalled) {
|
|
68
|
+
Write-Info "tmux installed successfully"
|
|
69
|
+
} else {
|
|
70
|
+
Write-Warn "tmux not installed. Install manually via choco/scoop/winget, or use WSL."
|
|
71
|
+
Write-Warn "Deliberation monitor auto-window is disabled."
|
|
72
|
+
}
|
|
50
73
|
}
|
|
51
74
|
|
|
52
75
|
if (Get-Command claude -ErrorAction SilentlyContinue) {
|
package/install.sh
CHANGED
|
@@ -58,7 +58,38 @@ esac
|
|
|
58
58
|
if command -v tmux >/dev/null 2>&1; then
|
|
59
59
|
info "tmux found (deliberation monitor will use it)"
|
|
60
60
|
else
|
|
61
|
-
|
|
61
|
+
info "tmux not found. Attempting to install..."
|
|
62
|
+
TMUX_INSTALLED=0
|
|
63
|
+
case "$PLATFORM" in
|
|
64
|
+
Darwin)
|
|
65
|
+
if command -v brew >/dev/null 2>&1; then
|
|
66
|
+
brew install tmux && TMUX_INSTALLED=1
|
|
67
|
+
else
|
|
68
|
+
warn "Homebrew not found. Install tmux manually: brew install tmux"
|
|
69
|
+
fi
|
|
70
|
+
;;
|
|
71
|
+
Linux)
|
|
72
|
+
if command -v apt-get >/dev/null 2>&1; then
|
|
73
|
+
sudo apt-get update -qq && sudo apt-get install -y tmux && TMUX_INSTALLED=1
|
|
74
|
+
elif command -v dnf >/dev/null 2>&1; then
|
|
75
|
+
sudo dnf install -y tmux && TMUX_INSTALLED=1
|
|
76
|
+
elif command -v yum >/dev/null 2>&1; then
|
|
77
|
+
sudo yum install -y tmux && TMUX_INSTALLED=1
|
|
78
|
+
elif command -v pacman >/dev/null 2>&1; then
|
|
79
|
+
sudo pacman -S --noconfirm tmux && TMUX_INSTALLED=1
|
|
80
|
+
else
|
|
81
|
+
warn "No supported package manager found. Install tmux manually."
|
|
82
|
+
fi
|
|
83
|
+
;;
|
|
84
|
+
*)
|
|
85
|
+
warn "Unsupported platform for auto-install. Install tmux manually."
|
|
86
|
+
;;
|
|
87
|
+
esac
|
|
88
|
+
if [ "$TMUX_INSTALLED" -eq 1 ]; then
|
|
89
|
+
info "tmux installed successfully"
|
|
90
|
+
else
|
|
91
|
+
warn "tmux installation failed. Deliberation monitor auto-window is disabled."
|
|
92
|
+
fi
|
|
62
93
|
fi
|
|
63
94
|
|
|
64
95
|
if command -v claude >/dev/null 2>&1; then
|