fix(core): simplify tool schemas (#39184)
This commit is contained in:
parent
4f622fa7cd
commit
31124312f6
11 changed files with 174 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue