Skip to content

Commit 1a9ba88

Browse files
committed
Do not pass default argument for tail
1 parent 3c2064d commit 1a9ba88

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/tools.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface Tools {
2727
logs: Omit<Tool<typeof getLogsInputSchema>, 'cli'>;
2828
}
2929

30-
const projectEvalDescription = `
30+
const projectEvalDescription = `
3131
Evaluates JavaScript/TypeScript code in the context of the project.
3232
3333
The current NodeJS version is: ${process.version}
@@ -75,7 +75,7 @@ Module reference format:
7575
7676
Examples:
7777
- src/types.ts:SymbolInfo (local file symbol)
78-
- lodash:isEmpty (dependency function)
78+
- lodash:isEmpty (dependency function)
7979
- react:Component#render (instance method)
8080
- node:Math.max (builtin static method)`;
8181

@@ -88,12 +88,7 @@ const sourceInputSchema = z.object({
8888
});
8989

9090
export const getLogsInputSchema = z.object({
91-
tail: z
92-
.number()
93-
.min(1)
94-
.max(10000)
95-
.default(100)
96-
.describe('Number of log entries to return from the end'),
91+
tail: z.number().describe('Number of log entries to return from the end'),
9792
grep: z.string().optional().describe('Filter logs with regex pattern (case insensitive)'),
9893
level: z
9994
.enum(['DEBUG', 'INFO', 'WARN', 'ERROR'])

0 commit comments

Comments
 (0)