(overrides: Partial<CommandPolicy> = {})
| 78 | } |
| 79 | |
| 80 | export function localCommandPolicy(overrides: Partial<CommandPolicy> = {}): CommandPolicy { |
| 81 | return { |
| 82 | allowLocalInputPaths: true, |
| 83 | allowLocalOutputPaths: true, |
| 84 | maxImagePixels: 20_000_000, |
| 85 | allowNamedBackendCapabilities: [], |
| 86 | ...overrides, |
| 87 | }; |
| 88 | } |
| 89 | |
| 90 | export function restrictedCommandPolicy(overrides: Partial<CommandPolicy> = {}): CommandPolicy { |
| 91 | return { |
no outgoing calls