Studio ai by lvca · Pull Request #3574 · ArcadeData/arcadedb (original) (raw)
added 22 commits
Add AI-powered database assistant with chat UI in Studio and backend endpoints in the server module. Routes registered directly in HttpServer (same pattern as MCP). Inactive until subscription token is set in config/ai.json.
Backend (server module):
- AiConfiguration: loads config/ai.json (subscriptionToken, gatewayUrl)
- AiChatHandler: POST /api/v1/ai/chat - collects schema, forwards to gateway
- AiChatsHandler: GET/DELETE /api/v1/ai/chats - file-based chat persistence
- AiConfigHandler: GET /api/v1/ai/config - subscription status
- ChatStorage: per-user JSON file storage under chats/{username}/
- 19 tests (unit + integration)
Frontend (studio module):
- ai.html: chat tab with sidebar history, command blocks, inactive state
- studio-ai.js: chat logic, markdown rendering, command execution
- marked.js vendor dependency (MIT) for markdown in chat messages
[](/apps/gemini-code-assist)
lvca deleted the studio-ai branch
robfrank pushed a commit that referenced this pull request
- feat: add ArcadeDBi AI assistant to Studio
Add AI-powered database assistant with chat UI in Studio and backend endpoints in the server module. Routes registered directly in HttpServer (same pattern as MCP). Inactive until subscription token is set in config/ai.json.
Backend (server module):
- AiConfiguration: loads config/ai.json (subscriptionToken, gatewayUrl)
- AiChatHandler: POST /api/v1/ai/chat - collects schema, forwards to gateway
- AiChatsHandler: GET/DELETE /api/v1/ai/chats - file-based chat persistence
- AiConfigHandler: GET /api/v1/ai/config - subscription status
- ChatStorage: per-user JSON file storage under chats/{username}/
- 19 tests (unit + integration)
Frontend (studio module):
- ai.html: chat tab with sidebar history, command blocks, inactive state
- studio-ai.js: chat logic, markdown rendering, command execution
- marked.js vendor dependency (MIT) for markdown in chat messages
Update ai.html
feat: parallel query
Fixed issue #1339
- fx: fixed parallel query: avoided when can deadlock
Fixed issue #1339
Added test file
Improvements
studio: Add ai profiler
Implemented Profiler AI Analyze
Misc improvements
fix: map Cypher to OpenCypher when the old cypher module (on gremlin) is not available
fix: display button at the bottom of the code block now
removed ai.json cfg file
Improved activation with disclaimer
Fixed studio AI panel
studio: 2 modes of execution in ai panel
Improved agentic system
studio: added Drop Type button
feat: studio -> double confirmation on database deletion
(cherry picked from commit 993588d)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})