chore: update dependencies and refactor import paths

- Updated package.json with latest dependency versions
- Added winston-daily-rotate-file type definitions
- Refactored import paths in tools and routes to use .js extensions
- Modified SSE routes to use getStatistics method
- Improved log rotation utility with more robust file cleanup
This commit is contained in:
jango-blockchained
2025-02-03 16:28:06 +01:00
parent 5362ed18ee
commit 5082f0d9fd
7 changed files with 52 additions and 35 deletions

View File

@@ -1,15 +1,15 @@
import { Tool } from '../types/index';
import { listDevicesTool } from './list-devices.tool';
import { controlTool } from './control.tool';
import { historyTool } from './history.tool';
import { sceneTool } from './scene.tool';
import { notifyTool } from './notify.tool';
import { automationTool } from './automation.tool';
import { addonTool } from './addon.tool';
import { packageTool } from './package.tool';
import { automationConfigTool } from './automation-config.tool';
import { subscribeEventsTool } from './subscribe-events.tool';
import { getSSEStatsTool } from './sse-stats.tool';
import { Tool } from '../types/index.js';
import { listDevicesTool } from './list-devices.tool.js';
import { controlTool } from './control.tool.js';
import { historyTool } from './history.tool.js';
import { sceneTool } from './scene.tool.js';
import { notifyTool } from './notify.tool.js';
import { automationTool } from './automation.tool.js';
import { addonTool } from './addon.tool.js';
import { packageTool } from './package.tool.js';
import { automationConfigTool } from './automation-config.tool.js';
import { subscribeEventsTool } from './subscribe-events.tool.js';
import { getSSEStatsTool } from './sse-stats.tool.js';
// Tool category types
export enum ToolCategory {
@@ -36,7 +36,7 @@ interface ToolMetadata {
}
// Array to track all tools
const tools: Tool[] = [
export const tools: Tool[] = [
listDevicesTool,
controlTool,
historyTool,