repowise 0.1.46 → 0.1.48

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.
@@ -2589,11 +2589,13 @@ async function handleCatchUp(offlineState, pollClient, repoIds, state, repoLocal
2589
2589
  notifyBackOnline(updateCount);
2590
2590
  }
2591
2591
  }
2592
- async function startListener() {
2592
+ async function startListener(options) {
2593
2593
  running = true;
2594
- const alreadyRunning = await handleStalePid();
2595
- if (alreadyRunning)
2596
- return;
2594
+ if (!options?.skipPidCheck) {
2595
+ const alreadyRunning = await handleStalePid();
2596
+ if (alreadyRunning)
2597
+ return;
2598
+ }
2597
2599
  await writePidFile();
2598
2600
  const config2 = await getListenerConfig();
2599
2601
  if (config2.repos.length === 0) {
@@ -3025,8 +3027,12 @@ program.command("config").description("Manage configuration").action(async () =>
3025
3027
  await config2();
3026
3028
  });
3027
3029
  if (process.argv[2] === "__listener") {
3028
- const { startListener: startListener2 } = await Promise.resolve().then(() => (init_main(), main_exports));
3029
- await startListener2();
3030
+ Promise.resolve().then(() => (init_main(), main_exports)).then(
3031
+ ({ startListener: startListener2 }) => startListener2({ skipPidCheck: true }).catch((err) => {
3032
+ console.error("Listener fatal error:", err);
3033
+ process.exitCode = 1;
3034
+ })
3035
+ );
3030
3036
  } else {
3031
3037
  program.parse();
3032
3038
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repowise",
3
- "version": "0.1.46",
3
+ "version": "0.1.48",
4
4
  "type": "module",
5
5
  "description": "AI-optimized codebase context generator",
6
6
  "bin": {