@myagentroam/node 0.11.53 → 0.11.54

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.
@@ -76,6 +76,15 @@ export class SessionCatalogService {
76
76
  ancestors.add(parent.id);
77
77
  root = parent;
78
78
  }
79
+ const native = this.options
80
+ .cachedNative()
81
+ .filter((session) => session.workspaceId === input.workspaceId);
82
+ const projections = this.options.projection.projectionsForNative(native);
83
+ const activityById = new Map();
84
+ for (const source of native) {
85
+ const id = projections.get(source)?.id ?? source.id;
86
+ activityById.set(id, latestSessionActivityAt(activityById.get(id) ?? 0, source.lastActivityAt));
87
+ }
79
88
  const queue = [root];
80
89
  const visited = new Set([root.id]);
81
90
  const nodes = [];
@@ -93,7 +102,8 @@ export class SessionCatalogService {
93
102
  'Untitled session',
94
103
  runner: session.runner,
95
104
  activity: live && 'activity' in live ? live.activity : 'IDLE',
96
- status: sessionActivityStatus(this.options.runtime, session.id)
105
+ status: sessionActivityStatus(this.options.runtime, session.id),
106
+ lastActivityAt: latestSessionActivityAt(live?.lastActivityAt ?? 0, activityById.get(session.id) ?? 0)
97
107
  });
98
108
  const children = [...database.listChildSessionRecords(input.workspaceId, session.id)];
99
109
  if (input.includeAncestors === true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/node",
3
- "version": "0.11.53",
3
+ "version": "0.11.54",
4
4
  "description": "MyAgentRoam Node runtime CLI.",
5
5
  "license": "Apache-2.0 AND GPL-2.0-or-later",
6
6
  "type": "module",
@@ -38,10 +38,10 @@
38
38
  "sharp": "0.35.5",
39
39
  "ws": "^8.21.3",
40
40
  "zod": "4.4.3",
41
+ "@myagentroam/agent": "0.11.54",
42
+ "@myagentroam/protocol": "0.11.54",
41
43
  "@myagentroam/code-navigation": "0.11.1",
42
- "@myagentroam/marctl": "0.11.11",
43
- "@myagentroam/agent": "0.11.53",
44
- "@myagentroam/protocol": "0.11.53"
44
+ "@myagentroam/marctl": "0.11.11"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/ws": "^8.18.1"