@liuhange/dsh-data-circulation-assessor 3.1.0 → 3.1.1

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/README.md CHANGED
@@ -1,8 +1,17 @@
1
1
  # @liuhange/dsh-data-circulation-assessor
2
2
 
3
+ ## 基本信息
4
+
5
+ | 项目 | 值 |
6
+ |------|-----|
7
+ | 插件名 | dsh-data-circulation-assessor |
8
+ | 包名 | @liuhange/dsh-data-circulation-assessor |
9
+ | 版本 | 3.1.0 |
10
+ | 工具 | assess_circulation |
11
+
3
12
  ## 功能说明
4
13
 
5
- Data circulation assessor plugin: trusted data space readiness and transaction compliance prediction
14
+ 评估数据的可流通性,含可信数据空间接入就绪度(身份认证、资源封装、目录维护、审计追溯)和交易合规预判(参与方、交易平台、交易标的、交易过程),输出可流通性评分和改进建议。
6
15
 
7
16
  ## 安装
8
17
 
@@ -17,6 +26,13 @@ import { apply } from '@liuhange/dsh-data-circulation-assessor';
17
26
  apply(ctx); // 注册工具: assess_circulation
18
27
  ```
19
28
 
29
+ ## 政策依据
30
+
31
+ | 文件名称 | 文号 | 核心条款摘要 |
32
+ |---------|------|------------|
33
+ | 可信数据空间发展行动计划(2024—2028年) | 国数资源〔2024〕119号 | 支持可信数据空间运营者构建接入认证体系、数据资源封装、目录维护等 |
34
+ | 数据安全技术 数据交易服务安全要求 | GB/T 37932-2025 | 规定数据交易参与方、交易平台、交易标的及交易过程的安全要求 |
35
+
20
36
  ## License
21
37
 
22
38
  MIT
@@ -0,0 +1,18 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ describe('data-circulation-assessor', () => {
3
+ it('导出name/inject/apply', async () => {
4
+ const mod = await import('../index.js');
5
+ expect(mod.name).toBe('@liuhange/dsh-data-circulation-assessor');
6
+ expect(mod.inject).toEqual(['tools']);
7
+ expect(typeof mod.apply).toBe('function');
8
+ });
9
+ it('apply注册assess_circulation工具', 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('assess_circulation');
15
+ expect(tool.description).toContain('流通');
16
+ });
17
+ });
18
+ //# sourceMappingURL=circulation.test.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@liuhange/dsh-data-circulation-assessor",
3
3
  "description": "Data circulation assessor plugin: trusted data space readiness and transaction compliance prediction",
4
- "version": "3.1.0",
4
+ "version": "3.1.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -31,10 +31,12 @@
31
31
  "test": "vitest run",
32
32
  "build": "tsc"
33
33
  },
34
+ "dependencies": {
35
+ "@liuhange/dsh-data-asset-shared": "^3.1.0"
36
+ },
34
37
  "peerDependencies": {
35
38
  "@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"
39
+ "@deepseek-ai/dsh-tools": "0.0.1-rc.1"
38
40
  },
39
41
  "dsh": {
40
42
  "bundle": {