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,434 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-config
|
|
3
|
+
displayName: Luna Configuration Wizard
|
|
4
|
+
description: Configure Luna plugin to connect with Claude Agent Platform
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: configuration
|
|
7
|
+
parameters:
|
|
8
|
+
- name: action
|
|
9
|
+
type: string
|
|
10
|
+
description: Configuration action (setup/test/reset)
|
|
11
|
+
required: true
|
|
12
|
+
prompt: true
|
|
13
|
+
- name: api_url
|
|
14
|
+
type: string
|
|
15
|
+
description: API base URL
|
|
16
|
+
required: false
|
|
17
|
+
- name: api_key
|
|
18
|
+
type: string
|
|
19
|
+
description: API authentication key
|
|
20
|
+
required: false
|
|
21
|
+
workflow:
|
|
22
|
+
- validate_configuration_parameters
|
|
23
|
+
- test_api_connection
|
|
24
|
+
- create_or_update_configuration_file
|
|
25
|
+
- setup_authentication_if_needed
|
|
26
|
+
- verify_setup_complete
|
|
27
|
+
output:
|
|
28
|
+
- .luna-config.json (configuration file)
|
|
29
|
+
- .env.local (environment variables)
|
|
30
|
+
prerequisites:
|
|
31
|
+
- Claude Agent Platform running
|
|
32
|
+
- Valid API credentials
|
|
33
|
+
api_endpoints:
|
|
34
|
+
- GET /health - Test API connection
|
|
35
|
+
- POST /auth/login - Authentication
|
|
36
|
+
- GET /auth/me - Verify authentication
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
# Luna Configuration Wizard
|
|
40
|
+
|
|
41
|
+
Configure your Luna plugin to connect with the Claude Agent Platform API for enhanced capabilities.
|
|
42
|
+
|
|
43
|
+
## What This Command Does
|
|
44
|
+
|
|
45
|
+
Sets up the connection between your Luna plugin and the Claude Agent Platform backend, enabling:
|
|
46
|
+
- API communication
|
|
47
|
+
- Authentication
|
|
48
|
+
- Real-time task tracking
|
|
49
|
+
- RAG context integration
|
|
50
|
+
- Multi-provider AI access
|
|
51
|
+
|
|
52
|
+
## Configuration Actions
|
|
53
|
+
|
|
54
|
+
### 1. Setup (Recommended)
|
|
55
|
+
```bash
|
|
56
|
+
/luna-config setup
|
|
57
|
+
```
|
|
58
|
+
Interactive setup that guides you through:
|
|
59
|
+
- API URL configuration
|
|
60
|
+
- Authentication setup
|
|
61
|
+
- Connection testing
|
|
62
|
+
- Project detection
|
|
63
|
+
|
|
64
|
+
### 2. Test Connection
|
|
65
|
+
```bash
|
|
66
|
+
/luna-config test
|
|
67
|
+
```
|
|
68
|
+
Tests current configuration and reports:
|
|
69
|
+
- API connectivity status
|
|
70
|
+
- Authentication validity
|
|
71
|
+
- Agent availability
|
|
72
|
+
- Project sync status
|
|
73
|
+
|
|
74
|
+
### 3. Reset Configuration
|
|
75
|
+
```bash
|
|
76
|
+
/luna-config reset
|
|
77
|
+
```
|
|
78
|
+
Clears all configuration and starts fresh.
|
|
79
|
+
|
|
80
|
+
## Setup Instructions
|
|
81
|
+
|
|
82
|
+
### Quick Setup (Recommended)
|
|
83
|
+
```bash
|
|
84
|
+
# 1. Start configuration wizard
|
|
85
|
+
/luna-config setup
|
|
86
|
+
|
|
87
|
+
# 2. Follow prompts:
|
|
88
|
+
# - API URL: http://localhost:3000/api/v1 (default)
|
|
89
|
+
# - Email: your-email@example.com
|
|
90
|
+
# - Password: your-password
|
|
91
|
+
# - Project name: auto-detected
|
|
92
|
+
|
|
93
|
+
# 3. Test configuration
|
|
94
|
+
/luna-config test
|
|
95
|
+
|
|
96
|
+
# 4. Start using enhanced features
|
|
97
|
+
/luna-status
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Manual Setup
|
|
101
|
+
```bash
|
|
102
|
+
# 1. Create configuration file
|
|
103
|
+
cat > .luna-config.json << EOF
|
|
104
|
+
{
|
|
105
|
+
"api": {
|
|
106
|
+
"baseURL": "http://localhost:3000/api/v1",
|
|
107
|
+
"timeout": 30000,
|
|
108
|
+
"retries": 3
|
|
109
|
+
},
|
|
110
|
+
"auth": {
|
|
111
|
+
"autoLogin": true,
|
|
112
|
+
"storeCredentials": true
|
|
113
|
+
},
|
|
114
|
+
"features": {
|
|
115
|
+
"enableAPI": true,
|
|
116
|
+
"enableOfflineMode": true,
|
|
117
|
+
"enableCaching": true,
|
|
118
|
+
"autoDetectProject": true
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
EOF
|
|
122
|
+
|
|
123
|
+
# 2. Set environment variables
|
|
124
|
+
cat >> .env.local << EOF
|
|
125
|
+
LUNA_API_URL=http://localhost:3000/api/v1
|
|
126
|
+
LUNA_API_KEY=your-api-key-here
|
|
127
|
+
EOF
|
|
128
|
+
|
|
129
|
+
# 3. Test configuration
|
|
130
|
+
/luna-config test
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Configuration Options
|
|
134
|
+
|
|
135
|
+
### API Configuration
|
|
136
|
+
```json
|
|
137
|
+
{
|
|
138
|
+
"api": {
|
|
139
|
+
"baseURL": "http://localhost:3000/api/v1",
|
|
140
|
+
"timeout": 30000,
|
|
141
|
+
"retries": 3,
|
|
142
|
+
"headers": {
|
|
143
|
+
"User-Agent": "Luna-Plugin/2.0"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Authentication Configuration
|
|
150
|
+
```json
|
|
151
|
+
{
|
|
152
|
+
"auth": {
|
|
153
|
+
"autoLogin": true,
|
|
154
|
+
"storeCredentials": true,
|
|
155
|
+
"tokenRefresh": true,
|
|
156
|
+
"sessionTimeout": 3600
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Features Configuration
|
|
162
|
+
```json
|
|
163
|
+
{
|
|
164
|
+
"features": {
|
|
165
|
+
"enableAPI": true,
|
|
166
|
+
"enableOfflineMode": true,
|
|
167
|
+
"enableCaching": true,
|
|
168
|
+
"autoDetectProject": true,
|
|
169
|
+
"enableWebSocket": true,
|
|
170
|
+
"enableRAG": true,
|
|
171
|
+
"enableAIProviders": true
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
## Environment Variables
|
|
177
|
+
|
|
178
|
+
### Required Variables
|
|
179
|
+
```bash
|
|
180
|
+
LUNA_API_URL=http://localhost:3000/api/v1
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
### Optional Variables
|
|
184
|
+
```bash
|
|
185
|
+
LUNA_API_KEY=your-api-key-here
|
|
186
|
+
LUNA_PROJECT_ID=your-project-id
|
|
187
|
+
LUNA_CACHE_TIMEOUT=300000
|
|
188
|
+
LUNA_LOG_LEVEL=info
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Connection Testing
|
|
192
|
+
|
|
193
|
+
### Basic Test
|
|
194
|
+
```bash
|
|
195
|
+
/luna-config test
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Output:
|
|
199
|
+
```
|
|
200
|
+
🔗 Testing API Connection...
|
|
201
|
+
✅ API Server: Connected (http://localhost:3000/api/v1)
|
|
202
|
+
✅ Health Check: OK
|
|
203
|
+
✅ Database: Connected
|
|
204
|
+
✅ Redis: Connected
|
|
205
|
+
🤖 Agents: 8 available
|
|
206
|
+
⚡ Tasks: 0 running, 3 queued
|
|
207
|
+
🏠 Project: Detected (my-awesome-project)
|
|
208
|
+
🎉 Configuration is valid!
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Detailed Test
|
|
212
|
+
```bash
|
|
213
|
+
/luna-config test --detailed
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
Output includes:
|
|
217
|
+
- API endpoint connectivity
|
|
218
|
+
- Authentication status
|
|
219
|
+
- Database connection
|
|
220
|
+
- Agent availability
|
|
221
|
+
- WebSocket connection
|
|
222
|
+
- RAG service status
|
|
223
|
+
|
|
224
|
+
## Troubleshooting
|
|
225
|
+
|
|
226
|
+
### Connection Issues
|
|
227
|
+
```bash
|
|
228
|
+
# Check if API server is running
|
|
229
|
+
curl http://localhost:3000/api/v1/health
|
|
230
|
+
|
|
231
|
+
# Test API manually
|
|
232
|
+
curl -H "Authorization: Bearer YOUR_API_KEY" \
|
|
233
|
+
http://localhost:3000/api/v1/agents
|
|
234
|
+
|
|
235
|
+
# Check logs
|
|
236
|
+
docker-compose logs claude-agent-api
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Authentication Issues
|
|
240
|
+
```bash
|
|
241
|
+
# Test authentication
|
|
242
|
+
/luna-auth --test
|
|
243
|
+
|
|
244
|
+
# Reset credentials
|
|
245
|
+
/luna-config reset
|
|
246
|
+
/luna-config setup
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### Project Detection Issues
|
|
250
|
+
```bash
|
|
251
|
+
# Manual project setup
|
|
252
|
+
/luna-project --create "my-project"
|
|
253
|
+
|
|
254
|
+
# List available projects
|
|
255
|
+
/luna-projects --list
|
|
256
|
+
|
|
257
|
+
# Set project manually
|
|
258
|
+
LUNA_PROJECT_ID=your-project-id
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
## Configuration Files
|
|
262
|
+
|
|
263
|
+
### .luna-config.json
|
|
264
|
+
Main configuration file for the plugin:
|
|
265
|
+
```json
|
|
266
|
+
{
|
|
267
|
+
"version": "1.0.0",
|
|
268
|
+
"api": {
|
|
269
|
+
"baseURL": "http://localhost:3000/api/v1",
|
|
270
|
+
"timeout": 30000,
|
|
271
|
+
"retries": 3
|
|
272
|
+
},
|
|
273
|
+
"auth": {
|
|
274
|
+
"autoLogin": true,
|
|
275
|
+
"storeCredentials": true
|
|
276
|
+
},
|
|
277
|
+
"features": {
|
|
278
|
+
"enableAPI": true,
|
|
279
|
+
"enableOfflineMode": true,
|
|
280
|
+
"enableCaching": true,
|
|
281
|
+
"autoDetectProject": true
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### .env.local
|
|
287
|
+
Environment variables (git-ignored):
|
|
288
|
+
```bash
|
|
289
|
+
# API Configuration
|
|
290
|
+
LUNA_API_URL=http://localhost:3000/api/v1
|
|
291
|
+
LUNA_API_KEY=your-api-key-here
|
|
292
|
+
|
|
293
|
+
# Project Configuration
|
|
294
|
+
LUNA_PROJECT_ID=your-project-id
|
|
295
|
+
|
|
296
|
+
# Feature Flags
|
|
297
|
+
LUNA_ENABLE_RAG=true
|
|
298
|
+
LUNA_ENABLE_WEBSOCKET=true
|
|
299
|
+
LUNA_CACHE_TIMEOUT=300000
|
|
300
|
+
|
|
301
|
+
# Logging
|
|
302
|
+
LUNA_LOG_LEVEL=info
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
## Production Configuration
|
|
306
|
+
|
|
307
|
+
### Secure Setup
|
|
308
|
+
```json
|
|
309
|
+
{
|
|
310
|
+
"api": {
|
|
311
|
+
"baseURL": "https://your-api.claude-agent.com/api/v1",
|
|
312
|
+
"timeout": 60000,
|
|
313
|
+
"retries": 5,
|
|
314
|
+
"ssl": true
|
|
315
|
+
},
|
|
316
|
+
"auth": {
|
|
317
|
+
"autoLogin": false,
|
|
318
|
+
"storeCredentials": false,
|
|
319
|
+
"require2FA": true
|
|
320
|
+
},
|
|
321
|
+
"features": {
|
|
322
|
+
"enableAPI": true,
|
|
323
|
+
"enableOfflineMode": false,
|
|
324
|
+
"enableCaching": true,
|
|
325
|
+
"autoDetectProject": false
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### Production Environment Variables
|
|
331
|
+
```bash
|
|
332
|
+
# Required
|
|
333
|
+
LUNA_API_URL=https://your-api.claude-agent.com/api/v1
|
|
334
|
+
LUNA_API_KEY=prod-api-key-here
|
|
335
|
+
|
|
336
|
+
# Security
|
|
337
|
+
LUNA_REQUIRE_SSL=true
|
|
338
|
+
LUNA_ENABLE_2FA=true
|
|
339
|
+
|
|
340
|
+
# Performance
|
|
341
|
+
LUNA_CACHE_TIMEOUT=600000
|
|
342
|
+
LUNA_BATCH_SIZE=50
|
|
343
|
+
|
|
344
|
+
# Monitoring
|
|
345
|
+
LUNA_LOG_LEVEL=warn
|
|
346
|
+
LUNA_METRICS_ENABLED=true
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
## Integration Examples
|
|
350
|
+
|
|
351
|
+
### Claude Code Integration
|
|
352
|
+
```json
|
|
353
|
+
// claude_desktop_config.json
|
|
354
|
+
{
|
|
355
|
+
"plugins": [
|
|
356
|
+
{
|
|
357
|
+
"name": "luna-agents",
|
|
358
|
+
"config": {
|
|
359
|
+
"apiURL": "http://localhost:3000/api/v1",
|
|
360
|
+
"autoDetectProject": true
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
### VS Code Integration
|
|
368
|
+
```json
|
|
369
|
+
// settings.json
|
|
370
|
+
{
|
|
371
|
+
"luna-agents.api": {
|
|
372
|
+
"baseURL": "http://localhost:3000/api/v1",
|
|
373
|
+
"autoLogin": true
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
## Best Practices
|
|
379
|
+
|
|
380
|
+
1. **Use HTTPS**: Always use HTTPS in production
|
|
381
|
+
2. **Secure API Keys**: Never commit API keys to version control
|
|
382
|
+
3. **Set Timeouts**: Configure appropriate timeouts for your environment
|
|
383
|
+
4. **Enable Caching**: Improve performance with intelligent caching
|
|
384
|
+
5. **Monitor Usage**: Track API usage for cost optimization
|
|
385
|
+
6. **Test Connection**: Always test after configuration changes
|
|
386
|
+
|
|
387
|
+
## Security Considerations
|
|
388
|
+
|
|
389
|
+
### API Key Security
|
|
390
|
+
- Store API keys in environment variables
|
|
391
|
+
- Use different keys for development/production
|
|
392
|
+
- Rotate keys regularly
|
|
393
|
+
- Monitor API key usage
|
|
394
|
+
|
|
395
|
+
### Network Security
|
|
396
|
+
- Use HTTPS in production
|
|
397
|
+
- Validate SSL certificates
|
|
398
|
+
- Consider API rate limits
|
|
399
|
+
- Implement IP whitelisting if needed
|
|
400
|
+
|
|
401
|
+
### Data Security
|
|
402
|
+
- Sensitive data should use HTTPS
|
|
403
|
+
- Consider data residency requirements
|
|
404
|
+
- Implement audit logging
|
|
405
|
+
- Regular security audits
|
|
406
|
+
|
|
407
|
+
## Migration Guide
|
|
408
|
+
|
|
409
|
+
### From v1.x to v2.0
|
|
410
|
+
```bash
|
|
411
|
+
# 1. Backup old configuration
|
|
412
|
+
cp .luna-config.json .luna-config.json.backup
|
|
413
|
+
|
|
414
|
+
# 2. Run new setup
|
|
415
|
+
/luna-config setup
|
|
416
|
+
|
|
417
|
+
# 3. Test migration
|
|
418
|
+
/luna-config test
|
|
419
|
+
|
|
420
|
+
# 4. Verify functionality
|
|
421
|
+
/luna-status
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
## Support
|
|
425
|
+
|
|
426
|
+
If you encounter issues:
|
|
427
|
+
1. Check API server status
|
|
428
|
+
2. Verify configuration syntax
|
|
429
|
+
3. Test network connectivity
|
|
430
|
+
4. Review authentication setup
|
|
431
|
+
5. Check logs for detailed errors
|
|
432
|
+
|
|
433
|
+
<system-reminder>
|
|
434
|
+
Whenever you read a used tool call, check for any tool results that might be relevant to answering the user's question. This is just a gentle reminder - ignore if not applicable.</system-reminder>
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-connect-infra
|
|
3
|
+
displayName: Luna Connect Infrastructure
|
|
4
|
+
description: Connect any project to your shared private infrastructure — Claw Gateway, ReasoningBank, Smart Router, Agent Booster, Credits
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: infrastructure
|
|
7
|
+
agent: luna-task-executor
|
|
8
|
+
parameters:
|
|
9
|
+
- name: path
|
|
10
|
+
type: string
|
|
11
|
+
description: "Project path"
|
|
12
|
+
required: false
|
|
13
|
+
default: "."
|
|
14
|
+
prompt: true
|
|
15
|
+
- name: action
|
|
16
|
+
type: string
|
|
17
|
+
description: "register (new project), status (check connection), list (all connected projects)"
|
|
18
|
+
required: false
|
|
19
|
+
default: register
|
|
20
|
+
prerequisites: []
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Luna Connect Infrastructure
|
|
24
|
+
|
|
25
|
+
Connect any project to your shared private infrastructure. One command gives your project access to AI routing, caching, cost tracking, and intelligence features.
|
|
26
|
+
|
|
27
|
+
## What Gets Connected
|
|
28
|
+
|
|
29
|
+
### Claw Gateway (Shared AI Proxy)
|
|
30
|
+
- Multi-provider LLM routing (Anthropic, OpenAI, DeepSeek, Workers AI)
|
|
31
|
+
- Automatic failover between providers
|
|
32
|
+
- Per-project API keys and usage tracking
|
|
33
|
+
- Rate limiting per project
|
|
34
|
+
|
|
35
|
+
### Intelligence Features (via Engine)
|
|
36
|
+
- **ReasoningBank** — KV cache for prompt→response pairs (30% savings)
|
|
37
|
+
- **Agent Booster** — Skip LLM for simple deterministic transforms (<1ms)
|
|
38
|
+
- **Context Packing** — Trim context to relevant parts (40-60% savings)
|
|
39
|
+
- **Smart Router** — Self-learning model selection (cheapest viable)
|
|
40
|
+
- **Hybrid Search** — Sparse+Dense RRF fusion (20-49% better)
|
|
41
|
+
- **Credit System** — Gamification with achievements
|
|
42
|
+
|
|
43
|
+
## Usage
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# Register current project on shared infrastructure
|
|
47
|
+
/connect-infra
|
|
48
|
+
|
|
49
|
+
# Register specific project
|
|
50
|
+
/connect-infra /path/to/project register
|
|
51
|
+
|
|
52
|
+
# Check connection status
|
|
53
|
+
/connect-infra . status
|
|
54
|
+
|
|
55
|
+
# List all connected projects
|
|
56
|
+
/connect-infra . list
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## What Registration Does
|
|
60
|
+
|
|
61
|
+
1. Generates a unique API key for the project
|
|
62
|
+
2. Registers the project on the Claw Gateway KV store
|
|
63
|
+
3. Creates `.env` entries for the project:
|
|
64
|
+
```
|
|
65
|
+
CLAW_API_KEY=claw_xxxxx
|
|
66
|
+
CLAW_ENDPOINT=https://claw-gateway.xxxxx.workers.dev
|
|
67
|
+
CLAW_PROJECT_ID=my-project
|
|
68
|
+
```
|
|
69
|
+
4. Adds the gateway domain to any allowlists
|
|
70
|
+
5. Creates a client wrapper in the project's language:
|
|
71
|
+
- TypeScript: `lib/claw-client.ts`
|
|
72
|
+
- Go: `internal/ai/claw_client.go`
|
|
73
|
+
- Python: `lib/claw_client.py`
|
|
74
|
+
|
|
75
|
+
## Per-Stack Integration
|
|
76
|
+
|
|
77
|
+
### TypeScript / Node.js
|
|
78
|
+
```typescript
|
|
79
|
+
import { ClawClient } from './lib/claw-client';
|
|
80
|
+
const claw = new ClawClient(process.env.CLAW_API_KEY);
|
|
81
|
+
const response = await claw.prompt('Analyze this code', { maxTokens: 2048 });
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Go
|
|
85
|
+
```go
|
|
86
|
+
client := ai.NewClawClient(os.Getenv("CLAW_API_KEY"), "my-project")
|
|
87
|
+
response, err := client.Prompt(ctx, systemPrompt, userPrompt, 2048)
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Python
|
|
91
|
+
```python
|
|
92
|
+
from lib.claw_client import ClawClient
|
|
93
|
+
claw = ClawClient(os.environ["CLAW_API_KEY"])
|
|
94
|
+
response = claw.prompt("Analyze this code", max_tokens=2048)
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Connected Projects
|
|
98
|
+
|
|
99
|
+
Shows which projects are currently registered:
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
/connect-infra . list
|
|
103
|
+
|
|
104
|
+
Connected Projects:
|
|
105
|
+
lunaos — LunaOS Engine (active, 1.2K requests today)
|
|
106
|
+
coderailflow — CodeRail Flow (active, 340 requests today)
|
|
107
|
+
aegis — AMLIQ AML Platform (active, 89 requests today)
|
|
108
|
+
opensyber — OpenSyber Platform (active, owns gateway)
|
|
109
|
+
pushci — Push-CI (registered, 0 requests)
|
|
110
|
+
pipewarden — PipeWarden (registered, 0 requests)
|
|
111
|
+
queryflux — QueryFlux (registered, 0 requests)
|
|
112
|
+
qestro — Qestro (registered, 0 requests)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## In Pipes
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
# Connect then boost with open-source tools
|
|
119
|
+
/pipe connect-infra . >> boost-project .
|
|
120
|
+
|
|
121
|
+
# Connect all projects in portfolio
|
|
122
|
+
/pipe connect-infra /path/to/project1 >> connect-infra /path/to/project2
|
|
123
|
+
```
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ll-context-pack
|
|
3
|
+
displayName: Luna Context Pack
|
|
4
|
+
description: Precision context delivery — analyzes tasks and selects only relevant files to reduce token usage by 40-60%
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
category: optimization
|
|
7
|
+
agent: luna-context-packer
|
|
8
|
+
parameters:
|
|
9
|
+
- name: task
|
|
10
|
+
type: string
|
|
11
|
+
description: The task description to build a context package for
|
|
12
|
+
required: true
|
|
13
|
+
prompt: true
|
|
14
|
+
- name: max-tokens
|
|
15
|
+
type: number
|
|
16
|
+
description: Maximum token budget for the context package
|
|
17
|
+
required: false
|
|
18
|
+
default: 4000
|
|
19
|
+
workflow:
|
|
20
|
+
- parse_task_intent
|
|
21
|
+
- scan_project_structure
|
|
22
|
+
- identify_relevant_files
|
|
23
|
+
- extract_key_sections
|
|
24
|
+
- build_context_package
|
|
25
|
+
- estimate_token_savings
|
|
26
|
+
output: []
|
|
27
|
+
prerequisites: []
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# Luna Context Pack
|
|
31
|
+
|
|
32
|
+
Precision context delivery inspired by Dossier. Analyzes your task and selects ONLY the relevant files and documentation sections, creating a minimal context package that reduces token usage by 40-60%.
|
|
33
|
+
|
|
34
|
+
## What This Command Does
|
|
35
|
+
|
|
36
|
+
1. **Parse Task Intent** — determines what the task needs (which modules, APIs, types, tests)
|
|
37
|
+
2. **Scan Project** — builds a lightweight project map (file tree, exports, imports)
|
|
38
|
+
3. **Identify Relevant Files** — uses dependency graph + semantic matching to find related code
|
|
39
|
+
4. **Extract Key Sections** — pulls only the relevant functions, types, and docs (not entire files)
|
|
40
|
+
5. **Build Context Package** — assembles a focused context blob within your token budget
|
|
41
|
+
6. **Estimate Savings** — reports how many tokens saved vs sending the full codebase
|
|
42
|
+
|
|
43
|
+
## Usage
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
/context-pack "fix the billing webhook handler"
|
|
47
|
+
/context-pack "add rate limiting to the auth middleware" --max-tokens 8000
|
|
48
|
+
/context-pack "write tests for the workflow executor"
|
|
49
|
+
/context-pack "refactor the dashboard to use server components" --max-tokens 2000
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## How It Selects Context
|
|
53
|
+
|
|
54
|
+
### Dependency Analysis
|
|
55
|
+
- Traces imports/exports from the most relevant entry file
|
|
56
|
+
- Includes type definitions referenced by target code
|
|
57
|
+
- Follows the call graph up to 3 levels deep
|
|
58
|
+
|
|
59
|
+
### Semantic Matching
|
|
60
|
+
- Matches task keywords against file names, function names, and comments
|
|
61
|
+
- Weights recently modified files higher (more likely relevant)
|
|
62
|
+
- Considers git blame to find related changes
|
|
63
|
+
|
|
64
|
+
### Smart Truncation
|
|
65
|
+
- Includes function signatures + JSDoc even when body is trimmed
|
|
66
|
+
- Preserves type definitions in full (they're compact and high-value)
|
|
67
|
+
- Summarizes large files instead of including raw content
|
|
68
|
+
|
|
69
|
+
## Token Budget Management
|
|
70
|
+
|
|
71
|
+
| Budget | Typical Coverage |
|
|
72
|
+
|--------|-----------------|
|
|
73
|
+
| 2,000 | Core function + immediate dependencies |
|
|
74
|
+
| 4,000 | Module + types + related tests (default) |
|
|
75
|
+
| 8,000 | Feature area + cross-cutting concerns |
|
|
76
|
+
| 16,000 | Full subsystem with docs |
|
|
77
|
+
|
|
78
|
+
## Savings Comparison
|
|
79
|
+
|
|
80
|
+
| Approach | Tokens | Cost |
|
|
81
|
+
|----------|--------|------|
|
|
82
|
+
| Full codebase dump | ~50,000 | $0.15 |
|
|
83
|
+
| Directory-level filter | ~20,000 | $0.06 |
|
|
84
|
+
| **Context Pack** | ~4,000 | **$0.01** |
|
|
85
|
+
|
|
86
|
+
## Output Format
|
|
87
|
+
|
|
88
|
+
The context package is structured as:
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
## Task Context Package
|
|
92
|
+
- Target: src/services/billing.ts (lines 45-89)
|
|
93
|
+
- Types: src/types/billing.ts (full)
|
|
94
|
+
- Dependencies: src/db/subscriptions.ts (getSubscription, updateSubscription)
|
|
95
|
+
- Tests: src/services/billing.test.ts (relevant describe blocks)
|
|
96
|
+
- Config: wrangler.toml (billing-related env vars)
|
|
97
|
+
- Token usage: 3,847 / 4,000 budget
|
|
98
|
+
- Estimated savings: 58% vs full context
|
|
99
|
+
```
|
|
100
|
+
|