@omercnet/paseo-pr-radar 2.0.0-next.260.1 → 3.0.0-next.278.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
@@ -29,6 +29,7 @@ DevTools before capture. Both PNGs come from an isolated Paseo test daemon at 2
29
29
  - Ready: authored pull requests that are mergeable with settled checks and reviews.
30
30
  - Viewer labels: `YOURS`, `REVIEW`, and `EXTERNAL`.
31
31
  - Contextual actions: ask an existing agent or start one in the linked workspace.
32
+ - Linked workspaces and agents include those in background workspaces.
32
33
 
33
34
  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
35
 
@@ -50,7 +51,7 @@ Update an npm installation to the latest published release:
50
51
  paseo plugin update pr-radar
51
52
  ```
52
53
 
53
- The npm install and update flow requires Paseo `^0.11.0 || ^0.12.0` with npm available on the daemon host.
54
+ The npm install and update flow requires Paseo `^0.12.0` with npm available on the daemon host.
54
55
 
55
56
 
56
57
  The daemon must have plugins enabled and `gh` authenticated for GitHub viewer-aware triage.
@@ -68,7 +69,7 @@ bun run typecheck
68
69
  Release Please maintains the version, changelog, component tag, and GitHub release from
69
70
  Conventional Commits in the monorepo.
70
71
 
71
- The manifest supports Paseo `^0.11.0 || ^0.12.0`. Development uses the 0.12 CLI, client, plugin SDK,
72
+ The manifest supports Paseo `^0.12.0`. Development uses the 0.12 CLI, client, plugin SDK,
72
73
  and protocol packages together from the workspace catalog. Host-owned navigation opens linked agents and workspaces without private routes or
73
74
  page reloads on web, desktop, iOS, and Android. React `19.1` and React Native `0.81` match the versions supplied by
74
75
  the plugin host.
@@ -0,0 +1,39 @@
1
+ import type { AgentEntry, PaseoApi, PaseoWorkspace } from "./radar";
2
+
3
+ const PAGE_LIMIT = 200;
4
+ const MAX_PAGES = 10;
5
+
6
+ export async function loadAgents(paseo: PaseoApi) {
7
+ const entries: AgentEntry[] = [];
8
+ let cursor: string | undefined;
9
+ let truncated = false;
10
+ for (let page = 0; page < MAX_PAGES; page += 1) {
11
+ const result = await paseo.agents.list({
12
+ includeBackground: true,
13
+ sort: [{ key: "created_at", direction: "desc" }],
14
+ page: { limit: PAGE_LIMIT, ...(cursor ? { cursor } : {}) },
15
+ });
16
+ entries.push(...result.entries);
17
+ truncated = result.pageInfo.hasMore;
18
+ cursor = result.pageInfo.nextCursor ?? undefined;
19
+ if (!truncated || !cursor) break;
20
+ }
21
+ return { entries, truncated };
22
+ }
23
+
24
+ export async function loadWorkspaces(paseo: PaseoApi) {
25
+ const entries: PaseoWorkspace[] = [];
26
+ let cursor: string | undefined;
27
+ let truncated = false;
28
+ for (let page = 0; page < MAX_PAGES; page += 1) {
29
+ const result = await paseo.workspaces.list({
30
+ includeBackground: true,
31
+ page: { limit: PAGE_LIMIT, ...(cursor ? { cursor } : {}) },
32
+ });
33
+ entries.push(...result.entries);
34
+ truncated = result.pageInfo.hasMore;
35
+ cursor = result.pageInfo.nextCursor ?? undefined;
36
+ if (!truncated || !cursor) break;
37
+ }
38
+ return { entries, truncated };
39
+ }
@@ -35,11 +35,11 @@ export function observeDirectoryInvalidation(
35
35
  };
36
36
 
37
37
  void paseo.agents
38
- .list({ subscribe: {}, signal: lifetime.signal })
38
+ .list({ subscribe: {}, includeBackground: true, signal: lifetime.signal })
39
39
  .then(({ subscription }) => attach(subscription))
40
40
  .catch(() => undefined);
41
41
  void paseo.workspaces
42
- .list({ subscribe: {} })
42
+ .list({ subscribe: {}, includeBackground: true })
43
43
  .then(({ subscription }) => attach(subscription))
44
44
  .catch(() => undefined);
45
45
 
@@ -2,53 +2,11 @@ import { usePaseo, useRpc } from "@getpaseo/plugin/client";
2
2
  import { useQuery, useQueryClient } from "@tanstack/react-query";
3
3
  import { useEffect, useMemo } from "react";
4
4
  import { viewerScope } from "../shared/viewer-scope";
5
+ import { loadAgents, loadWorkspaces } from "./directory-load";
5
6
  import { observeDirectoryInvalidation } from "./directory-observation";
6
- import {
7
- type AgentEntry,
8
- applyViewerScope,
9
- buildRadarSnapshot,
10
- mergeInboxRows,
11
- type PaseoApi,
12
- type PaseoWorkspace,
13
- } from "./radar";
7
+ import { applyViewerScope, buildRadarSnapshot, mergeInboxRows } from "./radar";
14
8
  import { radarWarnings, VIEWER_URL_LIMIT } from "./screen-state";
15
9
 
16
- const PAGE_LIMIT = 200;
17
- const MAX_PAGES = 10;
18
-
19
- async function loadAgents(paseo: PaseoApi) {
20
- const entries: AgentEntry[] = [];
21
- let cursor: string | undefined;
22
- let truncated = false;
23
- for (let page = 0; page < MAX_PAGES; page += 1) {
24
- const result = await paseo.agents.list({
25
- sort: [{ key: "updated_at", direction: "desc" }],
26
- page: { limit: PAGE_LIMIT, ...(cursor ? { cursor } : {}) },
27
- });
28
- entries.push(...result.entries);
29
- truncated = result.pageInfo.hasMore;
30
- cursor = result.pageInfo.nextCursor ?? undefined;
31
- if (!truncated || !cursor) break;
32
- }
33
- return { entries, truncated };
34
- }
35
-
36
- async function loadWorkspaces(paseo: PaseoApi) {
37
- const entries: PaseoWorkspace[] = [];
38
- let cursor: string | undefined;
39
- let truncated = false;
40
- for (let page = 0; page < MAX_PAGES; page += 1) {
41
- const result = await paseo.workspaces.list({
42
- page: { limit: PAGE_LIMIT, ...(cursor ? { cursor } : {}) },
43
- });
44
- entries.push(...result.entries);
45
- truncated = result.pageInfo.hasMore;
46
- cursor = result.pageInfo.nextCursor ?? undefined;
47
- if (!truncated || !cursor) break;
48
- }
49
- return { entries, truncated };
50
- }
51
-
52
10
  // `live` owns the refresh timers. The sidebar is live unless the screen is open (the screen is
53
11
  // then live); popovers only observe the cache.
54
12
  export function useRadar(hostId: string, windowDays = 30, live = true) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-pr-radar",
3
- "version": "2.0.0-next.260.1",
3
+ "version": "3.0.0-next.278.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.12.0-beta.2",
51
- "@getpaseo/client": "0.12.0-beta.2",
52
- "@getpaseo/plugin": "0.12.0-beta.2",
53
- "@getpaseo/protocol": "0.12.0-beta.2",
50
+ "@getpaseo/cli": "0.12.0",
51
+ "@getpaseo/client": "0.12.0",
52
+ "@getpaseo/plugin": "0.12.0",
53
+ "@getpaseo/protocol": "0.12.0",
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 || ^0.12.0" }
4
+ "requirements": { "paseo": "^0.12.0" }
5
5
  }