Skip to content

fixup(langgraph): canonical regenerate JSDoc to unblock api-docs gate#208

Merged
blove merged 1 commit into
mainfrom
fix/regenerate-jsdoc-canonical
May 7, 2026
Merged

fixup(langgraph): canonical regenerate JSDoc to unblock api-docs gate#208
blove merged 1 commit into
mainfrom
fix/regenerate-jsdoc-canonical

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 7, 2026

Summary

PR #207 was merged via admin override while the stale-api-docs CI gate was red. The gate is now failing on main.

The shorter JSDoc on LangGraphAgent.regenerate (added in #207) causes TypeDoc to emit a description that diverges from the committed apps/website/content/docs/agent/api/api-docs.json. CI's git diff --exit-code check on the regenerated api-docs blocks any subsequent green build until this is fixed.

This PR matches the canonical JSDoc text from libs/chat/src/lib/agent/agent.ts:38-46 (where the regenerate method is originally declared on the parent Agent interface) so the regenerated docs are byte-identical to what's already on main.

Why not regenerate and commit api-docs instead: the implementation's intent is to inherit the parent contract's docstring, not to introduce a new (less-detailed) one. Matching JSDoc keeps a single source of truth.

Test plan

  • nx run langgraph:test (29 specs pass)
  • nx run langgraph:lint (0 errors)
  • CI Website lint/build green (api-docs gate passes)

🤖 Generated with Claude Code

PR #207 merged with admin override while CI's stale-api-docs gate was
red — the gate is now red on main. The shorter JSDoc on
LangGraphAgent.regenerate (added in #207) caused TypeDoc to emit a
description that diverges from the committed agent/api/api-docs.json.

Match the canonical text from libs/chat/src/lib/agent/agent.ts:38-46
so the regenerated docs are byte-identical to what's already on main.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

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

Project Deployment Actions Updated (UTC)
cacheplane Ready Ready Preview, Comment May 7, 2026 8:30pm

Request Review

@blove blove merged commit 218dcbc into main May 7, 2026
14 checks passed
@blove blove deleted the fix/regenerate-jsdoc-canonical branch May 7, 2026 20:35
blove added a commit that referenced this pull request May 8, 2026
Documents the fix landed in #209 (regenerate via as_node='__start__'),
the public-surface addition from #207/#208 (LangGraphAgent.regenerate
declared + canonical JSDoc), and the new optional asNode option on
AgentTransport.updateState.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant