Rename claude-agent to lxc171-claude-agent with full setup documentation

- Rename proxmox/claude-agent/ to proxmox/lxc171-claude-agent/
- Move scripts to scripts/ subdirectory
- Add complete installation guide for new LXC from scratch
- Update proxmox/README.md with LXC 171 documentation and navigation
- Add LXC 171 to containers table
- Remove .serena/project.yml

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Marius
2026-01-27 17:54:17 +02:00
parent a567f75f25
commit c5936791d0
8 changed files with 413 additions and 207 deletions

View File

@@ -0,0 +1,31 @@
#!/bin/bash
# Script pentru a finaliza un task (commit + push)
PROJECT_DIR="/workspace/romfastsql"
cd "$PROJECT_DIR" || exit 1
BRANCH=$(git branch --show-current)
if [ "$BRANCH" = "main" ]; then
echo "❌ Ești pe main! Nu face commit direct pe main."
exit 1
fi
echo "📋 Status curent:"
git status --short
echo ""
read -p "Mesaj commit: " COMMIT_MSG
if [ -z "$COMMIT_MSG" ]; then
echo "❌ Trebuie să dai un mesaj pentru commit"
exit 1
fi
git add .
git commit -m "$COMMIT_MSG"
git push -u origin "$BRANCH"
echo ""
echo "✅ Done! Branch-ul $BRANCH a fost push-uit."
echo "🔗 Creează Pull Request în Gitea: https://gitea.romfast.ro/romfast/romfastsql/compare/main...$BRANCH"

View File

@@ -0,0 +1,26 @@
#!/bin/bash
# Script pentru a începe un task nou cu branch
if [ -z "$1" ]; then
echo "Utilizare: ~/new-task.sh <nume-branch>"
echo "Exemplu: ~/new-task.sh fix/rezolva-bug"
exit 1
fi
BRANCH_NAME="$1"
PROJECT_DIR="/workspace/romfastsql"
cd "$PROJECT_DIR" || exit 1
# Actualizează main
echo "📥 Actualizez main..."
git checkout main
git pull origin main
# Creează branch nou
echo "🌿 Creez branch: $BRANCH_NAME"
git checkout -b "$BRANCH_NAME"
echo "✅ Gata! Ești pe branch-ul: $BRANCH_NAME"
echo ""
echo "Pornește Claude cu: source ~/.nvm/nvm.sh && claude"

View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Start or attach to Claude agent tmux session
SESSION_NAME="agent"
# Load nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# Check if session exists
if tmux has-session -t $SESSION_NAME 2>/dev/null; then
echo "Attaching to existing session: $SESSION_NAME"
tmux attach-session -t $SESSION_NAME
else
echo "Creating new session: $SESSION_NAME"
tmux new-session -s $SESSION_NAME -c /workspace
fi

View File

@@ -0,0 +1,104 @@
#!/bin/bash
# Script all-in-one pentru workflow cu selecție proiect
WORKSPACE="/workspace"
source ~/.nvm/nvm.sh
echo "🚀 Claude Workflow"
echo "=================="
echo ""
# Listează proiectele (directoare cu .git)
echo "📁 Proiecte disponibile:"
echo ""
projects=()
i=1
for dir in "$WORKSPACE"/*/; do
if [ -d "$dir/.git" ]; then
name=$(basename "$dir")
projects+=("$dir")
echo " $i) $name"
((i++))
fi
done
if [ ${#projects[@]} -eq 0 ]; then
echo "❌ Nu am găsit proiecte Git în $WORKSPACE"
exit 1
fi
echo ""
read -p "Alege proiect [1-$((i-1))]: " proj_choice
if [ -z "$proj_choice" ] || [ "$proj_choice" -lt 1 ] || [ "$proj_choice" -gt ${#projects[@]} ]; then
echo "❌ Selecție invalidă"
exit 1
fi
PROJECT_DIR="${projects[$((proj_choice-1))]}"
PROJECT_NAME=$(basename "$PROJECT_DIR")
cd "$PROJECT_DIR" || exit 1
echo ""
echo "📂 Proiect: $PROJECT_NAME"
echo "🌿 Branch curent: $(git branch --show-current)"
echo ""
echo "Ce vrei să faci?"
echo " 1) Începe task nou (branch nou)"
echo " 2) Continuă task existent"
echo " 3) Finalizează task (commit + push)"
echo " 4) Vezi branch-uri"
echo " 5) Pornește Claude pe branch-ul curent"
echo ""
read -p "Alege [1-5]: " choice
case $choice in
1)
read -p "Nume branch (ex: fix/bug-login): " BRANCH_NAME
git checkout main 2>/dev/null || git checkout master
git pull
git checkout -b "$BRANCH_NAME"
echo "✅ Branch creat: $BRANCH_NAME"
echo "Pornesc Claude..."
claude
;;
2)
echo "Branch-uri locale:"
git branch
echo ""
read -p "Nume branch: " BRANCH_NAME
git checkout "$BRANCH_NAME"
echo "Pornesc Claude..."
claude
;;
3)
BRANCH=$(git branch --show-current)
if [ "$BRANCH" = "main" ] || [ "$BRANCH" = "master" ]; then
echo "❌ Ești pe $BRANCH! Nu face commit direct aici."
exit 1
fi
echo "📋 Status:"
git status --short
echo ""
read -p "Mesaj commit: " COMMIT_MSG
if [ -n "$COMMIT_MSG" ]; then
git add .
git commit -m "$COMMIT_MSG"
git push -u origin "$BRANCH"
echo "✅ Push făcut pe $BRANCH"
fi
;;
4)
echo "Branch curent: $(git branch --show-current)"
echo ""
git branch -a
;;
5)
echo "Pornesc Claude pe $(git branch --show-current)..."
claude
;;
*)
echo "Opțiune invalidă"
;;
esac