MCPcopy
hub / github.com/sipeed/picoclaw / ExecTool

Struct ExecTool

pkg/tools/shell.go:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39type ExecTool struct {
40 workingDir string
41 timeout time.Duration
42 denyPatterns []*regexp.Regexp
43 allowPatterns []*regexp.Regexp
44 customAllowPatterns []*regexp.Regexp
45 allowedPathPatterns []*regexp.Regexp
46 restrictToWorkspace bool
47 allowRemote bool
48 sessionManager *SessionManager
49}
50
51var (
52 defaultDenyPatterns = []*regexp.Regexp{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected