feat: add Trae runtime install support (#1566)

* feat: add Trae runtime install support

- Add Trae as a supported runtime in bin/install.js
- Update README and ARCHITECTURE documentation for Trae support
- Add trae-install.test.cjs test file
- Update multi-runtime-select tests for Trae compatibility

* feat(trae): add TRAE_CONFIG_DIR environment variable support

Add support for TRAE_CONFIG_DIR environment variable as an additional way to specify the config directory for Trae runtime, following the same precedence pattern as other runtimes.

* fix(trae): improve slash command conversion and subagent type mapping

Update the slash command regex pattern to properly match and convert command names. Change subagent type mapping from "general-purpose" to "general_purpose_task" to match Trae's conventions. Also add comprehensive tests for Trae uninstall cleanup behavior.

* docs: add Trae and Windsurf to supported runtimes in translations

Update Korean, Japanese, and Portuguese README files to include Trae and Windsurf as supported runtimes in the documentation. Add installation and uninstallation instructions for Trae.

* fix: update runtime selection logic and path replacements

- Change 'All' shortcut from option 11 to 12 to accommodate new runtime
- Update path replacement regex to handle gsd- prefix more precisely
- Adjust test cases to reflect new runtime selection numbering
- Add configDir to trae install options for proper path resolution

* test(trae-install): add tests for getGlobalDir function

Add test cases to verify behavior of getGlobalDir function with different configurations:
- Default directory when no env var or explicit dir is provided
- Explicit directory takes priority
- Respects TRAE_CONFIG_DIR env var
- Priority of explicit dir over env var
- Compatibility with other runtimes
This commit is contained in:
Elwin
2026-04-04 20:13:15 +08:00
committed by GitHub
parent f26e1e1141
commit 66368a42d9
9 changed files with 594 additions and 117 deletions

View File

@@ -4,7 +4,7 @@
[English](README.md) · [Português](README.pt-BR.md) · [简体中文](README.zh-CN.md) · [日本語](README.ja-JP.md) · **한국어**
**Claude Code, OpenCode, Gemini CLI, Kilo, Codex, Copilot, Cursor, Windsurf, Antigravity, Augment를 위한 가볍고 강력한 메타 프롬프팅, 컨텍스트 엔지니어링, 스펙 기반 개발 시스템.**
**Claude Code, OpenCode, Gemini CLI, Kilo, Codex, Copilot, Cursor, Windsurf, Antigravity, Augment, Trae를 위한 가볍고 강력한 메타 프롬프팅, 컨텍스트 엔지니어링, 스펙 기반 개발 시스템.**
**컨텍스트 rot를 해결합니다 — Claude의 컨텍스트 창이 채워질수록 품질이 저하되는 문제.**
@@ -84,7 +84,7 @@ npx get-shit-done-cc@latest
```
설치 중에 다음을 선택합니다:
1. **런타임** — Claude Code, OpenCode, Gemini, Kilo, Codex, Copilot, Cursor, Antigravity, 또는 전체 (대화형 다중 선택 — 한 번에 여러 런타임 선택 가능)
1. **런타임** — Claude Code, OpenCode, Gemini, Kilo, Codex, Copilot, Cursor, Windsurf, Antigravity, Trae, 또는 전체 (대화형 다중 선택 — 한 번에 여러 런타임 선택 가능)
2. **위치** — 전역 (모든 프로젝트) 또는 로컬 (현재 프로젝트만)
설치가 됐는지 확인하려면:
@@ -94,6 +94,7 @@ npx get-shit-done-cc@latest
- Codex: `$gsd-help`
- Copilot: `/gsd-help`
- Antigravity: `/gsd-help`
- Trae: `/gsd-help`
> [!NOTE]
> Codex 설치는 커스텀 프롬프트 대신 스킬(`skills/gsd-*/SKILL.md`)을 사용합니다.
@@ -140,12 +141,16 @@ npx get-shit-done-cc --cursor --local # ./.cursor/에 설치
npx get-shit-done-cc --antigravity --global # ~/.gemini/antigravity/에 설치
npx get-shit-done-cc --antigravity --local # ./.agent/에 설치
# Trae (ByteDance, 스킬 우선)
npx get-shit-done-cc --trae --global # ~/.trae/에 설치
npx get-shit-done-cc --trae --local # ./.trae/에 설치
# 전체 런타임
npx get-shit-done-cc --all --global # 모든 디렉터리에 설치
```
위치 프롬프트 건너뛰기: `--global` (`-g`) 또는 `--local` (`-l`).
런타임 프롬프트 건너뛰기: `--claude`, `--opencode`, `--gemini`, `--kilo`, `--codex`, `--copilot`, `--cursor`, `--antigravity`, 또는 `--all`.
런타임 프롬프트 건너뛰기: `--claude`, `--opencode`, `--gemini`, `--kilo`, `--codex`, `--copilot`, `--cursor`, `--windsurf`, `--antigravity`, `--trae`, 또는 `--all`.
</details>
@@ -780,6 +785,7 @@ npx get-shit-done-cc --codex --global --uninstall
npx get-shit-done-cc --copilot --global --uninstall
npx get-shit-done-cc --cursor --global --uninstall
npx get-shit-done-cc --antigravity --global --uninstall
npx get-shit-done-cc --trae --global --uninstall
# 로컬 설치 (현재 프로젝트)
npx get-shit-done-cc --claude --local --uninstall
@@ -790,6 +796,7 @@ npx get-shit-done-cc --codex --local --uninstall
npx get-shit-done-cc --copilot --local --uninstall
npx get-shit-done-cc --cursor --local --uninstall
npx get-shit-done-cc --antigravity --local --uninstall
npx get-shit-done-cc --trae --local --uninstall
```
다른 설정은 그대로 유지하면서 GSD의 모든 명령어, 에이전트, 훅, 설정을 제거합니다.