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

Function permList

packages/opencode/src/cli/cmd/run/tool.ts:959–966  ·  view source on GitHub ↗
(p: ToolPermissionProps)

Source from the content-addressed store, hash-verified

957}
958
959function permList(p: ToolPermissionProps): ToolPermissionInfo {
960 const dir = text(dict(p.input).path) || p.patterns[0] || ""
961 return {
962 icon: "→",
963 title: `List ${toolPath(dir, { home: true })}`,
964 lines: dir ? [`Path: ${toolPath(dir, { home: true })}`] : [],
965 }
966}
967
968function permBash(p: ToolPermissionProps<typeof BashTool>): ToolPermissionInfo {
969 const cmd = p.input.command || ""

Callers

nothing calls this directly

Calls 3

toolPathFunction · 0.85
textFunction · 0.70
dictFunction · 0.70

Tested by

no test coverage detected