init version
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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}`);
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user