@adhdev/daemon-core 0.8.16 → 0.8.18
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.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/node_modules/@adhdev/session-host-core/package.json +1 -1
- package/package.json +1 -1
- package/src/commands/upgrade-helper.ts +9 -0
- package/src/index.ts +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -39,7 +39,8 @@ export { DaemonCommandHandler } from './commands/handler.js';
|
|
|
39
39
|
export type { CommandResult, CommandContext } from './commands/handler.js';
|
|
40
40
|
export { DaemonCommandRouter } from './commands/router.js';
|
|
41
41
|
export type { CommandRouterDeps, CommandRouterResult } from './commands/router.js';
|
|
42
|
-
export { maybeRunDaemonUpgradeHelperFromEnv } from './commands/upgrade-helper.js';
|
|
42
|
+
export { maybeRunDaemonUpgradeHelperFromEnv, spawnDetachedDaemonUpgradeHelper } from './commands/upgrade-helper.js';
|
|
43
|
+
export type { DaemonUpgradeHelperPayload } from './commands/upgrade-helper.js';
|
|
43
44
|
export { DaemonStatusReporter } from './status/reporter.js';
|
|
44
45
|
export { buildSessionEntries, findCdpManager, hasCdpManager, isCdpConnected } from './status/builders.js';
|
|
45
46
|
export { buildStatusSnapshot } from './status/snapshot.js';
|
package/dist/index.js
CHANGED
|
@@ -2617,6 +2617,7 @@ __export(index_exports, {
|
|
|
2617
2617
|
setLogLevel: () => setLogLevel,
|
|
2618
2618
|
setupIdeInstance: () => setupIdeInstance,
|
|
2619
2619
|
shutdownDaemonComponents: () => shutdownDaemonComponents,
|
|
2620
|
+
spawnDetachedDaemonUpgradeHelper: () => spawnDetachedDaemonUpgradeHelper,
|
|
2620
2621
|
startDaemonDevSupport: () => startDaemonDevSupport,
|
|
2621
2622
|
updateConfig: () => updateConfig,
|
|
2622
2623
|
upsertSavedProviderSession: () => upsertSavedProviderSession
|
|
@@ -11987,6 +11988,11 @@ async function runDaemonUpgradeHelper(payload) {
|
|
|
11987
11988
|
if (installOutput.trim()) {
|
|
11988
11989
|
appendUpgradeLog(installOutput.trim());
|
|
11989
11990
|
}
|
|
11991
|
+
if (process.platform === "win32") {
|
|
11992
|
+
await new Promise((resolve9) => setTimeout(resolve9, 500));
|
|
11993
|
+
cleanupStaleGlobalInstallDirs(payload.packageName);
|
|
11994
|
+
appendUpgradeLog("Post-install staging cleanup complete");
|
|
11995
|
+
}
|
|
11990
11996
|
if (restartArgv.length > 0) {
|
|
11991
11997
|
const env = { ...process.env };
|
|
11992
11998
|
delete env[UPGRADE_HELPER_ENV];
|
|
@@ -19619,6 +19625,7 @@ async function shutdownDaemonComponents(components) {
|
|
|
19619
19625
|
setLogLevel,
|
|
19620
19626
|
setupIdeInstance,
|
|
19621
19627
|
shutdownDaemonComponents,
|
|
19628
|
+
spawnDetachedDaemonUpgradeHelper,
|
|
19622
19629
|
startDaemonDevSupport,
|
|
19623
19630
|
updateConfig,
|
|
19624
19631
|
upsertSavedProviderSession
|