@dmsdc-ai/aigentry-devkit 0.1.6 → 0.1.7

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 (2) hide show
  1. package/install.ps1 +13 -4
  2. package/package.json +1 -1
package/install.ps1 CHANGED
@@ -152,14 +152,23 @@ if (-not $cfg) {
152
152
  $cfg = [pscustomobject]@{}
153
153
  }
154
154
 
155
- if (-not ($cfg.PSObject.Properties.Match("mcpServers"))) {
156
- $cfg | Add-Member -MemberType NoteProperty -Name mcpServers -Value ([pscustomobject]@{})
155
+ if (-not ($cfg.PSObject.Properties.Match("mcpServers")) -or $null -eq $cfg.mcpServers) {
156
+ if ($cfg.PSObject.Properties.Match("mcpServers")) {
157
+ $cfg.mcpServers = [pscustomobject]@{}
158
+ } else {
159
+ $cfg | Add-Member -MemberType NoteProperty -Name mcpServers -Value ([pscustomobject]@{})
160
+ }
157
161
  }
158
162
 
159
- $cfg.mcpServers | Add-Member -MemberType NoteProperty -Name deliberation -Value ([pscustomobject]@{
163
+ $deliberationEntry = [pscustomobject]@{
160
164
  command = "node"
161
165
  args = @((Join-Path $McpDest "index.js"))
162
- }) -Force
166
+ }
167
+ if ($cfg.mcpServers.PSObject.Properties.Match("deliberation")) {
168
+ $cfg.mcpServers.deliberation = $deliberationEntry
169
+ } else {
170
+ $cfg.mcpServers | Add-Member -MemberType NoteProperty -Name deliberation -Value $deliberationEntry
171
+ }
163
172
 
164
173
  $cfg | ConvertTo-Json -Depth 8 | Set-Content -Path $mcpConfig -Encoding utf8
165
174
  Write-Info "Registered deliberation MCP in $mcpConfig"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmsdc-ai/aigentry-devkit",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Cross-platform installer and tooling bundle for aigentry-devkit",
5
5
  "license": "MIT",
6
6
  "repository": {