Skip to content

docs: add TypeScript ADK page for message/send JSON-RPC handler - #64

Merged
edenreich merged 3 commits into
mainfrom
claude/issue-62-20260526-2222
May 26, 2026
Merged

edenreich merged 3 commits into
mainfrom
claude/issue-62-20260526-2222

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

Adds typescript-adk.md documenting the synchronous message/send JSON-RPC handler shipped in inference-gateway/typescript-adk#66. The new page covers handler registration via createMessageSendHandler, request shape (MessageSendParams), wire-format Task response (including the internal PENDING -> wire TASK_STATE_SUBMITTED mapping), -32602 validation contract, id semantics (always-mint task id, reuse-or-mint contextId/messageId), the synchronous-from-caller contract, parity with the Go ADK, and a runnable curl + raw JSON-RPC example mirroring tests/server/message-send.test.ts.

Wires the page into the left sidebar (Agent-To-Agent (A2A) group) and the top nav (Protocols menu), and cross-links from a2a.md so newcomers landing on the A2A page discover the TypeScript ADK.

Closes #62

Test plan

  • npm run lint:md
  • npm run format:check (clean for files touched by this PR; pre-existing drift in .github/workflows/infer.yml is unrelated and not modifiable by the bot)
  • npm run build - new page rendered into dist/typescript-adk.html, sitemap updated

Pre-existing CI note

.github/workflows/infer.yml has a single-character prettier formatting drift on main (double-quote vs single-quote on trigger-phrase) introduced by the preceding chore: update infer.yml commit. The Claude bot cannot edit .github/workflows/. A one-shot prettier --write on that file clears the warning independently of this PR.

Generated with Claude Code

Introduces typescript-adk.md documenting the synchronous message/send
handler shipped in inference-gateway/typescript-adk#66: handler
registration via createMessageSendHandler, request shape
(MessageSendParams), wire-format Task response, -32602 validation
contract, id semantics (always-mint task id, reuse-or-mint contextId
and messageId), and the synchronous-from-caller contract. Includes a
runnable curl + raw JSON-RPC example mirroring the integration
fixtures, calls out parity with the Go ADK, and flags the pre-1.0
status of @inference-gateway/adk.

Wires the new page into themeConfig.sidebar (Agent-To-Agent group)
and themeConfig.nav (Protocols menu), and cross-links from a2a.md so
newcomers building TypeScript agents discover the ADK from the A2A
landing page.

Refs #62

Co-authored-by: Eden Reich <[email protected]>
@edenreich

Copy link
Copy Markdown
Contributor Author

@claude CI is failing.

@claude

claude Bot commented May 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @edenreich's task in 2m 19s —— View job


CI failure diagnosis

  • Check CI status for this PR
  • Identify which job(s) are failing and why
  • Determine if the failure is fixable within bot permissions
  • Document fix path

Root cause

The Build job passes. Only the Lint job fails, at the Check formatting step:

[warn] .github/workflows/infer.yml
[warn] Code style issues found in the above file. Run Prettier with --write to fix.

The drift is a single character on .github/workflows/infer.yml:73:

trigger-phrase: "@infer"   # current (double quotes)
trigger-phrase: '@infer'   # prettier wants single quotes (singleQuote: true)

It was introduced by commit e3b3f7d chore: update infer.yml on main and is unrelated to this PR. None of the three files this PR touches (typescript-adk.md, a2a.md, .vitepress/config.ts) fail prettier.

Why I can't fix it from this PR

The GitHub App that runs this action does not have the workflows: write permission, so any commit I push that modifies a file under .github/workflows/ is rejected by GitHub with a refusing to allow a GitHub App to create or update workflow error. The PR description called this out preemptively.

How to clear it

Any maintainer with workflow write can run this once on main (or here) and push:

npx prettier --write .github/workflows/infer.yml
git add .github/workflows/infer.yml
git commit -m "style: prettier single-quote infer.yml trigger-phrase"
git push

Then re-run CI on this PR (the merge commit will pick up the fix from main, or rebase this branch). After that the Lint job will pass and the PR is green.

Alternative

If you want me to keep momentum on the PR, you can also merge as-is — the Build job (the one that actually validates the docs site) is green, and the formatting drift will be cleared the next time anyone touches infer.yml with prettier configured.
• Branch: claude/issue-62-20260526-2222

@edenreich
edenreich merged commit ab41f52 into main May 26, 2026
@edenreich
edenreich deleted the claude/issue-62-20260526-2222 branch May 26, 2026 23:33
github-actions Bot pushed a commit that referenced this pull request May 26, 2026
## [0.6.30](0.6.29...0.6.30) (2026-05-26)

### 📚 Documentation

* add TypeScript ADK page for message/send JSON-RPC handler ([#64](#64)) ([ab41f52](ab41f52)), closes [#62](#62)
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.

[DOCS] Document message/send JSON-RPC method in TypeScript ADK

1 participant