repowise 0.1.72 → 0.1.74

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.
@@ -2068,7 +2068,7 @@ var ProgressRenderer = class {
2068
2068
  spinner.stop();
2069
2069
  console.log(
2070
2070
  chalk4.dim(
2071
- ` Scan complete: ${summary.totalFiles} files, ${summary.totalFunctions} functions, ${summary.totalClasses} classes, ${summary.totalEndpoints} endpoints`
2071
+ ` Scan complete: ${summary.totalFiles} files, ${summary.totalFunctions} functions, ${summary.totalClasses} classes, ${summary.totalEndpoints} entry points`
2072
2072
  )
2073
2073
  );
2074
2074
  console.log("");
@@ -2435,6 +2435,8 @@ async function create() {
2435
2435
  spinner.start();
2436
2436
  }
2437
2437
  let pollAttempts = 0;
2438
+ let pollErrors = 0;
2439
+ const MAX_POLL_ERRORS = 5;
2438
2440
  const progressRenderer = new ProgressRenderer();
2439
2441
  while (true) {
2440
2442
  if (++pollAttempts > MAX_POLL_ATTEMPTS) {
@@ -2443,7 +2445,17 @@ async function create() {
2443
2445
  return;
2444
2446
  }
2445
2447
  await new Promise((r) => setTimeout(r, POLL_INTERVAL_MS));
2446
- const syncResult = await apiRequest(`/v1/sync/${syncId}/status`);
2448
+ let syncResult;
2449
+ try {
2450
+ syncResult = await apiRequest(`/v1/sync/${syncId}/status`);
2451
+ pollErrors = 0;
2452
+ } catch (pollErr) {
2453
+ pollErrors++;
2454
+ if (pollErrors >= MAX_POLL_ERRORS) {
2455
+ throw pollErr;
2456
+ }
2457
+ continue;
2458
+ }
2447
2459
  progressRenderer.update(syncResult, spinner);
2448
2460
  if (syncResult.status === "awaiting_input" && syncResult.questionId && syncResult.questionText) {
2449
2461
  spinner.stop();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repowise",
3
- "version": "0.1.72",
3
+ "version": "0.1.74",
4
4
  "type": "module",
5
5
  "description": "AI-optimized codebase context generator",
6
6
  "bin": {