refactor(tools): remove redundant limits and acknowledgements

This commit is contained in:
morluto
2026-09-29 10:53:45 +08:00
parent 7ba3580c86
commit bd0e341572
158 changed files with 599 additions and 1527 deletions
-3
View File
@@ -22,7 +22,6 @@ export const electronFileRootsSchema = z
const approvedElectronInput = {
cdp_endpoint: browserEndpointSchema,
allowed_file_roots: electronFileRootsSchema,
approved: z.literal(true),
};
/** Input for listing root-confined file:// page targets from Electron CDP. */
@@ -73,12 +72,10 @@ export const inspectElectronPageInputSchema = z
z.object({
...inspectElectronPageFacts,
include_script_sources: z.literal(false).default(false),
source_capture_approved: z.literal(false).default(false),
}),
z.object({
...inspectElectronPageFacts,
include_script_sources: z.literal(true),
source_capture_approved: z.literal(true),
}),
])
.superRefine((input, context) => {