Skip to content

feat: add openapi.json to llms.txt optional links#250

Merged
petradonka merged 3 commits into
mainfrom
petra/aeo-openapi-json
Jun 24, 2026
Merged

feat: add openapi.json to llms.txt optional links#250
petradonka merged 3 commits into
mainfrom
petra/aeo-openapi-json

Conversation

@petradonka

Copy link
Copy Markdown
Collaborator

Adds the JSON format of the Oz Agent API spec to the optionalLinks config in astro.config.mjs, alongside the existing YAML entry. Both will appear in the ## Optional section of docs.warp.dev/llms.txt, which gets inlined into warp.dev/llms.txt verbatim.

Part of the AEO improvement work — helps agents and scanners discover the spec by name.

Co-Authored-By: Oz oz-agent@warp.dev

petradonka and others added 2 commits June 23, 2026 12:20
- Add scripts/generate-openapi-json.mjs to convert developers/agent-api-openapi.yaml → public/openapi.json at build time
- Add prebuild and predev npm scripts so the JSON is always regenerated before any build or dev run
- Gitignore public/openapi.json (generated artifact — Vercel will regenerate it via prebuild on every deploy)
- Add server-rendered endpoint index to src/pages/api.astro so crawlers and AI agents can read API content without executing JavaScript

Co-Authored-By: Oz <oz-agent@warp.dev>
Adds the JSON format of the Oz Agent API spec alongside the existing YAML
entry in the starlightLlmsTxt optionalLinks config. Both will appear in
the ## Optional section of docs.warp.dev/llms.txt, which gets inlined
verbatim into warp.dev/llms.txt.

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label Jun 24, 2026
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jun 24, 2026 11:09am

Request Review

@oz-for-oss

oz-for-oss Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

@petradonka

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR adds a generated JSON copy of the Oz Agent API OpenAPI spec, exposes it through the llms.txt optional links, and adds a server-rendered API endpoint index to the standalone API page for crawlers and agents. I did not find correctness, security, docs-structure, or spec-alignment issues that need changes.

Concerns

  • No approved or repository spec context was provided, so there were no spec commitments to compare against.
  • Local typecheck could not be completed in this sandbox because dependencies are not installed (astro was not available), but static review did not identify issues in the changed lines.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@petradonka petradonka merged commit 88b2819 into main Jun 24, 2026
8 checks passed
@petradonka petradonka deleted the petra/aeo-openapi-json branch June 24, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants