kiosko-plugin-agents 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +106 -2
- package/dist/index.js +1485 -0
- package/package.json +52 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Loksly
|
|
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
CHANGED
|
@@ -1,3 +1,107 @@
|
|
|
1
|
-
#
|
|
1
|
+
# kiosko-plugin-agents
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Claude Code and Gemini CLI sessions at a glance: who waits for you, for how long, and git status. Ported from aimonitor.
|
|
4
|
+
|
|
5
|
+
A plugin for [Kiosko](https://github.com/kiosko-lcd/kiosko), the widget mosaic for small USB LCD panels.
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
In Kiosko, **Plugins → Install from npm** → `kiosko-plugin-agents`, then restart Kiosko. Or from a terminal:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install --prefix ~/.config/kiosko/plugins kiosko-plugin-agents
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
(macOS: `~/Library/Application Support/Kiosko/plugins`, Windows: `%APPDATA%\Kiosko\plugins`.)
|
|
18
|
+
|
|
19
|
+
## Requirements
|
|
20
|
+
|
|
21
|
+
- A hook that writes agent session files. With Claude Code, add `agent-sessions-hook` (from [`@loksly/agent-sessions`](https://github.com/kiosko-lcd/kiosko/tree/main/packages/agent-sessions)) to your `settings.json` hooks; sessions land in `~/.aimonitor/sessions` by default.
|
|
22
|
+
|
|
23
|
+
## Widgets
|
|
24
|
+
|
|
25
|
+
### Agent sessions — `agents/sessions`
|
|
26
|
+
|
|
27
|
+
One tile per AI coding session. The one that needs you most turns solid, the others that wait get a colour spine, and working ones stay dark.
|
|
28
|
+
|
|
29
|
+

|
|
30
|
+
|
|
31
|
+
Uses: `agents/sessions`.
|
|
32
|
+
|
|
33
|
+
| Option | Type | Default | |
|
|
34
|
+
|---|---|---|---|
|
|
35
|
+
| `projects` | list | `[]` | Projects. Empty: all. Project, repository or folder names or patterns, comma-separated: * matches anything, a leading ! leaves out (web-app, acme-*, !scratch). |
|
|
36
|
+
| `hideStates` | list | `[]` | Hide sessions that are. E.g. Active and Idle, to see only the ones that claim you. |
|
|
37
|
+
| `maxTiles` | number | `0` | Most tiles. 0 = as many as fit. The rest go to the summary column, so the tiles get wider. |
|
|
38
|
+
| `tileMin` | number | `320` | Narrowest tile. At a 374 px tall widget; scales with the height. Sessions that would need narrower tiles go to the summary column. |
|
|
39
|
+
| `tileMax` | number | `430` | Widest tile. So a single session doesn’t stretch across the panel. 0 = no limit: the tiles fill the width. |
|
|
40
|
+
| `gap` | number | `12` | Gap between tiles |
|
|
41
|
+
| `detailLines` | number | `3` | Detail lines. Lines of the last tool call or message before cutting with an ellipsis. 0 hides it. |
|
|
42
|
+
| `spineWidth` | number | `7` | Colour spine width |
|
|
43
|
+
| `summaryWidth` | number | `150` | Summary column width |
|
|
44
|
+
| `align` | `left` \| `center` \| `right` | `"left"` | Alignment |
|
|
45
|
+
| `showGit` | boolean | `true` | Show uncommitted files |
|
|
46
|
+
| `showId` | boolean | `true` | Show the console id. PROVIDER · ABC123 in the corner, to tell two consoles of one project apart. |
|
|
47
|
+
|
|
48
|
+
### Agents summary strip — `agents/summary`
|
|
49
|
+
|
|
50
|
+
A thin header line: RAM, how many consoles are open, how many wait for you (tinted by the most urgent) and the clock.
|
|
51
|
+
|
|
52
|
+

|
|
53
|
+
|
|
54
|
+
Uses: `agents/sessions`, `system/vitals`.
|
|
55
|
+
|
|
56
|
+
| Option | Type | Default | |
|
|
57
|
+
|---|---|---|---|
|
|
58
|
+
| `projects` | list | `[]` | Projects. Empty: all. Project, repository or folder names or patterns, comma-separated: * matches anything, a leading ! leaves out (web-app, acme-*, !scratch). |
|
|
59
|
+
| `showRam` | boolean | `true` | Show RAM. Needs the system vitals source. |
|
|
60
|
+
| `showConsoles` | boolean | `true` | Show how many consoles. Off: only how many wait for you, for short strips. |
|
|
61
|
+
| `showClock` | boolean | `true` | Show the clock |
|
|
62
|
+
| `showRule` | boolean | `true` | Rule underneath |
|
|
63
|
+
|
|
64
|
+
## Data sources
|
|
65
|
+
|
|
66
|
+
### AI agent sessions — `agents/sessions`
|
|
67
|
+
|
|
68
|
+
Claude Code, Gemini CLI… sessions as written by the agent-sessions hook, with git status. Options are set once in Kiosko → Settings → Data sources.
|
|
69
|
+
|
|
70
|
+
| Option | Type | Default | |
|
|
71
|
+
|---|---|---|---|
|
|
72
|
+
| `dir` | string | `"~/.aimonitor/sessions"` | Sessions folder. Where the hook writes one JSON file per session. Empty: $AGENT_SESSIONS_DIR or ~/.aimonitor/sessions. |
|
|
73
|
+
| `git` | boolean | `true` | Read git status. Repository name and uncommitted files of each session (runs git). |
|
|
74
|
+
| `zombieMs` | duration (ms) | `900000` | Drop silent working sessions after. A session that says it is working and writes nothing for this long is dead. The cats room turns it into Schrödinger's box at half of this. |
|
|
75
|
+
| `staleMs` | duration (ms) | `7200000` | Drop any silent session after. The net under SessionEnd, which never arrives if the terminal is killed. Raise it if you leave permission prompts waiting for hours. |
|
|
76
|
+
| `reap` | boolean | `true` | Delete files of dead sessions. Safe: a live session writes its file again on its next event. |
|
|
77
|
+
| `debounceMs` | duration (ms) | `200` | Wait for a burst of events |
|
|
78
|
+
| `pollMs` | duration (ms) | `30000` | Re-read every. Fallback to file watching; also refreshes the git counts. |
|
|
79
|
+
|
|
80
|
+
## Interludes
|
|
81
|
+
|
|
82
|
+
### 8-bit runner — `agents/runner`
|
|
83
|
+
|
|
84
|
+
A side-scrolling platformer run through a server room, in flat colours. Every slot plays a different ending; now and then the runner ships the release. Add it in Kiosko → Screens → Interludes.
|
|
85
|
+
|
|
86
|
+
| Option | Type | Default | |
|
|
87
|
+
|---|---|---|---|
|
|
88
|
+
| `title` | string | `"KIOSKO"` | Name in the score. Letters, digits and - . ! ? |
|
|
89
|
+
|
|
90
|
+
## Development
|
|
91
|
+
|
|
92
|
+
```sh
|
|
93
|
+
npm install
|
|
94
|
+
npm test # node:test
|
|
95
|
+
npm run check # TypeScript
|
|
96
|
+
npm run build # dist/index.js, what Kiosko loads
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
To try it in a running Kiosko without publishing: `kiosko plugins link .` and restart Kiosko.
|
|
100
|
+
|
|
101
|
+
Working on Kiosko and its plugins together: clone them side by side
|
|
102
|
+
(`kiosko/` and `kiosko-plugins/kiosko-plugin-agents/`) and run `npm install` in
|
|
103
|
+
`kiosko/`; its workspaces link every plugin found in `../kiosko-plugins`.
|
|
104
|
+
|
|
105
|
+
## License
|
|
106
|
+
|
|
107
|
+
MIT
|