( edit: string | Record<string, string> | undefined, )
| 13 | * wildcard object) so the caller can safely spread it and add overrides. |
| 14 | */ |
| 15 | export 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 |
no outgoing calls
no test coverage detected