fix(core): simplify tool schemas (#39184)

This commit is contained in:
Aiden Cline 2026-07-27 16:04:48 -05:00 committed by GitHub
commit 31124312f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 174 additions and 33 deletions

View file

@ -35,15 +35,15 @@ export const DEFAULT_SEARCH_LIMIT = 100
export class GlobInput extends Schema.Class<GlobInput>("FileSystem.GlobInput")({
pattern: Schema.String,
path: RelativePath.pipe(Schema.optional),
limit: PositiveInt.pipe(Schema.optional),
path: Schema.optionalKey(RelativePath),
limit: Schema.optionalKey(PositiveInt),
}) {}
export class GrepInput extends Schema.Class<GrepInput>("FileSystem.GrepInput")({
pattern: Schema.String,
path: RelativePath.pipe(Schema.optional),
include: Schema.String.pipe(Schema.optional),
limit: PositiveInt.pipe(Schema.optional),
path: Schema.optionalKey(RelativePath),
include: Schema.optionalKey(Schema.String),
limit: Schema.optionalKey(PositiveInt),
}) {}
export const Event = FileSystem.Event