@omercnet/paseo-pr-radar 1.2.1 → 1.2.2-next.241.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 +12 -0
- package/README.md +6 -8
- package/client/screen-state.ts +0 -12
- package/index.client.tsx +16 -31
- package/package.json +7 -7
- package/paseo-plugin.json +1 -1
package/OVERVIEW.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
PR Radar adds a screen and a sidebar row that list the open pull requests linked to your Paseo workspaces, grouped by what needs your attention: **Needs you** (your pull requests with blockers, and review requests whose checks have finished), **Being handled** (work with an active Paseo agent), **Waiting externally** (running checks, pending reviews, external authors) and **Ready** (your mergeable pull requests). It combines each workspace's pull request status from Paseo with your GitHub identity, so it can tell your pull requests from ones you are asked to review. If the GitHub lookup fails, it does not mark rows as needing you.
|
|
2
|
+
|
|
3
|
+
## Setup
|
|
4
|
+
|
|
5
|
+
The GitHub CLI (`gh`) must be installed and authenticated on the machine running the Paseo daemon.
|
|
6
|
+
|
|
7
|
+
## Reads and sends
|
|
8
|
+
|
|
9
|
+
- Reads workspaces, agents and their linked pull requests from your Paseo host.
|
|
10
|
+
- Runs `gh` on the daemon host, using your `gh` credentials, to get your login, search your authored and review-requested open pull requests, and read review, mergeability and check status from GitHub.
|
|
11
|
+
- Remembers each pull request's last-seen state on the daemon host to show what changed since you last marked updates as seen.
|
|
12
|
+
- On "needs you" rows, an action sends a prompt to an existing agent in the linked workspace or starts a new agent there with one of your configured agent profiles. If there is no workspace but a local project exists, it creates a checkout of the pull request first. The prompt asks the agent to review the pull request or fix its blocker, and not to merge.
|
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
|
-
##
|
|
35
|
+
## Sidebar row
|
|
36
36
|
|
|
37
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
package/client/screen-state.ts
CHANGED
|
@@ -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
|
|
9
|
-
|
|
10
|
-
client.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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.1",
|
|
3
|
+
"version": "1.2.2-next.241.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A viewer-aware delivery queue for pull requests linked to Paseo workspaces.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"shared",
|
|
36
36
|
"paseo-plugin.json",
|
|
37
37
|
"README.md",
|
|
38
|
-
"LICENSE"
|
|
38
|
+
"LICENSE",
|
|
39
|
+
"OVERVIEW.md"
|
|
39
40
|
],
|
|
40
41
|
"scripts": {
|
|
41
42
|
"check": "biome check .",
|
|
@@ -46,15 +47,14 @@
|
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"@biomejs/biome": "^2.5.10",
|
|
49
|
-
"@getpaseo/cli": "0.11.
|
|
50
|
-
"@getpaseo/client": "0.11.
|
|
51
|
-
"@getpaseo/plugin": "0.11.
|
|
52
|
-
"@getpaseo/protocol": "0.11.
|
|
50
|
+
"@getpaseo/cli": "0.11.1",
|
|
51
|
+
"@getpaseo/client": "0.11.1",
|
|
52
|
+
"@getpaseo/plugin": "0.11.1",
|
|
53
|
+
"@getpaseo/protocol": "0.11.1",
|
|
53
54
|
"@tanstack/react-query": "^5.102.3",
|
|
54
55
|
"@types/node": "^24.10.1",
|
|
55
56
|
"@types/react": "^19.2.18",
|
|
56
57
|
"@vitest/coverage-v8": "^5.0.0",
|
|
57
|
-
"fflate": "^0.8.3",
|
|
58
58
|
"react": "19.1.0",
|
|
59
59
|
"react-native": "0.81.5",
|
|
60
60
|
"typescript": "^7.0.2",
|
package/paseo-plugin.json
CHANGED