@omercnet/paseo-pr-radar 1.2.2-next.241.1 → 1.2.2

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/README.md CHANGED
@@ -32,13 +32,15 @@ DevTools before capture. Both PNGs come from an isolated Paseo test daemon at 2
32
32
 
33
33
  Paseo supplies normalized workspace pull request status. A daemon-side plugin handler uses the authenticated `gh` CLI to distinguish authored pull requests from review requests. If viewer lookup fails, PR Radar falls back conservatively and does not claim that a row needs the user.
34
34
 
35
- ## Sidebar row
35
+ ## Paseo 0.11
36
36
 
37
- The sidebar row shows a "needs you" count; pressing the count opens a popover of those pull requests. Pressing one opens PR Radar focused on it (`param.pr`), and the needs-you link filters the queue (`param.filter`), so both survive reload and can be linked. A trailing `+` marks a count that may be incomplete: viewer lookup failed, a pagination or inbox cap was hit, or workspace status was unavailable.
37
+ On 0.11 the sidebar row shows a "needs you" count; pressing the count opens a popover of those pull requests. Pressing one opens PR Radar focused on it (`param.pr`), and the needs-you link filters the queue (`param.filter`), so both survive reload and can be linked. A trailing `+` marks a count that may be incomplete: viewer lookup failed, a pagination or inbox cap was hit, or workspace status was unavailable. Paseo 0.9 and 0.10 keep the static surface and sidebar row.
38
38
 
39
39
  ## Install
40
40
 
41
- Install the published package on the daemon host:
41
+ ### Paseo 0.9 and 0.10
42
+
43
+ Paseo 0.9 and 0.10.1 support npm plugin sources. Install the published package on the daemon host:
42
44
 
43
45
  ```bash
44
46
  paseo plugin install npm:@omercnet/paseo-pr-radar
@@ -50,7 +52,7 @@ Update an npm installation to the latest published release:
50
52
  paseo plugin update pr-radar
51
53
  ```
52
54
 
53
- The npm install and update flow requires Paseo `^0.11.0` with npm available on the daemon host.
55
+ The npm install and update flow requires Paseo 0.9 or 0.10.1.
54
56
 
55
57
 
56
58
  The daemon must have plugins enabled and `gh` authenticated for GitHub viewer-aware triage.
@@ -68,7 +70,7 @@ bun run typecheck
68
70
  Release Please maintains the version, changelog, component tag, and GitHub release from
69
71
  Conventional Commits in the monorepo.
70
72
 
71
- The manifest supports Paseo `^0.11.0`. Development uses the 0.11 CLI, client, plugin SDK,
72
- and protocol packages together from the workspace catalog. Host-owned navigation opens linked agents and workspaces without private routes or
73
+ The manifest supports Paseo `^0.9.0 || ^0.10.0 || ^0.11.0`. Development uses the stable 0.9 CLI, client, plugin SDK,
74
+ and protocol packages together. Host-owned navigation opens linked agents and workspaces without private routes or
73
75
  page reloads on web, desktop, iOS, and Android. React `19.1` and React Native `0.81` match the versions supplied by
74
76
  the plugin host.
@@ -50,3 +50,15 @@ export function needsYouSummary(
50
50
  const items = rows.filter((row) => row.bucket === "needs-you");
51
51
  return { items, label: loading ? "…" : `${items.length}${warnings.length ? "+" : ""}` };
52
52
  }
53
+
54
+ export function supportsRadarScreen(
55
+ client: { addScreen?: unknown; addSidebarHeaderItem?: unknown; openScreen?: unknown },
56
+ sidebarRow: unknown,
57
+ ) {
58
+ return (
59
+ typeof client.addScreen === "function" &&
60
+ typeof client.addSidebarHeaderItem === "function" &&
61
+ typeof client.openScreen === "function" &&
62
+ typeof sidebarRow === "function"
63
+ );
64
+ }
package/index.client.tsx CHANGED
@@ -1,23 +1,38 @@
1
1
  import type { PluginClientContext } from "@getpaseo/plugin/client";
2
+ import { SidebarRow } from "@getpaseo/plugin/client/ui";
2
3
  import { PrRadar } from "./client/pr-radar";
4
+ import { supportsRadarScreen } from "./client/screen-state";
3
5
  import { RadarSidebar } from "./client/sidebar";
4
6
 
5
7
  export default function contribute(client: PluginClientContext) {
6
- const removers = [
7
- client.addScreen({ id: "radar", title: "PR Radar", Component: PrRadar }),
8
- client.addSidebarHeaderItem({ id: "radar", title: "PR Radar", Component: RadarSidebar }),
9
- client.addCommandCenterItem({
10
- id: "open-radar",
11
- title: "Open PR Radar",
8
+ const screens = supportsRadarScreen(client, SidebarRow);
9
+ if (screens) {
10
+ client.addScreen({
11
+ id: "radar",
12
+ title: "PR Radar",
13
+ Component: PrRadar,
14
+ });
15
+ client.addSidebarHeaderItem({ id: "radar", title: "PR Radar", Component: RadarSidebar });
16
+ } else {
17
+ client.addSurface("radar", PrRadar);
18
+ client.addSidebarItem({
19
+ id: "radar",
20
+ title: "PR Radar",
12
21
  icon: "GitPullRequest",
13
- keywords: ["pull requests", "delivery", "merge", "agents"],
14
- context: "global",
15
- onSelect({ openScreen }) {
16
- openScreen({ screenId: "radar" });
17
- },
18
- }),
19
- ];
20
- return () => {
21
- for (const remove of removers.reverse()) remove();
22
- };
22
+ surface: "radar",
23
+ });
24
+ }
25
+ client.addCommandCenterItem({
26
+ id: "open-radar",
27
+ title: "Open PR Radar",
28
+ icon: "GitPullRequest",
29
+ keywords: ["pull requests", "delivery", "merge", "agents"],
30
+ context: "global",
31
+ onSelect(capabilities) {
32
+ if (screens && typeof capabilities.openScreen === "function")
33
+ capabilities.openScreen({ screenId: "radar" });
34
+ else capabilities.openSurface("radar");
35
+ },
36
+ });
37
+ return () => {};
23
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-pr-radar",
3
- "version": "1.2.2-next.241.1",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "description": "A viewer-aware delivery queue for pull requests linked to Paseo workspaces.",
6
6
  "license": "MIT",
@@ -47,10 +47,10 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@biomejs/biome": "^2.5.10",
50
- "@getpaseo/cli": "0.11.1",
51
- "@getpaseo/client": "0.11.1",
52
- "@getpaseo/plugin": "0.11.1",
53
- "@getpaseo/protocol": "0.11.1",
50
+ "@getpaseo/cli": "0.11.0-beta.5",
51
+ "@getpaseo/client": "0.11.0-beta.5",
52
+ "@getpaseo/plugin": "0.11.0-beta.5",
53
+ "@getpaseo/protocol": "0.11.0-beta.5",
54
54
  "@tanstack/react-query": "^5.102.3",
55
55
  "@types/node": "^24.10.1",
56
56
  "@types/react": "^19.2.18",
package/paseo-plugin.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "id": "pr-radar",
3
3
  "description": "A viewer-aware delivery queue for pull requests linked to Paseo workspaces.",
4
- "requirements": { "paseo": "^0.11.0" }
4
+ "requirements": { "paseo": "^0.9.0 || ^0.10.0 || ^0.11.0" }
5
5
  }