如题,在使用 Trae cn 的时候,并不能识别实时活动。
查看trae的hook配置文件,看到了如下配置:
{
"hooks": {
"beforeMCPExecution" : [
{
"command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event beforeMCPExecution"
}
],
"afterShellExecution" : [
{
"command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event afterShellExecution"
}
],
"beforeReadFile" : [
{
"command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event beforeReadFile"
}
],
"afterAgentResponse" : [
{
"command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event afterAgentResponse"
}
],
"beforeShellExecution" : [
{
"command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event beforeShellExecution"
}
],
"beforeSubmitPrompt" : [
{
"command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event beforeSubmitPrompt"
}
],
"afterFileEdit" : [
{
"command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event afterFileEdit"
}
],
"afterAgentThought" : [
{
"command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event afterAgentThought"
}
],
"stop" : [
{
"command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event stop"
}
],
"afterMCPExecution" : [
{
"command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event afterMCPExecution"
}
]
}
}
并不符合官方文档中给出的结构:
{
"version": 1,
"hooks": {
"<EventName>": [
{
"matcher": "<ToolPattern>",
"loop_limit": 5,
"hooks": [
{
"type": "command",
"command": "<shell command>",
"timeout": 30
}
]
}
]
}
}
请问这个是我的配置问题吗?
如题,在使用 Trae cn 的时候,并不能识别实时活动。
查看trae的hook配置文件,看到了如下配置:
{ "hooks": { "beforeMCPExecution" : [ { "command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event beforeMCPExecution" } ], "afterShellExecution" : [ { "command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event afterShellExecution" } ], "beforeReadFile" : [ { "command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event beforeReadFile" } ], "afterAgentResponse" : [ { "command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event afterAgentResponse" } ], "beforeShellExecution" : [ { "command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event beforeShellExecution" } ], "beforeSubmitPrompt" : [ { "command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event beforeSubmitPrompt" } ], "afterFileEdit" : [ { "command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event afterFileEdit" } ], "afterAgentThought" : [ { "command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event afterAgentThought" } ], "stop" : [ { "command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event stop" } ], "afterMCPExecution" : [ { "command" : "{家路径}/.codeisland/codeisland-bridge --source traecn --event afterMCPExecution" } ] } }并不符合官方文档中给出的结构:
{ "version": 1, "hooks": { "<EventName>": [ { "matcher": "<ToolPattern>", "loop_limit": 5, "hooks": [ { "type": "command", "command": "<shell command>", "timeout": 30 } ] } ] } }请问这个是我的配置问题吗?