@rvry/mcp 0.3.4 → 0.4.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/dist/setup.js +32 -7
- package/package.json +1 -1
package/dist/setup.js
CHANGED
|
@@ -739,7 +739,32 @@ export async function runSetup() {
|
|
|
739
739
|
const tokenFlagIndex = process.argv.indexOf('--token');
|
|
740
740
|
const clientFlagIndex = process.argv.indexOf('--client');
|
|
741
741
|
const clientFilter = clientFlagIndex !== -1 ? process.argv[clientFlagIndex + 1] : null;
|
|
742
|
-
|
|
742
|
+
const acceptTerms = process.argv.includes('--accept-terms');
|
|
743
|
+
// ── Step 1: Terms of Service ────────────────────────────────────
|
|
744
|
+
console.log('[1/6] Terms of Service');
|
|
745
|
+
console.log('');
|
|
746
|
+
console.log(' By continuing, you agree to the RVRY Terms of Service');
|
|
747
|
+
console.log(' and Privacy Policy:');
|
|
748
|
+
console.log('');
|
|
749
|
+
console.log(' https://rvry.ai/terms');
|
|
750
|
+
console.log(' https://rvry.ai/privacy');
|
|
751
|
+
console.log('');
|
|
752
|
+
if (acceptTerms) {
|
|
753
|
+
console.log(' Accepted via --accept-terms flag.');
|
|
754
|
+
}
|
|
755
|
+
else {
|
|
756
|
+
const rl = createRL();
|
|
757
|
+
const answer = await ask(rl, ' Do you agree to the Terms of Service? [y/N] ');
|
|
758
|
+
rl.close();
|
|
759
|
+
if (answer.toLowerCase() !== 'y') {
|
|
760
|
+
console.log('');
|
|
761
|
+
console.log(' Setup cancelled. You must agree to the Terms of Service to use RVRY.');
|
|
762
|
+
process.exit(1);
|
|
763
|
+
}
|
|
764
|
+
console.log(' Accepted.');
|
|
765
|
+
}
|
|
766
|
+
console.log('');
|
|
767
|
+
// ── Step 2: Authentication ──────────────────────────────────────
|
|
743
768
|
let token = null;
|
|
744
769
|
let warning;
|
|
745
770
|
if (tokenFlagIndex !== -1 && process.argv[tokenFlagIndex + 1]) {
|
|
@@ -749,11 +774,11 @@ export async function runSetup() {
|
|
|
749
774
|
process.exit(1);
|
|
750
775
|
}
|
|
751
776
|
token = flagValue;
|
|
752
|
-
console.log('[
|
|
777
|
+
console.log('[2/6] Authentication (from --token flag)');
|
|
753
778
|
console.log(` Token: ${maskToken(token)}`);
|
|
754
779
|
}
|
|
755
780
|
else {
|
|
756
|
-
console.log('[
|
|
781
|
+
console.log('[2/6] Authentication');
|
|
757
782
|
console.log(' Opening browser for sign-in...');
|
|
758
783
|
const result = await deviceAuthFlow();
|
|
759
784
|
if (result) {
|
|
@@ -787,7 +812,7 @@ export async function runSetup() {
|
|
|
787
812
|
}
|
|
788
813
|
console.log('');
|
|
789
814
|
// ── Step 2: Detect clients ──────────────────────────────────────
|
|
790
|
-
console.log('[
|
|
815
|
+
console.log('[3/6] Detecting clients');
|
|
791
816
|
// Filter registry if --client was passed
|
|
792
817
|
const clients = clientFilter
|
|
793
818
|
? CLIENT_REGISTRY.filter((c) => c.id === clientFilter)
|
|
@@ -807,7 +832,7 @@ export async function runSetup() {
|
|
|
807
832
|
}
|
|
808
833
|
console.log('');
|
|
809
834
|
// ── Step 3: Configure clients ───────────────────────────────────
|
|
810
|
-
console.log('[
|
|
835
|
+
console.log('[4/6] Select apps to add RVRY MCP configuration');
|
|
811
836
|
console.log(' Use \x1b[1m↑↓\x1b[0m to navigate, \x1b[1mspace\x1b[0m to toggle, \x1b[1ma\x1b[0m to toggle all, \x1b[1menter\x1b[0m to confirm');
|
|
812
837
|
console.log('');
|
|
813
838
|
const pickerItems = detected.map((d) => ({
|
|
@@ -865,7 +890,7 @@ export async function runSetup() {
|
|
|
865
890
|
}
|
|
866
891
|
console.log('');
|
|
867
892
|
// ── Step 4: Slash commands ──────────────────────────────────────
|
|
868
|
-
console.log('[
|
|
893
|
+
console.log('[5/6] Slash Commands');
|
|
869
894
|
const commandCount = await installCommands();
|
|
870
895
|
if (commandCount > 0) {
|
|
871
896
|
console.log(` Installed ${commandCount} command${commandCount > 1 ? 's' : ''} to .claude/commands/`);
|
|
@@ -875,7 +900,7 @@ export async function runSetup() {
|
|
|
875
900
|
}
|
|
876
901
|
console.log('');
|
|
877
902
|
// ── Step 5: Gitignore protection ────────────────────────────────
|
|
878
|
-
console.log('[
|
|
903
|
+
console.log('[6/6] Gitignore');
|
|
879
904
|
ensureGitignore();
|
|
880
905
|
console.log('');
|
|
881
906
|
// ── Summary ─────────────────────────────────────────────────────
|