@adhdev/daemon-core 0.8.17 → 0.8.19

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/session-host-core",
3
- "version": "0.8.17",
3
+ "version": "0.8.19",
4
4
  "description": "ADHDev local session host core — session registry, protocol, buffers",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.8.17",
3
+ "version": "0.8.19",
4
4
  "description": "ADHDev daemon core — CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -187,6 +187,15 @@ async function runDaemonUpgradeHelper(payload: DaemonUpgradeHelperPayload): Prom
187
187
  appendUpgradeLog(installOutput.trim());
188
188
  }
189
189
 
190
+ // npm may leave a staging dir behind on Windows when prebuild-install holds
191
+ // conpty.node open during install scripts. Clean it up now that all npm child
192
+ // processes have exited.
193
+ if (process.platform === 'win32') {
194
+ await new Promise((resolve) => setTimeout(resolve, 500));
195
+ cleanupStaleGlobalInstallDirs(payload.packageName);
196
+ appendUpgradeLog('Post-install staging cleanup complete');
197
+ }
198
+
190
199
  if (restartArgv.length > 0) {
191
200
  const env = { ...process.env };
192
201
  delete env[UPGRADE_HELPER_ENV];