@saadnvd1/agent-os 0.3.825 → 0.3.826
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.
|
@@ -14,11 +14,7 @@ export async function GET(request: NextRequest) {
|
|
|
14
14
|
if (!session && params.get("stats") !== "1")
|
|
15
15
|
throw new Error("Which session?");
|
|
16
16
|
if (!session) {
|
|
17
|
-
const
|
|
18
|
-
const rows = db
|
|
19
|
-
.prepare(`SELECT * FROM session_children`)
|
|
20
|
-
.all() as Parameters<typeof statsOf>[0];
|
|
21
|
-
const stats = statsOf(rows);
|
|
17
|
+
const stats = statsOf(allChildren());
|
|
22
18
|
return NextResponse.json({ stats, text: statsText(stats) });
|
|
23
19
|
}
|
|
24
20
|
const view = childrenView(session);
|