@humanu/orchestra 0.5.41 → 0.5.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humanu/orchestra",
3
- "version": "0.5.41",
3
+ "version": "0.5.46",
4
4
  "description": "AI-powered Git worktree and tmux session manager with modern TUI",
5
5
  "keywords": [
6
6
  "git",
@@ -1,22 +1,10 @@
1
1
  # shellcheck shell=bash
2
2
 
3
3
  gwr_get_current_worktree_title() {
4
- local branch=""
5
4
  local worktree=""
6
5
 
7
- if command -v git >/dev/null 2>&1 && git rev-parse --git-dir >/dev/null 2>&1; then
8
- branch="$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "")"
9
- if [[ -n "$branch" && "$branch" != "HEAD" ]]; then
10
- worktree="$branch"
11
- else
12
- worktree="$(git rev-parse --short HEAD 2>/dev/null || echo "")"
13
- fi
14
- fi
15
-
16
- if [[ -z "$worktree" ]]; then
17
- worktree="$(pwd -P)"
18
- worktree="$(basename "$worktree")"
19
- fi
6
+ worktree="$(pwd -P)"
7
+ worktree="$(basename "$worktree")"
20
8
 
21
9
  worktree="${worktree//\//-}"
22
10
  worktree="${worktree// /-}"
@@ -25,5 +13,5 @@ gwr_get_current_worktree_title() {
25
13
  worktree="unknown"
26
14
  fi
27
15
 
28
- printf 'orchestra [orchestra/%s]' "$worktree"
16
+ printf 'orchestra: /%s' "$worktree"
29
17
  }