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

Function permissionKind

packages/opencode/src/cli/cmd/run/demo.ts:44–47  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

42type QuestionKind = (typeof QUESTIONS)[number]
43
44function permissionKind(value: string | undefined): PermissionKind | undefined {
45 const next = (value || "edit").toLowerCase()
46 return PERMISSIONS.find((item) => item === next)
47}
48
49function questionKind(value: string | undefined): QuestionKind | undefined {
50 const next = (value || "multi").toLowerCase()

Callers 1

promptFunction · 0.85

Calls 1

findMethod · 0.65

Tested by

no test coverage detected