mirror of
https://github.com/Cola-Echo/memory-manager-concurrent.git
synced 2026-06-06 03:05:51 +00:00
Complete RMA system for tracking relationship dynamics in roleplay: - 10 new modules in src/rma/ (analyzer, memory-store, phase-manager, worldbook-sync, float-panel, confirmation-ui, timeline-view, etc.) - Three-layer model: phases → memories (4 types) → emotional texture - Post-processing AI analysis via CHARACTER_MESSAGE_RENDERED hook - Dynamic world book entry toggling/rewriting - Floating panel UI with 3 states (expanded/half/minimized) - User confirmation flow (every_turn/important_only/auto modes) - Settings panel integration with independent API config - chat_metadata.cola_rma persistence Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
66 lines
2.0 KiB
JavaScript
66 lines
2.0 KiB
JavaScript
const path = require('path');
|
|
const TerserPlugin = require('terser-webpack-plugin');
|
|
|
|
module.exports = (env, argv) => {
|
|
const isProduction = argv.mode === 'production';
|
|
|
|
return {
|
|
entry: './src/index.js',
|
|
|
|
output: {
|
|
filename: 'index.js',
|
|
path: path.resolve(__dirname, 'dist'),
|
|
iife: true,
|
|
clean: true,
|
|
},
|
|
|
|
optimization: {
|
|
minimize: isProduction,
|
|
minimizer: [
|
|
new TerserPlugin({
|
|
terserOptions: {
|
|
format: {
|
|
comments: false,
|
|
},
|
|
compress: {
|
|
drop_console: false,
|
|
drop_debugger: true,
|
|
},
|
|
},
|
|
extractComments: false,
|
|
}),
|
|
],
|
|
},
|
|
|
|
devtool: isProduction ? false : 'inline-source-map',
|
|
|
|
watchOptions: {
|
|
ignored: /node_modules/,
|
|
aggregateTimeout: 300,
|
|
},
|
|
|
|
performance: {
|
|
hints: isProduction ? 'warning' : false,
|
|
maxEntrypointSize: 512000,
|
|
maxAssetSize: 512000,
|
|
},
|
|
|
|
resolve: {
|
|
extensions: ['.js'],
|
|
alias: {
|
|
'@': path.resolve(__dirname, 'src'),
|
|
'@core': path.resolve(__dirname, 'src/core'),
|
|
'@config': path.resolve(__dirname, 'src/config'),
|
|
'@worldbook': path.resolve(__dirname, 'src/worldbook'),
|
|
'@api': path.resolve(__dirname, 'src/api'),
|
|
'@memory': path.resolve(__dirname, 'src/memory'),
|
|
'@hooks': path.resolve(__dirname, 'src/hooks'),
|
|
'@ui': path.resolve(__dirname, 'src/ui'),
|
|
'@utils': path.resolve(__dirname, 'src/utils'),
|
|
'@table-filler': path.resolve(__dirname, 'src/table-filler'),
|
|
'@rma': path.resolve(__dirname, 'src/rma'),
|
|
}
|
|
},
|
|
};
|
|
};
|