Skip to content

Commit fd06d2b

Browse files
refactor(mcp): remove unnecessary as-casts in tool-ref-pins and command-tools
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent d0041b5 commit fd06d2b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/mcp/tool-ref-pins.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function createToolRefPinStore(): ToolRefPinStore {
4747
* (the coarse #1093 warning is the floor). The model never sees or types
4848
* suffixes.
4949
*/
50-
const REF_ISSUING_TOOLS: ReadonlySet<CommandName> = new Set(['snapshot', 'find'] as CommandName[]);
50+
const REF_ISSUING_TOOLS: ReadonlySet<CommandName> = new Set(['snapshot', 'find'] as const);
5151

5252
/**
5353
* `--settle` (#1101) makes an interaction response CONDITIONALLY ref-issuing:
@@ -63,15 +63,15 @@ const SETTLE_REF_ISSUING_TOOLS: ReadonlySet<CommandName> = new Set([
6363
'click',
6464
'fill',
6565
'longpress',
66-
] as CommandName[]);
66+
] as const);
6767

6868
const TARGET_REF_TOOLS: ReadonlySet<CommandName> = new Set([
6969
'press',
7070
'click',
7171
'fill',
7272
'longpress',
7373
'get',
74-
] as CommandName[]);
74+
] as const);
7575

7676
/**
7777
* Bound on remembered pins per scope. Refs still alive keep getting re-merged

0 commit comments

Comments
 (0)