relayax-cli 0.4.22 → 0.4.24

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.
@@ -209,25 +209,21 @@ function registerInstall(program) {
209
209
  const agentDir = scope === 'global'
210
210
  ? path_1.default.join(os_1.default.homedir(), '.relay', 'agents', parsed.owner, parsed.name)
211
211
  : path_1.default.join(projectPath, '.relay', 'agents', parsed.owner, parsed.name);
212
- // 2. Visibility check + auto-login (internal agents always require a token)
213
- const visibility = resolvedAgent.visibility ?? 'public';
214
- if (visibility === 'internal') {
215
- const token = await ensureToken();
216
- if (!token) {
217
- if (json) {
218
- console.error(JSON.stringify({
219
- error: 'LOGIN_REQUIRED',
220
- visibility,
221
- slug,
222
- message: '이 에이전트는 로그인이 필요합니다. relay login을 먼저 실행하세요.',
223
- fix: 'relay login 실행 후 재시도하세요.',
224
- }));
225
- }
226
- else {
227
- console.error('\x1b[31m이 에이전트는 로그인이 필요합니다. relay login 을 먼저 실행하세요.\x1b[0m');
228
- }
229
- process.exit(1);
212
+ // 2. 로그인 필수 (git clone에 relay token 필요)
213
+ const token = await ensureToken();
214
+ if (!token) {
215
+ if (json) {
216
+ console.error(JSON.stringify({
217
+ error: 'LOGIN_REQUIRED',
218
+ slug,
219
+ message: '로그인이 필요합니다. relay login을 먼저 실행하세요.',
220
+ fix: 'relay login 실행 후 재시도하세요.',
221
+ }));
222
+ }
223
+ else {
224
+ console.error('\x1b[31m로그인이 필요합니다. relay login 을 먼저 실행하세요.\x1b[0m');
230
225
  }
226
+ process.exit(1);
231
227
  }
232
228
  // 3. Download package via git clone
233
229
  const requestedVersion = versionMatch ? versionMatch[2] : undefined;
@@ -242,7 +238,7 @@ function registerInstall(program) {
242
238
  process.exit(1);
243
239
  }
244
240
  (0, git_operations_js_1.checkGitInstalled)();
245
- const gitUrl = (0, git_operations_js_1.buildGitUrl)(resolvedAgent.git_url, { code: _opts.code });
241
+ const gitUrl = (0, git_operations_js_1.buildGitUrl)(resolvedAgent.git_url, { token });
246
242
  await (0, storage_js_1.clonePackage)(gitUrl, agentDir, requestedVersion);
247
243
  // Verify clone has actual files (not just .git)
248
244
  const clonedEntries = fs_1.default.readdirSync(agentDir).filter((f) => f !== '.git');
@@ -837,13 +837,7 @@ function registerPublish(program) {
837
837
  else {
838
838
  npxInstallCmd = `npx relayax-cli install ${result.slug}`;
839
839
  }
840
- // ── 설치 방법 (터미널 출력) ──
841
- console.log(`\n \x1b[1m설치 방법\x1b[0m \x1b[90m(Claude Code, Cursor, Codex 등 모든 에이전트)\x1b[0m`);
842
- console.log(` ┌─`);
843
- console.log(` │ ${npxInstallCmd}`);
844
- console.log(` └─`);
845
- console.log(`\n \x1b[90m소개:\x1b[0m https://relayax.com/@${detailSlug}`);
846
- // ── 공유 텍스트 (코드블록, 그대로 복붙) ──
840
+ // ── 공유 텍스트 (박스, 그대로 복붙) ──
847
841
  if (isTTY) {
848
842
  const shareBlock = [
849
843
  `[${config.name}] 설치하기`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "relayax-cli",
3
- "version": "0.4.22",
3
+ "version": "0.4.24",
4
4
  "description": "RelayAX Agent Team Marketplace CLI - Install and manage agent teams",
5
5
  "main": "dist/index.js",
6
6
  "bin": {