Skip to content

@W-22184369: Move “web” tools to tools/web#326

Open
anyoung-tableau wants to merge 2 commits intoanyoung/web-tool-contextfrom
anyoung/tools-web-folder
Open

@W-22184369: Move “web” tools to tools/web#326
anyoung-tableau wants to merge 2 commits intoanyoung/web-tool-contextfrom
anyoung/tools-web-folder

Conversation

@anyoung-tableau
Copy link
Copy Markdown
Collaborator

@anyoung-tableau anyoung-tableau commented Apr 22, 2026

These changes move all the tools into the web folder. The motivation is to support the creation of tools for later variants like Desktop.

@anyoung-tableau anyoung-tableau marked this pull request as ready for review April 23, 2026 21:21

import { getConfig } from '../../config.js';
import type { WebToolName } from '../../tools/toolName.web.js';
import type { WebToolName } from '../../tools/web/toolName.js';
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.

Boundary question-cito here: after moving tools under tools/web, shared infrastructure is now importing WebToolName back out of that folder

Import direction is going the wrong way, especially for things like OAuth scope mapping that seem web-specific by nature

Should this web-shaped policy live under tools/web, with only the variant-agnostic scope primitives staying here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

OAuth scope mapping is definitely web-specific and we won't have any variant-agnostic scopes any time soon. I don't think it belongs under src/tools/web but could live under src/web/server/oauth (meaning we could move server under a new web folder). I don't really feel strongly that it needs to move, at least not now.

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