diff --git a/README.md b/README.md index 2249345..87ba37f 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,6 @@ Python 3 standard library. For local development, install Node.js 22 and Python ```sh npm ci -npm run agent:package export EC_SETUP_TOKEN=$(openssl rand -hex 32) export BETA_ARCHIVE_DIR=./data/beta-archive 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 database defaults to `./data/cherry.db`; keep it separate from production data. +`npm run dev` packages the downloadable agent before starting the server. ```sh npm run check diff --git a/docs/development/README.md b/docs/development/README.md index 8413aed..a8df688 100644 --- a/docs/development/README.md +++ b/docs/development/README.md @@ -14,7 +14,6 @@ Use Node.js 22 (the container's version), npm and Python 3. ```sh npm ci -npm run agent:package export EC_SETUP_TOKEN="$(openssl rand -hex 32)" export BETA_ARCHIVE_DIR=./data/beta-archive EC_AUTH_ALLOW_HTTP=true npm run dev @@ -83,10 +82,12 @@ npm run test:agent npm run build ``` -Builds regenerate the downloadable agent, standalone updater and checksum -manifest. They also bundle report workers under `build/reports` and launch -preparation under `build/launch`. Development and test commands compile those -workers automatically. Restart `npm run dev` after changing worker code. +`npm run dev` and `npm run build` regenerate the downloadable agent, installer, +standalone updater and checksum manifest. Builds also bundle report workers +under `build/reports` and launch preparation under `build/launch`. Development +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 T5/T6 server validation use the [host acceptance checklist](../guides/native-hosts.md#development-and-validation). diff --git a/package.json b/package.json index 5212efd..d334506 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "test:agent": "python3 -m unittest discover -s agent/tests -v", "build:reports": "vite build --config vite.reports.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:watch": "npm run build:reports && npm run build:launch", "check:styles": "node scripts/check-ui-styles.mjs" diff --git a/tmp-dedicated.cfg b/tmp-dedicated.cfg deleted file mode 100644 index 2910fe5..0000000 --- a/tmp-dedicated.cfg +++ /dev/null @@ -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" diff --git a/tmp-resp.txt b/tmp-resp.txt deleted file mode 100644 index 22067bd..0000000 --- a/tmp-resp.txt +++ /dev/null @@ -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