Skip to content

Commit 6f7a53d

Browse files
committed
refactor(cli): remove git analytics commands
Remove dev owners and dev activity commands to refocus on semantic value. Dev-agent's unique value is semantic search (embeddings + AST), not git analytics which GitHub/git already provide. Changes: - Remove dev owners command (891 lines) - Remove dev activity command (175 lines) - Clean up dead code in change-frequency.ts (calculateFileAuthorContributions) - Keep code_metadata for introspection/debugging - Keep calculateChangeFrequency for dev_map MCP tool BREAKING CHANGE: dev owners and dev activity commands removed - Use git log or GitHub for contributor/activity analytics - Reduces codebase by ~1,200 lines - Eliminates git caching complexity - Focuses on MCP tools for AI context
1 parent c6ec22d commit 6f7a53d

File tree

14 files changed

+129
-1006
lines changed

14 files changed

+129
-1006
lines changed

packages/cli/src/cli.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import chalk from 'chalk';
44
import { Command } from 'commander';
5-
import { activityCommand } from './commands/activity.js';
65
import { cleanCommand } from './commands/clean.js';
76
import { compactCommand } from './commands/compact.js';
87
import { dashboardCommand } from './commands/dashboard.js';
@@ -13,7 +12,6 @@ import { indexCommand } from './commands/index.js';
1312
import { initCommand } from './commands/init.js';
1413
import { mapCommand } from './commands/map.js';
1514
import { mcpCommand } from './commands/mcp.js';
16-
import { ownersCommand } from './commands/owners.js';
1715
import { planCommand } from './commands/plan.js';
1816
import { searchCommand } from './commands/search.js';
1917
import { statsCommand } from './commands/stats.js';
@@ -42,8 +40,6 @@ program.addCommand(gitCommand);
4240
program.addCommand(mapCommand);
4341
program.addCommand(updateCommand);
4442
program.addCommand(statsCommand);
45-
program.addCommand(ownersCommand);
46-
program.addCommand(activityCommand);
4743
program.addCommand(dashboardCommand);
4844
program.addCommand(compactCommand);
4945
program.addCommand(cleanCommand);

packages/cli/src/commands/activity.ts

Lines changed: 0 additions & 174 deletions
This file was deleted.

packages/cli/src/commands/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ export const indexCommand = new Command('index')
205205
'documents',
206206
embeddingStartTime
207207
);
208-
} else {
209-
// Scanning phase
208+
} else if (progress.phase === 'scanning') {
209+
// Scanning phase - show file progress
210210
progressRenderer.updateSectionWithRate(
211211
progress.filesProcessed,
212212
progress.totalFiles,

0 commit comments

Comments
 (0)