@omercnet/paseo-pr-radar 1.2.0-next.214.1 → 1.2.0-next.223.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.
@@ -590,7 +590,7 @@ export function PrRadar({
590
590
  : savedView
591
591
  ? `No pull requests match the ${SAVED_VIEW_TITLES[savedView].toLowerCase()} view.`
592
592
  : selected
593
- ? `No pull requests are ${BUCKET_TITLES[selected].toLowerCase()}.`
593
+ ? "No pull requests are in this queue."
594
594
  : "No open pull requests are visible to GitHub or linked to a Paseo workspace.";
595
595
  const summaryMetrics = [
596
596
  { label: "Action now", value: counts["needs-you"] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-pr-radar",
3
- "version": "1.2.0-next.214.1",
3
+ "version": "1.2.0-next.223.1",
4
4
  "type": "module",
5
5
  "description": "A viewer-aware delivery queue for pull requests linked to Paseo workspaces.",
6
6
  "license": "MIT",
@@ -46,10 +46,10 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@biomejs/biome": "^2.5.10",
49
- "@getpaseo/cli": "0.11.0-beta.3",
50
- "@getpaseo/client": "0.11.0-beta.3",
51
- "@getpaseo/plugin": "0.11.0-beta.3",
52
- "@getpaseo/protocol": "0.11.0-beta.3",
49
+ "@getpaseo/cli": "0.11.0-beta.5",
50
+ "@getpaseo/client": "0.11.0-beta.5",
51
+ "@getpaseo/plugin": "0.11.0-beta.5",
52
+ "@getpaseo/protocol": "0.11.0-beta.5",
53
53
  "@tanstack/react-query": "^5.102.3",
54
54
  "@types/node": "^24.10.1",
55
55
  "@types/react": "^19.2.18",
@@ -11,9 +11,13 @@ const SEARCH_LIMIT = 100;
11
11
  const ENRICHMENT_BATCH_SIZE = 20;
12
12
  const COMMAND_TIMEOUT_MS = 15_000;
13
13
  const MAX_BUFFER_BYTES = 16 * 1024 * 1024;
14
- const statePath = join(homedir(), ".paseo", "plugin-data", "pr-radar", "inbox-state.json");
15
14
  const SCOPE_SEARCH_LIMIT = 1000;
16
15
 
16
+ function statePath(): string {
17
+ const home = process.env.PASEO_HOME ?? join(homedir(), ".paseo");
18
+ return join(home, "plugin-data", "pr-radar", "inbox-state.json");
19
+ }
20
+
17
21
  interface SearchRecord {
18
22
  id: string;
19
23
  number: number;
@@ -254,7 +258,7 @@ function toInboxItem(
254
258
 
255
259
  async function readState(): Promise<StoredState> {
256
260
  try {
257
- const state = JSON.parse(await readFile(statePath, "utf8")) as StoredState;
261
+ const state = JSON.parse(await readFile(statePath(), "utf8")) as StoredState;
258
262
  if (state.version === 2 && state.windows && typeof state.windows === "object") return state;
259
263
  } catch (error) {
260
264
  if ((error as NodeJS.ErrnoException).code !== "ENOENT") {
@@ -265,10 +269,11 @@ async function readState(): Promise<StoredState> {
265
269
  }
266
270
 
267
271
  async function writeState(state: StoredState): Promise<void> {
268
- await mkdir(dirname(statePath), { recursive: true });
269
- const temporaryPath = `${statePath}.${process.pid}.tmp`;
272
+ const path = statePath();
273
+ await mkdir(dirname(path), { recursive: true });
274
+ const temporaryPath = `${path}.${process.pid}.tmp`;
270
275
  await writeFile(temporaryPath, `${JSON.stringify(state)}\n`, { mode: 0o600 });
271
- await rename(temporaryPath, statePath);
276
+ await rename(temporaryPath, path);
272
277
  }
273
278
 
274
279
  function storedItem(item: GitHubInboxItem): StoredItem {