Skip to content

feat: add forcePathStyle config, default to true#21

Merged
designcode merged 2 commits intomainfrom
feat/force-path-style
Apr 23, 2026
Merged

feat: add forcePathStyle config, default to true#21
designcode merged 2 commits intomainfrom
feat/force-path-style

Conversation

@designcode
Copy link
Copy Markdown
Collaborator

@designcode designcode commented Apr 23, 2026

Summary

  • Add forcePathStyle option to TigrisConfig — uses path-style URLs (endpoint/bucket/key) instead of virtual-hosted (bucket.endpoint/key)
  • Defaults to true for all SDK calls
  • Bump @tigrisdata/storage to ^3.2.0
  • Update playground to @tigrisdata/agent-shell@^0.5.1

Test plan

  • npm test passes
  • Presign URLs use path-style format
  • forcePathStyle: false overrides the default

🤖 Generated with Claude Code


Note

Medium Risk
Changes default storage URL style via a new forcePathStyle config default, which can affect all S3/Tigris requests and presigned URLs. Also bumps the storage SDK, so compatibility/regression risk is moderate despite small code changes.

Overview
Adds forcePathStyle to TigrisConfig and applies defaults across the shell/REPL. A new withConfigDefaults() helper now defaults forcePathStyle: true, and TigrisShell plus REPL bucket listing resolve configs through it so SDK calls/presign/snapshot/fork commands consistently use path-style URLs unless explicitly overridden.

Dependency + packaging updates. Bumps @tigrisdata/storage to ^3.2.0, updates the playground to @tigrisdata/agent-shell@^0.5.1, and adjusts published CLI bin names (adds agent-shell and keeps tigris-agent-shell).

Reviewed by Cursor Bugbot for commit efcd104. Bugbot is set up for automated code reviews on this repo. Configure here.

All SDK calls use path-style URLs (endpoint/bucket/key) by default.
Bump @tigrisdata/storage to ^3.2.0, playground to ^0.5.1.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8a9c2ce. Configure here.

Comment thread src/repl/session.ts Outdated
Comment thread src/types.ts Outdated
Replace applyConfigDefaults with withConfigDefaults that returns
a new config object instead of mutating the input.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@designcode designcode merged commit 7e7559c into main Apr 23, 2026
3 checks passed
@designcode designcode deleted the feat/force-path-style branch April 23, 2026 08:57
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 0.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants