@adhdev/daemon-core 0.9.51 → 0.9.52

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.mjs CHANGED
@@ -12718,12 +12718,13 @@ async function handleSetProviderSourceConfig(h, args) {
12718
12718
  });
12719
12719
  loader.reload();
12720
12720
  loader.registerToDetector();
12721
+ const refreshedInstances = h.ctx.instanceManager ? h.ctx.instanceManager.refreshProviderDefinitions((providerType) => loader.resolve(providerType)) : 0;
12721
12722
  await h.ctx.onProviderSourceConfigChanged?.();
12722
12723
  LOG.info(
12723
12724
  "Command",
12724
12725
  `[set_provider_source_config] mode=${sourceConfig.sourceMode} explicitProviderDir=${sourceConfig.explicitProviderDir || "-"} userDir=${sourceConfig.userDir}`
12725
12726
  );
12726
- return { success: true, reloaded: true, ...sourceConfig };
12727
+ return { success: true, reloaded: true, refreshedInstances, ...sourceConfig };
12727
12728
  }
12728
12729
  function normalizeProviderScriptArgs(args, scriptName) {
12729
12730
  const normalizedArgs = { ...args || {} };