feat: add Bun polyfills and refactor LiteMCP implementation

- Introduced polyfills for Node.js compatibility in Bun runtime
- Moved LiteMCP implementation to a dedicated module
- Updated package.json to include @digital-alchemy/hass dependency
- Refactored import for LiteMCP to use local module path
This commit is contained in:
jango-blockchained
2025-02-03 22:55:36 +01:00
parent 04123a5740
commit 9a02bdaf11
4 changed files with 72 additions and 1 deletions

View File

@@ -18,7 +18,7 @@ console.log(`Loading environment from ${envFile}`);
config({ path: resolve(process.cwd(), envFile) });
import { get_hass } from './hass/index.js';
import { LiteMCP } from 'litemcp';
import { LiteMCP } from './mcp/litemcp.js';
import { z } from 'zod';
import { DomainSchema } from './schemas.js';