lightman-agent 1.0.27 → 1.0.28

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": "lightman-agent",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "LIGHTMAN Agent - System-level daemon for museum display machines",
5
5
  "private": false,
6
6
  "type": "module",
@@ -100,23 +100,20 @@ if "%BROWSER%"=="" (
100
100
  echo [%date% %time%] Browser: %BROWSER% >> "%LOG_FILE%"
101
101
  echo [%date% %time%] URL: %URL% >> "%LOG_FILE%"
102
102
 
103
- REM ----------------------------------------------------------------
104
- REM Wait for agent service (port 3403)
105
- REM ----------------------------------------------------------------
106
- echo [%date% %time%] Waiting for port 3403... >> "%LOG_FILE%"
107
- set WAIT_COUNT=0
108
- set MAX_WAIT=60
109
-
110
- :wait_for_agent
111
- netstat -an | findstr ":3403.*LISTENING" >nul 2>&1
112
- if %errorlevel%==0 goto agent_ready
113
- set /a WAIT_COUNT+=1
114
- if %WAIT_COUNT% geq %MAX_WAIT% (
115
- echo [%date% %time%] Port 3403 not ready after %MAX_WAIT%s, launching anyway >> "%LOG_FILE%"
116
- goto agent_ready
117
- )
118
- timeout /t 1 /nobreak >nul
119
- goto wait_for_agent
103
+ REM ----------------------------------------------------------------
104
+ REM Wait for agent service (port 3403)
105
+ REM ----------------------------------------------------------------
106
+ echo [%date% %time%] Waiting for port 3403... >> "%LOG_FILE%"
107
+ set WAIT_COUNT=0
108
+
109
+ :wait_for_agent
110
+ netstat -an | findstr ":3403.*LISTENING" >nul 2>&1
111
+ if %errorlevel%==0 goto agent_ready
112
+ set /a WAIT_COUNT+=1
113
+ set /a WAIT_MOD=WAIT_COUNT %% 30
114
+ if %WAIT_MOD%==0 echo [%date% %time%] Still waiting for port 3403... (%WAIT_COUNT%s) >> "%LOG_FILE%"
115
+ timeout /t 1 /nobreak >nul
116
+ goto wait_for_agent
120
117
 
121
118
  :agent_ready
122
119
  echo [%date% %time%] Agent ready >> "%LOG_FILE%"