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.
- package/.claude-plugin/LICENSE +21 -0
- package/.claude-plugin/README.md +285 -0
- package/.claude-plugin/claude-plugin.json +106 -0
- package/.claude-plugin/index.js +318 -0
- package/.claude-plugin/lib/api-client.js +504 -0
- package/.claude-plugin/lib/rag-utils.js +442 -0
- package/.claude-plugin/package.json +418 -0
- package/LICENSE +21 -0
- package/README.md +350 -0
- package/agents/json/design-architect.json +57 -0
- package/agents/json/luna-auth.json +71 -0
- package/agents/json/luna-brand.json +66 -0
- package/agents/json/luna-cloudflare.json +261 -0
- package/agents/json/luna-code-review.json +63 -0
- package/agents/json/luna-deployment.json +68 -0
- package/agents/json/luna-documentation.json +85 -0
- package/agents/json/luna-hig.json +128 -0
- package/agents/json/luna-layout-designer.json +178 -0
- package/agents/json/luna-monitoring-observability.json +64 -0
- package/agents/json/luna-post-launch-review.json +68 -0
- package/agents/json/luna-requirements-analyzer.json +53 -0
- package/agents/json/luna-task-executor.json +63 -0
- package/agents/json/luna-task-planner.json +62 -0
- package/agents/json/luna-testing-validation.json +66 -0
- package/agents/luna-365-security.md +96 -0
- package/agents/luna-analytics.md +318 -0
- package/agents/luna-api-generator.md +654 -0
- package/agents/luna-auth.md +396 -0
- package/agents/luna-brand.md +248 -0
- package/agents/luna-cloudflare.md +728 -0
- package/agents/luna-code-review.md +487 -0
- package/agents/luna-database.md +453 -0
- package/agents/luna-deployment.md +202 -0
- package/agents/luna-design-architect.md +353 -0
- package/agents/luna-docker.md +615 -0
- package/agents/luna-documentation.md +177 -0
- package/agents/luna-full-test.md +910 -0
- package/agents/luna-glm-vision.md +211 -0
- package/agents/luna-hig.md +430 -0
- package/agents/luna-lemonsqueezy.md +441 -0
- package/agents/luna-monitoring-observability.md +199 -0
- package/agents/luna-openai-app.md +499 -0
- package/agents/luna-post-launch-review.md +191 -0
- package/agents/luna-rag-enhanced.md +1619 -0
- package/agents/luna-rag.md +1733 -0
- package/agents/luna-requirements-analyzer.md +189 -0
- package/agents/luna-run.md +620 -0
- package/agents/luna-seo.md +338 -0
- package/agents/luna-task-executor.md +371 -0
- package/agents/luna-task-planner.md +275 -0
- package/agents/luna-testing-validation.md +681 -0
- package/agents/luna-ui-fix.md +591 -0
- package/agents/luna-ui-test.md +600 -0
- package/agents/luna-user-guide.md +409 -0
- package/agents/site-auditor.md +83 -0
- package/commands/3d-mesh.md +12 -0
- package/commands/3d.md +12 -0
- package/commands/agent-boost.md +13 -0
- package/commands/ai-index.md +16 -0
- package/commands/api.md +12 -0
- package/commands/assert.md +17 -0
- package/commands/audience.md +12 -0
- package/commands/auth.md +17 -0
- package/commands/autopilot.md +12 -0
- package/commands/boost-finsavvy.md +10 -0
- package/commands/boost-org.md +10 -0
- package/commands/boost-project.md +12 -0
- package/commands/brand.md +17 -0
- package/commands/browser-test.md +18 -0
- package/commands/cf.md +26 -0
- package/commands/cfg.md +33 -0
- package/commands/chain.md +12 -0
- package/commands/challenge.md +13 -0
- package/commands/clone.md +12 -0
- package/commands/cmds.md +243 -0
- package/commands/collab.md +12 -0
- package/commands/compete.md +12 -0
- package/commands/config-rules.md +21 -0
- package/commands/connect-infra.md +10 -0
- package/commands/context-pack.md +13 -0
- package/commands/curb.md +12 -0
- package/commands/des.md +38 -0
- package/commands/devto.md +20 -0
- package/commands/dock.md +26 -0
- package/commands/docs.md +33 -0
- package/commands/e2e-flow.md +18 -0
- package/commands/email-routing.md +10 -0
- package/commands/feature.md +12 -0
- package/commands/figma.md +12 -0
- package/commands/fix.md +12 -0
- package/commands/flaky.md +12 -0
- package/commands/flow-record.md +12 -0
- package/commands/gamify.md +12 -0
- package/commands/ghost.md +12 -0
- package/commands/git-insights.md +12 -0
- package/commands/go-viral.md +16 -0
- package/commands/go.md +42 -0
- package/commands/graph-rag.md +13 -0
- package/commands/guard.md +12 -0
- package/commands/heal.md +17 -0
- package/commands/heygen.md +12 -0
- package/commands/hig.md +33 -0
- package/commands/idea.md +12 -0
- package/commands/imagine.md +12 -0
- package/commands/inbox.md +12 -0
- package/commands/lam.md +12 -0
- package/commands/landing.md +12 -0
- package/commands/launch.md +12 -0
- package/commands/learn.md +12 -0
- package/commands/leverage.md +12 -0
- package/commands/ll-365-secure.md +179 -0
- package/commands/ll-3d-mesh.md +94 -0
- package/commands/ll-3d.md +123 -0
- package/commands/ll-a11y-scan.md +143 -0
- package/commands/ll-a11y.md +71 -0
- package/commands/ll-agent-boost.md +92 -0
- package/commands/ll-agent-chain.md +104 -0
- package/commands/ll-ai-index.md +120 -0
- package/commands/ll-api-client.md +77 -0
- package/commands/ll-api.md +99 -0
- package/commands/ll-assert.md +73 -0
- package/commands/ll-audience.md +308 -0
- package/commands/ll-auth.md +145 -0
- package/commands/ll-autopilot.md +113 -0
- package/commands/ll-boost-finsavvy.md +106 -0
- package/commands/ll-boost-org.md +161 -0
- package/commands/ll-boost-project.md +118 -0
- package/commands/ll-brand.md +150 -0
- package/commands/ll-browser-test.md +203 -0
- package/commands/ll-challenge.md +124 -0
- package/commands/ll-changelog.md +80 -0
- package/commands/ll-ci.md +78 -0
- package/commands/ll-claude-instructions.md +80 -0
- package/commands/ll-clone.md +82 -0
- package/commands/ll-cloudflare.md +580 -0
- package/commands/ll-codemap.md +78 -0
- package/commands/ll-collab.md +87 -0
- package/commands/ll-compete.md +67 -0
- package/commands/ll-config-rules.md +255 -0
- package/commands/ll-config.md +434 -0
- package/commands/ll-connect-infra.md +123 -0
- package/commands/ll-context-pack.md +100 -0
- package/commands/ll-curb.md +164 -0
- package/commands/ll-debug.md +76 -0
- package/commands/ll-deploy.md +101 -0
- package/commands/ll-deps.md +70 -0
- package/commands/ll-design.md +86 -0
- package/commands/ll-devto-publish.md +172 -0
- package/commands/ll-dockerize.md +273 -0
- package/commands/ll-docs.md +123 -0
- package/commands/ll-e2e-flow.md +132 -0
- package/commands/ll-e2e-test.md +231 -0
- package/commands/ll-email-routing.md +130 -0
- package/commands/ll-env.md +70 -0
- package/commands/ll-execute.md +98 -0
- package/commands/ll-feature.md +80 -0
- package/commands/ll-figma.md +82 -0
- package/commands/ll-fix.md +76 -0
- package/commands/ll-flaky.md +151 -0
- package/commands/ll-flow-record.md +180 -0
- package/commands/ll-flowdocs.md +83 -0
- package/commands/ll-gamify.md +131 -0
- package/commands/ll-gemma4.md +84 -0
- package/commands/ll-ghost.md +79 -0
- package/commands/ll-git-insights.md +152 -0
- package/commands/ll-go-viral.md +171 -0
- package/commands/ll-graph-rag.md +113 -0
- package/commands/ll-guard.md +92 -0
- package/commands/ll-heal.md +135 -0
- package/commands/ll-heygen.md +203 -0
- package/commands/ll-hig.md +578 -0
- package/commands/ll-hld.md +84 -0
- package/commands/ll-i18n.md +74 -0
- package/commands/ll-idea.md +101 -0
- package/commands/ll-imagine.md +72 -0
- package/commands/ll-inbox.md +116 -0
- package/commands/ll-lam.md +93 -0
- package/commands/ll-landing.md +171 -0
- package/commands/ll-launch.md +100 -0
- package/commands/ll-learn.md +87 -0
- package/commands/ll-leverage.md +137 -0
- package/commands/ll-local-llm.md +131 -0
- package/commands/ll-ls-products.md +160 -0
- package/commands/ll-marketplace.md +130 -0
- package/commands/ll-mcp-publish.md +104 -0
- package/commands/ll-migrate.md +68 -0
- package/commands/ll-mock.md +79 -0
- package/commands/ll-money.md +87 -0
- package/commands/ll-monitor.md +120 -0
- package/commands/ll-morph.md +117 -0
- package/commands/ll-multi-agent.md +170 -0
- package/commands/ll-native.md +93 -0
- package/commands/ll-nexa.md +79 -0
- package/commands/ll-onboarding.md +84 -0
- package/commands/ll-openhands.md +78 -0
- package/commands/ll-organic-promote.md +260 -0
- package/commands/ll-parallel.md +74 -0
- package/commands/ll-payments.md +83 -0
- package/commands/ll-perf-trace.md +147 -0
- package/commands/ll-perf.md +65 -0
- package/commands/ll-persona.md +280 -0
- package/commands/ll-pipe.md +296 -0
- package/commands/ll-plan-impl.js +570 -0
- package/commands/ll-plan-v2.md +297 -0
- package/commands/ll-plan.md +87 -0
- package/commands/ll-postlaunch.md +109 -0
- package/commands/ll-pr.md +84 -0
- package/commands/ll-present.md +110 -0
- package/commands/ll-product-map.md +152 -0
- package/commands/ll-promote.md +352 -0
- package/commands/ll-publish.md +124 -0
- package/commands/ll-pulse.md +96 -0
- package/commands/ll-rag-guided.md +345 -0
- package/commands/ll-rag-upgrade.md +504 -0
- package/commands/ll-rag.md +343 -0
- package/commands/ll-record.md +114 -0
- package/commands/ll-refactor.md +71 -0
- package/commands/ll-requirements.md +71 -0
- package/commands/ll-review.md +92 -0
- package/commands/ll-rollback.md +66 -0
- package/commands/ll-routemap.md +79 -0
- package/commands/ll-rules.md +90 -0
- package/commands/ll-shortcuts.md +229 -0
- package/commands/ll-sing.md +99 -0
- package/commands/ll-site-audit.md +228 -0
- package/commands/ll-smart-route.md +92 -0
- package/commands/ll-smart-search.md +58 -0
- package/commands/ll-storybook.md +86 -0
- package/commands/ll-swarm.md +101 -0
- package/commands/ll-test.md +97 -0
- package/commands/ll-time-machine.md +72 -0
- package/commands/ll-ui-convert.md +433 -0
- package/commands/ll-video.md +108 -0
- package/commands/ll-vision-pipeline.md +247 -0
- package/commands/ll-vision.md +74 -0
- package/commands/ll-visual-diff.md +118 -0
- package/commands/ll-visual-qa.md +204 -0
- package/commands/ll-visual-regression.md +96 -0
- package/commands/ll-voice.md +138 -0
- package/commands/ll-watch.md +65 -0
- package/commands/ll-workflow.md +108 -0
- package/commands/ll-zen.md +98 -0
- package/commands/local-llm.md +12 -0
- package/commands/marketplace.md +13 -0
- package/commands/mcp-publish.md +16 -0
- package/commands/migrate.md +12 -0
- package/commands/money.md +12 -0
- package/commands/morph.md +12 -0
- package/commands/multi-agent.md +12 -0
- package/commands/native.md +12 -0
- package/commands/nexa.md +12 -0
- package/commands/oh.md +12 -0
- package/commands/organic-promote.md +16 -0
- package/commands/perf-trace.md +12 -0
- package/commands/perf.md +12 -0
- package/commands/persona.md +12 -0
- package/commands/pipe.md +21 -0
- package/commands/plan.md +38 -0
- package/commands/pr.md +12 -0
- package/commands/present.md +12 -0
- package/commands/product-map.md +13 -0
- package/commands/promote.md +16 -0
- package/commands/publish.md +12 -0
- package/commands/pulse.md +12 -0
- package/commands/q.md +35 -0
- package/commands/record.md +12 -0
- package/commands/refactor.md +12 -0
- package/commands/req.md +40 -0
- package/commands/retro.md +33 -0
- package/commands/rev.md +39 -0
- package/commands/rules.md +19 -0
- package/commands/search.md +12 -0
- package/commands/sec.md +34 -0
- package/commands/ship.md +39 -0
- package/commands/sing.md +12 -0
- package/commands/site-audit.md +12 -0
- package/commands/smart-route.md +13 -0
- package/commands/swarm.md +12 -0
- package/commands/test.md +39 -0
- package/commands/time-machine.md +12 -0
- package/commands/ui.md +33 -0
- package/commands/video.md +12 -0
- package/commands/vision.md +12 -0
- package/commands/voice.md +12 -0
- package/commands/vr.md +18 -0
- package/commands/watch.md +39 -0
- package/commands/workflow.md +19 -0
- package/commands/zen.md +12 -0
- package/package.json +76 -0
- 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
|
+
```
|
package/commands/zen.md
ADDED
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 ""
|