Skip to content

Add frontend chat REST adapter#167

Merged
chubes4 merged 2 commits into
mainfrom
frontend-chat-rest-adapter
May 13, 2026
Merged

Add frontend chat REST adapter#167
chubes4 merged 2 commits into
mainfrom
frontend-chat-rest-adapter

Conversation

@chubes4
Copy link
Copy Markdown
Contributor

@chubes4 chubes4 commented May 12, 2026

Summary

  • Adds a generic POST /agents-api/v1/chat REST adapter that dispatches frontend chat turns through the canonical agents/chat ability.
  • Composes permission through the existing chat permission filter plus current-principal agent access checks, with host-level REST filters for policy and input shaping.
  • Adds pure-PHP smoke coverage for route registration, dispatch payloads, access denial, filterability, and invalid input handling.

Testing

  • php -l agents-api.php && php -l src/Channels/register-frontend-chat-rest-route.php && php -l tests/agents-api-smoke-helpers.php && php -l tests/frontend-chat-rest-smoke.php
  • php tests/frontend-chat-rest-smoke.php
  • composer test
  • homeboy lint --path /Users/chubes/Developer/agents-api@frontend-chat-rest-adapter --extension wordpress --errors-only
  • homeboy test --path /Users/chubes/Developer/agents-api@frontend-chat-rest-adapter --extension wordpress

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Implemented the generic REST adapter, smoke coverage, simplify cleanup, and verification commands for Chris to review.

@chubes4 chubes4 merged commit d7f6351 into main May 13, 2026
2 checks passed
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