@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.js
CHANGED
|
@@ -12873,12 +12873,13 @@ async function handleSetProviderSourceConfig(h, args) {
|
|
|
12873
12873
|
});
|
|
12874
12874
|
loader.reload();
|
|
12875
12875
|
loader.registerToDetector();
|
|
12876
|
+
const refreshedInstances = h.ctx.instanceManager ? h.ctx.instanceManager.refreshProviderDefinitions((providerType) => loader.resolve(providerType)) : 0;
|
|
12876
12877
|
await h.ctx.onProviderSourceConfigChanged?.();
|
|
12877
12878
|
LOG.info(
|
|
12878
12879
|
"Command",
|
|
12879
12880
|
`[set_provider_source_config] mode=${sourceConfig.sourceMode} explicitProviderDir=${sourceConfig.explicitProviderDir || "-"} userDir=${sourceConfig.userDir}`
|
|
12880
12881
|
);
|
|
12881
|
-
return { success: true, reloaded: true, ...sourceConfig };
|
|
12882
|
+
return { success: true, reloaded: true, refreshedInstances, ...sourceConfig };
|
|
12882
12883
|
}
|
|
12883
12884
|
function normalizeProviderScriptArgs(args, scriptName) {
|
|
12884
12885
|
const normalizedArgs = { ...args || {} };
|