claude-all-config 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE.md +70 -0
  3. package/README.md +133 -0
  4. package/VERSION +1 -0
  5. package/agents/accessibility-reviewer.md +96 -0
  6. package/agents/ai-prompt-optimizer.md +94 -0
  7. package/agents/api-tester.md +102 -0
  8. package/agents/code-generator.md +94 -0
  9. package/agents/code-reviewer.md +47 -0
  10. package/agents/component-generator.md +102 -0
  11. package/agents/doc-generator.md +91 -0
  12. package/agents/migration-generator.md +94 -0
  13. package/agents/performance-analyzer.md +90 -0
  14. package/agents/proactive-mode.md +91 -0
  15. package/agents/readme-generator.md +101 -0
  16. package/agents/security-auditor.md +86 -0
  17. package/agents/terraform-generator.md +94 -0
  18. package/agents/test-generator.md +76 -0
  19. package/bin/agentrouter.json +36 -0
  20. package/bin/ai-chat +20 -0
  21. package/bin/antigravity.json +76 -0
  22. package/bin/api-manager +340 -0
  23. package/bin/claude-launcher +19 -0
  24. package/bin/claude-master +15 -0
  25. package/bin/claude_master.py +295 -0
  26. package/bin/cohere.json +7 -0
  27. package/bin/deepseek.json +44 -0
  28. package/bin/gemini.json +56 -0
  29. package/bin/glm.json +21 -0
  30. package/bin/groq.json +41 -0
  31. package/bin/minimax.json +26 -0
  32. package/bin/mistral.json +7 -0
  33. package/bin/moonshot.json +7 -0
  34. package/bin/ollama.json +36 -0
  35. package/bin/openai.json +46 -0
  36. package/bin/openrouter.json +38 -0
  37. package/bin/perplexity.json +12 -0
  38. package/bin/qwen.json +7 -0
  39. package/bin/switch-provider +73 -0
  40. package/bin/test.json +7 -0
  41. package/bin/xai.json +41 -0
  42. package/claude-all +2707 -0
  43. package/claude-config.json +340 -0
  44. package/claude-suite/REFACTORING_SUMMARY.md +88 -0
  45. package/claude-suite/auth/.antigravity_proxy.py +78 -0
  46. package/claude-suite/auth/__pycache__/openai_auth.cpython-312.pyc +0 -0
  47. package/claude-suite/auth/gemini_auth.py +80 -0
  48. package/claude-suite/auth/openai_auth.py +138 -0
  49. package/claude-suite/backups/claude-all-before-refactor +1075 -0
  50. package/claude-suite/backups/claude-all.backup +840 -0
  51. package/claude-suite/backups/claude-all.original +840 -0
  52. package/claude-suite/models/add-model-manual.sh +588 -0
  53. package/claude-suite/models/add-model.sh +114 -0
  54. package/claude-suite/models/model-switcher.sh +69 -0
  55. package/claude-suite/providers/claude-glm +89 -0
  56. package/claude-suite/providers/claude-glm-wrapper.sh +55 -0
  57. package/claude-suite/providers/claude-minimax +12 -0
  58. package/claude-suite/providers/claude-smart +132 -0
  59. package/claude-suite/providers/xai_chat.sh +56 -0
  60. package/claude-suite/utils/__pycache__/claude_master.cpython-312.pyc +0 -0
  61. package/claude-suite/utils/antigravity_proxy_server.py +168 -0
  62. package/claude-suite/utils/claude-all-help.txt +83 -0
  63. package/claude-suite/utils/claude_master.py +408 -0
  64. package/commands/brainstorm.md +5 -0
  65. package/commands/execute-plan.md +5 -0
  66. package/commands/write-plan.md +5 -0
  67. package/docs/ANTIGRAVITY-SETUP.md +176 -0
  68. package/docs/AUTH_CREDENTIALS.md +54 -0
  69. package/docs/NPM-INSTALLATION.md +166 -0
  70. package/hooks/hooks.json +15 -0
  71. package/hooks/run-hook.cmd +19 -0
  72. package/hooks/session-start.sh +52 -0
  73. package/install.sh +155 -0
  74. package/mcp.json +34 -0
  75. package/model/perplexity.json +12 -0
  76. package/package.json +69 -0
  77. package/plugins/README.md +47 -0
  78. package/plugins/installed_plugins.json +317 -0
  79. package/plugins/known_marketplaces.json +10 -0
  80. package/plugins/marketplace-info/marketplace.json +517 -0
  81. package/postinstall.js +100 -0
  82. package/scripts/antigravity_proxy_server.py +168 -0
  83. package/scripts/get_gemini_api_key.py +96 -0
  84. package/scripts/setup_antigravity_auth.py +171 -0
  85. package/skills/api-development/SKILL.md +11 -0
  86. package/skills/api-development/openapi/api-documentation.yaml +108 -0
  87. package/skills/brainstorming/SKILL.md +54 -0
  88. package/skills/code-quality/SKILL.md +196 -0
  89. package/skills/condition-based-waiting/SKILL.md +120 -0
  90. package/skills/condition-based-waiting/example.ts +158 -0
  91. package/skills/database-development/SKILL.md +11 -0
  92. package/skills/database-development/migrations/migration.template.sql +49 -0
  93. package/skills/defense-in-depth/SKILL.md +127 -0
  94. package/skills/deployment/SKILL.md +11 -0
  95. package/skills/deployment/ci-cd/github-actions.yml +95 -0
  96. package/skills/deployment/docker/Dockerfile.template +39 -0
  97. package/skills/dispatching-parallel-agents/SKILL.md +180 -0
  98. package/skills/documentation-generation/SKILL.md +8 -0
  99. package/skills/documentation-generation/templates/README.template.md +60 -0
  100. package/skills/error-handling/SKILL.md +267 -0
  101. package/skills/executing-plans/SKILL.md +76 -0
  102. package/skills/finishing-a-development-branch/SKILL.md +200 -0
  103. package/skills/frontend-design/frontend-design/SKILL.md +42 -0
  104. package/skills/integration-testing/SKILL.md +13 -0
  105. package/skills/integration-testing/examples/contract-test.py +317 -0
  106. package/skills/integration-testing/examples/e2e-test.js +147 -0
  107. package/skills/integration-testing/examples/test-isolation.md +94 -0
  108. package/skills/logging-monitoring/SKILL.md +66 -0
  109. package/skills/mobile-development/SKILL.md +11 -0
  110. package/skills/mobile-development/responsive/responsive.css +80 -0
  111. package/skills/performance-optimization/SKILL.md +9 -0
  112. package/skills/performance-optimization/profiling/profile.template.js +21 -0
  113. package/skills/receiving-code-review/SKILL.md +209 -0
  114. package/skills/refactoring/SKILL.md +11 -0
  115. package/skills/refactoring/code-smells/common-smells.md +115 -0
  116. package/skills/requesting-code-review/SKILL.md +105 -0
  117. package/skills/requesting-code-review/code-reviewer.md +146 -0
  118. package/skills/root-cause-tracing/SKILL.md +174 -0
  119. package/skills/root-cause-tracing/find-polluter.sh +63 -0
  120. package/skills/security-review/SKILL.md +11 -0
  121. package/skills/security-review/checklists/owasp-checklist.md +31 -0
  122. package/skills/sharing-skills/SKILL.md +194 -0
  123. package/skills/subagent-driven-development/SKILL.md +240 -0
  124. package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +20 -0
  125. package/skills/subagent-driven-development/implementer-prompt.md +78 -0
  126. package/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  127. package/skills/systematic-debugging/CREATION-LOG.md +119 -0
  128. package/skills/systematic-debugging/SKILL.md +295 -0
  129. package/skills/systematic-debugging/test-academic.md +14 -0
  130. package/skills/systematic-debugging/test-pressure-1.md +58 -0
  131. package/skills/systematic-debugging/test-pressure-2.md +68 -0
  132. package/skills/systematic-debugging/test-pressure-3.md +69 -0
  133. package/skills/test-driven-development/SKILL.md +364 -0
  134. package/skills/testing-anti-patterns/SKILL.md +302 -0
  135. package/skills/testing-skills-with-subagents/SKILL.md +387 -0
  136. package/skills/testing-skills-with-subagents/examples/CLAUDE_MD_TESTING.md +189 -0
  137. package/skills/ui-ux-review/SKILL.md +13 -0
  138. package/skills/ui-ux-review/checklists/ux-heuristics.md +61 -0
  139. package/skills/using-git-worktrees/SKILL.md +213 -0
  140. package/skills/using-superpowers/SKILL.md +101 -0
  141. package/skills/verification-before-completion/SKILL.md +139 -0
  142. package/skills/writing-plans/SKILL.md +116 -0
  143. package/skills/writing-skills/SKILL.md +622 -0
  144. package/skills/writing-skills/anthropic-best-practices.md +1150 -0
  145. package/skills/writing-skills/graphviz-conventions.dot +172 -0
  146. package/skills/writing-skills/persuasion-principles.md +187 -0
  147. package/update.sh +36 -0
  148. package/utils/check-superpowers.sh +114 -0
  149. package/utils/claude-branding.md +166 -0
  150. package/utils/config.js +185 -0
  151. package/utils/custom-claude-config.sh +89 -0
  152. package/utils/custom-claude-hooks.md +129 -0
  153. package/utils/custom-claude-lib.js +222 -0
  154. package/utils/customize-claude-ui.sh +162 -0
  155. package/utils/fix-claude-integration.sh +133 -0
  156. package/utils/help.js +125 -0
  157. package/utils/install-curl.ps1 +135 -0
  158. package/utils/install-curl.sh +525 -0
  159. package/utils/install-superpowers.js +411 -0
  160. package/utils/install.js +298 -0
  161. package/utils/install.sh +182 -0
  162. package/utils/postinstall.js +63 -0
  163. package/utils/rename-claude.sh +96 -0
  164. package/utils/uninstall-superpowers.js +273 -0
  165. package/utils/uninstall.ps1 +136 -0
  166. package/utils/uninstall.sh +163 -0
  167. package/utils/update.sh +160 -0
@@ -0,0 +1,162 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # Script to customize Claude-All appearance
4
+ # Change banners, colors, and text
5
+
6
+ set -e
7
+
8
+ # Colors
9
+ CYAN='\033[0;36m'
10
+ PURPLE='\033[0;35m'
11
+ GREEN='\033[0;32m'
12
+ YELLOW='\033[1;33m'
13
+ BLUE='\033[0;34m'
14
+ RED='\033[0;31m'
15
+ NC='\033[0m'
16
+
17
+ # Configuration
18
+ CLAUDE_ALL="$HOME/.local/bin/claude-all"
19
+ CONFIG_DIR="$HOME/.config/claude-all"
20
+ BANNER_FILE="$CONFIG_DIR/banner.txt"
21
+ THEME_FILE="$CONFIG_DIR/theme.conf"
22
+
23
+ echo -e "${PURPLE}🎨 Claude-All UI Customizer${NC}"
24
+ echo "=============================="
25
+ echo ""
26
+
27
+ # Create config directory
28
+ mkdir -p "$CONFIG_DIR"
29
+
30
+ # Function to create custom banner
31
+ create_banner() {
32
+ local title="$1"
33
+ local subtitle="$2"
34
+
35
+ cat << EOF > "$BANNER_FILE"
36
+ ${CYAN}╔─────────────────────────────────────────────────────╗
37
+ ║ ║
38
+ ║ ${title}
39
+ ║ ${subtitle}
40
+ ║ ║
41
+ ╚─────────────────────────────────────────────────────╝${NC}
42
+ EOF
43
+ }
44
+
45
+ # Function to customize colors
46
+ customize_colors() {
47
+ local primary="$1"
48
+ local secondary="$2"
49
+ local accent="$3"
50
+
51
+ cat << EOF > "$THEME_FILE"
52
+ PRIMARY_COLOR='$primary'
53
+ SECONDARY_COLOR='$secondary'
54
+ ACCENT_COLOR='$accent'
55
+ EOF
56
+ }
57
+
58
+ echo -e "${BLUE}Choose customization:${NC}"
59
+ echo "1) 🚀 Tech Theme"
60
+ echo "2) 🌸 Anime Theme"
61
+ echo "3) 🎮 Gaming Theme"
62
+ echo "4) 💼 Professional Theme"
63
+ echo "5) 🎨 Custom Banner"
64
+ echo "6) 🎭 Custom Colors"
65
+ echo ""
66
+
67
+ read -p "Select option (1-6): " choice
68
+
69
+ case $choice in
70
+ 1)
71
+ create_banner "⚡ AI Multi-Tool CLI" "30+ Providers • 100+ Models • Superpowers"
72
+ customize_colors '$CYAN' '$BLUE' '$YELLOW'
73
+ echo -e "${GREEN}✅ Tech theme applied${NC}"
74
+ ;;
75
+ 2)
76
+ create_banner "🌸 Kawaii AI-chan" "✨ Sugoi AI Tools • Senpai~"
77
+ customize_colors '$PURPLE' '$YELLOW' '$CYAN'
78
+ echo -e "${GREEN}✅ Anime theme applied${NC}"
79
+ ;;
80
+ 3)
81
+ create_banner "🎮 GAME AI MODE" "||| LOADING AI SKILLS... |||"
82
+ customize_colors '$RED' '$YELLOW' '$GREEN'
83
+ echo -e "${GREEN}✅ Gaming theme applied${NC}"
84
+ ;;
85
+ 4)
86
+ create_banner "📊 Professional AI Suite" "Enterprise-Grade AI Tools"
87
+ customize_colors '$BLUE' '$GREEN' '$NC'
88
+ echo -e "${GREEN}✅ Professional theme applied${NC}"
89
+ ;;
90
+ 5)
91
+ echo -e "${YELLOW}Enter your custom banner:${NC}"
92
+ echo "Format: Line1|Line2|Line3"
93
+ read -p "> " custom_text
94
+ IFS='|' read -ra LINES <<< "$custom_text"
95
+ create_banner "${LINES[0]}" "${LINES[1]}"
96
+ echo -e "${GREEN}✅ Custom banner created${NC}"
97
+ ;;
98
+ 6)
99
+ echo -e "${YELLOW}Enter color codes (bash colors):${NC}"
100
+ echo "Options: \\033[0;31m (Red), \\033[0;32m (Green), \\033[0;34m (Blue), etc."
101
+ read -p "Primary color: " primary
102
+ read -p "Secondary color: " secondary
103
+ read -p "Accent color: " accent
104
+ customize_colors "$primary" "$secondary" "$accent"
105
+ echo -e "${GREEN}✅ Custom colors applied${NC}"
106
+ ;;
107
+ *)
108
+ echo -e "${RED}Invalid option${NC}"
109
+ exit 1
110
+ ;;
111
+ esac
112
+
113
+ # Apply customizations to claude-all
114
+ echo ""
115
+ echo -e "${BLUE}Applying customizations...${NC}"
116
+
117
+ # Backup original
118
+ cp "$CLAUDE_ALL" "$CLAUDE_ALL.backup.$(date +%Y%m%d)"
119
+
120
+ # Create modified version with custom theme
121
+ cat << 'EOF' > /tmp/claude-all-modified.sh
122
+ #!/usr/bin/env bash
123
+
124
+ # Load custom theme
125
+ CONFIG_DIR="$HOME/.config/claude-all"
126
+ if [[ -f "$CONFIG_DIR/theme.conf" ]]; then
127
+ source "$CONFIG_DIR/theme.conf"
128
+ else
129
+ PRIMARY_COLOR='\033[0;34m' # Blue
130
+ SECONDARY_COLOR='\033[0;36m' # Cyan
131
+ ACCENT_COLOR='\033[0;33m' # Yellow
132
+ fi
133
+
134
+ # Display custom banner
135
+ if [[ -f "$CONFIG_DIR/banner.txt" ]]; then
136
+ cat "$CONFIG_DIR/banner.txt"
137
+ echo ""
138
+ else
139
+ # Default banner
140
+ echo -e "${PRIMARY_COLOR}=====================================${NC}"
141
+ echo -e "${SECONDARY_COLOR} Claude-All Multi-Model Tool${NC}"
142
+ echo -e "${PRIMARY_COLOR}=====================================${NC}"
143
+ echo ""
144
+ fi
145
+ EOF
146
+
147
+ # Insert theme loading into claude-all
148
+ sed -i "/^set -e$/r /tmp/claude-all-modified.sh" "$CLAUDE_ALL"
149
+
150
+ # Clean up
151
+ rm -f /tmp/claude-all-modified.sh
152
+
153
+ echo ""
154
+ echo -e "${GREEN}🎉 Customization Complete!${NC}"
155
+ echo "=========================="
156
+ echo ""
157
+ echo "To test:"
158
+ echo " claude-all"
159
+ echo ""
160
+ echo "To restore original:"
161
+ echo " cp ~/.local/bin/claude-all.backup.YYYYMMDD ~/.local/bin/claude-all"
162
+ echo ""
@@ -0,0 +1,133 @@
1
+ #!/usr/bin/env bash
2
+
3
+ # Fix Claude Integration Script
4
+ # Ensures all Superpowers components are properly installed in Claude paths
5
+
6
+ set -e
7
+
8
+ echo "🔧 Fixing Claude Integration..."
9
+ echo "================================"
10
+
11
+ # Colors
12
+ GREEN='\033[0;32m'
13
+ BLUE='\033[0;34m'
14
+ YELLOW='\033[1;33m'
15
+ RED='\033[0;31m'
16
+ NC='\033[0m'
17
+
18
+ # Claude directories
19
+ CLAUDE_DIR="$HOME/.claude"
20
+ SKILLS_DIR="$CLAUDE_DIR/skills"
21
+ AGENTS_DIR="$CLAUDE_DIR/agents"
22
+ COMMANDS_DIR="$CLAUDE_DIR/commands"
23
+ HOOKS_DIR="$CLAUDE_DIR/hooks"
24
+ PLUGINS_DIR="$CLAUDE_DIR/plugins"
25
+
26
+ # Source directory (where this script is located)
27
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
28
+ SUPERPOWERS_DIR="$SCRIPT_DIR/../superpowers"
29
+
30
+ if [[ ! -d "$SUPERPOWERS_DIR" ]]; then
31
+ # Try relative from current directory
32
+ SUPERPOWERS_DIR="$(pwd)/superpowers"
33
+ if [[ ! -d "$SUPERPOWERS_DIR" ]]; then
34
+ echo -e "${RED}❌ Superpowers directory not found${NC}"
35
+ exit 1
36
+ fi
37
+ fi
38
+
39
+ echo -e "${BLUE}📦 Superpowers source: $SUPERPOWERS_DIR${NC}"
40
+ echo -e "${BLUE}🎯 Claude directory: $CLAUDE_DIR${NC}"
41
+ echo ""
42
+
43
+ # Create Claude directories if they don't exist
44
+ mkdir -p "$SKILLS_DIR" "$AGENTS_DIR" "$COMMANDS_DIR" "$HOOKS_DIR" "$PLUGINS_DIR"
45
+
46
+ # Function to copy with overwrite confirmation
47
+ copy_to_claude() {
48
+ local src="$1"
49
+ local dest="$2"
50
+ local description="$3"
51
+
52
+ echo -e "${BLUE}📋 Installing $description...${NC}"
53
+
54
+ if [[ -d "$src" ]]; then
55
+ # Copy all files, overwriting existing
56
+ cp -rf "$src"/* "$dest/" 2>/dev/null || true
57
+ local count=$(find "$dest" -maxdepth 1 -type f | wc -l)
58
+ echo -e "${GREEN}✅ $description: $count files installed${NC}"
59
+ else
60
+ echo -e "${YELLOW}⚠️ Source not found: $src${NC}"
61
+ fi
62
+ }
63
+
64
+ # Install Skills
65
+ copy_to_claude "$SUPERPOWERS_DIR/skills" "$SKILLS_DIR" "Skills"
66
+
67
+ # Install Agents
68
+ copy_to_claude "$SUPERPOWERS_DIR/agents" "$AGENTS_DIR" "Agents"
69
+
70
+ # Install Commands
71
+ copy_to_claude "$SUPERPOWERS_DIR/commands" "$COMMANDS_DIR" "Commands"
72
+
73
+ # Install Hooks
74
+ copy_to_claude "$SUPERPOWERS_DIR/hooks" "$HOOKS_DIR" "Hooks"
75
+
76
+ # Install Plugin configuration
77
+ if [[ -f "$SUPERPOWERS_DIR/.claude-plugin/plugin.json" ]]; then
78
+ cp "$SUPERPOWERS_DIR/.claude-plugin/plugin.json" "$PLUGINS_DIR/" 2>/dev/null || true
79
+ echo -e "${GREEN}✅ Plugin configuration updated${NC}"
80
+ fi
81
+
82
+ # Copy Superpowers to plugins directory (for hooks to work)
83
+ if [[ -d "$SUPERPOWERS_DIR" ]]; then
84
+ rm -rf "$PLUGINS_DIR/superpowers" 2>/dev/null || true
85
+ cp -r "$SUPERPOWERS_DIR" "$PLUGINS_DIR/superpowers" 2>/dev/null || true
86
+ echo -e "${GREEN}✅ Superpowers plugin installed${NC}"
87
+ fi
88
+
89
+ # Make hooks executable
90
+ if [[ -f "$HOOKS_DIR/session-start.sh" ]]; then
91
+ chmod +x "$HOOKS_DIR/session-start.sh"
92
+ echo -e "${GREEN}✅ Hooks made executable${NC}"
93
+ fi
94
+
95
+ # Summary
96
+ echo ""
97
+ echo -e "${GREEN}🎉 Installation Complete!${NC}"
98
+ echo "================================"
99
+ echo "📊 Summary:"
100
+ echo " • Skills: $(ls -1 "$SKILLS_DIR" | wc -l | tr -d ' ') skills"
101
+ echo " • Agents: $(ls -1 "$AGENTS_DIR" | wc -l | tr -d ' ') agents"
102
+ echo " • Commands: $(ls -1 "$COMMANDS_DIR" | wc -l | tr -d ' ') commands"
103
+ echo " • Hooks: $(ls -1 "$HOOKS_DIR"/*.sh 2>/dev/null | wc -l | tr -d ' ') hooks"
104
+ echo ""
105
+
106
+ # Verify installation
107
+ echo -e "${BLUE}🔍 Verifying installation...${NC}"
108
+
109
+ # Check if skills are loaded
110
+ skill_count=$(ls -1 "$SKILLS_DIR" 2>/dev/null | wc -l | tr -d ' ')
111
+ agent_count=$(ls -1 "$AGENTS_DIR" 2>/dev/null | wc -l | tr -d ' ')
112
+
113
+ if [[ "$skill_count" -ge 30 ]]; then
114
+ echo -e "${GREEN}✅ All 30+ skills installed${NC}"
115
+ else
116
+ echo -e "${YELLOW}⚠️ Only $skill_count skills found (expected 30+)${NC}"
117
+ fi
118
+
119
+ if [[ "$agent_count" -ge 10 ]]; then
120
+ echo -e "${GREEN}✅ All 14 agents installed${NC}"
121
+ else
122
+ echo -e "${YELLOW}⚠️ Only $agent_count agents found (expected 14)${NC}"
123
+ fi
124
+
125
+ echo ""
126
+ echo -e "${BLUE}💡 Tips:${NC}"
127
+ echo "1. Restart Claude Code to ensure all components are loaded"
128
+ echo "2. Use /help to see available commands"
129
+ echo "3. Skills will trigger automatically based on context"
130
+ echo "4. Agents can be invoked via the Task tool"
131
+ echo ""
132
+
133
+ echo -e "${GREEN}✨ Superpowers is now fully integrated with Claude!${NC}"
package/utils/help.js ADDED
@@ -0,0 +1,125 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * 🤖 Claude-All Help System
5
+ */
6
+
7
+ class HelpCommand {
8
+ constructor() {
9
+ this.version = '8.1.0';
10
+ }
11
+
12
+ showGeneralHelp() {
13
+ console.log('🤖 CLAUDE-ALL UNIVERSAL AI LAUNCHER');
14
+ console.log('==================================');
15
+ console.log(`Version: ${this.version}`);
16
+ console.log('');
17
+ console.log('📦 NPM Commands:');
18
+ console.log(' npm run claude - Start Claude-All AI launcher');
19
+ console.log(' npm run launch - Alternative launcher');
20
+ console.log(' npm run switch - Switch AI provider');
21
+ console.log(' npm run config - Configure settings');
22
+ console.log(' npm run status - Show status');
23
+ console.log(' npm run update - Update installation');
24
+ console.log(' npm run help - Show this help');
25
+ console.log(' npm run doctor - Troubleshoot issues');
26
+ console.log(' npm run test - Run tests');
27
+ console.log(' npm run uninstall - Uninstall Claude-All');
28
+ console.log('');
29
+ console.log('🚀 Direct Commands:');
30
+ console.log(' claude-all # Start AI launcher');
31
+ console.log(' ai-chat # Start chat interface');
32
+ console.log(' claude-launcher # Alternative launcher');
33
+ console.log('');
34
+ this.showProviderInfo();
35
+ }
36
+
37
+ showProviderInfo() {
38
+ console.log('🔌 AI Providers:');
39
+ console.log(' • MiniMax - High-performance Chinese AI');
40
+ console.log(' • Gemini - Google Gemini AI Studio');
41
+ console.log(' • OpenAI - GPT-4 and GPT-3.5');
42
+ console.log(' • Groq - Ultra-fast inference');
43
+ console.log(' • Ollama - Local LLM hosting');
44
+ console.log(' • xAI/Grok - xAI Grok models');
45
+ console.log(' • ZhipuAI - GLM series models');
46
+ console.log(' • Custom - Any REST API endpoint');
47
+ console.log('');
48
+ console.log('⚙️ Configuration:');
49
+ console.log(' npm run config # Interactive setup');
50
+ console.log(' ~/.claude-all/config/ # Configuration directory');
51
+ console.log('');
52
+ console.log('📚 Documentation:');
53
+ console.log(' https://github.com/zesbe/ClaudeAll#readme');
54
+ console.log('');
55
+ console.log('❓ Need Help?');
56
+ console.log(' Run: npm run doctor # Troubleshooting');
57
+ console.log(' Issues: https://github.com/zesbe/ClaudeAll/issues');
58
+ }
59
+
60
+ showConfigHelp() {
61
+ console.log('⚙️ Configuration Guide');
62
+ console.log('=====================');
63
+ console.log('');
64
+ console.log('🔧 Interactive Config:');
65
+ console.log(' npm run config # Start configuration wizard');
66
+ console.log('');
67
+ console.log('📝 Manual Config:');
68
+ console.log(' File: ~/.claude-all/config/config.json');
69
+ console.log('');
70
+ console.log('🔑 API Keys Setup:');
71
+ console.log(' • MiniMax: Set in config or environment variable');
72
+ console.log(' • Gemini: Set GOOGLE_GENAI_API_KEY');
73
+ console.log(' • OpenAI: Set OPENAI_API_KEY');
74
+ console.log(' • Groq: Set GROQ_API_KEY');
75
+ console.log('');
76
+ console.log('💡 Tip: Run "npm run doctor" to check configuration');
77
+ }
78
+
79
+ showDoctorHelp() {
80
+ console.log('🩺 Claude-All Doctor');
81
+ console.log('==================');
82
+ console.log('');
83
+ console.log('🔍 Common Issues:');
84
+ console.log('');
85
+ console.log('❌ Command not found:');
86
+ console.log(' • Restart shell or run: source ~/.bashrc');
87
+ console.log(' • Check PATH includes ~/.local/bin');
88
+ console.log('');
89
+ console.log('❌ API Key errors:');
90
+ console.log(' • Run: npm run config');
91
+ console.log(' • Check environment variables');
92
+ console.log('');
93
+ console.log('❌ Connection issues:');
94
+ console.log(' • Test with: curl -I https://api.openai.com');
95
+ console.log(' • Check firewall/proxy settings');
96
+ console.log('');
97
+ console.log('🔧 Auto-Fix:');
98
+ console.log(' npm run config # Reconfigure');
99
+ console.log(' npm run update # Update installation');
100
+ console.log(' npm run doctor # Full diagnostic');
101
+ }
102
+ }
103
+
104
+ function main() {
105
+ const args = process.argv.slice(2);
106
+ const help = new HelpCommand();
107
+
108
+ if (args.length === 0 || args[0] === 'general') {
109
+ help.showGeneralHelp();
110
+ } else if (args[0] === 'config') {
111
+ help.showConfigHelp();
112
+ } else if (args[0] === 'doctor') {
113
+ help.showDoctorHelp();
114
+ } else {
115
+ console.log('❌ Unknown help topic:', args[0]);
116
+ console.log('Available topics: general, config, doctor');
117
+ help.showGeneralHelp();
118
+ }
119
+ }
120
+
121
+ if (require.main === module) {
122
+ main();
123
+ }
124
+
125
+ module.exports = HelpCommand;
@@ -0,0 +1,135 @@
1
+ # PowerShell installer for Claude-All-New
2
+ # Run this in PowerShell or Command Prompt
3
+
4
+ param(
5
+ [switch]$System
6
+ )
7
+
8
+ # Colors for PowerShell
9
+ $GREEN = "Green"
10
+ $BLUE = "Cyan"
11
+ $YELLOW = "Yellow"
12
+ $RED = "Red"
13
+ $WHITE = "White"
14
+
15
+ Write-Host "🚀 Claude-All-New - One Command Installer" -ForegroundColor $GREEN
16
+ Write-Host "===========================================" -ForegroundColor $GREEN
17
+ Write-Host ""
18
+
19
+ # Check if curl is available
20
+ $curlAvailable = Get-Command curl -ErrorAction SilentlyContinue
21
+
22
+ if (-not $curlAvailable) {
23
+ Write-Host "Error: curl is not installed or not in PATH" -ForegroundColor $RED
24
+ Write-Host ""
25
+ Write-Host "Please install Git for Windows (includes curl):" -ForegroundColor $YELLOW
26
+ Write-Host " https://git-scm.com/download/win" -ForegroundColor $BLUE
27
+ Write-Host ""
28
+ Write-Host "Or install via Chocolatey:" -ForegroundColor $YELLOW
29
+ Write-Host " choco install curl" -ForegroundColor $BLUE
30
+ Write-Host ""
31
+ exit 1
32
+ }
33
+
34
+ # Create temp directory
35
+ $tempDir = Join-Path $env:TEMP "claude-all-new-$(Get-Random)"
36
+ New-Item -ItemType Directory -Path $tempDir -Force | Out-Null
37
+
38
+ Set-Location $tempDir
39
+
40
+ Write-Host "Downloading Claude-All-New..." -ForegroundColor $BLUE
41
+ Invoke-WebRequest -Uri "https://github.com/zesbe/Claude-All-New/archive/main.zip" -OutFile "claude-all-new.zip"
42
+
43
+ Write-Host "Extracting files..." -ForegroundColor $BLUE
44
+ Expand-Archive -Path "claude-all-new.zip" -DestinationPath "." -Force
45
+
46
+ Set-Location "Claude-All-New-main"
47
+
48
+ # Choose installation directory
49
+ $installDir = if ($System) {
50
+ if ($IsLinux -or $IsMacOS) {
51
+ "/usr/local/bin"
52
+ } else {
53
+ "$env:USERPROFILE\.local\bin"
54
+ }
55
+ } else {
56
+ "$env:USERPROFILE\.local\bin"
57
+ }
58
+
59
+ if ($System -and $PSVersionTable.OS -notmatch "Linux|MacOS") {
60
+ Write-Host "System-wide installation not supported on Windows" -ForegroundColor $YELLOW
61
+ Write-Host "Using user directory instead: $installDir" -ForegroundColor $BLUE
62
+ }
63
+
64
+ Write-Host "Installing to $installDir" -ForegroundColor $BLUE
65
+ New-Item -ItemType Directory -Path $installDir -Force | Out-Null
66
+
67
+ # Copy files
68
+ Copy-Item -Path "bin\*" -Destination $installDir -Force
69
+
70
+ # Copy model config
71
+ if (Test-Path "model") {
72
+ $modelDir = Join-Path $installDir "model"
73
+ New-Item -ItemType Directory -Path $modelDir -Force | Out-Null
74
+ Copy-Item -Path "model\*" -Destination $modelDir -Force
75
+ }
76
+
77
+ # Cleanup
78
+ Set-Location $env:TEMP
79
+ Remove-Item -Path $tempDir -Recurse -Force
80
+
81
+ # Check if PATH needs updating
82
+ $pathUpdated = $false
83
+ if ($env:PATH -notlike "*$installDir*") {
84
+ Write-Host ""
85
+ Write-Host "⚠️ Important: Add installation directory to PATH" -ForegroundColor $YELLOW
86
+ Write-Host ""
87
+ Write-Host "PowerShell (permanent):" -ForegroundColor $BLUE
88
+ Write-Host " [Environment]::SetEnvironmentVariable('PATH', `"$env:PATH;$installDir`", 'User')" -ForegroundColor $WHITE
89
+ Write-Host ""
90
+ Write-Host "Command Prompt:" -ForegroundColor $BLUE
91
+ Write-Host " setx PATH `"%PATH%;$installDir`"" -ForegroundColor $WHITE
92
+ Write-Host ""
93
+ Write-Host "Git Bash:" -ForegroundColor $BLUE
94
+ Write-Host " echo 'export PATH=`"$installDir:`$PATH`"' >> ~/.bashrc" -ForegroundColor $WHITE
95
+ Write-Host ""
96
+ $pathUpdated = $true
97
+ }
98
+
99
+ Write-Host ""
100
+ Write-Host "✅ Installation complete!" -ForegroundColor $GREEN
101
+ Write-Host ""
102
+ Write-Host "🎉 Claude-All-New is now installed!" -ForegroundColor $GREEN
103
+ Write-Host ""
104
+ Write-Host "Platform: Windows" -ForegroundColor $BLUE
105
+ Write-Host "Install Dir: $installDir" -ForegroundColor $BLUE
106
+ Write-Host ""
107
+
108
+ if ($pathUpdated) {
109
+ Write-Host "⚠️ IMPORTANT: You need to update your PATH first!" -ForegroundColor $YELLOW
110
+ Write-Host ""
111
+ }
112
+
113
+ Write-Host "Next steps:" -ForegroundColor $BLUE
114
+ Write-Host "1. Get your API keys:" -ForegroundColor $WHITE
115
+ Write-Host " • GLM: https://open.bigmodel.cn/usercenter/apikeys" -ForegroundColor $BLUE
116
+ Write-Host " • MiniMax: https://platform.minimax.io/" -ForegroundColor $BLUE
117
+ Write-Host " • OpenAI: https://platform.openai.com/api-keys" -ForegroundColor $BLUE
118
+ Write-Host " • Gemini: https://aistudio.google.com/app/apikey" -ForegroundColor $BLUE
119
+ Write-Host ""
120
+ Write-Host "2. Save API keys:" -ForegroundColor $WHITE
121
+ Write-Host " claude-all" -ForegroundColor $BLUE
122
+ Write-Host " # Choose: 10) 🔑 API Key Manager" -ForegroundColor $WHITE
123
+ Write-Host ""
124
+ Write-Host " Or directly:" -ForegroundColor $WHITE
125
+ Write-Host " glm-key update" -ForegroundColor $BLUE
126
+ Write-Host " minimax-key update" -ForegroundColor $BLUE
127
+ Write-Host ""
128
+ Write-Host "3. Start chatting:" -ForegroundColor $WHITE
129
+ Write-Host " claude-all 7 # For GLM" -ForegroundColor $BLUE
130
+ Write-Host " claude-all 1 # For MiniMax" -ForegroundColor $BLUE
131
+ Write-Host ""
132
+ Write-Host "📚 Documentation:" -ForegroundColor $BLUE
133
+ Write-Host " https://github.com/zesbe/Claude-All-New" -ForegroundColor $WHITE
134
+ Write-Host ""
135
+ Write-Host "Happy Chatting! 🚀" -ForegroundColor $GREEN