Skip to content

Conversation

@ryoppippi
Copy link
Member

@ryoppippi ryoppippi commented Dec 18, 2025

Summary

Remove the unified API tool validation that was previously used to detect legacy/misconfigured accounts. This validation is no longer needed as the unified API architecture has been deprecated.

What Changed

  • Remove UNIFIED_API_PREFIX constant from consts.ts
  • Remove validateToolName() method from StackOneToolSet class
  • Remove unified API tool validation call in fetchTools()
  • Remove @see reference to unified-cloud-api in schema.ts
  • Remove corresponding unit test for unified API tool detection

Why

The unified API architecture has been deprecated, so the validation code that detected and rejected unified API tools is no longer necessary. This simplifies the codebase by removing obsolete code paths.


Summary by cubic

Removed unified API tool validation and references now that the architecture is deprecated. This simplifies tool fetching and avoids throwing configuration errors for unified_-prefixed tools.

  • Refactors
    • Removed UNIFIED_API_PREFIX from consts.ts
    • Deleted validateToolName and its call in fetchTools
    • Removed unified API unit test
    • Dropped @see unified-cloud-api reference in schema.ts

Written for commit 18ca8b6. Summary will update automatically on new commits.

Remove the unified API tool validation that was previously used to detect
legacy/misconfigured accounts. This validation is no longer needed as
the unified API architecture has been deprecated.

Changes:
- Remove UNIFIED_API_PREFIX constant from consts.ts
- Remove validateToolName() method from StackOneToolSet class
- Remove unified API tool validation call in fetchTools()
- Remove UNIFIED_API_PREFIX import from toolsets.ts
- Remove @see reference to unified-cloud-api in schema.ts
- Remove corresponding unit test for unified API tool detection

This simplifies the codebase by removing code paths that are no longer
relevant to the current API architecture.
@ryoppippi ryoppippi requested a review from a team as a code owner December 18, 2025 18:17
Copilot AI review requested due to automatic review settings December 18, 2025 18:17
@ryoppippi ryoppippi changed the title refactor(toolsets): remove unified API validation and support fix: remove unified API validation and support Dec 18, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 18, 2025

Open in StackBlitz

npm i https://pkg.pr.new/StackOneHQ/stackone-ai-node/@stackone/ai@256

commit: 18ca8b6

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes deprecated unified API validation code that was used to detect and reject legacy/misconfigured accounts. The unified API architecture has been deprecated, making this validation obsolete.

Key Changes:

  • Removed unified API tool name validation logic from StackOneToolSet class
  • Removed UNIFIED_API_PREFIX constant definition
  • Removed test coverage for unified API tool detection

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/consts.ts Removed UNIFIED_API_PREFIX constant definition
src/toolsets.ts Removed UNIFIED_API_PREFIX import, validateToolName() method, and its call in fetchToolsFromMcp()
src/toolsets.test.ts Removed test case for unified API tool validation error
src/schema.ts Removed @see reference to deprecated unified-cloud-api service

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 4 files

Copy link
Contributor

@glebedel glebedel left a comment

Choose a reason for hiding this comment

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

LGTM

@ryoppippi ryoppippi merged commit a9bbed8 into main Dec 21, 2025
25 checks passed
@ryoppippi ryoppippi deleted the chore/remove-unified-api-support branch December 21, 2025 12:05
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.

3 participants