@omercnet/paseo-fresh-worktrees 2.2.1-next.241.1 → 2.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/OVERVIEW.md CHANGED
@@ -2,6 +2,6 @@ Fresh Worktrees updates the local base branch before Paseo creates a branch-off
2
2
 
3
3
  Before the worktree is created, the plugin runs `git fetch --prune` against the repository's remote, then fast-forwards the local base branch with `git merge --ff-only`. It does this only when that branch is checked out in the source checkout and the checkout has no uncommitted changes. If the checkout is dirty, the fetch fails, or the update is not a fast-forward, it warns and the workspace is created from the existing local base. Explicit remote bases are fetched but no local branch is changed, and repositories without a remote are left alone.
4
4
 
5
- It also shows `Behind · N` in the workspace header when a worktree is behind its source branch's remote. A sidebar footer lists behind workspaces and offers **Refresh all**, which fast-forwards each clean source checkout and skips dirty or diverged ones. It never modifies worktree branches.
5
+ It also shows `Behind · N` in the workspace header when a worktree is behind its source branch's remote. On Paseo 0.11 and later, a sidebar footer lists behind workspaces and offers **Refresh all**, which fast-forwards each clean source checkout and skips dirty or diverged ones. It never modifies worktree branches.
6
6
 
7
- Setup: `git` on the daemon host. The plugin runs `git` there with the daemon's environment and contacts the repository's remote on each fetch. Requires Paseo ^0.11.0.
7
+ Setup: `git` on the daemon host. The plugin runs `git` there with the daemon's environment and contacts the repository's remote on each fetch. Requires Paseo ^0.9.0, ^0.10.0 or ^0.11.0.
package/README.md CHANGED
@@ -42,14 +42,14 @@ checkout emits a warning and skips the local branch update, allowing workspace c
42
42
  from the existing local base. Failed fetches and non-fast-forward updates do the same.
43
43
  Concurrent requests for the same target share one refresh, and updates are serialized per repository.
44
44
 
45
- ### Sidebar footer
45
+ ### Sidebar footer (Paseo 0.11+)
46
46
 
47
- A "Behind source branch" footer row shows how many workspaces are behind
47
+ On Paseo 0.11 and later a "Behind source branch" footer row shows how many workspaces are behind
48
48
  their source branch. Its popover lists them and offers **Refresh all**, which fast-forwards each
49
49
  clean source checkout to its upstream (never a dirty or diverged one, which are skipped and
50
50
  reported), then rechecks every listed workspace. Worktree branches are not touched. "Behind" compares the
51
51
  workspace `HEAD` with the remote-tracking ref of the source checkout's current branch, which is not
52
- necessarily the workspace's recorded base.
52
+ necessarily the workspace's recorded base. Paseo 0.9 and 0.10 hosts get no footer row.
53
53
 
54
54
  ## Install
55
55
 
@@ -60,7 +60,7 @@ host.
60
60
  paseo plugin install npm:@omercnet/paseo-fresh-worktrees
61
61
  ```
62
62
 
63
- The plugin requires Paseo `^0.11.0`.
63
+ The plugin requires Paseo `^0.9.0 || ^0.10.0 || ^0.11.0`.
64
64
 
65
65
  ## Develop
66
66
 
@@ -10,6 +10,8 @@ import { Pressable, Text, View } from "react-native";
10
10
  import { describeRefresh, type WorkspaceSummary } from "./workspace-summary";
11
11
 
12
12
  export function registerWorkspaceFooter(client: PluginClientContext, summary: WorkspaceSummary) {
13
+ if (typeof client.addSidebarFooterItem !== "function" || !SidebarRow) return;
14
+
13
15
  function Popover({ theme, layout }: PluginPopoverProps) {
14
16
  const entries = useSyncExternalStore(summary.subscribe, summary.getSnapshot);
15
17
  const [pending, setPending] = useState(false);
package/index.client.ts CHANGED
@@ -203,7 +203,7 @@ export default function contribute(client: PluginClientContext) {
203
203
  stopped = true;
204
204
  clearInterval(interval);
205
205
  unsubscribe();
206
- removeFooter();
206
+ removeFooter?.();
207
207
  summary.clear();
208
208
  for (const button of buttons.values()) button.remove();
209
209
  buttons.clear();
package/package.json CHANGED
@@ -33,7 +33,7 @@
33
33
  "paseo-plugin.json",
34
34
  "OVERVIEW.md"
35
35
  ],
36
- "version": "2.2.1-next.241.1",
36
+ "version": "2.2.1",
37
37
  "type": "module",
38
38
  "packageManager": "bun@1.4.2",
39
39
  "engines": {
@@ -47,8 +47,8 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@biomejs/biome": "^2.5.10",
50
- "@getpaseo/client": "0.11.1",
51
- "@getpaseo/plugin": "0.11.1",
50
+ "@getpaseo/client": "0.11.0-beta.5",
51
+ "@getpaseo/plugin": "0.11.0-beta.5",
52
52
  "@types/node": "^24.10.1",
53
53
  "@types/react": "^19.2.18",
54
54
  "react": "19.1.0",
package/paseo-plugin.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "id": "fresh-worktrees",
3
3
  "description": "Fast-forwards clean local base branches before Paseo creates branch-off worktrees.",
4
- "requirements": { "paseo": "^0.11.0" }
4
+ "requirements": { "paseo": "^0.9.0 || ^0.10.0 || ^0.11.0" }
5
5
  }