feat(core): add configure-ai-agents command#32825
Conversation
|
View your CI Pipeline Execution ↗ for commit 2e82d33
☁️ Nx Cloud last updated this comment at |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Nx Cloud has identified a possible root cause for your failed CI:
The task completed successfully with exit code 0 and generated all required documentation. The final message "! 📄 Documentation has been modified, you need to commit the changes. !" is not an error but an informational note indicating that documentation files were updated as expected during the generation process.
The change to docs/generated/devkit/TargetDependencyConfig.md appears to be an unrelated documentation update that occurred during the normal documentation generation process, not a failure caused by the PR's code changes. This type of documentation drift is common when the generation process updates API documentation based on current codebase state.
The task achieved its intended purpose of generating documentation for the new configure-ai-agents command and updating related documentation files. No actual errors or failures occurred during execution.
A code change would likely not resolve this issue, so no action was taken.
⚙️ An Nx Cloud workspace admin can disable these reviews in workspace settings.
63cac18 to
bbb5980
Compare
46d976a to
ed6a324
Compare
ed6a324 to
28a941e
Compare
|
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
This pull request introduces support for configuring specific AI agents in Nx workspaces, allowing users to select which agents to set up and generating only the relevant configuration files for those agents. It also updates documentation, schemas, and tests to reflect this new, more flexible approach.
The most important changes are:
Agent Selection and Configuration:
Added the ability to specify which AI agents to configure via an
agentsarray, both in the setup schema (schema.json) and theCreateWorkspaceOptionstype. The supported agents are:claude,gemini,codex,cursor, andcopilot. The generator only creates configuration files for the selected agents, rather than all by default. [1] [2] [3]Implemented prompt logic for selecting AI agents interactively during workspace creation, and exposed available agent types for use in prompts and configuration. [1] [2]
File Generation Logic:
Refactored the
setupAiAgentsGeneratorimplementation to generate only the files relevant to the specified agents (e.g.,CLAUDE.md,.mcp.jsonfor Claude;.gemini/settings.jsonfor Gemini;AGENTS.mdfor others), and to append to existing files rather than overwrite them. [1] [2]Added new utility functions for determining config file paths and reading agent-specific configuration, improving maintainability and clarity of file handling logic.