@jeffusion/bungee-core 5.17.0 → 5.19.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.
- package/dist/config-storage/gateway-target-validation.d.ts +5 -0
- package/dist/gateway/contracts.d.ts +29 -2
- package/dist/gateway/dispatch-plugin.d.ts +7 -0
- package/dist/gateway/dispatch-targets.d.ts +4 -0
- package/dist/gateway/plugin.js +2 -0
- package/dist/gateway/routing-plugin.d.ts +3 -1
- package/dist/hooks/plugin-hooks.d.ts +3 -1
- package/dist/main.js +271 -82
- package/dist/plugin-extensions.d.ts +2 -0
- package/dist/plugin.types.d.ts +1 -1
- package/dist/plugins/ai-transformer/index.js.map +3 -3
- package/dist/plugins/anthropic-request-sanitizer/index.js.map +3 -3
- package/dist/plugins/anthropic-tool-name-transformer/index.js.map +3 -3
- package/dist/plugins/chatgpt-oauth/control.js.map +1 -1
- package/dist/plugins/chatgpt-oauth/index.js +7 -4
- package/dist/plugins/chatgpt-oauth/index.js.map +5 -5
- package/dist/plugins/codex-router/control.js +49 -0
- package/dist/plugins/codex-router/control.js.map +11 -0
- package/dist/plugins/codex-router/index.js +495 -0
- package/dist/plugins/codex-router/index.js.map +28 -0
- package/dist/plugins/codex-router/manifest.json +149 -0
- package/dist/plugins/deepseek-reasoning-fix/index.js.map +3 -3
- package/dist/plugins/key-access/control.js.map +2 -2
- package/dist/plugins/key-access/index.js +14 -10
- package/dist/plugins/key-access/index.js.map +5 -5
- package/dist/plugins/key-access/ingress.js +14 -10
- package/dist/plugins/key-access/ingress.js.map +4 -4
- package/dist/plugins/key-rate-limit/index.js.map +3 -3
- package/dist/plugins/local-accounts/control.js.map +1 -1
- package/dist/plugins/local-accounts/index.js.map +3 -3
- package/dist/plugins/model-mapping/control.js.map +1 -1
- package/dist/plugins/model-mapping/index.js.map +4 -4
- package/dist/plugins/models-dev/control.js +24 -1
- package/dist/plugins/models-dev/control.js.map +5 -5
- package/dist/plugins/models-dev/index.js +24 -1
- package/dist/plugins/models-dev/index.js.map +7 -7
- package/dist/plugins/models-dev/manifest.json +12 -0
- package/dist/plugins/openai-messages-to-chat/index.js.map +3 -3
- package/dist/plugins/signature-repair/index.js.map +3 -3
- package/dist/plugins/token-budget/control.js.map +1 -1
- package/dist/plugins/token-budget/index.js.map +3 -3
- package/dist/plugins/token-metering/index.js.map +3 -3
- package/dist/plugins/token-stats/control.js.map +2 -2
- package/dist/plugins/token-stats/index.js.map +4 -4
- package/dist/scoped-plugin-registry.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "codex-router",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"schemaVersion": 3,
|
|
5
|
+
"artifactKind": "runtime-plugin",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"capabilities": [
|
|
8
|
+
"hooks",
|
|
9
|
+
"api",
|
|
10
|
+
"dynamicRuntimeLoad",
|
|
11
|
+
"controlPlane"
|
|
12
|
+
],
|
|
13
|
+
"uiExtensionMode": "none",
|
|
14
|
+
"engines": {
|
|
15
|
+
"bungee": "^4.2.0 || ^5.0.0"
|
|
16
|
+
},
|
|
17
|
+
"control": {
|
|
18
|
+
"entry": "control.js",
|
|
19
|
+
"rpc": []
|
|
20
|
+
},
|
|
21
|
+
"builtin": true,
|
|
22
|
+
"author": "Bungee Team",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"models-dev": "^1.0.0"
|
|
25
|
+
},
|
|
26
|
+
"services": {
|
|
27
|
+
"provides": [],
|
|
28
|
+
"consumes": [
|
|
29
|
+
{
|
|
30
|
+
"id": "models-dev.catalog.v1",
|
|
31
|
+
"version": 1,
|
|
32
|
+
"process": "control",
|
|
33
|
+
"plugin": "models-dev",
|
|
34
|
+
"kind": "local"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "models-dev.catalog.v1",
|
|
38
|
+
"version": 1,
|
|
39
|
+
"process": "worker",
|
|
40
|
+
"plugin": "models-dev",
|
|
41
|
+
"kind": "local"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "models-dev.capabilities.v1",
|
|
45
|
+
"version": 1,
|
|
46
|
+
"process": "control",
|
|
47
|
+
"plugin": "models-dev",
|
|
48
|
+
"kind": "local"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "models-dev.capabilities.v1",
|
|
52
|
+
"version": 1,
|
|
53
|
+
"process": "worker",
|
|
54
|
+
"plugin": "models-dev",
|
|
55
|
+
"kind": "local"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"contributes": {
|
|
60
|
+
"api": [
|
|
61
|
+
{
|
|
62
|
+
"path": "/catalog",
|
|
63
|
+
"methods": [
|
|
64
|
+
"GET"
|
|
65
|
+
],
|
|
66
|
+
"handler": "getCatalog",
|
|
67
|
+
"execution": "control",
|
|
68
|
+
"capability": "config.read"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"settings": "/catalog"
|
|
72
|
+
},
|
|
73
|
+
"metadata": {
|
|
74
|
+
"name": "metadata.name",
|
|
75
|
+
"description": "plugin.description",
|
|
76
|
+
"icon": "alt_route"
|
|
77
|
+
},
|
|
78
|
+
"configSchema": [
|
|
79
|
+
{
|
|
80
|
+
"name": "models",
|
|
81
|
+
"type": "array",
|
|
82
|
+
"label": "models.label",
|
|
83
|
+
"default": [],
|
|
84
|
+
"validation": {
|
|
85
|
+
"max": 100
|
|
86
|
+
},
|
|
87
|
+
"items": {
|
|
88
|
+
"name": "binding",
|
|
89
|
+
"type": "object",
|
|
90
|
+
"label": "Model",
|
|
91
|
+
"properties": [
|
|
92
|
+
{
|
|
93
|
+
"name": "provider",
|
|
94
|
+
"type": "string",
|
|
95
|
+
"label": "provider",
|
|
96
|
+
"required": true,
|
|
97
|
+
"validation": {
|
|
98
|
+
"trimmed": true,
|
|
99
|
+
"max": 512
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "model",
|
|
104
|
+
"type": "string",
|
|
105
|
+
"label": "model",
|
|
106
|
+
"required": true,
|
|
107
|
+
"validation": {
|
|
108
|
+
"trimmed": true,
|
|
109
|
+
"max": 512
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "alias",
|
|
114
|
+
"type": "string",
|
|
115
|
+
"label": "alias",
|
|
116
|
+
"required": false,
|
|
117
|
+
"validation": {
|
|
118
|
+
"trimmed": true,
|
|
119
|
+
"max": 512
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "target",
|
|
124
|
+
"type": "gateway_target",
|
|
125
|
+
"label": "Target",
|
|
126
|
+
"required": true
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "capabilityOverrides",
|
|
130
|
+
"type": "json",
|
|
131
|
+
"label": "Capabilities"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"translations": {
|
|
138
|
+
"zh-CN": {
|
|
139
|
+
"metadata.name": "Codex 模型路由",
|
|
140
|
+
"plugin.description": "从共享目录选择模型并绑定已有路由或服务",
|
|
141
|
+
"models.label": "模型绑定"
|
|
142
|
+
},
|
|
143
|
+
"en": {
|
|
144
|
+
"metadata.name": "Codex Router",
|
|
145
|
+
"plugin.description": "Bind catalog models to existing routes or services",
|
|
146
|
+
"models.label": "Model bindings"
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|