ai-nexus 1.3.5 → 1.3.6
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/README.ko.md +20 -6
- package/README.md +20 -6
- package/dist/commands/init-interactive.js +14 -1
- package/dist/commands/init.js +4 -2
- package/package.json +1 -1
package/README.ko.md
CHANGED
|
@@ -49,16 +49,30 @@ Semantic Router 활성화:
|
|
|
49
49
|
## 빠른 시작
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
|
-
# 대화형 설치 (
|
|
53
|
-
npx ai-nexus install
|
|
52
|
+
# 대화형 설치 마법사 (기본값)
|
|
53
|
+
npx ai-nexus install
|
|
54
54
|
|
|
55
55
|
# 기본값으로 빠른 설치
|
|
56
|
-
npx ai-nexus install
|
|
56
|
+
npx ai-nexus install -q
|
|
57
57
|
|
|
58
58
|
# 팀 룰 사용
|
|
59
59
|
npx ai-nexus install --rules github.com/your-org/team-rules
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
+
### 데모
|
|
63
|
+
|
|
64
|
+
**설치 마법사**
|
|
65
|
+
|
|
66
|
+

|
|
67
|
+
|
|
68
|
+
**설치된 룰 목록**
|
|
69
|
+
|
|
70
|
+

|
|
71
|
+
|
|
72
|
+
**룰 마켓플레이스**
|
|
73
|
+
|
|
74
|
+

|
|
75
|
+
|
|
62
76
|
---
|
|
63
77
|
|
|
64
78
|
## 지원 도구
|
|
@@ -123,8 +137,8 @@ Cursor의 내장 시맨틱 서치가 관련도에 따라 룰을 로드합니다.
|
|
|
123
137
|
|
|
124
138
|
| 명령어 | 설명 |
|
|
125
139
|
|--------|------|
|
|
126
|
-
| `install` | 전역 설치 (
|
|
127
|
-
| `install -
|
|
140
|
+
| `install` | 전역 설치 (대화형 마법사) |
|
|
141
|
+
| `install -q` | 기본값으로 빠른 설치 |
|
|
128
142
|
| `init` | 현재 프로젝트에 설치 (`.claude/`) |
|
|
129
143
|
| `update` | 최신 룰로 동기화 (로컬 변경 보호) |
|
|
130
144
|
| `list` | 설치된 룰 목록 |
|
|
@@ -249,7 +263,7 @@ npx ai-nexus update --force
|
|
|
249
263
|
### 개인 설정
|
|
250
264
|
|
|
251
265
|
```bash
|
|
252
|
-
npx ai-nexus install
|
|
266
|
+
npx ai-nexus install
|
|
253
267
|
# 선택: Claude Code, Cursor
|
|
254
268
|
# 선택: rules, commands, hooks, settings
|
|
255
269
|
# 템플릿: React/Next.js
|
package/README.md
CHANGED
|
@@ -49,16 +49,30 @@ Token cost: ~800 tokens (84% savings)
|
|
|
49
49
|
## Quick Start
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
|
-
# Interactive setup (
|
|
53
|
-
npx ai-nexus install
|
|
52
|
+
# Interactive setup wizard (default)
|
|
53
|
+
npx ai-nexus install
|
|
54
54
|
|
|
55
55
|
# Quick install with defaults
|
|
56
|
-
npx ai-nexus install
|
|
56
|
+
npx ai-nexus install -q
|
|
57
57
|
|
|
58
58
|
# Use your team's rules
|
|
59
59
|
npx ai-nexus install --rules github.com/your-org/team-rules
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
+
### Demo
|
|
63
|
+
|
|
64
|
+
**Setup Wizard**
|
|
65
|
+
|
|
66
|
+

|
|
67
|
+
|
|
68
|
+
**Installed Rules**
|
|
69
|
+
|
|
70
|
+

|
|
71
|
+
|
|
72
|
+
**Rule Marketplace**
|
|
73
|
+
|
|
74
|
+

|
|
75
|
+
|
|
62
76
|
---
|
|
63
77
|
|
|
64
78
|
## Supported Tools
|
|
@@ -123,8 +137,8 @@ A single `AGENTS.md` file is loaded at session start. No dynamic loading.
|
|
|
123
137
|
|
|
124
138
|
| Command | Description |
|
|
125
139
|
|---------|-------------|
|
|
126
|
-
| `install` | Install rules globally (
|
|
127
|
-
| `install -
|
|
140
|
+
| `install` | Install rules globally (interactive wizard) |
|
|
141
|
+
| `install -q` | Quick install with defaults |
|
|
128
142
|
| `init` | Install in current project (`.claude/`) |
|
|
129
143
|
| `update` | Sync latest rules (respects local changes) |
|
|
130
144
|
| `list` | Show installed rules |
|
|
@@ -249,7 +263,7 @@ npx ai-nexus update --force
|
|
|
249
263
|
### Personal Setup
|
|
250
264
|
|
|
251
265
|
```bash
|
|
252
|
-
npx ai-nexus install
|
|
266
|
+
npx ai-nexus install
|
|
253
267
|
# Select: Claude Code, Cursor
|
|
254
268
|
# Select: rules, commands, hooks, settings
|
|
255
269
|
# Template: React/Next.js
|
|
@@ -217,9 +217,22 @@ export async function initInteractive() {
|
|
|
217
217
|
console.log(` Template: ${template}`);
|
|
218
218
|
}
|
|
219
219
|
console.log(chalk.gray('─'.repeat(40)));
|
|
220
|
+
// Next steps
|
|
221
|
+
console.log(chalk.cyan('\n📋 Next Steps:\n'));
|
|
220
222
|
if (method === 'symlink') {
|
|
221
|
-
console.log(chalk.
|
|
223
|
+
console.log(chalk.white(' 1. Run "ai-nexus update" to sync latest rules'));
|
|
222
224
|
}
|
|
225
|
+
const hasApiKey = !!(process.env.ANTHROPIC_API_KEY || process.env.OPENAI_API_KEY);
|
|
226
|
+
if (!hasApiKey && tools.includes('claude') && categories.includes('hooks')) {
|
|
227
|
+
console.log(chalk.white(' 2. Enable AI-powered rule selection (optional):'));
|
|
228
|
+
console.log(chalk.gray(' Add to ~/.zshrc or ~/.bashrc:'));
|
|
229
|
+
console.log(chalk.gray(' export SEMANTIC_ROUTER_ENABLED=true'));
|
|
230
|
+
console.log(chalk.gray(' export OPENAI_API_KEY=sk-... # or ANTHROPIC_API_KEY'));
|
|
231
|
+
console.log(chalk.gray(' Cost: ~$0.50/month (GPT-4o-mini or Claude Haiku)'));
|
|
232
|
+
}
|
|
233
|
+
console.log(chalk.white(` ${hasApiKey ? '2' : '3'}. Run "ai-nexus doctor" to verify setup`));
|
|
234
|
+
console.log(chalk.white(` ${hasApiKey ? '3' : '4'}. Run "ai-nexus browse" to explore community rules`));
|
|
235
|
+
console.log();
|
|
223
236
|
}
|
|
224
237
|
async function install(selections) {
|
|
225
238
|
const { scope, tools, categories, selectedFiles, template, method } = selections;
|
package/dist/commands/init.js
CHANGED
|
@@ -166,8 +166,10 @@ function printSummary(claudeDir, mode, results) {
|
|
|
166
166
|
// Getting started guide
|
|
167
167
|
console.log(chalk.bold('\n Getting Started:\n'));
|
|
168
168
|
console.log(' 1. Enable AI routing (optional but recommended):');
|
|
169
|
-
console.log(chalk.gray('
|
|
170
|
-
console.log(chalk.gray('
|
|
169
|
+
console.log(chalk.gray(' Add to ~/.zshrc or ~/.bashrc:'));
|
|
170
|
+
console.log(chalk.gray(' export SEMANTIC_ROUTER_ENABLED=true'));
|
|
171
|
+
console.log(chalk.gray(' export OPENAI_API_KEY=sk-... # or ANTHROPIC_API_KEY'));
|
|
172
|
+
console.log(chalk.gray(' Cost: ~$0.50/month (GPT-4o-mini or Claude Haiku)\n'));
|
|
171
173
|
console.log(' 2. Verify installation:');
|
|
172
174
|
console.log(chalk.gray(' ai-nexus doctor\n'));
|
|
173
175
|
console.log(' 3. See installed rules:');
|