fix(providers,tools): address linter issues after reorg

This commit is contained in:
lc6464 committed 2026-04-17 14:16:18 +08:00
1 parent 4c133dc2d9
commit 9b4efddd9b
5 files changed
+36 -27

No files matched your search

+26 -5
View File
@@ -20,7 +20,12 @@ type (
const MaxReadFileSize = fstools.MaxReadFileSize
func NewReadFileTool(workspace string, restrict bool, maxReadFileSize int, allowPaths ...[]*regexp.Regexp) *ReadFileTool {
func NewReadFileTool(
workspace string,
restrict bool,
maxReadFileSize int,
allowPaths ...[]*regexp.Regexp,
) *ReadFileTool {
return fstools.NewReadFileTool(workspace, restrict, maxReadFileSize, allowPaths...)
}
@@ -42,19 +47,35 @@ func NewReadFileLinesTool(
return fstools.NewReadFileLinesTool(workspace, restrict, maxReadFileSize, allowPaths...)
}
func NewWriteFileTool(workspace string, restrict bool, allowPaths ...[]*regexp.Regexp) *WriteFileTool {
func NewWriteFileTool(
workspace string,
restrict bool,
allowPaths ...[]*regexp.Regexp,
) *WriteFileTool {
return fstools.NewWriteFileTool(workspace, restrict, allowPaths...)
}
func NewListDirTool(workspace string, restrict bool, allowPaths ...[]*regexp.Regexp) *ListDirTool {
func NewListDirTool(
workspace string,
restrict bool,
allowPaths ...[]*regexp.Regexp,
) *ListDirTool {
return fstools.NewListDirTool(workspace, restrict, allowPaths...)
}
func NewEditFileTool(workspace string, restrict bool, allowPaths ...[]*regexp.Regexp) *EditFileTool {
func NewEditFileTool(
workspace string,
restrict bool,
allowPaths ...[]*regexp.Regexp,
) *EditFileTool {
return fstools.NewEditFileTool(workspace, restrict, allowPaths...)
}
func NewAppendFileTool(workspace string, restrict bool, allowPaths ...[]*regexp.Regexp) *AppendFileTool {
func NewAppendFileTool(
workspace string,
restrict bool,
allowPaths ...[]*regexp.Regexp,
) *AppendFileTool {
return fstools.NewAppendFileTool(workspace, restrict, allowPaths...)
}