@astack-tech/integrations 0.1.1-beta.5 → 0.2.0-beta.10

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/package.json CHANGED
@@ -1,11 +1,31 @@
1
1
  {
2
2
  "name": "@astack-tech/integrations",
3
- "version": "0.1.1-beta.5",
4
- "description": "Integrations for the Astack AI Framework.",
3
+ "version": "0.2.0-beta.10",
4
+ "description": "Model provider integrations for AStack, starting with DeepSeek through the OpenAI-compatible API.",
5
+ "keywords": [
6
+ "astack",
7
+ "llm",
8
+ "deepseek",
9
+ "openai-compatible",
10
+ "model-provider",
11
+ "typescript"
12
+ ],
13
+ "homepage": "https://astack.tech/docs",
14
+ "bugs": {
15
+ "url": "https://github.com/astack-tech/astack/issues"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/astack-tech/astack.git",
20
+ "directory": "packages/integrations"
21
+ },
22
+ "license": "MIT",
23
+ "author": "AStack contributors",
24
+ "type": "module",
25
+ "sideEffects": false,
5
26
  "main": "dist/index.cjs",
6
27
  "module": "dist/index.js",
7
28
  "types": "dist/index.d.ts",
8
- "type": "module",
9
29
  "exports": {
10
30
  ".": {
11
31
  "types": {
@@ -22,42 +42,43 @@
22
42
  },
23
43
  "import": "./dist/model-provider/index.js",
24
44
  "require": "./dist/model-provider/index.cjs"
25
- }
45
+ },
46
+ "./package.json": "./package.json"
26
47
  },
27
48
  "files": [
28
49
  "dist",
29
50
  "src",
51
+ "!src/**/__tests__",
52
+ "!src/**/*.test.ts",
30
53
  "README.md",
31
- "LICENSE"
54
+ "LICENSE",
55
+ "CHANGELOG.md"
32
56
  ],
33
- "keywords": [
34
- "ai-framework",
35
- "ai-agent",
36
- "ai"
37
- ],
38
- "author": "xiaoa",
39
- "license": "MIT",
40
- "devDependencies": {
41
- "@types/node": "^20.11.5",
42
- "eslint": "^8.56.0",
43
- "rimraf": "^5.0.5",
44
- "tsup": "^8.4.0",
45
- "typescript": "^5.8.3",
46
- "vitest": "^1.2.1"
47
- },
48
57
  "engines": {
49
- "node": ">=18.0.0"
58
+ "node": ">=20.0.0"
50
59
  },
51
60
  "dependencies": {
52
- "openai": "^4.98.0",
53
- "@astack-tech/core": "0.1.1-beta.0"
61
+ "openai": "^6.10.0",
62
+ "@astack-tech/core": "0.2.0-beta.4"
63
+ },
64
+ "devDependencies": {
65
+ "@types/node": "^22.20.5",
66
+ "@vitest/coverage-v8": "^5.0.5",
67
+ "tsup": "^9.0.0",
68
+ "typescript": "^6.0.3",
69
+ "vitest": "^5.0.5"
70
+ },
71
+ "publishConfig": {
72
+ "access": "public"
54
73
  },
55
74
  "scripts": {
56
75
  "dev": "tsup --watch",
57
76
  "build": "tsup",
58
- "lint": "eslint src --ext .ts,.tsx",
59
- "check-types": "tsc --noEmit",
60
- "test": "vitest run",
61
- "clean": "rimraf dist"
77
+ "check-types": "tsc -p tsconfig.json",
78
+ "test": "vitest run --coverage",
79
+ "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
80
+ "check:package": "publint --strict && attw --pack . --profile node16",
81
+ "check:api": "tsc -p tsconfig.json --noEmit false --emitDeclarationOnly --declarationMap false --outDir temp/dts && api-extractor run",
82
+ "update:api": "tsc -p tsconfig.json --noEmit false --emitDeclarationOnly --declarationMap false --outDir temp/dts && api-extractor run --local"
62
83
  }
63
84
  }
package/src/index.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  /**
2
- * Astack 集成包
2
+ * Model provider integrations for AStack. `ModelProvider.OpenAICompatible` calls any API
3
+ * that speaks the OpenAI chat completions protocol, and `ModelProvider.Deepseek` is that
4
+ * provider set up for DeepSeek. Both satisfy the `ModelProvider` interface of
5
+ * `@astack-tech/components`.
3
6
  *
4
- * 提供与各种外部服务和平台的集成组件
7
+ * @packageDocumentation
5
8
  */
6
9
 
7
- // 导出模型提供者组件
8
10
  export * as ModelProvider from './model-provider';