@humanu/orchestra 0.5.40 → 0.5.41

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.40",
3
+ "version": "0.5.41",
4
4
  "description": "AI-powered Git worktree and tmux session manager with modern TUI",
5
5
  "keywords": [
6
6
  "git",
@@ -189,7 +189,8 @@ json_array_from_lines() {
189
189
  local input="$1"
190
190
  case "$BRIDGE_JSON_BACKEND" in
191
191
  jq)
192
- printf '%s' "$input" | jq -R -s 'split("\n")[:-1]'
192
+ # More robust handling: split and filter out empty lines, then convert to JSON array
193
+ printf '%s' "$input" | jq -R -s 'split("\n") | map(select(length > 0))'
193
194
  ;;
194
195
  python)
195
196
  printf '%s' "$input" | python3 <<'PY'