Restore Superpowers reviews (#12)
Co-authored-by: Danny Kim <temeddix@gmail.com> Co-committed-by: Danny Kim <temeddix@gmail.com>
This commit was merged in pull request #12.
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
export type BotType = "claude" | "codex";
|
||||
|
||||
export type InstallCommand = {
|
||||
command: string;
|
||||
args: string[];
|
||||
};
|
||||
|
||||
export function parseBotType(value: string): BotType {
|
||||
if (value === "claude" || value === "codex") return value;
|
||||
throw new Error(`unsupported bot type: ${value}`);
|
||||
}
|
||||
|
||||
export function superpowersInstallCommands(
|
||||
bot: BotType,
|
||||
): InstallCommand[] {
|
||||
if (bot === "claude") {
|
||||
return [
|
||||
{
|
||||
command: "claude",
|
||||
args: [
|
||||
"plugin",
|
||||
"marketplace",
|
||||
"add",
|
||||
"obra/superpowers-marketplace",
|
||||
],
|
||||
},
|
||||
{
|
||||
command: "claude",
|
||||
args: [
|
||||
"plugin",
|
||||
"install",
|
||||
"-y",
|
||||
"superpowers@superpowers-marketplace",
|
||||
],
|
||||
},
|
||||
];
|
||||
}
|
||||
return [{
|
||||
command: "codex",
|
||||
args: ["plugin", "add", "superpowers@openai-curated-remote"],
|
||||
}];
|
||||
}
|
||||
Reference in New Issue
Block a user