(metadata: Record<string, unknown>)
| 70 | } |
| 71 | |
| 72 | function cloneMetadata(metadata: Record<string, unknown>): Record<string, unknown> { |
| 73 | try { |
| 74 | return structuredClone(metadata) as Record<string, unknown>; |
| 75 | } catch { |
| 76 | return { ...metadata }; |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | export function localCommandPolicy(overrides: Partial<CommandPolicy> = {}): CommandPolicy { |
| 81 | return { |
no outgoing calls
no test coverage detected