mirror of
https://github.com/stablyai/orca.git
synced 2026-10-06 00:02:43 +00:00
fix: avoid repeated macOS privacy prompts (#1524)
* fix: avoid repeated macos privacy prompts * fix: reduce background worktree permission probes * chore: pin oxlint for ci * fix: preserve optional rpc params with zod 4.4 * fix: preserve optional inline rpc params with zod 4.4
This commit is contained in:
@@ -60,6 +60,7 @@ export const Screenshot = BrowserTarget.extend({
|
||||
export const FullScreenshot = BrowserTarget.extend({
|
||||
format: z
|
||||
.unknown()
|
||||
.optional()
|
||||
.transform((v) => (v === 'jpeg' ? 'jpeg' : 'png'))
|
||||
.pipe(z.enum(['png', 'jpeg']))
|
||||
})
|
||||
@@ -166,6 +167,7 @@ export const Check = BrowserTarget.extend({
|
||||
element: requiredString('Missing required --element'),
|
||||
checked: z
|
||||
.unknown()
|
||||
.optional()
|
||||
.transform((v) => v !== false)
|
||||
.pipe(z.boolean())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user