@liuhange/dsh-ai-dataset-inspector 3.1.0 → 3.1.2
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/LICENSE +21 -0
- package/README.md +17 -1
- package/lib/__tests__/aiDataset.test.js +18 -0
- package/package.json +22 -10
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 liuhange789
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
# @liuhange/dsh-ai-dataset-inspector
|
|
2
2
|
|
|
3
|
+
## 基本信息
|
|
4
|
+
|
|
5
|
+
| 项目 | 值 |
|
|
6
|
+
|------|-----|
|
|
7
|
+
| 插件名 | dsh-ai-dataset-inspector |
|
|
8
|
+
| 包名 | @liuhange/dsh-ai-dataset-inspector |
|
|
9
|
+
| 版本 | 3.1.0 |
|
|
10
|
+
| 工具 | inspect_ai_dataset |
|
|
11
|
+
|
|
3
12
|
## 功能说明
|
|
4
13
|
|
|
5
|
-
AI
|
|
14
|
+
检查AI训练数据集质量,涵盖标注一致性(Kappa系数)、标签均衡性(类别分布比)、数据泄露检测(训练/验证集重叠)等维度。支持引用data-masking结果检测PII残留。
|
|
6
15
|
|
|
7
16
|
## 安装
|
|
8
17
|
|
|
@@ -17,6 +26,13 @@ import { apply } from '@liuhange/dsh-ai-dataset-inspector';
|
|
|
17
26
|
apply(ctx); // 注册工具: inspect_ai_dataset
|
|
18
27
|
```
|
|
19
28
|
|
|
29
|
+
## 政策依据
|
|
30
|
+
|
|
31
|
+
| 文件名称 | 文号 | 核心条款摘要 |
|
|
32
|
+
|---------|------|------------|
|
|
33
|
+
| 关于推进行业高质量数据集建设行动的实施方案 | 国数发〔2026〕39号 | 部署强基扩容、标注攻坚、提质增效、应用赋能、管理服务、价值释放六大行动 |
|
|
34
|
+
| 高质量数据集建设指南 | T/TC609 005-2025 | 覆盖数据需求、规划、采集、预处理、标注、模型验证全生命周期 |
|
|
35
|
+
|
|
20
36
|
## License
|
|
21
37
|
|
|
22
38
|
MIT
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { describe, it, expect } from 'vitest';
|
|
2
|
+
describe('ai-dataset-inspector', () => {
|
|
3
|
+
it('导出name/inject/apply', async () => {
|
|
4
|
+
const mod = await import('../index.js');
|
|
5
|
+
expect(mod.name).toBe('@liuhange/dsh-ai-dataset-inspector');
|
|
6
|
+
expect(mod.inject).toEqual(['tools']);
|
|
7
|
+
expect(typeof mod.apply).toBe('function');
|
|
8
|
+
});
|
|
9
|
+
it('apply注册inspect_ai_dataset工具', async () => {
|
|
10
|
+
const mod = await import('../index.js');
|
|
11
|
+
const tools = [];
|
|
12
|
+
mod.apply({ tools: { register: (t) => tools.push(t) } });
|
|
13
|
+
const tool = tools[0];
|
|
14
|
+
expect(tool.name).toBe('inspect_ai_dataset');
|
|
15
|
+
expect(tool.description).toContain('AI');
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=aiDataset.test.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liuhange/dsh-ai-dataset-inspector",
|
|
3
3
|
"description": "AI training dataset inspection plugin: annotation consistency, label distribution, data leakage detection",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -26,19 +26,16 @@
|
|
|
26
26
|
"lib/types/**/*.d.ts"
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"test": "vitest run",
|
|
32
|
-
"build": "tsc"
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@liuhange/dsh-data-asset-shared": "^3.1.0"
|
|
33
31
|
},
|
|
34
32
|
"peerDependencies": {
|
|
35
33
|
"@deepseek-ai/cordis": "^4.0.0",
|
|
36
|
-
"@deepseek-ai/dsh-tools": "0.0.1-rc.1"
|
|
37
|
-
"@liuhange/dsh-data-asset-shared": "^3.0.0"
|
|
34
|
+
"@deepseek-ai/dsh-tools": "0.0.1-rc.1"
|
|
38
35
|
},
|
|
39
36
|
"dsh": {
|
|
40
37
|
"bundle": {
|
|
41
|
-
"patch":
|
|
38
|
+
"patch": "./cordis.patch.yml"
|
|
42
39
|
}
|
|
43
40
|
},
|
|
44
41
|
"keywords": [
|
|
@@ -54,7 +51,22 @@
|
|
|
54
51
|
"kappa-coefficient",
|
|
55
52
|
"AI数据集",
|
|
56
53
|
"标注一致性",
|
|
57
|
-
"数据泄露"
|
|
54
|
+
"数据泄露",
|
|
55
|
+
"dsh",
|
|
56
|
+
"typescript",
|
|
57
|
+
"nodejs",
|
|
58
|
+
"automation",
|
|
59
|
+
"audit",
|
|
60
|
+
"compliance",
|
|
61
|
+
"data-governance",
|
|
62
|
+
"data-quality",
|
|
63
|
+
"plugin",
|
|
64
|
+
"open-source"
|
|
58
65
|
],
|
|
59
|
-
"homepage": "https://github.com/liuhange789/data-asset-inspector#readme"
|
|
66
|
+
"homepage": "https://github.com/liuhange789/data-asset-inspector#readme",
|
|
67
|
+
"scripts": {
|
|
68
|
+
"typecheck": "tsc --noEmit",
|
|
69
|
+
"test": "vitest run",
|
|
70
|
+
"build": "tsc"
|
|
71
|
+
}
|
|
60
72
|
}
|