@deslop/scope 0.1.1173 → 0.1.1179
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 +11 -6
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -65065,7 +65065,7 @@ var Auth = class Auth extends Service$2()("@deslop/runtime/auth/service/Auth") {
|
|
|
65065
65065
|
const url = yield* pipe(String$1("AUTH_URL"), withDefault(AUTH_URL));
|
|
65066
65066
|
const client = filterStatusOk(yield* HttpClient);
|
|
65067
65067
|
const origins = [
|
|
65068
|
-
|
|
65068
|
+
AUTH_URL,
|
|
65069
65069
|
"https://portfolio.mp281x.xyz",
|
|
65070
65070
|
...map$5(Resource$1.literals, (identifier) => new URL(identifier).origin)
|
|
65071
65071
|
];
|
|
@@ -65162,25 +65162,30 @@ function layerMcp(options) {
|
|
|
65162
65162
|
v2025_11_25,
|
|
65163
65163
|
v2025_06_18
|
|
65164
65164
|
]
|
|
65165
|
-
}), provide$2(layerMcpAuth(resource))), add("GET", "/.well-known/oauth-protected-resource/mcp",
|
|
65166
|
-
authorization_servers: [`${
|
|
65165
|
+
}), provide$2(layerMcpAuth(resource))), add("GET", "/.well-known/oauth-protected-resource/mcp", succeed$4(jsonUnsafe({
|
|
65166
|
+
authorization_servers: [`${AUTH_URL}/api/auth`],
|
|
65167
65167
|
bearer_methods_supported: ["header"],
|
|
65168
65168
|
resource,
|
|
65169
65169
|
scopes_supported: ["deslop"]
|
|
65170
65170
|
}))));
|
|
65171
65171
|
}
|
|
65172
|
-
layer({
|
|
65172
|
+
mergeAll$1(layer({
|
|
65173
|
+
cacheControl: "public, max-age=31536000, immutable",
|
|
65174
|
+
prefix: "/assets",
|
|
65175
|
+
root: fileURLToPath(new URL("./client/assets", import.meta.url))
|
|
65176
|
+
}), layer({
|
|
65177
|
+
cacheControl: "no-cache",
|
|
65173
65178
|
index: "index.html",
|
|
65174
65179
|
root: fileURLToPath(new URL("./client", import.meta.url)),
|
|
65175
65180
|
spa: true
|
|
65176
|
-
});
|
|
65181
|
+
}));
|
|
65177
65182
|
const layerNodeHttpServer = layerConfig(createServer, {
|
|
65178
65183
|
gracefulShutdownTimeout: succeed("1500 millis"),
|
|
65179
65184
|
host: pipe(String$1("HOST"), withDefault("0.0.0.0")),
|
|
65180
65185
|
port: pipe(Port("PORT"), withDefault(5e3))
|
|
65181
65186
|
});
|
|
65182
65187
|
// package.json
|
|
65183
|
-
var version = "0.1.
|
|
65188
|
+
var version = "0.1.1179";
|
|
65184
65189
|
// src/services/telemetry/schema.ts
|
|
65185
65190
|
var TelemetryError = class extends TaggedError()("TelemetryError", {
|
|
65186
65191
|
cause: optional$6(Defect()),
|