Refresh agent assets on dev startup and remove debug files (Refs #78)

This commit is contained in:
2026-10-08 17:39:32 -04:00
parent c10f602e8e
commit e9be3f7177
5 changed files with 8 additions and 52 deletions
+1 -1
View File
@@ -62,7 +62,6 @@ Python 3 standard library. For local development, install Node.js 22 and Python
```sh ```sh
npm ci npm ci
npm run agent:package
export EC_SETUP_TOKEN=$(openssl rand -hex 32) export EC_SETUP_TOKEN=$(openssl rand -hex 32)
export BETA_ARCHIVE_DIR=./data/beta-archive export BETA_ARCHIVE_DIR=./data/beta-archive
EC_AUTH_ALLOW_HTTP=true npm run dev EC_AUTH_ALLOW_HTTP=true npm run dev
@@ -70,6 +69,7 @@ EC_AUTH_ALLOW_HTTP=true npm run dev
Open `http://localhost:3000` and use the setup token from your shell. The local Open `http://localhost:3000` and use the setup token from your shell. The local
database defaults to `./data/cherry.db`; keep it separate from production data. database defaults to `./data/cherry.db`; keep it separate from production data.
`npm run dev` packages the downloadable agent before starting the server.
```sh ```sh
npm run check npm run check
+6 -5
View File
@@ -14,7 +14,6 @@ Use Node.js 22 (the container's version), npm and Python 3.
```sh ```sh
npm ci npm ci
npm run agent:package
export EC_SETUP_TOKEN="$(openssl rand -hex 32)" export EC_SETUP_TOKEN="$(openssl rand -hex 32)"
export BETA_ARCHIVE_DIR=./data/beta-archive export BETA_ARCHIVE_DIR=./data/beta-archive
EC_AUTH_ALLOW_HTTP=true npm run dev EC_AUTH_ALLOW_HTTP=true npm run dev
@@ -83,10 +82,12 @@ npm run test:agent
npm run build npm run build
``` ```
Builds regenerate the downloadable agent, standalone updater and checksum `npm run dev` and `npm run build` regenerate the downloadable agent, installer,
manifest. They also bundle report workers under `build/reports` and launch standalone updater and checksum manifest. Builds also bundle report workers
preparation under `build/launch`. Development and test commands compile those under `build/reports` and launch preparation under `build/launch`. Development
workers automatically. Restart `npm run dev` after changing worker code. and test commands compile those workers automatically. Restart `npm run dev`
after changing agent or worker code, or run `npm run agent:package` to refresh
only the downloadable agent assets while the development server is running.
Automated tests simulate Docker and game hosts. Real Debian installation and Automated tests simulate Docker and game hosts. Real Debian installation and
T5/T6 server validation use the [host acceptance checklist](../guides/native-hosts.md#development-and-validation). T5/T6 server validation use the [host acceptance checklist](../guides/native-hosts.md#development-and-validation).
+1 -1
View File
@@ -19,7 +19,7 @@
"test:agent": "python3 -m unittest discover -s agent/tests -v", "test:agent": "python3 -m unittest discover -s agent/tests -v",
"build:reports": "vite build --config vite.reports.config.ts", "build:reports": "vite build --config vite.reports.config.ts",
"build:launch": "vite build --config vite.launch.config.ts", "build:launch": "vite build --config vite.launch.config.ts",
"predev": "npm run build:reports && npm run build:launch", "predev": "npm run agent:package && npm run build:reports && npm run build:launch",
"pretest": "npm run build:reports && npm run build:launch", "pretest": "npm run build:reports && npm run build:launch",
"pretest:watch": "npm run build:reports && npm run build:launch", "pretest:watch": "npm run build:reports && npm run build:launch",
"check:styles": "node scripts/check-ui-styles.mjs" "check:styles": "node scripts/check-ui-styles.mjs"
-16
View File
@@ -1,16 +0,0 @@
//////////////////////////////////////////////////
// GENERAL CONFIGURATION //
//////////////////////////////////////////////////
set g_inactivity "190" // Enable or Disable auto kick feature for idle/AFK players.
set sv_disableClientConsole "0" // Enable or Disable players ability to access server commands
set sv_floodProtect "1" // Chat Spam Protection.
set sv_kickBanTime "300" // Kick Ban Duration.
set sv_voice "1" // Allow Voice Chat?
set sv_voicequality "3" // Voice Quality.
set sp_minplayers "1" // Minimum amount of players.
set scr_allowFileIo "1" // Allow GSC scripts to interact with files?
set scr_kill_infinite_loops "1" // Kill misbehaving threads?
set sv_wwwBaseURL "" // Fast DL URL
set sv_maprotation "map zombie_theater"
-29
View File
@@ -1,29 +0,0 @@
Note: Unnecessary use of -X or --request, POST is already inferred.
* Host localhost:3000 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
␍ 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying [::1]:3000...
* Connected to localhost (::1) port 3000
* using HTTP/1.x
> POST /api/configs HTTP/1.1␍
> Host: localhost:3000␍
> User-Agent: curl/8.15.0␍
> Accept: */*␍
> Content-Length: 1832␍
> Content-Type: multipart/form-data; boundary=------------------------barYWMs19HWi81kFXmt3OX␍
> ␍
} [1832 bytes data]
* upload completely sent off: 1832 bytes
< HTTP/1.1 200 OK␍
< Access-Control-Allow-Origin: *␍
< content-length: 232␍
< content-type: application/json␍
< Date: Sat, 12 Sep 2026 23:27:36 GMT␍
< Connection: keep-alive␍
< Keep-Alive: timeout=5␍
< ␍
{ [232 bytes data]
␍100 2064 100 232 100 1832 49225 379k --:--:-- --:--:-- --:--:-- 503k{"ok":true,"script":{"id":2,"name":"T5 Zombies Baseline","target_rel_path":"dedicated_sp.cfg","scope_type":"game","scope_value":"t5","current_version_id":null,"kind":"baseline","created_at":"2026-09-12T23:27:36.519Z"},"versionId":2}
* Connection #0 to host localhost left intact