@agi-cli/server 0.1.137 → 0.1.138

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agi-cli/server",
3
- "version": "0.1.137",
3
+ "version": "0.1.138",
4
4
  "description": "HTTP API server for AGI CLI",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -29,8 +29,8 @@
29
29
  "typecheck": "tsc --noEmit"
30
30
  },
31
31
  "dependencies": {
32
- "@agi-cli/sdk": "0.1.137",
33
- "@agi-cli/database": "0.1.137",
32
+ "@agi-cli/sdk": "0.1.138",
33
+ "@agi-cli/database": "0.1.138",
34
34
  "drizzle-orm": "^0.44.5",
35
35
  "hono": "^4.9.9",
36
36
  "zod": "^4.1.8"
@@ -2,7 +2,7 @@ import type { Hono } from 'hono';
2
2
  import { loadConfig } from '@agi-cli/sdk';
3
3
  import { getDb } from '@agi-cli/database';
4
4
  import { sessions, messages, messageParts } from '@agi-cli/database/schema';
5
- import { desc, eq, and, or, isNull, ne, inArray } from 'drizzle-orm';
5
+ import { desc, eq, and, ne, inArray } from 'drizzle-orm';
6
6
  import type { ProviderId } from '@agi-cli/sdk';
7
7
  import { isProviderId, catalog } from '@agi-cli/sdk';
8
8
  import { resolveAgentConfig } from '../runtime/agent/registry.ts';
@@ -16,14 +16,14 @@ export function registerSessionsRoutes(app: Hono) {
16
16
  const projectRoot = c.req.query('project') || process.cwd();
17
17
  const cfg = await loadConfig(projectRoot);
18
18
  const db = await getDb(cfg.projectRoot);
19
- // Only return sessions for this project
19
+ // Only return sessions for this project, excluding research sessions
20
20
  const rows = await db
21
21
  .select()
22
22
  .from(sessions)
23
23
  .where(
24
24
  and(
25
25
  eq(sessions.projectPath, cfg.projectRoot),
26
- or(eq(sessions.sessionType, 'main'), isNull(sessions.sessionType)),
26
+ ne(sessions.sessionType, 'research'),
27
27
  ),
28
28
  )
29
29
  .orderBy(desc(sessions.lastActiveAt), desc(sessions.createdAt));