repowise 0.1.84 → 0.1.86

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.
@@ -1215,7 +1215,7 @@ async function processNotifications(notifications, state, repoLocalPaths, apiUrl
1215
1215
  state.repos[notif.repoId] = {
1216
1216
  ...state.repos[notif.repoId],
1217
1217
  lastSyncTimestamp: notif.createdAt,
1218
- lastSyncCommitSha: notif.commitSha
1218
+ lastSyncCommitSha: notif.commitSha ?? state.repos[notif.repoId]?.lastSyncCommitSha ?? null
1219
1219
  };
1220
1220
  } else {
1221
1221
  console.error(`Download failed for repo ${notif.repoId} \u2014 will retry on next poll`);
@@ -1499,6 +1499,13 @@ async function startListener() {
1499
1499
  if (response.latestCliVersion) {
1500
1500
  latestCliVersion = response.latestCliVersion;
1501
1501
  }
1502
+ if (shouldReconcile) {
1503
+ try {
1504
+ const freshConfig = await getListenerConfig();
1505
+ config2.repos = freshConfig.repos;
1506
+ } catch {
1507
+ }
1508
+ }
1502
1509
  if (response.activeRepos && response.activeRepos.length > 0) {
1503
1510
  try {
1504
1511
  const result = reconcileRepos(config2.repos, response.activeRepos, state, group.apiUrl, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repowise",
3
- "version": "0.1.84",
3
+ "version": "0.1.86",
4
4
  "type": "module",
5
5
  "description": "AI-optimized codebase context generator",
6
6
  "bin": {