Skip to content

feat: agent package - #1159

Merged
webfansplz merged 2 commits into
mainfrom
feat/agentic
Oct 15, 2026
Merged

webfansplz merged 2 commits into
mainfrom
feat/agentic

Conversation

@webfansplz

Copy link
Copy Markdown
Member

No description provided.

Add @vue/devtools-agent: MCP tools over the kit runtime for apps,
component tree and state, inspectors and Pinia, router, value
expansion, and guarded state edits, plus Devframe page/host adapters
and the vue-devtools-agent stdio MCP CLI.

Kit: paginated state reads, component search, and an opt-in
requireEditable flag on the edit commands.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 15, 2026 01:28
@netlify

netlify Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vue-devtools-docs canceled.

Name Link
🔨 Latest commit 7e588ac
🔍 Latest deploy log https://app.netlify.com/projects/vue-devtools-docs/deploys/6ad037374488a26ef869184d

@pkg-pr-new

pkg-pr-new Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/vuejs/devtools/@vue/devtools-agent@1159
npm i https://pkg.pr.new/vuejs/devtools/@vue/devtools-api@1159
npm i https://pkg.pr.new/vuejs/devtools/@vue/devtools-kit@1159
npm i https://pkg.pr.new/vuejs/devtools/vite-plugin-vue-devtools@1159

commit: 7e588ac

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved app-isolation and state-reading correctness issues prevent safe approval.

5 open findings
What changed in this PR

Adds @vue/devtools-agent, exposing Vue runtime inspection and guarded state editing through MCP on the Vite host.

Changes:

  • Introduces agent tools, Devframe adapters, and a CLI connector.
  • Extends runtime queries with pagination, direct field reads, and component search.
  • Adds documentation, tests, and package integration.
File Description
vitest.config.ts Resolves agent source for tests.
tests/​unit/​vite/​dock-registration.test.ts Tests host registration and cleanup.
tests/​unit/​vite/​client-lifecycle.test.ts Tests page registration lifecycle.
tests/​unit/​runtime/​state-isolation.test.ts Handles missing expansion results.
tests/​smoke/​agent.test.ts Exercises end-to-end MCP integration.
tests/​fixtures/​vite-smoke/​App.vue Enables agent fixtures conditionally.
tests/​fixtures/​vite-smoke/​AgentFixtures.vue Adds large and editable state fixtures.
pnpm-workspace.yaml Adds agent dependency catalog entries.
pnpm-lock.yaml Records dependency resolutions.
packages/​vite/​src/​utils/​dock/​registration.ts Registers host tools and eager loading.
packages/​vite/​src/​client.ts Manages browser agent sessions.
packages/​vite/​package.json Adds agent dependency and host requirement.
packages/​kit/​src/​runtime/​state/​pagination.ts Implements byte-budgeted state pages.
packages/​kit/​src/​runtime/​state/​index.ts Adds paginated and direct state reads.
packages/​kit/​src/​runtime/​handlers/​shared.ts Adds pagination and editability helpers.
packages/​kit/​src/​runtime/​handlers/​inspectors.ts Adds inspector field reads and edit guards.
packages/​kit/​src/​runtime/​handlers/​components.ts Registers new component query paths.
packages/​kit/​src/​runtime/​components.ts Adds app-wide component search.
packages/​kit/​src/​protocol/​requests.ts Extends runtime request contracts.
packages/​kit/​src/​protocol/​messages.ts Defines pagination and field results.
packages/​kit/​src/​codec/​encode.ts Supports collection offsets and selected keys.
packages/​client/​src/​composables/​devtools-state.ts Handles missing expanded values.
packages/​agent/​tsdown.config.ts Configures agent package builds.
packages/​agent/​tests/​tools.test.ts Tests tool contracts and routing.
packages/​agent/​tests/​state-limits.test.ts Tests state preview limits.
packages/​agent/​tests/​state-fields.test.ts Tests field reads and guarded edits.
packages/​agent/​tests/​session.test.ts Tests lazy session lifecycle.
packages/​agent/​tests/​pagination.test.ts Tests pagination and continuation behavior.
packages/​agent/​tests/​handles.test.ts Tests handle expiration and recovery.
packages/​agent/​tests/​component-search.test.ts Tests component search.
packages/​agent/​src/​types.ts Defines host connection types.
packages/​agent/​src/​session.ts Implements lazy runtime connections.
packages/​agent/​src/​node.ts Exports host registration.
packages/​agent/​src/​mcp/​tools.ts Defines inspection and editing tools.
packages/​agent/​src/​mcp/​schemas.ts Defines tool output schemas.
packages/​agent/​src/​mcp/​page.ts Registers document-specific tools.
packages/​agent/​src/​mcp/​host.ts Registers host discovery guidance.
packages/​agent/​src/​index.ts Exports the public agent API.
packages/​agent/​src/​devframe.ts Exports browser integration helpers.
packages/​agent/​src/​cli.ts Implements the stdio connector command.
packages/​agent/​README.md Documents setup and tool usage.
packages/​agent/​package.json Defines package exports and dependencies.
packages/​agent/​LICENSE Adds the package license.
package.json Integrates agent smoke testing.
docs/​guide/​agents.md Adds the agent integration guide.
docs/​.vitepress/​config.ts Links the new guide.
AGENTS.md Documents agent architecture and scope.
.github/​workflows/​release-commit.yml Includes agent commit releases.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/kit/src/runtime/handlers/inspectors.ts Outdated
Comment thread vitest.config.ts
Comment thread packages/kit/src/runtime/state/index.ts Outdated
Comment thread packages/kit/src/runtime/state/index.ts
Comment thread packages/kit/src/runtime/state/index.ts Outdated
@webfansplz
webfansplz merged commit ba4ac00 into main Oct 15, 2026
8 checks passed
@webfansplz
webfansplz deleted the feat/agentic branch October 15, 2026 04:34
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