docs(acp): clarify default startup and runtime paths

This commit is contained in:
Peter Steinberger
2026-04-04 15:10:07 +09:00
parent e56ffd48df
commit b32a2cadc2
6 changed files with 98 additions and 5 deletions

View File

@@ -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,
);
});

View File

@@ -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,