refactor(installer): rename to install.mjs, remove record/restore flow, add --no-reply-port and wire config port

This commit is contained in:
2026-03-08 06:38:33 +00:00
parent 7640e80373
commit 4d50826f2a
8 changed files with 266 additions and 501 deletions

View File

@@ -58,6 +58,7 @@ export default {
enableDirigentPolicyTool: true,
schedulingIdentifier: "➡️",
waitIdentifier: "👤",
noReplyPort: 8787,
...(api.pluginConfig || {}),
} as DirigentConfig & {
enableDiscordControlTool: boolean;
@@ -89,7 +90,7 @@ export default {
api.logger.warn(`dirigent: cannot read parent dir: ${String(e)}`);
}
startNoReplyApi(api.logger, pluginDir);
startNoReplyApi(api.logger, pluginDir, Number(live.noReplyPort || 8787));
const live = getLivePluginConfig(api, baseConfig as DirigentConfig);
api.logger.info(`dirigent: config loaded, moderatorBotToken=${live.moderatorBotToken ? "[set]" : "[not set]"}`);