lightman-agent 1.0.17 → 1.0.20

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.
Files changed (52) hide show
  1. package/agent.config.json +22 -23
  2. package/agent.config.template.json +30 -31
  3. package/bin/cms-agent.js +291 -291
  4. package/package.json +1 -1
  5. package/public/assets/index-CcBNCz6h.css +1 -1
  6. package/public/assets/index-D9QHMG8k.js +1 -1
  7. package/public/assets/index-H-8HDl46.js +1 -1
  8. package/public/assets/index-YodeiCia.css +1 -1
  9. package/public/assets/index-legacy-DWtNM8y7.js +41 -41
  10. package/public/assets/polyfills-legacy-DyVYWHbW.js +4 -4
  11. package/scripts/guardian.ps1 +50 -124
  12. package/scripts/install-windows.ps1 +27 -90
  13. package/scripts/lightman-agent.logrotate +12 -12
  14. package/scripts/lightman-agent.service +38 -38
  15. package/scripts/reinstall-windows.ps1 +26 -26
  16. package/scripts/restore-desktop.ps1 +32 -32
  17. package/scripts/setup.ps1 +17 -22
  18. package/scripts/sync-display.mjs +20 -20
  19. package/scripts/uninstall-windows.ps1 +54 -54
  20. package/src/commands/display.ts +177 -177
  21. package/src/commands/kiosk.ts +113 -113
  22. package/src/commands/maintenance.ts +106 -106
  23. package/src/commands/network.ts +129 -129
  24. package/src/commands/power.ts +163 -163
  25. package/src/commands/rpi.ts +45 -45
  26. package/src/commands/screenshot.ts +166 -166
  27. package/src/commands/serial.ts +17 -17
  28. package/src/commands/update.ts +124 -124
  29. package/src/index.ts +173 -90
  30. package/src/lib/config.ts +2 -3
  31. package/src/lib/identity.ts +40 -40
  32. package/src/lib/logger.ts +137 -137
  33. package/src/lib/platform.ts +10 -10
  34. package/src/lib/rpi.ts +180 -180
  35. package/src/lib/screenMap.ts +135 -0
  36. package/src/lib/screens.ts +128 -128
  37. package/src/lib/types.ts +176 -177
  38. package/src/services/commands.ts +107 -107
  39. package/src/services/health.ts +161 -161
  40. package/src/services/localEvents.ts +60 -60
  41. package/src/services/logForwarder.ts +72 -72
  42. package/src/services/multiScreenKiosk.ts +116 -83
  43. package/src/services/oscBridge.ts +186 -186
  44. package/src/services/powerScheduler.ts +260 -260
  45. package/src/services/provisioning.ts +120 -122
  46. package/src/services/serialBridge.ts +230 -230
  47. package/src/services/serviceLauncher.ts +183 -183
  48. package/src/services/staticServer.ts +226 -226
  49. package/src/services/updater.ts +249 -249
  50. package/src/services/watchdog.ts +310 -310
  51. package/src/services/websocket.ts +152 -152
  52. package/tsconfig.json +28 -28
package/agent.config.json CHANGED
@@ -1,23 +1,22 @@
1
- {
2
- "serverUrl": "http://192.168.10.100:3401",
3
- "deviceSlug": "a-av03",
4
- "healthIntervalMs": 60000,
5
- "logLevel": "debug",
6
- "logFile": "agent.log",
7
- "identityFile": ".lightman-identity.json",
8
- "pairingTimeoutSeconds": 900,
9
- "kiosk": {
10
- "browserPath": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
11
- "defaultUrl": "http://localhost:3403/display/a-av03",
12
- "extraArgs": ["--start-fullscreen", "--disable-translate", "--disable-extensions", "--user-data-dir=C:\\ProgramData\\Lightman\\chrome-kiosk"],
13
- "pollIntervalMs": 10000,
14
- "maxCrashesInWindow": 10,
15
- "crashWindowMs": 300000
16
- },
17
- "powerSchedule": {
18
- "shutdownCron": "0 19 * * *",
19
- "startupCron": "0 8 * * *",
20
- "timezone": "Asia/Kolkata",
21
- "shutdownWarningSeconds": 60
22
- }
23
- }
1
+ {
2
+ "serverUrl": "http://192.168.10.100:3401",
3
+ "deviceSlug": "a-av03",
4
+ "healthIntervalMs": 60000,
5
+ "logLevel": "debug",
6
+ "logFile": "agent.log",
7
+ "identityFile": ".lightman-identity.json",
8
+ "kiosk": {
9
+ "browserPath": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
10
+ "defaultUrl": "http://localhost:3403/display/a-av03",
11
+ "extraArgs": ["--start-fullscreen", "--disable-translate", "--disable-extensions", "--user-data-dir=C:\\ProgramData\\Lightman\\chrome-kiosk"],
12
+ "pollIntervalMs": 10000,
13
+ "maxCrashesInWindow": 10,
14
+ "crashWindowMs": 300000
15
+ },
16
+ "powerSchedule": {
17
+ "shutdownCron": "0 19 * * *",
18
+ "startupCron": "0 8 * * *",
19
+ "timezone": "Asia/Kolkata",
20
+ "shutdownWarningSeconds": 60
21
+ }
22
+ }
@@ -1,31 +1,30 @@
1
- {
2
- "serverUrl": "__SERVER_URL__",
3
- "deviceSlug": "__DEVICE_SLUG__",
4
- "healthIntervalMs": 60000,
5
- "logLevel": "info",
6
- "logFile": "agent.log",
7
- "identityFile": ".lightman-identity.json",
8
- "pairingTimeoutSeconds": __PAIRING_TIMEOUT_SECONDS__,
9
- "localServices": false,
10
- "kiosk": {
11
- "browserPath": "__BROWSER_PATH__",
12
- "defaultUrl": "__KIOSK_URL__",
13
- "extraArgs": [
14
- "--start-fullscreen",
15
- "--disable-translate",
16
- "--disable-extensions",
17
- "--autoplay-policy=no-user-gesture-required",
18
- "--user-data-dir=__CHROME_DATA_DIR__"
19
- ],
20
- "pollIntervalMs": 10000,
21
- "maxCrashesInWindow": 10,
22
- "crashWindowMs": 300000,
23
- "shellMode": false
24
- },
25
- "powerSchedule": {
26
- "shutdownCron": "0 19 * * *",
27
- "startupCron": "0 8 * * *",
28
- "timezone": "Asia/Kolkata",
29
- "shutdownWarningSeconds": 60
30
- }
31
- }
1
+ {
2
+ "serverUrl": "__SERVER_URL__",
3
+ "deviceSlug": "__DEVICE_SLUG__",
4
+ "healthIntervalMs": 60000,
5
+ "logLevel": "info",
6
+ "logFile": "agent.log",
7
+ "identityFile": ".lightman-identity.json",
8
+ "localServices": false,
9
+ "kiosk": {
10
+ "browserPath": "__BROWSER_PATH__",
11
+ "defaultUrl": "__KIOSK_URL__",
12
+ "extraArgs": [
13
+ "--start-fullscreen",
14
+ "--disable-translate",
15
+ "--disable-extensions",
16
+ "--autoplay-policy=no-user-gesture-required",
17
+ "--user-data-dir=__CHROME_DATA_DIR__"
18
+ ],
19
+ "pollIntervalMs": 10000,
20
+ "maxCrashesInWindow": 10,
21
+ "crashWindowMs": 300000,
22
+ "shellMode": false
23
+ },
24
+ "powerSchedule": {
25
+ "shutdownCron": "0 19 * * *",
26
+ "startupCron": "0 8 * * *",
27
+ "timezone": "Asia/Kolkata",
28
+ "shutdownWarningSeconds": 60
29
+ }
30
+ }