@deslop/scope 0.1.1172 → 0.1.1177

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/README.md CHANGED
@@ -14,9 +14,9 @@ Trusted local exporters use `http://127.0.0.1:4318/v1/traces` and `/v1/logs` wit
14
14
 
15
15
  ## Connection diagnostics
16
16
 
17
- Stored OAuth credentials do not prove the MCP connection works. Check the client's MCP status and tool discovery: Scope exposes the six tools below. If startup reports `OAuth authorization required`, sign in again with that client's login command above. An auth-store reset invalidates previously saved credentials.
17
+ Stored OAuth credentials do not prove the MCP connection works. Check the client's MCP status and tool discovery: Scope exposes the tools below. If startup reports `OAuth authorization required`, sign in again with that client's login command above. An auth-store reset invalidates previously saved credentials.
18
18
 
19
- Open the printed authorization URL in a browser on the same worker as the client. Leave it waiting; sign in at https://auth.mp281x.xyz in your own browser and approve the matching request. The worker's browser completes its localhost callback. Do not move the callback to the phone.
19
+ Open the printed authorization URL in a browser on the same worker as the client. Leave it waiting: it shows a QR code and a code, which you scan with a phone where you are signed in or enter at https://auth.mp281x.xyz. The worker's browser completes its localhost callback. Do not move the callback to the phone.
20
20
 
21
21
  The public `/.well-known/oauth-protected-resource/mcp` document names the authorization server. A request without credentials gets a 401 discovery challenge; a rejected bearer adds `error="invalid_token"` and requires sign-in again. An unavailable authorization server returns 503 with `Retry-After`, not a false invalid-token challenge.
22
22
 
@@ -29,9 +29,7 @@ The public `/.well-known/oauth-protected-resource/mcp` document names the author
29
29
  | `measure_latency` | Span count, errors and p50, p95 and max latency over the whole window |
30
30
  | `read_trace` | One stored trace whole, including earlier runs, with parent order, offsets and logs |
31
31
 
32
- `find_traces`, `find_spans`, `find_logs` and `measure_latency` take `service`, `operation`, `traceId`, `text`, `errors`, `since` (`"10 minutes"` by default) and `runs`. Paged tools add `limit` and `offset`; trace/span searches add `sort`.
33
-
34
- Searches default to `runs: "current"`: the latest process, page load or app launch per service. When a service exports a newer run, default searches hide every older trace it took part in. Use `{"runs":"all","since":"1 hour"}` to investigate across restarts or deployments. `read_trace` opens the complete retained trace by ID regardless of run. Entries persist under `~/.deslop/scope/entries/` for three days, by their exporter time. `text` searches span names, log messages, attributes, status and events, not ids or resources; pages hold 20 entries unless `limit` says otherwise.
32
+ Entries persist under `~/.deslop/scope/entries/` for three days, by their exporter time.
35
33
 
36
34
  ## Ingestion health
37
35
 
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
- new URL(url).origin,
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", map$2(pipe(String$1("AUTH_URL"), withDefault(AUTH_URL)), (url) => jsonUnsafe({
65166
- authorization_servers: [`${url}/api/auth`],
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.1172";
65188
+ var version = "0.1.1177";
65184
65189
  // src/services/telemetry/schema.ts
65185
65190
  var TelemetryError = class extends TaggedError()("TelemetryError", {
65186
65191
  cause: optional$6(Defect()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deslop/scope",
3
- "version": "0.1.1172",
3
+ "version": "0.1.1177",
4
4
  "description": "An Effect development debugger: an OTLP/HTTP JSON receiver whose traces and logs agents query over MCP.",
5
5
  "repository": {
6
6
  "type": "git",