Replace placeholder files with originals from system
Found and copied original files from ~/.claude installation: - hooks/ - Original Qwen and Ralph hook scripts with full functionality - commands/ - Original command definitions (brainstorm, write-plan, execute-plan) - bin/ralphloop - Original 223-line Python wrapper (6,290 bytes) - scripts/sync-agents.sh - Original sync script with GitHub/Gitea backup - templates/ - Original config templates from working installation - plugins/ - Original comprehensive plugin README Files sourced from: - ~/.claude/skills/skills/hooks/ - ~/.claude/skills/skills/commands/ - ~/.claude/skills/skills/templates/ - /home/uroma/obsidian-web-interface/bin/ralphloop - ~/.claude/agents/sync-agents.sh These are the production files from the working Claude Code installation, replacing the placeholder files I created earlier. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,14 +1,21 @@
|
||||
#!/bin/bash
|
||||
# Qwen Consultation Wrapper Hook
|
||||
# Trigger: user-prompt
|
||||
# Wrapper for Qwen consultation functionality
|
||||
# Simple Qwen Consultation Script
|
||||
# Usage: consult-qwen.sh "your question here"
|
||||
|
||||
# This hook integrates with the brainstorming skill
|
||||
# to provide multi-AI consultation capabilities
|
||||
set -euo pipefail
|
||||
|
||||
QWEN_MAX_ITERATIONS="${QWEN_MAX_ITERATIONS:-3}"
|
||||
QUESTION="${1:-}"
|
||||
|
||||
# Delegate to the brainstorming skill when appropriate
|
||||
# The actual consultation logic is in the skill
|
||||
if [[ -z "$QUESTION" ]]; then
|
||||
echo "Usage: $0 \"your question\""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
echo "=== Consulting Qwen ==="
|
||||
echo "Question: $QUESTION"
|
||||
echo ""
|
||||
echo "Qwen's Response:"
|
||||
echo "---"
|
||||
|
||||
# Run Qwen with the question
|
||||
echo "$QUESTION" | timeout 30 qwen -p - 2>&1
|
||||
|
||||
Reference in New Issue
Block a user