@noosphere/agent-core 0.1.0-alpha.12 → 0.1.0-alpha.13

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.cjs CHANGED
@@ -1446,7 +1446,7 @@ var NoosphereAgent = class _NoosphereAgent {
1446
1446
  );
1447
1447
  }
1448
1448
  this.containerManager = new ContainerManager();
1449
- this.registryManager = new import_registry.RegistryManager({
1449
+ this.registryManager = options.registryManager || new import_registry.RegistryManager({
1450
1450
  autoSync: true,
1451
1451
  // Enable automatic sync with remote registry
1452
1452
  cacheTTL: 36e5
@@ -1556,7 +1556,10 @@ var NoosphereAgent = class _NoosphereAgent {
1556
1556
  async start() {
1557
1557
  console.log("Starting Noosphere Agent...");
1558
1558
  console.log("\u{1F4CB} Loading container registry...");
1559
- await this.registryManager.load();
1559
+ const existingStats = this.registryManager.getStats();
1560
+ if (existingStats.totalContainers === 0) {
1561
+ await this.registryManager.load();
1562
+ }
1560
1563
  const stats = this.registryManager.getStats();
1561
1564
  console.log(
1562
1565
  `\u2713 Registry loaded: ${stats.totalContainers} containers, ${stats.totalVerifiers} verifiers`