@agent-link/agent 0.1.329 → 0.1.331

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.
@@ -46,6 +46,7 @@ import { initEntraTimers, startEntraRetryTimer, stopEntraRetryTimer, scheduleEnt
46
46
  import { initScheduler, getRunningExecutions, } from './scheduler.js';
47
47
  import { handleWebUpgradeMessage } from './web-upgrade.js';
48
48
  import { refreshRuntimeLaunchSpecDeviceName } from './upgrade-launch-spec.js';
49
+ import { getAgentRuntimeInfo } from './runtime-info.js';
49
50
  let tunnelHandler = null;
50
51
  let terminalManager = null;
51
52
  const RECONNECT_BASE_DELAY = 1000;
@@ -718,6 +719,7 @@ export function getConnectionStatus() {
718
719
  }
719
720
  function buildWsUrl(config) {
720
721
  const base = config.server.replace(/\/$/, '');
722
+ const runtimeInfo = getAgentRuntimeInfo();
721
723
  const params = new URLSearchParams({
722
724
  type: 'agent',
723
725
  id: config.name,
@@ -728,6 +730,12 @@ function buildWsUrl(config) {
728
730
  deviceNameEditing: '1',
729
731
  version: pkg.version,
730
732
  qacRequestIds: '1',
733
+ nodeVersion: runtimeInfo.nodeVersion,
734
+ nodeMajor: String(runtimeInfo.nodeMajor),
735
+ nodeAbi: runtimeInfo.nodeAbi,
736
+ platform: runtimeInfo.platform,
737
+ arch: runtimeInfo.arch,
738
+ versionStoreAdopted: runtimeInfo.versionStoreAdopted ? '1' : '0',
731
739
  });
732
740
  // On reconnect, send previous sessionId so the URL stays valid
733
741
  if (state.sessionId) {