luna-agents 2.0.1

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 (290) hide show
  1. package/.claude-plugin/LICENSE +21 -0
  2. package/.claude-plugin/README.md +285 -0
  3. package/.claude-plugin/claude-plugin.json +106 -0
  4. package/.claude-plugin/index.js +318 -0
  5. package/.claude-plugin/lib/api-client.js +504 -0
  6. package/.claude-plugin/lib/rag-utils.js +442 -0
  7. package/.claude-plugin/package.json +418 -0
  8. package/LICENSE +21 -0
  9. package/README.md +350 -0
  10. package/agents/json/design-architect.json +57 -0
  11. package/agents/json/luna-auth.json +71 -0
  12. package/agents/json/luna-brand.json +66 -0
  13. package/agents/json/luna-cloudflare.json +261 -0
  14. package/agents/json/luna-code-review.json +63 -0
  15. package/agents/json/luna-deployment.json +68 -0
  16. package/agents/json/luna-documentation.json +85 -0
  17. package/agents/json/luna-hig.json +128 -0
  18. package/agents/json/luna-layout-designer.json +178 -0
  19. package/agents/json/luna-monitoring-observability.json +64 -0
  20. package/agents/json/luna-post-launch-review.json +68 -0
  21. package/agents/json/luna-requirements-analyzer.json +53 -0
  22. package/agents/json/luna-task-executor.json +63 -0
  23. package/agents/json/luna-task-planner.json +62 -0
  24. package/agents/json/luna-testing-validation.json +66 -0
  25. package/agents/luna-365-security.md +96 -0
  26. package/agents/luna-analytics.md +318 -0
  27. package/agents/luna-api-generator.md +654 -0
  28. package/agents/luna-auth.md +396 -0
  29. package/agents/luna-brand.md +248 -0
  30. package/agents/luna-cloudflare.md +728 -0
  31. package/agents/luna-code-review.md +487 -0
  32. package/agents/luna-database.md +453 -0
  33. package/agents/luna-deployment.md +202 -0
  34. package/agents/luna-design-architect.md +353 -0
  35. package/agents/luna-docker.md +615 -0
  36. package/agents/luna-documentation.md +177 -0
  37. package/agents/luna-full-test.md +910 -0
  38. package/agents/luna-glm-vision.md +211 -0
  39. package/agents/luna-hig.md +430 -0
  40. package/agents/luna-lemonsqueezy.md +441 -0
  41. package/agents/luna-monitoring-observability.md +199 -0
  42. package/agents/luna-openai-app.md +499 -0
  43. package/agents/luna-post-launch-review.md +191 -0
  44. package/agents/luna-rag-enhanced.md +1619 -0
  45. package/agents/luna-rag.md +1733 -0
  46. package/agents/luna-requirements-analyzer.md +189 -0
  47. package/agents/luna-run.md +620 -0
  48. package/agents/luna-seo.md +338 -0
  49. package/agents/luna-task-executor.md +371 -0
  50. package/agents/luna-task-planner.md +275 -0
  51. package/agents/luna-testing-validation.md +681 -0
  52. package/agents/luna-ui-fix.md +591 -0
  53. package/agents/luna-ui-test.md +600 -0
  54. package/agents/luna-user-guide.md +409 -0
  55. package/agents/site-auditor.md +83 -0
  56. package/commands/3d-mesh.md +12 -0
  57. package/commands/3d.md +12 -0
  58. package/commands/agent-boost.md +13 -0
  59. package/commands/ai-index.md +16 -0
  60. package/commands/api.md +12 -0
  61. package/commands/assert.md +17 -0
  62. package/commands/audience.md +12 -0
  63. package/commands/auth.md +17 -0
  64. package/commands/autopilot.md +12 -0
  65. package/commands/boost-finsavvy.md +10 -0
  66. package/commands/boost-org.md +10 -0
  67. package/commands/boost-project.md +12 -0
  68. package/commands/brand.md +17 -0
  69. package/commands/browser-test.md +18 -0
  70. package/commands/cf.md +26 -0
  71. package/commands/cfg.md +33 -0
  72. package/commands/chain.md +12 -0
  73. package/commands/challenge.md +13 -0
  74. package/commands/clone.md +12 -0
  75. package/commands/cmds.md +243 -0
  76. package/commands/collab.md +12 -0
  77. package/commands/compete.md +12 -0
  78. package/commands/config-rules.md +21 -0
  79. package/commands/connect-infra.md +10 -0
  80. package/commands/context-pack.md +13 -0
  81. package/commands/curb.md +12 -0
  82. package/commands/des.md +38 -0
  83. package/commands/devto.md +20 -0
  84. package/commands/dock.md +26 -0
  85. package/commands/docs.md +33 -0
  86. package/commands/e2e-flow.md +18 -0
  87. package/commands/email-routing.md +10 -0
  88. package/commands/feature.md +12 -0
  89. package/commands/figma.md +12 -0
  90. package/commands/fix.md +12 -0
  91. package/commands/flaky.md +12 -0
  92. package/commands/flow-record.md +12 -0
  93. package/commands/gamify.md +12 -0
  94. package/commands/ghost.md +12 -0
  95. package/commands/git-insights.md +12 -0
  96. package/commands/go-viral.md +16 -0
  97. package/commands/go.md +42 -0
  98. package/commands/graph-rag.md +13 -0
  99. package/commands/guard.md +12 -0
  100. package/commands/heal.md +17 -0
  101. package/commands/heygen.md +12 -0
  102. package/commands/hig.md +33 -0
  103. package/commands/idea.md +12 -0
  104. package/commands/imagine.md +12 -0
  105. package/commands/inbox.md +12 -0
  106. package/commands/lam.md +12 -0
  107. package/commands/landing.md +12 -0
  108. package/commands/launch.md +12 -0
  109. package/commands/learn.md +12 -0
  110. package/commands/leverage.md +12 -0
  111. package/commands/ll-365-secure.md +179 -0
  112. package/commands/ll-3d-mesh.md +94 -0
  113. package/commands/ll-3d.md +123 -0
  114. package/commands/ll-a11y-scan.md +143 -0
  115. package/commands/ll-a11y.md +71 -0
  116. package/commands/ll-agent-boost.md +92 -0
  117. package/commands/ll-agent-chain.md +104 -0
  118. package/commands/ll-ai-index.md +120 -0
  119. package/commands/ll-api-client.md +77 -0
  120. package/commands/ll-api.md +99 -0
  121. package/commands/ll-assert.md +73 -0
  122. package/commands/ll-audience.md +308 -0
  123. package/commands/ll-auth.md +145 -0
  124. package/commands/ll-autopilot.md +113 -0
  125. package/commands/ll-boost-finsavvy.md +106 -0
  126. package/commands/ll-boost-org.md +161 -0
  127. package/commands/ll-boost-project.md +118 -0
  128. package/commands/ll-brand.md +150 -0
  129. package/commands/ll-browser-test.md +203 -0
  130. package/commands/ll-challenge.md +124 -0
  131. package/commands/ll-changelog.md +80 -0
  132. package/commands/ll-ci.md +78 -0
  133. package/commands/ll-claude-instructions.md +80 -0
  134. package/commands/ll-clone.md +82 -0
  135. package/commands/ll-cloudflare.md +580 -0
  136. package/commands/ll-codemap.md +78 -0
  137. package/commands/ll-collab.md +87 -0
  138. package/commands/ll-compete.md +67 -0
  139. package/commands/ll-config-rules.md +255 -0
  140. package/commands/ll-config.md +434 -0
  141. package/commands/ll-connect-infra.md +123 -0
  142. package/commands/ll-context-pack.md +100 -0
  143. package/commands/ll-curb.md +164 -0
  144. package/commands/ll-debug.md +76 -0
  145. package/commands/ll-deploy.md +101 -0
  146. package/commands/ll-deps.md +70 -0
  147. package/commands/ll-design.md +86 -0
  148. package/commands/ll-devto-publish.md +172 -0
  149. package/commands/ll-dockerize.md +273 -0
  150. package/commands/ll-docs.md +123 -0
  151. package/commands/ll-e2e-flow.md +132 -0
  152. package/commands/ll-e2e-test.md +231 -0
  153. package/commands/ll-email-routing.md +130 -0
  154. package/commands/ll-env.md +70 -0
  155. package/commands/ll-execute.md +98 -0
  156. package/commands/ll-feature.md +80 -0
  157. package/commands/ll-figma.md +82 -0
  158. package/commands/ll-fix.md +76 -0
  159. package/commands/ll-flaky.md +151 -0
  160. package/commands/ll-flow-record.md +180 -0
  161. package/commands/ll-flowdocs.md +83 -0
  162. package/commands/ll-gamify.md +131 -0
  163. package/commands/ll-gemma4.md +84 -0
  164. package/commands/ll-ghost.md +79 -0
  165. package/commands/ll-git-insights.md +152 -0
  166. package/commands/ll-go-viral.md +171 -0
  167. package/commands/ll-graph-rag.md +113 -0
  168. package/commands/ll-guard.md +92 -0
  169. package/commands/ll-heal.md +135 -0
  170. package/commands/ll-heygen.md +203 -0
  171. package/commands/ll-hig.md +578 -0
  172. package/commands/ll-hld.md +84 -0
  173. package/commands/ll-i18n.md +74 -0
  174. package/commands/ll-idea.md +101 -0
  175. package/commands/ll-imagine.md +72 -0
  176. package/commands/ll-inbox.md +116 -0
  177. package/commands/ll-lam.md +93 -0
  178. package/commands/ll-landing.md +171 -0
  179. package/commands/ll-launch.md +100 -0
  180. package/commands/ll-learn.md +87 -0
  181. package/commands/ll-leverage.md +137 -0
  182. package/commands/ll-local-llm.md +131 -0
  183. package/commands/ll-ls-products.md +160 -0
  184. package/commands/ll-marketplace.md +130 -0
  185. package/commands/ll-mcp-publish.md +104 -0
  186. package/commands/ll-migrate.md +68 -0
  187. package/commands/ll-mock.md +79 -0
  188. package/commands/ll-money.md +87 -0
  189. package/commands/ll-monitor.md +120 -0
  190. package/commands/ll-morph.md +117 -0
  191. package/commands/ll-multi-agent.md +170 -0
  192. package/commands/ll-native.md +93 -0
  193. package/commands/ll-nexa.md +79 -0
  194. package/commands/ll-onboarding.md +84 -0
  195. package/commands/ll-openhands.md +78 -0
  196. package/commands/ll-organic-promote.md +260 -0
  197. package/commands/ll-parallel.md +74 -0
  198. package/commands/ll-payments.md +83 -0
  199. package/commands/ll-perf-trace.md +147 -0
  200. package/commands/ll-perf.md +65 -0
  201. package/commands/ll-persona.md +280 -0
  202. package/commands/ll-pipe.md +296 -0
  203. package/commands/ll-plan-impl.js +570 -0
  204. package/commands/ll-plan-v2.md +297 -0
  205. package/commands/ll-plan.md +87 -0
  206. package/commands/ll-postlaunch.md +109 -0
  207. package/commands/ll-pr.md +84 -0
  208. package/commands/ll-present.md +110 -0
  209. package/commands/ll-product-map.md +152 -0
  210. package/commands/ll-promote.md +352 -0
  211. package/commands/ll-publish.md +124 -0
  212. package/commands/ll-pulse.md +96 -0
  213. package/commands/ll-rag-guided.md +345 -0
  214. package/commands/ll-rag-upgrade.md +504 -0
  215. package/commands/ll-rag.md +343 -0
  216. package/commands/ll-record.md +114 -0
  217. package/commands/ll-refactor.md +71 -0
  218. package/commands/ll-requirements.md +71 -0
  219. package/commands/ll-review.md +92 -0
  220. package/commands/ll-rollback.md +66 -0
  221. package/commands/ll-routemap.md +79 -0
  222. package/commands/ll-rules.md +90 -0
  223. package/commands/ll-shortcuts.md +229 -0
  224. package/commands/ll-sing.md +99 -0
  225. package/commands/ll-site-audit.md +228 -0
  226. package/commands/ll-smart-route.md +92 -0
  227. package/commands/ll-smart-search.md +58 -0
  228. package/commands/ll-storybook.md +86 -0
  229. package/commands/ll-swarm.md +101 -0
  230. package/commands/ll-test.md +97 -0
  231. package/commands/ll-time-machine.md +72 -0
  232. package/commands/ll-ui-convert.md +433 -0
  233. package/commands/ll-video.md +108 -0
  234. package/commands/ll-vision-pipeline.md +247 -0
  235. package/commands/ll-vision.md +74 -0
  236. package/commands/ll-visual-diff.md +118 -0
  237. package/commands/ll-visual-qa.md +204 -0
  238. package/commands/ll-visual-regression.md +96 -0
  239. package/commands/ll-voice.md +138 -0
  240. package/commands/ll-watch.md +65 -0
  241. package/commands/ll-workflow.md +108 -0
  242. package/commands/ll-zen.md +98 -0
  243. package/commands/local-llm.md +12 -0
  244. package/commands/marketplace.md +13 -0
  245. package/commands/mcp-publish.md +16 -0
  246. package/commands/migrate.md +12 -0
  247. package/commands/money.md +12 -0
  248. package/commands/morph.md +12 -0
  249. package/commands/multi-agent.md +12 -0
  250. package/commands/native.md +12 -0
  251. package/commands/nexa.md +12 -0
  252. package/commands/oh.md +12 -0
  253. package/commands/organic-promote.md +16 -0
  254. package/commands/perf-trace.md +12 -0
  255. package/commands/perf.md +12 -0
  256. package/commands/persona.md +12 -0
  257. package/commands/pipe.md +21 -0
  258. package/commands/plan.md +38 -0
  259. package/commands/pr.md +12 -0
  260. package/commands/present.md +12 -0
  261. package/commands/product-map.md +13 -0
  262. package/commands/promote.md +16 -0
  263. package/commands/publish.md +12 -0
  264. package/commands/pulse.md +12 -0
  265. package/commands/q.md +35 -0
  266. package/commands/record.md +12 -0
  267. package/commands/refactor.md +12 -0
  268. package/commands/req.md +40 -0
  269. package/commands/retro.md +33 -0
  270. package/commands/rev.md +39 -0
  271. package/commands/rules.md +19 -0
  272. package/commands/search.md +12 -0
  273. package/commands/sec.md +34 -0
  274. package/commands/ship.md +39 -0
  275. package/commands/sing.md +12 -0
  276. package/commands/site-audit.md +12 -0
  277. package/commands/smart-route.md +13 -0
  278. package/commands/swarm.md +12 -0
  279. package/commands/test.md +39 -0
  280. package/commands/time-machine.md +12 -0
  281. package/commands/ui.md +33 -0
  282. package/commands/video.md +12 -0
  283. package/commands/vision.md +12 -0
  284. package/commands/voice.md +12 -0
  285. package/commands/vr.md +18 -0
  286. package/commands/watch.md +39 -0
  287. package/commands/workflow.md +19 -0
  288. package/commands/zen.md +12 -0
  289. package/package.json +76 -0
  290. package/setup.sh +382 -0
@@ -0,0 +1,19 @@
1
+ ---
2
+ name: workflow
3
+ displayName: Workflow Manager (shortcut)
4
+ description: "Shortcut: Save, load, list named pipelines -> /ll-workflow"
5
+ version: 1.0.0
6
+ category: workflow
7
+ shortcut_for: ll-workflow
8
+ ---
9
+
10
+ # /workflow — Workflow Manager
11
+
12
+ Shortcut for `/ll-workflow`. Save, load, and share reusable pipeline workflows.
13
+
14
+ ```
15
+ /workflow save quality-gate "(rev ~~ test ~~ sec)"
16
+ /workflow list
17
+ /workflow templates
18
+ /pipe run quality-gate ?>> ship
19
+ ```
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: zen
3
+ displayName: Zen (shortcut)
4
+ description: "Shortcut: → /ll-zen"
5
+ version: 1.0.0
6
+ category: shortcut
7
+ shortcut_for: ll-zen
8
+ ---
9
+
10
+ # /zen — Shortcut for /ll-zen
11
+
12
+ See /ll-zen for full documentation.
package/package.json ADDED
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "luna-agents",
3
+ "version": "2.0.1",
4
+ "description": "Complete AI-powered development lifecycle management for Claude Code",
5
+ "main": ".claude-plugin/index.js",
6
+ "scripts": {
7
+ "setup": "bash setup.sh",
8
+ "install:mcp": "cd mcp-servers/luna-nexa-rag && npm install",
9
+ "install:plugin": "cd .claude-plugin && npm install",
10
+ "install:all": "npm run install:mcp && npm run install:plugin",
11
+ "configure:mcp": "cd mcp-servers/luna-nexa-rag && npm run setup",
12
+ "start:mcp": "cd mcp-servers/luna-nexa-rag && npm start",
13
+ "link:plugin": "node scripts/link-plugin.js",
14
+ "test": "echo 'Running Luna Agents tests...' && npm run test:plugin && npm run test:mcp",
15
+ "test:plugin": "cd .claude-plugin && npm test",
16
+ "test:mcp": "cd mcp-servers/luna-nexa-rag && npm test",
17
+ "dev": "concurrently \"npm run start:mcp\" \"npm run watch:plugin\"",
18
+ "watch:plugin": "cd .claude-plugin && npm run watch",
19
+ "clean": "rm -rf node_modules .claude-plugin/node_modules mcp-servers/luna-nexa-rag/node_modules",
20
+ "reinstall": "npm run clean && npm install"
21
+ },
22
+ "keywords": [
23
+ "claude",
24
+ "claude-code",
25
+ "plugin",
26
+ "mcp",
27
+ "ai",
28
+ "development",
29
+ "workflow",
30
+ "automation",
31
+ "semantic-search",
32
+ "rag",
33
+ "agents"
34
+ ],
35
+ "author": "Shachar Solomon",
36
+ "license": "MIT",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/lunaos-ai/luna-agents.git"
40
+ },
41
+ "bugs": {
42
+ "url": "https://github.com/lunaos-ai/luna-agents/issues"
43
+ },
44
+ "homepage": "https://github.com/lunaos-ai/luna-agents#readme",
45
+ "engines": {
46
+ "node": ">=18.0.0",
47
+ "npm": ">=8.0.0"
48
+ },
49
+ "workspaces": [
50
+ ".claude-plugin",
51
+ "mcp-servers/luna-nexa-rag",
52
+ "mcp-servers/luna-glm-vision",
53
+ "mcp-servers/luna-vision-rag-client"
54
+ ],
55
+ "devDependencies": {
56
+ "@types/ws": "^8.18.1",
57
+ "concurrently": "^8.2.2"
58
+ },
59
+ "files": [
60
+ ".claude-plugin/index.js",
61
+ ".claude-plugin/lib/",
62
+ ".claude-plugin/claude-plugin.json",
63
+ ".claude-plugin/package.json",
64
+ "commands/",
65
+ "agents/",
66
+ "setup.sh",
67
+ "README.md",
68
+ "LICENSE"
69
+ ],
70
+ "bin": {
71
+ "luna-setup": "./setup.sh"
72
+ },
73
+ "dependencies": {
74
+ "ws": "^8.19.0"
75
+ }
76
+ }
package/setup.sh ADDED
@@ -0,0 +1,382 @@
1
+ #!/bin/bash
2
+
3
+ # Luna Agents - Automated Setup Script
4
+ # This script sets up the complete Luna Agents plugin and MCP server
5
+
6
+ set -e
7
+
8
+ echo "🌙 Luna Agents Setup"
9
+ echo "===================="
10
+ echo ""
11
+
12
+ # Colors for output
13
+ RED='\033[0;31m'
14
+ GREEN='\033[0;32m'
15
+ YELLOW='\033[1;33m'
16
+ NC='\033[0m' # No Color
17
+
18
+ # Function to print colored output
19
+ print_success() {
20
+ echo -e "${GREEN}✓${NC} $1"
21
+ }
22
+
23
+ print_error() {
24
+ echo -e "${RED}✗${NC} $1"
25
+ }
26
+
27
+ print_info() {
28
+ echo -e "${YELLOW}➜${NC} $1"
29
+ }
30
+
31
+ # Check prerequisites
32
+ print_info "Checking prerequisites..."
33
+
34
+ # Check Node.js
35
+ if ! command -v node &> /dev/null; then
36
+ print_error "Node.js is not installed. Please install Node.js 18+ first."
37
+ exit 1
38
+ fi
39
+
40
+ NODE_VERSION=$(node -v | cut -d'v' -f2 | cut -d'.' -f1)
41
+ if [ "$NODE_VERSION" -lt 18 ]; then
42
+ print_error "Node.js version 18+ is required. Current version: $(node -v)"
43
+ exit 1
44
+ fi
45
+ print_success "Node.js $(node -v) detected"
46
+
47
+ # Check Git
48
+ if ! command -v git &> /dev/null; then
49
+ print_error "Git is not installed. Please install Git first."
50
+ exit 1
51
+ fi
52
+ print_success "Git $(git --version | cut -d' ' -f3) detected"
53
+
54
+ # Check npm
55
+ if ! command -v npm &> /dev/null; then
56
+ print_error "npm is not installed. Please install npm first."
57
+ exit 1
58
+ fi
59
+ print_success "npm $(npm -v) detected"
60
+
61
+ echo ""
62
+ print_info "All prerequisites met!"
63
+ echo ""
64
+
65
+ # Get project root
66
+ PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
67
+ cd "$PROJECT_ROOT"
68
+
69
+ # Setup MCP Server
70
+ print_info "🔍 Luna RAG Tools: MCP Server..."
71
+ cd mcp-servers/luna-nexa-rag
72
+
73
+ if [ -f "package.json" ]; then
74
+ print_info "Installing MCP server dependencies..."
75
+ npm install
76
+ print_success "MCP server dependencies installed"
77
+ else
78
+ print_error "MCP server package.json not found"
79
+ exit 1
80
+ fi
81
+
82
+ # Run MCP setup
83
+ print_info "Configuring MCP server..."
84
+ echo ""
85
+ echo "You'll be asked to configure the MCP server."
86
+ echo "Press Enter to accept defaults or enter custom values."
87
+ echo ""
88
+
89
+ npm run setup
90
+
91
+ cd "$PROJECT_ROOT"
92
+
93
+ # Setup Claude Plugin
94
+ print_info "Setting up Claude Code Plugin..."
95
+ cd .claude-plugin
96
+
97
+ if [ -f "package.json" ]; then
98
+ print_info "Installing plugin dependencies..."
99
+ npm install
100
+ print_success "Plugin dependencies installed"
101
+ fi
102
+
103
+ cd "$PROJECT_ROOT"
104
+
105
+ # Create symlink or copy plugin to Claude config
106
+ CLAUDE_CONFIG_DIR=""
107
+ if [[ "$OSTYPE" == "darwin"* ]]; then
108
+ CLAUDE_CONFIG_DIR="$HOME/Library/Application Support/Claude"
109
+ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
110
+ CLAUDE_CONFIG_DIR="$HOME/.config/Claude"
111
+ elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
112
+ CLAUDE_CONFIG_DIR="$APPDATA/Claude"
113
+ fi
114
+
115
+ if [ -n "$CLAUDE_CONFIG_DIR" ]; then
116
+ PLUGINS_DIR="$CLAUDE_CONFIG_DIR/plugins"
117
+ mkdir -p "$PLUGINS_DIR"
118
+
119
+ print_info "Installing plugin to Claude..."
120
+ PLUGIN_DEST="$PLUGINS_DIR/luna-agents"
121
+
122
+ if [ -L "$PLUGIN_DEST" ] || [ -d "$PLUGIN_DEST" ]; then
123
+ print_info "Removing existing plugin installation..."
124
+ rm -rf "$PLUGIN_DEST"
125
+ fi
126
+
127
+ ln -s "$PROJECT_ROOT/.claude-plugin" "$PLUGIN_DEST"
128
+ print_success "Plugin installed to $PLUGIN_DEST"
129
+
130
+ # Configure Luna Vision RAG MCP Server
131
+ print_info "Configuring Luna Vision RAG MCP Server..."
132
+ CLAUDE_CONFIG_FILE="$CLAUDE_CONFIG_DIR/claude_desktop_config.json"
133
+
134
+ # Create config file if it doesn't exist
135
+ if [ ! -f "$CLAUDE_CONFIG_FILE" ]; then
136
+ echo '{"mcpServers":{}}' > "$CLAUDE_CONFIG_FILE"
137
+ print_success "Created Claude Desktop config file"
138
+ fi
139
+
140
+ # Add Luna RAG MCP servers to config
141
+ python3 -c "
142
+ import json
143
+ import sys
144
+ import os
145
+
146
+ config_file = '$CLAUDE_CONFIG_FILE'
147
+ project_root = '$PROJECT_ROOT'
148
+
149
+ try:
150
+ with open(config_file, 'r') as f:
151
+ config = json.load(f)
152
+ except:
153
+ config = {}
154
+
155
+ if 'mcpServers' not in config:
156
+ config['mcpServers'] = {}
157
+
158
+ # Add Luna RAG local MCP server (for free tier)
159
+ config['mcpServers']['luna-nexa-rag'] = {
160
+ 'command': 'node',
161
+ 'args': [os.path.join(project_root, 'mcp-servers/luna-nexa-rag/index.js')],
162
+ 'startOnLaunch': False,
163
+ 'disabled': True # Disabled by default, user can enable
164
+ }
165
+
166
+ # Add Luna Vision RAG cloud MCP server (premium features)
167
+ config['mcpServers']['luna-vision-rag'] = {
168
+ 'url': 'https://luna-vision-rag-mcp.broad-dew-49ad.workers.dev/mcp'
169
+ }
170
+
171
+ # Add Luna GLM Vision cloud MCP server (premium features)
172
+ config['mcpServers']['luna-glm-vision'] = {
173
+ 'url': 'https://luna-glm-vision-mcp.broad-dew-49ad.workers.dev/mcp'
174
+ }
175
+
176
+ with open(config_file, 'w') as f:
177
+ json.dump(config, f, indent=2)
178
+
179
+ print('✓ Luna RAG MCP servers configured')
180
+ print('✓ Luna Vision RAG cloud server configured')
181
+ print('✓ Luna GLM Vision cloud server configured')
182
+ " 2>/dev/null || {
183
+ # Fallback if python3 is not available
184
+ print_info "Python3 not found, skipping automatic MCP configuration"
185
+ print_info "Please manually add to $CLAUDE_CONFIG_FILE:"
186
+ echo ""
187
+ echo '{
188
+ "mcpServers": {
189
+ "luna-nexa-rag": {
190
+ "command": "node",
191
+ "args": ["'$PROJECT_ROOT'/mcp-servers/luna-nexa-rag/index.js"],
192
+ "startOnLaunch": false,
193
+ "disabled": true
194
+ },
195
+ "luna-vision-rag": {
196
+ "url": "https://luna-vision-rag-mcp.broad-dew-49ad.workers.dev/mcp"
197
+ },
198
+ "luna-glm-vision": {
199
+ "url": "https://luna-glm-vision-mcp.broad-dew-49ad.workers.dev/mcp"
200
+ }
201
+ }
202
+ }'
203
+ echo ""
204
+ }
205
+
206
+ print_success "Luna RAG MCP servers configured"
207
+
208
+ # Setup ChromaDB for local RAG (optional, for free tier)
209
+ print_info "Setting up ChromaDB for local RAG (optional)..."
210
+ if command -v docker &> /dev/null; then
211
+ if docker ps | grep -q luna-chroma; then
212
+ print_success "ChromaDB already running"
213
+ else
214
+ print_info "Starting ChromaDB container..."
215
+ docker run -d --name luna-chroma -p 8000:8000 chromadb/chroma 2>/dev/null || {
216
+ print_info "Docker not running or ChromaDB failed to start"
217
+ print_info "Run this command later to enable local RAG:"
218
+ echo " docker run -d --name luna-chroma -p 8000:8000 chromadb/chroma"
219
+ }
220
+ if [ $? -eq 0 ]; then
221
+ print_success "ChromaDB started on port 8000"
222
+ fi
223
+ fi
224
+ else
225
+ print_info "Docker not installed - local RAG requires ChromaDB"
226
+ print_info "Install Docker or use cloud-based RAG features"
227
+ fi
228
+ fi
229
+
230
+ # Create quick start guide
231
+ print_info "Creating quick start guide..."
232
+ cat > QUICK_START.md << 'EOF'
233
+ # 🚀 Luna Agents Quick Start
234
+
235
+ ## What You Just Installed
236
+
237
+ Luna Agents provides:
238
+ - **10 AI Agents** for complete development lifecycle
239
+ - **Luna RAG** - Semantic code search MCP server
240
+ - **Luna Vision RAG™** - Context-aware GUI testing (cloud-based)
241
+ - **Commands** for workflow automation
242
+
243
+ ## Usage
244
+
245
+ ### In Claude Code:
246
+
247
+ 1. **Start a new project workflow:**
248
+ ```
249
+ /luna-requirements
250
+ ```
251
+
252
+ 2. **Design architecture:**
253
+ ```
254
+ /luna-design
255
+ ```
256
+
257
+ 3. **Create implementation plan:**
258
+ ```
259
+ /luna-plan
260
+ ```
261
+
262
+ 4. **Execute tasks:**
263
+ ```
264
+ /luna-execute
265
+ ```
266
+
267
+ 5. **Review code:**
268
+ ```
269
+ /luna-review
270
+ ```
271
+
272
+ ### Available Commands:
273
+ - `/luna-requirements` - Analyze requirements
274
+ - `/luna-design` - Create technical design
275
+ - `/luna-plan` - Generate task plan
276
+ - `/luna-execute` - Implement tasks
277
+ - `/luna-review` - Code review
278
+ - `/luna-test` - Create tests
279
+ - `/luna-deploy` - Deploy to production
280
+ - `/luna-docs` - Generate documentation
281
+ - `/luna-monitor` - Setup monitoring
282
+ - `/luna-review-launch` - Post-launch review
283
+
284
+ ### 🧠 Semantic Code Search (Luna RAG) - Built into Claude Code!
285
+
286
+ RAG works automatically in Claude Code - no manual commands needed! Just ask questions:
287
+
288
+ **Examples:**
289
+ - "How does authentication work in this project?"
290
+ - "Find similar implementations to user profiles"
291
+ - "What are the error handling patterns?"
292
+ - "Search for database connection code"
293
+ - "Show me examples of API endpoints"
294
+
295
+ **What's Available:**
296
+ - **Free Tier**: Local RAG with ChromaDB (auto-installed)
297
+ - **Premium**: Cloud-based Luna Vision RAG™ + GLM Vision
298
+
299
+ **To enable local RAG (Free Tier):**
300
+ 1. Ensure Docker is running
301
+ 2. Run: `docker run -d --name luna-chroma -p 8000:8000 chromadb/chroma`
302
+ 3. Restart Claude Desktop
303
+ 4. Start asking questions about your code!
304
+
305
+ **Premium Features:**
306
+ - Get API key: https://agent.lunaos.ai/pricing
307
+ - Luna Vision RAG™: Screenshot analysis + code context
308
+ - GLM Vision: Advanced visual AI testing
309
+ - `get_coding_patterns` - Extract patterns
310
+
311
+ ### Context-Aware GUI Testing (Luna Vision RAG™):
312
+
313
+ 11 powerful tools for testing:
314
+ - `rag_query` - Query codebase with natural language
315
+ - `rag_setup` - Configure RAG for projects
316
+ - `glm_analyze` - AI-powered UI analysis
317
+ - `glm_capture` - Screenshot capture
318
+ - `integration_generate` - Generate automated tests
319
+ - `integration_validate` - Validate UI vs code
320
+ - And 5 more tools...
321
+
322
+ ## Configuration
323
+
324
+ ### MCP Server
325
+ Config location: `~/.luna-nexa-rag/config.json`
326
+
327
+ To reconfigure:
328
+ ```bash
329
+ cd mcp-servers/luna-nexa-rag
330
+ npm run setup
331
+ ```
332
+
333
+ ### Plugin
334
+ Plugin location: `~/.config/Claude/plugins/luna-agents` (or similar)
335
+
336
+ ## Next Steps
337
+
338
+ 1. **Restart Claude Desktop** to load the plugin
339
+ 2. Open your project in Claude Code
340
+ 3. Run `/luna-requirements` to start
341
+ 4. Follow the workflow commands in order
342
+
343
+ ## Getting Help
344
+
345
+ - Check generated files in `.luna/[project-name]/`
346
+ - Review agent documentation in `.claude-plugin/`
347
+ - See main README.md for detailed information
348
+
349
+ ---
350
+
351
+ **Happy coding with Luna! 🌙**
352
+ EOF
353
+
354
+ print_success "Quick start guide created: QUICK_START.md"
355
+
356
+ echo ""
357
+ echo "=========================================="
358
+ print_success "Setup Complete!"
359
+ echo "=========================================="
360
+ echo ""
361
+ echo "📝 What's Next:"
362
+ echo ""
363
+ echo "1. Restart Claude Desktop to load the plugin"
364
+ echo "2. Open your project in Claude Code"
365
+ echo "3. Run '/luna-requirements' to start your workflow"
366
+ echo ""
367
+ echo "📖 Documentation:"
368
+ echo " - Quick Start: ./QUICK_START.md"
369
+ echo " - Full Guide: ./README.md"
370
+ echo " - Plugin Docs: ./.claude-plugin/README.md"
371
+ echo ""
372
+ echo "🔧 Configuration:"
373
+ echo " - MCP Config: ~/.luna-nexa-rag/config.json"
374
+ echo " - Plugin: $PLUGINS_DIR/luna-agents"
375
+ echo ""
376
+ echo "🆘 Troubleshooting:"
377
+ echo " - Run 'npm run setup' in mcp-servers/luna-nexa-rag/ to reconfigure"
378
+ echo " - Check Claude Desktop logs for plugin issues"
379
+ echo " - Ensure ChromaDB is running if using Nexa embeddings"
380
+ echo ""
381
+ print_success "Luna Agents is ready to use! 🌙"
382
+ echo ""