@omercnet/paseo-agent-monitor 0.4.2
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/LICENSE +21 -0
- package/README.md +96 -0
- package/client/agent-monitor.tsx +811 -0
- package/client/diff-stat.tsx +32 -0
- package/client/monitor.ts +365 -0
- package/client/settings-screen.tsx +250 -0
- package/client/settings-state.ts +9 -0
- package/docs/images/agent-monitor-roster.png +0 -0
- package/docs/images/agent-monitor-settings.png +0 -0
- package/index.client.tsx +51 -0
- package/index.server.ts +7 -0
- package/package.json +55 -0
- package/paseo-plugin.json +4 -0
- package/shared/monitor-settings.ts +99 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Omer Cohen
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# agent-monitor
|
|
2
|
+
|
|
3
|
+
One roster for every agent on a daemon. Sidebar surface (`Agent monitor`) plus a global Command
|
|
4
|
+
Center item (`Open agent monitor`).
|
|
5
|
+
|
|
6
|
+
Answers "which of my 38 agents needs me right now" without walking the workspace tree.
|
|
7
|
+
|
|
8
|
+
## Screenshots
|
|
9
|
+
|
|
10
|
+
Names and session titles in these screenshots are synthetic; the underlying browser DOM was
|
|
11
|
+
rewritten before capture so no private project, workspace, or session identifiers are published.
|
|
12
|
+
|
|
13
|
+
### Project-first roster
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
### Monitor settings
|
|
18
|
+
|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
## What it shows
|
|
22
|
+
|
|
23
|
+
- Counts and filters by triage bucket: Attention, Running, Idle, Closed. Attention covers
|
|
24
|
+
`requiresAttention`, `status === "error"`, and pending permission requests.
|
|
25
|
+
- Default layout groups agents by **project**, then by workspace under each project. Open the
|
|
26
|
+
gear beside Refresh for the host-native Monitor settings screen, which can switch to workspace
|
|
27
|
+
groups or a flat compact list.
|
|
28
|
+
- Settings also control float-pinned sorting, agent sort (triage / recently updated / title),
|
|
29
|
+
collapse of matching workspace headers, density, default bucket, whether Closed stays out of
|
|
30
|
+
All, and display toggles for diffs, pin markers, model, wait age, subagent counts, last error, and
|
|
31
|
+
compact placement. Preferences are a typed, host-scoped document shared by connected clients.
|
|
32
|
+
- Workspace headers show up to two workspace labels and current `+additions −deletions`
|
|
33
|
+
(additions in the success color, deletions in danger when color diffs are on).
|
|
34
|
+
- Per row: a status dot that separates errors (danger) from agents waiting on you (warning) and
|
|
35
|
+
running agents (success), state and wait age on a right-aligned rail (`attentionTimestamp`,
|
|
36
|
+
falling back to `updatedAt`), model, and `lastError` inline.
|
|
37
|
+
- Parent rows show their subagent count; child rows use a left indent guide.
|
|
38
|
+
- Text filter over title, agent id, provider, model, cwd, project, and workspace.
|
|
39
|
+
- Select an agent row to open that agent, or select a workspace header (or its folder button when
|
|
40
|
+
collapsed) to open its workspace through Paseo's cross-platform navigation API.
|
|
41
|
+
- Archive one agent, or sweep every closed agent (two taps).
|
|
42
|
+
|
|
43
|
+
## How it reads state
|
|
44
|
+
|
|
45
|
+
`usePaseo().agents.list()` pages the daemon agent directory, `usePaseo().workspaces.list()` reads
|
|
46
|
+
workspace pin state, project id, and diff stats (200 per page, up to 10 pages each), and
|
|
47
|
+
`usePaseo().projects.list()` supplies registered project names, including custom renames, so an
|
|
48
|
+
agent whose workspace is beyond the paged workspace list still lands under its real project. Rows
|
|
49
|
+
refresh from agent, workspace, and project subscription deltas, debounced 750ms, with a 30s
|
|
50
|
+
backstop refetch. The plugin borrows the selected host's connection; it opens no socket of its own.
|
|
51
|
+
|
|
52
|
+
## Limits
|
|
53
|
+
|
|
54
|
+
Interrupting a turn is not part of `PaseoApi`, so archive is the only lifecycle action here.
|
|
55
|
+
|
|
56
|
+
## Install
|
|
57
|
+
|
|
58
|
+
Requires a compatible Paseo 0.8.x release, including 0.8 prereleases. The manifest declares
|
|
59
|
+
`requirements.paseo` as `^0.8.0`, and the development SDK is pinned to stable `0.8.0`.
|
|
60
|
+
|
|
61
|
+
Install from the plugin's monorepo directory on the daemon host:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
paseo plugin add omercnet/paseo-plugins:agent-monitor
|
|
65
|
+
paseo plugin update agent-monitor
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Git installs track the default branch and run no package manager; the plugin has no runtime
|
|
69
|
+
dependencies. For an air-gapped host, clone or download the monorepo and install this directory:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
cd paseo-plugins/agent-monitor
|
|
73
|
+
bun install --frozen-lockfile
|
|
74
|
+
paseo plugin install "$PWD"
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Develop
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
bun install
|
|
81
|
+
bun run check
|
|
82
|
+
bun test
|
|
83
|
+
bun run test:coverage
|
|
84
|
+
bun run typecheck
|
|
85
|
+
bunx paseo plugin install "$PWD"
|
|
86
|
+
bunx paseo plugin reload agent-monitor
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Release Please maintains the version, changelog, component tag, and GitHub release from
|
|
90
|
+
Conventional Commits in the monorepo.
|
|
91
|
+
|
|
92
|
+
The project targets the Paseo 0.8.x release line and pins `@getpaseo/plugin`, `@getpaseo/client`,
|
|
93
|
+
`@getpaseo/protocol`, and `@getpaseo/cli` to stable `0.8.0`. Renovate groups
|
|
94
|
+
`@getpaseo/*` updates so the SDKs move together.
|
|
95
|
+
|
|
96
|
+
React `19.1` and React Native `0.81` intentionally match the versions supplied by Paseo 0.8.
|