Skip to content

feat(core): add agent request guard - #317

Merged
vamgan merged 1 commit into
mainfrom
feat/agent-request-guard
Jun 6, 2026
Merged

vamgan merged 1 commit into
mainfrom
feat/agent-request-guard

Conversation

@vamgan

@vamgan vamgan commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add isAskableAgentRequest() for validating server-side JSON bodies
  • export the guard from core
  • document API route validation in core docs and the AI SDK example

Tests

  • npm test -w @askable-ui/core -- agent-request.test.ts
  • npm run build -w @askable-ui/core
  • npm run build:versioned --prefix site/docs
  • git diff --check

@vercel

vercel Bot commented Jun 6, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
askable Ready Ready Preview, Comment Jun 6, 2026 7:30pm

@pkg-pr-new

pkg-pr-new Bot commented Jun 6, 2026

Copy link
Copy Markdown

Open in StackBlitz

@askable-ui/context

npm i https://pkg.pr.new/@askable-ui/context@317

@askable-ui/core

npm i https://pkg.pr.new/@askable-ui/core@317

@askable-ui/create-app

npm i https://pkg.pr.new/@askable-ui/create-app@317

@askable-ui/mcp

npm i https://pkg.pr.new/@askable-ui/mcp@317

@askable-ui/react

npm i https://pkg.pr.new/@askable-ui/react@317

@askable-ui/react-native

npm i https://pkg.pr.new/@askable-ui/react-native@317

@askable-ui/svelte

npm i https://pkg.pr.new/@askable-ui/svelte@317

@askable-ui/vue

npm i https://pkg.pr.new/@askable-ui/vue@317

commit: bef5871

@vamgan
vamgan merged commit 658f7be into main Jun 6, 2026
9 checks passed
@vamgan
vamgan deleted the feat/agent-request-guard branch June 6, 2026 19:32

This branch was successfully deployed

1 active deployment
Preview — bef58710 Deployed Jun 6, 2026 by vercel[bot]
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