Skip to content

feat(cli): add opt-in sp shorthand for the canonical CLI #74

Closed

Description

@abruption

User request

Support session-peer [OPTION] and opt-in sp [OPTION] as two invocation names for the same installed TypeScript CLI. Python/TS co-installation and a runtime dispatcher are out of scope. Handoff correlation: SP-CLI-SHORTHAND-20260929; Python counterpart: abruption/session-peer#242.

Design

Ship shell-scoped activation assets for Bash/zsh and PowerShell. A user explicitly sources the asset after choosing the npm installation on PATH. The activator refuses any existing sp executable, alias or function (including the built-in PowerShell alias). It defines an alias to canonical session-peer, with no forwarding parser, eval, argument reconstruction or subprocess wrapper. npm continues to own only the canonical session-peer bin; no installation hook or profile/PATH mutation. Automation, SSH, help/version identity and generated reply instructions keep canonical session-peer.

Acceptance

  • Same version/help/list/guarded dry-run/error output and exit codes through both names.
  • Whitespace, Unicode, literal shell metacharacters, stdin and -- pass through unchanged; isolated fixtures only.
  • Existing executable/alias/function collisions are refused without replacement; missing canonical command is refused.
  • Activation is explicit and current-shell scoped. Document alias visibility limits, especially parent-shell aliases invisible to child processes, PowerShell's default sp, and cmd.exe using the canonical name.
  • Document deactivation, reviewed profile persistence, npm update/uninstall and implementation replacement under the original manager.
  • Package contents, repeat pack, isolated installation/update/removal and Bash/zsh/Windows PowerShell coverage. No global install or user profile changes during tests.
  • README/guide links in all four languages, compatibility matrix and help remain consistent. Public 0.2.1 does not acquire the new assets retroactively.

Target: 0.3.0 Remote usability and maintenance. This task covers implementation, tests and PR; no npm publication or fleet rollout.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions