repowise 0.1.11 → 0.1.12
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/bin/repowise.js
CHANGED
|
@@ -362,7 +362,7 @@ var init_api = __esm({
|
|
|
362
362
|
});
|
|
363
363
|
|
|
364
364
|
// src/lib/prompts.ts
|
|
365
|
-
import { checkbox } from "@inquirer/prompts";
|
|
365
|
+
import { checkbox, confirm } from "@inquirer/prompts";
|
|
366
366
|
import chalk from "chalk";
|
|
367
367
|
async function selectAiTools() {
|
|
368
368
|
const choices = [
|
|
@@ -375,13 +375,23 @@ async function selectAiTools() {
|
|
|
375
375
|
{ name: "Roo Code", value: "roo-code" },
|
|
376
376
|
{ name: "Other (manual setup)", value: "other" }
|
|
377
377
|
];
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
378
|
+
while (true) {
|
|
379
|
+
console.log(chalk.dim(" Use Space to select, Enter to continue.\n"));
|
|
380
|
+
const selected = await checkbox({
|
|
381
|
+
message: chalk.bold("Which AI tools do you use?"),
|
|
382
|
+
choices
|
|
383
|
+
});
|
|
384
|
+
if (selected.length === 0) {
|
|
385
|
+
const goBack = await confirm({
|
|
386
|
+
message: "No tools selected. Go back and choose?",
|
|
387
|
+
default: true
|
|
388
|
+
});
|
|
389
|
+
if (goBack) continue;
|
|
390
|
+
}
|
|
391
|
+
const hasOther = selected.includes("other");
|
|
392
|
+
const tools = selected.filter((s) => s !== "other");
|
|
393
|
+
return { tools, hasOther };
|
|
394
|
+
}
|
|
385
395
|
}
|
|
386
396
|
var init_prompts = __esm({
|
|
387
397
|
"src/lib/prompts.ts"() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/lib/prompts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,wBAAsB,aAAa,IAAI,OAAO,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/lib/prompts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,wBAAsB,aAAa,IAAI,OAAO,CAAC,eAAe,CAAC,CAiC9D"}
|
package/dist/src/lib/prompts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { checkbox } from '@inquirer/prompts';
|
|
1
|
+
import { checkbox, confirm } from '@inquirer/prompts';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
export async function selectAiTools() {
|
|
4
4
|
const choices = [
|
|
@@ -11,12 +11,23 @@ export async function selectAiTools() {
|
|
|
11
11
|
{ name: 'Roo Code', value: 'roo-code' },
|
|
12
12
|
{ name: 'Other (manual setup)', value: 'other' },
|
|
13
13
|
];
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
while (true) {
|
|
15
|
+
console.log(chalk.dim(' Use Space to select, Enter to continue.\n'));
|
|
16
|
+
const selected = await checkbox({
|
|
17
|
+
message: chalk.bold('Which AI tools do you use?'),
|
|
18
|
+
choices,
|
|
19
|
+
});
|
|
20
|
+
if (selected.length === 0) {
|
|
21
|
+
const goBack = await confirm({
|
|
22
|
+
message: 'No tools selected. Go back and choose?',
|
|
23
|
+
default: true,
|
|
24
|
+
});
|
|
25
|
+
if (goBack)
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
const hasOther = selected.includes('other');
|
|
29
|
+
const tools = selected.filter((s) => s !== 'other');
|
|
30
|
+
return { tools, hasOther };
|
|
31
|
+
}
|
|
21
32
|
}
|
|
22
33
|
//# sourceMappingURL=prompts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/lib/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/lib/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,CAAC,KAAK,UAAU,aAAa;IACjC,MAAM,OAAO,GAAG;QACd,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAiB,EAAE;QAC5C,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,aAAsB,EAAE;QACtD,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,SAAkB,EAAE;QACrD,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAmB,EAAE;QAChD,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAgB,EAAE;QAC1C,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAgB,EAAE;QAC1C,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAmB,EAAE;QAChD,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,OAAgB,EAAE;KAC1D,CAAC;IAEF,OAAO,IAAI,EAAE,CAAC;QACZ,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC,CAAC;QAEtE,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC;YAC9B,OAAO,EAAE,KAAK,CAAC,IAAI,C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