feat: make skills invokable as slash commands in the TUI (#11390)
This commit is contained in:
parent
c0e71c4261
commit
81ac41e089
1 changed files with 25 additions and 6 deletions
|
|
@ -2,7 +2,6 @@ import path from "path"
|
|||
import z from "zod"
|
||||
import { Tool } from "./tool"
|
||||
import { Skill } from "../skill"
|
||||
import { ConfigMarkdown } from "../config/markdown"
|
||||
import { PermissionNext } from "../permission/next"
|
||||
|
||||
export const SkillTool = Tool.define("skill", async (ctx) => {
|
||||
|
|
@ -62,7 +61,7 @@ export const SkillTool = Tool.define("skill", async (ctx) => {
|
|||
always: [params.name],
|
||||
metadata: {},
|
||||
})
|
||||
const content = (await ConfigMarkdown.parse(skill.location)).content
|
||||
const content = skill.content
|
||||
const dir = path.dirname(skill.location)
|
||||
|
||||
// Format output similar to plugin pattern
|
||||
|
|
|
|||
Loading…
Reference in a new issue