@letitbexai_root/lexxit-automation-framework 1.0.1 → 1.0.3

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,25 +1,20 @@
1
1
  {
2
2
  "name": "@letitbexai_root/lexxit-automation-framework",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Playwright test execution framework with Express API for test execution and reporting.",
5
-
6
5
  "publishConfig": {
7
6
  "access": "public"
8
7
  },
9
-
10
8
  "main": "dist/api/server.js",
11
-
12
9
  "bin": {
13
- "lexxit-automation-framework": "./bin/lexxit-automation-framework.js"
10
+ "lexxit-automation-framework": "bin/lexxit-automation-framework.js"
14
11
  },
15
-
16
12
  "files": [
17
13
  "dist",
18
14
  "bin",
19
- "scripts",
15
+ "scripts",
20
16
  "public"
21
17
  ],
22
-
23
18
  "scripts": {
24
19
  "build": "tsc",
25
20
  "start": "node dist/api/server.js",
@@ -29,14 +24,12 @@
29
24
  "postinstall": "node scripts/postinstall.js",
30
25
  "prepublishOnly": "npm run build"
31
26
  },
32
-
33
27
  "dependencies": {
34
28
  "@playwright/test": "^1.44.0",
35
29
  "cors": "^2.8.6",
36
30
  "express": "^4.19.2",
37
31
  "playwright": "^1.44.0"
38
32
  },
39
-
40
33
  "devDependencies": {
41
34
  "@types/cors": "^2.8.19",
42
35
  "@types/express": "^4.17.21",
@@ -45,8 +38,7 @@
45
38
  "ts-node": "^10.9.2",
46
39
  "typescript": "^5.4.5"
47
40
  },
48
-
49
41
  "engines": {
50
42
  "node": ">=20.19.0"
51
43
  }
52
- }
44
+ }
@@ -57,7 +57,7 @@ param(
57
57
  [string] $RunnerUsername = "lexxit-runner",
58
58
  [string] $RunnerPassword = "", # generated below if blank
59
59
  [string] $Resolution = "1920x1080",
60
- [string] $AgentPackage = "lexxit-automation-framework",
60
+ [string] $AgentPackage = "@letitbexai_root/lexxit-automation-framework",
61
61
  # "latest" is a placeholder, not a recommendation - pin a real version
62
62
  # once one has been published including healthProbes.ts's
63
63
  # os/browsers/vnc_ready/session_state fields (the plan's section 1.6
@@ -272,6 +272,19 @@ if (-not $node) {
272
272
  [System.Environment]::GetEnvironmentVariable("Path", "User")
273
273
  }
274
274
 
275
+ # Playwright's default browser cache is per-Windows-user (%LOCALAPPDATA%\
276
+ # ms-playwright), but whoever runs THIS install (an Administrator, or SYSTEM
277
+ # over SSM) is never the same Windows account that later runs the agent
278
+ # (lexxit-runner, via the Scheduled Task below) - so a browser downloaded
279
+ # under the installer's own profile is invisible to the running agent,
280
+ # which reports it as missing (/api/health's browsers.chromium: false) even
281
+ # though it is genuinely installed, just under the wrong profile. Pointing
282
+ # both the install-time download and the launcher's runtime env (below) at
283
+ # the same fixed, non-per-user path makes this independent of who installs.
284
+ # Confirmed the hard way on a real Windows EC2 AMI.
285
+ $browsersPath = Join-Path $AgentInstallDir ".playwright-browsers"
286
+ $env:PLAYWRIGHT_BROWSERS_PATH = $browsersPath
287
+
275
288
  Write-Host "[lexxit] Installing $AgentPackage@$AgentVersion into $AgentInstallDir..."
276
289
  if (-not (Test-Path $AgentInstallDir)) { New-Item -ItemType Directory -Path $AgentInstallDir -Force | Out-Null }
277
290
  Push-Location $AgentInstallDir
@@ -299,6 +312,7 @@ $launcherContent = @"
299
312
  `$env:PORT = '$AgentPort'
300
313
  `$env:VNC_READY_MARKER = '$vncReadyMarker'
301
314
  `$env:SESSION_PROBE_SCRIPT = '$probeScript'
315
+ `$env:PLAYWRIGHT_BROWSERS_PATH = '$browsersPath'
302
316
  New-Item -ItemType File -Path `$env:VNC_READY_MARKER -Force | Out-Null
303
317
  node "$agentEntry"
304
318
  "@