Skip to content

fix: npx resolution, mount-all, and help improvements#19

Merged
designcode merged 6 commits intomainfrom
fix/npx-bin-name
Apr 23, 2026
Merged

fix: npx resolution, mount-all, and help improvements#19
designcode merged 6 commits intomainfrom
fix/npx-bin-name

Conversation

@designcode
Copy link
Copy Markdown
Collaborator

@designcode designcode commented Apr 22, 2026

Summary

  • npx fix: add agent-shell bin entry so npx @tigrisdata/agent-shell resolves correctly (npx looks for the unscoped package name)
  • Mount all buckets: on login/configure, mount all org buckets at /<name> instead of just the first. cwd starts at / so ls shows all buckets
  • Help categories: group commands into Session, Storage, and Shell sections. Add Tigris commands (presign, snapshot, fork, forks) to help output
  • df column width: dynamically size columns based on longest bucket name

Test plan

  • npx @tigrisdata/agent-shell launches without command not found
  • configure or login mounts all buckets, cwd starts at /
  • ls at / shows all mounted buckets
  • df output aligns correctly with long bucket names
  • help shows categorized commands with Tigris commands included

🤖 Generated with Claude Code


Note

Medium Risk
Changes default mounting/cwd behavior to mount all buckets at /, which can affect existing workflows and flush semantics. Updates presign to resolve bucket/key from mounts, which is moderately risky due to path resolution edge cases.

Overview
Fixes npx @tigrisdata/agent-shell execution by adding an agent-shell bin alias and updating CLI help/README examples to match.

Changes interactive configure/login defaults to mount all accessible buckets at /<bucket> with cwd starting at /, and updates output (flush counts, README). Improves REPL UX with categorized help, dynamic df column sizing, and normalizes PWD to avoid // paths.

Updates presign to support multi-bucket mode by resolving the target bucket/key from the current working directory and mount table (with new PresignOptions + TigrisShell path-to-bucket resolver), and wires custom commands directly in TigrisShell.

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

designcode and others added 3 commits April 22, 2026 19:00
npx looks for a bin matching the unscoped package name (agent-shell),
not tigris-agent-shell. Added agent-shell as primary bin entry.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Group commands into Session, Storage, and Shell categories.
Add Tigris commands (presign, snapshot, fork, forks) to help.
Link to just-bash supported commands.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Mount all org buckets at /<name> instead of just the first
- Start cwd at / so ls shows all buckets
- Categorize help into Session, Storage, and Shell sections
- Add Tigris commands (presign, snapshot, fork, forks) to help
- Dynamic column width in df for long bucket names

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread src/repl/session.ts
- presign resolves bucket from current mount based on cwd
- Shell passes mount resolver to presign via closure
- createTigrisCommands public API unchanged
- Normalize // in cwd from just-bash path resolution
- Error message when not in a mounted bucket

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 1 potential issue.

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 d4607d2. Configure here.

Comment thread src/commands/presign.ts Outdated
In single-bucket mode, use rawPath directly as the object key
instead of resolving against cwd which prepends the mount prefix.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@designcode designcode merged commit 6017f96 into main Apr 23, 2026
3 checks passed
@designcode designcode deleted the fix/npx-bin-name branch April 23, 2026 07:33
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 0.5.1 🎉

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