-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoolRegistry.js
More file actions
403 lines (397 loc) · 12.2 KB
/
toolRegistry.js
File metadata and controls
403 lines (397 loc) · 12.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
const TOOL_NAME_SUFFIX_PATTERN = /(?:^|[\s_-])(v2|v3|new|final|copy)(?:$|[\s_-])/i;
export const TOOL_REGISTRY = Object.freeze([
{
id: "vector-map-editor",
name: "Vector Map Editor",
displayName: "Vector Map Editor",
shortLabel: "Map",
path: "Vector Map Editor",
folderName: "Vector Map Editor",
entryPoint: "Vector Map Editor/index.html",
description: "Vector geometry authoring tool for map layout, collision review, and runtime export workflows.",
showcaseTag: "Geometry",
showcaseStatus: "Deterministic Runtime Ready",
active: true,
legacy: false,
order: 1,
sampleEntryPoints: [
{
label: "How To Use",
path: "Vector Map Editor/how_to_use.html"
},
{
label: "Sample 1208 - Tool Formatted Tiles Parallax",
path: "../samples/phase-12/1208/index.html"
}
],
visibleInToolsList: true
},
{
id: "vector-asset-studio",
name: "Vector Asset Studio",
displayName: "Vector Asset Studio",
shortLabel: "Asset",
path: "Vector Asset Studio",
folderName: "Vector Asset Studio",
entryPoint: "Vector Asset Studio/index.html",
description: "Vector authoring studio for SVG-first asset work and first-class vector output for the platform.",
showcaseTag: "Vector Assets",
showcaseStatus: "SVG Contract Ready",
active: true,
legacy: false,
order: 2,
sampleEntryPoints: [
{
label: "Sample Manifest",
path: "Vector Asset Studio/samples/sample-manifest.json"
},
{
label: "Sample 1208 - Tool Formatted Tiles Parallax",
path: "../samples/phase-12/1208/index.html"
}
],
visibleInToolsList: true
},
{
id: "tile-map-editor",
name: "Tilemap Studio",
displayName: "Tilemap Studio",
shortLabel: "Tile",
path: "Tilemap Studio",
folderName: "Tilemap Studio",
entryPoint: "Tilemap Studio/index.html",
description: "Tile map layout studio for layered map authoring, sample playback, simulation, and packaging flows.",
showcaseTag: "Tile Maps",
showcaseStatus: "Sample Loading Ready",
active: true,
legacy: false,
order: 3,
sampleEntryPoints: [
{
label: "How To Use",
path: "Tilemap Studio/how_to_use.html"
},
{
label: "Sample 1208 - Tool Formatted Tiles Parallax",
path: "../samples/phase-12/1208/index.html"
},
{
label: "Sample 1209 - Tilemap Basic Layout Preset",
path: "../samples/phase-12/1209/index.html"
},
{
label: "Sample 1210 - Tilemap Objective Layout Preset",
path: "../samples/phase-12/1210/index.html"
},
{
label: "Sample 1211 - Tilemap Mario Learning Layout Preset",
path: "../samples/phase-12/1211/index.html"
}
],
visibleInToolsList: true
},
{
id: "parallax-editor",
name: "Parallax Scene Studio",
displayName: "Parallax Scene Studio",
shortLabel: "Parallax",
path: "Parallax Scene Studio",
folderName: "Parallax Scene Studio",
entryPoint: "Parallax Scene Studio/index.html",
description: "Parallax composition studio for layered scene depth, sample loading, simulation, and export flows.",
showcaseTag: "Parallax",
showcaseStatus: "Scene Preview Ready",
active: true,
legacy: false,
order: 4,
sampleEntryPoints: [
{
label: "Sample Manifest",
path: "Parallax Scene Studio/samples/sample-manifest.json"
},
{
label: "Sample 1208 - Tool Formatted Tiles Parallax",
path: "../samples/phase-12/1208/index.html"
}
],
visibleInToolsList: true
},
{
id: "sprite-editor",
name: "Sprite Editor",
displayName: "Sprite Editor",
shortLabel: "Sprite",
path: "Sprite Editor",
folderName: "Sprite Editor",
entryPoint: "Sprite Editor/index.html",
description: "Pixel-art authoring workspace for palette-locked sprite sheets, animation frames, and registry-aware sprite projects.",
showcaseTag: "Sprites",
showcaseStatus: "First-Class Workspace",
active: true,
legacy: false,
order: 5,
sampleEntryPoints: [
{
label: "README",
path: "Sprite Editor/README.md"
}
],
visibleInToolsList: true
},
{
id: "skin-editor",
name: "Primitive Skin Editor",
displayName: "Primitive Skin Editor",
shortLabel: "Skin",
path: "Skin Editor",
folderName: "Skin Editor",
entryPoint: "Skin Editor/index.html",
description: "Primitive shape skin authoring workflow for game color and sizing presets across playable arcade titles.",
showcaseTag: "Primitive Skins",
showcaseStatus: "Game Skin Ready",
active: true,
legacy: false,
order: 5.5,
sampleEntryPoints: [
{
label: "How To Use",
path: "Skin Editor/how_to_use.html"
},
{
label: "README",
path: "Skin Editor/README.md"
}
],
visibleInToolsList: true
},
{
id: "asset-browser",
name: "Asset Browser / Import Hub",
displayName: "Asset Browser / Import Hub",
shortLabel: "Import",
path: "Asset Browser",
folderName: "Asset Browser",
entryPoint: "Asset Browser/index.html",
description: "Approved asset browsing and non-destructive import planning surface for vectors, palettes, parallax, tilemaps, and sprite workflow assets.",
showcaseTag: "Asset Workflow",
showcaseStatus: "Import Planning Ready",
active: true,
legacy: false,
order: 6,
sampleEntryPoints: [
{
label: "README",
path: "Asset Browser/README.md"
}
],
visibleInToolsList: true
},
{
id: "palette-browser",
name: "Palette Browser / Manager",
displayName: "Palette Browser / Manager",
shortLabel: "Palette",
path: "Palette Browser",
folderName: "Palette Browser",
entryPoint: "Palette Browser/index.html",
description: "Shared palette browsing and management surface for engine palettes and local editable palette workflows.",
showcaseTag: "Palettes",
showcaseStatus: "Shared Contract Ready",
active: true,
legacy: false,
order: 7,
sampleEntryPoints: [
{
label: "README",
path: "Palette Browser/README.md"
}
],
visibleInToolsList: true
},
{
id: "state-inspector",
name: "State Inspector",
displayName: "State Inspector",
shortLabel: "Inspect",
path: "State Inspector",
folderName: "State Inspector",
entryPoint: "State Inspector/index.html",
description: "Read-only state visibility tool for host context, storage snapshots, and structured runtime payload inspection.",
showcaseTag: "Debug",
showcaseStatus: "Inspector Baseline",
active: true,
legacy: false,
order: 8,
sampleEntryPoints: [],
visibleInToolsList: true
},
{
id: "replay-visualizer",
name: "Replay Visualizer",
displayName: "Replay Visualizer",
shortLabel: "Replay",
path: "Replay Visualizer",
folderName: "Replay Visualizer",
entryPoint: "Replay Visualizer/index.html",
description: "Event replay timeline viewer for stepping, autoplay, and frame inspection of runtime event streams.",
showcaseTag: "Debug",
showcaseStatus: "Replay Baseline",
active: true,
legacy: false,
order: 9,
sampleEntryPoints: [],
visibleInToolsList: true
},
{
id: "performance-profiler",
name: "Performance Profiler",
displayName: "Performance Profiler",
shortLabel: "Perf",
path: "Performance Profiler",
folderName: "Performance Profiler",
entryPoint: "Performance Profiler/index.html",
description: "Baseline performance profiler for frame cadence and deterministic workload timing summaries.",
showcaseTag: "Debug",
showcaseStatus: "Profiler Baseline",
active: true,
legacy: false,
order: 10,
sampleEntryPoints: [],
visibleInToolsList: true
},
{
id: "physics-sandbox",
name: "Physics Sandbox",
displayName: "Physics Sandbox",
shortLabel: "Physics",
path: "Physics Sandbox",
folderName: "Physics Sandbox",
entryPoint: "Physics Sandbox/index.html",
description: "Minimal reusable physics helper sandbox for acceleration, drag, and integration previews.",
showcaseTag: "Debug",
showcaseStatus: "Physics Baseline",
active: true,
legacy: false,
order: 11,
sampleEntryPoints: [],
visibleInToolsList: true
},
{
id: "asset-pipeline-tool",
name: "Asset Pipeline Tool",
displayName: "Asset Pipeline Tool",
shortLabel: "Pipeline",
path: "Asset Pipeline Tool",
folderName: "Asset Pipeline Tool",
entryPoint: "Asset Pipeline Tool/index.html",
description: "Launchable shared pipeline surface for load, validate, normalize, and emit contract checks.",
showcaseTag: "Pipeline",
showcaseStatus: "Pipeline Baseline",
active: true,
legacy: false,
order: 12,
sampleEntryPoints: [],
visibleInToolsList: true
},
{
id: "tile-model-converter",
name: "Tile Model Converter",
displayName: "Tile Model Converter",
shortLabel: "Convert",
path: "Tile Model Converter",
folderName: "Tile Model Converter",
entryPoint: "Tile Model Converter/index.html",
description: "Shared asset-converter surface for tile/vector conversion requests using normalized converter contracts.",
showcaseTag: "Pipeline",
showcaseStatus: "Converter Baseline",
active: true,
legacy: false,
order: 13,
sampleEntryPoints: [],
visibleInToolsList: true
},
{
id: "3d-json-payload-normalizer",
name: "3D JSON Payload Normalizer",
displayName: "3D JSON Payload Normalizer",
shortLabel: "3D JSON",
path: "3D JSON Payload Normalizer",
folderName: "3D JSON Payload Normalizer",
entryPoint: "3D JSON Payload Normalizer/index.html",
description: "3D payload normalization utility for point/segment JSON documents with deterministic sanitized output.",
showcaseTag: "3D",
showcaseStatus: "3D Baseline",
active: true,
legacy: false,
order: 14,
sampleEntryPoints: [],
visibleInToolsList: true
},
{
id: "3d-asset-viewer",
name: "3D Asset Viewer",
displayName: "3D Asset Viewer",
shortLabel: "3D View",
path: "3D Asset Viewer",
folderName: "3D Asset Viewer",
entryPoint: "3D Asset Viewer/index.html",
description: "Baseline 3D asset metadata viewer for vertices, bounds, and normalized runtime payload inspection.",
showcaseTag: "3D",
showcaseStatus: "3D Baseline",
readOnly: true,
active: true,
legacy: false,
order: 15,
sampleEntryPoints: [],
visibleInToolsList: true
},
{
id: "3d-camera-path-editor",
name: "3D Camera Path Editor",
displayName: "3D Camera Path Editor",
shortLabel: "3D Cam",
path: "3D Camera Path Editor",
folderName: "3D Camera Path Editor",
entryPoint: "3D Camera Path Editor/index.html",
description: "Baseline 3D camera path editor for waypoint timeline authoring and deterministic JSON export.",
showcaseTag: "3D",
showcaseStatus: "3D Baseline",
active: true,
legacy: false,
order: 16,
sampleEntryPoints: [],
visibleInToolsList: true
},
{
id: "sprite-editor-old-keep",
name: "SpriteEditor_old_keep",
displayName: "SpriteEditor_old_keep",
shortLabel: "Legacy",
path: "SpriteEditor_old_keep",
folderName: "SpriteEditor_old_keep",
entryPoint: "SpriteEditor_old_keep/index.html",
description: "Preserved historical sprite editor kept on disk for legacy reference only.",
active: false,
legacy: true,
order: 999,
visibleInToolsList: false
}
]);
export { TOOL_NAME_SUFFIX_PATTERN };
export function getToolRegistry() {
return TOOL_REGISTRY.map((tool) => ({
...tool,
sampleEntryPoints: Array.isArray(tool.sampleEntryPoints) ? tool.sampleEntryPoints.map((entry) => ({ ...entry })) : []
}));
}
export function getToolById(toolId) {
return getToolRegistry().find((tool) => tool.id === toolId) ?? null;
}
export function getActiveToolRegistry() {
return getToolRegistry()
.filter((tool) => tool.active === true)
.sort((left, right) => (left.order ?? Number.MAX_SAFE_INTEGER) - (right.order ?? Number.MAX_SAFE_INTEGER));
}
export function getVisibleActiveToolRegistry() {
return getActiveToolRegistry().filter((tool) => tool.visibleInToolsList === true);
}