Revert "feat: make skills invokable as slash commands in the TUI"

This reverts commit 85126556b8.
This commit is contained in:
Dax Raad
2026-01-30 20:37:41 -05:00
parent 85126556b8
commit 3542f3e406
4 changed files with 1 additions and 27 deletions

View File

@@ -6,7 +6,6 @@ import { Identifier } from "../id/id"
import PROMPT_INITIALIZE from "./template/initialize.txt"
import PROMPT_REVIEW from "./template/review.txt"
import { MCP } from "../mcp"
import { Skill } from "../skill"
export namespace Command {
export const Event = {
@@ -28,7 +27,6 @@ export namespace Command {
agent: z.string().optional(),
model: z.string().optional(),
mcp: z.boolean().optional(),
skill: z.boolean().optional(),
// workaround for zod not supporting async functions natively so we use getters
// https://zod.dev/v4/changelog?id=zfunction
template: z.promise(z.string()).or(z.string()),
@@ -120,21 +118,6 @@ export namespace Command {
}
}
// Add skills as invokable commands
for (const skill of await Skill.all()) {
// Skip if a command with this name already exists
if (result[skill.name]) continue
result[skill.name] = {
name: skill.name,
description: skill.description,
skill: true,
get template() {
return Skill.content(skill.name).then((content) => content ?? "")
},
hints: [],
}
}
return result
})