Files
reverse-engineering-anything/src/contracts/analysisSearchContract.ts
T
morluto 3d24683b06 fix(search): share Unicode literal matching and preserve field boundaries
Preserve format and Evidence semantics at their owning boundaries, with focused regression coverage and documentation where applicable.

Fixes #6785
Fixes #6714
Fixes #6735
Fixes #6750
2026-10-23 23:36:21 +08:00

18 lines
530 B
TypeScript

import { z } from "zod";
/** Shared provider search input fields. */
export const analysisSearchInput = {
pattern: z
.string()
.min(1)
.describe("The literal text or regex pattern to search for"),
mode: z.enum(["literal", "regex"]).default("literal"),
case_sensitive: z
.boolean()
.default(false)
.describe(
"Whether to match case; case-insensitive matching uses Unicode simple case folding, one character at a time",
),
document: z.string().optional().describe("The document name"),
};