Skip to content

Devtools not working as expected in a monorepo #11196

@gt-codes

Description

@gt-codes

Description

When using a monorepo, running the command npx @ai-sdk/devtools in an app that doesn't have devtools installed breaks. I get the error sh: devtools: command not found.

Devtools are used in the ai package where I export a list of agents and models and those models have middleware in them. In the www app, i'm calling those agents that we are importing from that ai package.

  • if I run the command at the root, i get empty runs
  • if i run the command in apps/www and i don't have devtools package installed there, i get a CLI error.
  • if i run the command in apps/www and i do have devtools package installed there, i get proper devtools

AI SDK Version

  • "@ai-sdk/devtools": "0.0.1-beta.1"
  • "ai": "6.0.0-beta.148",

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions