@dmsdc-ai/aigentry-devkit 0.1.4 → 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.
Files changed (3) hide show
  1. package/install.ps1 +33 -7
  2. package/install.sh +32 -1
  3. 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-Warn "tmux not found. Deliberation monitor auto-window is disabled."
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) {
@@ -116,17 +139,20 @@ Write-Header "5. MCP Registration"
116
139
  $mcpConfig = Join-Path $ClaudeDir ".mcp.json"
117
140
  New-Item -ItemType Directory -Path $ClaudeDir -Force | Out-Null
118
141
 
142
+ $cfg = $null
119
143
  if (Test-Path $mcpConfig) {
120
144
  try {
121
- $cfg = Get-Content $mcpConfig -Raw | ConvertFrom-Json
122
- } catch {
123
- $cfg = [pscustomobject]@{}
124
- }
125
- } else {
145
+ $raw = Get-Content $mcpConfig -Raw
146
+ if ($raw) {
147
+ $cfg = $raw | ConvertFrom-Json
148
+ }
149
+ } catch {}
150
+ }
151
+ if (-not $cfg) {
126
152
  $cfg = [pscustomobject]@{}
127
153
  }
128
154
 
129
- if (-not $cfg.PSObject.Properties.Name.Contains("mcpServers")) {
155
+ if (-not ($cfg.PSObject.Properties.Match("mcpServers"))) {
130
156
  $cfg | Add-Member -MemberType NoteProperty -Name mcpServers -Value ([pscustomobject]@{})
131
157
  }
132
158
 
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
- warn "tmux not found. Deliberation monitor terminals won't auto-open."
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-devkit",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Cross-platform installer and tooling bundle for aigentry-devkit",
5
5
  "license": "MIT",
6
6
  "repository": {