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

Function dict

packages/opencode/src/cli/cmd/run/permission.shared.ts:46–52  ·  view source on GitHub ↗
(v: unknown)

Source from the content-addressed store, hash-verified

44}
45
46function dict(v: unknown): Dict {
47 if (!v || typeof v !== "object" || Array.isArray(v)) {
48 return {}
49 }
50
51 return { ...v }
52}
53
54function text(v: unknown): string {
55 return typeof v === "string" ? v : ""

Callers 2

dataFunction · 0.70
permissionInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected