mirror of
https://github.com/github/spec-kit.git
synced 2026-07-06 05:53:12 +08:00
* 修改trea文件结构错误问题 * 修改trea文件结构错误问题 * 修复trae agent 文件结构错误问题 * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix trae's test case files * Update src/specify_cli/integrations/trae/__init__.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: jiakangning <jiakangning@bytedance.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
"""Trae IDE integration. — skills-based agent.
|
|
|
|
Trae IDE uses ``.trae/skills/speckit-<name>/SKILL.md`` layout.
|
|
In the Specify CLI Trae integration, explicit command support was deprecated
|
|
since v0.5.1; ``--skills`` defaults to ``True``.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
from ..base import IntegrationOption, SkillsIntegration
|
|
|
|
|
|
class TraeIntegration(SkillsIntegration):
|
|
"""Integration for Trae IDE."""
|
|
|
|
key = "trae"
|
|
config = {
|
|
"name": "Trae",
|
|
"folder": ".trae/",
|
|
"commands_subdir": "skills",
|
|
"install_url": None,
|
|
"requires_cli": False,
|
|
}
|
|
registrar_config = {
|
|
"dir": ".trae/skills",
|
|
"format": "markdown",
|
|
"args": "$ARGUMENTS",
|
|
"extension": "/SKILL.md",
|
|
}
|
|
context_file = ".trae/rules/project_rules.md"
|
|
|
|
@classmethod
|
|
def options(cls) -> list[IntegrationOption]:
|
|
return [
|
|
IntegrationOption(
|
|
"--skills",
|
|
is_flag=True,
|
|
default=True,
|
|
help="Install as agent skills (default for trae since v0.5.1)",
|
|
),
|
|
]
|