Publish integrations.sh discovery metadata#10
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: OpenAPI route bytes mismatch
- The
/openapi.jsonroute now serializes with two-space indentation and a trailing newline so its response bytes match the committedlib/openapi/generated.jsonartifact.
- The
Or push these changes by commenting:
@cursor push 3d87b82feb
Preview (3d87b82feb)
diff --git a/app/openapi.json/route.ts b/app/openapi.json/route.ts
--- a/app/openapi.json/route.ts
+++ b/app/openapi.json/route.ts
@@ -2,7 +2,7 @@
export const dynamic = "force-static";
-const BODY = JSON.stringify(spec);
+const BODY = `${JSON.stringify(spec, null, 2)}\n`;
export function GET(): Response {
return new Response(BODY, {You can send follow-ups to the cloud agent here.
Reviewed by Cursor Bugbot for commit 805e270. Configure here.
| const BODY = JSON.stringify(spec); | ||
|
|
||
| export function GET(): Response { | ||
| return new Response(BODY, { |
There was a problem hiding this comment.
OpenAPI route bytes mismatch
Medium Severity
The GET /openapi.json endpoint re-serializes the imported generated.json using JSON.stringify(). This produces a compact response that differs byte-for-byte from the pretty-printed, committed lib/openapi/generated.json file. This means the served content doesn't match the canonical artifact validated by spec:check, unlike /api/spec.yaml.
Reviewed by Cursor Bugbot for commit 805e270. Configure here.



summary
/.well-known/integrations.json/openapi.jsonpathjust-htmlskill through the Agent Skills well-known discovery format with a verified content digestThe repository does not ship MCP, GraphQL, or product CLI surfaces, so no declarations were added for those formats. It also has one API surface, so an RFC 9727 API catalog does not apply.
tests
npx tsc --noEmitnpm testnpm run spec:checknpm run buildnpx --yes @redocly/cli lint lib/openapi/generated.json(valid; 3 existing warnings)Note
Low Risk
New static read-only discovery routes and generated spec artifacts; no changes to auth, document APIs, or data handling.
Overview
Adds machine-readable discovery for agents and integration platforms: integrations.sh v3 at
/.well-known/integrations.json(HTTP API surface, Bearer API key, links tollms.txtandopenapi.json), canonical OpenAPI 3.1 JSON atGET /openapi.json(YAML remains at/api/spec.yaml), and Agent Skills discovery (index.json+ servedSKILL.mdwith a sha256 digest tied to the skill body).The OpenAPI pipeline now emits a third committed artifact,
lib/openapi/generated.json, alongside the existing YAML/TS outputs;spec-sync,spec:check, and docs/README/homepage/skill copy point at/openapi.jsonas the primary spec URL.SKILL_MARKDOWNis centralized inlib/skill-content.ts(used bygen-skilland the well-known skill route).lib/discovery.test.tsasserts integrations shape, OpenAPI JSON headers/content, and digest consistency.Reviewed by Cursor Bugbot for commit 805e270. Bugbot is set up for automated code reviews on this repo. Configure here.