Skip to content

fix(self-inspect): declare jsonSerializable on agent-flagged RPCs#311

Merged
antfu merged 1 commit intovitejs:mainfrom
JianJroh:fix/self-inspect-json-serializable
May 7, 2026
Merged

fix(self-inspect): declare jsonSerializable on agent-flagged RPCs#311
antfu merged 1 commit intovitejs:mainfrom
JianJroh:fix/self-inspect-json-serializable

Conversation

@JianJroh
Copy link
Copy Markdown
Contributor

@JianJroh JianJroh commented May 7, 2026

Description

#301 introduced the agent => jsonSerializable: true contract but missed the 5 agent-flagged RPCs in packages/self-inspect, breaking pnpm play at registration with DF0019 error.

Additional context

if (fn.agent && fn.jsonSerializable !== true)
throw logger.DF0019({ name: fn.name }).throw()

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 7, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@vitejs/devtools@311
npm i https://pkg.pr.new/@vitejs/devtools-kit@311
npm i https://pkg.pr.new/@vitejs/devtools-rolldown@311
npm i https://pkg.pr.new/@vitejs/devtools-self-inspect@311

commit: 72cfb9d

@antfu antfu merged commit fbf4294 into vitejs:main May 7, 2026
6 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.

2 participants