@hadoku/game-server 0.1.176 → 0.1.178
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* What is kept of `CARDTABLE_RECORDINGS_DIR` and for how long
|
|
3
|
-
* (`docs/planning/wave77-2026-10-27.md` §C): the public stream for
|
|
4
|
-
* action log for
|
|
3
|
+
* (`docs/planning/wave77-2026-10-27.md` §C): the public stream for a year, the
|
|
4
|
+
* action log for two, and the whole directory capped at 2 GB — the oldest
|
|
5
5
|
* PUBLIC streams go first under the cap, because they are the rebuildable
|
|
6
6
|
* half (`recording/rebuild.ts`, lane D) and the action logs are a few KB each
|
|
7
7
|
* either way. Age is the file's own mtime: both files are written exactly
|
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
* stat or unlink is logged and skipped, not a reason to stop sweeping the rest.
|
|
14
14
|
*/
|
|
15
15
|
import type { JsonLog } from '@wolffm/service-kernel/log';
|
|
16
|
+
/**
|
|
17
|
+
* A year, not wave 77's 7 days (the operator, 2026-11-30: stats should link every replay we keep and show
|
|
18
|
+
* your past games). A stream is ~60 KB, so a year of play is tens of MB, far under the cap. Rebuilding an
|
|
19
|
+
* expired stream instead works only on the Forge jar the game was played on, so a pin bump would lose it.
|
|
20
|
+
*/
|
|
16
21
|
export declare const PUBLIC_RETENTION_MS: number;
|
|
22
|
+
/** Twice the public stream's, so a stream that expires can still be rebuilt from its log. */
|
|
17
23
|
export declare const ACTIONS_RETENTION_MS: number;
|
|
18
24
|
/** See the module header: the oldest public streams are dropped first when the directory is over this. */
|
|
19
25
|
export declare const RECORDINGS_CAP_BYTES: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* What is kept of `CARDTABLE_RECORDINGS_DIR` and for how long
|
|
3
|
-
* (`docs/planning/wave77-2026-10-27.md` §C): the public stream for
|
|
4
|
-
* action log for
|
|
3
|
+
* (`docs/planning/wave77-2026-10-27.md` §C): the public stream for a year, the
|
|
4
|
+
* action log for two, and the whole directory capped at 2 GB — the oldest
|
|
5
5
|
* PUBLIC streams go first under the cap, because they are the rebuildable
|
|
6
6
|
* half (`recording/rebuild.ts`, lane D) and the action logs are a few KB each
|
|
7
7
|
* either way. Age is the file's own mtime: both files are written exactly
|
|
@@ -15,8 +15,14 @@
|
|
|
15
15
|
import { readdirSync, rmSync, statSync } from 'node:fs';
|
|
16
16
|
import { join } from 'node:path';
|
|
17
17
|
import { recordingChanged } from './changes.js';
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* A year, not wave 77's 7 days (the operator, 2026-11-30: stats should link every replay we keep and show
|
|
20
|
+
* your past games). A stream is ~60 KB, so a year of play is tens of MB, far under the cap. Rebuilding an
|
|
21
|
+
* expired stream instead works only on the Forge jar the game was played on, so a pin bump would lose it.
|
|
22
|
+
*/
|
|
23
|
+
export const PUBLIC_RETENTION_MS = 365 * 24 * 60 * 60 * 1000;
|
|
24
|
+
/** Twice the public stream's, so a stream that expires can still be rebuilt from its log. */
|
|
25
|
+
export const ACTIONS_RETENTION_MS = 2 * PUBLIC_RETENTION_MS;
|
|
20
26
|
/** See the module header: the oldest public streams are dropped first when the directory is over this. */
|
|
21
27
|
export const RECORDINGS_CAP_BYTES = 2 * 1024 * 1024 * 1024;
|
|
22
28
|
export const ACTIONS_SUFFIX = '.actions.jsonl.gz';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadoku/game-server",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "0.1.178",
|
|
4
|
+
"gitHead": "178f9274df3c7083ddec4b5ac1cf9fcb8b880360",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "The server parts any hosted game shares, above the kernel: the app config and edge auth, the room core (identity, seats, sessions, membership, the room list, the generic room routes), match hosting (the host contract, local and remote JVMs, placement, the start queue, recordings, the in-process and relay runtimes), streams, erase, telemetry and usage. Knows no game; Magic plugs in from apps/server. MIT; imports only node built-ins, express, socket.io, @wolffm/* and the platform packages.",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"play/remote/"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.
|
|
21
|
-
"@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.
|
|
22
|
-
"@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.
|
|
20
|
+
"@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.178",
|
|
21
|
+
"@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.178",
|
|
22
|
+
"@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.211",
|
|
23
23
|
"@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.2.2",
|
|
24
24
|
"@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.145",
|
|
25
25
|
"@wolffm/rooms-server": "npm:@hadoku/rooms-server@^0.45.145",
|