refactor: split request handle logic to controller

This commit is contained in:
d-kimsuon
2025-10-17 23:46:38 +09:00
parent c745824dbe
commit 1bd122daa0
22 changed files with 1308 additions and 693 deletions

View File

@@ -37,6 +37,22 @@ export const Config = Effect.gen(function* () {
};
});
export const getMcpListOutput = (projectCwd: string) =>
Effect.gen(function* () {
const { claudeCodeExecutablePath } = yield* Config;
const output = yield* Command.string(
Command.make(
"cd",
projectCwd,
"&&",
claudeCodeExecutablePath,
"mcp",
"list",
),
);
return output;
});
export const getAvailableFeatures = (
claudeCodeVersion: ClaudeCodeVersion.ClaudeCodeVersion | null,
) => ({