chore: remove dead code for todoread tool (#19128)
This commit is contained in:
parent
cafc2b204b
commit
77fc88c8ad
87 changed files with 5 additions and 528 deletions
|
|
@ -80,11 +80,6 @@ export const TaskTool = Tool.define("task", async (ctx) => {
|
|||
pattern: "*",
|
||||
action: "deny",
|
||||
},
|
||||
{
|
||||
permission: "todoread",
|
||||
pattern: "*",
|
||||
action: "deny",
|
||||
},
|
||||
...(hasTaskPermission
|
||||
? []
|
||||
: [
|
||||
|
|
@ -137,7 +132,6 @@ export const TaskTool = Tool.define("task", async (ctx) => {
|
|||
agent: agent.name,
|
||||
tools: {
|
||||
todowrite: false,
|
||||
todoread: false,
|
||||
...(hasTaskPermission ? {} : { task: false }),
|
||||
...Object.fromEntries((config.experimental?.primary_tools ?? []).map((t) => [t, false])),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue