repowise 0.1.83 → 0.1.85

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.
@@ -1420,9 +1420,10 @@ async function startListener() {
1420
1420
  const groups = Array.from(groupMap.values());
1421
1421
  const allRepoIds = config2.repos.map((r) => r.repoId);
1422
1422
  const now = (/* @__PURE__ */ new Date()).toISOString();
1423
+ const oneDayAgo = new Date(Date.now() - 24 * 60 * 60 * 1e3).toISOString();
1423
1424
  for (const repoId of allRepoIds) {
1424
1425
  if (!state.repos[repoId]) {
1425
- state.repos[repoId] = { lastSyncTimestamp: now, lastSyncCommitSha: null };
1426
+ state.repos[repoId] = { lastSyncTimestamp: oneDayAgo, lastSyncCommitSha: null };
1426
1427
  }
1427
1428
  }
1428
1429
  await saveState(state);
@@ -1498,6 +1499,13 @@ async function startListener() {
1498
1499
  if (response.latestCliVersion) {
1499
1500
  latestCliVersion = response.latestCliVersion;
1500
1501
  }
1502
+ if (shouldReconcile) {
1503
+ try {
1504
+ const freshConfig = await getListenerConfig();
1505
+ config2.repos = freshConfig.repos;
1506
+ } catch {
1507
+ }
1508
+ }
1501
1509
  if (response.activeRepos && response.activeRepos.length > 0) {
1502
1510
  try {
1503
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.83",
3
+ "version": "0.1.85",
4
4
  "type": "module",
5
5
  "description": "AI-optimized codebase context generator",
6
6
  "bin": {