@moonwitness/ui 7.3.1 → 8.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.
Files changed (260) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +2 -3
  3. package/scripts/consumer-smoke.mjs +0 -45
  4. package/scripts/generate-icons.mjs +0 -110
  5. package/scripts/generate-token-artifacts.mjs +0 -90
  6. package/scripts/icon-svg-to-jsx.mjs +0 -249
  7. package/scripts/verification-diagnostics.mjs +0 -40
  8. package/scripts/verify-package.mjs +0 -412
  9. package/src/cartoon/anime-avatar.tsx +0 -628
  10. package/src/cartoon/anime-stage.tsx +0 -458
  11. package/src/cartoon/index.tsx +0 -542
  12. package/src/cartoon.tsx +0 -645
  13. package/src/characters.ts +0 -625
  14. package/src/components/accordion.tsx +0 -77
  15. package/src/components/alert.tsx +0 -139
  16. package/src/components/appearance-menu.tsx +0 -181
  17. package/src/components/artwork-frame.tsx +0 -49
  18. package/src/components/audio.tsx +0 -97
  19. package/src/components/avatar.tsx +0 -75
  20. package/src/components/badge.tsx +0 -94
  21. package/src/components/brand-mark.tsx +0 -73
  22. package/src/components/breadcrumbs.tsx +0 -98
  23. package/src/components/button.tsx +0 -340
  24. package/src/components/card.tsx +0 -171
  25. package/src/components/character-badge.tsx +0 -58
  26. package/src/components/character-preview.tsx +0 -104
  27. package/src/components/character-stage.tsx +0 -225
  28. package/src/components/chart.tsx +0 -481
  29. package/src/components/checkbox.tsx +0 -64
  30. package/src/components/comic-panel.tsx +0 -301
  31. package/src/components/comic-theater.tsx +0 -170
  32. package/src/components/command.tsx +0 -189
  33. package/src/components/confirm-dialog.tsx +0 -129
  34. package/src/components/copy-button.tsx +0 -62
  35. package/src/components/date-picker.tsx +0 -126
  36. package/src/components/dialog.tsx +0 -164
  37. package/src/components/dna-icon.tsx +0 -77
  38. package/src/components/dropdown-menu.tsx +0 -87
  39. package/src/components/effects.tsx +0 -1021
  40. package/src/components/empty-state.tsx +0 -93
  41. package/src/components/epistemic-branch-panel.tsx +0 -101
  42. package/src/components/error-state.tsx +0 -137
  43. package/src/components/field.tsx +0 -96
  44. package/src/components/filter-facet-bar.tsx +0 -91
  45. package/src/components/inbox-popover.tsx +0 -146
  46. package/src/components/input.tsx +0 -25
  47. package/src/components/kanban-board.tsx +0 -190
  48. package/src/components/label.tsx +0 -19
  49. package/src/components/layered-scene.tsx +0 -555
  50. package/src/components/log-console.tsx +0 -261
  51. package/src/components/metric-tile.tsx +0 -99
  52. package/src/components/mode-picker.tsx +0 -149
  53. package/src/components/motion-timeline.tsx +0 -848
  54. package/src/components/number-input.tsx +0 -104
  55. package/src/components/page-header.tsx +0 -123
  56. package/src/components/pagination.tsx +0 -83
  57. package/src/components/panel.tsx +0 -121
  58. package/src/components/paper-note.tsx +0 -77
  59. package/src/components/popover.tsx +0 -72
  60. package/src/components/progress.tsx +0 -127
  61. package/src/components/quest-card.tsx +0 -319
  62. package/src/components/radio-group.tsx +0 -50
  63. package/src/components/riot-sticker.tsx +0 -151
  64. package/src/components/scene-particles.tsx +0 -196
  65. package/src/components/scene-transitions.tsx +0 -130
  66. package/src/components/section-ribbon.tsx +0 -94
  67. package/src/components/select-field.tsx +0 -27
  68. package/src/components/select.tsx +0 -81
  69. package/src/components/separator.tsx +0 -58
  70. package/src/components/sheet.tsx +0 -96
  71. package/src/components/skeleton.tsx +0 -35
  72. package/src/components/sketch-annotation.tsx +0 -87
  73. package/src/components/smart-button-box.tsx +0 -114
  74. package/src/components/speech-bubble.tsx +0 -116
  75. package/src/components/spinner.tsx +0 -69
  76. package/src/components/sprite-player.tsx +0 -412
  77. package/src/components/status-bar.tsx +0 -63
  78. package/src/components/status-pill.tsx +0 -68
  79. package/src/components/switch.tsx +0 -76
  80. package/src/components/table.tsx +0 -163
  81. package/src/components/tabs.tsx +0 -101
  82. package/src/components/tag-input.tsx +0 -170
  83. package/src/components/textarea.tsx +0 -25
  84. package/src/components/toast.tsx +0 -14
  85. package/src/components/toolbar.tsx +0 -39
  86. package/src/components/tooltip.tsx +0 -49
  87. package/src/components/update-banner.tsx +0 -220
  88. package/src/components/xv-primitives.tsx +0 -256
  89. package/src/css-exports.ts +0 -142
  90. package/src/dna.tsx +0 -137
  91. package/src/game/boss-hud.tsx +0 -384
  92. package/src/game/index.tsx +0 -886
  93. package/src/game/tactical.tsx +0 -245
  94. package/src/game.tsx +0 -770
  95. package/src/icons/activity.tsx +0 -38
  96. package/src/icons/add.tsx +0 -38
  97. package/src/icons/addon.tsx +0 -37
  98. package/src/icons/anime-anger.tsx +0 -37
  99. package/src/icons/anime-shock.tsx +0 -37
  100. package/src/icons/anime-sparkle.tsx +0 -38
  101. package/src/icons/anime-sweatdrop.tsx +0 -38
  102. package/src/icons/archive.tsx +0 -37
  103. package/src/icons/arrow-left.tsx +0 -37
  104. package/src/icons/arrow-right.tsx +0 -37
  105. package/src/icons/attachment.tsx +0 -38
  106. package/src/icons/bank.tsx +0 -37
  107. package/src/icons/bolt.tsx +0 -37
  108. package/src/icons/book-open.tsx +0 -37
  109. package/src/icons/bookmark.tsx +0 -37
  110. package/src/icons/boss-skull.tsx +0 -40
  111. package/src/icons/calendar-clock.tsx +0 -40
  112. package/src/icons/calendar.tsx +0 -38
  113. package/src/icons/check-circle.tsx +0 -38
  114. package/src/icons/check-square.tsx +0 -38
  115. package/src/icons/check.tsx +0 -37
  116. package/src/icons/chevron-right.tsx +0 -37
  117. package/src/icons/chevrons-left.tsx +0 -37
  118. package/src/icons/chevrons-right.tsx +0 -37
  119. package/src/icons/clapperboard.tsx +0 -38
  120. package/src/icons/clock.tsx +0 -38
  121. package/src/icons/close.tsx +0 -37
  122. package/src/icons/code.tsx +0 -37
  123. package/src/icons/columns.tsx +0 -38
  124. package/src/icons/combo-flame.tsx +0 -38
  125. package/src/icons/company.tsx +0 -38
  126. package/src/icons/credit-card.tsx +0 -38
  127. package/src/icons/critical-star.tsx +0 -37
  128. package/src/icons/currency.tsx +0 -38
  129. package/src/icons/delete.tsx +0 -37
  130. package/src/icons/document.tsx +0 -38
  131. package/src/icons/download.tsx +0 -37
  132. package/src/icons/dpad.tsx +0 -38
  133. package/src/icons/edit.tsx +0 -38
  134. package/src/icons/element-fire.tsx +0 -37
  135. package/src/icons/element-ice.tsx +0 -38
  136. package/src/icons/element-solar.tsx +0 -38
  137. package/src/icons/element-void.tsx +0 -38
  138. package/src/icons/element-volt.tsx +0 -38
  139. package/src/icons/element-wind.tsx +0 -37
  140. package/src/icons/error.tsx +0 -38
  141. package/src/icons/external-link.tsx +0 -38
  142. package/src/icons/field.tsx +0 -38
  143. package/src/icons/file-spreadsheet.tsx +0 -38
  144. package/src/icons/filter.tsx +0 -37
  145. package/src/icons/gacha-ticket.tsx +0 -38
  146. package/src/icons/gamepad.tsx +0 -40
  147. package/src/icons/globe.tsx +0 -38
  148. package/src/icons/grid.tsx +0 -40
  149. package/src/icons/hash.tsx +0 -37
  150. package/src/icons/heart-hp.tsx +0 -38
  151. package/src/icons/history.tsx +0 -37
  152. package/src/icons/home.tsx +0 -37
  153. package/src/icons/image.tsx +0 -39
  154. package/src/icons/impact-slash.tsx +0 -38
  155. package/src/icons/inbox.tsx +0 -38
  156. package/src/icons/index.ts +0 -120
  157. package/src/icons/info.tsx +0 -38
  158. package/src/icons/jobs.tsx +0 -38
  159. package/src/icons/katana.tsx +0 -38
  160. package/src/icons/key.tsx +0 -38
  161. package/src/icons/keyboard.tsx +0 -38
  162. package/src/icons/keyframe-diamond.tsx +0 -38
  163. package/src/icons/knowledge.tsx +0 -38
  164. package/src/icons/language.tsx +0 -39
  165. package/src/icons/lock.tsx +0 -38
  166. package/src/icons/logout.tsx +0 -37
  167. package/src/icons/loot-chest.tsx +0 -39
  168. package/src/icons/mail.tsx +0 -38
  169. package/src/icons/mana-crystal.tsx +0 -38
  170. package/src/icons/map-pin.tsx +0 -38
  171. package/src/icons/mecha-helm.tsx +0 -38
  172. package/src/icons/menu.tsx +0 -37
  173. package/src/icons/message.tsx +0 -38
  174. package/src/icons/model.tsx +0 -38
  175. package/src/icons/moon.tsx +0 -37
  176. package/src/icons/notification.tsx +0 -38
  177. package/src/icons/partner.tsx +0 -41
  178. package/src/icons/pause.tsx +0 -37
  179. package/src/icons/phone.tsx +0 -37
  180. package/src/icons/play.tsx +0 -37
  181. package/src/icons/potion-flask.tsx +0 -40
  182. package/src/icons/quest-scroll.tsx +0 -39
  183. package/src/icons/radar-ping.tsx +0 -40
  184. package/src/icons/refresh.tsx +0 -38
  185. package/src/icons/relation.tsx +0 -40
  186. package/src/icons/save.tsx +0 -38
  187. package/src/icons/search.tsx +0 -38
  188. package/src/icons/security.tsx +0 -38
  189. package/src/icons/send.tsx +0 -38
  190. package/src/icons/settings.tsx +0 -39
  191. package/src/icons/shield-crest.tsx +0 -38
  192. package/src/icons/shuriken.tsx +0 -38
  193. package/src/icons/signal-off.tsx +0 -37
  194. package/src/icons/signal.tsx +0 -37
  195. package/src/icons/skill-node.tsx +0 -40
  196. package/src/icons/smartphone.tsx +0 -38
  197. package/src/icons/sort-ascending.tsx +0 -37
  198. package/src/icons/sort-descending.tsx +0 -37
  199. package/src/icons/sort.tsx +0 -37
  200. package/src/icons/sparkle.tsx +0 -38
  201. package/src/icons/speech-burst.tsx +0 -37
  202. package/src/icons/story.tsx +0 -37
  203. package/src/icons/sun.tsx +0 -38
  204. package/src/icons/tag.tsx +0 -38
  205. package/src/icons/team.tsx +0 -40
  206. package/src/icons/trophy-crown.tsx +0 -39
  207. package/src/icons/upload.tsx +0 -37
  208. package/src/icons/user.tsx +0 -38
  209. package/src/icons/users.tsx +0 -39
  210. package/src/icons/visibility-off.tsx +0 -38
  211. package/src/icons/visibility.tsx +0 -38
  212. package/src/icons/volume-off.tsx +0 -37
  213. package/src/icons/volume.tsx +0 -37
  214. package/src/icons/warning.tsx +0 -38
  215. package/src/icons/workflow.tsx +0 -40
  216. package/src/icons.tsx +0 -965
  217. package/src/index.ts +0 -89
  218. package/src/lib/asset-registry.ts +0 -534
  219. package/src/lib/audio-runtime.ts +0 -314
  220. package/src/lib/character-adapter.ts +0 -370
  221. package/src/lib/character-registry.ts +0 -2368
  222. package/src/lib/cn.ts +0 -6
  223. package/src/lib/compose-refs.ts +0 -16
  224. package/src/lib/sanitize-url.ts +0 -51
  225. package/src/lib/scene-camera.ts +0 -483
  226. package/src/lib/scene-playback.ts +0 -622
  227. package/src/lib/scene-soundscape.ts +0 -151
  228. package/src/lib/scene-test-harness.ts +0 -200
  229. package/src/lib/scene-timeline.ts +0 -398
  230. package/src/lib/use-animation-visibility.ts +0 -45
  231. package/src/lib/use-modal-focus.ts +0 -270
  232. package/src/lib/use-reduced-motion.ts +0 -37
  233. package/src/motion/easing-presets.ts +0 -262
  234. package/src/motion/index.tsx +0 -894
  235. package/src/motion/physics.ts +0 -259
  236. package/src/motion/timeline-math.ts +0 -358
  237. package/src/motion.tsx +0 -639
  238. package/src/pixelfx-boundary.ts +0 -188
  239. package/src/pixelfx-registry.ts +0 -1190
  240. package/src/pixelfx-types.d.ts +0 -73
  241. package/src/pixelfx.tsx +0 -1022
  242. package/src/provider.tsx +0 -63
  243. package/src/skin-catalog.ts +0 -306
  244. package/src/skin-tokens.ts +0 -425
  245. package/src/ssr/init-script.ts +0 -281
  246. package/src/ssr/resolve-skin.ts +0 -217
  247. package/src/ssr/theme-mismatch-dev.ts +0 -181
  248. package/src/templates/battle-arena.tsx +0 -688
  249. package/src/templates/index.tsx +0 -314
  250. package/src/templates.tsx +0 -225
  251. package/src/themes/dna-presets.ts +0 -119
  252. package/src/themes/index.ts +0 -56
  253. package/src/themes/provider.tsx +0 -183
  254. package/src/themes/types.ts +0 -111
  255. package/src/themes.ts +0 -9
  256. package/src/token-exporter.ts +0 -12
  257. package/src/token-exporters.ts +0 -343
  258. package/src/token-seeds.ts +0 -335
  259. package/src/token-snapshot.ts +0 -179
  260. package/src/utils.ts +0 -58
package/src/characters.ts DELETED
@@ -1,625 +0,0 @@
1
- export type CharacterElement =
2
- | "solar"
3
- | "volt"
4
- | "cryo"
5
- | "pyro"
6
- | "void"
7
- | "ink"
8
- | "wind";
9
-
10
- export type CharacterRarity = "rare" | "epic" | "legendary" | "mythic";
11
-
12
- export type CharacterFactionId =
13
- | "signal-riot"
14
- | "moonwitness-xii"
15
- | "rocksoul-echo"
16
- | "archive-watch"
17
- | "cyber-strays"
18
- | "void-syndicate";
19
-
20
- export interface CharacterFaction {
21
- readonly id: CharacterFactionId;
22
- readonly label: string;
23
- readonly motto: string;
24
- readonly accent: string;
25
- }
26
-
27
- export interface CharacterStats {
28
- readonly hp: number;
29
- readonly atk: number;
30
- readonly def: number;
31
- readonly spd: number;
32
- }
33
-
34
- export interface CharacterUltimate {
35
- readonly name: string;
36
- readonly jpCallout: string;
37
- readonly quote: string;
38
- }
39
-
40
- export interface CharacterPalette {
41
- readonly primary: string;
42
- readonly secondary: string;
43
- readonly accent: string;
44
- readonly hair: string;
45
- readonly skin: string;
46
- }
47
-
48
- export interface CharacterProfile {
49
- readonly id: string;
50
- readonly codename: string;
51
- readonly name: string;
52
- readonly title: string;
53
- readonly faction: CharacterFactionId;
54
- readonly group: "signal-riot" | "moonwitness-xii" | "extended-lore";
55
- readonly archetype: string;
56
- readonly element: CharacterElement;
57
- readonly rarity: CharacterRarity;
58
- readonly isBoss?: boolean;
59
- readonly voicePitch: number;
60
- readonly stats: CharacterStats;
61
- readonly ultimate: CharacterUltimate;
62
- readonly palette: CharacterPalette;
63
- }
64
-
65
- export const CHARACTER_FACTIONS: readonly CharacterFaction[] = [
66
- { id: "signal-riot", label: "Signal Riot", motto: "Same moon. Different people.", accent: "#e11d74" },
67
- { id: "moonwitness-xii", label: "MoonWitness XII", motto: "Twelve bands on one frequency.", accent: "#f5d000" },
68
- { id: "rocksoul-echo", label: "RockSoul Echo", motto: "Hold resolve, strike mercy.", accent: "#15803d" },
69
- { id: "archive-watch", label: "Archive Watch", motto: "Never invent what is missing.", accent: "#0891b2" },
70
- { id: "cyber-strays", label: "Cyber Strays", motto: "Zero drift across every frame.", accent: "#6d28d9" },
71
- { id: "void-syndicate", label: "Eclipse Bosses", motto: "Static swallows the unverified.", accent: "#be123c" },
72
- ];
73
-
74
- export const CHARACTER_REGISTRY: readonly CharacterProfile[] = [
75
- {
76
- id: "kuro-signal",
77
- codename: "SR-01",
78
- name: "Kuro",
79
- title: "Ink Striker",
80
- faction: "signal-riot",
81
- group: "signal-riot",
82
- archetype: "Courier",
83
- element: "ink",
84
- rarity: "mythic",
85
- voicePitch: 1.08,
86
- stats: { hp: 240, atk: 96, def: 64, spd: 98 },
87
- ultimate: { name: "Signal Overdrive", jpCallout: "シグナル・オーバードライブ!!", quote: "When the moon rises, we share a message." },
88
- palette: { primary: "#181b24", secondary: "#e11d74", accent: "#f5d000", hair: "#121319", skin: "#f4d8c0" },
89
- },
90
- {
91
- id: "vesper-ink",
92
- codename: "AW-02",
93
- name: "Vesper",
94
- title: "Zine Archivist",
95
- faction: "archive-watch",
96
- group: "signal-riot",
97
- archetype: "Tactician",
98
- element: "cryo",
99
- rarity: "legendary",
100
- voicePitch: 0.96,
101
- stats: { hp: 220, atk: 84, def: 82, spd: 86 },
102
- ultimate: { name: "Ledger Seal", jpCallout: "アーカイブ・シール!!", quote: "Mark the gap clearly so every witness sees truth." },
103
- palette: { primary: "#272b3a", secondary: "#22d3ee", accent: "#f5d000", hair: "#cfd4e2", skin: "#f2d6c2" },
104
- },
105
- {
106
- id: "akira-pulse",
107
- codename: "CS-03",
108
- name: "Akira Pulse",
109
- title: "Volt Breaker",
110
- faction: "cyber-strays",
111
- group: "moonwitness-xii",
112
- archetype: "Vanguard",
113
- element: "volt",
114
- rarity: "legendary",
115
- voicePitch: 1.12,
116
- stats: { hp: 235, atk: 94, def: 68, spd: 95 },
117
- ultimate: { name: "Arc Flash Slash", jpCallout: "ボルト・アーク!!", quote: "Twelve frames is all it takes to cross the alley." },
118
- palette: { primary: "#0f172a", secondary: "#38bdf8", accent: "#facc15", hair: "#1d4ed8", skin: "#f5dac6" },
119
- },
120
- {
121
- id: "nova-x",
122
- codename: "MW-04",
123
- name: "Nova-X",
124
- title: "Solar Beacon",
125
- faction: "moonwitness-xii",
126
- group: "moonwitness-xii",
127
- archetype: "Artillery",
128
- element: "solar",
129
- rarity: "mythic",
130
- voicePitch: 1.04,
131
- stats: { hp: 215, atk: 102, def: 58, spd: 89 },
132
- ultimate: { name: "Zenith Flare", jpCallout: "ゼニス・フレア!!", quote: "Aim straight at the horizon line." },
133
- palette: { primary: "#1e1b4b", secondary: "#f59e0b", accent: "#fde047", hair: "#f59e0b", skin: "#ebd0b8" },
134
- },
135
- {
136
- id: "lord-null",
137
- codename: "VS-00",
138
- name: "Lord Null",
139
- title: "Architect of Static",
140
- faction: "void-syndicate",
141
- group: "extended-lore",
142
- archetype: "Raid Boss",
143
- element: "void",
144
- rarity: "mythic",
145
- isBoss: true,
146
- voicePitch: 0.72,
147
- stats: { hp: 380, atk: 112, def: 96, spd: 78 },
148
- ultimate: { name: "Silent Erasure", jpCallout: "ヌル・イレイス!!", quote: "Unverified claims dissolve into white noise." },
149
- palette: { primary: "#0c0a14", secondary: "#be123c", accent: "#a855f7", hair: "#f8fafc", skin: "#d6d3d1" },
150
- },
151
- {
152
- id: "rocksoul-witness",
153
- codename: "RS-01",
154
- name: "RockSoul Witness",
155
- title: "Dual-Form Resonator",
156
- faction: "rocksoul-echo",
157
- group: "moonwitness-xii",
158
- archetype: "Brawler",
159
- element: "wind",
160
- rarity: "mythic",
161
- voicePitch: 0.88,
162
- stats: { hp: 290, atk: 98, def: 88, spd: 84 },
163
- ultimate: { name: "Black Resolve · Green Mercy", jpCallout: "レゾナンス・オーバードライブ!!", quote: "Strike hard enough to protect, never to erase." },
164
- palette: { primary: "#111827", secondary: "#22c55e", accent: "#f5d000", hair: "#166534", skin: "#e7c6ab" },
165
- },
166
- {
167
- id: "the-shadow",
168
- codename: "EL-01",
169
- name: "The Shadow",
170
- title: "Boundary Watcher",
171
- faction: "void-syndicate",
172
- group: "extended-lore",
173
- archetype: "Assassin",
174
- element: "void",
175
- rarity: "legendary",
176
- isBoss: true,
177
- voicePitch: 0.76,
178
- stats: { hp: 260, atk: 105, def: 72, spd: 99 },
179
- ultimate: { name: "Eclipse Corridor", jpCallout: "シャドウ・コリドー!!", quote: "Every streetlight casts two witnesses." },
180
- palette: { primary: "#09090b", secondary: "#6d28d9", accent: "#e11d74", hair: "#18181b", skin: "#d4d4d8" },
181
- },
182
- {
183
- id: "walter-white",
184
- codename: "SR-08",
185
- name: "Walter Sweeper",
186
- title: "Label Sweeper",
187
- faction: "signal-riot",
188
- group: "signal-riot",
189
- archetype: "Support",
190
- element: "ink",
191
- rarity: "epic",
192
- voicePitch: 0.84,
193
- stats: { hp: 250, atk: 74, def: 90, spd: 70 },
194
- ultimate: { name: "Clean Sweep", jpCallout: "クリーンスウィープ!!", quote: "Keep the workbench clean and the signal stays pure." },
195
- palette: { primary: "#1f2937", secondary: "#f5d000", accent: "#e11d74", hair: "#e5e7eb", skin: "#f0d3bc" },
196
- },
197
- {
198
- id: "isrockfeel",
199
- codename: "RS-02",
200
- name: "IsRockFeel",
201
- title: "Riff Mentor",
202
- faction: "rocksoul-echo",
203
- group: "moonwitness-xii",
204
- archetype: "Bard",
205
- element: "pyro",
206
- rarity: "legendary",
207
- voicePitch: 0.9,
208
- stats: { hp: 245, atk: 92, def: 74, spd: 87 },
209
- ultimate: { name: "Power Chord Breaker", jpCallout: "パワーコード!!", quote: "Feel the downbeat before you swing." },
210
- palette: { primary: "#1c1917", secondary: "#ef4444", accent: "#f59e0b", hair: "#7f1d1d", skin: "#eac7ab" },
211
- },
212
- {
213
- id: "fourlah",
214
- codename: "RS-03",
215
- name: "Fourlah",
216
- title: "Relay Runner",
217
- faction: "rocksoul-echo",
218
- group: "moonwitness-xii",
219
- archetype: "Scout",
220
- element: "wind",
221
- rarity: "epic",
222
- voicePitch: 1.15,
223
- stats: { hp: 205, atk: 86, def: 62, spd: 100 },
224
- ultimate: { name: "Four-Beat Relay", jpCallout: "フォービート・リレー!!", quote: "Pass the baton before the static catches up." },
225
- palette: { primary: "#0f766e", secondary: "#2dd4bf", accent: "#fde047", hair: "#134e4a", skin: "#f3d5be" },
226
- },
227
- {
228
- id: "baby-doll",
229
- codename: "EL-02",
230
- name: "Baby Doll",
231
- title: "Porcelain Echo",
232
- faction: "void-syndicate",
233
- group: "extended-lore",
234
- archetype: "Controller",
235
- element: "cryo",
236
- rarity: "epic",
237
- voicePitch: 1.24,
238
- stats: { hp: 210, atk: 88, def: 66, spd: 82 },
239
- ultimate: { name: "Clockwork Encore", jpCallout: "アンコール・ステップ!!", quote: "Still frames remember every promise." },
240
- palette: { primary: "#3b0764", secondary: "#f472b6", accent: "#e0f2fe", hair: "#fbcfe8", skin: "#fde8dc" },
241
- },
242
- {
243
- id: "blue-witch",
244
- codename: "EL-03",
245
- name: "Blue Witch",
246
- title: "Indigo Oracle",
247
- faction: "archive-watch",
248
- group: "extended-lore",
249
- archetype: "Caster",
250
- element: "cryo",
251
- rarity: "legendary",
252
- voicePitch: 0.98,
253
- stats: { hp: 200, atk: 97, def: 65, spd: 84 },
254
- ultimate: { name: "Cobalt Grimoire", jpCallout: "コバルト・ノヴァ!!", quote: "Moonlight reveals ink invisible by noon." },
255
- palette: { primary: "#1e3a8a", secondary: "#38bdf8", accent: "#facc15", hair: "#2563eb", skin: "#f3d8c7" },
256
- },
257
- {
258
- id: "dj-david",
259
- codename: "EL-04",
260
- name: "DJ David",
261
- title: "Frequency Mixer",
262
- faction: "cyber-strays",
263
- group: "extended-lore",
264
- archetype: "Buffer",
265
- element: "volt",
266
- rarity: "epic",
267
- voicePitch: 0.94,
268
- stats: { hp: 225, atk: 80, def: 75, spd: 91 },
269
- ultimate: { name: "Drop the Tempo", jpCallout: "ドロップ・ザ・ビート!!", quote: "Lock the BPM and the whole squad moves as one." },
270
- palette: { primary: "#18181b", secondary: "#a855f7", accent: "#22d3ee", hair: "#111827", skin: "#d9a982" },
271
- },
272
- {
273
- id: "dogs-from-universe",
274
- codename: "EL-05",
275
- name: "Cosmic Hounds",
276
- title: "Orbital Pack",
277
- faction: "cyber-strays",
278
- group: "extended-lore",
279
- archetype: "Beast",
280
- element: "solar",
281
- rarity: "rare",
282
- voicePitch: 1.05,
283
- stats: { hp: 230, atk: 89, def: 70, spd: 94 },
284
- ultimate: { name: "Starlight Pack Rush", jpCallout: "コスミック・ラッシュ!!", quote: "Loyal to the trail across every orbit." },
285
- palette: { primary: "#312e81", secondary: "#f59e0b", accent: "#38bdf8", hair: "#f59e0b", skin: "#e5c3a6" },
286
- },
287
- {
288
- id: "electric-forest",
289
- codename: "EL-06",
290
- name: "Electric Forest",
291
- title: "Canopy Warden",
292
- faction: "rocksoul-echo",
293
- group: "extended-lore",
294
- archetype: "Guardian",
295
- element: "volt",
296
- rarity: "legendary",
297
- voicePitch: 0.82,
298
- stats: { hp: 310, atk: 82, def: 98, spd: 68 },
299
- ultimate: { name: "Root-Grid Surge", jpCallout: "エレクトリック・キャノピー!!", quote: "Every wire runs back to living ground." },
300
- palette: { primary: "#064e3b", secondary: "#10b981", accent: "#fde047", hair: "#047857", skin: "#d4b499" },
301
- },
302
- {
303
- id: "indestructible",
304
- codename: "EL-07",
305
- name: "Indestructible",
306
- title: "Iron Bastion",
307
- faction: "moonwitness-xii",
308
- group: "extended-lore",
309
- archetype: "Tank",
310
- element: "pyro",
311
- rarity: "legendary",
312
- isBoss: true,
313
- voicePitch: 0.78,
314
- stats: { hp: 340, atk: 88, def: 104, spd: 62 },
315
- ultimate: { name: "Unbroken Frame", jpCallout: "アンブロークン!!", quote: "Hold the line until the final proof lands." },
316
- palette: { primary: "#292524", secondary: "#f97316", accent: "#facc15", hair: "#44403c", skin: "#d8b192" },
317
- },
318
- {
319
- id: "the-listener",
320
- codename: "EL-08",
321
- name: "The Listener",
322
- title: "Quiet Receiver",
323
- faction: "archive-watch",
324
- group: "extended-lore",
325
- archetype: "Analyst",
326
- element: "wind",
327
- rarity: "epic",
328
- voicePitch: 0.92,
329
- stats: { hp: 215, atk: 76, def: 80, spd: 88 },
330
- ultimate: { name: "Clear Channel", jpCallout: "クリア・チャンネル!!", quote: "Hear what was actually said before speaking." },
331
- palette: { primary: "#1e293b", secondary: "#64748b", accent: "#22d3ee", hair: "#94a3b8", skin: "#eed0bc" },
332
- },
333
- {
334
- id: "crew-01",
335
- codename: "MC-01",
336
- name: "Crew-01",
337
- title: "Moon City Pilot",
338
- faction: "signal-riot",
339
- group: "signal-riot",
340
- archetype: "Operator",
341
- element: "ink",
342
- rarity: "rare",
343
- voicePitch: 1.0,
344
- stats: { hp: 210, atk: 75, def: 75, spd: 80 },
345
- ultimate: { name: "Rooftop Check", jpCallout: "チェック・クリア!!", quote: "Anonymous hands keep the city running." },
346
- palette: { primary: "#1e212b", secondary: "#e11d74", accent: "#f3efe4", hair: "#121319", skin: "#e8c8b0" },
347
- },
348
- {
349
- id: "sora-halftone",
350
- codename: "MW-05",
351
- name: "Sora Halftone",
352
- title: "Print Press Ace",
353
- faction: "moonwitness-xii",
354
- group: "moonwitness-xii",
355
- archetype: "Striker",
356
- element: "wind",
357
- rarity: "rare",
358
- voicePitch: 1.14,
359
- stats: { hp: 205, atk: 84, def: 64, spd: 93 },
360
- ultimate: { name: "Dot-Screen Gale", jpCallout: "ハーフトーン・ゲイル!!", quote: "Fresh ink dries faster in the wind." },
361
- palette: { primary: "#0c4a6e", secondary: "#38bdf8", accent: "#f43f5e", hair: "#0284c7", skin: "#f6dcc8" },
362
- },
363
- {
364
- id: "ren-katana",
365
- codename: "MW-06",
366
- name: "Ren Kurosaki",
367
- title: "Zero-Drift Blade",
368
- faction: "moonwitness-xii",
369
- group: "moonwitness-xii",
370
- archetype: "Duelist",
371
- element: "ink",
372
- rarity: "legendary",
373
- voicePitch: 0.91,
374
- stats: { hp: 230, atk: 101, def: 68, spd: 96 },
375
- ultimate: { name: "Single-Stroke Cut", jpCallout: "一閃・ゼロドリフト!!", quote: "One clean diff beats ten hasty patches." },
376
- palette: { primary: "#111318", secondary: "#f43f5e", accent: "#ffffff", hair: "#1f2937", skin: "#f2d6c0" },
377
- },
378
- {
379
- id: "hana-spark",
380
- codename: "CS-04",
381
- name: "Hana Spark",
382
- title: "Solder Engineer",
383
- faction: "cyber-strays",
384
- group: "moonwitness-xii",
385
- archetype: "Mechanic",
386
- element: "pyro",
387
- rarity: "epic",
388
- voicePitch: 1.18,
389
- stats: { hp: 220, atk: 87, def: 76, spd: 83 },
390
- ultimate: { name: "Overclock Turret", jpCallout: "オーバークロック!!", quote: "If it hums at 60Hz, push it to 120." },
391
- palette: { primary: "#7c2d12", secondary: "#fb923c", accent: "#fde047", hair: "#ea580c", skin: "#f5d7c1" },
392
- },
393
- {
394
- id: "mira-prism",
395
- codename: "AW-03",
396
- name: "Mira Prism",
397
- title: "Chromatic Scribe",
398
- faction: "archive-watch",
399
- group: "moonwitness-xii",
400
- archetype: "Support",
401
- element: "solar",
402
- rarity: "epic",
403
- voicePitch: 1.09,
404
- stats: { hp: 210, atk: 78, def: 79, spd: 85 },
405
- ultimate: { name: "RGB Split", jpCallout: "プリズム・スプリット!!", quote: "Every color token earns its contrast ratio." },
406
- palette: { primary: "#4c1d95", secondary: "#e879f9", accent: "#22d3ee", hair: "#c084fc", skin: "#f4dac8" },
407
- },
408
- {
409
- id: "kai-tremor",
410
- codename: "RS-04",
411
- name: "Kai Tremor",
412
- title: "Bassline Breaker",
413
- faction: "rocksoul-echo",
414
- group: "moonwitness-xii",
415
- archetype: "Bruiser",
416
- element: "pyro",
417
- rarity: "rare",
418
- voicePitch: 0.85,
419
- stats: { hp: 280, atk: 91, def: 84, spd: 72 },
420
- ultimate: { name: "Seismic Drop", jpCallout: "サイズミック・ドロップ!!", quote: "Shake the stage, keep the focus ring steady." },
421
- palette: { primary: "#27272a", secondary: "#f59e0b", accent: "#ef4444", hair: "#18181b", skin: "#dca986" },
422
- },
423
- {
424
- id: "yumi-clip",
425
- codename: "SR-05",
426
- name: "Yumi Keyframe",
427
- title: "Sakuga Director",
428
- faction: "signal-riot",
429
- group: "moonwitness-xii",
430
- archetype: "Director",
431
- element: "wind",
432
- rarity: "legendary",
433
- voicePitch: 1.11,
434
- stats: { hp: 215, atk: 88, def: 70, spd: 97 },
435
- ultimate: { name: "On-Twos Smear", jpCallout: "サクラ・スメア!!", quote: "Twelve drawn frames beat sixty empty ones." },
436
- palette: { primary: "#831843", secondary: "#f472b6", accent: "#fde047", hair: "#be185d", skin: "#f7ddc9" },
437
- },
438
- {
439
- id: "zen-merkle",
440
- codename: "AW-04",
441
- name: "Zen Merkle",
442
- title: "Proof Custodian",
443
- faction: "archive-watch",
444
- group: "moonwitness-xii",
445
- archetype: "Warden",
446
- element: "cryo",
447
- rarity: "epic",
448
- voicePitch: 0.87,
449
- stats: { hp: 265, atk: 79, def: 95, spd: 74 },
450
- ultimate: { name: "Hash Seal", jpCallout: "マークル・シール!!", quote: "Signed digests never drift in transit." },
451
- palette: { primary: "#164e63", secondary: "#06b6d4", accent: "#f8fafc", hair: "#e2e8f0", skin: "#e9c9b1" },
452
- },
453
- {
454
- id: "jax-pixel",
455
- codename: "CS-05",
456
- name: "Jax Pixel",
457
- title: "Arcade Tactician",
458
- faction: "cyber-strays",
459
- group: "signal-riot",
460
- archetype: "Ranger",
461
- element: "volt",
462
- rarity: "rare",
463
- voicePitch: 1.06,
464
- stats: { hp: 205, atk: 86, def: 63, spd: 92 },
465
- ultimate: { name: "Combo Counter x99", jpCallout: "コンボ・フィニッシュ!!", quote: "Hitstop turns a tap into a punch." },
466
- palette: { primary: "#1e1b4b", secondary: "#818cf8", accent: "#34d399", hair: "#4f46e5", skin: "#eecdb5" },
467
- },
468
- {
469
- id: "tara-xerox",
470
- codename: "SR-06",
471
- name: "Tara Xerox",
472
- title: "Zine Printer",
473
- faction: "signal-riot",
474
- group: "signal-riot",
475
- archetype: "Artisan",
476
- element: "ink",
477
- rarity: "rare",
478
- voicePitch: 1.02,
479
- stats: { hp: 225, atk: 81, def: 77, spd: 81 },
480
- ultimate: { name: "Riso Overprint", jpCallout: "リソ・オーバープリント!!", quote: "Raw paper grain tells the truth." },
481
- palette: { primary: "#18181b", secondary: "#f5d000", accent: "#e11d74", hair: "#27272a", skin: "#e2ba9b" },
482
- },
483
- {
484
- id: "dante-static",
485
- codename: "VS-02",
486
- name: "Dante Static",
487
- title: "Signal Jammer",
488
- faction: "void-syndicate",
489
- group: "extended-lore",
490
- archetype: "Disruptor",
491
- element: "void",
492
- rarity: "epic",
493
- isBoss: true,
494
- voicePitch: 0.81,
495
- stats: { hp: 295, atk: 96, def: 80, spd: 86 },
496
- ultimate: { name: "Dead Air Cascade", jpCallout: "スタティック・バースト!!", quote: "Lose the clock and lose the battle." },
497
- palette: { primary: "#18181b", secondary: "#dc2626", accent: "#a855f7", hair: "#991b1b", skin: "#e0c2ad" },
498
- },
499
- {
500
- id: "lyra-orbit",
501
- codename: "MW-11",
502
- name: "Lyra Orbit",
503
- title: "Lunar Navigator",
504
- faction: "moonwitness-xii",
505
- group: "moonwitness-xii",
506
- archetype: "Navigator",
507
- element: "solar",
508
- rarity: "legendary",
509
- voicePitch: 1.07,
510
- stats: { hp: 220, atk: 85, def: 76, spd: 94 },
511
- ultimate: { name: "Orbital Lock-On", jpCallout: "オービタル・ロックオン!!", quote: "Keep every layer aligned to the same moon." },
512
- palette: { primary: "#172554", secondary: "#60a5fa", accent: "#fde047", hair: "#93c5fd", skin: "#f4d9c4" },
513
- },
514
- {
515
- id: "orion-zero",
516
- codename: "VS-03",
517
- name: "Orion Zero",
518
- title: "Entropy Titan",
519
- faction: "void-syndicate",
520
- group: "extended-lore",
521
- archetype: "Raid Boss",
522
- element: "void",
523
- rarity: "mythic",
524
- isBoss: true,
525
- voicePitch: 0.68,
526
- stats: { hp: 360, atk: 108, def: 94, spd: 75 },
527
- ultimate: { name: "Horizon Collapse", jpCallout: "ホライズン・ゼロ!!", quote: "Only tested systems endure the eclipse." },
528
- palette: { primary: "#09090b", secondary: "#7e22ce", accent: "#f43f5e", hair: "#c084fc", skin: "#cbd5e1" },
529
- },
530
- ];
531
-
532
- export function getCharacterById(id: string | undefined | null): CharacterProfile | undefined {
533
- if (!id) return undefined;
534
- return CHARACTER_REGISTRY.find((c) => c.id === id);
535
- }
536
-
537
- export function getPlayableCharacters(): readonly CharacterProfile[] {
538
- return CHARACTER_REGISTRY.filter((c) => !c.isBoss);
539
- }
540
-
541
- export function getMoonWitnessXiiCast(): readonly CharacterProfile[] {
542
- return CHARACTER_REGISTRY.filter((c) => c.group === "moonwitness-xii");
543
- }
544
-
545
- export function getExtendedLoreCast(): readonly CharacterProfile[] {
546
- return CHARACTER_REGISTRY.filter((c) => c.group === "extended-lore");
547
- }
548
-
549
- export function filterCharacters(filters: {
550
- faction?: CharacterFactionId;
551
- element?: CharacterElement;
552
- rarity?: CharacterRarity;
553
- query?: string;
554
- }): readonly CharacterProfile[] {
555
- const q = filters.query?.trim().toLowerCase() ?? "";
556
- return CHARACTER_REGISTRY.filter((c) => {
557
- if (filters.faction && c.faction !== filters.faction) return false;
558
- if (filters.element && c.element !== filters.element) return false;
559
- if (filters.rarity && c.rarity !== filters.rarity) return false;
560
- if (q) {
561
- const hay = `${c.name} ${c.codename} ${c.title} ${c.archetype} ${c.ultimate.name}`.toLowerCase();
562
- if (!hay.includes(q)) return false;
563
- }
564
- return true;
565
- });
566
- }
567
-
568
- export function rollGachaCharacter(seed = Date.now()): CharacterProfile {
569
- const idx = Math.abs(Math.floor(seed * 1664525 + 1013904223)) % CHARACTER_REGISTRY.length;
570
- return CHARACTER_REGISTRY[idx]!;
571
- }
572
-
573
- // Lore registry exports for CharacterBadge tests
574
- export const ROCKSOUL_LORE_ROSTER: readonly CharacterProfile[] = CHARACTER_REGISTRY.filter(
575
- (c) => c.group === "moonwitness-xii" || c.group === "extended-lore"
576
- ).map((c) => ({
577
- ...c,
578
- canonLevel: "lore" as const,
579
- autoMergeForbidden: true,
580
- displayName: c.name,
581
- loreGroup: c.faction,
582
- }));
583
-
584
- export const ROCKSOUL_LORE_FACTIONS: readonly CharacterFaction[] = CHARACTER_FACTIONS.filter(
585
- (f) => f.id === "moonwitness-xii" || f.id === "rocksoul-echo" || f.id === "archive-watch" || f.id === "cyber-strays"
586
- );
587
-
588
- export const MOONWITNESS_XII_CAST_IDS: readonly string[] = CHARACTER_REGISTRY
589
- .filter((c) => c.group === "moonwitness-xii")
590
- .map((c) => c.id);
591
-
592
- export const EXTENDED_LORE_CAST_IDS: readonly string[] = CHARACTER_REGISTRY
593
- .filter((c) => c.group === "extended-lore")
594
- .map((c) => c.id);
595
-
596
- export function getLoreCharacterById(id: string | undefined | null): CharacterProfile | undefined {
597
- if (!id) return undefined;
598
- return ROCKSOUL_LORE_ROSTER.find((c) => c.id === id);
599
- }
600
-
601
- export function filterLoreCharacters(filters: {
602
- faction?: CharacterFactionId;
603
- element?: CharacterElement;
604
- rarity?: CharacterRarity;
605
- query?: string;
606
- }): readonly CharacterProfile[] {
607
- const q = filters.query?.trim().toLowerCase() ?? "";
608
- return ROCKSOUL_LORE_ROSTER.filter((c) => {
609
- if (filters.faction && c.faction !== filters.faction) return false;
610
- if (filters.element && c.element !== filters.element) return false;
611
- if (filters.rarity && c.rarity !== filters.rarity) return false;
612
- if (q) {
613
- const hay = `${c.name} ${c.codename} ${c.title} ${c.archetype} ${c.ultimate.name}`.toLowerCase();
614
- if (!hay.includes(q)) return false;
615
- }
616
- return true;
617
- });
618
- }
619
-
620
- /**
621
- * Returns all boss characters from the registry (characters with isBoss: true).
622
- */
623
- export function getBossCharacters(): readonly CharacterProfile[] {
624
- return CHARACTER_REGISTRY.filter((c) => c.isBoss === true);
625
- }