@omercnet/paseo-pr-radar 1.2.2 → 2.0.0-next.244.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/README.md CHANGED
@@ -32,15 +32,13 @@ 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
- ## Paseo 0.11
35
+ ## Sidebar row
36
36
 
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.
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.
38
38
 
39
39
  ## Install
40
40
 
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:
41
+ Install the published package on the daemon host:
44
42
 
45
43
  ```bash
46
44
  paseo plugin install npm:@omercnet/paseo-pr-radar
@@ -52,7 +50,7 @@ Update an npm installation to the latest published release:
52
50
  paseo plugin update pr-radar
53
51
  ```
54
52
 
55
- The npm install and update flow requires Paseo 0.9 or 0.10.1.
53
+ The npm install and update flow requires Paseo `^0.11.0` with npm available on the daemon host.
56
54
 
57
55
 
58
56
  The daemon must have plugins enabled and `gh` authenticated for GitHub viewer-aware triage.
@@ -70,7 +68,7 @@ bun run typecheck
70
68
  Release Please maintains the version, changelog, component tag, and GitHub release from
71
69
  Conventional Commits in the monorepo.
72
70
 
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
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
75
73
  page reloads on web, desktop, iOS, and Android. React `19.1` and React Native `0.81` match the versions supplied by
76
74
  the plugin host.
@@ -50,15 +50,3 @@ 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,38 +1,23 @@
1
1
  import type { PluginClientContext } from "@getpaseo/plugin/client";
2
- import { SidebarRow } from "@getpaseo/plugin/client/ui";
3
2
  import { PrRadar } from "./client/pr-radar";
4
- import { supportsRadarScreen } from "./client/screen-state";
5
3
  import { RadarSidebar } from "./client/sidebar";
6
4
 
7
5
  export default function contribute(client: PluginClientContext) {
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",
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",
21
12
  icon: "GitPullRequest",
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 () => {};
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
+ };
38
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-pr-radar",
3
- "version": "1.2.2",
3
+ "version": "2.0.0-next.244.1",
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.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",
50
+ "@getpaseo/cli": "0.11.1",
51
+ "@getpaseo/client": "0.11.1",
52
+ "@getpaseo/plugin": "0.11.1",
53
+ "@getpaseo/protocol": "0.11.1",
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.9.0 || ^0.10.0 || ^0.11.0" }
4
+ "requirements": { "paseo": "^0.11.0" }
5
5
  }