@spacemolt/lib 17.0.0 → 17.1.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.
@@ -7,9 +7,9 @@
7
7
  * cloaked-contact / signature hints are tracked alongside.
8
8
  *
9
9
  * Not a players-only feed: the baseline and every update also carry the
10
- * pirate, empire-NPC, wildlife, intact-prize and arena-NPC presence at the
11
- * watched POI, each with the same changed/departed delta shape as players —
12
- * all six of `get_nearby`'s classes. The player list matches `get_nearby`:
10
+ * pirate, empire-NPC, wildlife, intact-prize, arena-NPC and frontier Repeater
11
+ * presence at the watched POI, each with the same changed/departed delta shape
12
+ * as players — all seven of `get_nearby`'s classes. The player list matches `get_nearby`:
13
13
  * above 10 players, offline ones collapse into `offlineCollapsed`.
14
14
  *
15
15
  * Nothing here is system-wide except `shipCounts`: with a working ship
@@ -17,7 +17,7 @@
17
17
  * server sends the full map whenever any count changes, so it replaces the
18
18
  * previous map rather than merging.
19
19
  */
20
- import type { ArenaNpcInfo, CreatureInfo, EmpireNpcInfo, NotificationObservationUpdate, PirateInfo, PrizeInfo, SubscribeObservationResponse } from '../generated/openapi/types.gen.js';
20
+ import type { ArenaNpcInfo, CreatureInfo, EmpireNpcInfo, NotificationObservationUpdate, PirateInfo, PrizeInfo, RepeaterInfo, SubscribeObservationResponse } from '../generated/openapi/types.gen.js';
21
21
  export type ObservedPlayer = NonNullable<NotificationObservationUpdate['nearby_changed']>[number];
22
22
  export type CloakedContact = NonNullable<NotificationObservationUpdate['cloaked_resolved']>[number];
23
23
  export interface ObservationView {
@@ -37,6 +37,8 @@ export interface ObservationView {
37
37
  prizes: Map<string, PrizeInfo>;
38
38
  /** Arena challenge enemies at the watched POI, keyed by npc_id. */
39
39
  arenaNpcs: Map<string, ArenaNpcInfo>;
40
+ /** Frontier Repeaters at the watched POI, keyed by repeater_id. */
41
+ repeaters: Map<string, RepeaterInfo>;
40
42
  /** Offline players at the watched POI not listed in `nearby` (0 when all are listed). */
41
43
  offlineCollapsed: number;
42
44
  /** Ship scanner counts per charted POI in the system, keyed by POI ID. Empty without a working ship scanner. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spacemolt/lib",
3
- "version": "17.0.0",
3
+ "version": "17.1.0",
4
4
  "description": "The definitive TypeScript library for SpaceMolt. WebSocket-v2-first, multi-account, with local state caches. Internals are regenerated from the server's OpenAPI spec.",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",