@openagents-org/agent-launcher 0.2.44 → 0.2.45
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/package.json +1 -1
- package/src/index.js +8 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -32,12 +32,20 @@ class AgentConnector {
|
|
|
32
32
|
|
|
33
33
|
async getCatalog() {
|
|
34
34
|
const catalog = await this.registry.getCatalog();
|
|
35
|
+
// Always re-check installed status (don't trust cached value)
|
|
35
36
|
return catalog.map((entry) => ({
|
|
36
37
|
...entry,
|
|
37
38
|
installed: this.installer.isInstalled(entry.name),
|
|
38
39
|
}));
|
|
39
40
|
}
|
|
40
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Clear catalog cache so next getCatalog re-checks installed status.
|
|
44
|
+
*/
|
|
45
|
+
clearCatalogCache() {
|
|
46
|
+
this.registry._catalog = null;
|
|
47
|
+
}
|
|
48
|
+
|
|
41
49
|
getEnvFields(agentType) {
|
|
42
50
|
return this.registry.getEnvFields(agentType);
|
|
43
51
|
}
|