@cannbot-plugin/cannbot-harness 0.3.2 → 0.3.4

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.
@@ -1,16 +1,50 @@
1
1
  {
2
2
  "repository": "https://gitcode.com/cann/cannbot.git",
3
- "commit": "17025af5a8a50e9a0d5d83e0e14b1577b0c7d554",
4
- "skillsCommit": "c1dd98ef7f1762fc024d3b20d04a6c017d3282ff",
5
3
  "plugins": [
6
- { "id": "ops-direct-invoke", "label": "operator", "title": "算子开发工作流" },
7
- { "id": "ops-direct-invoke-flash", "label": "flash", "title": "Ascend C Flash 核函数开发" },
8
- { "id": "ops-registry-invoke", "label": "registry", "title": "ACLNN / GEIR 注册算子开发" },
9
- { "id": "model-infer-optimize", "label": "model", "title": "NPU 模型推理优化" },
10
- { "id": "hccl-op-generator", "label": "hccl", "title": "HCCL 通信算子开发" },
11
- { "id": "triton-op-generator", "label": "triton", "title": "Triton 算子开发" },
12
- { "id": "catlass-op-generator", "label": "catlass", "title": "CATLASS 算子开发" },
13
- { "id": "ops-perf-optimize", "label": "performance", "title": "Ascend C 性能调优" },
14
- { "id": "pypto-op-orchestrator", "label": "pypto", "title": "PyPTO 算子开发" }
4
+ {
5
+ "id": "ops-direct-invoke",
6
+ "label": "operator",
7
+ "title": "算子开发工作流"
8
+ },
9
+ {
10
+ "id": "ops-direct-invoke-flash",
11
+ "label": "flash",
12
+ "title": "Ascend C Flash 核函数开发"
13
+ },
14
+ {
15
+ "id": "ops-registry-invoke",
16
+ "label": "registry",
17
+ "title": "ACLNN / GEIR 注册算子开发"
18
+ },
19
+ {
20
+ "id": "model-infer-optimize",
21
+ "label": "model",
22
+ "title": "NPU 模型推理优化"
23
+ },
24
+ {
25
+ "id": "hccl-op-generator",
26
+ "label": "hccl",
27
+ "title": "HCCL 通信算子开发"
28
+ },
29
+ {
30
+ "id": "triton-op-generator",
31
+ "label": "triton",
32
+ "title": "Triton 算子开发"
33
+ },
34
+ {
35
+ "id": "catlass-op-generator",
36
+ "label": "catlass",
37
+ "title": "CATLASS 算子开发"
38
+ },
39
+ {
40
+ "id": "ops-perf-optimize",
41
+ "label": "performance",
42
+ "title": "Ascend C 性能调优"
43
+ },
44
+ {
45
+ "id": "pypto-op-orchestrator",
46
+ "label": "pypto",
47
+ "title": "PyPTO 算子开发"
48
+ }
15
49
  ]
16
50
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@cannbot-plugin/cannbot-harness",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "CANNBot Harness: Ascend development workbench with independently versioned workflow packages",
5
5
  "type": "module",
6
- "license": "SEE LICENSE IN THIRD_PARTY_NOTICES.md",
6
+ "license": "SEE LICENSE IN LICENSE",
7
7
  "main": "lib/index.js",
8
8
  "exports": {
9
9
  ".": "./lib/index.js",
@@ -14,7 +14,6 @@
14
14
  },
15
15
  "files": [
16
16
  "lib",
17
- "runtime/initializer-compat.cjs",
18
17
  "workflow-defaults.json",
19
18
  "locale",
20
19
  "cordis.patch.yml",
@@ -22,7 +21,7 @@
22
21
  "README.md",
23
22
  "WORKFLOW_PUBLISHING.md",
24
23
  "THIRD_PARTY_NOTICES.md",
25
- "upstream.json",
24
+ "LICENSE",
26
25
  "official-plugins.json"
27
26
  ],
28
27
  "icon": "./icon.svg",
@@ -59,7 +58,8 @@
59
58
  "@deepseek-ai/dsh-skill-filesystem": ">=0.1.1-0 <0.3.0",
60
59
  "@deepseek-ai/schemastery": ">=3.18.0 <4",
61
60
  "@deepseek-ai/dsh-llm": ">=0.1.1-0 <0.3.0",
62
- "@deepseek-ai/dsh-skill": ">=0.1.1-0 <0.3.0"
61
+ "@deepseek-ai/dsh-skill": ">=0.1.1-0 <0.3.0",
62
+ "@deepseek-ai/dsh-tools": ">=0.2.1-0 <0.3.0"
63
63
  },
64
64
  "dependencies": {
65
65
  "pacote": "^21.0.3",
@@ -80,13 +80,16 @@
80
80
  },
81
81
  "@deepseek-ai/dsh-skill": {
82
82
  "optional": true
83
+ },
84
+ "@deepseek-ai/dsh-tools": {
85
+ "optional": true
83
86
  }
84
87
  },
85
88
  "scripts": {
86
- "vendor:official": "node scripts/vendor-official.mjs",
87
89
  "build": "node scripts/build.mjs",
88
90
  "test": "vitest run",
89
91
  "typecheck": "tsc --noEmit",
90
- "pack:plugin": "node scripts/package.mjs"
92
+ "pack:plugin": "node scripts/package.mjs",
93
+ "install:source": "node scripts/install-source.mjs"
91
94
  }
92
95
  }
@@ -1,59 +1,23 @@
1
- {
2
- "schemaVersion": 1,
3
- "workflows": [
4
- {
5
- "id": "ops-direct-invoke",
6
- "title": "算子开发工作流",
7
- "package": "@cannbot-plugin/workflow-ops-direct-invoke",
8
- "default": true
9
- },
10
- {
11
- "id": "ops-direct-invoke-flash",
12
- "title": "Ascend C Flash 核函数开发",
13
- "package": "@cannbot-plugin/workflow-ops-direct-invoke-flash",
14
- "default": true
15
- },
16
- {
17
- "id": "ops-registry-invoke",
18
- "title": "ACLNN / GEIR 注册算子开发",
19
- "package": "@cannbot-plugin/workflow-ops-registry-invoke",
20
- "default": true
21
- },
22
- {
23
- "id": "model-infer-optimize",
24
- "title": "NPU 模型推理优化",
25
- "package": "@cannbot-plugin/workflow-model-infer-optimize",
26
- "default": true
27
- },
28
- {
29
- "id": "hccl-op-generator",
30
- "title": "HCCL 通信算子开发",
31
- "package": "@cannbot-plugin/workflow-hccl-op-generator",
32
- "default": true
33
- },
34
- {
35
- "id": "triton-op-generator",
36
- "title": "Triton 算子开发",
37
- "package": "@cannbot-plugin/workflow-triton-op-generator",
38
- "default": true
39
- },
40
- {
41
- "id": "catlass-op-generator",
42
- "title": "CATLASS 算子开发",
43
- "package": "@cannbot-plugin/workflow-catlass-op-generator",
44
- "default": true
45
- },
46
- {
47
- "id": "ops-perf-optimize",
48
- "title": "Ascend C 性能调优",
49
- "package": "@cannbot-plugin/workflow-ops-perf-optimize",
50
- "default": true
51
- },
52
- {
53
- "id": "pypto-op-orchestrator",
54
- "title": "PyPTO 算子开发",
55
- "package": "@cannbot-plugin/workflow-pypto-op-orchestrator",
56
- "default": true
57
- }
58
- ]
59
- }
1
+ {
2
+ "schemaVersion": 1,
3
+ "workflows": [
4
+ {
5
+ "id": "ops-direct-invoke",
6
+ "title": "算子开发工作流",
7
+ "package": "@cannbot-plugin/workflow-ops-direct-invoke",
8
+ "default": true
9
+ },
10
+ {
11
+ "id": "ops-direct-invoke-flash",
12
+ "title": "Ascend C Flash 核函数开发",
13
+ "package": "@cannbot-plugin/workflow-ops-direct-invoke-flash",
14
+ "default": true
15
+ },
16
+ {
17
+ "id": "ops-registry-invoke",
18
+ "title": "ACLNN / GEIR 注册算子开发",
19
+ "package": "@cannbot-plugin/workflow-ops-registry-invoke",
20
+ "default": true
21
+ }
22
+ ]
23
+ }
@@ -1,25 +0,0 @@
1
- // Used only by the official initializer subprocess. Never patches the DSH host.
2
- const fs = require('node:fs')
3
- const path = require('node:path')
4
- const root = process.env.CANNBOT_INITIALIZER_WORKSPACE
5
- if (process.platform === 'win32' && root) {
6
- const cp = fs.cpSync
7
- const wait = new Int32Array(new SharedArrayBuffer(4))
8
- const managed = value => {
9
- if (typeof value !== 'string') return false
10
- const relative = path.relative(root, path.resolve(value))
11
- return !path.isAbsolute(relative) && ['.dsh', '.cannbot'].some(name => relative.startsWith(name + path.sep))
12
- }
13
- fs.cpSync = function (source, destination, options) {
14
- for (let attempt = 0; ; attempt++) {
15
- try { return cp(source, destination, options) }
16
- catch (error) {
17
- // Windows may report EIO while a just-deleted directory is still closing.
18
- // Do not rerun the whole installer, or retry missing source files.
19
- if (!managed(destination) || !fs.existsSync(source) || !['EIO', 'EBUSY', 'EPERM', 'EACCES', 'ENOENT'].includes(error.code) || attempt === 6) throw error
20
- Atomics.wait(wait, 0, 0, Math.min(100 * 2 ** attempt, 800))
21
- }
22
- }
23
- }
24
- require('node:module').syncBuiltinESMExports()
25
- }
package/upstream.json DELETED
@@ -1,61 +0,0 @@
1
- {
2
- "repository": "https://gitcode.com/cann/cannbot.git",
3
- "commit": "17025af5a8a50e9a0d5d83e0e14b1577b0c7d554",
4
- "skillsCommit": "c1dd98ef7f1762fc024d3b20d04a6c017d3282ff",
5
- "plugins": [
6
- {
7
- "id": "ops-direct-invoke",
8
- "label": "operator",
9
- "title": "算子开发工作流"
10
- },
11
- {
12
- "id": "ops-direct-invoke-flash",
13
- "label": "flash",
14
- "title": "Ascend C Flash 核函数开发"
15
- },
16
- {
17
- "id": "ops-registry-invoke",
18
- "label": "registry",
19
- "title": "ACLNN / GEIR 注册算子开发"
20
- },
21
- {
22
- "id": "model-infer-optimize",
23
- "label": "model",
24
- "title": "NPU 模型推理优化"
25
- },
26
- {
27
- "id": "hccl-op-generator",
28
- "label": "hccl",
29
- "title": "HCCL 通信算子开发"
30
- },
31
- {
32
- "id": "triton-op-generator",
33
- "label": "triton",
34
- "title": "Triton 算子开发"
35
- },
36
- {
37
- "id": "catlass-op-generator",
38
- "label": "catlass",
39
- "title": "CATLASS 算子开发"
40
- },
41
- {
42
- "id": "ops-perf-optimize",
43
- "label": "performance",
44
- "title": "Ascend C 性能调优"
45
- },
46
- {
47
- "id": "pypto-op-orchestrator",
48
- "label": "pypto",
49
- "title": "PyPTO 算子开发"
50
- }
51
- ],
52
- "skillsRepository": "https://gitcode.com/cann/cannbot-skills.git",
53
- "skillCopies": 153,
54
- "exposedSkills": 129,
55
- "transformations": [
56
- "Materialize source-declared symbolic links; omit client config aliases and caches.",
57
- "Apply the upstream bundler model-invocation normalization unless the plugin explicitly preserves its policy.",
58
- "Include registry workflow external Skills and PyPTO declared Skill/hook assets at the pinned Skills commit.",
59
- "Add DSH Skill entry adapters only where the original plugin has no same-named Skill; keep original documents and resources."
60
- ]
61
- }