-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMultiLayerCompiler.ts
More file actions
57 lines (50 loc) · 1.83 KB
/
Copy pathMultiLayerCompiler.ts
File metadata and controls
57 lines (50 loc) · 1.83 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
/**
* @fileoverview Multi-Layer Compiler (RETIRED)
*
* MultiLayerCompiler was retired 2026-06-17 along with the apex-poison web compilers
* it depended on (BabylonCompiler, VRRCompiler, ARCompiler). The 'multi-layer' export
* target is no longer dispatched from ExportManager.
*
* Preserved as a type-stub so legacy imports compile without hard errors during
* the transition window. Remove after all callers have been updated.
*
* Idea seed: see docs/handbooks/idea-seeds.md
* "Resurrect Apex-Poison Compilers as Fire-and-Forget Export Targets"
*/
import { CompilerBase } from './CompilerBase';
import { ANSCapabilityPath, type ANSCapabilityPathValue } from '@holoscript/core-types/ans';
export interface MultiLayerCompilerOptions {
targets: Array<'vr' | 'vrr' | 'ar'>;
minify: boolean;
source_maps: boolean;
}
export interface MultiLayerCompilationResult {
vr?: string;
vrr?: Record<string, unknown>;
ar?: Record<string, unknown>;
success: boolean;
warnings: string[];
errors: string[];
}
/** @deprecated Retired 2026-06-17 — apex-poison compiler dependencies removed. */
export class MultiLayerCompiler extends CompilerBase {
protected readonly compilerName = 'MultiLayerCompiler';
protected override getRequiredCapability(): ANSCapabilityPathValue {
return ANSCapabilityPath.MULTI_LAYER;
}
constructor(_options: MultiLayerCompilerOptions) {
super();
}
compile(
_composition: unknown,
_agentToken: string,
_outputPath?: string
): never {
throw new Error(
'MultiLayerCompiler has been retired. Its dependencies (BabylonCompiler, VRRCompiler, ARCompiler) ' +
'were apex-poison web compilers removed in 2026-06-17. ' +
'Use the native BrowserRuntime path for VR/AR delivery. ' +
'See docs/handbooks/idea-seeds.md for the planned fire-and-forget export revival.'
);
}
}