@bitmagic/cli 0.1.59-dev.2 → 0.1.59-dev.4
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/README.md +99 -0
- package/dist/assets/materials.d.ts +165 -0
- package/dist/assets/materials.js +395 -0
- package/dist/assets/materials.js.map +1 -0
- package/dist/assets/vxl-summary.js +12 -5
- package/dist/assets/vxl-summary.js.map +1 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/assets.d.ts +25 -0
- package/dist/commands/assets.js +245 -2
- package/dist/commands/assets.js.map +1 -1
- package/dist/commands/generate.d.ts +4 -0
- package/dist/commands/generate.js +33 -2
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/theme.d.ts +3 -0
- package/dist/commands/theme.js +201 -0
- package/dist/commands/theme.js.map +1 -0
- package/dist/scaffold/project-files.d.ts +1 -0
- package/dist/scaffold/project-files.js +47 -1
- package/dist/scaffold/project-files.js.map +1 -1
- package/dist/scaffold/project.js +2 -1
- package/dist/scaffold/project.js.map +1 -1
- package/dist/theme/hud-theme-catalog.d.ts +236 -0
- package/dist/theme/hud-theme-catalog.js +386 -0
- package/dist/theme/hud-theme-catalog.js.map +1 -0
- package/dist/theme/theme-color-math.d.ts +21 -0
- package/dist/theme/theme-color-math.js +99 -0
- package/dist/theme/theme-color-math.js.map +1 -0
- package/dist/theme/theme-io.d.ts +49 -0
- package/dist/theme/theme-io.js +190 -0
- package/dist/theme/theme-io.js.map +1 -0
- package/dist/theme/theme-merge.d.ts +36 -0
- package/dist/theme/theme-merge.js +81 -0
- package/dist/theme/theme-merge.js.map +1 -0
- package/dist/theme/theme-report.d.ts +28 -0
- package/dist/theme/theme-report.js +142 -0
- package/dist/theme/theme-report.js.map +1 -0
- package/dist/theme/theme-stored.d.ts +21 -0
- package/dist/theme/theme-stored.js +50 -0
- package/dist/theme/theme-stored.js.map +1 -0
- package/dist/theme/theme-validate.d.ts +41 -0
- package/dist/theme/theme-validate.js +406 -0
- package/dist/theme/theme-validate.js.map +1 -0
- package/dist/verify/hud-theme.d.ts +5 -3
- package/dist/verify/hud-theme.js +5 -3
- package/dist/verify/hud-theme.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/scaffold/project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,iCAAiC,EACjC,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,GAEjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAelF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;AAE9C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,aAAa,CAAC,CAAC;AAEhE;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,MAAM;CACP,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,YAAY,C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I,EAAE,MAAM,EAAE,CAAC,CAAC;QACvF,CAAC,eAAe,EAAE,kBAAkB,CAAC,EAAE,GAAG,QAAQ,EAAE,YAAY,EAAE,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC5F,CAAC,WAAW,EAAE,QAAQ,CAAC;QACvB,0FAA0F;QAC1F,6EAA6E;QAC7E,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC5C,CAAC,WAAW,EAAE,cAAc,EAAE,CAAC;QAC/B,CAAC,YAAY,EAAE,eAAe,EAAE,CAAC;QACjC,8FAA8F;QAC9F,+FAA+F;QAC/F,mCAAmC;QACnC,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,CAAC;KAC/C,CAAC;IACF,KAAK,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC;QACrC,gBAAgB,CAAC,SAAS,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
export declare const HUD_PRESETS: readonly ["rift-raider", "village-keep", "nexus", "simulator", "racing"];
|
|
2
|
+
export type HudPresetName = (typeof HUD_PRESETS)[number];
|
|
3
|
+
/**
|
|
4
|
+
* The five presets' ACTUAL token values, mirrored from `game/src/engine/hud/themes/*.ts`.
|
|
5
|
+
*
|
|
6
|
+
* This exists because the promoted customization flow — "preset X but with
|
|
7
|
+
* orange accents" — was unimplementable without it. `read-hud-theme` returns a
|
|
8
|
+
* preset's NAME, `write-hud-theme` does a full replace rather than a merge, and
|
|
9
|
+
* the engine source that holds the values is not readable from the hosted agent.
|
|
10
|
+
* So an agent asked to tweak an active preset had nothing to patch and had to
|
|
11
|
+
* invent a whole theme "in that preset's spirit", which is how a tweak request
|
|
12
|
+
* silently became a redesign.
|
|
13
|
+
*
|
|
14
|
+
* Each entry is the RAW preset data, which is the same shape as an inline theme
|
|
15
|
+
* — so it can be spread, edited and written straight back through
|
|
16
|
+
* `write-hud-theme`. Use `presetTheme(name)` rather than reading this directly:
|
|
17
|
+
* it strips `evokes`, which is authoring metadata and not a theme token.
|
|
18
|
+
*
|
|
19
|
+
* Hand-mirrored and drift-checked by `scripts/check-hud-catalog.ts`, which deep
|
|
20
|
+
* compares every value against the engine modules.
|
|
21
|
+
*/
|
|
22
|
+
export declare const HUD_PRESET_THEMES: Readonly<Record<HudPresetName, Readonly<Record<string, unknown>>>>;
|
|
23
|
+
/**
|
|
24
|
+
* A preset's tokens as a writable inline theme — the mirror entry minus the
|
|
25
|
+
* `evokes` label, which describes the style rather than rendering it.
|
|
26
|
+
*
|
|
27
|
+
* The intended patch flow: `const base = presetTheme('nexus')`, apply the user's
|
|
28
|
+
* change, then `write-hud-theme` the result.
|
|
29
|
+
*/
|
|
30
|
+
export declare function presetTheme(name: HudPresetName): Record<string, unknown>;
|
|
31
|
+
/**
|
|
32
|
+
* The one-line mood label per preset, DERIVED from the mirrored preset data
|
|
33
|
+
* above rather than kept as a second hand-written list.
|
|
34
|
+
*
|
|
35
|
+
* It used to be an independent map explicitly excluded from the drift gate, on
|
|
36
|
+
* the grounds that the engine had no counterpart. It then rotted: three of five
|
|
37
|
+
* labels described styles that had since been retuned, and this is the field an
|
|
38
|
+
* agent picks a preset BY. The engine presets carry `evokes` beside their tokens
|
|
39
|
+
* now, so the description and the style are one edit and one check.
|
|
40
|
+
*/
|
|
41
|
+
export declare const HUD_PRESET_INFO: Readonly<Record<HudPresetName, {
|
|
42
|
+
evokes: string;
|
|
43
|
+
}>>;
|
|
44
|
+
export declare const HUD_FONTS: {
|
|
45
|
+
readonly 'red-hat-display': {
|
|
46
|
+
readonly family: "Red Hat Display";
|
|
47
|
+
readonly weights: readonly [300, 400, 500, 700];
|
|
48
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
49
|
+
readonly evokes: "Default Bitmagic — warm, technical, modern sans";
|
|
50
|
+
};
|
|
51
|
+
readonly 'chakra-petch': {
|
|
52
|
+
readonly family: "Chakra Petch";
|
|
53
|
+
readonly weights: readonly [300, 400, 500, 600, 700];
|
|
54
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
55
|
+
readonly evokes: "Chamfered techno sans — holographic HUD, sci-fi console, cut corners";
|
|
56
|
+
};
|
|
57
|
+
readonly 'ibm-plex-sans': {
|
|
58
|
+
readonly family: "IBM Plex Sans";
|
|
59
|
+
readonly weights: readonly [300, 400, 500, 600, 700];
|
|
60
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
61
|
+
readonly evokes: "Engineered humanist sans — instrument panel, operator console, tabular data";
|
|
62
|
+
};
|
|
63
|
+
readonly 'archivo-narrow': {
|
|
64
|
+
readonly family: "Archivo Narrow";
|
|
65
|
+
readonly weights: readonly [400, 500, 600, 700];
|
|
66
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
67
|
+
readonly evokes: "Narrow gothic that keeps its ink — motorsport telemetry, broadcast overlay";
|
|
68
|
+
};
|
|
69
|
+
readonly 'bebas-neue': {
|
|
70
|
+
readonly family: "Bebas Neue";
|
|
71
|
+
readonly weights: readonly [400];
|
|
72
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
73
|
+
readonly evokes: "Tall, bold display — sports, action, news ticker";
|
|
74
|
+
};
|
|
75
|
+
readonly 'press-start-2p': {
|
|
76
|
+
readonly family: "Press Start 2P";
|
|
77
|
+
readonly weights: readonly [400];
|
|
78
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
79
|
+
readonly evokes: "Retro arcade pixel — 8-bit, NES, chiptune";
|
|
80
|
+
};
|
|
81
|
+
readonly creepster: {
|
|
82
|
+
readonly family: "Creepster";
|
|
83
|
+
readonly weights: readonly [400];
|
|
84
|
+
readonly suitsCase: readonly ["normal"];
|
|
85
|
+
readonly evokes: "Horror, halloween, dripping — already display-styled";
|
|
86
|
+
};
|
|
87
|
+
readonly pacifico: {
|
|
88
|
+
readonly family: "Pacifico";
|
|
89
|
+
readonly weights: readonly [400];
|
|
90
|
+
readonly suitsCase: readonly ["normal"];
|
|
91
|
+
readonly evokes: "Handwritten cursive — tropical, beachy, casual";
|
|
92
|
+
};
|
|
93
|
+
readonly 'space-grotesk': {
|
|
94
|
+
readonly family: "Space Grotesk";
|
|
95
|
+
readonly weights: readonly [400, 500, 700];
|
|
96
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
97
|
+
readonly evokes: "Geometric sans — sci-fi, technical, modern";
|
|
98
|
+
};
|
|
99
|
+
readonly 'rubik-mono-one': {
|
|
100
|
+
readonly family: "Rubik Mono One";
|
|
101
|
+
readonly weights: readonly [400];
|
|
102
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
103
|
+
readonly evokes: "Heavy, slabby display — bold, blocky, attention-grabbing";
|
|
104
|
+
};
|
|
105
|
+
readonly vt323: {
|
|
106
|
+
readonly family: "VT323";
|
|
107
|
+
readonly weights: readonly [400];
|
|
108
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
109
|
+
readonly evokes: "CRT terminal monospace — retro computer, hacker, glitch";
|
|
110
|
+
};
|
|
111
|
+
readonly orbitron: {
|
|
112
|
+
readonly family: "Orbitron";
|
|
113
|
+
readonly weights: readonly [400, 500, 700, 900];
|
|
114
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
115
|
+
readonly evokes: "Futuristic geometric — sci-fi, cyber, racing HUD";
|
|
116
|
+
};
|
|
117
|
+
readonly shrikhand: {
|
|
118
|
+
readonly family: "Shrikhand";
|
|
119
|
+
readonly weights: readonly [400];
|
|
120
|
+
readonly suitsCase: readonly ["normal"];
|
|
121
|
+
readonly evokes: "Italic display — celebratory, party, energetic";
|
|
122
|
+
};
|
|
123
|
+
readonly 'baloo-2': {
|
|
124
|
+
readonly family: "Baloo 2";
|
|
125
|
+
readonly weights: readonly [400, 500, 600, 700, 800];
|
|
126
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
127
|
+
readonly evokes: "Rounded chunky sans with a real weight range — mobile action-RPG chrome";
|
|
128
|
+
};
|
|
129
|
+
readonly 'lilita-one': {
|
|
130
|
+
readonly family: "Lilita One";
|
|
131
|
+
readonly weights: readonly [400];
|
|
132
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
133
|
+
readonly evokes: "Chunky rounded comic display — cartoon battler, toon town";
|
|
134
|
+
};
|
|
135
|
+
readonly fredoka: {
|
|
136
|
+
readonly family: "Fredoka";
|
|
137
|
+
readonly weights: readonly [300, 400, 500, 700];
|
|
138
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
139
|
+
readonly evokes: "Soft rounded bubble sans — candy, casual mobile, sweet";
|
|
140
|
+
};
|
|
141
|
+
readonly 'grenze-gotisch': {
|
|
142
|
+
readonly family: "Grenze Gotisch";
|
|
143
|
+
readonly weights: readonly [400, 500, 700, 900];
|
|
144
|
+
readonly suitsCase: readonly ["normal"];
|
|
145
|
+
readonly evokes: "Readable blackletter — dark fantasy, gothic dungeon";
|
|
146
|
+
};
|
|
147
|
+
readonly cinzel: {
|
|
148
|
+
readonly family: "Cinzel";
|
|
149
|
+
readonly weights: readonly [400, 500, 700, 900];
|
|
150
|
+
readonly suitsCase: readonly ["upper", "normal"];
|
|
151
|
+
readonly evokes: "Carved Roman caps — epic fantasy, ancient temple";
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
export declare const HUD_DECORATIONS: {
|
|
155
|
+
readonly 'drip-border': {
|
|
156
|
+
readonly suitsSlots: readonly ["borderImage", "decorationAfter"];
|
|
157
|
+
readonly evokes: "Horror drips on edges";
|
|
158
|
+
};
|
|
159
|
+
readonly 'pixel-corners': {
|
|
160
|
+
readonly suitsSlots: readonly ["borderImage"];
|
|
161
|
+
readonly evokes: "8-bit pixel corner brackets";
|
|
162
|
+
};
|
|
163
|
+
readonly scanline: {
|
|
164
|
+
readonly suitsSlots: readonly ["backdrop"];
|
|
165
|
+
readonly evokes: "CRT scanlines tiled across the surface";
|
|
166
|
+
};
|
|
167
|
+
readonly 'vine-corner': {
|
|
168
|
+
readonly suitsSlots: readonly ["borderImage", "decorationBefore"];
|
|
169
|
+
readonly evokes: "Tropical vines / leaves in corners";
|
|
170
|
+
};
|
|
171
|
+
readonly 'glow-aura': {
|
|
172
|
+
readonly suitsSlots: readonly ["backdrop", "decorationBefore", "decorationAfter"];
|
|
173
|
+
readonly evokes: "Soft radial glow halo behind the element";
|
|
174
|
+
};
|
|
175
|
+
readonly 'bracket-frame': {
|
|
176
|
+
readonly suitsSlots: readonly ["borderImage"];
|
|
177
|
+
readonly evokes: "Sci-fi targeting brackets on each corner";
|
|
178
|
+
};
|
|
179
|
+
readonly 'ribbon-edge': {
|
|
180
|
+
readonly suitsSlots: readonly ["decorationAfter", "decorationBefore"];
|
|
181
|
+
readonly evokes: "Bunting / banner saw-tooth edge";
|
|
182
|
+
};
|
|
183
|
+
readonly 'circuit-trace': {
|
|
184
|
+
readonly suitsSlots: readonly ["backdrop"];
|
|
185
|
+
readonly evokes: "PCB / circuit board trace pattern";
|
|
186
|
+
};
|
|
187
|
+
readonly 'candy-gloss': {
|
|
188
|
+
readonly suitsSlots: readonly ["backdrop", "decorationBefore"];
|
|
189
|
+
readonly evokes: "Glossy sugar highlight across the top — candy button shine";
|
|
190
|
+
};
|
|
191
|
+
readonly 'ornate-corner': {
|
|
192
|
+
readonly suitsSlots: readonly ["borderImage"];
|
|
193
|
+
readonly evokes: "Gothic filigree corner frame — dark fantasy, dungeon";
|
|
194
|
+
};
|
|
195
|
+
readonly 'royal-frame': {
|
|
196
|
+
readonly suitsSlots: readonly ["borderImage"];
|
|
197
|
+
readonly evokes: "Double gold-trim picture frame with corner studs — epic fantasy";
|
|
198
|
+
};
|
|
199
|
+
readonly 'hazard-stripes': {
|
|
200
|
+
readonly suitsSlots: readonly ["backdrop"];
|
|
201
|
+
readonly evokes: "Faint diagonal caution stripes — military / sci-fi warning panel";
|
|
202
|
+
};
|
|
203
|
+
readonly 'pixel-frame': {
|
|
204
|
+
readonly suitsSlots: readonly ["borderImage"];
|
|
205
|
+
readonly evokes: "NES dialog double-ring pixel border";
|
|
206
|
+
};
|
|
207
|
+
readonly 'grain-texture': {
|
|
208
|
+
readonly suitsSlots: readonly ["backdrop"];
|
|
209
|
+
readonly evokes: "Subtle parchment / leather grain tooth";
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
export declare const DEFAULT_THEME_TOKENS: Readonly<Record<string, unknown>>;
|
|
213
|
+
export declare const HUD_DECORATION_SVGS: Readonly<Record<string, string>>;
|
|
214
|
+
export declare const HUD_GLOW_KEYS: readonly ["aqua", "pink", "warm", "horror-red", "gold", "cyan", "none"];
|
|
215
|
+
export declare const HUD_ELEMENT_CLASSES: readonly ["progressBar", "healthBar", "counter", "iconText", "timer", "toast", "controls", "reticle", "mobileControls"];
|
|
216
|
+
export declare const HUD_SHAPE_TOKENS: readonly ["radiusPill", "radiusCard", "glow", "imageRendering", "borderWidth", "bevel", "gloss", "glowColor"];
|
|
217
|
+
export declare const HUD_COLOR_TOKENS: readonly ["primary", "danger", "warning", "success", "background", "surface", "text", "textMuted", "outline"];
|
|
218
|
+
export declare const HUD_REQUIRED_COLORS: readonly ["primary", "danger", "background", "surface", "text"];
|
|
219
|
+
export declare const HUD_DECORATION_SLOTS: readonly ["borderImage", "backdrop", "decorationBefore", "decorationAfter"];
|
|
220
|
+
export declare const HUD_ICON_SLOTS: readonly [{
|
|
221
|
+
readonly key: "heart";
|
|
222
|
+
readonly description: "Health label icon (shown next to \"HP\" on the player health bar). Default: filled heart.";
|
|
223
|
+
}, {
|
|
224
|
+
readonly key: "mouse";
|
|
225
|
+
readonly description: "Pointer-lock overlay icon (\"Click to play\" screen). Default: outlined mouse.";
|
|
226
|
+
}, {
|
|
227
|
+
readonly key: "arrow";
|
|
228
|
+
readonly description: "Movement-key arrow used in the controls overlay. ONE SVG — CSS rotates it for down/left/right. Default: thin chevron pointing up.";
|
|
229
|
+
}];
|
|
230
|
+
export declare const HUD_ICON_KEYS: ReadonlyArray<(typeof HUD_ICON_SLOTS)[number]["key"]>;
|
|
231
|
+
export interface CatalogValidationIssue {
|
|
232
|
+
path: string;
|
|
233
|
+
message: string;
|
|
234
|
+
suggestion?: string;
|
|
235
|
+
}
|
|
236
|
+
export { validateThemeStrict, validateThemeStrict as lightValidateTheme, isEngineFatalIssue, suggestClosest } from './theme-validate.js';
|