@vib3code/sdk 2.0.1 → 2.0.3-canary.75a3290
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/CHANGELOG.md +36 -0
- package/DOCS/AGENT_HARNESS_ARCHITECTURE.md +243 -0
- package/DOCS/CLI_ONBOARDING.md +1 -1
- package/DOCS/CROSS_SITE_DESIGN_PATTERNS.md +117 -0
- package/DOCS/EPIC_SCROLL_EVENTS.md +773 -0
- package/DOCS/HANDOFF_LANDING_PAGE.md +154 -0
- package/DOCS/HANDOFF_SDK_DEVELOPMENT.md +493 -0
- package/DOCS/MULTIVIZ_CHOREOGRAPHY_PATTERNS.md +937 -0
- package/DOCS/PRODUCT_STRATEGY.md +63 -0
- package/DOCS/README.md +103 -0
- package/DOCS/REFERENCE_SCROLL_ANALYSIS.md +97 -0
- package/DOCS/ROADMAP.md +111 -0
- package/DOCS/SCROLL_TIMELINE_v3.md +269 -0
- package/DOCS/SITE_REFACTOR_PLAN.md +100 -0
- package/DOCS/STATUS.md +24 -0
- package/DOCS/SYSTEM_INVENTORY.md +33 -30
- package/DOCS/VISUAL_ANALYSIS_CLICKERSS.md +85 -0
- package/DOCS/VISUAL_ANALYSIS_FACETAD.md +133 -0
- package/DOCS/VISUAL_ANALYSIS_SIMONE.md +95 -0
- package/DOCS/VISUAL_ANALYSIS_TABLESIDE.md +86 -0
- package/DOCS/{BLUEPRINT_EXECUTION_PLAN_2026-01-07.md → archive/BLUEPRINT_EXECUTION_PLAN_2026-01-07.md} +1 -1
- package/DOCS/{DEV_TRACK_ANALYSIS.md → archive/DEV_TRACK_ANALYSIS.md} +3 -0
- package/DOCS/{SYSTEM_AUDIT_2026-01-30.md → archive/SYSTEM_AUDIT_2026-01-30.md} +3 -0
- package/DOCS/{DEV_TRACK_SESSION_2026-01-31.md → dev-tracks/DEV_TRACK_SESSION_2026-01-31.md} +1 -1
- package/DOCS/dev-tracks/DEV_TRACK_SESSION_2026-02-06.md +231 -0
- package/DOCS/dev-tracks/DEV_TRACK_SESSION_2026-02-13.md +127 -0
- package/DOCS/dev-tracks/DEV_TRACK_SESSION_2026-02-15.md +142 -0
- package/DOCS/dev-tracks/README.md +10 -0
- package/README.md +26 -13
- package/cpp/CMakeLists.txt +236 -0
- package/cpp/bindings/embind.cpp +269 -0
- package/cpp/build.sh +129 -0
- package/cpp/geometry/Crystal.cpp +103 -0
- package/cpp/geometry/Fractal.cpp +136 -0
- package/cpp/geometry/GeometryGenerator.cpp +262 -0
- package/cpp/geometry/KleinBottle.cpp +71 -0
- package/cpp/geometry/Sphere.cpp +134 -0
- package/cpp/geometry/Tesseract.cpp +94 -0
- package/cpp/geometry/Tetrahedron.cpp +83 -0
- package/cpp/geometry/Torus.cpp +65 -0
- package/cpp/geometry/WarpFunctions.cpp +238 -0
- package/cpp/geometry/Wave.cpp +85 -0
- package/cpp/include/vib3_ffi.h +238 -0
- package/cpp/math/Mat4x4.cpp +409 -0
- package/cpp/math/Mat4x4.hpp +209 -0
- package/cpp/math/Projection.cpp +142 -0
- package/cpp/math/Projection.hpp +148 -0
- package/cpp/math/Rotor4D.cpp +322 -0
- package/cpp/math/Rotor4D.hpp +204 -0
- package/cpp/math/Vec4.cpp +303 -0
- package/cpp/math/Vec4.hpp +225 -0
- package/cpp/src/vib3_ffi.cpp +607 -0
- package/cpp/tests/Geometry_test.cpp +213 -0
- package/cpp/tests/Mat4x4_test.cpp +494 -0
- package/cpp/tests/Projection_test.cpp +298 -0
- package/cpp/tests/Rotor4D_test.cpp +423 -0
- package/cpp/tests/Vec4_test.cpp +489 -0
- package/package.json +40 -27
- package/src/agent/index.js +1 -3
- package/src/agent/mcp/MCPServer.js +918 -0
- package/src/agent/mcp/index.js +1 -1
- package/src/agent/mcp/stdio-server.js +264 -0
- package/src/agent/mcp/tools.js +454 -0
- package/src/cli/index.js +374 -44
- package/src/core/CanvasManager.js +97 -204
- package/src/core/ErrorReporter.js +1 -1
- package/src/core/Parameters.js +1 -1
- package/src/core/VIB3Engine.js +93 -4
- package/src/core/VitalitySystem.js +53 -0
- package/src/core/index.js +18 -0
- package/src/core/renderers/FacetedRendererAdapter.js +10 -9
- package/src/core/renderers/HolographicRendererAdapter.js +13 -9
- package/src/core/renderers/QuantumRendererAdapter.js +11 -7
- package/src/creative/AestheticMapper.js +628 -0
- package/src/creative/ChoreographyPlayer.js +481 -0
- package/src/creative/index.js +11 -0
- package/src/export/TradingCardManager.js +3 -4
- package/src/export/index.js +11 -1
- package/src/faceted/FacetedSystem.js +241 -388
- package/src/holograms/HolographicVisualizer.js +29 -12
- package/src/holograms/RealHolographicSystem.js +194 -43
- package/src/math/index.js +7 -7
- package/src/polychora/PolychoraSystem.js +77 -0
- package/src/quantum/QuantumEngine.js +103 -66
- package/src/quantum/QuantumVisualizer.js +7 -2
- package/src/reactivity/index.js +3 -5
- package/src/render/LayerPresetManager.js +372 -0
- package/src/render/LayerReactivityBridge.js +344 -0
- package/src/render/LayerRelationshipGraph.js +610 -0
- package/src/render/MultiCanvasBridge.js +148 -25
- package/src/render/UnifiedRenderBridge.js +3 -0
- package/src/render/index.js +27 -2
- package/src/scene/index.js +4 -4
- package/src/shaders/faceted/faceted.frag.glsl +220 -80
- package/src/shaders/faceted/faceted.frag.wgsl +138 -97
- package/src/shaders/holographic/holographic.frag.glsl +28 -9
- package/src/shaders/holographic/holographic.frag.wgsl +107 -38
- package/src/shaders/quantum/quantum.frag.glsl +1 -0
- package/src/shaders/quantum/quantum.frag.wgsl +1 -1
- package/src/testing/ParallelTestFramework.js +2 -2
- package/src/viewer/GalleryUI.js +17 -0
- package/src/viewer/ViewerPortal.js +2 -2
- package/src/viewer/index.js +1 -1
- package/tools/headless-renderer.js +258 -0
- package/tools/shader-sync-verify.js +8 -4
- package/tools/site-analysis/all-reports.json +32 -0
- package/tools/site-analysis/combined-analysis.md +50 -0
- package/tools/site-analyzer.mjs +779 -0
- package/tools/visual-catalog/capture.js +276 -0
- package/tools/visual-catalog/composite.js +138 -0
- package/types/adaptive-sdk.d.ts +204 -5
- package/types/agent/cli.d.ts +78 -0
- package/types/agent/index.d.ts +18 -0
- package/types/agent/mcp.d.ts +87 -0
- package/types/agent/telemetry.d.ts +190 -0
- package/types/core/VIB3Engine.d.ts +26 -0
- package/types/core/index.d.ts +261 -0
- package/types/creative/AestheticMapper.d.ts +72 -0
- package/types/creative/ChoreographyPlayer.d.ts +96 -0
- package/types/creative/index.d.ts +17 -0
- package/types/export/index.d.ts +243 -0
- package/types/geometry/index.d.ts +164 -0
- package/types/math/index.d.ts +214 -0
- package/types/render/LayerPresetManager.d.ts +78 -0
- package/types/render/LayerReactivityBridge.d.ts +85 -0
- package/types/render/LayerRelationshipGraph.d.ts +174 -0
- package/types/render/index.d.ts +3 -0
- package/types/scene/index.d.ts +204 -0
- package/types/systems/index.d.ts +244 -0
- package/types/variations/index.d.ts +62 -0
- package/types/viewer/index.d.ts +225 -0
- /package/DOCS/{DEV_TRACK_PLAN_2026-01-07.md → archive/DEV_TRACK_PLAN_2026-01-07.md} +0 -0
- /package/DOCS/{SESSION_014_PLAN.md → archive/SESSION_014_PLAN.md} +0 -0
- /package/DOCS/{SESSION_LOG_2026-01-07.md → archive/SESSION_LOG_2026-01-07.md} +0 -0
- /package/DOCS/{STRATEGIC_BLUEPRINT_2026-01-07.md → archive/STRATEGIC_BLUEPRINT_2026-01-07.md} +0 -0
- /package/src/viewer/{ReactivityManager.js → ViewerInputHandler.js} +0 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Viewer Module TypeScript Definitions
|
|
3
|
+
* ViewerPortal, ViewerInputHandler, GalleryUI, CardBending,
|
|
4
|
+
* AudioReactivity, TradingCardExporter
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// ============================================================================
|
|
8
|
+
// ViewerPortal
|
|
9
|
+
// ============================================================================
|
|
10
|
+
|
|
11
|
+
/** Portal display mode */
|
|
12
|
+
export type PortalMode = 'card' | 'fullscreen' | 'embedded' | 'pip';
|
|
13
|
+
|
|
14
|
+
/** Projection type for 4D→3D */
|
|
15
|
+
export type ProjectionType = 'perspective' | 'stereographic' | 'orthographic';
|
|
16
|
+
|
|
17
|
+
/** 6D rotation state */
|
|
18
|
+
export interface RotationState {
|
|
19
|
+
XY: number;
|
|
20
|
+
XZ: number;
|
|
21
|
+
YZ: number;
|
|
22
|
+
XW: number;
|
|
23
|
+
YW: number;
|
|
24
|
+
ZW: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ViewerPortalOptions {
|
|
28
|
+
mode?: PortalMode;
|
|
29
|
+
projection?: ProjectionType;
|
|
30
|
+
enableMouse?: boolean;
|
|
31
|
+
enableOrientation?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Viewer portal for displaying 4D visualizations.
|
|
36
|
+
* Supports multiple display modes, input handling, and export.
|
|
37
|
+
*/
|
|
38
|
+
export declare class ViewerPortal {
|
|
39
|
+
mode: PortalMode;
|
|
40
|
+
projection: ProjectionType;
|
|
41
|
+
rotation: RotationState;
|
|
42
|
+
|
|
43
|
+
constructor(options?: ViewerPortalOptions);
|
|
44
|
+
|
|
45
|
+
/** Set display mode. */
|
|
46
|
+
setMode(mode: PortalMode): void;
|
|
47
|
+
|
|
48
|
+
/** Set projection type. */
|
|
49
|
+
setProjection(projection: ProjectionType): void;
|
|
50
|
+
|
|
51
|
+
/** Set rotation on a specific plane. */
|
|
52
|
+
setRotation(plane: string, angle: number): void;
|
|
53
|
+
|
|
54
|
+
/** Get all rotation values. */
|
|
55
|
+
getRotation(): RotationState;
|
|
56
|
+
|
|
57
|
+
/** Export current view as image data URL. */
|
|
58
|
+
exportImage(format?: string, quality?: number): string;
|
|
59
|
+
|
|
60
|
+
/** Destroy and clean up. */
|
|
61
|
+
destroy(): void;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// ============================================================================
|
|
65
|
+
// ViewerInputHandler
|
|
66
|
+
// ============================================================================
|
|
67
|
+
|
|
68
|
+
/** Input source type */
|
|
69
|
+
export type InputSource = 'keyboard' | 'mouse' | 'wheel' | 'touch' | 'orientation' | 'gamepad';
|
|
70
|
+
|
|
71
|
+
/** Input preset */
|
|
72
|
+
export type InputPreset = 'default' | 'gaming' | 'presentation' | 'accessibility';
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Universal input handler for viewer interactions.
|
|
76
|
+
* Supports keyboard, mouse, wheel, touch, orientation, and gamepad.
|
|
77
|
+
*/
|
|
78
|
+
export declare class ViewerInputHandler {
|
|
79
|
+
constructor(options?: { preset?: InputPreset });
|
|
80
|
+
|
|
81
|
+
/** Enable/disable an input source. */
|
|
82
|
+
setEnabled(source: InputSource, enabled: boolean): void;
|
|
83
|
+
|
|
84
|
+
/** Load an input preset. */
|
|
85
|
+
loadPreset(preset: InputPreset): void;
|
|
86
|
+
|
|
87
|
+
/** Get current input state. */
|
|
88
|
+
getState(): Record<string, any>;
|
|
89
|
+
|
|
90
|
+
/** Destroy all listeners. */
|
|
91
|
+
destroy(): void;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// ============================================================================
|
|
95
|
+
// GalleryUI
|
|
96
|
+
// ============================================================================
|
|
97
|
+
|
|
98
|
+
/** Gallery view mode */
|
|
99
|
+
export type GalleryViewMode = 'grid' | 'list' | 'carousel';
|
|
100
|
+
|
|
101
|
+
/** Gallery sort option */
|
|
102
|
+
export type GallerySortBy = 'date' | 'name' | 'system' | 'geometry';
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Gallery UI for browsing and managing saved visualizations.
|
|
106
|
+
* Supports 100 variation slots per system with search, sort, and filter.
|
|
107
|
+
*/
|
|
108
|
+
export declare class GalleryUI {
|
|
109
|
+
viewMode: GalleryViewMode;
|
|
110
|
+
sortBy: GallerySortBy;
|
|
111
|
+
searchQuery: string;
|
|
112
|
+
currentPage: number;
|
|
113
|
+
|
|
114
|
+
constructor(options?: { viewMode?: GalleryViewMode; sortBy?: GallerySortBy });
|
|
115
|
+
|
|
116
|
+
/** Set view mode. */
|
|
117
|
+
setViewMode(mode: GalleryViewMode): void;
|
|
118
|
+
|
|
119
|
+
/** Set sort order. */
|
|
120
|
+
setSortBy(sort: GallerySortBy): void;
|
|
121
|
+
|
|
122
|
+
/** Render the gallery. */
|
|
123
|
+
render(): void;
|
|
124
|
+
|
|
125
|
+
/** Destroy and clean up. */
|
|
126
|
+
destroy(): void;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// ============================================================================
|
|
130
|
+
// CardBending
|
|
131
|
+
// ============================================================================
|
|
132
|
+
|
|
133
|
+
/** Bend preset name */
|
|
134
|
+
export type BendPreset = 'flat' | 'gentle' | 'dramatic' | 'extreme' | 'wave' | 'twist';
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Card bending system mapping physical bend to 6D rotation.
|
|
138
|
+
* Supports orientation input and parallax layer effects.
|
|
139
|
+
*/
|
|
140
|
+
export declare class CardBending {
|
|
141
|
+
constructor();
|
|
142
|
+
|
|
143
|
+
/** Apply a bend preset. */
|
|
144
|
+
applyPreset(preset: BendPreset): void;
|
|
145
|
+
|
|
146
|
+
/** Get 6D rotation mapping from current bend state. */
|
|
147
|
+
getRotationMapping(): RotationState;
|
|
148
|
+
|
|
149
|
+
/** Serialize current state. */
|
|
150
|
+
serialize(): object;
|
|
151
|
+
|
|
152
|
+
/** Deserialize from saved state. */
|
|
153
|
+
deserialize(data: object): void;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// ============================================================================
|
|
157
|
+
// AudioReactivity (viewer)
|
|
158
|
+
// ============================================================================
|
|
159
|
+
|
|
160
|
+
/** Audio frequency band */
|
|
161
|
+
export type FrequencyBand = 'bass' | 'mid' | 'high' | 'sub' | 'presence';
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Audio reactivity system for viewer.
|
|
165
|
+
* Maps frequency bands to rotation and visual parameter changes.
|
|
166
|
+
*/
|
|
167
|
+
export declare class AudioReactivity {
|
|
168
|
+
constructor(options?: { bands?: FrequencyBand[] });
|
|
169
|
+
|
|
170
|
+
/** Get rotation mapping from audio data. */
|
|
171
|
+
getRotationMapping(): Partial<RotationState>;
|
|
172
|
+
|
|
173
|
+
/** Serialize configuration. */
|
|
174
|
+
serialize(): object;
|
|
175
|
+
|
|
176
|
+
/** Deserialize configuration. */
|
|
177
|
+
deserialize(data: object): void;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// ============================================================================
|
|
181
|
+
// TradingCardExporter
|
|
182
|
+
// ============================================================================
|
|
183
|
+
|
|
184
|
+
/** Card size (5:7 aspect ratio) */
|
|
185
|
+
export interface CardSize {
|
|
186
|
+
width: number;
|
|
187
|
+
height: number;
|
|
188
|
+
label: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/** Frame style for trading cards */
|
|
192
|
+
export type FrameStyle = 'none' | 'simple' | 'ornate' | 'holographic' | 'neon';
|
|
193
|
+
|
|
194
|
+
/** Rarity level */
|
|
195
|
+
export type RarityLevel = 'common' | 'uncommon' | 'rare' | 'epic' | 'legendary' | 'mythic';
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Exports visualizations as trading card images.
|
|
199
|
+
* Supports multiple sizes, frame styles, rarity levels, and metadata.
|
|
200
|
+
*/
|
|
201
|
+
export declare class TradingCardExporter {
|
|
202
|
+
constructor();
|
|
203
|
+
|
|
204
|
+
/** Get available card sizes (all 5:7 ratio). */
|
|
205
|
+
getCardSizes(): CardSize[];
|
|
206
|
+
|
|
207
|
+
/** Get available frame styles. */
|
|
208
|
+
getFrameStyles(): FrameStyle[];
|
|
209
|
+
|
|
210
|
+
/** Get available rarity levels. */
|
|
211
|
+
getRarityLevels(): RarityLevel[];
|
|
212
|
+
|
|
213
|
+
/** Export a trading card image. */
|
|
214
|
+
exportCard(options: {
|
|
215
|
+
canvas: HTMLCanvasElement;
|
|
216
|
+
size?: CardSize;
|
|
217
|
+
frame?: FrameStyle;
|
|
218
|
+
rarity?: RarityLevel;
|
|
219
|
+
title?: string;
|
|
220
|
+
metadata?: Record<string, string>;
|
|
221
|
+
}): Promise<Blob | null>;
|
|
222
|
+
|
|
223
|
+
/** Serialize exporter configuration. */
|
|
224
|
+
serialize(): object;
|
|
225
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/DOCS/{STRATEGIC_BLUEPRINT_2026-01-07.md → archive/STRATEGIC_BLUEPRINT_2026-01-07.md}
RENAMED
|
File without changes
|
|
File without changes
|