mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-23 22:55:24 +00:00
docs(acp): clarify default startup and runtime paths
This commit is contained in:
@@ -250,7 +250,7 @@ describe("collectPluginConfigAssignments", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps bundled acpx inactive unless explicitly enabled", () => {
|
||||
it("treats bundled acpx as active by default", () => {
|
||||
const config = asConfig({
|
||||
plugins: {
|
||||
enabled: true,
|
||||
@@ -274,9 +274,11 @@ describe("collectPluginConfigAssignments", () => {
|
||||
loadablePluginOrigins: loadablePluginOrigins([["acpx", "bundled"]]),
|
||||
});
|
||||
|
||||
expect(context.assignments).toHaveLength(0);
|
||||
expect(context.assignments).toHaveLength(1);
|
||||
expect(context.assignments[0]?.path).toBe("plugins.entries.acpx.config.mcpServers.s1.env.K");
|
||||
expect(context.assignments[0]?.ref.id).toBe("K");
|
||||
expect(context.warnings.some((w) => w.code === "SECRETS_REF_IGNORED_INACTIVE_SURFACE")).toBe(
|
||||
true,
|
||||
false,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ import {
|
||||
import { isRecord } from "./shared.js";
|
||||
|
||||
const ACPX_PLUGIN_ID = "acpx";
|
||||
const ACPX_ENABLED_BY_DEFAULT = true;
|
||||
|
||||
/**
|
||||
* Walk plugin config entries and collect SecretRef assignments for MCP server
|
||||
@@ -63,7 +64,14 @@ export function collectPluginConfigAssignments(params: {
|
||||
continue;
|
||||
}
|
||||
|
||||
const enableState = resolveEnableState(pluginId, pluginOrigin ?? "config", normalizedConfig);
|
||||
const enableState = resolveEnableState(
|
||||
pluginId,
|
||||
pluginOrigin ?? "config",
|
||||
normalizedConfig,
|
||||
pluginId === ACPX_PLUGIN_ID && pluginOrigin === "bundled"
|
||||
? ACPX_ENABLED_BY_DEFAULT
|
||||
: undefined,
|
||||
);
|
||||
collectMcpServerEnvAssignments({
|
||||
pluginId,
|
||||
pluginConfig,
|
||||
|
||||
Reference in New Issue
Block a user