@onlineapps/conn-orch-registry 1.1.14 → 1.1.16

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/LICENSE CHANGED
File without changes
package/README.md CHANGED
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlineapps/conn-orch-registry",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
4
4
  "license": "MIT",
5
5
  "description": "Connector-registry-client provides the core communication mechanism for microservices in this environment. It enables them to interact with a services_registry to receive and fulfill tasks by submitting heartbeats or their API descriptions.",
6
6
  "keywords": [
package/src/config.js CHANGED
File without changes
package/src/events.js CHANGED
File without changes
package/src/index.js CHANGED
File without changes
File without changes
@@ -67,7 +67,7 @@ class ServiceRegistryClient extends EventEmitter {
67
67
  // Validation proof is now injected via constructor (not loaded here)
68
68
  if (this.validationProof) {
69
69
  console.log(`[RegistryClient] ${this.serviceName}: ✅ Validation proof provided via constructor`);
70
- console.log(`[RegistryClient] ${this.serviceName}: Proof hash: ${this.validationProof.hash.substring(0, 32)}...`);
70
+ console.log(`[RegistryClient] ${this.serviceName}: Proof hash: ${this.validationProof.validationProof.substring(0, 32)}...`);
71
71
  } else {
72
72
  console.log(`[RegistryClient] ${this.serviceName}: ⚠️ No validation proof - will use Tier 2 validation`);
73
73
  }
@@ -184,11 +184,13 @@ class ServiceRegistryClient extends EventEmitter {
184
184
  };
185
185
 
186
186
  // Include validation proof if loaded
187
+ // Structure: { validationProof: "hash", validationData: { ... } }
188
+ // See: @onlineapps/service-validator-core/README.md#validation-proof-structure
187
189
  if (this.validationProof) {
188
- msg.validationProof = this.validationProof.hash;
189
- msg.validationData = this.validationProof.data;
190
+ msg.validationProof = this.validationProof.validationProof;
191
+ msg.validationData = this.validationProof.validationData;
190
192
  console.log(`[RegistryClient] ${this.serviceName}: ✅ Including validation proof in registration message`);
191
- console.log(`[RegistryClient] ${this.serviceName}: Proof hash: ${this.validationProof.hash.substring(0, 32)}...`);
193
+ console.log(`[RegistryClient] ${this.serviceName}: Proof hash: ${this.validationProof.validationProof.substring(0, 32)}...`);
192
194
  } else {
193
195
  console.log(`[RegistryClient] ${this.serviceName}: ⚠️ NO validation proof available - Registry will perform Tier 2 validation`);
194
196
  }
@@ -216,11 +218,14 @@ class ServiceRegistryClient extends EventEmitter {
216
218
 
217
219
  // Send registration message to registry
218
220
  await this.queueManager.channel.assertQueue(this.registryQueue, { durable: true });
221
+ console.log(`[RegistryClient] ${this.serviceName}: Sending registration message to queue: ${this.registryQueue}`);
222
+ console.log(`[RegistryClient] ${this.serviceName}: Message type: ${msg.type}, serviceName: ${msg.serviceName}, version: ${msg.version}`);
219
223
  this.queueManager.channel.sendToQueue(
220
224
  this.registryQueue,
221
225
  Buffer.from(JSON.stringify(msg)),
222
226
  { persistent: true }
223
227
  );
228
+ console.log(`[RegistryClient] ${this.serviceName}: ✓ Registration message sent, waiting for response...`);
224
229
 
225
230
  this.emit('registerSent', msg);
226
231
 
File without changes