@eum-agent/llm-provider-custom 0.0.0-stage → 1.2.0

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 (3) hide show
  1. package/dist/index.js +84 -0
  2. package/package.json +34 -3
  3. package/README.md +0 -3
package/dist/index.js ADDED
@@ -0,0 +1,84 @@
1
+ //#region src/type.ts
2
+ function customProviderType() {
3
+ return {
4
+ type: "custom",
5
+ listingContractVersion: "capacity-listing-v2",
6
+ label: "Custom",
7
+ fields: [{
8
+ key: "apiKey",
9
+ kind: "secret",
10
+ label: "API Key",
11
+ required: true
12
+ }, {
13
+ key: "headers",
14
+ kind: "headers",
15
+ label: "HTTP Headers",
16
+ required: false
17
+ }],
18
+ endpoints: [{
19
+ id: "custom",
20
+ resourceCapability: {
21
+ support: "unsupported",
22
+ reason: "unsupported",
23
+ sources: [],
24
+ presets: []
25
+ },
26
+ label: "Custom",
27
+ capabilities: {
28
+ chat: {
29
+ protocolIds: [
30
+ "anthropic",
31
+ "openai",
32
+ "openai-responses",
33
+ "gemini-interactions"
34
+ ],
35
+ defaultProtocolId: "anthropic"
36
+ },
37
+ image: {
38
+ protocolIds: ["openai-images", "gemini-interactions"],
39
+ defaultProtocolId: "openai-images"
40
+ },
41
+ decision: {
42
+ protocolIds: ["systemone", "openai-decisions"],
43
+ defaultProtocolId: "systemone"
44
+ }
45
+ },
46
+ defaults: { baseUrl: "" }
47
+ }],
48
+ catalog: {
49
+ vendors: [{
50
+ kind: "custom",
51
+ id: "custom",
52
+ name: "Custom",
53
+ region: null,
54
+ market: "domestic",
55
+ catalogKey: "custom",
56
+ canListModels: true,
57
+ endpoints: [{
58
+ type: "custom",
59
+ endpointId: "custom",
60
+ protocolIds: [
61
+ "anthropic",
62
+ "openai",
63
+ "openai-responses",
64
+ "gemini-interactions"
65
+ ],
66
+ baseUrl: ""
67
+ }]
68
+ }],
69
+ snapshot: {},
70
+ snapshotAt: 0
71
+ }
72
+ };
73
+ }
74
+ //#endregion
75
+ //#region src/index.ts
76
+ const TOOL_NAMES = [];
77
+ const plugin = {
78
+ name: "@eum-agent/llm-provider-custom",
79
+ apply(ctx) {
80
+ ctx.modelProviders.register(customProviderType());
81
+ }
82
+ };
83
+ //#endregion
84
+ export { TOOL_NAMES, plugin as default };
package/package.json CHANGED
@@ -1,6 +1,37 @@
1
1
  {
2
2
  "name": "@eum-agent/llm-provider-custom",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "displayName": {
4
+ "en-US": "Custom Model Connection",
5
+ "zh-CN": "模型接入 · 自定义"
6
+ },
7
+ "version": "1.2.0",
8
+ "type": "module",
9
+ "description": "User-configured model endpoints using registered API protocols",
10
+ "license": "MIT",
11
+ "exports": {
12
+ ".": {
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "devDependencies": {
20
+ "@eum-agent/plugin": "1.2.0"
21
+ },
22
+ "yaoguang": {
23
+ "description": {
24
+ "en-US": "User-configured model endpoints using registered API protocols",
25
+ "zh-CN": "使用已注册 API 协议配置自定义模型端点"
26
+ },
27
+ "dependencies": {
28
+ "@eum-agent/llm-management": "1.2.0"
29
+ },
30
+ "kind": "extension"
31
+ },
32
+ "scripts": {
33
+ "build": "tsdown",
34
+ "test": "vitest run",
35
+ "typecheck": "tsc --noEmit"
36
+ }
6
37
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.