immersive2/src
Michael Mainguy 03217f3e65 Add Cloudflare Workers AI provider and multiple AI chat improvements
- Add Cloudflare Workers AI as third provider alongside Claude and Ollama
  - New cloudflare.js API handler with format conversion
  - Tool converter functions for Cloudflare's OpenAI-compatible format
  - Handle [TOOL_CALLS] and [Called tool:] text formats from Mistral
  - Robust parser that handles truncated JSON responses

- Add usage tracking with cost display
  - New usageTracker.js service for tracking token usage per session
  - UsageDetailModal component showing per-request breakdown
  - Cost display in ChatPanel header

- Add new diagram manipulation features
  - Entity scale and rotation support via modify_entity tool
  - Wikipedia search tool for researching topics before diagramming
  - Clear conversation tool to reset chat history
  - JSON import from hamburger menu (moved from ChatPanel)

- Fix connection label rotation in billboard mode
  - Labels no longer have conflicting local rotation when billboard enabled
  - Update rotation when rendering mode changes

- Improve tool calling reliability
  - Add MAX_TOOL_ITERATIONS safety limit
  - Break loop after model switch to prevent context issues
  - Increase max_tokens to 4096 to prevent truncation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 06:31:43 -06:00
..
content Add Quest VR onboarding flow with auto-entry prompt 2025-11-20 10:47:28 -06:00
controllers version bump 2025-12-19 15:32:28 -06:00
diagram Add Cloudflare Workers AI provider and multiple AI chat improvements 2026-01-03 06:31:43 -06:00
gizmos Optimize animated connection textures and fix material texture bleeding 2025-11-18 16:37:22 -06:00
information Fix label positioning to use world space bounding boxes 2025-11-19 16:52:04 -06:00
integration Add local database mode for browser-only diagrams 2025-12-29 18:13:43 -06:00
maps added row level AES encryption. 2024-06-10 15:52:45 -05:00
menus Fix AppConfig persistence and consolidate handle storage 2025-11-19 15:34:40 -06:00
objects Clean up code formatting and remove unused functions 2025-11-20 13:23:17 -06:00
react Add Cloudflare Workers AI provider and multiple AI chat improvements 2026-01-03 06:31:43 -06:00
toolbox version bump 2025-12-19 15:32:28 -06:00
tutorial Optimize animated connection textures and fix material texture bleeding 2025-11-18 16:37:22 -06:00
users Added websocket presence. 2024-06-14 09:38:16 -05:00
util Add local database mode for browser-only diagrams 2025-12-29 18:13:43 -06:00
visualization experiments with glb objects and data based diagrams. 2023-12-23 06:21:58 -06:00
vrcore Optimize animated connection textures and fix material texture bleeding 2025-11-18 16:37:22 -06:00
defaultScene.ts Add face handles and transform tracking to ResizeGizmo 2025-11-17 17:06:32 -06:00
env.d.ts Simplified interactions, changed menu interactions for changing entities. 2024-04-10 16:36:36 -05:00
vrApp.ts Add public URL sharing with express-pouchdb sync 2025-12-29 11:49:56 -06:00
webApp.ts Updated UI to use Mantine. 2024-08-30 12:43:19 -05:00