Skip to content

Commit 8d0d58a

Browse files
feat(api): api update
1 parent 4457795 commit 8d0d58a

File tree

4 files changed

+17
-52
lines changed

4 files changed

+17
-52
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/benchify%2Fbenchify-2701905dd453ab3f87696efb9190e8f48cb5dcbf43bb74bf3f2367e347f9868c.yml
3-
openapi_spec_hash: 124c1d143d28e6312e76a4c3eb3f21d5
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/benchify%2Fbenchify-2a67e842b87576472f1969d75642637db0f0f42fc805a61ab3b880e544941595.yml
3+
openapi_spec_hash: 7cf70aa93bf241c1d1460f48182e9819
44
config_hash: 935baad1727a1116efdc14e9ce6e4405

packages/mcp-server/src/tools/fixer/run-fixer.ts

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,30 +45,10 @@ export const tool: Tool = {
4545
required: ['contents', 'path'],
4646
},
4747
},
48-
fix_types: {
49-
type: 'array',
50-
title: 'Fix Types',
51-
description: 'Configuration for which fix types to apply',
52-
items: {
53-
type: 'string',
54-
title: 'FixTypeName',
55-
description: 'Enumeration of available fix types',
56-
enum: [
57-
'import_export',
58-
'string_literals',
59-
'ts_suggestions',
60-
'css',
61-
'tailwind',
62-
'react',
63-
'ai_fallback',
64-
'types',
65-
],
66-
},
67-
},
6848
fixes: {
6949
type: 'object',
7050
title: 'FixConfigObject',
71-
description: 'DEPRECATED: legacy boolean flags for which fixes to apply.',
51+
description: 'Configuration object for specifying which fixes to apply',
7252
properties: {
7353
css: {
7454
type: 'boolean',

src/resources/fixer.ts

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -238,21 +238,7 @@ export interface FixerRunParams {
238238
files: Array<FixerRunParams.File>;
239239

240240
/**
241-
* Configuration for which fix types to apply
242-
*/
243-
fix_types?: Array<
244-
| 'import_export'
245-
| 'string_literals'
246-
| 'ts_suggestions'
247-
| 'css'
248-
| 'tailwind'
249-
| 'react'
250-
| 'ai_fallback'
251-
| 'types'
252-
>;
253-
254-
/**
255-
* @deprecated DEPRECATED: legacy boolean flags for which fixes to apply.
241+
* Configuration object for specifying which fixes to apply
256242
*/
257243
fixes?: FixerRunParams.Fixes | null;
258244

@@ -289,38 +275,38 @@ export namespace FixerRunParams {
289275
}
290276

291277
/**
292-
* @deprecated DEPRECATED: legacy boolean flags for which fixes to apply.
278+
* Configuration object for specifying which fixes to apply
293279
*/
294280
export interface Fixes {
295281
/**
296-
* @deprecated Whether to fix CSS issues
282+
* Whether to fix CSS issues
297283
*/
298-
css?: boolean | null;
284+
css?: boolean;
299285

300286
/**
301-
* @deprecated Whether to fix import issues
287+
* Whether to fix import issues
302288
*/
303-
imports?: boolean | null;
289+
imports?: boolean;
304290

305291
/**
306-
* @deprecated Whether to fix React issues
292+
* Whether to fix React issues
307293
*/
308-
react?: boolean | null;
294+
react?: boolean;
309295

310296
/**
311-
* @deprecated Whether to fix string literal issues
297+
* Whether to fix string literal issues
312298
*/
313-
stringLiterals?: boolean | null;
299+
stringLiterals?: boolean;
314300

315301
/**
316-
* @deprecated Whether to fix Tailwind issues
302+
* Whether to fix Tailwind issues
317303
*/
318-
tailwind?: boolean | null;
304+
tailwind?: boolean;
319305

320306
/**
321-
* @deprecated Whether to fix TypeScript suggestions
307+
* Whether to fix TypeScript suggestions
322308
*/
323-
tsSuggestions?: boolean | null;
309+
tsSuggestions?: boolean;
324310
}
325311

326312
/**

tests/api-resources/fixer.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ describe('resource fixer', () => {
2424
test.skip('run: required and optional params', async () => {
2525
const response = await client.fixer.run({
2626
files: [{ contents: 'contents', path: 'x' }],
27-
fix_types: ['import_export'],
2827
fixes: {
2928
css: true,
3029
imports: true,

0 commit comments

Comments
 (0)