@open-dy/ai_coding_sdk 1.0.24 → 1.0.25

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.
@@ -56,12 +56,7 @@ export interface TextCensorResult {
56
56
  /** 审核命中结果 */
57
57
  predicts?: TextCensorPredict[];
58
58
  }
59
- export interface TextCensorResponse {
60
- /** 日志 ID */
61
- log_id?: string;
62
- /** 文本审核结果列表 */
63
- data?: TextCensorResult[];
64
- }
59
+ export type TextCensorResponse = TextCensorResult[];
65
60
  /**
66
61
  * 检测文本是否包含违法违规内容 V2
67
62
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-dy/ai_coding_sdk",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "AI Coding SDK — 抖音开放平台 OpenAPI 客户端与工具集",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,6 +9,7 @@
9
9
  ],
10
10
  "scripts": {
11
11
  "build": "tsc",
12
+ "test": "vitest run",
12
13
  "prepublishOnly": "tsc"
13
14
  },
14
15
  "publishConfig": {
@@ -22,8 +23,9 @@
22
23
  ],
23
24
  "license": "Apache-2.0",
24
25
  "devDependencies": {
26
+ "@types/node": "^20.0.0",
25
27
  "typescript": "^5.0.0",
26
- "@types/node": "^20.0.0"
28
+ "vitest": "^3.2.7"
27
29
  },
28
30
  "exports": {
29
31
  ".": {
@@ -143,4 +145,4 @@
143
145
  "default": "./dist/ai_platform_llm/*.js"
144
146
  }
145
147
  }
146
- }
148
+ }