ronds_ai 0.1.8 → 0.1.9
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/bin/ronds_ai.js +1 -1
- package/lib/skills_prompt.js +7 -3
- package/package.json +1 -1
package/bin/ronds_ai.js
CHANGED
|
@@ -4,7 +4,6 @@ const { runCodeRecord, saveCliError } = require('../lib/code_record');
|
|
|
4
4
|
const { runCheckRecord } = require('../lib/check_record');
|
|
5
5
|
const { runDoctor } = require('../lib/doctor');
|
|
6
6
|
const { deployHooks } = require('../lib/hooks_deploy');
|
|
7
|
-
const { runSkillsInstall } = require('../lib/skills_install');
|
|
8
7
|
|
|
9
8
|
const SUPPORTED_SOURCES = new Set(['claude', 'cursor']);
|
|
10
9
|
|
|
@@ -131,6 +130,7 @@ function parseSkillsInstallArgs(args) {
|
|
|
131
130
|
}
|
|
132
131
|
|
|
133
132
|
async function runSkillsCommand(args) {
|
|
133
|
+
const { runSkillsInstall } = require('../lib/skills_install');
|
|
134
134
|
const [action, ...rest] = args;
|
|
135
135
|
|
|
136
136
|
if (action !== 'install') {
|
package/lib/skills_prompt.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const readline = require('readline
|
|
1
|
+
const readline = require('readline');
|
|
2
2
|
|
|
3
3
|
const TOOL_CHOICES = ['claude', 'codex', 'cursor'];
|
|
4
4
|
const SCOPE_CHOICES = ['project', 'global'];
|
|
@@ -42,7 +42,9 @@ async function promptForTools() {
|
|
|
42
42
|
].join('\n'));
|
|
43
43
|
process.stderr.write('\n');
|
|
44
44
|
|
|
45
|
-
const answer = await
|
|
45
|
+
const answer = await new Promise((resolve) => {
|
|
46
|
+
rl.question('> ', resolve);
|
|
47
|
+
});
|
|
46
48
|
return normalizeChoiceInput(answer);
|
|
47
49
|
} finally {
|
|
48
50
|
rl.close();
|
|
@@ -64,7 +66,9 @@ async function promptForScope() {
|
|
|
64
66
|
].join('\n'));
|
|
65
67
|
process.stderr.write('\n');
|
|
66
68
|
|
|
67
|
-
const answer = String(await
|
|
69
|
+
const answer = String(await new Promise((resolve) => {
|
|
70
|
+
rl.question('> ', resolve);
|
|
71
|
+
})).trim().toLowerCase();
|
|
68
72
|
if (answer === '1') {
|
|
69
73
|
return 'project';
|
|
70
74
|
}
|