@deslop/auth 0.1.1319 → 0.1.1326
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/server.js +9 -2
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -103823,7 +103823,7 @@ var AiGateway = class AiGateway extends Service$1()("@deslop/runtime/server/ai/A
|
|
|
103823
103823
|
});
|
|
103824
103824
|
const gateway = yield* AiGateway;
|
|
103825
103825
|
const client = yield* make$7({
|
|
103826
|
-
apiUrl: `${yield* gateway.apiUrl}/
|
|
103826
|
+
apiUrl: `${yield* gateway.apiUrl}/anthropic`,
|
|
103827
103827
|
transformClient: yield* gateway.authorize(userId)
|
|
103828
103828
|
});
|
|
103829
103829
|
return yield* provideService$2(make$6({
|
|
@@ -103853,6 +103853,13 @@ var AiGateway = class AiGateway extends Service$1()("@deslop/runtime/server/ai/A
|
|
|
103853
103853
|
}));
|
|
103854
103854
|
};
|
|
103855
103855
|
// ../../packages/runtime/src/server/mcp.ts
|
|
103856
|
+
const McpStream = middleware()((app) => gen(function* () {
|
|
103857
|
+
if ((yield* HttpServerRequest).method === "POST") {
|
|
103858
|
+
const subscription = yield* option$1(schemaBodyJson(Struct$2({ method: Literal("subscriptions/listen") })));
|
|
103859
|
+
if (isSome(subscription)) yield* annotateCurrentSpan("rpc.stream", true);
|
|
103860
|
+
}
|
|
103861
|
+
return yield* app;
|
|
103862
|
+
}));
|
|
103856
103863
|
const layerStructuredTools = effect(McpServer, gen(function* () {
|
|
103857
103864
|
const registry = yield* McpServer;
|
|
103858
103865
|
return McpServer.of({
|
|
@@ -104730,7 +104737,7 @@ function layerMcp(options) {
|
|
|
104730
104737
|
],
|
|
104731
104738
|
registrations: provide$2(options.registrations, layerStructuredTools),
|
|
104732
104739
|
version: metadata.version
|
|
104733
|
-
}), HttpAuth.layer);
|
|
104740
|
+
}), merge$3(HttpAuth.layer, McpStream.layer));
|
|
104734
104741
|
}));
|
|
104735
104742
|
}
|
|
104736
104743
|
const layerNodeHttpServer = layerConfig(createServer, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1326",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": ">=26"
|
|
35
35
|
},
|
|
36
|
-
"fingerprint": "
|
|
36
|
+
"fingerprint": "392147b7384741df0ef3f0f1173a0dbf73201015b7bce95e9c2ba7b244ed408d"
|
|
37
37
|
}
|