@deslop/deploy 0.1.1304 → 0.1.1307

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/dist/server.js +5 -11
  2. package/package.json +2 -2
package/dist/server.js CHANGED
@@ -109349,7 +109349,7 @@ var AiGateway = class AiGateway extends Service$1()("@deslop/runtime/server/ai/A
109349
109349
  });
109350
109350
  const gateway = yield* AiGateway;
109351
109351
  const client = yield* make$7({
109352
- apiUrl: yield* gateway.apiUrl("anthropic"),
109352
+ apiUrl: `${yield* gateway.apiUrl}/connection`,
109353
109353
  transformClient: yield* gateway.authorize(userId)
109354
109354
  });
109355
109355
  return yield* provideService$2(make$6({
@@ -109364,16 +109364,10 @@ var AiGateway = class AiGateway extends Service$1()("@deslop/runtime/server/ai/A
109364
109364
  const gateway = yield* option(String$5("GATEWAY_URL"));
109365
109365
  const local = yield* localAuth;
109366
109366
  const sessions = yield* Sessions;
109367
- const apiUrl = fn("AiGateway.apiUrl")(function* (provider) {
109368
- yield* annotateCurrentSpan("provider", provider);
109369
- return yield* match$7(gateway, {
109370
- onNone: () => fail$7(AiUnavailableError.make({ message: "Start the app with --gateway" })),
109371
- onSome: (url) => succeed$5(`${url}/ai/${provider}${match(provider === "openrouter", {
109372
- onFalse: () => "",
109373
- onTrue: () => "/v1"
109374
- })}`)
109375
- });
109376
- });
109367
+ const apiUrl = pipe(gateway, match$7({
109368
+ onNone: () => fail$7(AiUnavailableError.make({ message: "Start the app with --gateway" })),
109369
+ onSome: (url) => succeed$5(`${url}/ai`)
109370
+ }), withSpan("AiGateway.apiUrl"));
109377
109371
  const authorize = fn("AiGateway.authorize")(function* (userId) {
109378
109372
  yield* annotateCurrentSpan("userId", userId);
109379
109373
  if (local) return identity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deslop/deploy",
3
- "version": "0.1.1304",
3
+ "version": "0.1.1307",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/MP281X/deslop.git",
@@ -40,5 +40,5 @@
40
40
  "engines": {
41
41
  "node": ">=26"
42
42
  },
43
- "fingerprint": "6e8cad637eaa466df29c2613017e4619144da9ce2312f69864d6a1526213a6e6"
43
+ "fingerprint": "69287eb20f8aa792e32c33b7716f4c218234472e3c65fc6f3136e5b406546a67"
44
44
  }