Skip to content

ai 4 → v6: what changes in perfagent #21

Description

@SohamJa1n

Was looking at perfagent ahead of an AI SDK upgrade. I ran a scan of current main (f28760e) against the 2026-09-13.1 change feed - you're on ai 4.2.0, and a few things change across 5 and 6:

  • app/api/[[...route]]/route.ts:1 - convertToCoreMessages renamed in v5 (deprecation), removed in v6 (hard break); the data stream API on the same import was replaced by UI message streams in v5 (hard break)
  • lib/ai/mastra/toolsetTransformer.ts:269:7 - tool definitions name their schema inputSchema instead of parameters in v5 (hard break)
  • lib/ai/mastra/workflows/cwvInsights.ts:1 - CoreMessage and its role-specific types renamed in v5, removed in v6 (hard break)

Full disclosure: I build the scanner (Emendant) - the findings above are yours to use either way.

If it's useful, I can do a free 20-minute check of the repo with you - runs locally, no repository access needed. Session or async instructions?

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions