refactor(plugin): remove AI slop and clean verbose comments
This commit is contained in:
@@ -38,7 +38,6 @@ export async function applyCommandConfig(params: {
|
||||
const includeClaudeCommands = params.pluginConfig.claude_code?.commands ?? true;
|
||||
const includeClaudeSkills = params.pluginConfig.claude_code?.skills ?? true;
|
||||
|
||||
// Detect conflicting skill plugins
|
||||
const externalSkillPlugin = detectExternalSkillPlugin(params.ctx.directory);
|
||||
if (includeClaudeSkills && externalSkillPlugin.detected) {
|
||||
log(getSkillPluginConflictWarning(externalSkillPlugin.pluginName!));
|
||||
|
||||
@@ -6,6 +6,10 @@ import { log } from "../shared";
|
||||
|
||||
type McpEntry = Record<string, unknown>;
|
||||
|
||||
function isDisabledMcpEntry(value: unknown): value is McpEntry & { enabled: false } {
|
||||
return typeof value === "object" && value !== null && (value as McpEntry).enabled === false;
|
||||
}
|
||||
|
||||
function captureUserDisabledMcps(
|
||||
userMcp: Record<string, unknown> | undefined
|
||||
): Set<string> {
|
||||
@@ -13,12 +17,7 @@ function captureUserDisabledMcps(
|
||||
if (!userMcp) return disabled;
|
||||
|
||||
for (const [name, value] of Object.entries(userMcp)) {
|
||||
if (
|
||||
value &&
|
||||
typeof value === "object" &&
|
||||
"enabled" in value &&
|
||||
(value as McpEntry).enabled === false
|
||||
) {
|
||||
if (isDisabledMcpEntry(value)) {
|
||||
disabled.add(name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user