Commit Graph
2 Commits
Author SHA1 Message Date
diguaandCursor 0ba9ae04a6 chore: migrate workspace packages to ESM
- Add "type": "module" to all workspace package.json files
- Replace __dirname with import.meta.url-based resolveCliPath() helper
- Convert stream-json/stream-chain CJS named imports to default + destructure
  for ESM compatibility
- Use createRequire() for @node-rs/jieba native module loading in ESM context

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-26 23:19:47 +08:00
digua 814ac8a56b feat(tools): create @openchatlab/tools with platform-agnostic AI tools
Phase 2.1: extract tool definitions from electron/main/ai/tools/ into
a shared package. Tools use DatabaseAdapter directly instead of
workerManager. Includes: sessions, session_info, search, member_stats,
time_stats, recent_messages, sql, schema (8 tools total).
2026-05-11 20:06:50 +08:00