castle-web-cli 0.4.236 → 0.4.238

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.
Files changed (218) hide show
  1. package/dist/api.d.ts +2 -0
  2. package/dist/bundle.d.ts +24 -0
  3. package/dist/bundle.js +447 -4
  4. package/dist/bundleLatin1.d.ts +6 -0
  5. package/dist/bundleLatin1.js +333 -0
  6. package/dist/castle-host/host.d.ts +10 -1
  7. package/dist/castle-host/host.js +78 -9
  8. package/dist/castleJson.d.ts +20 -0
  9. package/dist/castleJson.js +40 -0
  10. package/dist/deckExports.d.ts +35 -0
  11. package/dist/deckExports.js +365 -0
  12. package/dist/importCheckHook.d.ts +1 -0
  13. package/dist/importCheckHook.js +1 -1
  14. package/dist/index.js +5 -0
  15. package/dist/init.js +2 -1
  16. package/dist/save-deck.js +18 -13
  17. package/kits/base/castle.json +1 -1
  18. package/kits/base/sdk/README.md +47 -0
  19. package/kits/base/sdk/castle.d.ts +3 -1
  20. package/kits/base/sdk/castle.js +1 -0
  21. package/kits/base/sdk/commands.d.ts +25 -1
  22. package/kits/base/sdk/commands.js +29 -1
  23. package/kits/base/sdk/hub.d.ts +17 -0
  24. package/kits/base/sdk/hub.js +33 -9
  25. package/kits/base/sdk/localCache.d.ts +27 -0
  26. package/kits/base/sdk/localCache.js +115 -0
  27. package/kits/base/sdk/localCacheStore.d.ts +15 -0
  28. package/kits/base/sdk/localCacheStore.js +358 -0
  29. package/kits/base/sdk/transport.d.ts +1 -0
  30. package/kits/base/sdk/transport.js +4 -5
  31. package/kits/hub-game/CLAUDE.md +22 -2
  32. package/kits/hub-game/castle.json +4 -1
  33. package/kits/hub-game/code/client/act.js +66 -91
  34. package/kits/hub-game/code/client/actCore.js +134 -0
  35. package/kits/hub-game/code/client/car.js +35 -0
  36. package/kits/hub-game/code/client/chrome.js +207 -381
  37. package/kits/hub-game/code/client/crowdNames.js +2 -2
  38. package/kits/hub-game/code/client/emoteWheel.js +109 -0
  39. package/kits/hub-game/code/client/hats.js +2 -0
  40. package/kits/hub-game/code/client/hookLayer.js +99 -48
  41. package/kits/hub-game/code/client/hostGo.js +77 -0
  42. package/kits/hub-game/code/client/hubControls.js +125 -0
  43. package/kits/hub-game/code/client/hubEntry.js +187 -0
  44. package/kits/hub-game/code/client/hudSurface.js +148 -0
  45. package/kits/hub-game/code/client/hudTree.js +96 -0
  46. package/kits/hub-game/code/client/idle.js +59 -13
  47. package/kits/hub-game/code/client/invites.js +13 -4
  48. package/kits/hub-game/code/client/menuIcons.js +8 -0
  49. package/kits/hub-game/code/client/noTrips.js +38 -0
  50. package/kits/hub-game/code/client/qualityEntry.js +6 -1
  51. package/kits/hub-game/code/client/rehello.js +3 -1
  52. package/kits/hub-game/code/client/riders.js +26 -0
  53. package/kits/hub-game/code/client/role.js +79 -0
  54. package/kits/hub-game/code/client/safeLayout.js +32 -3
  55. package/kits/hub-game/code/client/sound.js +10 -3
  56. package/kits/hub-game/code/client/soundscape.js +2 -2
  57. package/kits/hub-game/code/client/soundscapeAmbience.js +38 -8
  58. package/kits/hub-game/code/client/soundscapeBaked.js +24 -5
  59. package/kits/hub-game/code/client/soundscapeCues.js +2 -1
  60. package/kits/hub-game/code/client/state.js +19 -0
  61. package/kits/hub-game/code/client/stuck.js +2 -1
  62. package/kits/hub-game/code/client/talkSurface.js +178 -0
  63. package/kits/hub-game/code/client/talkTree.js +238 -0
  64. package/kits/hub-game/code/client/tiers.js +8 -5
  65. package/kits/hub-game/code/client/uiDom.js +600 -0
  66. package/kits/hub-game/code/client/uiTree.js +359 -0
  67. package/kits/hub-game/code/client/vehicle.js +154 -0
  68. package/kits/hub-game/code/client/wear.js +27 -5
  69. package/kits/hub-game/code/client/worldLabels.js +3 -2
  70. package/kits/hub-game/code/client/yours.js +10 -3
  71. package/kits/hub-game/code/server/actors.js +4 -3
  72. package/kits/hub-game/code/server/analytics.js +56 -6
  73. package/kits/hub-game/code/server/decor.js +56 -16
  74. package/kits/hub-game/code/server/hub.js +258 -46
  75. package/kits/hub-game/code/server/idle.js +118 -5
  76. package/kits/hub-game/code/server/manifest.js +46 -4
  77. package/kits/hub-game/code/server/npcs.js +4 -2
  78. package/kits/hub-game/code/server/players.js +3 -0
  79. package/kits/hub-game/code/server/role.js +142 -0
  80. package/kits/hub-game/code/server/standing.js +6 -4
  81. package/kits/hub-game/code/server/vehicle.js +126 -0
  82. package/kits/hub-game/code/shared/car.js +52 -0
  83. package/kits/hub-game/code/shared/deckFlags.js +34 -0
  84. package/kits/hub-game/code/shared/deviceClass.js +39 -0
  85. package/kits/hub-game/code/shared/expression.js +9 -0
  86. package/kits/hub-game/code/systems/hub.js +300 -85
  87. package/kits/hub-game/docs/analytics.md +11 -2
  88. package/kits/hub-game/docs/contract.md +353 -14
  89. package/kits/hub-game/docs/vehicle-preset.md +132 -0
  90. package/kits/hub-game/models/hats/baker-cap.pxmodel +89 -0
  91. package/kits/hub-game/models/hats/chef-toque.pxmodel +60 -0
  92. package/kits/hub-game/models/hats/delivery-cap.pxmodel +105 -0
  93. package/kits/hub-game/models/hats/fire-helmet.pxmodel +87 -0
  94. package/kits/hub-game/models/hats/hard-hat.pxmodel +71 -0
  95. package/kits/hub-game/models/hats/nurse-cap.pxmodel +61 -0
  96. package/kits/hub-game/models/hats/police-cap.pxmodel +105 -0
  97. package/kits/hub-game/models/hats/teacher-beret.pxmodel +52 -0
  98. package/kits/hub-game/models/role/square/top-apron.pxmodel +109 -0
  99. package/kits/hub-game/models/role/square/top-cardigan.pxmodel +141 -0
  100. package/kits/hub-game/models/role/square/top-coat.pxmodel +157 -0
  101. package/kits/hub-game/models/role/square/top-scrubs.pxmodel +93 -0
  102. package/kits/hub-game/models/role/square/top-tabard.pxmodel +109 -0
  103. package/kits/hub-game/models/role/square/top-vest.pxmodel +109 -0
  104. package/kits/hub-game/models/role/tool-bag.pxmodel +75 -0
  105. package/kits/hub-game/models/role/tool-bell.pxmodel +71 -0
  106. package/kits/hub-game/models/role/tool-hose.pxmodel +60 -0
  107. package/kits/hub-game/models/role/tool-parcel.pxmodel +61 -0
  108. package/kits/hub-game/models/role/tool-torch.pxmodel +55 -0
  109. package/kits/hub-game/models/role/tool-tray.pxmodel +75 -0
  110. package/kits/hub-game/models/role/top-apron.pxmodel +70 -0
  111. package/kits/hub-game/models/role/top-cardigan.pxmodel +102 -0
  112. package/kits/hub-game/models/role/top-coat.pxmodel +79 -0
  113. package/kits/hub-game/models/role/top-scrubs.pxmodel +54 -0
  114. package/kits/hub-game/models/role/top-tabard.pxmodel +70 -0
  115. package/kits/hub-game/models/role/top-vest.pxmodel +70 -0
  116. package/kits/hub-game/package-lock.json +1 -1
  117. package/kits/hub-game/package.json +1 -1
  118. package/kits/hub-game/scripts/check.mjs +7 -4
  119. package/kits/hub-game/scripts/fixtures/car-vectors.json +279 -0
  120. package/kits/hub-game/scripts/fixtures/decor-keyless-draw.json +2 -1
  121. package/kits/hub-game/scripts/fixtures/hud-surface.json +670 -0
  122. package/kits/hub-game/scripts/fixtures/talk-surface.json +3930 -0
  123. package/kits/hub-game/scripts/gen-hats.mjs +46 -2
  124. package/kits/hub-game/scripts/gen-role.mjs +80 -0
  125. package/kits/hub-game/scripts/test-act-core.mjs +167 -0
  126. package/kits/hub-game/scripts/test-actions-client.mjs +34 -0
  127. package/kits/hub-game/scripts/test-actors.mjs +48 -0
  128. package/kits/hub-game/scripts/test-analytics.mjs +99 -5
  129. package/kits/hub-game/scripts/test-apply-deck.mjs +122 -0
  130. package/kits/hub-game/scripts/test-back-visibility.mjs +3 -1
  131. package/kits/hub-game/scripts/test-ballot.mjs +2 -0
  132. package/kits/hub-game/scripts/test-car.mjs +43 -0
  133. package/kits/hub-game/scripts/test-decor-client.mjs +2 -1
  134. package/kits/hub-game/scripts/test-decor.mjs +77 -0
  135. package/kits/hub-game/scripts/test-device-class.mjs +83 -0
  136. package/kits/hub-game/scripts/test-emote-wheel.mjs +374 -0
  137. package/kits/hub-game/scripts/test-hats.mjs +5 -4
  138. package/kits/hub-game/scripts/test-host-go.mjs +265 -0
  139. package/kits/hub-game/scripts/test-hub-controls.mjs +108 -0
  140. package/kits/hub-game/scripts/test-hub-entry.mjs +531 -0
  141. package/kits/hub-game/scripts/test-hub-ops.mjs +75 -0
  142. package/kits/hub-game/scripts/test-hub-trip.mjs +85 -0
  143. package/kits/hub-game/scripts/test-hud-clear.mjs +12 -2
  144. package/kits/hub-game/scripts/test-hud-rate.mjs +6 -2
  145. package/kits/hub-game/scripts/test-hud-surface.mjs +272 -0
  146. package/kits/hub-game/scripts/test-idle.mjs +347 -1
  147. package/kits/hub-game/scripts/test-interest-cells.mjs +8 -1
  148. package/kits/hub-game/scripts/test-invites-client.mjs +42 -1
  149. package/kits/hub-game/scripts/test-manifest.mjs +30 -0
  150. package/kits/hub-game/scripts/test-no-trips.mjs +42 -0
  151. package/kits/hub-game/scripts/test-placement-cache.mjs +1 -1
  152. package/kits/hub-game/scripts/test-quality.mjs +13 -0
  153. package/kits/hub-game/scripts/test-rehello.mjs +258 -3
  154. package/kits/hub-game/scripts/test-resume-pose-server.mjs +203 -0
  155. package/kits/hub-game/scripts/test-resync.mjs +183 -0
  156. package/kits/hub-game/scripts/test-role-client.mjs +421 -0
  157. package/kits/hub-game/scripts/test-role.mjs +350 -0
  158. package/kits/hub-game/scripts/test-safe-layout.mjs +50 -1
  159. package/kits/hub-game/scripts/test-soundscape.mjs +124 -7
  160. package/kits/hub-game/scripts/test-standing.mjs +15 -1
  161. package/kits/hub-game/scripts/test-talk-surface.mjs +296 -0
  162. package/kits/hub-game/scripts/test-tiers.mjs +13 -0
  163. package/kits/hub-game/scripts/test-ui-dom-dom.mjs +96 -0
  164. package/kits/hub-game/scripts/test-ui-tree.mjs +711 -0
  165. package/kits/hub-game/scripts/test-vehicle-client.mjs +159 -0
  166. package/kits/hub-game/scripts/test-vehicle.mjs +135 -0
  167. package/kits/hub-game/scripts/test-yours.mjs +33 -0
  168. package/kits/hub-game/tools/hubScene/export.mjs +613 -0
  169. package/kits/hub-game/tools/hubScene/hubdata.mjs +921 -0
  170. package/kits/hub-game/tools/hubScene/merge-root.mjs +39 -0
  171. package/kits/hub-game/tools/hubScene/nodeworld.mjs +227 -0
  172. package/kits/hub-game/tools/hubScene/test/export-fixture.mjs +798 -0
  173. package/kits/hub-game/tools/hubScene/test/fixture.json +637 -0
  174. package/kits/hub-game/tools/hubScene/test/paint-export.mjs +40 -0
  175. package/kits/hub-game/tools/hubScene/test/upload.test.mjs +655 -0
  176. package/kits/hub-game/tools/hubScene/upload.mjs +636 -0
  177. package/kits/hub-game/tools/hubScene/validate-manifest.mjs +291 -0
  178. package/kits/multiplayer-3d/castle.json +4 -4
  179. package/kits/multiplayer-3d/code/client/resumeGate.js +30 -2
  180. package/kits/multiplayer-3d/code/client/steer.js +3 -1
  181. package/kits/multiplayer-3d/code/systems/multiplayer.js +30 -2
  182. package/kits/multiplayer-3d/package-lock.json +1 -1
  183. package/kits/multiplayer-3d/scripts/test-resume-gate.mjs +74 -2
  184. package/kits/physics-3d/CLAUDE.md +1 -1
  185. package/kits/physics-3d/behaviors/Player.jsx +37 -27
  186. package/kits/physics-3d/castle.json +2 -2
  187. package/kits/physics-3d/docs/engine-geometry-memory.md +23 -0
  188. package/kits/physics-3d/engine3d/memoryprofile.js +17 -0
  189. package/kits/physics-3d/engine3d/playerRun.js +6 -1
  190. package/kits/physics-3d/engine3d/pxmodel.js +6 -1
  191. package/kits/physics-3d/engine3d/world3d.js +6 -3
  192. package/kits/physics-3d/package.json +1 -1
  193. package/kits/physics-3d/play/behaviors/Player.js +40 -28
  194. package/kits/physics-3d/scripts/test-memory-profile.mjs +237 -0
  195. package/kits/physics-3d/systems/physics3d.js +5 -2
  196. package/kits/real-time/castle.json +2 -2
  197. package/kits/real-time/code/client/messages.js +5 -0
  198. package/kits/real-time/code/server/session.js +28 -1
  199. package/kits/real-time/package-lock.json +1 -1
  200. package/package.json +5 -4
  201. package/vendor/three/LICENSE +21 -0
  202. package/vendor/three/build/three.core.js +58773 -0
  203. package/vendor/three/build/three.module.js +18251 -0
  204. package/vendor/three/examples/jsm/controls/OrbitControls.js +1860 -0
  205. package/vendor/three/examples/jsm/controls/TransformControls.js +1918 -0
  206. package/vendor/three/examples/jsm/exporters/GLTFExporter.js +3595 -0
  207. package/vendor/three/examples/jsm/geometries/RoundedBoxGeometry.js +216 -0
  208. package/vendor/three/examples/jsm/math/MeshSurfaceSampler.js +315 -0
  209. package/vendor/three/examples/jsm/postprocessing/EffectComposer.js +363 -0
  210. package/vendor/three/examples/jsm/postprocessing/MaskPass.js +195 -0
  211. package/vendor/three/examples/jsm/postprocessing/OutputPass.js +139 -0
  212. package/vendor/three/examples/jsm/postprocessing/Pass.js +191 -0
  213. package/vendor/three/examples/jsm/postprocessing/RenderPass.js +183 -0
  214. package/vendor/three/examples/jsm/postprocessing/ShaderPass.js +135 -0
  215. package/vendor/three/examples/jsm/shaders/CopyShader.js +52 -0
  216. package/vendor/three/examples/jsm/shaders/OutputShader.js +103 -0
  217. package/vendor/three/examples/jsm/utils/BufferGeometryUtils.js +1435 -0
  218. package/vendor/three/package.json +134 -0
@@ -0,0 +1,52 @@
1
+ // Vehicle preset, contract v1.160. Shared validation and car-local seat geometry.
2
+ export const CAR_BOUNDS = {
3
+ length: [2, 10, 4], width: [1, 3, 1.8], speed: [2, 16, 12],
4
+ reverse: [1, 6, 4], accel: [1, 20, 6], brake: [1, 20, 14], turn: [0.3, 3, 1.6],
5
+ };
6
+ export const MAX_CARS = 24;
7
+ export function parseCar(spec) {
8
+ if (!spec || typeof spec !== 'object' || Array.isArray(spec) || typeof spec.look !== 'string' || !spec.look || spec.look.length > 128) {return null;}
9
+ const car = { look: spec.look };
10
+ for (const [key, [lo, hi, fallback]] of Object.entries(CAR_BOUNDS)) {
11
+ const v = spec[key] ?? fallback;
12
+ if (!Number.isFinite(v)) {return null;}
13
+ car[key] = Math.min(hi, Math.max(lo, v));
14
+ }
15
+ const seats = spec.seats ?? [[0, 0, 0]];
16
+ if (!Array.isArray(seats) || seats.length < 1 || seats.length > 4 || seats.some(p => !Array.isArray(p) || p.length !== 3 || !p.every(Number.isFinite))) {return null;}
17
+ car.seats = seats.map(p => [...p]);
18
+ if (spec.color !== undefined) {
19
+ if (typeof spec.color !== 'string' || !/^#[0-9a-f]{6}$/i.test(spec.color)) {return null;}
20
+ car.color = spec.color.toLowerCase();
21
+ }
22
+ car.cam = {};
23
+ for (const [name, key] of [['camDistance', 'distance'], ['camHeight', 'height']]) {
24
+ const v = spec[name] ?? spec.cam?.[key];
25
+ if (v !== undefined) {
26
+ if (!Number.isFinite(v) || v <= 0) {return null;}
27
+ car.cam[key] = v;
28
+ }
29
+ }
30
+ if (spec.horn !== undefined) {
31
+ if (typeof spec.horn !== 'string' || !spec.horn || spec.horn.length > 256) {return null;}
32
+ car.horn = spec.horn;
33
+ }
34
+ return car;
35
+ }
36
+
37
+ // Seat zero is over the driver's capsule centre, irrespective of its authored
38
+ // offset. +Z forward, positive heading rotates +Z toward +X, in radians.
39
+ export function seatPose(at, facing, car, seat = 0, left = 0) {
40
+ const p = car.seats[seat], origin = car.seats[0];
41
+ const x = p[0] - origin[0] - left, y = p[1] - origin[1], z = p[2] - origin[2];
42
+ return { x: at.x + x * Math.cos(facing) + z * Math.sin(facing), y: at.y + y, z: at.z - x * Math.sin(facing) + z * Math.cos(facing) };
43
+ }
44
+ export function vehicleOf(cars, id) {
45
+ if (Object.hasOwn(cars, id)) {return { driver: true, car: cars[id] };}
46
+ for (const [of, car] of Object.entries(cars)) {
47
+ for (const [seat, rider] of Object.entries(car.riders ?? {})) {
48
+ if (rider === id) {return { driver: false, of, seat: Number(seat) };}
49
+ }
50
+ }
51
+ return null;
52
+ }
@@ -0,0 +1,34 @@
1
+ // The deck's `hub` block as the hub client reads it (`client/hookLayer.js`
2
+ // applyDeck), for a host with no castle.json to glob: the hubScene exporter
3
+ // (`tools/hubScene/export.mjs`) writes `deckFlags(castleJson.hub)` into the
4
+ // scene manifest as `deck`, and a DOM-less host hands that to applyDeck.
5
+ // No browser dependencies.
6
+
7
+ // Every key of the `hub` block applyDeck reads. `invite` is written resolved
8
+ // (`places.main.invite` over the root's), so the block needs no `places`.
9
+ export const DECK_FLAG_KEYS = Object.freeze([
10
+ 'pongTimeoutMs', 'invite', 'defaultEnvironment', 'tiers', 'highOnly', 'quality', 'safeInsets',
11
+ 'weakestTier', 'weakestLookBake', 'mergeFarAvatars', 'lowActorDistance', 'lowActorBudget',
12
+ 'companionIdle', 'act', 'cues', 'playCards', 'yourGames', 'avatarColors', 'stuck', 'labels',
13
+ 'soundscape',
14
+ ]);
15
+
16
+ // The client-read keys of a castle.json `hub` block, as plain JSON: absent
17
+ // keys stay absent, so applyDeck of the result equals applyDeck of the block.
18
+ export function deckFlags(hubBlock) {
19
+ const block = hubBlock && typeof hubBlock === 'object' && !Array.isArray(hubBlock) ? hubBlock : {};
20
+ const out = {};
21
+ for (const key of DECK_FLAG_KEYS) {
22
+ if (key === 'invite') {
23
+ const invite = block.places?.main?.invite ?? block.invite;
24
+ if (invite !== undefined) {
25
+ out.invite = invite === true;
26
+ }
27
+ continue;
28
+ }
29
+ if (Object.hasOwn(block, key) && block[key] !== undefined) {
30
+ out[key] = JSON.parse(JSON.stringify(block[key]));
31
+ }
32
+ }
33
+ return out;
34
+ }
@@ -0,0 +1,39 @@
1
+ // Arrival analytics value: unsigned integer < 2^29; 0 means absent/unknown.
2
+ // Bits Field Encoding (0 means unknown for numeric fields)
3
+ // 0 lowMemory 1 only when the renderer detected low memory
4
+ // 1-3 cores rounded, capped at 7 (7 means 7+)
5
+ // 4-7 dpr round(dpr * 4), capped at 15
6
+ // 8-15 short side round(short CSS screen side / 8), capped at 255
7
+ // 16-24 long side round(long CSS screen side / 8), capped at 511
8
+ // 25-27 deviceMemory 0 unknown; 1 <=0.5 GB; 2 <=1; 3 <=2; 4 <=4; 5 >4 (8+)
9
+ // 28 presence always 1 for an encoded class, even if all fields are 0
10
+ // Decode returns quantized values, with width <= height regardless of orientation.
11
+ // Memory decodes to its representative GB value: 0, 0.5, 1, 2, 4, or 8.
12
+ const PRESENT = 2 ** 28;
13
+ const MEMORY = [0, 0.5, 1, 2, 4, 8];
14
+ const nonnegative = (n) => Number.isFinite(n) && n >= 0 ? n : 0;
15
+ const quantize = (n, scale, max) => Math.min(max, Math.round(nonnegative(n) * scale));
16
+
17
+ export function encodeDeviceClass({ lowMemory, cores, dpr, width, height, deviceMemory } = {}) {
18
+ const short = Math.min(nonnegative(width), nonnegative(height));
19
+ const long = Math.max(nonnegative(width), nonnegative(height));
20
+ const gb = nonnegative(deviceMemory);
21
+ const memory = gb === 0 ? 0 : gb <= 0.5 ? 1 : gb <= 1 ? 2 : gb <= 2 ? 3 : gb <= 4 ? 4 : 5;
22
+ return PRESENT | (lowMemory === true ? 1 : 0) |
23
+ (quantize(cores, 1, 7) << 1) | (quantize(dpr, 4, 15) << 4) |
24
+ (quantize(short, 1 / 8, 255) << 8) | (quantize(long, 1 / 8, 511) << 16) | (memory << 25);
25
+ }
26
+
27
+ export function decodeDeviceClass(code) {
28
+ if (!Number.isSafeInteger(code) || code < PRESENT || code >= 2 ** 29) {return null;}
29
+ const memory = (code >>> 25) & 7;
30
+ if (memory > 5) {return null;}
31
+ return {
32
+ lowMemory: (code & 1) === 1,
33
+ cores: (code >>> 1) & 7,
34
+ dpr: ((code >>> 4) & 15) / 4,
35
+ width: ((code >>> 8) & 255) * 8,
36
+ height: ((code >>> 16) & 511) * 8,
37
+ deviceMemory: MEMORY[memory],
38
+ };
39
+ }
@@ -0,0 +1,9 @@
1
+ // v1.158: only idle.expression places offer these kit emotes.
2
+ export const EXPRESSION_EMOTES = {
3
+ sleep: { emoji: '😴', ms: 4000 },
4
+ eat: { emoji: '🍔', ms: 3000 },
5
+ cry: { emoji: '😢', ms: 3000 },
6
+ laugh: { emoji: '😂', ms: 2400 },
7
+ point: { emoji: '👉', ms: 2000 },
8
+ };
9
+ export const EMOTE_MOTIONS = ['wave', 'dance', 'cheer', 'bow', 'spin', ...Object.keys(EXPRESSION_EMOTES)];