-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtoolRegistry.js
More file actions
502 lines (495 loc) · 15.6 KB
/
toolRegistry.js
File metadata and controls
502 lines (495 loc) · 15.6 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
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
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",
shortDescription: "Place and arrange vector assets in space. Build layouts, scenes, and maps.",
shortLabel: "Map",
path: "Vector Map Editor",
folderName: "Vector Map Editor",
entryPoint: "Vector Map Editor/index.html",
description: "Place and arrange vector assets in space. Build layouts, scenes, and maps.",
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: "svg-asset-studio",
name: "SVG Asset Studio",
displayName: "SVG Asset Studio",
shortDescription: "Create and edit reusable vector (SVG) assets. Build shapes, icons, and asset components.",
shortLabel: "Asset",
path: "SVG Asset Studio",
folderName: "SVG Asset Studio",
entryPoint: "SVG Asset Studio/index.html",
description: "Create and edit reusable vector (SVG) assets. Build shapes, icons, and asset components.",
showcaseTag: "Vector Assets",
showcaseStatus: "SVG Contract Ready",
active: true,
legacy: false,
order: 2,
sampleEntryPoints: [
{
label: "Sample Manifest",
path: "SVG 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",
shortDescription: "Layered Scene & Depth Composition",
shortLabel: "Parallax",
path: "Parallax Scene Studio",
folderName: "Parallax Scene Studio",
entryPoint: "Parallax Scene Studio/index.html",
description: "Parallax Scene Studio: compose layered backgrounds, midgrounds, and foreground scene depth.",
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",
shortDescription: "Palette-locked sprite and frame editing",
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",
shortDescription: "Approved asset browse and import planning",
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: "asset-manager-v2",
name: "Asset Manager V2",
displayName: "Asset Manager V2",
shortDescription: "Asset-only manager for validated audio, color, data, font, image, localization, shader, and video entries.",
shortLabel: "Assets",
path: "asset-manager-v2",
folderName: "asset-manager-v2",
entryPoint: "asset-manager-v2/index.html",
description: "First-Class Tool V2 surface for validating Asset Manager V2 entries from Workspace Manager V2 launch context.",
showcaseTag: "Assets",
showcaseStatus: "Schema Validated",
active: true,
legacy: false,
order: 6.5,
sampleEntryPoints: [
{
label: "README",
path: "asset-manager-v2/README.md"
}
],
visibleInToolsList: true
},
{
id: "workspace-manager-v2",
name: "Workspace Manager V2",
displayName: "Workspace Manager V2",
shortDescription: "Owns active game, palette, asset registry, and Asset Manager V2 launch context.",
shortLabel: "Workspace",
path: "workspace-manager-v2",
folderName: "workspace-manager-v2",
entryPoint: "workspace-manager-v2/index.html",
description: "First-Class Tool V2 workspace surface for games-only context selection and Asset Manager V2 session launch.",
showcaseTag: "Workspace",
showcaseStatus: "Context Bootstrap",
active: true,
legacy: false,
order: 6.75,
sampleEntryPoints: [
{
label: "README",
path: "workspace-manager-v2/README.md"
}
],
visibleInToolsList: true
},
{
id: "palette-manager-v2",
name: "Palette Manager V2",
displayName: "Palette Manager V2",
shortLabel: "Palette",
path: "palette-manager-v2",
folderName: "palette-manager-v2",
entryPoint: "palette-manager-v2/index.html",
description: "Global Palette Manager V2 surface for user swatches and browse-only source palette pinning.",
showcaseTag: "Palettes",
showcaseStatus: "Global Palette Ready",
active: true,
legacy: false,
order: 7,
sampleEntryPoints: [
{
label: "README",
path: "palette-manager-v2/README.md"
}
],
visibleInToolsList: true
},
{
id: "preview-generator-v2",
name: "Preview Generator V2",
displayName: "Preview Generator V2",
shortDescription: "Generate preview.svg assets for samples, games, and tools.",
shortLabel: "Preview",
path: "preview-generator-v2",
folderName: "preview-generator-v2",
entryPoint: "preview-generator-v2/index.html",
description: "Cold-copied preview.svg generator for samples, games, and tools.",
showcaseTag: "Preview",
showcaseStatus: "Cold Copy",
active: true,
legacy: false,
order: 7.5,
sampleEntryPoints: [],
visibleInToolsList: true
},
{
id: "session-inspector-v2",
name: "Session Inspector V2",
displayName: "Session Inspector V2",
shortDescription: "Current-origin session and storage inspection with explicit cleanup controls.",
shortLabel: "Session",
path: "session-inspector-v2",
folderName: "session-inspector-v2",
entryPoint: "session-inspector-v2/index.html",
description: "First-class V2 tool for inspecting and explicitly clearing current-origin sessionStorage and localStorage values without cross-tool handoff writes.",
showcaseTag: "Debug",
showcaseStatus: "Storage Cleanup",
readOnly: false,
active: true,
legacy: false,
order: 7.75,
sampleEntryPoints: [
{
label: "README",
path: "session-inspector-v2/README.md"
}
],
visibleInToolsList: true
},
{
id: "state-inspector",
name: "State Inspector",
displayName: "State Inspector",
shortDescription: "Host/runtime state snapshot inspection",
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",
name: "Asset Pipeline",
displayName: "Asset Pipeline",
shortLabel: "Pipeline",
path: "Asset Pipeline",
folderName: "Asset Pipeline",
entryPoint: "Asset Pipeline/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",
name: "3D JSON Payload",
displayName: "3D JSON Payload",
shortLabel: "3D JSON",
path: "3D JSON Payload",
folderName: "3D JSON Payload",
entryPoint: "3D JSON Payload/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 resolveToolIdAlias(toolId) {
return typeof toolId === "string" ? toolId.trim() : "";
}
export function getToolRegistry() {
return TOOL_REGISTRY.map((tool) => ({
...tool,
sampleEntryPoints: Array.isArray(tool.sampleEntryPoints) ? tool.sampleEntryPoints.map((entry) => ({ ...entry })) : []
}));
}
export function getToolById(toolId) {
const resolvedToolId = resolveToolIdAlias(toolId);
return getToolRegistry().find((tool) => tool.id === resolvedToolId) ?? 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);
}