relayax-cli 0.2.25 → 0.2.26

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.
@@ -201,6 +201,13 @@ function registerInstall(program) {
201
201
  files: fileCount,
202
202
  install_path: teamDir,
203
203
  ...(spaceTarget ? { space_slug: spaceTarget.spaceSlug } : {}),
204
+ author: team.author ? {
205
+ username: team.author.username,
206
+ display_name: team.author.display_name ?? null,
207
+ contact_links: team.author.contact_links ?? [],
208
+ } : null,
209
+ welcome: team.welcome ?? null,
210
+ latest_post: team.latest_post ?? null,
204
211
  };
205
212
  if (json) {
206
213
  console.log(JSON.stringify(result));
@@ -52,21 +52,46 @@ const LOGIN_JIT_GUIDE = `
52
52
  // ─── 명함 표시 포맷 ───
53
53
  const BUSINESS_CARD_FORMAT = `
54
54
  ### 빌더 명함 표시
55
- CLI 출력에 포함된 빌더 명함 정보를 반드시 아래 예시와 동일한 형태로 출력합니다.
55
+ JSON 결과의 \`author\`, \`welcome\` 필드를 사용하여 명함을 표시합니다.
56
56
  불릿 리스트(- 또는 *)로 나열하지 마세요. 반드시 인용 블록(>) 안에 넣어야 합니다.
57
57
 
58
+ **JSON 결과에서 사용할 필드:**
59
+ - \`author.display_name\` 또는 \`author.username\` → 명함 제목
60
+ - \`welcome\` → 환영 메시지 (💬)
61
+ - \`author.contact_links\` → 연락처 배열 (\`[{type, label, value}]\`)
62
+ - \`author.username\` → 프로필 링크 (👤)
63
+
58
64
  **예시 (이 형태를 그대로 따르세요):**
59
65
 
60
- > **🪪 devhaemin의 명함**
66
+ JSON 결과 예시:
67
+ \`\`\`json
68
+ {
69
+ "author": { "username": "alice", "display_name": "Alice Kim", "contact_links": [
70
+ {"type": "email", "label": "이메일", "value": "alice@example.com"},
71
+ {"type": "website", "label": "블로그", "value": "https://alice.dev"},
72
+ {"type": "kakao", "label": "카카오", "value": "https://open.kakao.com/o/abc123"}
73
+ ]},
74
+ "welcome": "안녕하세요!\\n에이전트 빌더 Alice입니다.\\n설치해주셔서 감사합니다."
75
+ }
76
+ \`\`\`
77
+
78
+ 출력:
79
+
80
+ > **🪪 Alice Kim의 명함**
61
81
  >
62
- > 💬 "안녕하세요!"
82
+ > 💬 "안녕하세요!
83
+ > 에이전트 빌더 Alice입니다.
84
+ > 설치해주셔서 감사합니다."
63
85
  >
64
- > 📧 haemin@musibe.com
65
- > 👤 relayax.com/@devhaemin
86
+ > 📧 alice@example.com
87
+ > 🔗 블로그: alice.dev
88
+ > 💬 카카오: open.kakao.com/o/abc123
89
+ > 👤 relayax.com/@alice
66
90
 
67
- - 환영 메시지가 없으면 💬 줄을 생략합니다.
91
+ - \`welcome\`이 없으면 💬 줄을 생략합니다.
92
+ - 연락처의 type에 맞는 이모지: 📧 email, 💬 kakao, 🐦 x, 💼 linkedin, 💻 github, 🔗 website/custom
68
93
  - 연락처가 여러 개면 각각 한 줄씩 표시합니다.
69
- - 명함이 비어있으면 명함 블록 전체를 생략합니다.`;
94
+ - \`author\`가 null이면 명함 블록 전체를 생략합니다.`;
70
95
  // ─── User Commands (글로벌 설치) ───
71
96
  exports.USER_COMMANDS = [
72
97
  {
@@ -150,12 +175,22 @@ ${LOGIN_JIT_GUIDE}
150
175
  ### 6. 완료 안내
151
176
  - 배치된 파일과 활성화된 커맨드 목록을 보여줍니다.
152
177
  ${BUSINESS_CARD_FORMAT}
153
- - **팔로우 제안**: 사용자에게 직접 질문하는 인터랙티브 도구(예: AskUserQuestion 등)를 사용하여 "@{username}을 팔로우할까요? 새 버전 알림을 받을 수 있습니다."라고 반드시 물어봅니다. 인터랙티브 도구가 없으면 텍스트로 물어봅니다.
154
- - 수락하면: \`relay follow @{username}\` 실행. 로그인이 안 되어 있으면 먼저 \`relay login\` 실행 후 재시도.
155
- - 거절하면: 건너뜁니다
178
+ ### 7. 팔로우 제안 (필수 단계를 절대 건너뛰지 마세요)
179
+ 명함 표시 직후, 빌더의 username JSON 결과에 있으면 **반드시** AskUserQuestion 도구를 호출하세요.
180
+ 텍스트로 질문하지 말고, **AskUserQuestion 도구를 직접 호출**해야 합니다.
181
+
182
+ **AskUserQuestion 호출:**
183
+ - question: \`@{username}을 팔로우할까요? 새 버전 알림을 받을 수 있습니다.\`
184
+ - options: \`["팔로우", "건너뛰기"]\`
185
+
186
+ **응답 처리:**
187
+ - "팔로우" → \`relay follow @{username}\` 실행. 로그인이 안 되어 있으면 \`relay login\` 먼저 실행 후 재시도.
188
+ - "건너뛰기" → 다음 단계로 진행
189
+
190
+ ### 8. 사용 제안
156
191
  - "바로 사용해볼까요?" 제안
157
192
 
158
- ### 7. 업데이트 확인 (설치 완료 후)
193
+ ### 9. 업데이트 확인 (설치 완료 후)
159
194
  - \`relay check-update\` 명령어를 실행합니다.
160
195
  - CLI 업데이트가 있으면 안내합니다: "relay v{new} available. Run: npm update -g relayax-cli"
161
196
  - 다른 팀 업데이트가 있으면 안내합니다.
@@ -168,6 +203,8 @@ ${BUSINESS_CARD_FORMAT}
168
203
  → .relay/teams/ 내용을 ~/.claude/에 배치
169
204
  → relay deploy-record @example/contents-team --scope global --files ~/.claude/commands/cardnews.md ...
170
205
  → requires 확인: ✓ playwright 설치됨, ✓ sharp 설치됨
206
+ → 명함 표시 (인용 블록)
207
+ → AskUserQuestion 호출: "@example을 팔로우할까요? 새 버전 알림을 받을 수 있습니다." → 팔로우/건너뛰기
171
208
  → "✓ 설치 완료! /cardnews를 사용해볼까요?"`,
172
209
  },
173
210
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "relayax-cli",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "description": "RelayAX Agent Team Marketplace CLI - Install and manage agent teams",
5
5
  "main": "dist/index.js",
6
6
  "bin": {