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

@@ -13,6 +13,7 @@ export function getLivePluginConfig(api: OpenClawPluginApi, fallback: DirigentCo
enableDirigentPolicyTool: true,
enableDebugLogs: false,
debugLogChannelIds: [],
noReplyPort: 8787,
schedulingIdentifier: "➡️",
waitIdentifier: "👤",
...cfg,

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]"}`);

View File

@@ -20,6 +20,7 @@
"waitIdentifier": { "type": "string", "default": "👤" },
"noReplyProvider": { "type": "string" },
"noReplyModel": { "type": "string" },
"noReplyPort": { "type": "number", "default": 8787 },
"enableDiscordControlTool": { "type": "boolean", "default": true },
"enableDirigentPolicyTool": { "type": "boolean", "default": true },
"enableDebugLogs": { "type": "boolean", "default": false },

View File

@@ -14,6 +14,7 @@ export type DirigentConfig = {
waitIdentifier?: string;
noReplyProvider: string;
noReplyModel: string;
noReplyPort?: number;
/** Discord bot token for the moderator bot (used for turn handoff messages) */
moderatorBotToken?: string;
};