⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.
Add complete Fabric integration to setup process
Daniel Miessler802406d30d17
diff --git a/.claude/setup.sh b/.claude/setup.shindex 7b918721..06ca0da1 100755--- a/.claude/setup.sh+++ b/.claude/setup.sh@@ -545,7 +545,63 @@ elsefi# ============================================-# Step 8: Claude Code Integration+# Step 7.5: Fabric Setup (Optional)+# ============================================++print_header "Step 7.5: Fabric Setup (Optional)"++echo "Fabric is an AI prompting framework with 248+ patterns for various tasks."+echo "PAI includes native Fabric pattern execution, but the CLI is needed to:"+echo " • Download and update patterns from upstream"+echo " • Extract YouTube video transcripts"+echo ""++if ask_yes_no "Would you like to install Fabric?" "n"; then+ print_step "Installing Fabric..."++ # Install Fabric using official installer+ curl -sSL https://raw.githubusercontent.com/danielmiessler/fabric/main/install.sh | bash++ # Add fabric to PATH for this session+ export PATH="$HOME/.local/bin:$PATH"++ # Source shell config to ensure fabric is available+ if [ -f "$HOME/.bashrc" ]; then+ source "$HOME/.bashrc" 2>/dev/null || true+ fi+ if [ -f "$HOME/.zshrc" ]; then+ source "$HOME/.zshrc" 2>/dev/null || true+ fi++ print_success "Fabric installed!"++ # Download patterns from upstream+ if command_exists fabric; then+ print_step "Downloading Fabric patterns from upstream..."+ fabric -U+ print_success "Patterns downloaded to ~/.config/fabric/patterns"++ # Sync patterns to PAI's local directory+ if [ -f "$PAI_DIR/.claude/skills/Fabric/tools/update-patterns.sh" ]; then+ print_step "Syncing patterns to PAI..."+ cd "$PAI_DIR/.claude/skills/Fabric/tools"+ bash ./update-patterns.sh+ print_success "Patterns synced to PAI!"+ else+ print_warning "Pattern sync script not found. Patterns available in ~/.config/fabric/patterns"+ fi+ else+ print_warning "Fabric installation may require a shell restart."+ print_info "After restarting your terminal, run: fabric -U"+ print_info "Then sync patterns: $PAI_DIR/.claude/skills/Fabric/tools/update-patterns.sh"+ fi+else+ print_info "Skipping Fabric setup. You can install it later with:"+ echo " curl -sSL https://raw.githubusercontent.com/danielmiessler/fabric/main/install.sh | bash"+fi++# ============================================+# Step 8: AI Assistant Integration# ============================================print_header "Step 8: AI Assistant Integration"diff --git a/.claude/statusline-command.sh b/.claude/statusline-command.shindex 33294d21..7fee6ed0 100755--- a/.claude/statusline-command.sh+++ b/.claude/statusline-command.sh@@ -265,8 +265,12 @@ done# LINE 1 - Greeting with CC versionprintf "👋 ${DA_DISPLAY_COLOR}\"${DA_NAME} here, ready to go...\"${RESET} ${MODEL_PURPLE}Running CC ${cc_version}${RESET}${LINE1_PRIMARY} with ${MODEL_PURPLE}🧠 ${model_name}${RESET}${LINE1_PRIMARY} in ${DIR_COLOR}📁 ${dir_name}${RESET}\n"-# LINE 2 - BLUE theme with MCP names-printf "${LINE2_PRIMARY}🔌 MCPs${RESET}${LINE2_PRIMARY}${SEPARATOR_COLOR}: ${RESET}${mcp_names_formatted}${RESET}\n"+# LINE 2 - BLUE theme with MCP names and Fabric patterns+if [ "$fabric_count" -gt 0 ]; then+ printf "${LINE2_PRIMARY}🔌 MCPs${RESET}${LINE2_PRIMARY}${SEPARATOR_COLOR}: ${RESET}${mcp_names_formatted}${LINE2_PRIMARY} 📚 Fabric Patterns${RESET}${LINE2_PRIMARY}${SEPARATOR_COLOR}: ${RESET}${LINE2_ACCENT}${fabric_count}${RESET}\n"+else+ printf "${LINE2_PRIMARY}🔌 MCPs${RESET}${LINE2_PRIMARY}${SEPARATOR_COLOR}: ${RESET}${mcp_names_formatted}${RESET}\n"+fi# LINE 3 - GREEN theme with tokens and cost (show cached or N/A)# If we have cached data but it's empty, still show N/A