mirror of
https://github.com/itme-brain/agent-team.git
synced 2026-05-08 10:40:12 -04:00
fixed bootstrap
This commit is contained in:
parent
758ebd23bb
commit
0667c42755
1 changed files with 5 additions and 8 deletions
13
install.sh
13
install.sh
|
|
@ -128,20 +128,17 @@ create_symlink "$RULES_SRC" "$RULES_DST" "rules"
|
|||
create_file_symlink "$CLAUDE_MD_SRC" "$CLAUDE_MD_DST" "CLAUDE.md"
|
||||
create_file_symlink "$SETTINGS_SRC" "$SETTINGS_DST" "settings.json"
|
||||
|
||||
# Codex CLI integration (optional — only if ~/.codex exists)
|
||||
# Codex CLI integration (optional — only if codex/ output exists)
|
||||
CODEX_DIR="$HOME/.codex"
|
||||
|
||||
if [ -d "$CODEX_DIR" ]; then
|
||||
if [ -d "$SCRIPT_DIR/codex" ]; then
|
||||
echo ""
|
||||
echo "Codex CLI detected at $CODEX_DIR"
|
||||
|
||||
# Warn if generated codex/ output is missing
|
||||
if [ ! -d "$SCRIPT_DIR/codex" ]; then
|
||||
echo "Warning: codex/ not found. Run ./generate.sh first to generate Codex output."
|
||||
fi
|
||||
echo "Codex output found — installing to $CODEX_DIR"
|
||||
mkdir -p "$CODEX_DIR"
|
||||
|
||||
# Skills: symlink each skill directory into ~/.codex/skills/
|
||||
# (Can't replace the whole directory — .system/ must remain intact)
|
||||
mkdir -p "$CODEX_DIR/skills"
|
||||
for skill_dir in "$SKILLS_SRC"/*/; do
|
||||
skill_name="$(basename "$skill_dir")"
|
||||
create_symlink "$skill_dir" "$CODEX_DIR/skills/$skill_name" "codex skill: $skill_name"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue