Skip to content

@W-22169856: Rename Tool -> WebTool#324

Open
anyoung-tableau wants to merge 5 commits intoanyoung/web-tool-namefrom
anyoung/web-tool
Open

@W-22169856: Rename Tool -> WebTool#324
anyoung-tableau wants to merge 5 commits intoanyoung/web-tool-namefrom
anyoung/web-tool

Conversation

@anyoung-tableau
Copy link
Copy Markdown
Collaborator

No description provided.

@anyoung-tableau anyoung-tableau marked this pull request as ready for review April 23, 2026 21:21
Comment thread src/tools/toolName.ts
@@ -0,0 +1,3 @@
import { WebToolName } from './toolName.web.js';

export type ToolName = WebToolName;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could make the shared Tool contract more web-shaped than intended

Tool is generic over TToolName extends ToolName, but ToolName is currently just an alias for WebToolName, so future variants still have to come through a web-defined shared type

This closing question may feel tedious at this point, but regardless: should ToolName stay variant-agnostic here, with web-specific narrowing pushed to the variant boundary instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants