@cannbot-ai/install-helper 0.0.2-beta.75 → 0.0.2-beta.77

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/dist/install.ps1 CHANGED
@@ -13,6 +13,10 @@ try {
13
13
  [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
14
14
  } catch {}
15
15
 
16
+ # Channel selection: latest (default), beta, or explicit version
17
+ # Set $env:CANNBOT_CHANNEL = "beta" before running to install beta
18
+ $Channel = if ($env:CANNBOT_CHANNEL) { $env:CANNBOT_CHANNEL } else { "latest" }
19
+
16
20
  # Auto-fix ExecutionPolicy for npm global tools (.ps1)
17
21
  $execPolicy = Get-ExecutionPolicy -Scope CurrentUser
18
22
  if ($execPolicy -eq "Restricted") {
@@ -32,18 +36,6 @@ trap {
32
36
  return
33
37
  }
34
38
 
35
- function Compare-SemVer($a, $b) {
36
- $aParts = $a -split '-',2
37
- $bParts = $b -split '-',2
38
- try { $aVer = [version]$aParts[0] } catch { return $false }
39
- try { $bVer = [version]$bParts[0] } catch { return $false }
40
- if ($aVer -ne $bVer) { return $aVer -gt $bVer }
41
- if ($aParts.Length -eq 1 -and $bParts.Length -eq 1) { return $false }
42
- if ($aParts.Length -eq 1) { return $true }
43
- if ($bParts.Length -eq 1) { return $false }
44
- return "$($aParts[1])" -gt "$($bParts[1])"
45
- }
46
-
47
39
  Write-Host ""
48
40
  Write-Host " ____ _ _ _ _ _ ____ _ " -ForegroundColor Cyan
49
41
  Write-Host " / ___| / \ | \ | | \ | | __ ) ___ | |_ " -ForegroundColor Cyan
@@ -62,8 +54,8 @@ $BinaryName = "install-helper.exe"
62
54
  Write-Host " [OK] Platform: windows-$Arch" -ForegroundColor Green
63
55
  Write-Host ""
64
56
 
65
- # 2. Query latest version from npm registry
66
- Write-Host " Querying latest version..." -ForegroundColor Cyan
57
+ # 2. Query version from npm registry (channel-specific)
58
+ Write-Host " Querying version ($Channel)..." -ForegroundColor Cyan
67
59
 
68
60
  $Mirrors = @(
69
61
  "https://registry.npmjs.org",
@@ -73,25 +65,27 @@ $Mirrors = @(
73
65
  $Version = $null
74
66
  $Registry = $null
75
67
  $Errors = @()
76
- foreach ($url in $Mirrors) {
77
- foreach ($tag in @("beta", "latest")) {
68
+
69
+ if ($Channel -eq "latest" -or $Channel -eq "beta") {
70
+ foreach ($url in $Mirrors) {
78
71
  try {
79
- $resp = Invoke-RestMethod "$url/$SubPkgName/$tag" -TimeoutSec 15
72
+ $resp = Invoke-RestMethod "$url/$SubPkgName/$Channel" -TimeoutSec 15
80
73
  if ($resp.version) {
81
- if (-not $Version) {
82
- $Version = $resp.version
83
- $Registry = $url
84
- } elseif (Compare-SemVer $resp.version $Version) {
85
- $Version = $resp.version
86
- $Registry = $url
87
- }
74
+ $Version = $resp.version
75
+ $Registry = $url
88
76
  }
89
77
  } catch { $Errors += $_ }
78
+ if ($Version) {
79
+ break
80
+ }
90
81
  }
91
- if ($Version) {
92
- Write-Host " [OK] Version: $Version (from $Registry)" -ForegroundColor Green
93
- break
94
- }
82
+ } else {
83
+ $Version = $Channel
84
+ $Registry = $Mirrors[0]
85
+ }
86
+
87
+ if ($Version) {
88
+ Write-Host " [OK] Version: $Version ($Channel)" -ForegroundColor Green
95
89
  }
96
90
 
97
91
  if (-not $Version) {
@@ -2,7 +2,7 @@ id: catlass-op-generator
2
2
  dir: plugins-official/catlass-op-generator
3
3
  displayName: Catlass 算子直调
4
4
  aliases: [catlass]
5
- skills: 10
5
+ skills: 14
6
6
  agents: 3
7
7
  description: Catlass 模板拼装 GEMM/Matmul/Epilogue 算子开发
8
8
  version: "1.2.2"
@@ -2,7 +2,7 @@ id: model-infer-optimize
2
2
  dir: plugins-official/model-infer-optimize
3
3
  displayName: NPU 推理优化
4
4
  aliases: [model-infer, infer, inference]
5
- skills: 11
5
+ skills: 12
6
6
  agents: 3
7
7
  description: NPU 模型推理端到端优化(并行/KVCache/融合/量化/图模式/多流/SuperKernel)
8
8
  version: "1.2.2"
@@ -3,7 +3,7 @@ dir: plugins-official/ops-code-reviewer
3
3
  displayName: 代码检视
4
4
  aliases: [code-review, reviewer, review]
5
5
  skills: 5
6
- agents: 1
6
+ agents: 2
7
7
  description: Ascend C 算子代码 4 阶段全量检视(主 Agent 编排 + 子 Agent 并行检视)
8
8
  version: "1.2.2"
9
9
  configFile: AGENTS.md
@@ -2,7 +2,7 @@ id: ops-direct-invoke-flash
2
2
  dir: plugins-official/ops-direct-invoke-flash
3
3
  displayName: AscendC Kernel 直调(快速版)
4
4
  aliases: [flash, kernel-flash]
5
- skills: 1
5
+ skills: 7
6
6
  agents: 1
7
7
  description: 从数学公式或代码片段快速构建并验证 Ascend NPU 核函数
8
8
  version: "1.2.2"
@@ -2,8 +2,8 @@ id: ops-direct-invoke
2
2
  dir: plugins-official/ops-direct-invoke
3
3
  displayName: AscendC Kernel 直调
4
4
  aliases: [ops-direct, ascendc-direct, direct, kernel]
5
- skills: 16
6
- agents: 3
5
+ skills: 19
6
+ agents: 4
7
7
  description: Ascend C 直调全流程:环境→设计→开发→审查→性能验收
8
8
  version: "1.2.2"
9
9
  configFile: AGENTS.md
@@ -2,8 +2,8 @@ id: ops-registry-invoke
2
2
  dir: plugins-official/ops-registry-invoke
3
3
  displayName: AscendC 算子注册调用
4
4
  aliases: [ops-registry, ascendc-registry, registry]
5
- skills: 12
6
- agents: 4
5
+ skills: 26
6
+ agents: 3
7
7
  description: 生产级 ACLNN 注册算子全流程:代码→UT/ST→上库
8
8
  version: "1.2.2"
9
9
  configFile: AGENTS.md
@@ -3,7 +3,7 @@ dir: plugins-official/triton-op-generator
3
3
  displayName: Triton 算子开发
4
4
  aliases: [triton]
5
5
  skills: 6
6
- agents: 1
6
+ agents: 0
7
7
  description: Triton-Ascend 算子 6 阶段自动生成与优化(描述→代码→验证→优化)
8
8
  version: "1.2.2"
9
9
  configFile: AGENTS.md
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cannbot-ai/install-helper",
3
- "version": "0.0.2-beta.75",
3
+ "version": "0.0.2-beta.77",
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.75",
46
- "@cannbot-ai/install-helper-linux-arm64": "0.0.2-beta.75",
47
- "@cannbot-ai/install-helper-darwin-x64": "0.0.2-beta.75",
48
- "@cannbot-ai/install-helper-darwin-arm64": "0.0.2-beta.75",
49
- "@cannbot-ai/install-helper-windows-x64": "0.0.2-beta.75"
45
+ "@cannbot-ai/install-helper-linux-x64": "0.0.2-beta.77",
46
+ "@cannbot-ai/install-helper-linux-arm64": "0.0.2-beta.77",
47
+ "@cannbot-ai/install-helper-darwin-x64": "0.0.2-beta.77",
48
+ "@cannbot-ai/install-helper-darwin-arm64": "0.0.2-beta.77",
49
+ "@cannbot-ai/install-helper-windows-x64": "0.0.2-beta.77"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/node": "^22.0.0",