herdr-worktreeinclude 0.1.0 → 0.2.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes are published in the [GitHub Releases](https://github.com/serhii-chernenko/herdr-worktreeinclude/releases) generated from version tags.
4
4
 
5
+ ## 0.2.1
6
+
7
+ - Fixed the branch-cleanup popup's `[d] Delete branch` action never actually deleting the branch: it ran `git branch -d`, which refuses any branch that isn't fully merged — exactly the branches this popup exists for. It now uses `git branch -D` to honor the user's explicit confirmation.
8
+
9
+ ## 0.2.0
10
+
11
+ - The branch-cleanup confirmation now opens as a small Herdr popup pane instead of a full overlay, using the `placement = "popup"` pane type added in Herdr 0.7.4. Raised `min_herdr_version` to `0.7.4` accordingly.
12
+
5
13
  ## 0.1.0
6
14
 
7
15
  - Initial Herdr plugin: project-local worktrees, `.worktreeinclude` copying, and UI-first branch cleanup.
package/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # herdr-worktreeinclude
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/herdr-worktreeinclude?logo=npm)](https://www.npmjs.com/package/herdr-worktreeinclude)
4
+ [![npm downloads](https://img.shields.io/npm/dm/herdr-worktreeinclude?logo=npm)](https://www.npmjs.com/package/herdr-worktreeinclude)
5
+ [![CI](https://github.com/serhii-chernenko/herdr-worktreeinclude/actions/workflows/ci.yml/badge.svg)](https://github.com/serhii-chernenko/herdr-worktreeinclude/actions/workflows/ci.yml)
6
+ [![GitHub stars](https://img.shields.io/github/stars/serhii-chernenko/herdr-worktreeinclude?style=flat)](https://github.com/serhii-chernenko/herdr-worktreeinclude/stargazers)
7
+ [![Herdr Marketplace](https://img.shields.io/badge/Herdr-Marketplace-4f46e5)](https://herdr.dev/docs/marketplace/)
8
+
3
9
  A [Herdr](https://herdr.dev) plugin that keeps Herdr-created Git worktrees inside the project and restores selected ignored files into them.
4
10
 
5
11
  ## What it does
@@ -10,7 +16,7 @@ Use Herdr's normal **New worktree** UI. After creation, the plugin automatically
10
16
  - copies files selected by `.worktreeinclude` from the primary checkout;
11
17
  - opens the relocated worktree as the active Herdr workspace.
12
18
 
13
- When you remove a plugin-managed worktree through Herdr's normal UI, an unchanged branch (one already contained in the primary checkout's `HEAD`) is removed silently. For a branch with unique commits, Herdr shows an in-terminal overlay: press `d` to safely delete the local branch or Enter to keep it.
19
+ When you remove a plugin-managed worktree through Herdr's normal UI, an unchanged branch (one already contained in the primary checkout's `HEAD`) is removed silently. For a branch with unique commits, Herdr shows a small popup pane: press `d` to safely delete the local branch or Enter to keep it.
14
20
 
15
21
  The plugin cannot change Herdr's built-in creation/removal dialogs. It uses lifecycle hooks immediately after those dialogs complete.
16
22
 
@@ -89,3 +95,10 @@ git push origin main v0.1.1
89
95
  ```
90
96
 
91
97
  The tag workflow verifies the version, publishes to npm through npm Trusted Publishing, and creates GitHub Release notes automatically. After claiming the package name with an initial manual publish, configure npm's Trusted Publisher for GitHub repository `serhii-chernenko/herdr-worktreeinclude` and workflow filename `publish.yml`. Subsequent matching version tags publish without a stored npm token.
98
+
99
+ ## Screenshots
100
+
101
+ <img width="2262" height="1380" alt="shot-mrmikk98" src="https://github.com/user-attachments/assets/ac422fbb-0af1-4606-8081-2740220ea474" />
102
+ <img width="2338" height="1240" alt="shot-mrmil9fr" src="https://github.com/user-attachments/assets/9cefdb30-1bd0-4b78-a265-ac55a7a87cad" />
103
+ <img width="1234" height="436" alt="shot-mrmink67" src="https://github.com/user-attachments/assets/b7dec468-aa1e-434f-bc79-e334e90b5d22" />
104
+
package/herdr-plugin.toml CHANGED
@@ -1,7 +1,7 @@
1
1
  id = "serhii-chernenko.worktreeinclude"
2
2
  name = "Project-local Worktrees"
3
- version = "0.1.0"
4
- min_herdr_version = "0.7.0"
3
+ version = "0.2.1"
4
+ min_herdr_version = "0.7.4"
5
5
  description = "Creates project-local Git worktrees and restores ignored files selected by .worktreeinclude."
6
6
  platforms = ["macos", "linux"]
7
7
 
@@ -22,5 +22,7 @@ command = ["bash", "scripts/create-worktree.sh"]
22
22
  [[panes]]
23
23
  id = "branch-cleanup"
24
24
  title = "Delete local branch?"
25
- placement = "overlay"
25
+ placement = "popup"
26
+ width = 76
27
+ height = 12
26
28
  command = ["bash", "scripts/branch-cleanup-pane.sh"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "herdr-worktreeinclude",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Project-local Git worktrees and .worktreeinclude support for Herdr.",
5
5
  "keywords": [
6
6
  "herdr",
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env bash
2
- # Herdr overlay pane shown after a worktree checkout has been removed.
2
+ # Herdr popup pane shown after a worktree checkout has been removed.
3
+ # Popups have no pane id and close automatically when this script exits.
3
4
  set -euo pipefail
4
5
 
5
6
  source_root=${HERDR_WORKTREEINCLUDE_SOURCE:?Missing source repository}
@@ -13,8 +14,5 @@ read -r -n 1 choice || true
13
14
  printf '\n'
14
15
 
15
16
  if [[ "$choice" == "d" || "$choice" == "D" ]]; then
16
- git -C "$source_root" branch -d -- "$branch" >&2 || true
17
+ git -C "$source_root" branch -D -- "$branch" >&2 || true
17
18
  fi
18
-
19
- herdr_bin=${HERDR_BIN_PATH:-herdr}
20
- "$herdr_bin" plugin pane close "${HERDR_PANE_ID:?Missing Herdr pane id}" || true
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # Open an in-Herdr branch-cleanup overlay after a plugin-managed checkout is
2
+ # Open an in-Herdr branch-cleanup popup after a plugin-managed checkout is
3
3
  # removed. This hook deliberately does not use macOS dialogs.
4
4
  set -euo pipefail
5
5
 
@@ -30,7 +30,6 @@ fi
30
30
  "$herdr_bin" plugin pane open \
31
31
  --plugin "${HERDR_PLUGIN_ID:-serhii-chernenko.worktreeinclude}" \
32
32
  --entrypoint branch-cleanup \
33
- --placement overlay \
33
+ --placement popup \
34
34
  --env "HERDR_WORKTREEINCLUDE_SOURCE=$source" \
35
- --env "HERDR_WORKTREEINCLUDE_BRANCH=$branch" \
36
- --focus
35
+ --env "HERDR_WORKTREEINCLUDE_BRANCH=$branch"