refactor(contracts): remove duplicate schema aliases
This commit is contained in:
@@ -137,14 +137,11 @@ export const inspectWebPageWithSourceInputSchema =
|
||||
inspectWebPageWithSourceShapeSchema.superRefine(refineInspectWebPageInput);
|
||||
|
||||
/** Caller-visible schema for one passive inspection. */
|
||||
export const inspectWebPageToolInputSchema = z.union([
|
||||
export const inspectWebPageInputSchema = z.union([
|
||||
inspectWebPageWithoutSourceSchema.superRefine(refineInspectWebPageInput),
|
||||
inspectWebPageWithSourceInputSchema,
|
||||
]);
|
||||
|
||||
/** Parsed passive browser inspection input. */
|
||||
export const inspectWebPageInputSchema = inspectWebPageToolInputSchema;
|
||||
|
||||
export type ListBrowserTargetsInput = z.infer<
|
||||
typeof listBrowserTargetsInputSchema
|
||||
>;
|
||||
|
||||
@@ -32,8 +32,6 @@ export const inspectElectronPageInputSchema = z.union([
|
||||
include_script_sources: z.literal(true),
|
||||
}),
|
||||
]);
|
||||
export const inspectElectronPageToolInputSchema =
|
||||
inspectElectronPageInputSchema;
|
||||
export type InspectElectronPageInput = z.infer<
|
||||
typeof inspectElectronPageInputSchema
|
||||
>;
|
||||
|
||||
@@ -34,8 +34,6 @@ export const observeJavaScriptRuntimeInputSchema = z.strictObject({
|
||||
runtime_kind: javascriptRuntimeKindSchema.optional(),
|
||||
observation_ms: z.number().int().min(0).default(100),
|
||||
});
|
||||
export const observeJavaScriptRuntimeToolInputSchema =
|
||||
observeJavaScriptRuntimeInputSchema;
|
||||
export type ObserveJavaScriptRuntimeInput = z.infer<
|
||||
typeof observeJavaScriptRuntimeInputSchema
|
||||
>;
|
||||
|
||||
@@ -4,11 +4,10 @@ import { inspectWebPageWithSourceInputSchema } from "./browserObservation.js";
|
||||
import { webTextArtifactSchema } from "./webContentArtifact.js";
|
||||
|
||||
/** Capture-and-analyze input with optional source-map fetching. */
|
||||
export const analyzeWebBundleToolInputSchema =
|
||||
export const analyzeWebBundleInputSchema =
|
||||
inspectWebPageWithSourceInputSchema.safeExtend({
|
||||
fetch_source_maps: z.boolean().default(false),
|
||||
});
|
||||
export const analyzeWebBundleInputSchema = analyzeWebBundleToolInputSchema;
|
||||
export type AnalyzeWebBundleInput = z.infer<typeof analyzeWebBundleInputSchema>;
|
||||
|
||||
const sourceLocationSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user