MCPcopy Create free account
hub / github.com/backnotprop/plannotator / normalizeEditPermission

Function normalizeEditPermission

apps/opencode-plugin/plan-mode.ts:15–22  ·  view source on GitHub ↗
(
  edit: string | Record<string, string> | undefined,
)

Source from the content-addressed store, hash-verified

13 * wildcard object) so the caller can safely spread it and add overrides.
14 */
15export function normalizeEditPermission(
16 edit: string | Record<string, string> | undefined,
17): Record<string, string> {
18 if (typeof edit === "string") {
19 return { "*": edit };
20 }
21 return edit ?? {};
22}
23
24// ── Prompt stripping ──────────────────────────────────────────────────────
25

Callers 2

plan-mode.test.tsFile · 0.90
allowPlanningAgentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected