@mandujs/cli 0.19.0 → 0.19.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/README.ko.md +27 -6
- package/README.md +23 -8
- package/package.json +1 -1
- package/src/commands/init.ts +10 -2
- package/templates/default/AGENTS.md +13 -0
- package/templates/realtime-chat/AGENTS.md +13 -0
package/README.ko.md
CHANGED
|
@@ -23,22 +23,30 @@ bun add -D @mandujs/cli
|
|
|
23
23
|
## 빠른 시작
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
#
|
|
27
|
-
bunx @mandujs/cli init
|
|
28
|
-
|
|
26
|
+
# 대화형 모드 (권장)
|
|
27
|
+
bunx @mandujs/cli init
|
|
28
|
+
|
|
29
|
+
# 비대화형 모드
|
|
30
|
+
bunx @mandujs/cli init my-app --yes
|
|
29
31
|
|
|
30
32
|
# 개발 서버 시작
|
|
33
|
+
cd my-app
|
|
31
34
|
bun run dev
|
|
32
35
|
```
|
|
33
36
|
|
|
37
|
+
대화형 모드에서는 프로젝트 이름, 템플릿, 의존성 설치 여부를 묻습니다.
|
|
38
|
+
`--yes` / `-y` 플래그로 프롬프트를 건너뛸 수 있고, `--no-install`로 자동 설치를 비활성화합니다.
|
|
39
|
+
|
|
34
40
|
## 명령어
|
|
35
41
|
|
|
36
|
-
### `mandu init
|
|
42
|
+
### `mandu init [project-name]`
|
|
37
43
|
|
|
38
|
-
새 Mandu 프로젝트를 생성합니다.
|
|
44
|
+
새 Mandu 프로젝트를 생성합니다. 이름 생략 시 대화형 모드로 진입합니다.
|
|
39
45
|
|
|
40
46
|
```bash
|
|
41
|
-
bunx @mandujs/cli init
|
|
47
|
+
bunx @mandujs/cli init # 대화형
|
|
48
|
+
bunx @mandujs/cli init my-app # 비대화형 (기본 옵션)
|
|
49
|
+
bunx @mandujs/cli init my-app --yes --no-install # 설치 건너뛰기
|
|
42
50
|
```
|
|
43
51
|
|
|
44
52
|
생성되는 구조:
|
|
@@ -220,6 +228,18 @@ bun test # 테스트 실행
|
|
|
220
228
|
bun test --watch # 감시 모드
|
|
221
229
|
```
|
|
222
230
|
|
|
231
|
+
## AI 에이전트 통합
|
|
232
|
+
|
|
233
|
+
`mandu init` 시 MCP(Model Context Protocol) 설정이 자동 생성됩니다:
|
|
234
|
+
|
|
235
|
+
| 에이전트 | 설정 파일 | 자동 설정 |
|
|
236
|
+
|----------|-----------|-----------|
|
|
237
|
+
| Claude Code | `.mcp.json` | Yes |
|
|
238
|
+
| Claude Desktop | `.claude.json` | Yes |
|
|
239
|
+
| Gemini CLI | `.gemini/settings.json` | Yes |
|
|
240
|
+
|
|
241
|
+
`@mandujs/mcp` 서버가 `mandu_negotiate`, `mandu_generate_scaffold`, `mandu_guard` 등의 도구를 제공하여 AI 에이전트가 아키텍처를 자동으로 스캐폴딩, 검증, 유지합니다.
|
|
242
|
+
|
|
223
243
|
## 요구 사항
|
|
224
244
|
|
|
225
245
|
- Bun >= 1.0.0
|
|
@@ -228,6 +248,7 @@ bun test --watch # 감시 모드
|
|
|
228
248
|
## 관련 패키지
|
|
229
249
|
|
|
230
250
|
- [@mandujs/core](https://www.npmjs.com/package/@mandujs/core) - 핵심 런타임
|
|
251
|
+
- [@mandujs/mcp](https://www.npmjs.com/package/@mandujs/mcp) - MCP 서버
|
|
231
252
|
|
|
232
253
|
## 라이선스
|
|
233
254
|
|
package/README.md
CHANGED
|
@@ -30,11 +30,15 @@ bunx @mandujs/cli init my-app
|
|
|
30
30
|
### 1. Create a New Project
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
# Interactive mode (recommended)
|
|
34
|
+
bunx @mandujs/cli init
|
|
35
|
+
|
|
36
|
+
# Non-interactive mode
|
|
37
|
+
bunx @mandujs/cli init my-app --yes
|
|
36
38
|
```
|
|
37
39
|
|
|
40
|
+
The interactive mode asks for project name, template selection, and whether to install dependencies. Use `--yes` / `-y` to skip prompts. Use `--no-install` to skip automatic `bun install`.
|
|
41
|
+
|
|
38
42
|
### 2. Start Development Server
|
|
39
43
|
|
|
40
44
|
```bash
|
|
@@ -101,7 +105,7 @@ That's it!
|
|
|
101
105
|
|
|
102
106
|
| Command | Description |
|
|
103
107
|
|---------|-------------|
|
|
104
|
-
| `mandu init [name]` | Create new project |
|
|
108
|
+
| `mandu init [name]` | Create new project (interactive / `--yes` for non-interactive) |
|
|
105
109
|
| `mandu dev` | Start dev server (FS Routes + HMR) |
|
|
106
110
|
| `mandu build` | Build for production |
|
|
107
111
|
|
|
@@ -162,9 +166,8 @@ That's it!
|
|
|
162
166
|
### Modern Workflow (Recommended)
|
|
163
167
|
|
|
164
168
|
```bash
|
|
165
|
-
# 1. Create project
|
|
166
|
-
bunx @mandujs/cli init
|
|
167
|
-
cd my-app && bun install
|
|
169
|
+
# 1. Create project (interactive — auto installs dependencies)
|
|
170
|
+
bunx @mandujs/cli init
|
|
168
171
|
|
|
169
172
|
# 2. Create pages
|
|
170
173
|
# app/page.tsx → /
|
|
@@ -340,6 +343,18 @@ bunx mandu build --minify --sourcemap
|
|
|
340
343
|
|
|
341
344
|
---
|
|
342
345
|
|
|
346
|
+
## AI Agent Integration
|
|
347
|
+
|
|
348
|
+
Mandu automatically configures MCP (Model Context Protocol) for AI coding agents during `init`:
|
|
349
|
+
|
|
350
|
+
| Agent | Config File | Auto-configured |
|
|
351
|
+
|-------|-------------|-----------------|
|
|
352
|
+
| Claude Code | `.mcp.json` | Yes |
|
|
353
|
+
| Claude Desktop | `.claude.json` | Yes |
|
|
354
|
+
| Gemini CLI | `.gemini/settings.json` | Yes |
|
|
355
|
+
|
|
356
|
+
The `@mandujs/mcp` server provides tools like `mandu_negotiate`, `mandu_generate_scaffold`, `mandu_guard`, and more — enabling AI agents to scaffold, validate, and maintain architecture automatically.
|
|
357
|
+
|
|
343
358
|
## Requirements
|
|
344
359
|
|
|
345
360
|
- Bun >= 1.0.0
|
|
@@ -351,4 +366,4 @@ bunx mandu build --minify --sourcemap
|
|
|
351
366
|
|
|
352
367
|
## License
|
|
353
368
|
|
|
354
|
-
|
|
369
|
+
MPL-2.0
|
package/package.json
CHANGED
package/src/commands/init.ts
CHANGED
|
@@ -462,6 +462,7 @@ export async function init(options: InitOptions = {}): Promise<boolean> {
|
|
|
462
462
|
console.log(`\n🤖 AI 에이전트 통합:`);
|
|
463
463
|
logMcpConfigStatus(".mcp.json", mcpResult!.mcpJson, "Claude Code 자동 연결");
|
|
464
464
|
logMcpConfigStatus(".claude.json", mcpResult!.claudeJson, "Claude MCP 로컬 범위");
|
|
465
|
+
logMcpConfigStatus(".gemini/settings.json", mcpResult!.geminiJson, "Gemini CLI 자동 연결");
|
|
465
466
|
console.log(` AGENTS.md → 에이전트 가이드 (Bun 사용 명시)`);
|
|
466
467
|
|
|
467
468
|
// Lockfile 안내
|
|
@@ -583,6 +584,7 @@ interface McpConfigFileResult {
|
|
|
583
584
|
interface McpConfigResult {
|
|
584
585
|
mcpJson: McpConfigFileResult;
|
|
585
586
|
claudeJson: McpConfigFileResult;
|
|
587
|
+
geminiJson: McpConfigFileResult;
|
|
586
588
|
}
|
|
587
589
|
|
|
588
590
|
function logMcpConfigStatus(
|
|
@@ -619,7 +621,7 @@ function logMcpConfigStatus(
|
|
|
619
621
|
}
|
|
620
622
|
|
|
621
623
|
/**
|
|
622
|
-
* .mcp.json / .claude.json 설정 (AI 에이전트 통합)
|
|
624
|
+
* .mcp.json / .claude.json / .gemini/settings.json 설정 (AI 에이전트 통합)
|
|
623
625
|
* - 파일 없으면 새로 생성
|
|
624
626
|
* - 파일 있으면 mandu 서버만 추가/업데이트 (다른 설정 유지)
|
|
625
627
|
*/
|
|
@@ -637,6 +639,8 @@ async function setupMcpConfig(
|
|
|
637
639
|
): Promise<McpConfigResult> {
|
|
638
640
|
const mcpPath = path.join(targetDir, ".mcp.json");
|
|
639
641
|
const claudePath = path.join(targetDir, ".claude.json");
|
|
642
|
+
const geminiDir = path.join(targetDir, ".gemini");
|
|
643
|
+
const geminiPath = path.join(geminiDir, "settings.json");
|
|
640
644
|
|
|
641
645
|
const manduServer = {
|
|
642
646
|
command: "bunx",
|
|
@@ -726,7 +730,11 @@ async function setupMcpConfig(
|
|
|
726
730
|
const mcpJson = await updateMcpFile(mcpPath);
|
|
727
731
|
const claudeJson = await updateMcpFile(claudePath);
|
|
728
732
|
|
|
729
|
-
|
|
733
|
+
// Gemini CLI: .gemini/settings.json (프로젝트 스코프)
|
|
734
|
+
await fs.mkdir(geminiDir, { recursive: true });
|
|
735
|
+
const geminiJson = await updateMcpFile(geminiPath);
|
|
736
|
+
|
|
737
|
+
return { mcpJson, claudeJson, geminiJson };
|
|
730
738
|
}
|
|
731
739
|
|
|
732
740
|
interface LockfileResult {
|
|
@@ -101,6 +101,19 @@ bun run build # 프로덕션 빌드
|
|
|
101
101
|
bun run guard # 아키텍처 검증
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
+
## AI 에이전트 MCP 설정
|
|
105
|
+
|
|
106
|
+
이 프로젝트는 `@mandujs/mcp` MCP 서버를 통해 AI 에이전트와 통합됩니다.
|
|
107
|
+
`mandu init` 시 자동으로 설정 파일이 생성됩니다:
|
|
108
|
+
|
|
109
|
+
| 에이전트 | 설정 파일 | 비고 |
|
|
110
|
+
|----------|-----------|------|
|
|
111
|
+
| Claude Code | `.mcp.json` | 자동 연결 |
|
|
112
|
+
| Claude Desktop | `.claude.json` | 로컬 범위 |
|
|
113
|
+
| Gemini CLI | `.gemini/settings.json` | 자동 연결 |
|
|
114
|
+
|
|
115
|
+
MCP 서버가 제공하는 도구: `mandu_negotiate`, `mandu_generate_scaffold`, `mandu_guard` 등
|
|
116
|
+
|
|
104
117
|
## 기술 스택
|
|
105
118
|
|
|
106
119
|
- **Runtime**: Bun 1.x
|
|
@@ -88,6 +88,19 @@ bun run build # 프로덕션 빌드
|
|
|
88
88
|
bun run guard # 아키텍처 검증
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
+
## AI 에이전트 MCP 설정
|
|
92
|
+
|
|
93
|
+
이 프로젝트는 `@mandujs/mcp` MCP 서버를 통해 AI 에이전트와 통합됩니다.
|
|
94
|
+
`mandu init` 시 자동으로 설정 파일이 생성됩니다:
|
|
95
|
+
|
|
96
|
+
| 에이전트 | 설정 파일 | 비고 |
|
|
97
|
+
|----------|-----------|------|
|
|
98
|
+
| Claude Code | `.mcp.json` | 자동 연결 |
|
|
99
|
+
| Claude Desktop | `.claude.json` | 로컬 범위 |
|
|
100
|
+
| Gemini CLI | `.gemini/settings.json` | 자동 연결 |
|
|
101
|
+
|
|
102
|
+
MCP 서버가 제공하는 도구: `mandu_negotiate`, `mandu_generate_scaffold`, `mandu_guard` 등
|
|
103
|
+
|
|
91
104
|
## 기술 스택
|
|
92
105
|
|
|
93
106
|
- **Runtime**: Bun 1.x
|