repowise 0.1.19 → 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 +25 -2
- package/package.json +1 -1
package/dist/bin/repowise.js
CHANGED
|
@@ -1390,7 +1390,17 @@ async function create() {
|
|
|
1390
1390
|
continue;
|
|
1391
1391
|
}
|
|
1392
1392
|
if (syncResult.status === "completed") {
|
|
1393
|
-
|
|
1393
|
+
const fileCount = syncResult.filesGenerated?.length ?? 0;
|
|
1394
|
+
if (fileCount > 0) {
|
|
1395
|
+
spinner.succeed(`Context generation complete (${fileCount} files)`);
|
|
1396
|
+
} else {
|
|
1397
|
+
spinner.warn(chalk5.yellow("Pipeline completed but no context files were generated."));
|
|
1398
|
+
console.log(
|
|
1399
|
+
chalk5.yellow(
|
|
1400
|
+
" This may be due to AI throttling or a parsing issue. Try running `repowise create` again."
|
|
1401
|
+
)
|
|
1402
|
+
);
|
|
1403
|
+
}
|
|
1394
1404
|
break;
|
|
1395
1405
|
}
|
|
1396
1406
|
if (syncResult.status === "failed") {
|
|
@@ -1425,6 +1435,13 @@ You may need to run \`git pull\` manually.`
|
|
|
1425
1435
|
if (repoRoot) {
|
|
1426
1436
|
contextFiles = await scanLocalContextFiles(repoRoot, contextFolder);
|
|
1427
1437
|
}
|
|
1438
|
+
if (contextFiles.length === 0) {
|
|
1439
|
+
console.log(
|
|
1440
|
+
chalk5.yellow(
|
|
1441
|
+
` No context files found in ${contextFolder}/. You may need to run \`git pull\` manually or re-run \`repowise create\`.`
|
|
1442
|
+
)
|
|
1443
|
+
);
|
|
1444
|
+
}
|
|
1428
1445
|
if (tools.length > 0 && repoRoot) {
|
|
1429
1446
|
spinner.start("Configuring AI tools...");
|
|
1430
1447
|
const results = [];
|
|
@@ -1444,10 +1461,16 @@ You may need to run \`git pull\` manually.`
|
|
|
1444
1461
|
console.log(chalk5.dim(results.join("\n")));
|
|
1445
1462
|
}
|
|
1446
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
|
+
}
|
|
1447
1469
|
await saveConfig({
|
|
1448
1470
|
...existingConfig,
|
|
1449
1471
|
aiTools: tools,
|
|
1450
|
-
contextFolder
|
|
1472
|
+
contextFolder,
|
|
1473
|
+
repos: updatedRepos
|
|
1451
1474
|
});
|
|
1452
1475
|
let listenerRunning = false;
|
|
1453
1476
|
try {
|