Files
Momento/memento-note/lib/ai/tools/index.ts
Antigravity beca2c52c3
Some checks failed
CI / Lint, Test & Build (push) Failing after 15s
CI / Deploy production (on server) (push) Has been skipped
feat: add inline chart support for notes
- Add NoteChart component using Recharts (bar, line, area, pie, radar, funnel, gauge)
- Add generate_chart and insert_chart_in_note AI tools
- Add chart code block support in MarkdownContent (```chart ... ```)
- Support JSON and simple data formats (label: value)
- Add i18n translations for chart features

Chart syntax examples:
- JSON: ```chart {"type":"bar","data":[{"label":"A","value":10}]} ```
- Simple: ```chart\nbar\nSales Data\nJan: 120\nFeb: 150\n```

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 17:29:10 +00:00

22 lines
547 B
TypeScript

/**
* Tools Index
* Side-effect imports register all tools into the registry.
*/
// Import all tools (side-effect registration)
import './web-search.tool'
import './note-search.tool'
import './note-crud.tool'
import './web-scrape.tool'
import './url-fetch.tool'
import './memory.tool'
import './excalidraw.tool'
import './pptx.tool'
import './slides.tool'
import './document-search.tool'
import './task-extract.tool'
import './chart.tool'
// Re-export registry
export { toolRegistry, type ToolContext, type RegisteredTool } from './registry'