MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / buildForkRegistry

Function buildForkRegistry

skills/executor.go:121–133  ·  view source on GitHub ↗
(base *coretools.ToolRegistry, allowedTools []string)

Source from the content-addressed store, hash-verified

119}
120
121func buildForkRegistry(base *coretools.ToolRegistry, allowedTools []string) *coretools.ToolRegistry {
122 if base == nil {
123 return coretools.NewToolRegistry()
124 }
125 if allowedTools != nil {
126 allow := map[string]struct{}{}
127 for _, tool := range allowedTools {
128 allow[tool] = struct{}{}
129 }
130 return base.FilteredCopy(allow, nil, false, false)
131 }
132 return base.FilteredCopy(nil, nil, true, false)
133}
134
135func applyForkEffort(prompt string, effort any) string {
136 if effort == nil {

Callers 1

ExecuteForkMethod · 0.85

Calls 1

FilteredCopyMethod · 0.80

Tested by

no test coverage detected