orator-conversion 1.0.7 → 1.0.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orator-conversion",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "File format conversion endpoints for Orator service servers.",
5
5
  "main": "source/Orator-File-Translation.js",
6
6
  "scripts": {
@@ -529,6 +529,10 @@ class OratorFileTranslation extends libFableServiceProviderBase
529
529
  * - MaxConcurrent {number} Max concurrent work items (default: 2)
530
530
  * - StagingPath {string} Local staging directory (default: cwd)
531
531
  * - Tags {object} Beacon tags (default: {})
532
+ * - HostID {string} Override for the host identity (default: os.hostname())
533
+ * - SharedMounts {Array<{MountID, Root}>} Shared filesystem mounts to advertise
534
+ * so the reachability matrix can detect zero-copy paths between this
535
+ * beacon and other beacons on the same host
532
536
  * @param {Function} fCallback Called with (pError, pBeaconInfo)
533
537
  */
534
538
  connectBeacon(pBeaconConfig, fCallback)
@@ -560,8 +564,10 @@ class OratorFileTranslation extends libFableServiceProviderBase
560
564
  // Already exists — fine
561
565
  }
562
566
 
563
- // Instantiate the beacon service with the provided config
564
- this._BeaconService = this.fable.instantiateServiceProviderWithoutRegistration('UltravisorBeacon',
567
+ // Build the beacon service options. SharedMounts is forwarded as-is so
568
+ // the caller controls which mounts get advertised — and matches the
569
+ // MountID computation done by other beacons on the same host.
570
+ let tmpBeaconOptions =
565
571
  {
566
572
  ServerURL: pBeaconConfig.ServerURL,
567
573
  Name: pBeaconConfig.Name || 'orator-conversion',
@@ -570,7 +576,18 @@ class OratorFileTranslation extends libFableServiceProviderBase
570
576
  StagingPath: tmpStagingPath,
571
577
  Tags: pBeaconConfig.Tags || {},
572
578
  BindAddresses: pBeaconConfig.BindAddresses || []
573
- });
579
+ };
580
+ if (pBeaconConfig.HostID)
581
+ {
582
+ tmpBeaconOptions.HostID = pBeaconConfig.HostID;
583
+ }
584
+ if (Array.isArray(pBeaconConfig.SharedMounts) && pBeaconConfig.SharedMounts.length > 0)
585
+ {
586
+ tmpBeaconOptions.SharedMounts = pBeaconConfig.SharedMounts;
587
+ }
588
+
589
+ // Instantiate the beacon service with the provided config
590
+ this._BeaconService = this.fable.instantiateServiceProviderWithoutRegistration('UltravisorBeacon', tmpBeaconOptions);
574
591
 
575
592
  // Create the MediaConversion capability provider and register it
576
593
  let tmpProvider = new libOratorConversionBeaconProvider(