From c38bd9b89b329fd85c415e05e7722c5d1a53b47c Mon Sep 17 00:00:00 2001 From: Sehoon Shon Date: Thu, 19 Mar 2026 00:23:02 -0400 Subject: [PATCH] feat(core): define TrajectoryProvider interface --- packages/core/src/config/config.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index aa3e9aa5b6..c9309596d9 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -9,6 +9,8 @@ import * as path from 'node:path'; import { inspect } from 'node:util'; import process from 'node:process'; import { z } from 'zod'; +import type { ConversationRecord } from '../services/chatRecordingService.js'; +export type { ConversationRecord }; import { AuthType, createContentGenerator, @@ -228,6 +230,25 @@ export interface ResolvedExtensionSetting { source?: string; } +export interface TrajectoryProvider { + /** Prefix used in ChatList item names e.g., 'agy:' */ + prefix: string; + /** Optional display name for UI Tabs */ + displayName?: string; + /** Return an array of conversational tags/ids */ + listSessions(workspaceUri?: string): Promise< + Array<{ + id: string; + mtime: string; + name?: string; + displayName?: string; + messageCount?: number; + }> + >; + /** Load a single conversation payload */ + loadSession(id: string): Promise; +} + export interface AgentRunConfig { maxTimeMinutes?: number; maxTurns?: number;