repowise 0.1.20 → 0.1.21
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 +8 -4
- package/package.json +1 -1
package/dist/bin/repowise.js
CHANGED
|
@@ -1394,9 +1394,7 @@ async function create() {
|
|
|
1394
1394
|
if (fileCount > 0) {
|
|
1395
1395
|
spinner.succeed(`Context generation complete (${fileCount} files)`);
|
|
1396
1396
|
} else {
|
|
1397
|
-
spinner.warn(
|
|
1398
|
-
chalk5.yellow("Pipeline completed but no context files were generated.")
|
|
1399
|
-
);
|
|
1397
|
+
spinner.warn(chalk5.yellow("Pipeline completed but no context files were generated."));
|
|
1400
1398
|
console.log(
|
|
1401
1399
|
chalk5.yellow(
|
|
1402
1400
|
" This may be due to AI throttling or a parsing issue. Try running `repowise create` again."
|
|
@@ -1463,10 +1461,16 @@ You may need to run \`git pull\` manually.`
|
|
|
1463
1461
|
console.log(chalk5.dim(results.join("\n")));
|
|
1464
1462
|
}
|
|
1465
1463
|
const existingConfig = await getConfig();
|
|
1464
|
+
const existingRepos = existingConfig.repos ?? [];
|
|
1465
|
+
const updatedRepos = existingRepos.filter((r) => r.repoId !== repoId);
|
|
1466
|
+
if (repoRoot) {
|
|
1467
|
+
updatedRepos.push({ repoId, localPath: repoRoot });
|
|
1468
|
+
}
|
|
1466
1469
|
await saveConfig({
|
|
1467
1470
|
...existingConfig,
|
|
1468
1471
|
aiTools: tools,
|
|
1469
|
-
contextFolder
|
|
1472
|
+
contextFolder,
|
|
1473
|
+
repos: updatedRepos
|
|
1470
1474
|
});
|
|
1471
1475
|
let listenerRunning = false;
|
|
1472
1476
|
try {
|