parawatch 0.3.13 → 0.3.14
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/dist/core/ops.js +5 -3
- package/package.json +2 -1
package/dist/core/ops.js
CHANGED
|
@@ -423,10 +423,12 @@ export function leadOf(state, ended) {
|
|
|
423
423
|
if (!project)
|
|
424
424
|
return undefined;
|
|
425
425
|
if (!memo.has(project)) {
|
|
426
|
+
// the newest claim leads; claims keep log order, so a tie in time goes to the later one
|
|
426
427
|
const leads = state.claims
|
|
427
|
-
.
|
|
428
|
-
.
|
|
429
|
-
|
|
428
|
+
.map((c, i) => ({ c, i }))
|
|
429
|
+
.filter(({ c }) => c.role === "lead" && c.project === project && !c.done && !ended(c.session))
|
|
430
|
+
.sort((a, b) => (b.c.at ?? "").localeCompare(a.c.at ?? "") || b.i - a.i);
|
|
431
|
+
memo.set(project, leads[0]?.c.session);
|
|
430
432
|
}
|
|
431
433
|
return memo.get(project);
|
|
432
434
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parawatch",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"description": "A control tower for people running many AI coding agents in parallel: see what is running, what needs you, and wake the right agent when you answer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "^22.10.1",
|
|
51
|
+
"happy-dom": "^21.0.4",
|
|
51
52
|
"tsx": "^4.19.2",
|
|
52
53
|
"typescript": "^5.7.2",
|
|
53
54
|
"vitest": "^2.1.8"
|