mimi-seed 0.2.10 → 0.3.0
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/LICENSE +75 -75
- package/README.md +300 -300
- package/dist/chunk-Q5YGYAFK.js +0 -0
- package/dist/index.js +136 -46
- package/dist/mcp-client-26VCPY4L.js +0 -0
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
# PolyForm Noncommercial License 1.0.0
|
|
2
|
-
|
|
3
|
-
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
4
|
-
|
|
5
|
-
Required Notice: Copyright 2026 Pryzm GG (https://mimi-seed.pryzm.gg)
|
|
6
|
-
|
|
7
|
-
## Acceptance
|
|
8
|
-
|
|
9
|
-
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
10
|
-
|
|
11
|
-
## Copyright License
|
|
12
|
-
|
|
13
|
-
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
14
|
-
|
|
15
|
-
## Distribution License
|
|
16
|
-
|
|
17
|
-
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
18
|
-
|
|
19
|
-
## Notices
|
|
20
|
-
|
|
21
|
-
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
22
|
-
|
|
23
|
-
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
24
|
-
|
|
25
|
-
## Changes and New Works License
|
|
26
|
-
|
|
27
|
-
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
28
|
-
|
|
29
|
-
## Patent License
|
|
30
|
-
|
|
31
|
-
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
32
|
-
|
|
33
|
-
## Noncommercial Purposes
|
|
34
|
-
|
|
35
|
-
Any noncommercial purpose is a permitted purpose.
|
|
36
|
-
|
|
37
|
-
## Personal Uses
|
|
38
|
-
|
|
39
|
-
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
|
|
40
|
-
|
|
41
|
-
## Noncommercial Organizations
|
|
42
|
-
|
|
43
|
-
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
|
|
44
|
-
|
|
45
|
-
## Fair Use
|
|
46
|
-
|
|
47
|
-
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
48
|
-
|
|
49
|
-
## No Other Rights
|
|
50
|
-
|
|
51
|
-
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
52
|
-
|
|
53
|
-
## Patent Defense
|
|
54
|
-
|
|
55
|
-
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
56
|
-
|
|
57
|
-
## Violations
|
|
58
|
-
|
|
59
|
-
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
60
|
-
|
|
61
|
-
## No Liability
|
|
62
|
-
|
|
63
|
-
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
64
|
-
|
|
65
|
-
## Definitions
|
|
66
|
-
|
|
67
|
-
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
68
|
-
|
|
69
|
-
**You** refers to the individual or entity agreeing to these terms.
|
|
70
|
-
|
|
71
|
-
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
72
|
-
|
|
73
|
-
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
74
|
-
|
|
75
|
-
**Use** means anything you do with the software requiring one of your licenses.
|
|
1
|
+
# PolyForm Noncommercial License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
4
|
+
|
|
5
|
+
Required Notice: Copyright 2026 Pryzm GG (https://mimi-seed.pryzm.gg)
|
|
6
|
+
|
|
7
|
+
## Acceptance
|
|
8
|
+
|
|
9
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
10
|
+
|
|
11
|
+
## Copyright License
|
|
12
|
+
|
|
13
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
14
|
+
|
|
15
|
+
## Distribution License
|
|
16
|
+
|
|
17
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
18
|
+
|
|
19
|
+
## Notices
|
|
20
|
+
|
|
21
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
22
|
+
|
|
23
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
24
|
+
|
|
25
|
+
## Changes and New Works License
|
|
26
|
+
|
|
27
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
28
|
+
|
|
29
|
+
## Patent License
|
|
30
|
+
|
|
31
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
32
|
+
|
|
33
|
+
## Noncommercial Purposes
|
|
34
|
+
|
|
35
|
+
Any noncommercial purpose is a permitted purpose.
|
|
36
|
+
|
|
37
|
+
## Personal Uses
|
|
38
|
+
|
|
39
|
+
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
|
|
40
|
+
|
|
41
|
+
## Noncommercial Organizations
|
|
42
|
+
|
|
43
|
+
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
|
|
44
|
+
|
|
45
|
+
## Fair Use
|
|
46
|
+
|
|
47
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
48
|
+
|
|
49
|
+
## No Other Rights
|
|
50
|
+
|
|
51
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
52
|
+
|
|
53
|
+
## Patent Defense
|
|
54
|
+
|
|
55
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
56
|
+
|
|
57
|
+
## Violations
|
|
58
|
+
|
|
59
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
60
|
+
|
|
61
|
+
## No Liability
|
|
62
|
+
|
|
63
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
64
|
+
|
|
65
|
+
## Definitions
|
|
66
|
+
|
|
67
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
68
|
+
|
|
69
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
70
|
+
|
|
71
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
72
|
+
|
|
73
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
74
|
+
|
|
75
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
package/README.md
CHANGED
|
@@ -1,275 +1,275 @@
|
|
|
1
|
-
# mimi-seed
|
|
2
|
-
|
|
1
|
+
# mimi-seed
|
|
2
|
+
|
|
3
3
|
**Mimi Seed CLI** — Claude Code와 Codex에서 앱 출시를 자동화하는 커맨드라인 도구.
|
|
4
|
-
|
|
5
|
-
git log에서 릴리즈 노트를 생성하고, 출시 전 위험 요소를 자동 점검하며, Play Store / App Store에 바로 적용합니다.
|
|
6
|
-
|
|
7
|
-
## 빠른 시작
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npx mimi-seed init
|
|
11
|
-
```
|
|
12
|
-
|
|
4
|
+
|
|
5
|
+
git log에서 릴리즈 노트를 생성하고, 출시 전 위험 요소를 자동 점검하며, Play Store / App Store에 바로 적용합니다.
|
|
6
|
+
|
|
7
|
+
## 빠른 시작
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx mimi-seed init
|
|
11
|
+
```
|
|
12
|
+
|
|
13
13
|
현재 디렉토리에서 Android/iOS 앱을 자동 감지해 Mimi Seed 워크스페이스에 등록하고, PAT를 `~/.mimi-seed/config.json`에 저장합니다. 프로젝트 컨텍스트는 Claude Code용 `.claude/mimi-seed.md`와 Codex용 `AGENTS.md`에 함께 기록됩니다.
|
|
14
|
-
|
|
15
|
-
## 명령어
|
|
16
|
-
|
|
17
|
-
| 명령어 | 설명 |
|
|
18
|
-
|--------|------|
|
|
14
|
+
|
|
15
|
+
## 명령어
|
|
16
|
+
|
|
17
|
+
| 명령어 | 설명 |
|
|
18
|
+
|--------|------|
|
|
19
19
|
| `mimi-seed init` | 프로젝트를 Mimi Seed에 연결 (PAT 발급 + 앱 자동 등록 + `.claude/mimi-seed.md` / `AGENTS.md` 주입) |
|
|
20
|
-
| `mimi-seed status` | 연결 상태 + 등록 앱 목록 |
|
|
21
|
-
| `mimi-seed auth` | Google OAuth 인증 (Firebase / AdMob / Play). `login` / `status` / `refresh` / `logout` 서브명령 |
|
|
22
|
-
| `mimi-seed doctor` | 환경 진단 (토큰·Git·앱·CI 한 번에 체크) |
|
|
23
|
-
| `mimi-seed check` | 출시 전 Readiness 점검 (점수 + 블로커) |
|
|
24
|
-
| `mimi-seed notes` | AI 릴리즈 노트 생성 (git log → 3 톤 → 다국어 → 적용) |
|
|
25
|
-
| `mimi-seed review` | AI 리뷰 답변 초안 생성 및 Play Store 게시 |
|
|
26
|
-
| `mimi-seed deploy` | 앱 자동 배포 파이프라인 (CI 빌드 → 릴리즈 노트 → 스토어 적용) |
|
|
27
|
-
| `mimi-seed restart` | MCP 서버 프로세스 재시작 |
|
|
28
|
-
| `mimi-seed logout` | 로컬 설정 삭제 |
|
|
29
|
-
|
|
20
|
+
| `mimi-seed status` | 연결 상태 + 등록 앱 목록 |
|
|
21
|
+
| `mimi-seed auth` | Google OAuth 인증 (Firebase / AdMob / Play). `login` / `status` / `refresh` / `logout` 서브명령 |
|
|
22
|
+
| `mimi-seed doctor` | 환경 진단 (토큰·Git·앱·CI 한 번에 체크) |
|
|
23
|
+
| `mimi-seed check` | 출시 전 Readiness 점검 (점수 + 블로커) |
|
|
24
|
+
| `mimi-seed notes` | AI 릴리즈 노트 생성 (git log → 3 톤 → 다국어 → 적용) |
|
|
25
|
+
| `mimi-seed review` | AI 리뷰 답변 초안 생성 및 Play Store 게시 |
|
|
26
|
+
| `mimi-seed deploy` | 앱 자동 배포 파이프라인 (CI 빌드 → 릴리즈 노트 → 스토어 적용) |
|
|
27
|
+
| `mimi-seed restart` | MCP 서버 프로세스 재시작 |
|
|
28
|
+
| `mimi-seed logout` | 로컬 설정 삭제 |
|
|
29
|
+
|
|
30
30
|
> `init`은 `.claude/mimi-seed.md`와 `AGENTS.md`를 함께 생성해 Claude Code와 Codex 세션마다 에이전트 컨텍스트(출시 워크플로우 + 슬래시 커맨드)를 자동 활성화합니다.
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
|
|
34
|
-
## mimi-seed notes
|
|
35
|
-
|
|
36
|
-
git 커밋 내역으로 앱 스토어 릴리즈 노트를 자동 생성합니다.
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
# 기본: 최신 태그 이후 커밋 → 간결/상세/마케팅 3 톤 생성
|
|
40
|
-
mimi-seed notes
|
|
41
|
-
|
|
42
|
-
# 태그 범위 지정
|
|
43
|
-
mimi-seed notes --from v1.2.0 --to HEAD
|
|
44
|
-
|
|
45
|
-
# 다국어 동시 생성 (AI 필요)
|
|
46
|
-
mimi-seed notes --locale ko,en-US,ja
|
|
47
|
-
|
|
48
|
-
# 생성 후 Play Store 바로 적용
|
|
49
|
-
mimi-seed notes --apply
|
|
50
|
-
|
|
51
|
-
# CI 모드 (프롬프트 없음)
|
|
52
|
-
mimi-seed notes --no-interactive --apply
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
**AI 생성 활성화** (`ANTHROPIC_API_KEY` 설정 시):
|
|
56
|
-
```bash
|
|
57
|
-
export ANTHROPIC_API_KEY=sk-ant-...
|
|
58
|
-
mimi-seed notes --locale ko,en-US,ja
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
설정하지 않으면 커밋 메시지 자동 포맷팅으로 동작합니다.
|
|
62
|
-
|
|
63
|
-
### 옵션
|
|
64
|
-
|
|
65
|
-
| 옵션 | 기본값 | 설명 |
|
|
66
|
-
|------|--------|------|
|
|
67
|
-
| `--from <ref>` | 최신 태그 | 시작 커밋 또는 태그 |
|
|
68
|
-
| `--to <ref>` | `HEAD` | 끝 커밋 |
|
|
69
|
-
| `--locale <list>` | `ko,en-US` | 다국어 로케일 (쉼표 구분) |
|
|
70
|
-
| `--apply` | false | 생성 후 스토어에 바로 적용 |
|
|
71
|
-
| `--no-interactive` | false | CI 모드 (프롬프트 없음) |
|
|
72
|
-
| `--limit <n>` | 30 | 최대 커밋 수 |
|
|
73
|
-
|
|
74
|
-
---
|
|
75
|
-
|
|
76
|
-
## mimi-seed check
|
|
77
|
-
|
|
78
|
-
출시 전 Readiness 점수와 블로커를 확인합니다.
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
mimi-seed check
|
|
82
|
-
|
|
83
|
-
# CI에서 블로커 있으면 exit 1
|
|
84
|
-
mimi-seed check --fail-on-blocker
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### 옵션
|
|
88
|
-
|
|
89
|
-
| 옵션 | 설명 |
|
|
90
|
-
|------|------|
|
|
91
|
-
| `--app <id>` | 앱 ID 지정 (기본: 첫 번째 등록 앱) |
|
|
92
|
-
| `--fail-on-blocker` | 블로커 존재 시 exit 1 (CI/CD용) |
|
|
93
|
-
|
|
94
|
-
---
|
|
95
|
-
|
|
96
|
-
## mimi-seed doctor
|
|
97
|
-
|
|
98
|
-
로컬 환경 전체를 진단합니다.
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
mimi-seed doctor
|
|
102
|
-
# ✓ 토큰 저장됨 prs_abc1... (2026-04-25)
|
|
103
|
-
# ✓ 엔드포인트 https://mimi-seed.pryzm.gg/api/mcp
|
|
104
|
-
# ✓ Mimi Seed 서버 연결됨 앱 2개
|
|
105
|
-
#
|
|
106
|
-
# ── 로컬 환경 ──
|
|
107
|
-
# ✓ Node.js v22.17.0
|
|
108
|
-
# ✓ Git 저장소 최신 태그: v1.3.0
|
|
109
|
-
# ⚠ ANTHROPIC_API_KEY 없음 설정 시 AI 릴리즈 노트/리뷰 답변 생성 가능
|
|
110
|
-
#
|
|
111
|
-
# ── 앱 감지 ──
|
|
112
|
-
# ✓ MyApp android:com.example.myapp ios:com.example.myapp
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
---
|
|
116
|
-
|
|
117
|
-
## mimi-seed review
|
|
118
|
-
|
|
119
|
-
스토어 리뷰에 대한 AI 답변 초안을 생성합니다. `ANTHROPIC_API_KEY` 필요.
|
|
120
|
-
|
|
121
|
-
```bash
|
|
122
|
-
# 대화형 — 리뷰 입력 후 답변 생성
|
|
123
|
-
mimi-seed review
|
|
124
|
-
|
|
125
|
-
# 리뷰 텍스트 직접 지정
|
|
126
|
-
mimi-seed review --text "앱이 자꾸 튕겨요" --rating 2
|
|
127
|
-
|
|
128
|
-
# 톤·언어 지정
|
|
129
|
-
mimi-seed review --text "Great app!" --rating 5 --tone professional --language en
|
|
130
|
-
|
|
131
|
-
# 생성 후 Play Store 바로 게시
|
|
132
|
-
mimi-seed review --text "버그 있어요" --rating 2 \
|
|
133
|
-
--apply --package-name com.example.app --review-id <reviewId>
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### 옵션
|
|
137
|
-
|
|
138
|
-
| 옵션 | 기본값 | 설명 |
|
|
139
|
-
|------|--------|------|
|
|
140
|
-
| `--text <내용>` | (프롬프트) | 리뷰 원문 |
|
|
141
|
-
| `--rating <1-5>` | — | 별점 (맥락용) |
|
|
142
|
-
| `--tone <tone>` | `friendly` | `friendly` / `professional` / `empathetic` / `brief` |
|
|
143
|
-
| `--language <코드>` | `ko` | 답변 언어 (`ko`, `en`, `ja` 등) |
|
|
144
|
-
| `--app-name <이름>` | — | 앱 이름 (프롬프트 맥락용) |
|
|
145
|
-
| `--apply` | false | 답변을 Play Store에 바로 게시 |
|
|
146
|
-
| `--review-id <id>` | — | 게시 대상 리뷰 ID (`--apply` 시 필요) |
|
|
147
|
-
| `--package-name <p>` | — | Android 패키지명 (`--apply` 시 필요) |
|
|
148
|
-
| `--no-interactive` | false | CI 모드 (프롬프트 없음) |
|
|
149
|
-
|
|
150
|
-
> AI 생성 답변은 초안입니다. 게시 전 반드시 검토하세요.
|
|
151
|
-
|
|
152
|
-
---
|
|
153
|
-
|
|
154
|
-
## mimi-seed auth
|
|
155
|
-
|
|
156
|
-
Firebase · AdMob · Play Store 도구에 필요한 Google OAuth 인증을 처리합니다. 내부적으로 `@yoonion/mimi-seed-mcp`의 `mimi-seed-auth` CLI를 호출합니다.
|
|
157
|
-
|
|
158
|
-
```bash
|
|
159
|
-
mimi-seed auth login # 브라우저로 로그인 (이미 있으면 자동 refresh 시도)
|
|
160
|
-
mimi-seed auth status # 현재 토큰 상태
|
|
161
|
-
mimi-seed auth refresh # refresh_token으로 갱신만 시도 (브라우저 X)
|
|
162
|
-
mimi-seed auth logout # 토큰 삭제
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
### login 옵션
|
|
166
|
-
|
|
167
|
-
| 옵션 | 설명 |
|
|
168
|
-
|------|------|
|
|
169
|
-
| `--no-browser` | URL 자동 오픈 안 함 (직접 복붙) |
|
|
170
|
-
| `--timeout <초>` | 콜백 대기 시간 (기본: 600) |
|
|
171
|
-
| `--force` | 기존 토큰 무시하고 강제 재로그인 |
|
|
172
|
-
|
|
173
|
-
토큰은 `~/.mimi-seed/tokens.json`에 저장되고 자동 갱신됩니다.
|
|
174
|
-
|
|
175
|
-
---
|
|
176
|
-
|
|
177
|
-
## mimi-seed deploy
|
|
178
|
-
|
|
179
|
-
CI 빌드부터 스토어 적용까지 출시 파이프라인 전체를 자동화합니다. 단계: **init → verify(블로커 점검) → notes(릴리즈 노트) → apply(스토어 적용) → promote**.
|
|
180
|
-
|
|
181
|
-
```bash
|
|
182
|
-
# Android 기본 배포 (CI 빌드 자동 감지 → Play Store)
|
|
183
|
-
mimi-seed deploy
|
|
184
|
-
|
|
185
|
-
# iOS 배포
|
|
186
|
-
mimi-seed deploy --platform ios
|
|
187
|
-
|
|
188
|
-
# 이미 빌드된 버전으로 노트만 적용 (CI 빌드 건너뜀)
|
|
189
|
-
mimi-seed deploy --skip-build --version-code 142
|
|
190
|
-
|
|
191
|
-
# 실제 배포 없이 파이프라인만 테스트
|
|
192
|
-
mimi-seed deploy --dry-run
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
지원 CI: **Jenkins · GitHub Actions · GitLab CI** (`--ci`로 강제 선택, 기본은 자동 감지).
|
|
196
|
-
|
|
197
|
-
### CI 설정 등록 (최초 1회)
|
|
198
|
-
|
|
199
|
-
```bash
|
|
200
|
-
mimi-seed deploy setup-jenkins # Jenkins URL·토큰·잡 이름 대화형 등록
|
|
201
|
-
mimi-seed deploy setup-github # GitHub Actions repo·workflow 등록
|
|
202
|
-
mimi-seed deploy setup-gitlab # GitLab project·trigger 등록
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
### 옵션
|
|
206
|
-
|
|
207
|
-
| 옵션 | 기본값 | 설명 |
|
|
208
|
-
|------|--------|------|
|
|
209
|
-
| `--platform android\|ios` | `android` | 배포 플랫폼 |
|
|
210
|
-
| `--app <id>` | 첫 등록 앱 | 앱 ID 지정 |
|
|
211
|
-
| `--version-code <n>` | — | 빌드 번호 직접 지정 (`--skip-build`와 함께) |
|
|
212
|
-
| `--from <ref>` / `--to <ref>` | 최신 태그 / `HEAD` | 릴리즈 노트용 커밋 범위 |
|
|
213
|
-
| `--language <코드>` | `ko-KR` | 릴리즈 노트 언어 |
|
|
214
|
-
| `--dry-run` | false | 실제 배포 없이 파이프라인 테스트 |
|
|
215
|
-
| `--skip-build` | false | CI 빌드 건너뜀 (`--version-code` 필수) |
|
|
216
|
-
| `--ci jenkins\|github\|gitlab` | auto | CI 강제 선택 |
|
|
217
|
-
| `--workflow <file>` | — | GitHub workflow 파일 (예: `deploy.yml`) |
|
|
218
|
-
| `--ref <branch\|tag>` | `main` | GitHub/GitLab 브랜치/태그 |
|
|
219
|
-
|
|
220
|
-
---
|
|
221
|
-
|
|
222
|
-
## CI/CD 사용
|
|
223
|
-
|
|
224
|
-
### 방법 1 — 재사용 가능 워크플로우 (권장)
|
|
225
|
-
|
|
226
|
-
`.github/workflows/release.yml` 파일 하나만 추가하면 끝납니다.
|
|
227
|
-
|
|
228
|
-
```yaml
|
|
229
|
-
name: App Release
|
|
230
|
-
|
|
231
|
-
on:
|
|
232
|
-
push:
|
|
233
|
-
tags: ['v*'] # v1.2.3 태그 push 시 자동 실행
|
|
234
|
-
workflow_dispatch: # 수동 실행 버튼
|
|
235
|
-
|
|
236
|
-
jobs:
|
|
237
|
-
release:
|
|
238
|
-
uses: jeonghwanko/mimi-seed/.github/workflows/mimi-seed-release.yml@master
|
|
239
|
-
with:
|
|
240
|
-
locales: 'ko,en-US' # 다국어 릴리즈 노트
|
|
241
|
-
apply-notes: true # 스토어에 자동 적용
|
|
242
|
-
fail-on-blocker: true # 블로커 있으면 실패
|
|
243
|
-
secrets:
|
|
244
|
-
MIMI_SEED_TOKEN: ${{ secrets.MIMI_SEED_TOKEN }}
|
|
245
|
-
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} # 선택: AI 생성
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
### 방법 2 — 기존 워크플로우에 스텝 추가
|
|
249
|
-
|
|
250
|
-
```yaml
|
|
251
|
-
- name: 릴리즈 노트 생성 및 적용
|
|
252
|
-
env:
|
|
253
|
-
MIMI_SEED_TOKEN: ${{ secrets.MIMI_SEED_TOKEN }}
|
|
254
|
-
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
255
|
-
run: |
|
|
256
|
-
npx mimi-seed notes --apply --no-interactive --locale ko,en-US
|
|
257
|
-
npx mimi-seed check --fail-on-blocker
|
|
258
|
-
```
|
|
259
|
-
|
|
260
|
-
`MIMI_SEED_TOKEN`은 [대시보드 → API 토큰](https://mimi-seed.pryzm.gg/workspace/api-tokens)에서 발급하세요.
|
|
261
|
-
|
|
262
|
-
---
|
|
263
|
-
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## mimi-seed notes
|
|
35
|
+
|
|
36
|
+
git 커밋 내역으로 앱 스토어 릴리즈 노트를 자동 생성합니다.
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# 기본: 최신 태그 이후 커밋 → 간결/상세/마케팅 3 톤 생성
|
|
40
|
+
mimi-seed notes
|
|
41
|
+
|
|
42
|
+
# 태그 범위 지정
|
|
43
|
+
mimi-seed notes --from v1.2.0 --to HEAD
|
|
44
|
+
|
|
45
|
+
# 다국어 동시 생성 (AI 필요)
|
|
46
|
+
mimi-seed notes --locale ko,en-US,ja
|
|
47
|
+
|
|
48
|
+
# 생성 후 Play Store 바로 적용
|
|
49
|
+
mimi-seed notes --apply
|
|
50
|
+
|
|
51
|
+
# CI 모드 (프롬프트 없음)
|
|
52
|
+
mimi-seed notes --no-interactive --apply
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**AI 생성 활성화** (`ANTHROPIC_API_KEY` 설정 시):
|
|
56
|
+
```bash
|
|
57
|
+
export ANTHROPIC_API_KEY=sk-ant-...
|
|
58
|
+
mimi-seed notes --locale ko,en-US,ja
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
설정하지 않으면 커밋 메시지 자동 포맷팅으로 동작합니다.
|
|
62
|
+
|
|
63
|
+
### 옵션
|
|
64
|
+
|
|
65
|
+
| 옵션 | 기본값 | 설명 |
|
|
66
|
+
|------|--------|------|
|
|
67
|
+
| `--from <ref>` | 최신 태그 | 시작 커밋 또는 태그 |
|
|
68
|
+
| `--to <ref>` | `HEAD` | 끝 커밋 |
|
|
69
|
+
| `--locale <list>` | `ko,en-US` | 다국어 로케일 (쉼표 구분) |
|
|
70
|
+
| `--apply` | false | 생성 후 스토어에 바로 적용 |
|
|
71
|
+
| `--no-interactive` | false | CI 모드 (프롬프트 없음) |
|
|
72
|
+
| `--limit <n>` | 30 | 최대 커밋 수 |
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## mimi-seed check
|
|
77
|
+
|
|
78
|
+
출시 전 Readiness 점수와 블로커를 확인합니다.
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
mimi-seed check
|
|
82
|
+
|
|
83
|
+
# CI에서 블로커 있으면 exit 1
|
|
84
|
+
mimi-seed check --fail-on-blocker
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### 옵션
|
|
88
|
+
|
|
89
|
+
| 옵션 | 설명 |
|
|
90
|
+
|------|------|
|
|
91
|
+
| `--app <id>` | 앱 ID 지정 (기본: 첫 번째 등록 앱) |
|
|
92
|
+
| `--fail-on-blocker` | 블로커 존재 시 exit 1 (CI/CD용) |
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## mimi-seed doctor
|
|
97
|
+
|
|
98
|
+
로컬 환경 전체를 진단합니다.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
mimi-seed doctor
|
|
102
|
+
# ✓ 토큰 저장됨 prs_abc1... (2026-04-25)
|
|
103
|
+
# ✓ 엔드포인트 https://mimi-seed.pryzm.gg/api/mcp
|
|
104
|
+
# ✓ Mimi Seed 서버 연결됨 앱 2개
|
|
105
|
+
#
|
|
106
|
+
# ── 로컬 환경 ──
|
|
107
|
+
# ✓ Node.js v22.17.0
|
|
108
|
+
# ✓ Git 저장소 최신 태그: v1.3.0
|
|
109
|
+
# ⚠ ANTHROPIC_API_KEY 없음 설정 시 AI 릴리즈 노트/리뷰 답변 생성 가능
|
|
110
|
+
#
|
|
111
|
+
# ── 앱 감지 ──
|
|
112
|
+
# ✓ MyApp android:com.example.myapp ios:com.example.myapp
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## mimi-seed review
|
|
118
|
+
|
|
119
|
+
스토어 리뷰에 대한 AI 답변 초안을 생성합니다. `ANTHROPIC_API_KEY` 필요.
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# 대화형 — 리뷰 입력 후 답변 생성
|
|
123
|
+
mimi-seed review
|
|
124
|
+
|
|
125
|
+
# 리뷰 텍스트 직접 지정
|
|
126
|
+
mimi-seed review --text "앱이 자꾸 튕겨요" --rating 2
|
|
127
|
+
|
|
128
|
+
# 톤·언어 지정
|
|
129
|
+
mimi-seed review --text "Great app!" --rating 5 --tone professional --language en
|
|
130
|
+
|
|
131
|
+
# 생성 후 Play Store 바로 게시
|
|
132
|
+
mimi-seed review --text "버그 있어요" --rating 2 \
|
|
133
|
+
--apply --package-name com.example.app --review-id <reviewId>
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### 옵션
|
|
137
|
+
|
|
138
|
+
| 옵션 | 기본값 | 설명 |
|
|
139
|
+
|------|--------|------|
|
|
140
|
+
| `--text <내용>` | (프롬프트) | 리뷰 원문 |
|
|
141
|
+
| `--rating <1-5>` | — | 별점 (맥락용) |
|
|
142
|
+
| `--tone <tone>` | `friendly` | `friendly` / `professional` / `empathetic` / `brief` |
|
|
143
|
+
| `--language <코드>` | `ko` | 답변 언어 (`ko`, `en`, `ja` 등) |
|
|
144
|
+
| `--app-name <이름>` | — | 앱 이름 (프롬프트 맥락용) |
|
|
145
|
+
| `--apply` | false | 답변을 Play Store에 바로 게시 |
|
|
146
|
+
| `--review-id <id>` | — | 게시 대상 리뷰 ID (`--apply` 시 필요) |
|
|
147
|
+
| `--package-name <p>` | — | Android 패키지명 (`--apply` 시 필요) |
|
|
148
|
+
| `--no-interactive` | false | CI 모드 (프롬프트 없음) |
|
|
149
|
+
|
|
150
|
+
> AI 생성 답변은 초안입니다. 게시 전 반드시 검토하세요.
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## mimi-seed auth
|
|
155
|
+
|
|
156
|
+
Firebase · AdMob · Play Store 도구에 필요한 Google OAuth 인증을 처리합니다. 내부적으로 `@yoonion/mimi-seed-mcp`의 `mimi-seed-auth` CLI를 호출합니다.
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
mimi-seed auth login # 브라우저로 로그인 (이미 있으면 자동 refresh 시도)
|
|
160
|
+
mimi-seed auth status # 현재 토큰 상태
|
|
161
|
+
mimi-seed auth refresh # refresh_token으로 갱신만 시도 (브라우저 X)
|
|
162
|
+
mimi-seed auth logout # 토큰 삭제
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### login 옵션
|
|
166
|
+
|
|
167
|
+
| 옵션 | 설명 |
|
|
168
|
+
|------|------|
|
|
169
|
+
| `--no-browser` | URL 자동 오픈 안 함 (직접 복붙) |
|
|
170
|
+
| `--timeout <초>` | 콜백 대기 시간 (기본: 600) |
|
|
171
|
+
| `--force` | 기존 토큰 무시하고 강제 재로그인 |
|
|
172
|
+
|
|
173
|
+
토큰은 `~/.mimi-seed/tokens.json`에 저장되고 자동 갱신됩니다.
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## mimi-seed deploy
|
|
178
|
+
|
|
179
|
+
CI 빌드부터 스토어 적용까지 출시 파이프라인 전체를 자동화합니다. 단계: **init → verify(블로커 점검) → notes(릴리즈 노트) → apply(스토어 적용) → promote**.
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
# Android 기본 배포 (CI 빌드 자동 감지 → Play Store)
|
|
183
|
+
mimi-seed deploy
|
|
184
|
+
|
|
185
|
+
# iOS 배포
|
|
186
|
+
mimi-seed deploy --platform ios
|
|
187
|
+
|
|
188
|
+
# 이미 빌드된 버전으로 노트만 적용 (CI 빌드 건너뜀)
|
|
189
|
+
mimi-seed deploy --skip-build --version-code 142
|
|
190
|
+
|
|
191
|
+
# 실제 배포 없이 파이프라인만 테스트
|
|
192
|
+
mimi-seed deploy --dry-run
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
지원 CI: **Jenkins · GitHub Actions · GitLab CI** (`--ci`로 강제 선택, 기본은 자동 감지).
|
|
196
|
+
|
|
197
|
+
### CI 설정 등록 (최초 1회)
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
mimi-seed deploy setup-jenkins # Jenkins URL·토큰·잡 이름 대화형 등록
|
|
201
|
+
mimi-seed deploy setup-github # GitHub Actions repo·workflow 등록
|
|
202
|
+
mimi-seed deploy setup-gitlab # GitLab project·trigger 등록
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### 옵션
|
|
206
|
+
|
|
207
|
+
| 옵션 | 기본값 | 설명 |
|
|
208
|
+
|------|--------|------|
|
|
209
|
+
| `--platform android\|ios` | `android` | 배포 플랫폼 |
|
|
210
|
+
| `--app <id>` | 첫 등록 앱 | 앱 ID 지정 |
|
|
211
|
+
| `--version-code <n>` | — | 빌드 번호 직접 지정 (`--skip-build`와 함께) |
|
|
212
|
+
| `--from <ref>` / `--to <ref>` | 최신 태그 / `HEAD` | 릴리즈 노트용 커밋 범위 |
|
|
213
|
+
| `--language <코드>` | `ko-KR` | 릴리즈 노트 언어 |
|
|
214
|
+
| `--dry-run` | false | 실제 배포 없이 파이프라인 테스트 |
|
|
215
|
+
| `--skip-build` | false | CI 빌드 건너뜀 (`--version-code` 필수) |
|
|
216
|
+
| `--ci jenkins\|github\|gitlab` | auto | CI 강제 선택 |
|
|
217
|
+
| `--workflow <file>` | — | GitHub workflow 파일 (예: `deploy.yml`) |
|
|
218
|
+
| `--ref <branch\|tag>` | `main` | GitHub/GitLab 브랜치/태그 |
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## CI/CD 사용
|
|
223
|
+
|
|
224
|
+
### 방법 1 — 재사용 가능 워크플로우 (권장)
|
|
225
|
+
|
|
226
|
+
`.github/workflows/release.yml` 파일 하나만 추가하면 끝납니다.
|
|
227
|
+
|
|
228
|
+
```yaml
|
|
229
|
+
name: App Release
|
|
230
|
+
|
|
231
|
+
on:
|
|
232
|
+
push:
|
|
233
|
+
tags: ['v*'] # v1.2.3 태그 push 시 자동 실행
|
|
234
|
+
workflow_dispatch: # 수동 실행 버튼
|
|
235
|
+
|
|
236
|
+
jobs:
|
|
237
|
+
release:
|
|
238
|
+
uses: jeonghwanko/mimi-seed/.github/workflows/mimi-seed-release.yml@master
|
|
239
|
+
with:
|
|
240
|
+
locales: 'ko,en-US' # 다국어 릴리즈 노트
|
|
241
|
+
apply-notes: true # 스토어에 자동 적용
|
|
242
|
+
fail-on-blocker: true # 블로커 있으면 실패
|
|
243
|
+
secrets:
|
|
244
|
+
MIMI_SEED_TOKEN: ${{ secrets.MIMI_SEED_TOKEN }}
|
|
245
|
+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} # 선택: AI 생성
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### 방법 2 — 기존 워크플로우에 스텝 추가
|
|
249
|
+
|
|
250
|
+
```yaml
|
|
251
|
+
- name: 릴리즈 노트 생성 및 적용
|
|
252
|
+
env:
|
|
253
|
+
MIMI_SEED_TOKEN: ${{ secrets.MIMI_SEED_TOKEN }}
|
|
254
|
+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
255
|
+
run: |
|
|
256
|
+
npx mimi-seed notes --apply --no-interactive --locale ko,en-US
|
|
257
|
+
npx mimi-seed check --fail-on-blocker
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
`MIMI_SEED_TOKEN`은 [대시보드 → API 토큰](https://mimi-seed.pryzm.gg/workspace/api-tokens)에서 발급하세요.
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
264
|
## Claude Code / Codex MCP 등록
|
|
265
|
-
|
|
266
|
-
`init` 후 1회 실행:
|
|
267
|
-
|
|
268
|
-
```bash
|
|
269
|
-
claude mcp add --transport http mimi-seed https://mimi-seed.pryzm.gg/api/mcp \
|
|
270
|
-
--header "Authorization: Bearer <PAT>"
|
|
271
|
-
```
|
|
272
|
-
|
|
265
|
+
|
|
266
|
+
`init` 후 1회 실행:
|
|
267
|
+
|
|
268
|
+
```bash
|
|
269
|
+
claude mcp add --transport http mimi-seed https://mimi-seed.pryzm.gg/api/mcp \
|
|
270
|
+
--header "Authorization: Bearer <PAT>"
|
|
271
|
+
```
|
|
272
|
+
|
|
273
273
|
Codex는 자동 쓰기 명령을 사용할 수 있습니다.
|
|
274
274
|
|
|
275
275
|
```bash
|
|
@@ -277,37 +277,37 @@ mimi-seed mcp codex --write
|
|
|
277
277
|
```
|
|
278
278
|
|
|
279
279
|
등록 후 Claude Code 또는 Codex에서 대화로 제어:
|
|
280
|
-
|
|
281
|
-
```
|
|
282
|
-
"내 앱 출시 준비됐어?"
|
|
283
|
-
"릴리즈 노트 써줘"
|
|
284
|
-
"스크린샷 검수해줘"
|
|
285
|
-
```
|
|
286
|
-
|
|
287
|
-
---
|
|
288
|
-
|
|
289
|
-
## 앱 감지 대상
|
|
290
|
-
|
|
291
|
-
- `app.json` / `app.config.json` (Expo, React Native)
|
|
292
|
-
- `**/build.gradle(.kts)` — `applicationId`
|
|
293
|
-
- `**/Info.plist` — `CFBundleIdentifier`
|
|
294
|
-
- `**/project.pbxproj` — `PRODUCT_BUNDLE_IDENTIFIER`
|
|
295
|
-
- `package.json` — 앱 이름 보충
|
|
296
|
-
|
|
297
|
-
---
|
|
298
|
-
|
|
299
|
-
## 환경변수
|
|
300
|
-
|
|
301
|
-
| 변수 | 설명 |
|
|
302
|
-
|------|------|
|
|
303
|
-
| `MIMI_SEED_TOKEN` | PAT 토큰 — CI/CD 무인증 모드 |
|
|
304
|
-
| `MIMI_SEED_WEB_BASE` | 서버 주소 (기본: `https://mimi-seed.pryzm.gg`) |
|
|
305
|
-
| `ANTHROPIC_API_KEY` | AI 릴리즈 노트/리뷰 답변 생성 활성화 (선택) |
|
|
306
|
-
| `DEBUG` | `1` 설정 시 오류 스택 트레이스 출력 |
|
|
307
|
-
|
|
308
|
-
---
|
|
309
|
-
|
|
310
|
-
## 관련 패키지
|
|
311
|
-
|
|
280
|
+
|
|
281
|
+
```
|
|
282
|
+
"내 앱 출시 준비됐어?"
|
|
283
|
+
"릴리즈 노트 써줘"
|
|
284
|
+
"스크린샷 검수해줘"
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
## 앱 감지 대상
|
|
290
|
+
|
|
291
|
+
- `app.json` / `app.config.json` (Expo, React Native)
|
|
292
|
+
- `**/build.gradle(.kts)` — `applicationId`
|
|
293
|
+
- `**/Info.plist` — `CFBundleIdentifier`
|
|
294
|
+
- `**/project.pbxproj` — `PRODUCT_BUNDLE_IDENTIFIER`
|
|
295
|
+
- `package.json` — 앱 이름 보충
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## 환경변수
|
|
300
|
+
|
|
301
|
+
| 변수 | 설명 |
|
|
302
|
+
|------|------|
|
|
303
|
+
| `MIMI_SEED_TOKEN` | PAT 토큰 — CI/CD 무인증 모드 |
|
|
304
|
+
| `MIMI_SEED_WEB_BASE` | 서버 주소 (기본: `https://mimi-seed.pryzm.gg`) |
|
|
305
|
+
| `ANTHROPIC_API_KEY` | AI 릴리즈 노트/리뷰 답변 생성 활성화 (선택) |
|
|
306
|
+
| `DEBUG` | `1` 설정 시 오류 스택 트레이스 출력 |
|
|
307
|
+
|
|
308
|
+
---
|
|
309
|
+
|
|
310
|
+
## 관련 패키지
|
|
311
|
+
|
|
312
312
|
- [`@yoonion/mimi-seed-mcp`](https://www.npmjs.com/package/@yoonion/mimi-seed-mcp) — Claude Code / Codex / Cursor용 로컬 MCP 서버 (Firebase · Play Store · App Store · AdMob)
|
|
313
|
-
- [mimi-seed.pryzm.gg/tool](https://mimi-seed.pryzm.gg/tool) — 웹 콘솔 (스크린샷 검수, Copy Studio, 팀 워크스페이스)
|
|
313
|
+
- [mimi-seed.pryzm.gg/tool](https://mimi-seed.pryzm.gg/tool) — 웹 콘솔 (스크린샷 검수, Copy Studio, 팀 워크스페이스)
|
package/dist/chunk-Q5YGYAFK.js
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
} from "./chunk-Q5YGYAFK.js";
|
|
5
5
|
|
|
6
6
|
// src/index.ts
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import os7 from "os";
|
|
8
|
+
import fs8 from "fs";
|
|
9
|
+
import path8 from "path";
|
|
10
10
|
import kleur9 from "kleur";
|
|
11
11
|
import open from "open";
|
|
12
12
|
|
|
@@ -255,6 +255,9 @@ async function getEffectiveConfig() {
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
// src/doctor.ts
|
|
258
|
+
import fs3 from "fs";
|
|
259
|
+
import os2 from "os";
|
|
260
|
+
import path3 from "path";
|
|
258
261
|
import kleur from "kleur";
|
|
259
262
|
|
|
260
263
|
// src/git.ts
|
|
@@ -335,6 +338,34 @@ async function cmdDoctor() {
|
|
|
335
338
|
ok("Mimi Seed \uC11C\uBC84 \uC5F0\uACB0\uB428", `\uC571 ${lines.length}\uAC1C`);
|
|
336
339
|
}
|
|
337
340
|
}
|
|
341
|
+
section("\uB85C\uCEEC MCP \uC790\uACA9\uC99D\uBA85 (~/.mimi-seed)");
|
|
342
|
+
const credDir = path3.join(os2.homedir(), ".mimi-seed");
|
|
343
|
+
const hasFile = (name) => fs3.existsSync(path3.join(credDir, name));
|
|
344
|
+
const hasPrefix = (prefix) => {
|
|
345
|
+
try {
|
|
346
|
+
return fs3.readdirSync(credDir).some((f) => f.startsWith(prefix));
|
|
347
|
+
} catch {
|
|
348
|
+
return false;
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
const hasPlaySa = hasFile("play-service-account.json") || (() => {
|
|
352
|
+
try {
|
|
353
|
+
return fs3.readdirSync(path3.join(credDir, "play-service-accounts")).some((f) => f.endsWith(".json"));
|
|
354
|
+
} catch {
|
|
355
|
+
return false;
|
|
356
|
+
}
|
|
357
|
+
})();
|
|
358
|
+
const creds = [
|
|
359
|
+
["Google OAuth (Firebase/AdMob/Play/Ads)", hasFile("tokens.json"), "mimi-seed auth login"],
|
|
360
|
+
["App Store Connect", hasFile("appstore.json"), "mimi-seed auth appstore"],
|
|
361
|
+
["Play \uC11C\uBE44\uC2A4 \uACC4\uC815 (\uC120\uD0DD \u2014 OAuth\uB85C\uB3C4 \uAC00\uB2A5)", hasPlaySa, "mimi-seed auth playstore"],
|
|
362
|
+
["BigQuery \uC11C\uBE44\uC2A4 \uACC4\uC815", hasPrefix("bigquery"), "mimi-seed auth bigquery"]
|
|
363
|
+
];
|
|
364
|
+
for (const [label, present, cmd] of creds) {
|
|
365
|
+
if (present) ok(label);
|
|
366
|
+
else warn(label, `\u2192 ${cmd}`);
|
|
367
|
+
}
|
|
368
|
+
process.stdout.write(kleur.dim(" OAuth \uD1A0\uD070 \uC2E0\uC120\uB3C4 \uD655\uC778: mimi-seed auth status\n"));
|
|
338
369
|
section("\uB85C\uCEEC \uD658\uACBD");
|
|
339
370
|
const nodeVer = process.version;
|
|
340
371
|
const [, major] = nodeVer.match(/v(\d+)/) ?? [];
|
|
@@ -806,12 +837,12 @@ async function cmdReview(argv) {
|
|
|
806
837
|
|
|
807
838
|
// src/auth.ts
|
|
808
839
|
import { spawn } from "child_process";
|
|
809
|
-
import
|
|
810
|
-
import
|
|
811
|
-
import
|
|
840
|
+
import fs4 from "fs";
|
|
841
|
+
import os3 from "os";
|
|
842
|
+
import path4 from "path";
|
|
812
843
|
import kleur5 from "kleur";
|
|
813
844
|
var MCP_PKG = "@yoonion/mimi-seed-mcp";
|
|
814
|
-
var MIMI_DIR =
|
|
845
|
+
var MIMI_DIR = path4.join(os3.homedir(), ".mimi-seed");
|
|
815
846
|
function log(msg) {
|
|
816
847
|
process.stdout.write(msg + "\n");
|
|
817
848
|
}
|
|
@@ -855,11 +886,11 @@ async function runMcpBin(bin, extraArgs) {
|
|
|
855
886
|
});
|
|
856
887
|
}
|
|
857
888
|
function fileExists(name) {
|
|
858
|
-
return
|
|
889
|
+
return fs4.existsSync(path4.join(MIMI_DIR, name));
|
|
859
890
|
}
|
|
860
891
|
function anyFileStarting(prefix) {
|
|
861
892
|
try {
|
|
862
|
-
return
|
|
893
|
+
return fs4.readdirSync(MIMI_DIR).some((f) => f.startsWith(prefix));
|
|
863
894
|
} catch {
|
|
864
895
|
return false;
|
|
865
896
|
}
|
|
@@ -918,30 +949,61 @@ function exitWith(code) {
|
|
|
918
949
|
if (code !== 0) process.exit(code);
|
|
919
950
|
}
|
|
920
951
|
|
|
952
|
+
// src/cloud.ts
|
|
953
|
+
import { spawn as spawn2 } from "child_process";
|
|
954
|
+
var MCP_PKG2 = "@yoonion/mimi-seed-mcp";
|
|
955
|
+
async function runMcpBin2(bin, extraArgs) {
|
|
956
|
+
return new Promise((resolve) => {
|
|
957
|
+
const child = spawn2("npx", ["-y", `${MCP_PKG2}`, bin, ...extraArgs], {
|
|
958
|
+
stdio: "inherit",
|
|
959
|
+
shell: true
|
|
960
|
+
});
|
|
961
|
+
child.on("error", (e) => {
|
|
962
|
+
process.stderr.write(`
|
|
963
|
+
\u274C npx \uC2E4\uD589 \uC2E4\uD328: ${e.message}
|
|
964
|
+
`);
|
|
965
|
+
resolve(1);
|
|
966
|
+
});
|
|
967
|
+
child.on("exit", (code) => resolve(code ?? 0));
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
function exitWith2(code) {
|
|
971
|
+
if (code !== 0) process.exit(code);
|
|
972
|
+
}
|
|
973
|
+
async function cmdFirebase(args) {
|
|
974
|
+
exitWith2(await runMcpBin2("mimi-seed-firebase", args));
|
|
975
|
+
}
|
|
976
|
+
async function cmdAdmob(args) {
|
|
977
|
+
exitWith2(await runMcpBin2("mimi-seed-admob", args));
|
|
978
|
+
}
|
|
979
|
+
async function cmdGa4(args) {
|
|
980
|
+
exitWith2(await runMcpBin2("mimi-seed-ga4", args));
|
|
981
|
+
}
|
|
982
|
+
|
|
921
983
|
// src/deploy.ts
|
|
922
984
|
import kleur6 from "kleur";
|
|
923
985
|
import * as readline from "readline";
|
|
924
986
|
|
|
925
987
|
// src/ci-providers.ts
|
|
926
|
-
import
|
|
927
|
-
import
|
|
928
|
-
import
|
|
929
|
-
var CI_CONFIG_PATH =
|
|
988
|
+
import fs5 from "fs";
|
|
989
|
+
import path5 from "path";
|
|
990
|
+
import os4 from "os";
|
|
991
|
+
var CI_CONFIG_PATH = path5.join(os4.homedir(), ".mimi-seed", "ci.json");
|
|
930
992
|
function loadCiProviderConfig() {
|
|
931
993
|
try {
|
|
932
|
-
return JSON.parse(
|
|
994
|
+
return JSON.parse(fs5.readFileSync(CI_CONFIG_PATH, "utf-8"));
|
|
933
995
|
} catch {
|
|
934
996
|
return null;
|
|
935
997
|
}
|
|
936
998
|
}
|
|
937
999
|
function saveCiProviderConfig(cfg) {
|
|
938
|
-
const dir =
|
|
939
|
-
if (!
|
|
940
|
-
|
|
1000
|
+
const dir = path5.dirname(CI_CONFIG_PATH);
|
|
1001
|
+
if (!fs5.existsSync(dir)) {
|
|
1002
|
+
fs5.mkdirSync(dir, { recursive: true, mode: 448 });
|
|
941
1003
|
}
|
|
942
|
-
|
|
1004
|
+
fs5.writeFileSync(CI_CONFIG_PATH, JSON.stringify(cfg, null, 2));
|
|
943
1005
|
if (process.platform !== "win32") {
|
|
944
|
-
|
|
1006
|
+
fs5.chmodSync(CI_CONFIG_PATH, 384);
|
|
945
1007
|
}
|
|
946
1008
|
}
|
|
947
1009
|
function ghBase(cfg) {
|
|
@@ -1442,17 +1504,17 @@ async function cmdDeploy(argv) {
|
|
|
1442
1504
|
|
|
1443
1505
|
// src/mcp-restart.ts
|
|
1444
1506
|
import { execSync as execSync2 } from "child_process";
|
|
1445
|
-
import
|
|
1446
|
-
import
|
|
1447
|
-
import
|
|
1507
|
+
import fs6 from "fs";
|
|
1508
|
+
import os5 from "os";
|
|
1509
|
+
import path6 from "path";
|
|
1448
1510
|
import kleur7 from "kleur";
|
|
1449
1511
|
function log3(msg) {
|
|
1450
1512
|
process.stdout.write(msg + "\n");
|
|
1451
1513
|
}
|
|
1452
1514
|
function readClaudeJson() {
|
|
1453
|
-
const p =
|
|
1515
|
+
const p = path6.join(os5.homedir(), ".claude.json");
|
|
1454
1516
|
try {
|
|
1455
|
-
return JSON.parse(
|
|
1517
|
+
return JSON.parse(fs6.readFileSync(p, "utf8"));
|
|
1456
1518
|
} catch {
|
|
1457
1519
|
return {};
|
|
1458
1520
|
}
|
|
@@ -1468,7 +1530,7 @@ function findProcessMarker(cfg) {
|
|
|
1468
1530
|
return meaningful.at(-1) ?? null;
|
|
1469
1531
|
}
|
|
1470
1532
|
function killByMarker(marker) {
|
|
1471
|
-
const isWin =
|
|
1533
|
+
const isWin = os5.platform() === "win32";
|
|
1472
1534
|
if (isWin) {
|
|
1473
1535
|
const escaped = marker.replace(/\\/g, "\\\\").replace(/'/g, "\\'");
|
|
1474
1536
|
let pids = [];
|
|
@@ -1539,9 +1601,9 @@ async function cmdRestart(args) {
|
|
|
1539
1601
|
}
|
|
1540
1602
|
|
|
1541
1603
|
// src/mcp-config.ts
|
|
1542
|
-
import
|
|
1543
|
-
import
|
|
1544
|
-
import
|
|
1604
|
+
import fs7 from "fs/promises";
|
|
1605
|
+
import path7 from "path";
|
|
1606
|
+
import os6 from "os";
|
|
1545
1607
|
import kleur8 from "kleur";
|
|
1546
1608
|
var SERVER_NAME = "mimi-seed";
|
|
1547
1609
|
function tomlString(value) {
|
|
@@ -1581,17 +1643,17 @@ function printMcpSetup(cfg) {
|
|
|
1581
1643
|
);
|
|
1582
1644
|
}
|
|
1583
1645
|
async function writeCodexMcpConfig(cfg) {
|
|
1584
|
-
const configDir =
|
|
1585
|
-
const configPath =
|
|
1586
|
-
await
|
|
1646
|
+
const configDir = path7.join(os6.homedir(), ".codex");
|
|
1647
|
+
const configPath = path7.join(configDir, "config.toml");
|
|
1648
|
+
await fs7.mkdir(configDir, { recursive: true });
|
|
1587
1649
|
let current = "";
|
|
1588
1650
|
try {
|
|
1589
|
-
current = await
|
|
1651
|
+
current = await fs7.readFile(configPath, "utf8");
|
|
1590
1652
|
} catch {
|
|
1591
1653
|
current = "";
|
|
1592
1654
|
}
|
|
1593
1655
|
const next = replaceTomlBlock(current, `mcp_servers.${SERVER_NAME}`, codexBlock(cfg));
|
|
1594
|
-
await
|
|
1656
|
+
await fs7.writeFile(configPath, next);
|
|
1595
1657
|
return configPath;
|
|
1596
1658
|
}
|
|
1597
1659
|
|
|
@@ -1601,7 +1663,8 @@ var DEFAULT_MCP_ENDPOINT = `${DEFAULT_WEB_BASE}/api/mcp`;
|
|
|
1601
1663
|
function log4(msg) {
|
|
1602
1664
|
process.stdout.write(msg + "\n");
|
|
1603
1665
|
}
|
|
1604
|
-
async function cmdInit() {
|
|
1666
|
+
async function cmdInit(args) {
|
|
1667
|
+
const local = args.includes("--local");
|
|
1605
1668
|
const cwd = process.cwd();
|
|
1606
1669
|
log4(kleur9.bold("Mimi Seed CLI \u2014 init"));
|
|
1607
1670
|
log4(kleur9.dim(cwd));
|
|
@@ -1636,7 +1699,7 @@ async function cmdInit() {
|
|
|
1636
1699
|
return;
|
|
1637
1700
|
}
|
|
1638
1701
|
log4("\u{1F510} \uBE0C\uB77C\uC6B0\uC800\uC5D0\uC11C \uB85C\uADF8\uC778 \uB300\uAE30...");
|
|
1639
|
-
const hostName =
|
|
1702
|
+
const hostName = os7.hostname().slice(0, 32);
|
|
1640
1703
|
const name = `cli-${hostName}`;
|
|
1641
1704
|
const { port, promise } = await awaitHandshake(5 * 60 * 1e3);
|
|
1642
1705
|
const callback = `http://127.0.0.1:${port}/cb`;
|
|
@@ -1702,16 +1765,16 @@ async function cmdInit() {
|
|
|
1702
1765
|
"- `/mimi-seed:health` \u2014 \uC5F0\uACB0 \uC0C1\uD0DC \uBE60\uB978 \uD655\uC778",
|
|
1703
1766
|
"- `/mimi-seed:review-inbox` \u2014 \uBBF8\uB2F5\uBCC0 \uB9AC\uBDF0 \uB2F5\uBCC0"
|
|
1704
1767
|
].join("\n");
|
|
1705
|
-
const claudeDir =
|
|
1706
|
-
const claudeAgentPath =
|
|
1707
|
-
if (!
|
|
1708
|
-
|
|
1709
|
-
|
|
1768
|
+
const claudeDir = path8.join(cwd, ".claude");
|
|
1769
|
+
const claudeAgentPath = path8.join(claudeDir, "mimi-seed.md");
|
|
1770
|
+
if (!fs8.existsSync(claudeAgentPath)) {
|
|
1771
|
+
fs8.mkdirSync(claudeDir, { recursive: true });
|
|
1772
|
+
fs8.writeFileSync(claudeAgentPath, agentMd, { mode: 420 });
|
|
1710
1773
|
log4(kleur9.dim(` Claude \uC5D0\uC774\uC804\uD2B8 \uC124\uC815: .claude/mimi-seed.md`));
|
|
1711
1774
|
}
|
|
1712
|
-
const codexAgentPath =
|
|
1713
|
-
if (!
|
|
1714
|
-
|
|
1775
|
+
const codexAgentPath = path8.join(cwd, "AGENTS.md");
|
|
1776
|
+
if (!fs8.existsSync(codexAgentPath)) {
|
|
1777
|
+
fs8.writeFileSync(codexAgentPath, agentMd, { mode: 420 });
|
|
1715
1778
|
log4(kleur9.dim(` Codex \uC5D0\uC774\uC804\uD2B8 \uC124\uC815: AGENTS.md`));
|
|
1716
1779
|
}
|
|
1717
1780
|
log4(kleur9.bold("\u2713 \uC900\uBE44 \uC644\uB8CC."));
|
|
@@ -1724,6 +1787,18 @@ async function cmdInit() {
|
|
|
1724
1787
|
log4(`\uB300\uC2DC\uBCF4\uB4DC: ${kleur9.underline(DEFAULT_WEB_BASE + "/apps")}`);
|
|
1725
1788
|
log4("");
|
|
1726
1789
|
printMcpSetup(cfg);
|
|
1790
|
+
if (local) {
|
|
1791
|
+
log4("");
|
|
1792
|
+
log4(kleur9.bold("\u2500\u2500 \uB85C\uCEEC MCP \uCD94\uAC00 \uC124\uC815 (--local) \u2500\u2500"));
|
|
1793
|
+
log4(kleur9.dim("\uC6D0\uACA9 MCP(16 tool, PAT)\uB294 \uC704\uC5D0\uC11C \uB05D. \uB85C\uCEEC MCP\uB294 Google OAuth\uB85C 110+ tool\uC744 \uC9C1\uC811 \uC2E4\uD589\uD569\uB2C8\uB2E4."));
|
|
1794
|
+
log4("");
|
|
1795
|
+
log4("1) Google \uB85C\uADF8\uC778 (Firebase / AdMob / Play / Ads):");
|
|
1796
|
+
await cmdAuth(["login"]);
|
|
1797
|
+
log4("");
|
|
1798
|
+
log4("2) \uB85C\uCEEC MCP \uC11C\uBC84 \uB4F1\uB85D (\uC6D0\uACA9 'mimi-seed' \uC640 \uBCC4\uAC1C):");
|
|
1799
|
+
log4(kleur9.cyan(" claude mcp add mimi-seed-local -- npx -y @yoonion/mimi-seed-mcp"));
|
|
1800
|
+
log4(kleur9.dim(' Codex: ~/.codex/config.toml \uC5D0 [mcp_servers.mimi-seed-local] command="npx", args=["-y","@yoonion/mimi-seed-mcp"]'));
|
|
1801
|
+
}
|
|
1727
1802
|
}
|
|
1728
1803
|
async function cmdStatus() {
|
|
1729
1804
|
const cfg = await getEffectiveConfig();
|
|
@@ -1788,8 +1863,11 @@ http_headers = { Authorization = "Bearer ${cfg.prefix}..." }`);
|
|
|
1788
1863
|
var CMD_USAGE = {
|
|
1789
1864
|
init: `${kleur9.bold("mimi-seed init")} \u2014 \uD604\uC7AC \uD504\uB85C\uC81D\uD2B8\uB97C Mimi Seed\uC5D0 \uC5F0\uACB0
|
|
1790
1865
|
|
|
1791
|
-
\uC571 \uC790\uB3D9 \uAC10\uC9C0(Expo/Gradle/Info.plist/pbxproj) \u2192 \uBE0C\uB77C\uC6B0\uC800 PAT \uBC1C\uAE09 \u2192 \uC571 \uB4F1\uB85D
|
|
1792
|
-
+ .claude/mimi-seed.md, AGENTS.md \uC0DD\uC131.
|
|
1866
|
+
\uC571 \uC790\uB3D9 \uAC10\uC9C0(Expo/Gradle/Info.plist/pbxproj) \u2192 \uBE0C\uB77C\uC6B0\uC800 PAT \uBC1C\uAE09(\uC6D0\uACA9 MCP) \u2192 \uC571 \uB4F1\uB85D
|
|
1867
|
+
+ .claude/mimi-seed.md, AGENTS.md \uC0DD\uC131.
|
|
1868
|
+
|
|
1869
|
+
\uC635\uC158:
|
|
1870
|
+
--local \uCD94\uAC00\uB85C Google OAuth \uB85C\uADF8\uC778 + \uB85C\uCEEC 110+ tool MCP \uB4F1\uB85D \uC548\uB0B4`,
|
|
1793
1871
|
status: `${kleur9.bold("mimi-seed status")} \u2014 \uC5F0\uACB0 \uC0C1\uD0DC + \uB4F1\uB85D \uC571 \uBAA9\uB85D. \uC635\uC158 \uC5C6\uC74C.`,
|
|
1794
1872
|
doctor: `${kleur9.bold("mimi-seed doctor")} \u2014 \uD658\uACBD \uC9C4\uB2E8 (\uD1A0\uD070\xB7Node\xB7Git\xB7\uD504\uB85C\uC81D\uD2B8\xB7CI). \uC635\uC158 \uC5C6\uC74C.`,
|
|
1795
1873
|
logout: `${kleur9.bold("mimi-seed logout")} \u2014 \uB85C\uCEEC \uC124\uC815(config.json) \uC0AD\uC81C. \uC635\uC158 \uC5C6\uC74C.`,
|
|
@@ -1859,6 +1937,9 @@ ${kleur9.bold("\uBA85\uB839\uC5B4:")}
|
|
|
1859
1937
|
${kleur9.cyan("mimi-seed init")} \uD604\uC7AC \uD504\uB85C\uC81D\uD2B8\uB97C Mimi Seed\uC5D0 \uC5F0\uACB0
|
|
1860
1938
|
${kleur9.cyan("mimi-seed status")} \uC5F0\uACB0 \uC0C1\uD0DC + \uB4F1\uB85D \uC571 \uBAA9\uB85D
|
|
1861
1939
|
${kleur9.cyan("mimi-seed auth")} \uB85C\uCEEC \uC778\uC99D (Google OAuth / App Store / Play / BigQuery)
|
|
1940
|
+
${kleur9.cyan("mimi-seed firebase")} Firebase \uC571 \uC0DD\uC131\xB7config \uB2E4\uC6B4\uB85C\uB4DC\xB7GA4 \uB9C1\uD06C
|
|
1941
|
+
${kleur9.cyan("mimi-seed admob")} AdMob \uACC4\uC815\xB7\uC571\xB7\uAD11\uACE0\uB2E8\uC704 \uC870\uD68C \uBC0F \uC0DD\uC131
|
|
1942
|
+
${kleur9.cyan("mimi-seed ga4")} GA4 property\xB7data stream \uC0DD\uC131\xB7\uC870\uD68C
|
|
1862
1943
|
${kleur9.cyan("mimi-seed doctor")} \uD658\uACBD \uC9C4\uB2E8 (\uD1A0\uD070\xB7Git\xB7\uD504\uB85C\uC81D\uD2B8\xB7CI \uCCB4\uD06C)
|
|
1863
1944
|
${kleur9.cyan("mimi-seed check")} \uCD9C\uC2DC \uC804 Readiness \uC810\uAC80
|
|
1864
1945
|
${kleur9.cyan("mimi-seed notes")} \uB9B4\uB9AC\uC988 \uB178\uD2B8 \uC0DD\uC131 (git log \u2192 AI \u2192 \uB9C8\uCF13 \uC801\uC6A9)
|
|
@@ -1885,7 +1966,7 @@ async function main() {
|
|
|
1885
1966
|
try {
|
|
1886
1967
|
switch (cmd) {
|
|
1887
1968
|
case "init":
|
|
1888
|
-
await cmdInit();
|
|
1969
|
+
await cmdInit(restArgs);
|
|
1889
1970
|
break;
|
|
1890
1971
|
case "status":
|
|
1891
1972
|
await cmdStatus();
|
|
@@ -1905,6 +1986,15 @@ async function main() {
|
|
|
1905
1986
|
case "auth":
|
|
1906
1987
|
await cmdAuth(restArgs);
|
|
1907
1988
|
break;
|
|
1989
|
+
case "firebase":
|
|
1990
|
+
await cmdFirebase(restArgs);
|
|
1991
|
+
break;
|
|
1992
|
+
case "admob":
|
|
1993
|
+
await cmdAdmob(restArgs);
|
|
1994
|
+
break;
|
|
1995
|
+
case "ga4":
|
|
1996
|
+
await cmdGa4(restArgs);
|
|
1997
|
+
break;
|
|
1908
1998
|
case "deploy":
|
|
1909
1999
|
await cmdDeploy(restArgs);
|
|
1910
2000
|
break;
|
|
File without changes
|