1- import type { Agent , AgentResult , AgentsRunSummary , AgentsConfig } from './types.js' ;
1+ import type { Agent , AgentResult , AgentsRunSummary } from './types.js' ;
22import type { ProjectGraph , FondamentaConfig } from '../types/index.js' ;
3- import { validateLicense } from './license.js' ;
43
5- // Free agents
64import { deadCodeAgent } from './free/dead-code.js' ;
75import { circularDepsAgent } from './free/circular-deps.js' ;
86import { architectureGuardAgent } from './free/architecture-guard.js' ;
9-
10- // PRO agents
117import { securityScannerAgent } from './pro/security-scanner.js' ;
128import { schemaDriftAgent } from './pro/schema-drift.js' ;
139import { performanceSentinelAgent } from './pro/performance-sentinel.js' ;
@@ -17,11 +13,9 @@ import { impactAnalyzerAgent } from './pro/impact-analyzer.js';
1713// --- Registry ---
1814
1915export const ALL_AGENTS : Agent [ ] = [
20- // Free
2116 deadCodeAgent ,
2217 circularDepsAgent ,
2318 architectureGuardAgent ,
24- // PRO
2519 securityScannerAgent ,
2620 schemaDriftAgent ,
2721 performanceSentinelAgent ,
@@ -40,7 +34,6 @@ export function listAgents(): Agent[] {
4034// --- Runner ---
4135
4236export interface RunAgentsOptions {
43- freeOnly ?: boolean ;
4437 agentIds ?: string [ ] ;
4538}
4639
@@ -50,7 +43,6 @@ export function runAgents(
5043 options : RunAgentsOptions = { } ,
5144) : AgentsRunSummary {
5245 const start = Date . now ( ) ;
53- const license = validateLicense ( config . agents ?. license ) ;
5446 const results : AgentResult [ ] = [ ] ;
5547
5648 let agents = ALL_AGENTS ;
@@ -60,11 +52,6 @@ export function runAgents(
6052 agents = agents . filter ( ( a ) => options . agentIds ! . includes ( a . id ) ) ;
6153 }
6254
63- // Filter by free only
64- if ( options . freeOnly ) {
65- agents = agents . filter ( ( a ) => a . tier === 'free' ) ;
66- }
67-
6855 // Filter by config exclude
6956 const excluded = new Set ( config . agents ?. exclude ?? [ ] ) ;
7057
@@ -82,19 +69,6 @@ export function runAgents(
8269 continue ;
8370 }
8471
85- // Skip PRO agents without valid license
86- if ( agent . tier === 'pro' && ! license . valid ) {
87- results . push ( {
88- agentId : agent . id ,
89- tier : agent . tier ,
90- findings : [ ] ,
91- durationMs : 0 ,
92- skipped : true ,
93- skipReason : 'PRO license required' ,
94- } ) ;
95- continue ;
96- }
97-
9872 // Run the agent
9973 const agentStart = Date . now ( ) ;
10074 try {
@@ -139,6 +113,5 @@ export function runAgents(
139113}
140114
141115// Re-exports
142- export type { Agent , AgentFinding , AgentResult , AgentsRunSummary , AgentsConfig , LicenseInfo } from './types.js' ;
143- export { validateLicense , generateLicenseKey } from './license.js' ;
116+ export type { Agent , AgentFinding , AgentResult , AgentsRunSummary } from './types.js' ;
144117export { printAgentResult , printFindings , printSummary , generateAgentsReport } from './reporter.js' ;
0 commit comments