Skip to content

Commit 1e45b75

Browse files
committed
chore: unify category flags style
1 parent 3a04c33 commit 1e45b75

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

src/index.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,15 @@ import {
2424
ListRootsResultSchema,
2525
RootsListChangedNotificationSchema,
2626
} from './third_party/index.js';
27-
import {
28-
ToolCategory,
29-
labels,
30-
OFF_BY_DEFAULT_CATEGORIES,
31-
} from './tools/categories.js';
27+
import type {ToolCategory} from './tools/categories.js';
28+
import {labels, OFF_BY_DEFAULT_CATEGORIES} from './tools/categories.js';
3229
import type {DefinedPageTool, ToolDefinition} from './tools/ToolDefinition.js';
3330
import {pageIdSchema} from './tools/ToolDefinition.js';
3431
import {createTools} from './tools/tools.js';
3532
import {VERSION} from './version.js';
3633

3734
export function buildFlag(category: ToolCategory) {
38-
return category === ToolCategory.IN_PAGE
39-
? 'categoryInPageTools'
40-
: `category${category.charAt(0).toUpperCase() + category.slice(1)}`;
35+
return `category${category.charAt(0).toUpperCase() + category.slice(1)}`;
4136
}
4237

4338
function buildDisabledMessage(

src/tools/categories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export enum ToolCategory {
1212
NETWORK = 'network',
1313
DEBUGGING = 'debugging',
1414
EXTENSIONS = 'extensions',
15-
IN_PAGE = 'in-page',
15+
IN_PAGE = 'inPageTools',
1616
MEMORY = 'memory',
1717
}
1818

0 commit comments

Comments
 (0)