@vib3code/sdk 2.0.1 → 2.0.3-canary.91a95f3

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.
Files changed (96) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/DOCS/AGENT_HARNESS_ARCHITECTURE.md +243 -0
  3. package/DOCS/CLI_ONBOARDING.md +1 -1
  4. package/DOCS/CROSS_SITE_DESIGN_PATTERNS.md +117 -0
  5. package/DOCS/EPIC_SCROLL_EVENTS.md +773 -0
  6. package/DOCS/HANDOFF_LANDING_PAGE.md +154 -0
  7. package/DOCS/HANDOFF_SDK_DEVELOPMENT.md +493 -0
  8. package/DOCS/MULTIVIZ_CHOREOGRAPHY_PATTERNS.md +937 -0
  9. package/DOCS/PRODUCT_STRATEGY.md +63 -0
  10. package/DOCS/README.md +103 -0
  11. package/DOCS/REFERENCE_SCROLL_ANALYSIS.md +97 -0
  12. package/DOCS/ROADMAP.md +111 -0
  13. package/DOCS/SCROLL_TIMELINE_v3.md +269 -0
  14. package/DOCS/SITE_REFACTOR_PLAN.md +100 -0
  15. package/DOCS/STATUS.md +24 -0
  16. package/DOCS/SYSTEM_INVENTORY.md +33 -30
  17. package/DOCS/VISUAL_ANALYSIS_CLICKERSS.md +85 -0
  18. package/DOCS/VISUAL_ANALYSIS_FACETAD.md +133 -0
  19. package/DOCS/VISUAL_ANALYSIS_SIMONE.md +95 -0
  20. package/DOCS/VISUAL_ANALYSIS_TABLESIDE.md +86 -0
  21. package/DOCS/{BLUEPRINT_EXECUTION_PLAN_2026-01-07.md → archive/BLUEPRINT_EXECUTION_PLAN_2026-01-07.md} +1 -1
  22. package/DOCS/{DEV_TRACK_ANALYSIS.md → archive/DEV_TRACK_ANALYSIS.md} +3 -0
  23. package/DOCS/{SYSTEM_AUDIT_2026-01-30.md → archive/SYSTEM_AUDIT_2026-01-30.md} +3 -0
  24. package/DOCS/{DEV_TRACK_SESSION_2026-01-31.md → dev-tracks/DEV_TRACK_SESSION_2026-01-31.md} +1 -1
  25. package/DOCS/dev-tracks/DEV_TRACK_SESSION_2026-02-06.md +231 -0
  26. package/DOCS/dev-tracks/DEV_TRACK_SESSION_2026-02-13.md +114 -0
  27. package/DOCS/dev-tracks/README.md +10 -0
  28. package/README.md +26 -13
  29. package/cpp/CMakeLists.txt +236 -0
  30. package/cpp/bindings/embind.cpp +269 -0
  31. package/cpp/build.sh +129 -0
  32. package/cpp/geometry/Crystal.cpp +103 -0
  33. package/cpp/geometry/Fractal.cpp +136 -0
  34. package/cpp/geometry/GeometryGenerator.cpp +262 -0
  35. package/cpp/geometry/KleinBottle.cpp +71 -0
  36. package/cpp/geometry/Sphere.cpp +134 -0
  37. package/cpp/geometry/Tesseract.cpp +94 -0
  38. package/cpp/geometry/Tetrahedron.cpp +83 -0
  39. package/cpp/geometry/Torus.cpp +65 -0
  40. package/cpp/geometry/WarpFunctions.cpp +238 -0
  41. package/cpp/geometry/Wave.cpp +85 -0
  42. package/cpp/include/vib3_ffi.h +238 -0
  43. package/cpp/math/Mat4x4.cpp +409 -0
  44. package/cpp/math/Mat4x4.hpp +209 -0
  45. package/cpp/math/Projection.cpp +142 -0
  46. package/cpp/math/Projection.hpp +148 -0
  47. package/cpp/math/Rotor4D.cpp +322 -0
  48. package/cpp/math/Rotor4D.hpp +204 -0
  49. package/cpp/math/Vec4.cpp +303 -0
  50. package/cpp/math/Vec4.hpp +225 -0
  51. package/cpp/src/vib3_ffi.cpp +607 -0
  52. package/cpp/tests/Geometry_test.cpp +213 -0
  53. package/cpp/tests/Mat4x4_test.cpp +494 -0
  54. package/cpp/tests/Projection_test.cpp +298 -0
  55. package/cpp/tests/Rotor4D_test.cpp +423 -0
  56. package/cpp/tests/Vec4_test.cpp +489 -0
  57. package/package.json +31 -27
  58. package/src/agent/mcp/MCPServer.js +722 -0
  59. package/src/agent/mcp/stdio-server.js +264 -0
  60. package/src/agent/mcp/tools.js +367 -0
  61. package/src/cli/index.js +0 -0
  62. package/src/core/CanvasManager.js +97 -204
  63. package/src/core/ErrorReporter.js +1 -1
  64. package/src/core/Parameters.js +1 -1
  65. package/src/core/VIB3Engine.js +38 -1
  66. package/src/core/VitalitySystem.js +53 -0
  67. package/src/core/renderers/HolographicRendererAdapter.js +2 -2
  68. package/src/creative/AestheticMapper.js +628 -0
  69. package/src/creative/ChoreographyPlayer.js +481 -0
  70. package/src/export/TradingCardManager.js +3 -4
  71. package/src/faceted/FacetedSystem.js +237 -388
  72. package/src/holograms/HolographicVisualizer.js +29 -12
  73. package/src/holograms/RealHolographicSystem.js +68 -12
  74. package/src/polychora/PolychoraSystem.js +77 -0
  75. package/src/quantum/QuantumEngine.js +103 -66
  76. package/src/quantum/QuantumVisualizer.js +7 -2
  77. package/src/render/UnifiedRenderBridge.js +3 -0
  78. package/src/shaders/faceted/faceted.frag.glsl +220 -80
  79. package/src/shaders/faceted/faceted.frag.wgsl +138 -97
  80. package/src/shaders/holographic/holographic.frag.glsl +28 -9
  81. package/src/shaders/holographic/holographic.frag.wgsl +107 -38
  82. package/src/shaders/quantum/quantum.frag.glsl +1 -0
  83. package/src/shaders/quantum/quantum.frag.wgsl +1 -1
  84. package/src/viewer/index.js +1 -1
  85. package/tools/headless-renderer.js +258 -0
  86. package/tools/shader-sync-verify.js +8 -4
  87. package/tools/site-analysis/all-reports.json +32 -0
  88. package/tools/site-analysis/combined-analysis.md +50 -0
  89. package/tools/site-analyzer.mjs +779 -0
  90. package/tools/visual-catalog/capture.js +276 -0
  91. package/tools/visual-catalog/composite.js +138 -0
  92. /package/DOCS/{DEV_TRACK_PLAN_2026-01-07.md → archive/DEV_TRACK_PLAN_2026-01-07.md} +0 -0
  93. /package/DOCS/{SESSION_014_PLAN.md → archive/SESSION_014_PLAN.md} +0 -0
  94. /package/DOCS/{SESSION_LOG_2026-01-07.md → archive/SESSION_LOG_2026-01-07.md} +0 -0
  95. /package/DOCS/{STRATEGIC_BLUEPRINT_2026-01-07.md → archive/STRATEGIC_BLUEPRINT_2026-01-07.md} +0 -0
  96. /package/src/viewer/{ReactivityManager.js → ViewerInputHandler.js} +0 -0
@@ -0,0 +1,86 @@
1
+ # Visual Analysis: tableside.com.au
2
+
3
+ **Captured: 2026-02-10 via Playwright with wheel-based scrolling**
4
+ **Method**: Real Chromium screenshots at 5 scroll positions (wheel events)
5
+ **Page height**: 8,370px (~9.3x viewport)
6
+
7
+ ---
8
+
9
+ ## Scroll Journey (Frame by Frame)
10
+
11
+ ### s00 — Top (scrollY=0)
12
+ **Bold typography hero with warm palette**
13
+ - Background: warm cream/beige (#F5EDE4 range)
14
+ - "TABLESIDE" logo top-left in coral/orange + "CREATIVES" subscript
15
+ - Hamburger menu (three lines) top-right in coral
16
+ - MASSIVE bold sans-serif text: "FOOD & DRINK DIGITAL CREATIVES" in coral/orange (#E85D3A range)
17
+ - Text fills ~70% of viewport, extremely bold weight (900+), tight line-height
18
+ - Below hero: "HOSPITALITY MARKETING AUSTRALIA" in black, right-aligned
19
+ - "WHAT WE DO" label left side
20
+ - Large body text in coral: "Crafting bold, unforgettable brands through content to propel hospitality and food & beverage businesses towards sustainable growth and standout success."
21
+ - Social links: INSTAGRAM, FACEBOOK, LINKEDIN, TIKTOK — right-aligned, stacked
22
+ - Chat widget bottom-right
23
+ - **Pattern**: Typography-as-hero with strong brand color. The hero text IS the brand statement, rendered in the signature coral color at maximum weight. Social links positioned as a sidebar element right-aligned.
24
+
25
+ ### s01 — scrollY=2400
26
+ **Portfolio card: asymmetric split layout**
27
+ - Large food photography LEFT (~50% viewport width): close-up of artisanal pizza
28
+ - Card text RIGHT: "ROCCELLA EAST MELB" restaurant name + orange icon
29
+ - "WEB, CONTENT, PAID, SOCIAL & EDM" service tags + "+ INFO" link in coral
30
+ - Below: second portfolio card beginning — dark photo of restaurant interior
31
+ - "STEER DINING ROOM" title overlaid on dark photo, bottom-left
32
+ - **Pattern**: Asymmetric portfolio cards. Image takes one half, text the other. The split is ~50/50 with generous spacing. Different cards have different background treatments (light photo vs dark atmospheric photo).
33
+
34
+ ### s02 — scrollY=4800
35
+ **Small dark portfolio card**
36
+ - Dark restaurant interior photo with chefs in white uniforms
37
+ - "WAGYU YA TEPPANYAKI" title overlaid top in white
38
+ - "WEB, CONTENT, PAID, SOCIALS & EDM" service tags bottom-left
39
+ - "YAKIKAMI" title visible below
40
+ - Card appears much smaller than previous cards (~40% viewport height)
41
+ - **Pattern**: Variable card sizing. Not all portfolio cards are the same size. This card is notably smaller and darker than the previous ones, creating visual rhythm through size variation.
42
+
43
+ ### s03 — scrollY=7200
44
+ **CTA section with strong color**
45
+ - Solid coral/orange background filling top ~40% of viewport
46
+ - "READY TO TAKE A SEAT AT OUR TABLE?" in large white text, centered
47
+ - "BOOK FREE STRATEGY SESSION" button: white border on coral background, centered
48
+ - Below CTA: split-color footer section
49
+ - LEFT half: warm cream with contact info, address, phone, hours
50
+ - RIGHT half: dark navy (#1A1A3E) with food photography (overhead table shot with multiple dishes)
51
+ - Photo floats slightly above the navy background edge
52
+
53
+ ### s04 — scrollY=7470 (bottom)
54
+ **Footer nav + legal**
55
+ - Footer navigation bar: HOME, WORK, SERVICES, ABOUT US, JOBS, CONTACT, NEWS (left-aligned in coral)
56
+ - Social links: INSTAGRAM, FACEBOOK, LINKEDIN (right-aligned in coral)
57
+ - Bottom bar: Privacy Policy, "TABLESIDE" centered logo, © 2024
58
+ - **Pattern**: Footer uses the brand coral for all link text against cream background. Clean horizontal nav layout.
59
+
60
+ ---
61
+
62
+ ## Key Design Patterns for VIB3+ Translation
63
+
64
+ ### 1. Three-Tone Palette (Cream + Coral + Navy)
65
+ The site uses exactly three colors consistently: warm cream background, coral/orange for typography and accents, dark navy for contrast sections. No gradients, no additional colors.
66
+ **For VIB3+**: A disciplined three-tone palette could anchor the landing page — e.g., dark background + one accent hue from the visualizer + white text.
67
+
68
+ ### 2. Variable Portfolio Card Sizing
69
+ Portfolio cards are NOT uniform. Some span full viewport height, others are compact. Some have light photos, others have dark atmospheric shots. Size variation creates rhythm.
70
+ **For VIB3+**: Cascade cards don't all need to be the same size. The clip-path morphing system could make some cards appear larger (wider window) and others more compact (narrower window), even though the underlying card is the same size.
71
+
72
+ ### 3. Split-Color Sections
73
+ The contact/footer area uses a vertical split: cream on the left, navy on the right, with a food photo bridging the two zones. This creates a strong compositional split.
74
+ **For VIB3+**: Could use a vertical split in the CTA or feature sections — one half showing one visualization system, the other showing a different one.
75
+
76
+ ### 4. CTA as Bold Color Block
77
+ The CTA section is a solid block of coral color with white text. Simple, bold, impossible to scroll past without noticing.
78
+ **For VIB3+**: The CTA section could use a solid color block with a visualizer running behind it at low opacity, creating color + depth.
79
+
80
+ ### 5. Service Tags as Metadata
81
+ Each portfolio card lists specific services (WEB, CONTENT, PAID, SOCIAL & EDM) in small uppercase text. This adds information density without cluttering the visual.
82
+ **For VIB3+**: Cascade cards could show parameter metadata (geometry name, system type, hue value) in small utility text that adds technical depth.
83
+
84
+ ---
85
+
86
+ *Analysis based on actual Playwright screenshots captured with wheel-event scrolling.*
@@ -1,6 +1,6 @@
1
1
  # Blueprint execution plan (2026-01-07)
2
2
 
3
- This execution plan operationalizes the strategic blueprint and defines what each session should deliver. Each session should update `DOCS/SESSION_LOG_2026-01-07.md` with timestamped progress and keep the checklist current.
3
+ This execution plan operationalizes the strategic blueprint and defines what each session should deliver. Each session should update `DOCS/archive/SESSION_LOG_2026-01-07.md` with timestamped progress and keep the checklist current.
4
4
 
5
5
  ## Session cadence
6
6
  - **Start of session**: review this plan and the strategic blueprint.
@@ -1,5 +1,8 @@
1
1
  # Dev track analysis and next steps
2
2
 
3
+ > **Archived document:** This file is retained for historical reference in `DOCS/archive/` and is not part of the active docs set.
4
+
5
+
3
6
  This document summarizes the current development track status, highlights gaps, and proposes the
4
7
  next execution steps. It should be updated after each multi-system delivery.
5
8
 
@@ -1,5 +1,8 @@
1
1
  # VIB3+ CORE System Audit
2
2
 
3
+ > **Archived document:** This file is retained for historical reference in `DOCS/archive/` and is not part of the active docs set.
4
+
5
+
3
6
  **Date**: January 30, 2026
4
7
  **Version**: 2.0.0 (`@vib3code/sdk`)
5
8
  **Branch**: `claude/phase-5-hardening-a4Wzn`
@@ -87,7 +87,7 @@
87
87
  | File | Purpose |
88
88
  |------|---------|
89
89
  | `DOCS/MASTER_PLAN_2026-01-31.md` | Master plan with 43 items |
90
- | `DOCS/DEV_TRACK_SESSION_2026-01-31.md` | This session log |
90
+ | `DOCS/dev-tracks/DEV_TRACK_SESSION_2026-01-31.md` | This session log |
91
91
  | `DOCS/OBS_SETUP_GUIDE.md` | OBS integration guide |
92
92
  | `LICENSE` | MIT License |
93
93
  | `CHANGELOG.md` | v1.0.0 + v2.0.0 release notes |
@@ -0,0 +1,231 @@
1
+ # Development Session — 2026-02-06
2
+
3
+ **Session type**: Full codebase audit + hygiene + MCP server + agent docs + testing
4
+ **Branch**: `claude/project-review-planning-NWnhW`
5
+ **Operator**: Claude Code (Opus 4.6)
6
+
7
+ ---
8
+
9
+ ## Session Overview
10
+
11
+ Two consecutive work phases:
12
+
13
+ 1. **Phase A (Hygiene)**: Full 751-file audit, identified 9 bugs, fixed 8
14
+ 2. **Phase B (Infrastructure)**: Bug fixes, test verification, real MCP server, agent packs, landing page
15
+
16
+ ---
17
+
18
+ ## Phase A — Codebase Audit + Hygiene
19
+
20
+ ### Corrected from initial analysis
21
+
22
+ | Item | Initial Assessment | Verified Status |
23
+ |------|-------------------|----------------|
24
+ | npm publish | Assumed not done | **Published**: `@vib3code/sdk@2.0.1` live on npm (Feb 3) |
25
+ | CanvasManager.js | Assumed dead code | **Used by VIB3Engine** but API contract broken |
26
+ | `u_breath` in shader-verify | Assumed tool wrong | **Tool correct** — inline had it, external files didn't |
27
+
28
+ ### Hygiene Fixes (Commit 1: `9e858a2`)
29
+
30
+ | # | Fix | File(s) | Severity |
31
+ |---|-----|---------|----------|
32
+ | 1 | CanvasManager rewrite to match VIB3Engine API | `src/core/CanvasManager.js` (217→110 lines) | CRITICAL |
33
+ | 2 | HolographicRendererAdapter import fix | `src/core/renderers/HolographicRendererAdapter.js:2` | CRITICAL |
34
+ | 3 | TradingCardManager broken import paths | `src/export/TradingCardManager.js:60-63` | HIGH |
35
+ | 4 | External shader u_breath sync | 4 shader files (GLSL + WGSL) | HIGH |
36
+ | 5 | Version strings unified to 2.0.1 | VIB3Engine, Parameters, ErrorReporter | MEDIUM |
37
+ | 6 | Viewer ReactivityManager renamed | `src/viewer/ViewerInputHandler.js` | MEDIUM |
38
+ | 7 | Stale package-lock.json removed | Root (-240 KB) | LOW |
39
+ | 8 | CHANGELOG v2.0.1 entries added | `CHANGELOG.md` | Docs |
40
+
41
+ ---
42
+
43
+ ## Phase B — Infrastructure + MCP + Testing
44
+
45
+ ### Bug Fixes (Commit 2)
46
+
47
+ | # | Fix | File(s) | Lines |
48
+ |---|-----|---------|-------|
49
+ | 1 | FacetedSystem RendererContract compliance — added `init()`, `resize()`, `dispose()` | `src/faceted/FacetedSystem.js:588-600` | +13 |
50
+ | 2 | Holographic breath desync — removed independent fallback cycle | `src/holograms/HolographicVisualizer.js:954-958` | 3 changed |
51
+ | 3 | Test version assertion updated | `tests/e2e/SDK-Integration.test.js:292` | 1 line |
52
+
53
+ **Test Results**: 933/933 passing (43 test files, 0 failures)
54
+
55
+ ### MCP Server (Option A — Real Protocol)
56
+
57
+ **New File**: `src/agent/mcp/stdio-server.js` (230 lines)
58
+
59
+ Implements proper JSON-RPC 2.0 over stdio per the Model Context Protocol spec:
60
+
61
+ | Feature | Status |
62
+ |---------|--------|
63
+ | `initialize` / `initialized` handshake | Working |
64
+ | `tools/list` — exposes all 19 tools with schemas | Working |
65
+ | `tools/call` — routes to MCPServer handlers | Working |
66
+ | `resources/list` — 4 documentation resources | Working |
67
+ | `resources/read` — serves CLAUDE.md, geometry summary, control ref, live state | Working |
68
+ | `ping` | Working |
69
+ | Error handling (parse errors, unknown methods, etc.) | Working |
70
+
71
+ **Tested**: All 3 protocol methods verified via stdio pipe.
72
+
73
+ **Binary added**: `vib3-mcp` in package.json bin section.
74
+
75
+ ### Agent Documentation Pack
76
+
77
+ **New Directory**: `agent-config/`
78
+
79
+ | File | Purpose | Size |
80
+ |------|---------|------|
81
+ | `mcp-config.json` | Drop-in MCP client config for Claude Desktop / Cursor | Config |
82
+ | `README.md` | Complete setup instructions + tool reference | 2 KB |
83
+ | `claude-agent-context.md` | Precompiled context pack for Claude agents | 3 KB |
84
+ | `openai-agent-context.md` | OpenAI function calling schemas + integration guide | 4 KB |
85
+
86
+ ### Dependencies
87
+
88
+ - `pnpm install --frozen-lockfile` — all deps installed successfully
89
+ - vitest 1.6.1, playwright 1.58.0, happy-dom 20.4.0 confirmed working
90
+
91
+ ---
92
+
93
+ ## Files Changed Summary (Both Phases)
94
+
95
+ ### Phase A (Commit 1)
96
+ | File | Action |
97
+ |------|--------|
98
+ | `src/core/CanvasManager.js` | Rewritten (110 lines) |
99
+ | `src/core/renderers/HolographicRendererAdapter.js` | Import fix |
100
+ | `src/core/VIB3Engine.js` | Version: 1.2.0 → 2.0.1 |
101
+ | `src/core/Parameters.js` | Version: 1.0.0 → 2.0.1 |
102
+ | `src/core/ErrorReporter.js` | Version: 2.0.0 → 2.0.1 |
103
+ | `src/export/TradingCardManager.js` | Fixed imports |
104
+ | `src/shaders/quantum/quantum.frag.glsl` | +u_breath |
105
+ | `src/shaders/faceted/faceted.frag.glsl` | +u_breath |
106
+ | `src/shaders/quantum/quantum.frag.wgsl` | +breath field |
107
+ | `src/shaders/faceted/faceted.frag.wgsl` | +breath field |
108
+ | `src/viewer/ReactivityManager.js` → `ViewerInputHandler.js` | Renamed |
109
+ | `src/viewer/index.js` | Updated import |
110
+ | `package-lock.json` | Deleted |
111
+ | `CHANGELOG.md` | +v2.0.1 entries |
112
+
113
+ ### Phase B (Commit 2)
114
+ | File | Action |
115
+ |------|--------|
116
+ | `src/faceted/FacetedSystem.js` | +init(), +resize(), +dispose() |
117
+ | `src/holograms/HolographicVisualizer.js` | Fixed breath desync |
118
+ | `tests/e2e/SDK-Integration.test.js` | Updated version assertion |
119
+ | `src/agent/mcp/stdio-server.js` | **NEW** — Real MCP server |
120
+ | `package.json` | +vib3-mcp binary |
121
+ | `agent-config/mcp-config.json` | **NEW** — MCP client config |
122
+ | `agent-config/README.md` | **NEW** — Agent setup guide |
123
+ | `agent-config/claude-agent-context.md` | **NEW** — Claude context pack |
124
+ | `agent-config/openai-agent-context.md` | **NEW** — OpenAI context pack |
125
+ | `index-v2.html` | **NEW** — Enhanced landing page (2100+ lines) |
126
+ | `DOCS/dev-tracks/DEV_TRACK_SESSION_2026-02-06.md` | Updated with Phase C |
127
+
128
+ ---
129
+
130
+ ## Phase C — Enhanced Landing Page (Commit 3)
131
+
132
+ ### `index-v2.html` — Choreographed Multi-Instance GSAP Showcase (2100+ lines)
133
+
134
+ A complete Canvas2D-based landing page with 10 concurrent visualizer instances showing all 3 systems:
135
+
136
+ | Section | Instances | Feature |
137
+ |---------|-----------|---------|
138
+ | **Hero** | 1x QuantumViz | Parallax inversion on scroll, density ramps up, 4D rotation increases |
139
+ | **Trinity** | 1x bg + 3x cards (Quantum/Faceted/Holographic) | Hover: card density decreases + speed freezes, bg density increases + matches hue, others mute |
140
+ | **Morph** | 3x (Faceted → Quantum → Holographic) | Scroll-locked pin, crossfade between systems, per-phase parameter animation |
141
+ | **Playground** | 1x FacetedViz | 12 live parameter sliders with real-time update |
142
+ | **Suck-Up** | 1x (dynamic) | Click card → visualizer animates from card position → expands to 90vw/90vh fullscreen |
143
+
144
+ ### Key Technical Decisions
145
+
146
+ - **Canvas2D** (not WebGL) to avoid context limits with 10+ concurrent instances
147
+ - **IntersectionObserver** gates rendering to only visible canvases
148
+ - **30fps throttle** for battery-friendly performance
149
+ - **prefers-reduced-motion** support throughout (instant opacity, no animations)
150
+ - **ResizeObserver** per canvas for responsive DPR-aware sizing
151
+ - All 8 base geometries + 2 warp functions + 6D rotation implemented in JS
152
+ - GSAP ScrollTrigger for all scroll-locked choreography
153
+
154
+ ### Agent-First Features in Landing Page
155
+
156
+ - "Download Agent Pack" button → generates claude-agent-context.md blob
157
+ - "CLAUDE.md" download button → generates project instructions
158
+ - "MCP Config" download → generates mcp-config.json
159
+ - Copy-to-clipboard install command
160
+ - MCP config code card with syntax highlighting
161
+ - Tool list with 7 key tools shown
162
+
163
+ ---
164
+
165
+ ## Test Health
166
+
167
+ | Metric | Value |
168
+ |--------|-------|
169
+ | **Unit test files** | 43 |
170
+ | **Test cases** | 933 passing, 0 failing |
171
+ | **Duration** | ~18s |
172
+ | **Covered modules** | Math (100%), Render (100%), Geometry (100%), Scene (100%), Agent/Telemetry (good), Creative (partial) |
173
+ | **Known gaps** | VIB3Engine, CanvasManager, Visualizers (direct), Viewer module, WebXR/WebGPU Compute/OffscreenWorker, Gallery, LLM, WASM loader |
174
+
175
+ ---
176
+
177
+ ## Exhale / Breath Feature Analysis
178
+
179
+ ### What It Is
180
+ Global organic breathing cycle (VitalitySystem.js) — 6-second cosine wave oscillating 0→1→0, modulating all 3 visualization systems:
181
+
182
+ | System | Effect | Modulation Factor |
183
+ |--------|--------|------------------|
184
+ | Quantum | Lattice brightness pulse | +40% at full exhale |
185
+ | Faceted | Pattern intensity pulse | +30% at full exhale |
186
+ | Holographic | Projection expansion + glow + density | +20% / +10% / +40% |
187
+
188
+ ### Bug Found & Fixed
189
+ HolographicVisualizer had independent fallback breath cycle (line 955-958) that ran out of sync when VitalitySystem value wasn't received. Fixed to use centralized value with 0.0 default.
190
+
191
+ ---
192
+
193
+ ## Remaining Development Track
194
+
195
+ ### Critical Path for Launch
196
+
197
+ | Priority | Item | Status |
198
+ |----------|------|--------|
199
+ | DONE | Real MCP server (JSON-RPC 2.0 over stdio) | `stdio-server.js` working |
200
+ | DONE | Agent documentation packs | Claude + OpenAI configs |
201
+ | DONE | All tests passing (933/933) | Verified |
202
+ | DONE | Enhanced landing page (index-v2.html) | Multi-instance GSAP showcase (2100+ lines) |
203
+ | NEXT | Claude Code skill (wraps MCP) | After landing page |
204
+ | NEXT | Test coverage for v2.0.0 modules | 18 modules at 0% |
205
+
206
+ ### Short-Term
207
+
208
+ - WebGPU end-to-end verification
209
+ - Resolve duplicate CollectionManager
210
+ - Demo videos/GIFs
211
+ - Gallery app with shareable URLs
212
+
213
+ ### Medium-Term
214
+
215
+ - API reference site (JSDoc → Docusaurus)
216
+ - Figma Community plugin publish
217
+ - Discord / community setup
218
+ - Interactive tutorial
219
+
220
+ ---
221
+
222
+ ## Project Health Snapshot
223
+
224
+ | Metric | Value |
225
+ |--------|-------|
226
+ | **npm package** | `@vib3code/sdk@2.0.1` (published) |
227
+ | **MCP server** | Working (JSON-RPC 2.0/stdio, 19 tools, 4 resources) |
228
+ | **Tests** | 933/933 passing |
229
+ | **Agent packs** | Claude + OpenAI configs ready |
230
+ | **Critical bugs fixed** | 5 (CanvasManager, HolographicAdapter, Faceted contract, breath desync, TradingCardManager) |
231
+ | **CI workflows** | 9 GitHub Actions |
@@ -0,0 +1,114 @@
1
+ # Development Session — 2026-02-13
2
+
3
+ **Session type**: Agent Harness Implementation — MCP tools, ChoreographyPlayer, aesthetic mapping, headless rendering
4
+ **Branch**: `claude/clause-code-skill-0PV33`
5
+ **Operator**: Claude Code (Opus 4.6)
6
+ **Parent work**: Builds on Phase 7 agent-power tools added earlier this session (7 new MCP tools, 2 Claude Code skills)
7
+
8
+ ---
9
+
10
+ ## Session Overview
11
+
12
+ This session had two phases:
13
+
14
+ ### Phase 1 — Claude Code Skills + Initial Agent Tools (Commit 1)
15
+
16
+ - Created 2 Claude Code skills (`.claude/commands/vib3-design.md`, `.claude/commands/vib3-dev.md`)
17
+ - Added 7 new MCP tools (19 → 26): `describe_visual_state`, `batch_set_parameters`, `create_timeline`, `play_transition`, `apply_color_preset`, `set_post_processing`, `create_choreography`
18
+ - Created agent harness architecture doc (`DOCS/AGENT_HARNESS_ARCHITECTURE.md`)
19
+ - Added `.claude/settings.json` with shader validation pre-commit hook
20
+
21
+ ### Phase 2 — Harness Runtime Implementation (Commit 2)
22
+
23
+ Implementing the concrete runtime pieces described in `DOCS/AGENT_HARNESS_ARCHITECTURE.md`:
24
+
25
+ 1. **`capture_screenshot` MCP tool** — Composites all 5 canvas layers → base64 PNG
26
+ 2. **`ChoreographyPlayer`** — Runtime class that plays back `create_choreography` JSON specs, manages scene transitions, per-scene timelines, system switching
27
+ 3. **`AestheticMapper`** — Text-description → parameter range mapping with 60+ vocabulary words across 6 categories (emotions, styles, colors, motion, depth, geometry)
28
+ 4. **`design_from_description` MCP tool** — Uses AestheticMapper to convert natural language to params
29
+ 5. **`play_choreography` MCP tool** — Loads and plays choreography specs with play/pause/stop/seek
30
+ 6. **`control_timeline` MCP tool** — Controls previously created ParameterTimeline instances
31
+ 7. **`get_aesthetic_vocabulary` MCP tool** — Lists all known descriptor words by category
32
+ 8. **Headless renderer** — Puppeteer-based CLI tool for capturing frames without a browser
33
+
34
+ ---
35
+
36
+ ## Files Created
37
+
38
+ | File | Purpose | ~Lines |
39
+ |------|---------|--------|
40
+ | `.claude/commands/vib3-design.md` | Design/navigation Claude Code skill | 350 |
41
+ | `.claude/commands/vib3-dev.md` | Development/expansion Claude Code skill | 350 |
42
+ | `.claude/settings.json` | Shader validation pre-commit hook | 15 |
43
+ | `DOCS/AGENT_HARNESS_ARCHITECTURE.md` | Agent harness roadmap document | 200 |
44
+ | `DOCS/dev-tracks/DEV_TRACK_SESSION_2026-02-13.md` | This file | — |
45
+ | `src/creative/ChoreographyPlayer.js` | Multi-scene choreography playback runtime | 380 |
46
+ | `src/creative/AestheticMapper.js` | Text-description → VIB3+ parameter mapping | 500 |
47
+ | `tools/headless-renderer.js` | Puppeteer headless frame capture CLI | 220 |
48
+
49
+ ## Files Modified
50
+
51
+ | File | Change | Risk |
52
+ |------|--------|------|
53
+ | `src/agent/mcp/tools.js` | Added 12 new tool definitions (total: 31) | LOW — additive only, all appended at end |
54
+ | `src/agent/mcp/MCPServer.js` | Added 3 imports + 10 new handler methods + 5 new switch cases | LOW — additive only |
55
+ | `agent-config/README.md` | Updated tool count (31) and table with new categories | LOW — docs only |
56
+ | `agent-config/claude-agent-context.md` | Updated version, added power/choreography workflows, aesthetic vocabulary | LOW — docs only |
57
+
58
+ ## MCP Tool Inventory (31 total)
59
+
60
+ | Phase | Tools Added | Count |
61
+ |-------|------------|-------|
62
+ | Original | get_sdk_context, verify_knowledge, create_4d_visualization, set_rotation, set_visual_parameters, switch_system, change_geometry, get_state, randomize_parameters, reset_parameters, save_to_gallery, load_from_gallery, search_geometries, get_parameter_schema | 14 |
63
+ | Phase 6.5 | set_reactivity_config, get_reactivity_config, configure_audio_band, export_package | 4 |
64
+ | Phase 6.6 | apply_behavior_preset, list_behavior_presets | 2 |
65
+ | Phase 7 | describe_visual_state, batch_set_parameters, create_timeline, play_transition, apply_color_preset, set_post_processing, create_choreography | 7 |
66
+ | Phase 7.1 | capture_screenshot, design_from_description, get_aesthetic_vocabulary, play_choreography, control_timeline | 4 |
67
+
68
+ ## Potential Conflicts with Parallel Work
69
+
70
+ | File | Conflict Zone | Resolution |
71
+ |------|--------------|------------|
72
+ | `src/agent/mcp/tools.js` | End of `toolDefinitions` object (lines 648+) | Take both — all additions are appended after `list_behavior_presets` |
73
+ | `src/agent/mcp/MCPServer.js` | Switch statement (lines 166-197), new methods (lines 1345+) | Take both — new switch cases + methods at end of class |
74
+ | `agent-config/README.md` | Tool count number and table | Manual merge — update count, combine tables |
75
+ | `agent-config/claude-agent-context.md` | Workflow section | Manual merge — keep both workflow blocks |
76
+ | `package.json` | Only if parallel work adds exports | Our changes don't touch package.json |
77
+ | `src/creative/` | New files only | No conflict — `ChoreographyPlayer.js` and `AestheticMapper.js` are new |
78
+
79
+ ## Notes for Future Sessions
80
+
81
+ - `ChoreographyPlayer` imports `ParameterTimeline` and `TransitionAnimator` from `src/creative/`
82
+ - `capture_screenshot` only works in browser context (needs canvas access); returns structured error in Node
83
+ - `AestheticMapper` is stateless — can be used standalone or via MCP tool
84
+ - Headless renderer is a standalone CLI tool in `tools/`, not imported by the SDK itself
85
+ - MCPServer lazily creates `_aestheticMapper`, `_choreographyPlayer`, `_liveTimelines` on first use
86
+ - `control_timeline` materializes stored timeline data into live `ParameterTimeline` instances on first play
87
+ - Color preset values in `ChoreographyPlayer.COLOR_PRESET_MAP` must stay in sync with `MCPServer.applyColorPreset`
88
+
89
+ ## Architecture Notes
90
+
91
+ ```
92
+ Agent → MCP Tool Call
93
+
94
+ MCPServer.handleToolCall(name, args)
95
+
96
+ ┌─────────────────────────────────┐
97
+ │ Phase 7 Handler Methods │
98
+ │ │
99
+ │ captureScreenshot() │ ← canvas.toDataURL composite
100
+ │ designFromDescription() │ ← AestheticMapper.resolveToValues
101
+ │ playChoreographyTool() │ ← ChoreographyPlayer.load + .play
102
+ │ controlTimeline() │ ← ParameterTimeline.play/pause/seek
103
+ │ getAestheticVocabulary() │ ← AestheticMapper.getVocabularyByCategory
104
+ │ │
105
+ │ Earlier Phase 7: │
106
+ │ describeVisualState() │ ← natural language description
107
+ │ batchSetParameters() │ ← atomic multi-param set
108
+ │ createTimeline() │ ← build timeline spec
109
+ │ playTransition() │ ← TransitionAnimator.sequence
110
+ │ applyColorPreset() │ ← hue/sat/intensity mapping
111
+ │ setPostProcessing() │ ← effect pipeline config
112
+ │ createChoreography() │ ← multi-scene spec builder
113
+ └─────────────────────────────────┘
114
+ ```
@@ -0,0 +1,10 @@
1
+ # Development Track Logs
2
+
3
+ Detailed, session-level implementation notes are stored here.
4
+
5
+ ## Sessions
6
+
7
+ - [2026-01-31 session](DEV_TRACK_SESSION_2026-01-31.md)
8
+ - [2026-02-06 session](DEV_TRACK_SESSION_2026-02-06.md)
9
+
10
+ Roadmap references are maintained in [`DOCS/ROADMAP.md`](../ROADMAP.md).
package/README.md CHANGED
@@ -2,12 +2,18 @@
2
2
 
3
3
  **General-purpose 4D rotation visualization SDK** for plugins, extensions, wearables, and agentic AI integration.
4
4
 
5
- [![Tests](https://img.shields.io/badge/tests-693%2B%20passing-brightgreen)](#testing)
6
- [![Version](https://img.shields.io/badge/version-2.0.0-blue)](#)
5
+ [![Tests](https://img.shields.io/badge/tests-CI%20tracked-brightgreen)](DOCS/STATUS.md#test-status)
6
+ [![Version](https://img.shields.io/badge/version-2.0.3-blue)](DOCS/STATUS.md#vib3-sdk-status)
7
7
  [![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
8
8
 
9
9
  ---
10
10
 
11
+ ## Documentation
12
+
13
+ The main documentation entrypoint is [`DOCS/README.md`](./DOCS/README.md), which includes canonical docs, persona-based reading paths, taxonomy, and source-of-truth ownership.
14
+
15
+ ---
16
+
11
17
  ## Quick Reference
12
18
 
13
19
  | Metric | Value |
@@ -29,7 +35,7 @@
29
35
  - **Agentic Integration:** MCP server with 14 tools for AI agent control
30
36
  - **Cross-Platform:** Web, WASM, Flutter support
31
37
 
32
- ### New in v2.0.0
38
+ ### New in current release (v2.0.x)
33
39
 
34
40
  - **Universal Spatial Input:** 8 input sources (tilt, gyroscope, gamepad, mouse, MIDI, audio, programmatic, perspective) with 6 built-in profiles (card tilt, wearable, game, VJ, UI, XR)
35
41
  - **Creative Tooling:** 22 color presets, 14 easing transitions, 14 post-processing effects, keyframe timeline with BPM sync
@@ -176,7 +182,7 @@ engine.randomizeAll();
176
182
  engine.resetAll();
177
183
  ```
178
184
 
179
- ### Spatial Input API (v2.0.0)
185
+ ### Spatial Input API (v2.0.x)
180
186
 
181
187
  ```javascript
182
188
  // Enable spatial input with a profile
@@ -194,7 +200,7 @@ engine.setSpatialDramaticMode(true); // 8x amplification
194
200
  // vjAudioSpatial, uiElement, immersiveXR
195
201
  ```
196
202
 
197
- ### Framework Integration (v2.0.0)
203
+ ### Framework Integration (v2.0.x)
198
204
 
199
205
  ```javascript
200
206
  // React
@@ -348,17 +354,17 @@ echo 'geometry 10' | node src/cli/index.js
348
354
  │ │ ├── cli/ # CLI interface
349
355
  │ │ └── telemetry/ # Instrumentation
350
356
  │ ├── export/ # Export generators
351
- │ ├── reactivity/ # Reactivity + SpatialInputSystem (v2.0.0)
352
- │ ├── creative/ # Color presets, transitions, post-FX, timeline (v2.0.0)
353
- │ ├── integrations/ # React, Vue, Svelte, Figma, Three.js, TD, OBS (v2.0.0)
354
- │ └── advanced/ # WebXR, WebGPU compute, MIDI, AI, Worker (v2.0.0)
357
+ │ ├── reactivity/ # Reactivity + SpatialInputSystem (current release series)
358
+ │ ├── creative/ # Color presets, transitions, post-FX, timeline (current release series)
359
+ │ ├── integrations/ # React, Vue, Svelte, Figma, Three.js, TD, OBS (current release series)
360
+ │ └── advanced/ # WebXR, WebGPU compute, MIDI, AI, Worker (current release series)
355
361
  ├── tools/ # Tooling (+ shader-sync-verify.js)
356
362
  ├── cpp/ # C++ math core (WASM)
357
363
  ├── js/ # Client-side integration
358
- ├── tests/ # Test suite (693+ tests)
364
+ ├── tests/ # Test suite (CI-tracked status)
359
365
  ├── DOCS/ # Documentation
360
366
  │ ├── SYSTEM_INVENTORY.md # Complete system reference
361
- │ ├── SYSTEM_AUDIT_2026-01-30.md # Full system audit
367
+ │ ├── archive/SYSTEM_AUDIT_2026-01-30.md # Full system audit (archived)
362
368
  │ ├── CLI_ONBOARDING.md # Agent CLI setup
363
369
  │ └── CONTROL_REFERENCE.md # UI parameters
364
370
  └── types/ # TypeScript definitions
@@ -379,7 +385,7 @@ npm test -- --coverage
379
385
  npm test -- tests/agent/AgentCLI.test.js
380
386
  ```
381
387
 
382
- **Current Status:** 693+ tests passing
388
+ **Current Status:** See [`DOCS/STATUS.md`](DOCS/STATUS.md) for release and CI-linked test status.
383
389
 
384
390
  ---
385
391
 
@@ -387,13 +393,20 @@ npm test -- tests/agent/AgentCLI.test.js
387
393
 
388
394
  | Document | Description |
389
395
  |----------|-------------|
396
+ | [`DOCS/STATUS.md`](DOCS/STATUS.md) | Canonical release status (version, date, platforms, CI test status) |
397
+ | [`DOCS/SYSTEM_INVENTORY.md`](DOCS/SYSTEM_INVENTORY.md) | Complete technical reference |
398
+ | [`DOCS/SYSTEM_AUDIT_2026-01-30.md`](DOCS/SYSTEM_AUDIT_2026-01-30.md) | Full system audit |
390
399
  | [`DOCS/SYSTEM_INVENTORY.md`](DOCS/SYSTEM_INVENTORY.md) | Complete technical reference (v2.0.0) |
400
+ | [`DOCS/PRODUCT_STRATEGY.md`](DOCS/PRODUCT_STRATEGY.md) | Product strategy: personas, use-cases, differentiation, and metrics |
401
+ | [`DOCS/ROADMAP.md`](DOCS/ROADMAP.md) | Strategy goals mapped to technical epics and module ownership |
402
+ | [`DOCS/README.md`](DOCS/README.md) | Documentation index and navigation hub |
391
403
  | [`DOCS/SYSTEM_AUDIT_2026-01-30.md`](DOCS/SYSTEM_AUDIT_2026-01-30.md) | Full system audit (v2.0.0) |
404
+ | [`DOCS/archive/SYSTEM_AUDIT_2026-01-30.md`](DOCS/archive/SYSTEM_AUDIT_2026-01-30.md) | Full system audit (v2.0.0, archived) |
392
405
  | [`DOCS/CLI_ONBOARDING.md`](DOCS/CLI_ONBOARDING.md) | Agent CLI setup guide |
393
406
  | [`DOCS/CONTROL_REFERENCE.md`](DOCS/CONTROL_REFERENCE.md) | UI parameter reference |
394
407
  | [`24-GEOMETRY-6D-ROTATION-SUMMARY.md`](24-GEOMETRY-6D-ROTATION-SUMMARY.md) | Geometry encoding details |
395
408
  | [`DOCS/GPU_DISPOSAL_GUIDE.md`](DOCS/GPU_DISPOSAL_GUIDE.md) | Resource management |
396
- | [`CLAUDE.md`](CLAUDE.md) | AI/Developer technical reference (v2.0.0) |
409
+ | [`CLAUDE.md`](CLAUDE.md) | AI/Developer technical reference |
397
410
 
398
411
  ---
399
412