mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-27 09:33:55 +08:00
update:增加版本号,解决html引用文件缓存问题
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
// 主应用入口
|
||||
import { log } from './utils/logger.js';
|
||||
import { checkOpusLoaded, initOpusEncoder } from './core/audio/opus-codec.js';
|
||||
import { uiController } from './ui/controller.js';
|
||||
import { getAudioPlayer } from './core/audio/player.js';
|
||||
import { initMcpTools } from './core/mcp/tools.js';
|
||||
import { checkMicrophoneAvailability, isHttpNonLocalhost } from './core/audio/recorder.js';
|
||||
import { checkOpusLoaded, initOpusEncoder } from './core/audio/opus-codec.js?v=0127';
|
||||
import { getAudioPlayer } from './core/audio/player.js?v=0127';
|
||||
import { checkMicrophoneAvailability, isHttpNonLocalhost } from './core/audio/recorder.js?v=0127';
|
||||
import { initMcpTools } from './core/mcp/tools.js?v=0127';
|
||||
import { uiController } from './ui/controller.js?v=0127';
|
||||
import { log } from './utils/logger.js?v=0127';
|
||||
|
||||
// 应用类
|
||||
class App {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { log } from '../../utils/logger.js';
|
||||
import { log } from '../../utils/logger.js?v=0127';
|
||||
|
||||
|
||||
// 检查Opus库是否已加载
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// 音频播放模块
|
||||
import { log } from '../../utils/logger.js';
|
||||
import BlockingQueue from '../../utils/blocking-queue.js';
|
||||
import { createStreamingContext } from './stream-context.js';
|
||||
import BlockingQueue from '../../utils/blocking-queue.js?v=0127';
|
||||
import { log } from '../../utils/logger.js?v=0127';
|
||||
import { createStreamingContext } from './stream-context.js?v=0127';
|
||||
|
||||
// 音频播放器类
|
||||
export class AudioPlayer {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Audio recording module
|
||||
import { log } from '../../utils/logger.js';
|
||||
import { initOpusEncoder } from './opus-codec.js';
|
||||
import { getAudioPlayer } from './player.js';
|
||||
import { log } from '../../utils/logger.js?v=0127';
|
||||
import { initOpusEncoder } from './opus-codec.js?v=0127';
|
||||
import { getAudioPlayer } from './player.js?v=0127';
|
||||
|
||||
// Audio recorder class
|
||||
export class AudioRecorder {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import BlockingQueue from '../../utils/blocking-queue.js';
|
||||
import { log } from '../../utils/logger.js';
|
||||
import BlockingQueue from '../../utils/blocking-queue.js?v=0127';
|
||||
import { log } from '../../utils/logger.js?v=0127';
|
||||
|
||||
// 音频流播放上下文类
|
||||
export class StreamingContext {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { log } from '../../utils/logger.js';
|
||||
import { log } from '../../utils/logger.js?v=0127';
|
||||
|
||||
// ==========================================
|
||||
// MCP 工具管理逻辑
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { log } from '../../utils/logger.js';
|
||||
import { log } from '../../utils/logger.js?v=0127';
|
||||
|
||||
// WebSocket 连接
|
||||
export async function webSocketConnect(otaUrl, config) {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// WebSocket消息处理模块
|
||||
import { getConfig, saveConnectionUrls } from '../../config/manager.js';
|
||||
import { uiController } from '../../ui/controller.js';
|
||||
import { log } from '../../utils/logger.js';
|
||||
import { getAudioPlayer } from '../audio/player.js';
|
||||
import { getAudioRecorder } from '../audio/recorder.js';
|
||||
import { executeMcpTool, getMcpTools, setWebSocket as setMcpWebSocket } from '../mcp/tools.js';
|
||||
import { webSocketConnect } from './ota-connector.js';
|
||||
import { getConfig, saveConnectionUrls } from '../../config/manager.js?v=0127';
|
||||
import { uiController } from '../../ui/controller.js?v=0127';
|
||||
import { log } from '../../utils/logger.js?v=0127';
|
||||
import { getAudioPlayer } from '../audio/player.js?v=0127';
|
||||
import { getAudioRecorder } from '../audio/recorder.js?v=0127';
|
||||
import { executeMcpTool, getMcpTools, setWebSocket as setMcpWebSocket } from '../mcp/tools.js?v=0127';
|
||||
import { webSocketConnect } from './ota-connector.js?v=0127';
|
||||
|
||||
// WebSocket处理器类
|
||||
export class WebSocketHandler {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// UI controller module
|
||||
import { loadConfig, saveConfig } from '../config/manager.js';
|
||||
import { getAudioPlayer } from '../core/audio/player.js';
|
||||
import { getAudioRecorder } from '../core/audio/recorder.js';
|
||||
import { getWebSocketHandler } from '../core/network/websocket.js';
|
||||
import { loadConfig, saveConfig } from '../config/manager.js?v=0127';
|
||||
import { getAudioPlayer } from '../core/audio/player.js?v=0127';
|
||||
import { getAudioRecorder } from '../core/audio/recorder.js?v=0127';
|
||||
import { getWebSocketHandler } from '../core/network/websocket.js?v=0127';
|
||||
|
||||
// UI controller class
|
||||
class UIController {
|
||||
|
||||
Reference in New Issue
Block a user