chore: rename Task Master to TaskMaster
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Task Master Extension - Simplified Architecture
|
||||
* TaskMaster Extension - Simplified Architecture
|
||||
* Only using patterns where they add real value
|
||||
*/
|
||||
|
||||
@@ -32,7 +32,7 @@ export async function activate(context: vscode.ExtensionContext) {
|
||||
try {
|
||||
// Initialize logger (needed to prevent MCP stdio issues)
|
||||
logger = ExtensionLogger.getInstance();
|
||||
logger.log('🎉 Task Master Extension activating...');
|
||||
logger.log('🎉 TaskMaster Extension activating...');
|
||||
|
||||
// Simple event emitter for webview communication
|
||||
events = new EventEmitter();
|
||||
@@ -46,7 +46,7 @@ export async function activate(context: vscode.ExtensionContext) {
|
||||
// Repository with caching (actually useful for performance)
|
||||
repository = new TaskRepository(api, logger);
|
||||
|
||||
// Config service for Task Master config.json
|
||||
// Config service for TaskMaster config.json
|
||||
configService = new ConfigService(logger);
|
||||
|
||||
// Polling service with strategy pattern (makes sense for different polling behaviors)
|
||||
@@ -91,18 +91,18 @@ export async function activate(context: vscode.ExtensionContext) {
|
||||
webviewManager.broadcast('tasksUpdated', { tasks, source: 'polling' });
|
||||
});
|
||||
|
||||
logger.log('✅ Task Master Extension activated');
|
||||
logger.log('✅ TaskMaster Extension activated');
|
||||
} catch (error) {
|
||||
logger?.error('Failed to activate', error);
|
||||
vscode.window.showErrorMessage(
|
||||
`Failed to activate Task Master: ${error instanceof Error ? error.message : 'Unknown error'}`
|
||||
`Failed to activate TaskMaster: ${error instanceof Error ? error.message : 'Unknown error'}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
async function initializeConnection() {
|
||||
try {
|
||||
logger.log('🔗 Connecting to Task Master...');
|
||||
logger.log('🔗 Connecting to TaskMaster...');
|
||||
|
||||
// Notify webviews that we're connecting
|
||||
if (webviewManager) {
|
||||
@@ -117,8 +117,8 @@ async function initializeConnection() {
|
||||
const testResult = await api.testConnection();
|
||||
|
||||
if (testResult.success) {
|
||||
logger.log('✅ Connected to Task Master');
|
||||
vscode.window.showInformationMessage('Task Master connected!');
|
||||
logger.log('✅ Connected to TaskMaster');
|
||||
vscode.window.showInformationMessage('TaskMaster connected!');
|
||||
|
||||
// Notify webviews that we're connected
|
||||
if (webviewManager) {
|
||||
@@ -157,7 +157,7 @@ function handleConnectionError(error: any) {
|
||||
if (message.includes('ENOENT') && message.includes('npx')) {
|
||||
vscode.window
|
||||
.showWarningMessage(
|
||||
'Task Master: npx not found. Please ensure Node.js is installed.',
|
||||
'TaskMaster: npx not found. Please ensure Node.js is installed.',
|
||||
'Open Settings'
|
||||
)
|
||||
.then((action) => {
|
||||
@@ -170,7 +170,7 @@ function handleConnectionError(error: any) {
|
||||
});
|
||||
} else {
|
||||
vscode.window.showWarningMessage(
|
||||
`Task Master connection failed: ${message}`
|
||||
`TaskMaster connection failed: ${message}`
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -211,7 +211,7 @@ function registerCommands(context: vscode.ExtensionContext) {
|
||||
}
|
||||
|
||||
export function deactivate() {
|
||||
logger?.log('👋 Task Master Extension deactivating...');
|
||||
logger?.log('👋 TaskMaster Extension deactivating...');
|
||||
pollingService?.stop();
|
||||
webviewManager?.dispose();
|
||||
api?.destroy();
|
||||
|
||||
@@ -94,7 +94,7 @@ export class ErrorHandler {
|
||||
switch (context.severity) {
|
||||
case ErrorSeverity.CRITICAL:
|
||||
vscode.window
|
||||
.showErrorMessage(`Task Master: ${context.message}`, ...actions)
|
||||
.showErrorMessage(`TaskMaster: ${context.message}`, ...actions)
|
||||
.then((action) => {
|
||||
if (action) {
|
||||
this.handleUserAction(action, context);
|
||||
@@ -106,7 +106,7 @@ export class ErrorHandler {
|
||||
if (context.category === ErrorCategory.MCP_CONNECTION) {
|
||||
vscode.window
|
||||
.showWarningMessage(
|
||||
`Task Master: ${context.message}`,
|
||||
`TaskMaster: ${context.message}`,
|
||||
'Retry',
|
||||
'Settings'
|
||||
)
|
||||
@@ -118,7 +118,7 @@ export class ErrorHandler {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
vscode.window.showWarningMessage(`Task Master: ${context.message}`);
|
||||
vscode.window.showWarningMessage(`TaskMaster: ${context.message}`);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -130,7 +130,7 @@ export class ErrorHandler {
|
||||
)
|
||||
) {
|
||||
vscode.window.showInformationMessage(
|
||||
`Task Master: ${context.message}`
|
||||
`TaskMaster: ${context.message}`
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -69,7 +69,7 @@ export class SidebarWebviewManager implements vscode.WebviewViewProvider {
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src ${webview.cspSource} https:; script-src 'nonce-${nonce}'; style-src ${webview.cspSource} 'unsafe-inline';">
|
||||
<link href="${styleUri}" rel="stylesheet">
|
||||
<title>Task Master</title>
|
||||
<title>TaskMaster</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
@@ -37,7 +37,7 @@ export class WebviewManager {
|
||||
async createOrShowPanel(): Promise<void> {
|
||||
// Find existing panel
|
||||
const existing = Array.from(this.panels).find(
|
||||
(p) => p.title === 'Task Master Kanban'
|
||||
(p) => p.title === 'TaskMaster Kanban'
|
||||
);
|
||||
if (existing) {
|
||||
existing.reveal();
|
||||
@@ -47,7 +47,7 @@ export class WebviewManager {
|
||||
// Create new panel
|
||||
const panel = vscode.window.createWebviewPanel(
|
||||
'taskrKanban',
|
||||
'Task Master Kanban',
|
||||
'TaskMaster Kanban',
|
||||
vscode.ViewColumn.One,
|
||||
{
|
||||
enableScripts: true,
|
||||
@@ -87,7 +87,7 @@ export class WebviewManager {
|
||||
});
|
||||
|
||||
this.events.emit('webview:opened');
|
||||
vscode.window.showInformationMessage('Task Master Kanban opened!');
|
||||
vscode.window.showInformationMessage('TaskMaster Kanban opened!');
|
||||
}
|
||||
|
||||
broadcast(type: string, data: any): void {
|
||||
@@ -360,7 +360,7 @@ export class WebviewManager {
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src ${webview.cspSource} https:; script-src 'nonce-${nonce}'; style-src ${webview.cspSource} 'unsafe-inline';">
|
||||
<link href="${styleUri}" rel="stylesheet">
|
||||
<title>Task Master Kanban</title>
|
||||
<title>TaskMaster Kanban</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
@@ -430,7 +430,7 @@ export class ConfigManager {
|
||||
return {
|
||||
mcp: {
|
||||
command: 'npx',
|
||||
args: ['-y', '--package=task-master-ai', 'task-master-ai'],
|
||||
args: ['task-master-ai'],
|
||||
cwd: vscode.workspace.rootPath || '',
|
||||
env: undefined,
|
||||
timeout: 30000,
|
||||
|
||||
@@ -22,7 +22,7 @@ export class ExtensionLogger implements ILogger {
|
||||
private debugMode: boolean;
|
||||
|
||||
private constructor() {
|
||||
this.outputChannel = vscode.window.createOutputChannel('Task Master');
|
||||
this.outputChannel = vscode.window.createOutputChannel('TaskMaster');
|
||||
const config = vscode.workspace.getConfiguration('taskmaster');
|
||||
this.debugMode = config.get<boolean>('debug.enableLogging', true);
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ export class MCPClientManager {
|
||||
});
|
||||
this.status = { isRunning: false, error: error.message };
|
||||
vscode.window.showErrorMessage(
|
||||
`Task Master MCP transport error: ${error.message}`
|
||||
`TaskMaster MCP transport error: ${error.message}`
|
||||
);
|
||||
};
|
||||
|
||||
@@ -346,11 +346,7 @@ export function createMCPConfigFromSettings(): MCPConfig {
|
||||
const config = vscode.workspace.getConfiguration('taskmaster');
|
||||
|
||||
let command = config.get<string>('mcp.command', 'npx');
|
||||
const args = config.get<string[]>('mcp.args', [
|
||||
'-y',
|
||||
'--package=task-master-ai',
|
||||
'task-master-ai'
|
||||
]);
|
||||
const args = config.get<string[]>('mcp.args', ['task-master-ai']);
|
||||
|
||||
// Use proper VS Code workspace detection
|
||||
const defaultCwd =
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Task Master API
|
||||
* TaskMaster API
|
||||
* Main API class that coordinates all modules
|
||||
*/
|
||||
|
||||
@@ -105,7 +105,7 @@ export class TaskMasterApi {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get tasks from Task Master
|
||||
* Get tasks from TaskMaster
|
||||
*/
|
||||
async getTasks(
|
||||
options?: GetTasksOptions
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* Task Master API Types
|
||||
* All type definitions for the Task Master API
|
||||
* TaskMaster API Types
|
||||
* All type definitions for the TaskMaster API
|
||||
*/
|
||||
|
||||
// MCP Response Types
|
||||
|
||||
@@ -127,7 +127,7 @@ export const EmptyState: React.FC<EmptyStateProps> = ({ currentTag }) => {
|
||||
>
|
||||
<ExternalLink className="w-4 h-4" />
|
||||
<span className="text-sm font-medium">
|
||||
View Task Master Documentation
|
||||
View TaskMaster Documentation
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -33,7 +33,7 @@ export const SidebarView: React.FC<SidebarViewProps> = ({
|
||||
<TaskMasterLogo className="w-20 h-20 mx-auto mb-5 opacity-80 text-vscode-foreground" />
|
||||
|
||||
<h2 className="text-xl font-semibold mb-6 text-vscode-foreground">
|
||||
Task Master
|
||||
TaskMaster
|
||||
</h2>
|
||||
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user