mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-02 07:03:45 +00:00
wip: refactor permissions
This commit is contained in:
@@ -108,10 +108,11 @@ export const BashTool = Tool.define("bash", {
|
||||
const cfg = await Config.get()
|
||||
if (cfg.permission?.bash === "ask")
|
||||
await Permission.ask({
|
||||
id: "bash",
|
||||
type: "bash",
|
||||
pattern: params.command.split(" ").slice(0, 2).join(" ").trim(),
|
||||
sessionID: ctx.sessionID,
|
||||
messageID: ctx.messageID,
|
||||
toolCallID: ctx.toolCallID,
|
||||
callID: ctx.toolCallID,
|
||||
title: "Run this command: " + params.command,
|
||||
metadata: {
|
||||
command: params.command,
|
||||
|
||||
Reference in New Issue
Block a user