agenthud 0.5.14 → 0.5.15
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 +21 -0
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,6 +26,7 @@ Run this in a separate terminal while using Claude Code.
|
|
|
26
26
|
- **Track your git state** - Commits, branches, uncommitted changes at a glance
|
|
27
27
|
- **Know if tests pass** - Results update automatically, shows if outdated
|
|
28
28
|
- **Stay oriented** - Project info, dependencies, file counts
|
|
29
|
+
- **Monitor other sessions** - See what's happening in your other Claude Code projects
|
|
29
30
|
|
|
30
31
|
## Usage
|
|
31
32
|
|
|
@@ -61,8 +62,28 @@ panels:
|
|
|
61
62
|
project:
|
|
62
63
|
enabled: true
|
|
63
64
|
interval: 60s
|
|
65
|
+
other_sessions:
|
|
66
|
+
enabled: true
|
|
67
|
+
interval: 10s
|
|
64
68
|
```
|
|
65
69
|
|
|
70
|
+
### Other Sessions Panel
|
|
71
|
+
|
|
72
|
+
Shows activity from your other Claude Code projects:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
┌─ Other Sessions ─────────────────────────────────────┐
|
|
76
|
+
│ 📁 dotfiles, pain-radar, myapp +4 | ⚡ 1 active │
|
|
77
|
+
│ │
|
|
78
|
+
│ 🔵 dotfiles (2m ago) │
|
|
79
|
+
│ "Updated the config file as requested..." │
|
|
80
|
+
└──────────────────────────────────────────────────────┘
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
- **Project names**: Shows up to 3 recent projects, +N for more
|
|
84
|
+
- **Active indicator**: 🔵 active (within 5 min), ⚪ inactive
|
|
85
|
+
- **Last message**: Most recent assistant response from that session
|
|
86
|
+
|
|
66
87
|
## Keyboard
|
|
67
88
|
|
|
68
89
|
- `q` quit
|
package/dist/index.js
CHANGED
|
@@ -1509,7 +1509,7 @@ var THIRTY_SECONDS_MS = 30 * 1e3;
|
|
|
1509
1509
|
var MAX_LINES_TO_SCAN = 200;
|
|
1510
1510
|
var DEFAULT_MAX_ACTIVITIES = 10;
|
|
1511
1511
|
function getClaudeSessionPath(projectPath) {
|
|
1512
|
-
const encoded = projectPath.replace(
|
|
1512
|
+
const encoded = projectPath.replace(/[/\\]/g, "-");
|
|
1513
1513
|
return join2(homedir(), ".claude", "projects", encoded);
|
|
1514
1514
|
}
|
|
1515
1515
|
function findActiveSession(sessionDir) {
|
|
@@ -1735,7 +1735,7 @@ import {
|
|
|
1735
1735
|
statSync as nodeStatSync2
|
|
1736
1736
|
} from "fs";
|
|
1737
1737
|
import { homedir as homedir2 } from "os";
|
|
1738
|
-
import { join as join3, basename as basename3 } from "path";
|
|
1738
|
+
import { join as join3, basename as basename3, sep } from "path";
|
|
1739
1739
|
var fs2 = {
|
|
1740
1740
|
existsSync: nodeExistsSync3,
|
|
1741
1741
|
readFileSync: (path) => nodeReadFileSync4(path, "utf-8"),
|
|
@@ -1748,7 +1748,7 @@ function getProjectsDir() {
|
|
|
1748
1748
|
return join3(homedir2(), ".claude", "projects");
|
|
1749
1749
|
}
|
|
1750
1750
|
function decodeProjectPath(encoded) {
|
|
1751
|
-
const naiveDecoded = encoded.replace(/-/g,
|
|
1751
|
+
const naiveDecoded = encoded.replace(/-/g, sep);
|
|
1752
1752
|
if (fs2.existsSync(naiveDecoded)) {
|
|
1753
1753
|
return naiveDecoded;
|
|
1754
1754
|
}
|
|
@@ -1762,7 +1762,7 @@ function decodeProjectPath(encoded) {
|
|
|
1762
1762
|
let found = false;
|
|
1763
1763
|
for (let j = segments.length; j > i; j--) {
|
|
1764
1764
|
const segment = segments.slice(i, j).join("-");
|
|
1765
|
-
const testPath = currentPath
|
|
1765
|
+
const testPath = currentPath ? join3(currentPath, segment) : sep + segment;
|
|
1766
1766
|
try {
|
|
1767
1767
|
if (fs2.existsSync(testPath)) {
|
|
1768
1768
|
const stat = fs2.statSync(testPath);
|
|
@@ -1777,7 +1777,7 @@ function decodeProjectPath(encoded) {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
1779
|
if (!found) {
|
|
1780
|
-
currentPath
|
|
1780
|
+
currentPath = currentPath ? join3(currentPath, segments[i]) : sep + segments[i];
|
|
1781
1781
|
i++;
|
|
1782
1782
|
}
|
|
1783
1783
|
}
|
|
@@ -3035,7 +3035,7 @@ function getDefaultConfig2() {
|
|
|
3035
3035
|
return nodeReadFileSync7(templatePath, "utf-8");
|
|
3036
3036
|
}
|
|
3037
3037
|
function getClaudeSessionPath2(projectPath) {
|
|
3038
|
-
const encoded = projectPath.replace(
|
|
3038
|
+
const encoded = projectPath.replace(/[/\\]/g, "-");
|
|
3039
3039
|
return join5(homedir3(), ".claude", "projects", encoded);
|
|
3040
3040
|
}
|
|
3041
3041
|
function runInit(cwd = process.cwd()) {
|
package/package.json
CHANGED