@omercnet/paseo-pr-radar 0.4.1-next.144.1 → 0.4.1-next.146.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
@@ -62,8 +62,7 @@ bun run typecheck
62
62
  Release Please maintains the version, changelog, component tag, and GitHub release from
63
63
  Conventional Commits in the monorepo.
64
64
 
65
- The manifest supports Paseo `0.8.x`, including compatible `0.8` prereleases, and Paseo
66
- `0.9.0`. Development uses the `0.9.0` CLI, client, plugin SDK, and protocol packages
67
- together while preserving runtime compatibility with 0.8 hosts. Host-owned navigation opens
68
- linked agents and workspaces without private routes or page reloads on web, desktop, iOS, and
69
- Android. React `19.1` and React Native `0.81` match the versions supplied by the plugin host.
65
+ The manifest requires Paseo `^0.9.0`. Development uses the `0.9.0` CLI, client, plugin SDK, and
66
+ protocol packages together. Host-owned navigation opens linked agents and workspaces without private
67
+ routes or page reloads on web, desktop, iOS, and Android. React `19.1` and React Native `0.81`
68
+ match the versions supplied by the plugin host.
@@ -1,16 +1,12 @@
1
- import * as PaseoClient from "@getpaseo/plugin/client";
2
- import { type PluginSurfaceProps, usePaseo, useRpc } from "@getpaseo/plugin/client";
1
+ import {
2
+ openExternalUrl,
3
+ type PluginSurfaceProps,
4
+ usePaseo,
5
+ useRpc,
6
+ } from "@getpaseo/plugin/client";
3
7
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
4
8
  import { useCallback, useEffect, useMemo, useState } from "react";
5
- import {
6
- ActivityIndicator,
7
- FlatList,
8
- Linking,
9
- Pressable,
10
- Text,
11
- TextInput,
12
- View,
13
- } from "react-native";
9
+ import { ActivityIndicator, FlatList, Pressable, Text, TextInput, View } from "react-native";
14
10
  import { acknowledgeViewerScope, viewerScope } from "../shared/viewer-scope";
15
11
  import { observeDirectoryInvalidation } from "./directory-observation";
16
12
  import {
@@ -41,11 +37,6 @@ const CLOCK_TICK_MS = 30_000;
41
37
 
42
38
  type SavedView = "security" | "updated" | "stale" | "automation";
43
39
 
44
- const openExternalUrlCandidate: unknown = Reflect.get(PaseoClient, "openExternalUrl");
45
- const guardedOpenExternalUrl =
46
- typeof openExternalUrlCandidate === "function"
47
- ? (openExternalUrlCandidate as (url: string) => Promise<void>)
48
- : undefined;
49
40
  const SAVED_VIEW_TITLES: Record<SavedView, string> = {
50
41
  security: "Security",
51
42
  updated: "Updated",
@@ -516,7 +507,7 @@ export function PrRadar({ theme, layout, host, navigation }: PluginSurfaceProps)
516
507
  const openPr = useCallback(async (row: RadarRow) => {
517
508
  setOpenError(null);
518
509
  try {
519
- await openPullRequestUrl(row.url, guardedOpenExternalUrl, Linking);
510
+ await openPullRequestUrl(row.url, openExternalUrl);
520
511
  } catch {
521
512
  setOpenError(`Could not open ${row.repository}#${row.number ?? "PR"}.`);
522
513
  }
package/client/radar.ts CHANGED
@@ -314,19 +314,10 @@ export function buildAgentPrompt(row: RadarRow): string {
314
314
 
315
315
  type UrlOpener = (url: string) => Promise<unknown>;
316
316
 
317
- export async function openPullRequestUrl(
318
- url: string,
319
- guardedOpen: UrlOpener | undefined,
320
- fallback: { openURL: UrlOpener },
321
- ): Promise<void> {
317
+ export async function openPullRequestUrl(url: string, open: UrlOpener): Promise<void> {
322
318
  const parsed = HttpsUrlSchema.safeParse(url);
323
319
  if (!parsed.success) throw new Error("Only HTTPS pull request URLs are supported.");
324
-
325
- if (guardedOpen) {
326
- await guardedOpen(parsed.data);
327
- return;
328
- }
329
- await fallback.openURL(parsed.data);
320
+ await open(parsed.data);
330
321
  }
331
322
 
332
323
  export function buildRadarSnapshot(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-pr-radar",
3
- "version": "0.4.1-next.144.1",
3
+ "version": "0.4.1-next.146.1",
4
4
  "type": "module",
5
5
  "description": "A viewer-aware delivery queue for pull requests linked to Paseo workspaces.",
6
6
  "license": "MIT",
package/paseo-plugin.json CHANGED
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "id": "pr-radar",
3
- "requirements": { "paseo": ">=0.9.0 <0.10.0" }
3
+ "description": "A viewer-aware delivery queue for pull requests linked to Paseo workspaces.",
4
+ "requirements": { "paseo": "^0.9.0" }
4
5
  }