mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
fix: Resolve MCP installation issues and enhance path resolution
- Fixed API endpoint mismatches in mcp-manager.js to ensure global install/update buttons function correctly. - Corrected undefined function references in mcp-manager.js for project installation. - Refactored event handling to eliminate global scope pollution in mcp-manager.js. - Added comprehensive debugging guide for MCP installation issues. - Implemented a session path resolver to infer content types from filenames and paths, improving usability. - Introduced tests for embeddings improvements in init and status commands to verify functionality.
This commit is contained in:
@@ -53,10 +53,13 @@ interface SessionInput {
|
||||
session_id?: string;
|
||||
id?: string;
|
||||
project?: string;
|
||||
description?: string;
|
||||
status?: string;
|
||||
type?: string;
|
||||
workflow_type?: string | null;
|
||||
created_at?: string | null;
|
||||
created_at?: string | null; // For backward compatibility
|
||||
created?: string; // From SessionMetadata
|
||||
updated?: string; // From SessionMetadata
|
||||
archived_at?: string | null;
|
||||
path: string;
|
||||
}
|
||||
@@ -249,11 +252,11 @@ export async function aggregateData(sessions: ScanSessionsResult, workflowDir: s
|
||||
async function processSession(session: SessionInput, isActive: boolean): Promise<SessionData> {
|
||||
const result: SessionData = {
|
||||
session_id: session.session_id || session.id || '',
|
||||
project: session.project || session.session_id || session.id || '',
|
||||
project: session.project || session.description || session.session_id || session.id || '',
|
||||
status: session.status || (isActive ? 'active' : 'archived'),
|
||||
type: session.type || 'workflow', // Session type (workflow, review, test, docs)
|
||||
workflow_type: session.workflow_type || null, // Original workflow_type for reference
|
||||
created_at: session.created_at || null, // Raw ISO string - let frontend format
|
||||
created_at: session.created || session.created_at || null, // Prefer 'created' from SessionMetadata, fallback to 'created_at'
|
||||
archived_at: session.archived_at || null, // Raw ISO string - let frontend format
|
||||
path: session.path,
|
||||
tasks: [],
|
||||
|
||||
Reference in New Issue
Block a user