@opengeni/core 0.18.0 → 0.18.1
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/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/domain/sessions.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/core",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "OpenGeni framework-agnostic core: the domain, access, and billing layers (neutral access, off-HTTP V2 surface). Behavior-preserving extraction from apps/api — keeps Hono's HTTPException for error throwing (typed-errors cleanup deferred).",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
37
37
|
"@opengeni/codex": "^0.2.9",
|
|
38
|
-
"@opengeni/config": "^0.10.
|
|
39
|
-
"@opengeni/contracts": "^0.31.
|
|
40
|
-
"@opengeni/db": "^0.22.
|
|
41
|
-
"@opengeni/documents": "^0.2.
|
|
42
|
-
"@opengeni/events": "^0.3.
|
|
43
|
-
"@opengeni/observability": "^0.4.
|
|
44
|
-
"@opengeni/runtime": "^0.17.
|
|
45
|
-
"@opengeni/storage": "^0.2.
|
|
38
|
+
"@opengeni/config": "^0.10.1",
|
|
39
|
+
"@opengeni/contracts": "^0.31.1",
|
|
40
|
+
"@opengeni/db": "^0.22.2",
|
|
41
|
+
"@opengeni/documents": "^0.2.70",
|
|
42
|
+
"@opengeni/events": "^0.3.60",
|
|
43
|
+
"@opengeni/observability": "^0.4.4",
|
|
44
|
+
"@opengeni/runtime": "^0.17.1",
|
|
45
|
+
"@opengeni/storage": "^0.2.54",
|
|
46
46
|
"hono": "^4.12.18"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
package/src/domain/sessions.ts
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
configuredAllowedModels,
|
|
5
5
|
policyProviderIdForModel,
|
|
6
6
|
resolveTurnExecutionPolicyV1,
|
|
7
|
+
WORKSPACE_GATEWAY_MODEL_ID_PREFIX,
|
|
7
8
|
type Settings,
|
|
8
9
|
} from "@opengeni/config";
|
|
9
10
|
import {
|
|
@@ -839,6 +840,9 @@ export function canonicalConfiguredModel(
|
|
|
839
840
|
if (settings.codexSubscriptionEnabled && canonicalModel.startsWith(CODEX_MODEL_ID_PREFIX)) {
|
|
840
841
|
return canonicalModel;
|
|
841
842
|
}
|
|
843
|
+
if (canonicalModel.startsWith(WORKSPACE_GATEWAY_MODEL_ID_PREFIX)) {
|
|
844
|
+
return canonicalModel;
|
|
845
|
+
}
|
|
842
846
|
throw new HTTPException(422, { message: `model is not available: ${model}` });
|
|
843
847
|
}
|
|
844
848
|
|