Skip to content

Commit fbf4294

Browse files
authored
fix(self-inspect): declare jsonSerializable on agent-flagged RPCs (#311)
1 parent 64d109d commit fbf4294

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

packages/self-inspect/src/node/rpc/functions/get-devtools-plugins.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { defineRpcFunction } from '@vitejs/devtools-kit'
44
export const getDevtoolsPlugins = defineRpcFunction({
55
name: 'devtoolskit:self-inspect:get-devtools-plugins',
66
type: 'query',
7+
jsonSerializable: true,
78
agent: {
89
description: 'List every Vite plugin involved in the current project, flagging which ones export a `devtools` hook (and whether that hook sets up any devtools surface). Read-only.',
910
title: 'List devtools plugins',

packages/self-inspect/src/node/rpc/functions/get-docks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { defineRpcFunction } from '@vitejs/devtools-kit'
33
export const getDocks = defineRpcFunction({
44
name: 'devtoolskit:self-inspect:get-docks',
55
type: 'query',
6+
jsonSerializable: true,
67
agent: {
78
description: 'List every UI dock/panel registered on the devtools. Each entry includes id, title, icon, category, and how the dock is rendered (iframe, action, custom-render, launcher). Read-only.',
89
title: 'List docks',

0 commit comments

Comments
 (0)