@thoughts-on-things/beacon-protocol 0.0.0-stage → 0.0.0
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/LICENSE +201 -0
- package/README.md +27 -2
- package/dist/beacon-management.d.ts +203 -0
- package/dist/beacon-management.d.ts.map +1 -0
- package/dist/beacon-management.js +94 -0
- package/dist/beacon-management.js.map +1 -0
- package/dist/directory.d.ts +100 -0
- package/dist/directory.d.ts.map +1 -0
- package/dist/directory.js +12 -0
- package/dist/directory.js.map +1 -0
- package/dist/fixtures.d.ts +141 -0
- package/dist/fixtures.d.ts.map +1 -0
- package/dist/fixtures.js +141 -0
- package/dist/fixtures.js.map +1 -0
- package/dist/index.d.ts +430 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +455 -0
- package/dist/index.js.map +1 -0
- package/dist/mod-relay.d.ts +26 -0
- package/dist/mod-relay.d.ts.map +1 -0
- package/dist/mod-relay.js +79 -0
- package/dist/mod-relay.js.map +1 -0
- package/dist/play.d.ts +57 -0
- package/dist/play.d.ts.map +1 -0
- package/dist/play.js +122 -0
- package/dist/play.js.map +1 -0
- package/dist/publish.d.ts +117 -0
- package/dist/publish.d.ts.map +1 -0
- package/dist/publish.js +133 -0
- package/dist/publish.js.map +1 -0
- package/package.json +66 -3
- package/src/beacon-management.ts +210 -0
- package/src/directory.ts +115 -0
- package/src/fixtures.ts +169 -0
- package/src/index.ts +538 -0
- package/src/mod-relay.ts +125 -0
- package/src/play.ts +152 -0
- package/src/publish.ts +237 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directory.js","sourceRoot":"","sources":["../src/directory.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,EAAE;AACF,sEAAsE;AACtE,wEAAwE;AACxE,yEAAyE;AACzE,6EAA6E;AAC7E,6EAA6E;AAC7E,EAAE;AACF,yEAAyE;AACzE,oEAAoE"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { type Heartbeat } from "./index.js";
|
|
2
|
+
/** Required fields only, no `profile`: the floor of a valid heartbeat. */
|
|
3
|
+
export declare const minimalHeartbeat: Heartbeat;
|
|
4
|
+
/** Every field populated, including the opt-in roster + activity. */
|
|
5
|
+
export declare const fullHeartbeat: Heartbeat;
|
|
6
|
+
/**
|
|
7
|
+
* A rich manifest + status but no `profile` block: a beacon that lists in the
|
|
8
|
+
* directory without opting into the consent-gated player data.
|
|
9
|
+
*/
|
|
10
|
+
export declare const profileLessHeartbeat: Heartbeat;
|
|
11
|
+
/** Every valid fixture, keyed by name. */
|
|
12
|
+
export declare const validHeartbeats: {
|
|
13
|
+
readonly minimal: {
|
|
14
|
+
schemaVersion: number;
|
|
15
|
+
beaconId: string;
|
|
16
|
+
manifest: {
|
|
17
|
+
mcVersion: string;
|
|
18
|
+
loader: "vanilla" | "paper" | "purpur" | "folia" | "fabric" | "quilt" | "forge" | "neoforge";
|
|
19
|
+
mods: string[];
|
|
20
|
+
renderDistance?: number | undefined;
|
|
21
|
+
worldAgeDays?: number | undefined;
|
|
22
|
+
worldSizeMib?: number | undefined;
|
|
23
|
+
vantage?: {
|
|
24
|
+
protocolVersion: 1;
|
|
25
|
+
mode: "live";
|
|
26
|
+
dimensions?: number | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
};
|
|
29
|
+
status: {
|
|
30
|
+
online: boolean;
|
|
31
|
+
playersOnline: number;
|
|
32
|
+
playersMax: number;
|
|
33
|
+
sampledAt: string;
|
|
34
|
+
tps?: number | undefined;
|
|
35
|
+
uptimeSeconds?: number | undefined;
|
|
36
|
+
uptimePct?: number | undefined;
|
|
37
|
+
playersPeak7d?: number[] | undefined;
|
|
38
|
+
};
|
|
39
|
+
profile?: {
|
|
40
|
+
roster?: {
|
|
41
|
+
name: string;
|
|
42
|
+
role: "host" | "admin" | "mod" | "builder" | "member";
|
|
43
|
+
online: boolean;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
activity?: {
|
|
46
|
+
kind: "join" | "leave" | "death" | "advancement" | "build" | "broadcast";
|
|
47
|
+
detail: string;
|
|
48
|
+
at: string;
|
|
49
|
+
actor?: string | undefined;
|
|
50
|
+
}[] | undefined;
|
|
51
|
+
} | undefined;
|
|
52
|
+
};
|
|
53
|
+
readonly full: {
|
|
54
|
+
schemaVersion: number;
|
|
55
|
+
beaconId: string;
|
|
56
|
+
manifest: {
|
|
57
|
+
mcVersion: string;
|
|
58
|
+
loader: "vanilla" | "paper" | "purpur" | "folia" | "fabric" | "quilt" | "forge" | "neoforge";
|
|
59
|
+
mods: string[];
|
|
60
|
+
renderDistance?: number | undefined;
|
|
61
|
+
worldAgeDays?: number | undefined;
|
|
62
|
+
worldSizeMib?: number | undefined;
|
|
63
|
+
vantage?: {
|
|
64
|
+
protocolVersion: 1;
|
|
65
|
+
mode: "live";
|
|
66
|
+
dimensions?: number | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
};
|
|
69
|
+
status: {
|
|
70
|
+
online: boolean;
|
|
71
|
+
playersOnline: number;
|
|
72
|
+
playersMax: number;
|
|
73
|
+
sampledAt: string;
|
|
74
|
+
tps?: number | undefined;
|
|
75
|
+
uptimeSeconds?: number | undefined;
|
|
76
|
+
uptimePct?: number | undefined;
|
|
77
|
+
playersPeak7d?: number[] | undefined;
|
|
78
|
+
};
|
|
79
|
+
profile?: {
|
|
80
|
+
roster?: {
|
|
81
|
+
name: string;
|
|
82
|
+
role: "host" | "admin" | "mod" | "builder" | "member";
|
|
83
|
+
online: boolean;
|
|
84
|
+
}[] | undefined;
|
|
85
|
+
activity?: {
|
|
86
|
+
kind: "join" | "leave" | "death" | "advancement" | "build" | "broadcast";
|
|
87
|
+
detail: string;
|
|
88
|
+
at: string;
|
|
89
|
+
actor?: string | undefined;
|
|
90
|
+
}[] | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
};
|
|
93
|
+
readonly profileLess: {
|
|
94
|
+
schemaVersion: number;
|
|
95
|
+
beaconId: string;
|
|
96
|
+
manifest: {
|
|
97
|
+
mcVersion: string;
|
|
98
|
+
loader: "vanilla" | "paper" | "purpur" | "folia" | "fabric" | "quilt" | "forge" | "neoforge";
|
|
99
|
+
mods: string[];
|
|
100
|
+
renderDistance?: number | undefined;
|
|
101
|
+
worldAgeDays?: number | undefined;
|
|
102
|
+
worldSizeMib?: number | undefined;
|
|
103
|
+
vantage?: {
|
|
104
|
+
protocolVersion: 1;
|
|
105
|
+
mode: "live";
|
|
106
|
+
dimensions?: number | undefined;
|
|
107
|
+
} | undefined;
|
|
108
|
+
};
|
|
109
|
+
status: {
|
|
110
|
+
online: boolean;
|
|
111
|
+
playersOnline: number;
|
|
112
|
+
playersMax: number;
|
|
113
|
+
sampledAt: string;
|
|
114
|
+
tps?: number | undefined;
|
|
115
|
+
uptimeSeconds?: number | undefined;
|
|
116
|
+
uptimePct?: number | undefined;
|
|
117
|
+
playersPeak7d?: number[] | undefined;
|
|
118
|
+
};
|
|
119
|
+
profile?: {
|
|
120
|
+
roster?: {
|
|
121
|
+
name: string;
|
|
122
|
+
role: "host" | "admin" | "mod" | "builder" | "member";
|
|
123
|
+
online: boolean;
|
|
124
|
+
}[] | undefined;
|
|
125
|
+
activity?: {
|
|
126
|
+
kind: "join" | "leave" | "death" | "advancement" | "build" | "broadcast";
|
|
127
|
+
detail: string;
|
|
128
|
+
at: string;
|
|
129
|
+
actor?: string | undefined;
|
|
130
|
+
}[] | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Deliberately malformed bodies, each violating exactly one rule. Both sides
|
|
136
|
+
* must reject every one. Typed `unknown`: they are not valid `Heartbeat`s.
|
|
137
|
+
*/
|
|
138
|
+
export declare const invalidBodies: Record<string, unknown>;
|
|
139
|
+
/** A mutable deep copy of a (possibly frozen) fixture. */
|
|
140
|
+
export declare function cloneFixture<T>(value: T): T;
|
|
141
|
+
//# sourceMappingURL=fixtures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../src/fixtures.ts"],"names":[],"mappings":"AAaA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,YAAY,CAAC;AAqEpB,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB,EAAE,SAE9B,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,aAAa,EAAE,SAE3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAElC,CAAC;AAEF,0CAA0C;AAC1C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIlB,CAAC;AAIX;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAejD,CAAC;AAIF,0DAA0D;AAC1D,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAE3C"}
|
package/dist/fixtures.js
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// Conformance fixtures: canonical heartbeats shared by both sides of the
|
|
2
|
+
// wire. The beacon-side publisher's projector test asserts it *produces* one
|
|
3
|
+
// of these; the Atlas-side ingest test asserts it *accepts* and stores one of
|
|
4
|
+
// these. Because both tests pin the same object, the publisher and the ingest
|
|
5
|
+
// can never silently drift apart on the wire shape.
|
|
6
|
+
//
|
|
7
|
+
// `validHeartbeats` are well-formed and must round-trip through
|
|
8
|
+
// `parseHeartbeat`. `invalidBodies` are deliberately malformed and must be
|
|
9
|
+
// rejected: each names the rule it violates.
|
|
10
|
+
//
|
|
11
|
+
// Fixtures are deep-frozen. A consumer that needs to mutate one (e.g. to
|
|
12
|
+
// build a near-miss variant) must `cloneFixture` it first.
|
|
13
|
+
import { buildHeartbeat, } from "./index.js";
|
|
14
|
+
const BEACON_ID = "atlas_3kf9Qz1aBcDeF2gh";
|
|
15
|
+
// ── Building blocks ────────────────────────────────────────────────────────
|
|
16
|
+
/** The leanest valid manifest: every required field, no optionals. */
|
|
17
|
+
const minimalManifest = {
|
|
18
|
+
mcVersion: "1.21.4",
|
|
19
|
+
loader: "vanilla",
|
|
20
|
+
mods: [],
|
|
21
|
+
};
|
|
22
|
+
/** A manifest exercising every optional field. */
|
|
23
|
+
const fullManifest = {
|
|
24
|
+
mcVersion: "1.21.4",
|
|
25
|
+
loader: "paper",
|
|
26
|
+
mods: ["Create", "Carpet", "FastAsyncWorldEdit"],
|
|
27
|
+
renderDistance: 12,
|
|
28
|
+
worldAgeDays: 420,
|
|
29
|
+
worldSizeMib: 8602,
|
|
30
|
+
vantage: { protocolVersion: 1, mode: "live" },
|
|
31
|
+
};
|
|
32
|
+
/** The leanest valid status. */
|
|
33
|
+
const minimalStatus = {
|
|
34
|
+
online: true,
|
|
35
|
+
playersOnline: 3,
|
|
36
|
+
playersMax: 20,
|
|
37
|
+
sampledAt: "2026-05-17T12:00:00.000Z",
|
|
38
|
+
};
|
|
39
|
+
/** A status exercising every optional perf field. */
|
|
40
|
+
const fullStatus = {
|
|
41
|
+
online: true,
|
|
42
|
+
playersOnline: 14,
|
|
43
|
+
playersMax: 24,
|
|
44
|
+
tps: 19.8,
|
|
45
|
+
uptimeSeconds: 86_400,
|
|
46
|
+
uptimePct: 99.7,
|
|
47
|
+
playersPeak7d: [9, 12, 18, 14, 22, 16, 14],
|
|
48
|
+
sampledAt: "2026-05-17T12:00:00.000Z",
|
|
49
|
+
};
|
|
50
|
+
/** A profile exercising both opt-in fields. */
|
|
51
|
+
const fullProfile = {
|
|
52
|
+
roster: [
|
|
53
|
+
{ name: "mira", role: "host", online: true },
|
|
54
|
+
{ name: "kal", role: "admin", online: true },
|
|
55
|
+
{ name: "juniper", role: "builder", online: false },
|
|
56
|
+
],
|
|
57
|
+
activity: [
|
|
58
|
+
{
|
|
59
|
+
kind: "advancement",
|
|
60
|
+
actor: "kal",
|
|
61
|
+
detail: "earned The End",
|
|
62
|
+
at: "2026-05-17T11:00:00.000Z",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
kind: "join",
|
|
66
|
+
actor: "mira",
|
|
67
|
+
detail: "joined the game",
|
|
68
|
+
at: "2026-05-17T11:42:00.000Z",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
};
|
|
72
|
+
// ── Valid fixtures ─────────────────────────────────────────────────────────
|
|
73
|
+
/** Required fields only, no `profile`: the floor of a valid heartbeat. */
|
|
74
|
+
export const minimalHeartbeat = deepFreeze(buildHeartbeat(BEACON_ID, minimalManifest, minimalStatus));
|
|
75
|
+
/** Every field populated, including the opt-in roster + activity. */
|
|
76
|
+
export const fullHeartbeat = deepFreeze(buildHeartbeat(BEACON_ID, fullManifest, fullStatus, fullProfile));
|
|
77
|
+
/**
|
|
78
|
+
* A rich manifest + status but no `profile` block: a beacon that lists in the
|
|
79
|
+
* directory without opting into the consent-gated player data.
|
|
80
|
+
*/
|
|
81
|
+
export const profileLessHeartbeat = deepFreeze(buildHeartbeat(BEACON_ID, fullManifest, fullStatus));
|
|
82
|
+
/** Every valid fixture, keyed by name. */
|
|
83
|
+
export const validHeartbeats = {
|
|
84
|
+
minimal: minimalHeartbeat,
|
|
85
|
+
full: fullHeartbeat,
|
|
86
|
+
profileLess: profileLessHeartbeat,
|
|
87
|
+
};
|
|
88
|
+
// ── Invalid fixtures ───────────────────────────────────────────────────────
|
|
89
|
+
/**
|
|
90
|
+
* Deliberately malformed bodies, each violating exactly one rule. Both sides
|
|
91
|
+
* must reject every one. Typed `unknown`: they are not valid `Heartbeat`s.
|
|
92
|
+
*/
|
|
93
|
+
export const invalidBodies = {
|
|
94
|
+
// `sampledAt` must be a strict ISO 8601 datetime.
|
|
95
|
+
badDatetime: withStatus({ sampledAt: "last tuesday" }),
|
|
96
|
+
// `loader` must be a known enum member.
|
|
97
|
+
unknownLoader: withManifest({ loader: "bukkit" }),
|
|
98
|
+
// `beaconId` must be opaque and url-safe.
|
|
99
|
+
unsafeBeaconId: { ...cloneFixture(minimalHeartbeat), beaconId: "../../etc" },
|
|
100
|
+
// The whole `manifest` block is required.
|
|
101
|
+
missingManifest: {
|
|
102
|
+
schemaVersion: 1,
|
|
103
|
+
beaconId: BEACON_ID,
|
|
104
|
+
status: cloneFixture(minimalStatus),
|
|
105
|
+
},
|
|
106
|
+
// `mcVersion` is required on the manifest.
|
|
107
|
+
missingMcVersion: withManifest({ mcVersion: undefined }),
|
|
108
|
+
};
|
|
109
|
+
// ── Helpers ────────────────────────────────────────────────────────────────
|
|
110
|
+
/** A mutable deep copy of a (possibly frozen) fixture. */
|
|
111
|
+
export function cloneFixture(value) {
|
|
112
|
+
return structuredClone(value);
|
|
113
|
+
}
|
|
114
|
+
/** A minimal heartbeat with `manifest` fields overridden: for near-misses. */
|
|
115
|
+
function withManifest(patch) {
|
|
116
|
+
const body = cloneFixture(minimalHeartbeat);
|
|
117
|
+
const next = { ...body.manifest };
|
|
118
|
+
for (const [k, v] of Object.entries(patch)) {
|
|
119
|
+
if (v === undefined)
|
|
120
|
+
delete next[k];
|
|
121
|
+
else
|
|
122
|
+
next[k] = v;
|
|
123
|
+
}
|
|
124
|
+
body.manifest = next;
|
|
125
|
+
return body;
|
|
126
|
+
}
|
|
127
|
+
/** A minimal heartbeat with `status` fields overridden: for near-misses. */
|
|
128
|
+
function withStatus(patch) {
|
|
129
|
+
const body = cloneFixture(minimalHeartbeat);
|
|
130
|
+
body.status = { ...body.status, ...patch };
|
|
131
|
+
return body;
|
|
132
|
+
}
|
|
133
|
+
function deepFreeze(value) {
|
|
134
|
+
if (value && typeof value === "object") {
|
|
135
|
+
for (const v of Object.values(value))
|
|
136
|
+
deepFreeze(v);
|
|
137
|
+
Object.freeze(value);
|
|
138
|
+
}
|
|
139
|
+
return value;
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=fixtures.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