This commit is contained in:
2026-06-09 21:19:30 +08:00
parent 8b41ff9360
commit 0484e79978
66 changed files with 4043 additions and 533 deletions
+2 -2
View File
@@ -22,7 +22,8 @@ type SessionContext struct {
WorkspaceID uuid.UUID
UserID uuid.UUID
CwdPath string
AgentSessionID *string // 可能 nil(handshake 未完成时不应触发 fs/* 但兜底)
AgentSessionID *string // 可能 nil(handshake 未完成时不应触发 fs/* 但兜底)
ToolAllowlist []string // agent kind 配置的工具白名单,命中则自动放行
}
// FsResult 是 fs/* method 处理后返回给 relay 的结果。要么 OK(带 result),
@@ -48,4 +49,3 @@ type FsHandler struct {
func NewFsHandler() *FsHandler {
return &FsHandler{Read: NewFsReadHandler(), Write: NewFsWriteHandler()}
}