auto-claude: subtask-3-1 - Add delegation methods to InsightsService
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -70,8 +70,8 @@ export class InsightsService extends EventEmitter {
|
||||
/**
|
||||
* List all sessions for a project
|
||||
*/
|
||||
listSessions(projectPath: string): InsightsSessionSummary[] {
|
||||
return this.sessionManager.listSessions(projectPath);
|
||||
listSessions(projectPath: string, includeArchived = false): InsightsSessionSummary[] {
|
||||
return this.sessionManager.listSessions(projectPath, includeArchived);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -95,6 +95,34 @@ export class InsightsService extends EventEmitter {
|
||||
return this.sessionManager.deleteSession(projectId, projectPath, sessionId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Archive a session
|
||||
*/
|
||||
archiveSession(projectId: string, projectPath: string, sessionId: string): boolean {
|
||||
return this.sessionManager.archiveSession(projectId, projectPath, sessionId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unarchive a session
|
||||
*/
|
||||
unarchiveSession(projectPath: string, sessionId: string): boolean {
|
||||
return this.sessionManager.unarchiveSession(projectPath, sessionId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete multiple sessions
|
||||
*/
|
||||
deleteSessions(projectId: string, projectPath: string, sessionIds: string[]): { deletedIds: string[]; failedIds: string[] } {
|
||||
return this.sessionManager.deleteSessions(projectId, projectPath, sessionIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* Archive multiple sessions
|
||||
*/
|
||||
archiveSessions(projectId: string, projectPath: string, sessionIds: string[]): { archivedIds: string[]; failedIds: string[] } {
|
||||
return this.sessionManager.archiveSessions(projectId, projectPath, sessionIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename a session
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user