relayax-cli 0.3.53 → 0.3.54
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/dist/commands/publish.js
CHANGED
|
@@ -17,6 +17,7 @@ const version_check_js_1 = require("../lib/version-check.js");
|
|
|
17
17
|
const paths_js_1 = require("../lib/paths.js");
|
|
18
18
|
const error_report_js_1 = require("../lib/error-report.js");
|
|
19
19
|
const step_tracker_js_1 = require("../lib/step-tracker.js");
|
|
20
|
+
const index_js_1 = require("../prompts/index.js");
|
|
20
21
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
21
22
|
const cliPkg = require('../../package.json');
|
|
22
23
|
const VALID_DIRS = ['skills', 'agents', 'rules', 'commands', 'bin'];
|
|
@@ -705,11 +706,11 @@ function registerPublish(program) {
|
|
|
705
706
|
: `https://relayax.com/api/registry/${detailSlug}/guide.md`;
|
|
706
707
|
console.log(`\n \x1b[90m주변인에게 공유하세요:\x1b[0m\n`);
|
|
707
708
|
console.log('```');
|
|
708
|
-
console.log(
|
|
709
|
+
console.log(index_js_1.GUIDE_INSTRUCTION);
|
|
709
710
|
console.log(guideUrl);
|
|
710
711
|
console.log('```');
|
|
711
|
-
console.log(`\n \x1b[
|
|
712
|
-
console.log(` /relay
|
|
712
|
+
console.log(`\n \x1b[90m이미 relay를 쓰는 사용자는 이렇게만 하면 됩니다:\x1b[0m`);
|
|
713
|
+
console.log(` /relay-install ${result.slug}`);
|
|
713
714
|
if (config.visibility === 'private') {
|
|
714
715
|
console.log(`\n \x1b[90mprivate 에이전트:\x1b[0m`);
|
|
715
716
|
console.log(` 접근 링크를 생성한 뒤 guide.md?code={agent_code}로 공유하세요.`);
|
package/dist/prompts/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export declare const ERROR_HANDLING_GUIDE: string;
|
|
|
3
3
|
export declare const SETUP_ENVIRONMENT: string;
|
|
4
4
|
export declare const SETUP_CLI: string;
|
|
5
5
|
export declare const SETUP_LOGIN: string;
|
|
6
|
+
export declare const GUIDE_INSTRUCTION: string;
|
|
6
7
|
export declare const INSTALL_PROMPT: string;
|
|
7
8
|
export declare const PUBLISH_PROMPT: string;
|
package/dist/prompts/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PUBLISH_PROMPT = exports.INSTALL_PROMPT = exports.SETUP_LOGIN = exports.SETUP_CLI = exports.SETUP_ENVIRONMENT = exports.ERROR_HANDLING_GUIDE = exports.REQUIREMENTS_CHECK = void 0;
|
|
6
|
+
exports.PUBLISH_PROMPT = exports.INSTALL_PROMPT = exports.GUIDE_INSTRUCTION = exports.SETUP_LOGIN = exports.SETUP_CLI = exports.SETUP_ENVIRONMENT = exports.ERROR_HANDLING_GUIDE = exports.REQUIREMENTS_CHECK = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
function readPrompt(filename) {
|
|
@@ -18,9 +18,11 @@ exports.ERROR_HANDLING_GUIDE = readPrompt('_error-handling.md');
|
|
|
18
18
|
exports.SETUP_ENVIRONMENT = readPrompt('_setup-environment.md');
|
|
19
19
|
exports.SETUP_CLI = readPrompt('_setup-cli.md');
|
|
20
20
|
exports.SETUP_LOGIN = readPrompt('_setup-login.md');
|
|
21
|
+
exports.GUIDE_INSTRUCTION = readPrompt('_guide-instruction.md');
|
|
21
22
|
const fragments = {
|
|
22
23
|
REQUIREMENTS_CHECK: exports.REQUIREMENTS_CHECK,
|
|
23
24
|
ERROR_HANDLING_GUIDE: exports.ERROR_HANDLING_GUIDE,
|
|
25
|
+
GUIDE_INSTRUCTION: exports.GUIDE_INSTRUCTION,
|
|
24
26
|
};
|
|
25
27
|
// ─── 전체 프롬프트 (조각 합성 완료) ───
|
|
26
28
|
exports.INSTALL_PROMPT = interpolate(readPrompt('install.md'), fragments);
|
package/dist/prompts/install.md
CHANGED
package/dist/prompts/publish.md
CHANGED
|
@@ -406,14 +406,14 @@ requires: env 2개, cli 1개
|
|
|
406
406
|
- `relay publish --json` 응답의 `access_code` 필드가 있으면 (internal agent) 가이드 URL에 `?code={access_code}` 포함:
|
|
407
407
|
|
|
408
408
|
\`\`\`
|
|
409
|
-
|
|
409
|
+
{{GUIDE_INSTRUCTION}}
|
|
410
410
|
https://relayax.com/api/registry/{owner}/{slug}/guide.md?code={access_code}
|
|
411
411
|
\`\`\`
|
|
412
412
|
|
|
413
413
|
- `access_code`가 없으면 (public agent) code 파라미터 없이:
|
|
414
414
|
|
|
415
415
|
\`\`\`
|
|
416
|
-
|
|
416
|
+
{{GUIDE_INSTRUCTION}}
|
|
417
417
|
https://relayax.com/api/registry/{owner}/{slug}/guide.md
|
|
418
418
|
\`\`\`
|
|
419
419
|
|