@omercnet/paseo-top 0.1.0 → 1.0.0

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 CHANGED
@@ -12,4 +12,4 @@ CPU is the share of non-idle time over the last couple of seconds. Memory exclud
12
12
 
13
13
  The plugin only reads usage counters and process tables. It has no settings. On Linux it reads `/proc`. On macOS it runs `ps` twice every ten seconds, and on Windows it runs one PowerShell command, to list processes and read the Paseo identifier from each one's environment; it changes nothing and runs nothing else. On Windows that command declares native functions and reads other processes' memory, which endpoint-security tools on managed machines may flag. Set `PASEO_TOP_SESSIONS=off` in the daemon's environment to list no processes on any platform; the rest of Top is unaffected.
14
14
 
15
- Requires Paseo ^0.11.0.
15
+ Requires Paseo ^0.12.0.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-top",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
4
  "type": "module",
5
5
  "description": "A Paseo plugin that shows host CPU, memory and disk usage in the sidebar footer.",
6
6
  "license": "MIT",
@@ -16,7 +16,7 @@
16
16
  "publishConfig": {
17
17
  "access": "public"
18
18
  },
19
- "packageManager": "bun@1.4.2",
19
+ "packageManager": "bun@1.4.3",
20
20
  "engines": {
21
21
  "node": ">=24"
22
22
  },
@@ -47,10 +47,10 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@biomejs/biome": "^2.5.10",
50
- "@getpaseo/cli": "0.11.1",
51
- "@getpaseo/client": "0.11.1",
52
- "@getpaseo/plugin": "0.11.1",
53
- "@getpaseo/protocol": "0.11.1",
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
@@ -4,5 +4,5 @@
4
4
  "media": [
5
5
  "https://raw.githubusercontent.com/omercnet/paseo-plugins/pr-assets-top/top-screen.jpg"
6
6
  ],
7
- "requirements": { "paseo": "^0.11.0" }
7
+ "requirements": { "paseo": "^0.12.0" }
8
8
  }
package/server/names.ts CHANGED
@@ -1,6 +1,9 @@
1
- import type { PaseoApi } from "@getpaseo/client";
1
+ import type { PluginHandlerContext } from "@getpaseo/plugin/server";
2
2
  import type { Session } from "../shared/usage";
3
3
 
4
+ /** The client package is a development dependency, so the host's own SDK entry supplies the type. */
5
+ type PaseoApi = PluginHandlerContext["paseo"];
6
+
4
7
  /** Re-reading every agent, archived ones included, is not free, so it is done sparingly. */
5
8
  const FULL_REFRESH_MS = 30_000;
6
9
  /** A session whose agent is not yet known may be a brand new agent; look again, but not constantly. */
@@ -89,6 +92,7 @@ export function createOwnership(now = Date.now, firstFetchTimeoutMs = FIRST_FETC
89
92
  collect(signal, (cursor) =>
90
93
  paseo.agents.list({
91
94
  filter: { includeArchived: true },
95
+ includeBackground: true,
92
96
  // Oldest first: an agent's creation time never changes, so paging cannot skip one that
93
97
  // is busy and being updated while the pages are read.
94
98
  sort: [{ key: "created_at", direction: "asc" }],
@@ -98,7 +102,10 @@ export function createOwnership(now = Date.now, firstFetchTimeoutMs = FIRST_FETC
98
102
  ),
99
103
  // The SDK's workspace list takes no signal; the abort stops the paging between pages.
100
104
  collect(signal, (cursor) =>
101
- paseo.workspaces.list({ page: { limit: PAGE_SIZE, ...(cursor ? { cursor } : {}) } }),
105
+ paseo.workspaces.list({
106
+ includeBackground: true,
107
+ page: { limit: PAGE_SIZE, ...(cursor ? { cursor } : {}) },
108
+ }),
102
109
  ),
103
110
  ]);
104
111
  // An abandoned read must not overwrite what a newer one stored.