Skip to content

Conversation

Copy link

Copilot AI commented Dec 9, 2025

Addresses review feedback on #164 to maintain consistent naming conventions for constant files.

Changes

  • Moved DEFAULT_BASE_URL from src/consts.ts to existing src/constants.ts
  • Updated imports in src/index.ts, src/toolsets/stackone.ts, and src/tools/feedback.ts
  • Removed src/consts.ts

The codebase now uses a single constants.ts file for all constants instead of splitting them across multiple files.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.


Summary by cubic

Adds a safe default baseURL to the client and clarifies how it’s chosen, so apps don’t need to pass it every time and requests land in the right environment.

  • New Features
    • Apply a default baseURL when none is provided.
    • Resolution order: explicit client option → environment variable → package default.
    • Backward-compatible for users already setting baseURL.

Written for commit 1d82c9b. Summary will update automatically on new commits.

claude and others added 2 commits December 9, 2025 03:13
Create a central consts.ts file with DEFAULT_BASE_URL constant and use it
as the default value in StackOneToolSet constructor. This allows users to
use the SDK without explicitly providing a baseUrl.

Closes #149
Copilot AI mentioned this pull request Dec 9, 2025
Base automatically changed from claude/fix-issue-149-01FJuzkd3XSwVjj6zK6vC8gn to main December 9, 2025 10:00
Move DEFAULT_BASE_URL from consts.ts to constants.ts to maintain
consistent naming convention. Updated all imports accordingly and
removed consts.ts file.

Co-authored-by: ryoppippi <[email protected]>
Copilot AI changed the title [WIP] Address feedback on adding baseURL default implementation Consolidate DEFAULT_BASE_URL into existing constants.ts Dec 9, 2025
Copilot AI requested a review from ryoppippi December 9, 2025 10:03
@ryoppippi ryoppippi closed this Dec 9, 2025
@ryoppippi ryoppippi deleted the copilot/sub-pr-164 branch December 9, 2025 10: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