@deslop/scope 0.1.1181 → 0.1.1183
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 +8 -4
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -64995,9 +64995,13 @@ var AuthError = class extends TaggedError()("AuthError", {
|
|
|
64995
64995
|
error: optionalKey(Literals([
|
|
64996
64996
|
"invalid_request",
|
|
64997
64997
|
"invalid_client",
|
|
64998
|
+
"invalid_client_metadata",
|
|
64999
|
+
"invalid_redirect_uri",
|
|
64998
65000
|
"invalid_grant",
|
|
64999
65001
|
"invalid_target",
|
|
65000
65002
|
"invalid_scope",
|
|
65003
|
+
"unsupported_grant_type",
|
|
65004
|
+
"unsupported_response_type",
|
|
65001
65005
|
"access_denied",
|
|
65002
65006
|
"temporarily_unavailable"
|
|
65003
65007
|
])),
|
|
@@ -65111,7 +65115,7 @@ function layerMcpAuth(resource) {
|
|
|
65111
65115
|
const user = yield* result$1(auth.access(headers, resource));
|
|
65112
65116
|
if (isFailure$1(user)) {
|
|
65113
65117
|
if (user.failure.error === "temporarily_unavailable") return unavailable;
|
|
65114
|
-
return text("The access token
|
|
65118
|
+
return text("The access token is invalid or expired; your MCP client refreshes it, and asks you to sign in again only if refreshing fails", {
|
|
65115
65119
|
headers: { "www-authenticate": `${challenge}, error="invalid_token"` },
|
|
65116
65120
|
status: 401
|
|
65117
65121
|
});
|
|
@@ -65187,7 +65191,7 @@ const layerNodeHttpServer = layerConfig(createServer, {
|
|
|
65187
65191
|
port: pipe(Port("PORT"), withDefault(5e3))
|
|
65188
65192
|
});
|
|
65189
65193
|
// package.json
|
|
65190
|
-
var version = "0.1.
|
|
65194
|
+
var version = "0.1.1183";
|
|
65191
65195
|
// src/services/telemetry/schema.ts
|
|
65192
65196
|
var TelemetryError = class extends TaggedError()("TelemetryError", {
|
|
65193
65197
|
cause: optional$6(Defect()),
|
|
@@ -65667,7 +65671,7 @@ var Telemetry = class extends Service$2()("@deslop/scope/services/telemetry/serv
|
|
|
65667
65671
|
trace: fn("Telemetry.trace")(function* (id) {
|
|
65668
65672
|
const traceId = toLowerCase(id);
|
|
65669
65673
|
const records = filter$1(yield* read, (entry) => entry.traceId === traceId);
|
|
65670
|
-
if (isReadonlyArrayEmpty(records)) return yield* TelemetryError.make({ message: "No telemetry
|
|
65674
|
+
if (isReadonlyArrayEmpty(records)) return yield* TelemetryError.make({ message: "No kept telemetry has this trace id: check the id, check ingestion with list_services, or reproduce it if it is older than three days." });
|
|
65671
65675
|
return traceView(records, traceId);
|
|
65672
65676
|
}),
|
|
65673
65677
|
traces: fn("Telemetry.traces")(function* (query) {
|
|
@@ -65704,7 +65708,7 @@ var Telemetry = class extends Service$2()("@deslop/scope/services/telemetry/serv
|
|
|
65704
65708
|
};
|
|
65705
65709
|
// src/tools/contracts.ts
|
|
65706
65710
|
const Tools = make$6(make$7("list_services", {
|
|
65707
|
-
description: "Check ingestion first: every stored service, its runtime, latest run, last event time and entry count. Event/run times use the exporter clock (Unix nanoseconds), not receiver arrival time. Rejected OTLP requests are grouped by route, HTTP status and credential-header presence, never attributed to an app. Rejection counters and since (Unix milliseconds) reset when Scope restarts.
|
|
65711
|
+
description: "Check ingestion first: every stored service, its runtime, latest run, last event time and entry count. Event/run times use the exporter clock (Unix nanoseconds), not receiver arrival time. Rejected OTLP requests are grouped by route, HTTP status and credential-header presence, never attributed to an app. Rejection counters and since (Unix milliseconds) reset when Scope restarts. A missing service has no telemetry kept from the last three days: check the rejections above and its exporter before concluding it sent nothing.",
|
|
65708
65712
|
failure: TelemetryError,
|
|
65709
65713
|
success: IngestionStatus
|
|
65710
65714
|
}).annotate(Readonly, true), make$7("find_traces", {
|