2.0变量 , 向量总结正式推送

This commit is contained in:
RT15548
2026-02-16 00:30:59 +08:00
parent 17b1fe9091
commit cd9fe53f84
75 changed files with 48287 additions and 12186 deletions

View File

@@ -1,4 +1,4 @@
import { EventCenter } from "./event-manager.js";
import { EventCenter } from "./event-manager.js";
const DEFAULT_MAX_LOGS = 200;
@@ -110,14 +110,14 @@ class LoggerCore {
});
}
info(moduleId, message) {
this._log("info", moduleId, message, null);
info(moduleId, ...args) {
const msg = args.map(a => (typeof a === 'string' ? a : safeStringify(a))).join(' ');
this._log('info', moduleId, msg, null);
}
warn(moduleId, message) {
this._log("warn", moduleId, message, null);
warn(moduleId, ...args) {
const msg = args.map(a => (typeof a === 'string' ? a : safeStringify(a))).join(' ');
this._log('warn', moduleId, msg, null);
}
error(moduleId, message, err) {
this._log("error", moduleId, message, err || null);
}

View File

@@ -183,3 +183,4 @@ export const StoryOutlineStorage = new StorageFile('LittleWhiteBox_StoryOutline.
export const NovelDrawStorage = new StorageFile('LittleWhiteBox_NovelDraw.json', { debounceMs: 800 });
export const TtsStorage = new StorageFile('LittleWhiteBox_TTS.json', { debounceMs: 800 });
export const CommonSettingStorage = new StorageFile('LittleWhiteBox_CommonSettings.json', { debounceMs: 1000 });
export const VectorStorage = new StorageFile('LittleWhiteBox_Vectors.json', { debounceMs: 3000 });