mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-08 14:55:51 +00:00
feat: add API config system, FilePipe backend, and ConfigManager
- ConfigManager: route sensitive keys (API keys) to localStorage, migrate existing values out of extension_settings on startup - ApiKeyStore: local/cloud storage modes with RSA+AES hybrid encryption - ApiProfileManager: named connection profiles (chat/embedding/rerank) with per-slot type-validated assignments - FilePipe: complete IndexedDB backend (read/write/delete/list/stat) - Amily2Bus: inject FilePipe via forPlugin() capability token - UI: api-config-panel with profile CRUD and slot assignment - TableSystemService: initial service layer scaffold - logger.js: XSS fix
This commit is contained in:
2
index.js
2
index.js
@@ -15,6 +15,7 @@ import {
|
||||
checkForUpdates, fetchMessageBoardContent,
|
||||
setUpdateInfo, applyUpdateIndicator,
|
||||
pluginVersion, extensionName, defaultSettings,
|
||||
configManager,
|
||||
checkAuthorization, refreshUserInfo,
|
||||
tableSystemDefaultSettings,
|
||||
manageLorebookEntriesForChat,
|
||||
@@ -940,6 +941,7 @@ jQuery(async () => {
|
||||
registerAllApiHandlers();
|
||||
initializeAmilyHelper();
|
||||
mergePluginSettings();
|
||||
configManager.migrate(); // 将 extension_settings 中残留的敏感字段迁移到 localStorage
|
||||
|
||||
let attempts = 0;
|
||||
const maxAttempts = 100;
|
||||
|
||||
Reference in New Issue
Block a user