@agent-play/sdk 3.4.1 → 3.4.3

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/dist/browser.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { e as ANALYTICS_EVENT_NAMES, f as APU_TOKEN, A as AgentPlaySnapshot, g as AgentPlayWorldLayout, o as AnalyticsEvent, p as AnalyticsEventName, q as AnalyticsEventSchema, v as AnalyticsTraits, w as AnalyticsTraitsSchema, x as ApplyGameOutcomeInput, y as ApplyGameOutcomeInputSchema, D as CONTINUOUS_RENDER_OFFSET, E as CarWashCar, F as CarWashCarSchema, G as ComputeTalkAgentPowerUpsEarnedInput, H as DAILY_GAME_PU_CAP, I as DEFAULT_AGENT_SPAWN_MIN_DISTANCE, K as DEFAULT_PLAYER_WALLET_BALANCE_USD, N as GAME_CABINET_CATALOG, O as GameCabinetEntry, Q as GameEvent, S as GameEventSchema, T as GameId, U as GamePerTitleStats, V as GamePerTitleStatsSchema, X as GameStats, Y as GameStatsSchema, _ as MINIMUM_PLAY_WORLD_BOUNDS, $ as MINIMUM_STREET_LAYOUT_BOUNDS, a0 as OCCUPANCY_POINT_MULTIPLIER, a1 as OccupancyGridPoint, a2 as OccupantGroup, a5 as PLAYABLE_GAME_IDS, a6 as PLAYER_CHAIN_GENESIS_STABLE_KEY, a7 as PLAYER_CHAIN_HEADER_STABLE_KEY, ag as PlayerWallet, ah as PlayerWalletSchema, aj as PurchaseRecord, ak as PurchaseRecordSchema, ao as SPACE_STRUCTURE_ANCHOR_MIN_DISTANCE, ap as SPATIAL_ZONE_INDEX_AGENTS, aq as SPATIAL_ZONE_INDEX_SPACES, at as STREET_NAME_POOL, au as SaleState, av as SaleStateSchema, aw as ScannerBlockRecord, ax as ScannerBlockRecordSchema, ay as ScannerHead, az as ScannerHeadSchema, aA as ScannerMigrationState, aB as ScannerMigrationStateSchema, aE as ScannerNodeProfile, aF as ScannerNodeProfileSchema, aI as ScannerTxRecord, aJ as ScannerTxRecordSchema, aK as ScannerWalletSnapshot, aL as ScannerWalletSnapshotSchema, aM as ShopItem, aN as ShopItemSchema, aO as SpaceContentItem, aP as Street, aQ as StreetPoolEntry, aS as SupermarketItem, aT as SupermarketItemSchema, aU as TALK_AGENT_PU_BILLED_SECONDS_PER_UNIT, aV as TALK_AGENT_PU_MAX_PER_LEG, aW as TALK_PRICE_PER_60S_USD, aX as TALK_PRICE_PER_SECOND_USD, aY as TALK_TICK_SECONDS, aZ as WALLET_BUNDLE_OFFERS, a_ as WalletBundleId, a$ as WalletBundleOffer, b0 as WorldBounds, b2 as WorldLayout, b3 as WorldLayoutBoundsField, b5 as Zone, b7 as applyBoundsFieldUpdateToLayout, b8 as availableCellsForZone, b9 as boundingWorldRectForOccupancyPoints, ba as boundsContain, bb as buildAmenityPurchaseApuFields, bc as buildApuWalletTransaction, bd as buildRankedOccupancyPoints, be as buildRankedOccupancyPointsForSpatialZone, bf as buildRankedOccupancyPointsForZone, bg as buildRankedOccupancyPointsInRect, bh as buildWalletBundleApuFields, bi as cellsForZone, bj as centerOfZone, bk as clampWorldPosition, bm as computeRoundPuDelta, bn as computeTalkAgentPowerUpsEarned, bo as costForSeconds, bp as createEmptyGameStats, bq as createInitialAgentRewardWallet, br as createInitialPlayerWallet, bs as createVerticalStripSeedLayout, bt as desaturateColor, bu as enumerateIntegerCellsInRect, bv as expandBoundsToMinimumPlayArea, bw as featuredGameIdForUtcDate, bx as getGameCabinetByGameId, by as getGameCabinetById, bz as getStreetPoolEntryById, bA as getWalletBundleById, bB as isAgentSpawnOccupancyPointAvailable, bC as isAgentSpawnOccupancyPointAvailableInRect, bD as isAgentSpawnOccupancyPointAvailableInZone, bE as isGameId, bF as isItemAvailableForPurchase, bG as isSpaceAnchorOccupancyPointAvailable, bH as isSpaceAnchorOccupancyPointAvailableInRect, bI as isSpaceAnchorOccupancyPointAvailableInZone, bJ as listAllowedOccupancyPoints, bK as listOccupancyPointsForSpatialZone, bL as listOccupancyPointsForZone, bM as listOccupancyPointsInRect, bN as mergeSnapshotWithPlayerChainNode, bO as migrateWorldLayoutBounds, bP as nextStreetFromPool, bQ as occupancyKeyForPosition, bR as occupancyPointsGroupedBySpatialZone, bS as occupancyPointsGroupedByZones, bT as parsePlayerChainFanoutNotify, bU as parsePlayerChainFanoutNotifyFromSsePayload, bV as parsePlayerChainNodeRpcBody, bW as pickZoneForGroup, bX as pointCellInRect, bY as pointCellInSpatialZone, bZ as pointCellInZone, b_ as primaryZoneForGroup, b$ as sortNodeRefsForSerializedFetch, c0 as spatialZoneBounds, c1 as spatialZoneCenter, c2 as streetFromPoolEntry, c3 as utcDateKey, c4 as zonesForGroup } from './browser-DhKo5Hv7.js';
1
+ export { e as ANALYTICS_EVENT_NAMES, f as APU_TOKEN, A as AgentPlaySnapshot, g as AgentPlayWorldLayout, o as AnalyticsEvent, p as AnalyticsEventName, q as AnalyticsEventSchema, v as AnalyticsTraits, w as AnalyticsTraitsSchema, x as ApplyGameOutcomeInput, y as ApplyGameOutcomeInputSchema, E as CONTINUOUS_RENDER_OFFSET, F as CarWashCar, G as CarWashCarSchema, H as ComputeTalkAgentPowerUpsEarnedInput, I as DAILY_GAME_PU_CAP, K as DEFAULT_AGENT_SPAWN_MIN_DISTANCE, M as DEFAULT_LAYOUT_BOUNDS_WITH_PARKING, N as DEFAULT_PARKING_RATES_USD, O as DEFAULT_PLAYER_WALLET_BALANCE_USD, S as GAME_CABINET_CATALOG, T as GameCabinetEntry, U as GameEvent, V as GameEventSchema, X as GameId, Y as GamePerTitleStats, Z as GamePerTitleStatsSchema, _ as GameStats, $ as GameStatsSchema, a0 as HOUSE_BLUEPRINTS, a1 as HOUSE_CATALOG, a2 as HOUSE_WORLD_X, a3 as HouseBlueprint, a4 as HouseFixtureKind, a5 as HouseFixtureSlot, a6 as HouseId, a7 as HouseIdSchema, a8 as HouseSlot, a9 as HouseSlotSchema, aa as HouseStageBounds, ab as HouseStreetContent, ac as HouseStreetContentSchema, ae as MAX_SLOTS_WITH_FOREVER, af as MAX_TIMED_PARKING_SLOTS_PER_NODE, ag as MINIMUM_PLAY_WORLD_BOUNDS, ah as MINIMUM_STREET_LAYOUT_BOUNDS, ai as OCCUPANCY_POINT_MULTIPLIER, aj as OccupancyGridPoint, ak as OccupantGroup, an as PARKING_BAY_COUNT, ap as PARKING_DURATION_TIERS, aq as PARKING_HOUSE_COUNT, ar as PARKING_LAYERS_PER_BAY, as as PARKING_SPOT_COUNT, au as PLAYABLE_GAME_IDS, av as PLAYER_CHAIN_GENESIS_STABLE_KEY, aw as PLAYER_CHAIN_HEADER_STABLE_KEY, ax as ParkingDurationTier, ay as ParkingDurationTierSchema, az as ParkingOccupancyRef, aA as ParkingOccupant, aB as ParkingOwnershipError, aC as ParkingSpot, aD as ParkingSpotSchema, aE as ParkingStreetContent, aF as ParkingStreetContentSchema, aO as PlayerWallet, aP as PlayerWalletSchema, aR as PurchaseRecord, aS as PurchaseRecordSchema, aW as SPACE_STRUCTURE_ANCHOR_MIN_DISTANCE, aX as SPATIAL_ZONE_INDEX_AGENTS, aY as SPATIAL_ZONE_INDEX_SPACES, a$ as STREET_NAME_POOL, b0 as SaleState, b1 as SaleStateSchema, b2 as ScannerBlockRecord, b3 as ScannerBlockRecordSchema, b4 as ScannerHead, b5 as ScannerHeadSchema, b6 as ScannerMigrationState, b7 as ScannerMigrationStateSchema, ba as ScannerNodeProfile, bb as ScannerNodeProfileSchema, be as ScannerTxRecord, bf as ScannerTxRecordSchema, bg as ScannerWalletSnapshot, bh as ScannerWalletSnapshotSchema, bi as ShopItem, bj as ShopItemSchema, bk as SpaceContentItem, bl as Street, bm as StreetPoolEntry, bo as SupermarketItem, bp as SupermarketItemSchema, bq as TALK_AGENT_PU_BILLED_SECONDS_PER_UNIT, br as TALK_AGENT_PU_MAX_PER_LEG, bs as TALK_PRICE_PER_60S_USD, bt as TALK_PRICE_PER_SECOND_USD, bu as TALK_TICK_SECONDS, bv as WALLET_BUNDLE_OFFERS, bw as WalletBundleId, bx as WalletBundleOffer, by as WorldBounds, bA as WorldLayout, bB as WorldLayoutBoundsField, bD as Zone, bF as applyBoundsFieldUpdateToLayout, bG as availableCellsForZone, bH as boundingWorldRectForOccupancyPoints, bI as boundsContain, bJ as buildAmenityPurchaseApuFields, bK as buildApuWalletTransaction, bL as buildHouseOwnershipPanelLines, bM as buildRankedOccupancyPoints, bN as buildRankedOccupancyPointsForSpatialZone, bO as buildRankedOccupancyPointsForZone, bP as buildRankedOccupancyPointsInRect, bQ as buildWalletBundleApuFields, bR as canNodeAcquireParkingSpot, bS as cellsForZone, bT as centerOfZone, bU as clampHousePosition, bV as clampWorldPosition, bX as computeParkingExpiresAt, bY as computeRoundPuDelta, bZ as computeTalkAgentPowerUpsEarned, b_ as costForSeconds, b$ as createEmptyGameStats, c0 as createEmptyHouseStreetContent, c1 as createEmptyParkingStreetContent, c2 as createInitialAgentRewardWallet, c3 as createInitialPlayerWallet, c4 as createVerticalStripSeedLayout, c5 as createWorldLayoutWithParkingRow, c6 as desaturateColor, c7 as effectiveHourlyRateUsd, c8 as effectiveParkingStreet, c9 as enumerateIntegerCellsInRect, ca as expandBoundsToMinimumPlayArea, cb as featuredGameIdForUtcDate, cc as findHouseSlot, cd as findParkingSpot, ce as formatHouseOwnerDisplayName, cf as getGameCabinetByGameId, cg as getGameCabinetById, ch as getHouseBlueprint, ci as getStreetPoolEntryById, cj as getWalletBundleById, ck as housePurchaseDetail, cl as houseSpawnPosition, cm as isAgentSpawnOccupancyPointAvailable, cn as isAgentSpawnOccupancyPointAvailableInRect, co as isAgentSpawnOccupancyPointAvailableInZone, cp as isGameId, cq as isHouseOwned, cr as isItemAvailableForPurchase, cs as isParkingOccupantActive, ct as isSpaceAnchorOccupancyPointAvailable, cu as isSpaceAnchorOccupancyPointAvailableInRect, cv as isSpaceAnchorOccupancyPointAvailableInZone, cw as layoutHasParkingZone, cx as layoutHouseFixtures, cz as listActiveParkingOccupancies, cA as listAllowedOccupancyPoints, cB as listOccupancyPointsForSpatialZone, cC as listOccupancyPointsForZone, cD as listOccupancyPointsInRect, cE as mergeSnapshotWithPlayerChainNode, cG as migrateLayoutToParkingRow, cH as migrateWorldLayoutBounds, cI as nextStreetFromPool, cJ as occupancyKeyForPosition, cK as occupancyPointsGroupedBySpatialZone, cL as occupancyPointsGroupedByZones, cO as parsePlayerChainFanoutNotify, cP as parsePlayerChainFanoutNotifyFromSsePayload, cQ as parsePlayerChainNodeRpcBody, cR as pickZoneForGroup, cS as pointCellInRect, cT as pointCellInSpatialZone, cU as pointCellInZone, cV as primaryZoneForGroup, cW as sortNodeRefsForSerializedFetch, cX as spatialZoneBounds, cY as spatialZoneCenter, cZ as streetFromPoolEntry, c_ as utcDateKey, c$ as zonesForGroup } from './browser-BA5gjpPq.js';
2
2
  import 'zod';
package/dist/browser.js CHANGED
@@ -8,17 +8,35 @@ import {
8
8
  CarWashCarSchema,
9
9
  DAILY_GAME_PU_CAP,
10
10
  DEFAULT_AGENT_SPAWN_MIN_DISTANCE,
11
+ DEFAULT_LAYOUT_BOUNDS_WITH_PARKING,
12
+ DEFAULT_PARKING_RATES_USD,
11
13
  DEFAULT_PLAYER_WALLET_BALANCE_USD,
12
14
  GAME_CABINET_CATALOG,
13
15
  GameEventSchema,
14
16
  GamePerTitleStatsSchema,
15
17
  GameStatsSchema,
18
+ HOUSE_BLUEPRINTS,
19
+ HOUSE_CATALOG,
20
+ HOUSE_WORLD_X,
21
+ HouseIdSchema,
22
+ HouseSlotSchema,
23
+ HouseStreetContentSchema,
24
+ MAX_SLOTS_WITH_FOREVER,
25
+ MAX_TIMED_PARKING_SLOTS_PER_NODE,
16
26
  MINIMUM_PLAY_WORLD_BOUNDS,
17
27
  MINIMUM_STREET_LAYOUT_BOUNDS,
18
28
  OCCUPANCY_POINT_MULTIPLIER,
29
+ PARKING_BAY_COUNT,
30
+ PARKING_DURATION_TIERS,
31
+ PARKING_HOUSE_COUNT,
32
+ PARKING_LAYERS_PER_BAY,
33
+ PARKING_SPOT_COUNT,
19
34
  PLAYABLE_GAME_IDS,
20
35
  PLAYER_CHAIN_GENESIS_STABLE_KEY,
21
36
  PLAYER_CHAIN_HEADER_STABLE_KEY,
37
+ ParkingDurationTierSchema,
38
+ ParkingSpotSchema,
39
+ ParkingStreetContentSchema,
22
40
  PlayerWalletSchema,
23
41
  PurchaseRecordSchema,
24
42
  SPACE_STRUCTURE_ANCHOR_MIN_DISTANCE,
@@ -46,42 +64,63 @@ import {
46
64
  boundsContain,
47
65
  buildAmenityPurchaseApuFields,
48
66
  buildApuWalletTransaction,
67
+ buildHouseOwnershipPanelLines,
49
68
  buildRankedOccupancyPoints,
50
69
  buildRankedOccupancyPointsForSpatialZone,
51
70
  buildRankedOccupancyPointsForZone,
52
71
  buildRankedOccupancyPointsInRect,
53
72
  buildWalletBundleApuFields,
73
+ canNodeAcquireParkingSpot,
54
74
  cellsForZone,
55
75
  centerOfZone,
76
+ clampHousePosition,
56
77
  clampWorldPosition,
78
+ computeParkingExpiresAt,
57
79
  computeRoundPuDelta,
58
80
  computeTalkAgentPowerUpsEarned,
59
81
  costForSeconds,
60
82
  createEmptyGameStats,
83
+ createEmptyHouseStreetContent,
84
+ createEmptyParkingStreetContent,
61
85
  createInitialAgentRewardWallet,
62
86
  createInitialPlayerWallet,
63
87
  createVerticalStripSeedLayout,
88
+ createWorldLayoutWithParkingRow,
64
89
  desaturateColor,
90
+ effectiveHourlyRateUsd,
91
+ effectiveParkingStreet,
65
92
  enumerateIntegerCellsInRect,
66
93
  expandBoundsToMinimumPlayArea,
67
94
  featuredGameIdForUtcDate,
95
+ findHouseSlot,
96
+ findParkingSpot,
97
+ formatHouseOwnerDisplayName,
68
98
  getGameCabinetByGameId,
69
99
  getGameCabinetById,
100
+ getHouseBlueprint,
70
101
  getStreetPoolEntryById,
71
102
  getWalletBundleById,
103
+ housePurchaseDetail,
104
+ houseSpawnPosition,
72
105
  isAgentSpawnOccupancyPointAvailable,
73
106
  isAgentSpawnOccupancyPointAvailableInRect,
74
107
  isAgentSpawnOccupancyPointAvailableInZone,
75
108
  isGameId,
109
+ isHouseOwned,
76
110
  isItemAvailableForPurchase,
111
+ isParkingOccupantActive,
77
112
  isSpaceAnchorOccupancyPointAvailable,
78
113
  isSpaceAnchorOccupancyPointAvailableInRect,
79
114
  isSpaceAnchorOccupancyPointAvailableInZone,
115
+ layoutHasParkingZone,
116
+ layoutHouseFixtures,
117
+ listActiveParkingOccupancies,
80
118
  listAllowedOccupancyPoints,
81
119
  listOccupancyPointsForSpatialZone,
82
120
  listOccupancyPointsForZone,
83
121
  listOccupancyPointsInRect,
84
122
  mergeSnapshotWithPlayerChainNode,
123
+ migrateLayoutToParkingRow,
85
124
  migrateWorldLayoutBounds,
86
125
  nextStreetFromPool,
87
126
  occupancyKeyForPosition,
@@ -101,7 +140,7 @@ import {
101
140
  streetFromPoolEntry,
102
141
  utcDateKey,
103
142
  zonesForGroup
104
- } from "./chunk-Z2PYRHFU.js";
143
+ } from "./chunk-27BMLID7.js";
105
144
  export {
106
145
  ANALYTICS_EVENT_NAMES,
107
146
  APU_TOKEN,
@@ -112,17 +151,35 @@ export {
112
151
  CarWashCarSchema,
113
152
  DAILY_GAME_PU_CAP,
114
153
  DEFAULT_AGENT_SPAWN_MIN_DISTANCE,
154
+ DEFAULT_LAYOUT_BOUNDS_WITH_PARKING,
155
+ DEFAULT_PARKING_RATES_USD,
115
156
  DEFAULT_PLAYER_WALLET_BALANCE_USD,
116
157
  GAME_CABINET_CATALOG,
117
158
  GameEventSchema,
118
159
  GamePerTitleStatsSchema,
119
160
  GameStatsSchema,
161
+ HOUSE_BLUEPRINTS,
162
+ HOUSE_CATALOG,
163
+ HOUSE_WORLD_X,
164
+ HouseIdSchema,
165
+ HouseSlotSchema,
166
+ HouseStreetContentSchema,
167
+ MAX_SLOTS_WITH_FOREVER,
168
+ MAX_TIMED_PARKING_SLOTS_PER_NODE,
120
169
  MINIMUM_PLAY_WORLD_BOUNDS,
121
170
  MINIMUM_STREET_LAYOUT_BOUNDS,
122
171
  OCCUPANCY_POINT_MULTIPLIER,
172
+ PARKING_BAY_COUNT,
173
+ PARKING_DURATION_TIERS,
174
+ PARKING_HOUSE_COUNT,
175
+ PARKING_LAYERS_PER_BAY,
176
+ PARKING_SPOT_COUNT,
123
177
  PLAYABLE_GAME_IDS,
124
178
  PLAYER_CHAIN_GENESIS_STABLE_KEY,
125
179
  PLAYER_CHAIN_HEADER_STABLE_KEY,
180
+ ParkingDurationTierSchema,
181
+ ParkingSpotSchema,
182
+ ParkingStreetContentSchema,
126
183
  PlayerWalletSchema,
127
184
  PurchaseRecordSchema,
128
185
  SPACE_STRUCTURE_ANCHOR_MIN_DISTANCE,
@@ -150,42 +207,63 @@ export {
150
207
  boundsContain,
151
208
  buildAmenityPurchaseApuFields,
152
209
  buildApuWalletTransaction,
210
+ buildHouseOwnershipPanelLines,
153
211
  buildRankedOccupancyPoints,
154
212
  buildRankedOccupancyPointsForSpatialZone,
155
213
  buildRankedOccupancyPointsForZone,
156
214
  buildRankedOccupancyPointsInRect,
157
215
  buildWalletBundleApuFields,
216
+ canNodeAcquireParkingSpot,
158
217
  cellsForZone,
159
218
  centerOfZone,
219
+ clampHousePosition,
160
220
  clampWorldPosition,
221
+ computeParkingExpiresAt,
161
222
  computeRoundPuDelta,
162
223
  computeTalkAgentPowerUpsEarned,
163
224
  costForSeconds,
164
225
  createEmptyGameStats,
226
+ createEmptyHouseStreetContent,
227
+ createEmptyParkingStreetContent,
165
228
  createInitialAgentRewardWallet,
166
229
  createInitialPlayerWallet,
167
230
  createVerticalStripSeedLayout,
231
+ createWorldLayoutWithParkingRow,
168
232
  desaturateColor,
233
+ effectiveHourlyRateUsd,
234
+ effectiveParkingStreet,
169
235
  enumerateIntegerCellsInRect,
170
236
  expandBoundsToMinimumPlayArea,
171
237
  featuredGameIdForUtcDate,
238
+ findHouseSlot,
239
+ findParkingSpot,
240
+ formatHouseOwnerDisplayName,
172
241
  getGameCabinetByGameId,
173
242
  getGameCabinetById,
243
+ getHouseBlueprint,
174
244
  getStreetPoolEntryById,
175
245
  getWalletBundleById,
246
+ housePurchaseDetail,
247
+ houseSpawnPosition,
176
248
  isAgentSpawnOccupancyPointAvailable,
177
249
  isAgentSpawnOccupancyPointAvailableInRect,
178
250
  isAgentSpawnOccupancyPointAvailableInZone,
179
251
  isGameId,
252
+ isHouseOwned,
180
253
  isItemAvailableForPurchase,
254
+ isParkingOccupantActive,
181
255
  isSpaceAnchorOccupancyPointAvailable,
182
256
  isSpaceAnchorOccupancyPointAvailableInRect,
183
257
  isSpaceAnchorOccupancyPointAvailableInZone,
258
+ layoutHasParkingZone,
259
+ layoutHouseFixtures,
260
+ listActiveParkingOccupancies,
184
261
  listAllowedOccupancyPoints,
185
262
  listOccupancyPointsForSpatialZone,
186
263
  listOccupancyPointsForZone,
187
264
  listOccupancyPointsInRect,
188
265
  mergeSnapshotWithPlayerChainNode,
266
+ migrateLayoutToParkingRow,
189
267
  migrateWorldLayoutBounds,
190
268
  nextStreetFromPool,
191
269
  occupancyKeyForPosition,