MCPcopy Index your code
hub / github.com/anomalyco/opencode / hasTaskTool

Function hasTaskTool

packages/opencode/src/tool/truncate.ts:28–31  ·  view source on GitHub ↗
(agent?: Agent.Info)

Source from the content-addressed store, hash-verified

26}
27
28function hasTaskTool(agent?: Agent.Info) {
29 if (!agent?.permission) return false
30 return evaluate("task", "*", agent.permission).action !== "deny"
31}
32
33export interface Interface {
34 readonly cleanup: () => Effect.Effect<void>

Callers 1

truncate.tsFile · 0.85

Calls 1

evaluateFunction · 0.50

Tested by

no test coverage detected