feat: add Trae AI agent support #1392
Open
+74
−18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR integrates the Trae AI agent into the Spec Kit ecosystem. It enables full support across the CLI, context update scripts (Bash/PowerShell), release automation, and documentation.
Changes
🐍 CLI & Configuration
src/specify_cli/__init__.py: AddedtraetoAGENT_CONFIGas a supported IDE-based agent (configured to use.trae/folder).🛠 Core Scripts
scripts/bash/update-agent-context.sh: Added logic to handle thetraeargument and update context files in.trae/rules/specify-rules.md.scripts/powershell/update-agent-context.ps1: Implemented equivalenttraesupport for Windows users.📦 Release Automation
create-release-packages.sh(Bash):create-release-packages.ps1(PowerShell): Updated to generate Trae agent packages alongside other agents.create-github-release.sh: Configured to include Trae artifacts (spec-kit-template-trae-*.zip) in official GitHub releases.📚 Documentation
AGENTS.md: Documented Trae as a supported agent, including its directory convention (.trae/rules/).README.md: Added Trae to the list of supported AI agents.Verification
specify initlogic via CLI configuration check.update-agent-contextscripts on both Bash and PowerShell.