relayax-cli 0.4.25 → 0.4.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.
@@ -15,7 +15,6 @@ const paths_js_1 = require("../lib/paths.js");
15
15
  const error_report_js_1 = require("../lib/error-report.js");
16
16
  const step_tracker_js_1 = require("../lib/step-tracker.js");
17
17
  const git_operations_js_1 = require("../lib/git-operations.js");
18
- const manifest_generator_js_1 = require("../lib/manifest-generator.js");
19
18
  // GUIDE_INSTRUCTION removed — share text now uses npx install command directly
20
19
  // eslint-disable-next-line @typescript-eslint/no-var-requires
21
20
  const cliPkg = require('../../package.json');
@@ -49,7 +48,6 @@ function parseRelayYaml(content) {
49
48
  type,
50
49
  source: raw.source ? String(raw.source) : undefined,
51
50
  org_slug: raw.org_slug ? String(raw.org_slug) : undefined,
52
- platforms: Array.isArray(raw.platforms) ? raw.platforms.map((p) => String(p)) : undefined,
53
51
  };
54
52
  }
55
53
  function detectCommands(agentDir) {
@@ -735,31 +733,6 @@ function registerPublish(program) {
735
733
  }
736
734
  process.exit(1);
737
735
  }
738
- // Generate platform manifests (after preamble/command, before git commit)
739
- const manifestYaml = {
740
- name: config.name,
741
- slug: config.slug,
742
- description: config.description,
743
- version: config.version,
744
- source: config.source,
745
- org_slug: config.org_slug ?? selectedOrgSlug,
746
- platforms: config.platforms,
747
- };
748
- const manifestFiles = (0, manifest_generator_js_1.generateManifests)(manifestYaml, relayDir);
749
- for (const mf of manifestFiles) {
750
- const mfPath = path_1.default.join(relayDir, mf.relativePath);
751
- fs_1.default.mkdirSync(path_1.default.dirname(mfPath), { recursive: true });
752
- fs_1.default.writeFileSync(mfPath, mf.content);
753
- }
754
- const generatedPlatforms = [...new Set(manifestFiles.map((f) => {
755
- if (f.relativePath.startsWith('.claude-plugin/') || f.relativePath === 'marketplace.json')
756
- return 'claude-code';
757
- if (f.relativePath.startsWith('.codex-plugin/'))
758
- return 'codex';
759
- if (f.relativePath.startsWith('.agent/'))
760
- return 'antigravity';
761
- return 'unknown';
762
- }))];
763
736
  try {
764
737
  if (!json) {
765
738
  console.error(`업로드 중...`);
@@ -808,9 +781,7 @@ function registerPublish(program) {
808
781
  // preamble update is best-effort — publish already succeeded
809
782
  }
810
783
  if (json) {
811
- const jsonResult = { ...result };
812
- jsonResult.platforms = generatedPlatforms;
813
- console.log(JSON.stringify(jsonResult));
784
+ console.log(JSON.stringify(result));
814
785
  }
815
786
  else {
816
787
  console.log(`\n\x1b[32m✓ ${config.name} 배포 완료\x1b[0m v${result.version}`);
@@ -820,7 +791,6 @@ function registerPublish(program) {
820
791
  {
821
792
  const detailSlug = result.slug.startsWith('@') ? result.slug.slice(1) : result.slug;
822
793
  const accessCode = result.access_code ?? null;
823
- // const gitUrl = (result as unknown as Record<string, unknown>).git_url as string | undefined // plugin disabled
824
794
  // npx turnkey install command (works everywhere, no pre-install needed)
825
795
  const visibility = config.visibility ?? 'public';
826
796
  let npxInstallCmd;
package/dist/index.js CHANGED
@@ -24,7 +24,6 @@ const access_js_1 = require("./commands/access.js");
24
24
  const grant_js_1 = require("./commands/grant.js");
25
25
  const versions_js_1 = require("./commands/versions.js");
26
26
  const diff_js_1 = require("./commands/diff.js");
27
- const export_js_1 = require("./commands/export.js");
28
27
  const feedback_js_1 = require("./commands/feedback.js");
29
28
  const server_js_1 = require("./mcp/server.js");
30
29
  // eslint-disable-next-line @typescript-eslint/no-var-requires
@@ -57,7 +56,6 @@ program
57
56
  (0, grant_js_1.registerGrant)(program);
58
57
  (0, versions_js_1.registerVersions)(program);
59
58
  (0, diff_js_1.registerDiff)(program);
60
- (0, export_js_1.registerExport)(program);
61
59
  (0, feedback_js_1.registerFeedback)(program);
62
60
  program
63
61
  .command('mcp')
@@ -13,37 +13,6 @@ exports.formatCommandFile = formatCommandFile;
13
13
  const os_1 = __importDefault(require("os"));
14
14
  const path_1 = __importDefault(require("path"));
15
15
  const index_js_1 = require("../prompts/index.js");
16
- /**
17
- * 환경 감지 프리앰블.
18
- * slash command 실행 시 MCP tool 사용 가능 여부를 먼저 판별하여,
19
- * 이후 모든 CLI 명령어를 적절한 방식으로 실행하도록 안내.
20
- */
21
- const ENV_PREAMBLE = `## 환경 감지
22
-
23
- 이 커맨드를 실행하기 전에 환경을 판별하세요:
24
-
25
- 1. **relay MCP tool 사용 가능 여부 확인**: relay_status 같은 relay MCP tool을 호출할 수 있는지 확인하세요.
26
- - 사용 가능 → **MCP 모드**로 실행 (아래 표 참고)
27
- - 사용 불가 → **CLI 모드**로 실행 (bash 명령어 그대로 사용)
28
-
29
- 2. MCP 모드에서의 명령어 변환:
30
-
31
- | CLI 명령어 | MCP tool |
32
- |---|---|
33
- | \`relay status\` | \`relay_status\` tool 호출 |
34
- | \`relay list --json\` | \`relay_list\` tool 호출 |
35
- | \`relay search <keyword>\` | \`relay_search\` tool 호출 |
36
- | \`relay install <slug>\` | \`relay_install\` tool 호출 |
37
- | \`relay uninstall <slug>\` | \`relay_uninstall\` tool 호출 |
38
- | \`relay package --init\` | \`relay_scan\` tool 호출 |
39
- | \`relay publish\` | \`relay_publish\` tool 호출 |
40
- | \`relay login\` | \`relay_login\` tool 호출 |
41
-
42
- **중요**: 이후 지시에서 \`relay <명령어>\`로 표기된 것은 판별된 환경에 따라 변환하여 실행하세요.
43
-
44
- ---
45
-
46
- `;
47
16
  /**
48
17
  * 로컬 어댑터 — 프로젝트 디렉토리 기준.
49
18
  * {projectPath}/{skillsDir}/commands/relay/{id}.md
@@ -101,7 +70,7 @@ exports.USER_COMMANDS = [
101
70
  {
102
71
  id: 'relay-status',
103
72
  description: '설치된 에이전트와 Organization 현황을 확인합니다',
104
- body: ENV_PREAMBLE + `현재 설치된 에이전트와 소속 Organization 현황을 한눈에 보여줍니다.
73
+ body: `현재 설치된 에이전트와 소속 Organization 현황을 한눈에 보여줍니다.
105
74
 
106
75
  ## 실행 방법
107
76
 
@@ -154,7 +123,6 @@ exports.USER_COMMANDS = [
154
123
 
155
124
  **표시:**
156
125
  - \`role\`: owner → 오너, admin → 관리자, builder → 빌더, member → 멤버
157
- ${index_js_1.ERROR_HANDLING_GUIDE}
158
126
  - Org 조회 실패해도 설치된 에이전트 목록은 정상 표시합니다 (로컬 데이터).
159
127
 
160
128
  ### 3. Org 에이전트 목록 (옵션)
@@ -190,7 +158,7 @@ ${index_js_1.ERROR_HANDLING_GUIDE}
190
158
  {
191
159
  id: 'relay-uninstall',
192
160
  description: '설치된 에이전트를 삭제합니다',
193
- body: ENV_PREAMBLE + `설치된 에이전트를 제거합니다. CLI가 패키지와 배치된 파일을 모두 정리합니다.
161
+ body: `설치된 에이전트를 제거합니다. CLI가 패키지와 배치된 파일을 모두 정리합니다.
194
162
 
195
163
  ## 실행 방법
196
164
 
@@ -86,8 +86,6 @@ function generatePreamble(slug, agentDir) {
86
86
  [ -f "${scriptPath}" ] && bash "${scriptPath}" 2>/dev/null || true
87
87
  \`\`\`
88
88
 
89
- If the bash command above fails or the file is not found (sandbox/MCP environment), use the \`relay_check_update\` MCP tool instead: \`relay_check_update(slug: "${slug}")\`
90
-
91
89
  If output shows \`CLI_UPGRADE_AVAILABLE <old> <new>\`: tell user "relay v{new} available. Run: npm update -g relayax-cli"
92
90
  If output shows \`AGENT_UPGRADE_AVAILABLE\`: tell user "${slug} v{new} available (by @{author}). Run: relay update ${slug}"
93
91
  ${PREAMBLE_END}`;