@deslop/gateway 0.1.1258 → 0.1.1259

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 +1 -12
  2. package/package.json +2 -2
package/dist/server.js CHANGED
@@ -91556,7 +91556,6 @@ var AiGateway = class AiGateway extends Service$1()("@deslop/runtime/ai/service/
91556
91556
  const gateway = yield* option(String$5("GATEWAY_URL"));
91557
91557
  const local = yield* localAuth;
91558
91558
  const sessions = yield* Sessions;
91559
- yield* (yield* KeyValueStore).remove("ai-gateway-grants");
91560
91559
  return AiGateway.of({
91561
91560
  apiUrl: (provider) => match$8(gateway, {
91562
91561
  onNone: () => fail$7(AiUnavailable.make({ message: "Start the app with --gateway" })),
@@ -92037,7 +92036,6 @@ const failed$1 = mapError$2((cause) => AuthError.make({
92037
92036
  const make = gen(function* () {
92038
92037
  const kv = yield* KeyValueStore;
92039
92038
  const keys = toSchemaStore(kv, ArraySchema(AiStoredKey));
92040
- yield* kv.remove("ai-grants");
92041
92039
  const usage = toSchemaStore(kv, ArraySchema(AiUsageEntry));
92042
92040
  const auth = yield* Auth;
92043
92041
  const local = yield* localAuth;
@@ -118989,16 +118987,7 @@ var Connections = class Connections extends Service$1()("@deslop/gateway/service
118989
118987
  return exists(authUrl, (issuer) => target.protocol === "https:" && isEmpty$1(target.port) && siteOf(target) === siteOf(issuer) && contains$1(authorizationServers, new URL("/api/auth", issuer).href));
118990
118988
  }
118991
118989
  const store = toSchemaStore(yield* KeyValueStore, ConnectionStore);
118992
- const cleaned = map$9(getOrElse(yield* store.get("servers"), () => ({})), (connection) => {
118993
- if (!deslop(connection.url, toArray$2(fromUndefinedOr(connection.oauth?.metadata.issuer)))) return connection;
118994
- return {
118995
- ...omit$1(connection, ["oauth", "error"]),
118996
- link: { _tag: "Connected" },
118997
- mode: "deslop"
118998
- };
118999
- });
119000
- yield* store.set("servers", cleaned);
119001
- const state = yield* make$42(cleaned);
118990
+ const state = yield* make$42(getOrElse(yield* store.get("servers"), () => ({})));
119002
118991
  const admins = yield* adminIds;
119003
118992
  const traffic = yield* sliding(64);
119004
118993
  const admin = fnUntraced(function* (user) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deslop/gateway",
3
- "version": "0.1.1258",
3
+ "version": "0.1.1259",
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": "e82f9750b02cc65bf7afc26a1dea9f7bf14854db99a187c2740d20d54b400727"
36
+ "fingerprint": "92d547be9985d2951216ed107661f3232ef8607d35328de88f9e905a6cce9afe"
37
37
  }