@zhin.js/service-typesafe 1.0.21 → 1.0.22

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.
Files changed (2) hide show
  1. package/package.json +28 -7
  2. package/plugin.js +0 -1
package/package.json CHANGED
@@ -1,7 +1,17 @@
1
1
  {
2
2
  "name": "@zhin.js/service-typesafe",
3
- "version": "1.0.21",
4
- "description": "Optional TypeSafe AI Jev decision provider for Zhin",
3
+ "version": "1.0.22",
4
+ "description": "Connects TypeSafe Choice and Score decision models to the inference runtime.",
5
+ "keywords": [
6
+ "zhin.js",
7
+ "typesafe",
8
+ "decision-model",
9
+ "inference"
10
+ ],
11
+ "author": {
12
+ "name": "lc-cn",
13
+ "url": "https://github.com/zhinjs/zhin"
14
+ },
5
15
  "type": "module",
6
16
  "main": "./lib/index.js",
7
17
  "types": "./lib/index.d.ts",
@@ -21,16 +31,16 @@
21
31
  ],
22
32
  "dependencies": {
23
33
  "@typesafe-ai/sdk": "^0.6.0",
24
- "@zhin.js/ai": "1.1.56"
34
+ "@zhin.js/ai": "1.6.0"
25
35
  },
26
36
  "peerDependencies": {
27
- "zhin.js": "^1.2.0"
37
+ "zhin.js": "^1.3.0"
28
38
  },
29
39
  "devDependencies": {
30
40
  "@types/node": "^26.1.2",
31
41
  "typescript": "^6.0.3",
32
42
  "vitest": "^4.1.10",
33
- "zhin.js": "1.2.0"
43
+ "zhin.js": "1.3.0"
34
44
  },
35
45
  "engines": {
36
46
  "node": ">=22.19.0"
@@ -45,7 +55,6 @@
45
55
  "registry": "https://registry.npmjs.org"
46
56
  },
47
57
  "license": "MIT",
48
- "author": "Zhin.js Team",
49
58
  "zhin": {
50
59
  "protocol": 1,
51
60
  "type": "plugin",
@@ -53,7 +62,19 @@
53
62
  "engine": "^1.0.0",
54
63
  "runtime": "trusted",
55
64
  "features": [],
56
- "plugins": []
65
+ "plugins": [],
66
+ "metadata": {
67
+ "displayName": "TypeSafe AI",
68
+ "displayNameI18n": {
69
+ "zh-CN": "TypeSafe 决策服务",
70
+ "en": "TypeSafe AI"
71
+ },
72
+ "descriptionI18n": {
73
+ "zh-CN": "为推理运行时提供 TypeSafe Choice / Score 决策模型接入。",
74
+ "en": "Connects TypeSafe Choice and Score decision models to the inference runtime."
75
+ },
76
+ "category": "ai"
77
+ }
57
78
  },
58
79
  "scripts": {
59
80
  "build": "tsc",
package/plugin.js CHANGED
@@ -4,7 +4,6 @@ import { provideAiProviders } from '@zhin.js/ai/provider';
4
4
  import { typeSafeProvider } from "./lib/provider.js";
5
5
  export default definePlugin({
6
6
  name: 'typesafe',
7
- metadata: { displayName: 'TypeSafe AI' },
8
7
  setup(context) {
9
8
  provideAiProviders(context.resources, [typeSafeProvider]);
10
9
  },