Files
2026-06-29 21:16:52 +08:00

24 lines
539 B
TypeScript

import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
const commands = [
"comet",
"comet-open",
"comet-design",
"comet-build",
"comet-verify",
"comet-archive",
"comet-hotfix",
"comet-tweak"
] as const;
export default function registerCometCommands(pi: ExtensionAPI) {
for (const name of commands) {
pi.registerCommand(name, {
description: `Comet: /${name}`,
handler: async (args) => {
pi.sendUserMessage(args ? `/skill:${name} ${args}` : `/skill:${name}`);
},
});
}
}