@cannbot-ai/install-helper 0.0.2-beta.50 → 0.0.2-beta.51

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/dist/install.ps1 +6 -21
  2. package/package.json +6 -6
package/dist/install.ps1 CHANGED
@@ -133,17 +133,8 @@ Write-Host ""
133
133
  # 5. PATH
134
134
  $UserPath = [Environment]::GetEnvironmentVariable("Path", "User")
135
135
  if ($UserPath -notlike "*$InstallDir*") {
136
- Write-Host " [INFO] Adding to PATH:" -ForegroundColor Yellow
137
- Write-Host " $InstallDir"
138
- try {
139
- $addPath = Read-Host " Add to user PATH now? [Y/n]"
140
- } catch {
141
- $addPath = "Y"
142
- }
143
- if ($addPath -eq "" -or $addPath -match "^[Yy]$") {
144
- [Environment]::SetEnvironmentVariable("Path", "$UserPath;$InstallDir", "User")
145
- Write-Host " [OK] Added to PATH (restart terminal to take effect)" -ForegroundColor Green
146
- }
136
+ [Environment]::SetEnvironmentVariable("Path", "$UserPath;$InstallDir", "User")
137
+ Write-Host " [OK] Added to PATH (restart terminal to take effect)" -ForegroundColor Green
147
138
  Write-Host ""
148
139
  }
149
140
 
@@ -156,13 +147,7 @@ Write-Host ""
156
147
  Write-Host " Docs: https://gitcode.com/cann/cannbot-skills"
157
148
  Write-Host ""
158
149
 
159
- # 7. Run now
160
- try {
161
- $runNow = Read-Host " Run install-helper now? [Y/n]"
162
- } catch {
163
- $runNow = "Y"
164
- }
165
- if ($runNow -eq "" -or $runNow -match "^[Yy]$") {
166
- Write-Host ""
167
- & $BinaryDest
168
- }
150
+ # 7. Auto launch
151
+ Write-Host " Starting install-helper..." -ForegroundColor Cyan
152
+ Write-Host ""
153
+ & $BinaryDest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cannbot-ai/install-helper",
3
- "version": "0.0.2-beta.50",
3
+ "version": "0.0.2-beta.51",
4
4
  "description": "Install Helper - Interactive installer for CANN operator development skills",
5
5
  "type": "module",
6
6
  "bin": {
@@ -42,11 +42,11 @@
42
42
  "yaml": "^2.6.0"
43
43
  },
44
44
  "optionalDependencies": {
45
- "@cannbot-ai/install-helper-linux-x64": "0.0.2-beta.50",
46
- "@cannbot-ai/install-helper-linux-arm64": "0.0.2-beta.50",
47
- "@cannbot-ai/install-helper-darwin-x64": "0.0.2-beta.50",
48
- "@cannbot-ai/install-helper-darwin-arm64": "0.0.2-beta.50",
49
- "@cannbot-ai/install-helper-windows-x64": "0.0.2-beta.50"
45
+ "@cannbot-ai/install-helper-linux-x64": "0.0.2-beta.51",
46
+ "@cannbot-ai/install-helper-linux-arm64": "0.0.2-beta.51",
47
+ "@cannbot-ai/install-helper-darwin-x64": "0.0.2-beta.51",
48
+ "@cannbot-ai/install-helper-darwin-arm64": "0.0.2-beta.51",
49
+ "@cannbot-ai/install-helper-windows-x64": "0.0.2-beta.51"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/node": "^22.0.0",