@thotischner/observability-mcp 3.3.2 → 3.5.0
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/auth/credentials.d.ts +10 -0
- package/dist/auth/credentials.js +7 -0
- package/dist/auth/credentials.test.js +16 -1
- package/dist/auth/password-policy.test.js +14 -5
- package/dist/context.d.ts +7 -0
- package/dist/context.js +1 -0
- package/dist/context.test.js +6 -0
- package/dist/enrich/ip-dataset.d.ts +14 -2
- package/dist/enrich/ip-dataset.js +115 -14
- package/dist/enrich/ip-dataset.test.js +81 -5
- package/dist/index.js +4 -2
- package/dist/postmortem/synthesizer.d.ts +24 -0
- package/dist/postmortem/synthesizer.js +55 -2
- package/dist/postmortem/synthesizer.test.js +27 -0
- package/dist/scim/query.d.ts +32 -0
- package/dist/scim/query.js +73 -0
- package/dist/scim/query.test.d.ts +1 -0
- package/dist/scim/query.test.js +71 -0
- package/dist/scim/routes.js +35 -12
- package/dist/tools/enrich-ips.js +8 -4
- package/dist/tools/enrich-ips.test.js +11 -0
- package/dist/tools/generate-postmortem.d.ts +2 -0
- package/dist/tools/generate-postmortem.js +52 -4
- package/dist/tools/generate-postmortem.test.d.ts +1 -0
- package/dist/tools/generate-postmortem.test.js +72 -0
- package/dist/tools/handlers.test.js +30 -0
- package/dist/tools/list-services.js +28 -1
- package/dist/tools/list-sources.js +7 -1
- package/dist/tools/query-logs.js +1 -1
- package/dist/tools/query-metrics.js +1 -1
- package/dist/tools/topology.js +19 -0
- package/dist/tools/topology.test.js +10 -0
- package/package.json +1 -1
|
@@ -212,6 +212,16 @@ describe("get_blast_radius tool", () => {
|
|
|
212
212
|
const out = parseTool(result);
|
|
213
213
|
assert.match(out.error, /No resource found/);
|
|
214
214
|
});
|
|
215
|
+
it("no topology connector → explicit note, not a misleading 'resource not found' (R5)", async () => {
|
|
216
|
+
// An empty registry has no topology source. The cause is "no graph", not
|
|
217
|
+
// "wrong name" — the response must say so rather than blame the resource.
|
|
218
|
+
const reg = new ConnectorRegistry(new PluginLoader());
|
|
219
|
+
const result = await getBlastRadiusHandler(reg, { resource: "anything" });
|
|
220
|
+
assert.equal(result.isError, true);
|
|
221
|
+
const out = parseTool(result);
|
|
222
|
+
assert.match(out.note, /No topology-capable connector is configured/i);
|
|
223
|
+
assert.ok(!out.error || !/No resource found/.test(out.error), "must not misattribute to a not-found name");
|
|
224
|
+
});
|
|
215
225
|
it("uses ownership root, not direct owner, when grouping co-tenants", async () => {
|
|
216
226
|
// api-aaa is OWNED_BY a ReplicaSet which is OWNED_BY a Deployment.
|
|
217
227
|
// The blast-radius should bucket api-aaa under the Deployment, not the RS.
|
package/package.json
CHANGED