@@ -18,7 +18,6 @@ import { CursorDeploymentService } from './cursor-deployment.service';
1818import { DiffService } from './diff.service' ;
1919import { ErrorRecoveryService } from './error-recovery.service' ;
2020import { KiroComponentHandlerService } from './kiro-component-handler.service' ;
21- import { KiroInstallationDetectorService } from './kiro-installation-detector.service' ;
2221import { KiroTransformerService } from './kiro-transformer.service' ;
2322import { LargeFileStreamerService } from './large-file-streamer.service' ;
2423import { PerformanceMonitorService } from './performance-monitor.service' ;
@@ -37,7 +36,6 @@ export class DeploymentService {
3736 private readonly largeFileStreamer : LargeFileStreamerService ,
3837 private readonly kiroTransformer : KiroTransformerService ,
3938 private readonly kiroComponentHandler : KiroComponentHandlerService ,
40- private readonly kiroInstallationDetector : KiroInstallationDetectorService ,
4139 private readonly cursorDeploymentService : CursorDeploymentService ,
4240 ) { }
4341
@@ -324,83 +322,6 @@ export class DeploymentService {
324322 } ;
325323
326324 try {
327- // Step 1: Check Kiro installation and compatibility
328- this . performanceMonitor . recordMemoryUsage (
329- deploymentId ,
330- 'installation-check-start' ,
331- ) ;
332-
333- const installationInfo =
334- await this . kiroInstallationDetector . detectKiroInstallation ( ) ;
335-
336- if ( ! installationInfo . isInstalled ) {
337- result . errors . push ( {
338- message :
339- 'Kiro IDE is not installed or not found in expected locations' ,
340- code : 'KIRO_NOT_INSTALLED' ,
341- severity : 'CRITICAL' ,
342- } ) ;
343- this . performanceMonitor . endDeploymentTiming ( deploymentId ) ;
344- result . metadata ! . performanceReport =
345- 'Kiro deployment failed - installation not found' ;
346- return result ;
347- }
348-
349- // Add installation info to warnings for user visibility
350- result . warnings . push ( {
351- message : `Kiro IDE detected: v${ installationInfo . version || 'unknown' } at ${ installationInfo . installationPath } ` ,
352- code : 'KIRO_INSTALLATION_DETECTED' ,
353- } ) ;
354-
355- // Check compatibility
356- if ( ! installationInfo . isCompatible ) {
357- const compatibilityResult =
358- await this . kiroInstallationDetector . checkCompatibility (
359- installationInfo . version ,
360- ) ;
361-
362- // Add compatibility issues as warnings or errors based on severity
363- for ( const issue of compatibilityResult . issues ) {
364- if ( issue . severity === 'critical' ) {
365- result . errors . push ( {
366- message : `Compatibility issue: ${ issue . message } ` ,
367- code : 'KIRO_COMPATIBILITY_ERROR' ,
368- severity : 'HIGH' ,
369- } ) ;
370- } else {
371- result . warnings . push ( {
372- message : `Compatibility warning: ${ issue . message } ` ,
373- code : 'KIRO_COMPATIBILITY_WARNING' ,
374- } ) ;
375- }
376- }
377-
378- // Stop deployment if critical compatibility issues exist
379- if (
380- compatibilityResult . issues . some (
381- ( issue ) => issue . severity === 'critical' ,
382- )
383- ) {
384- this . performanceMonitor . endDeploymentTiming ( deploymentId ) ;
385- result . metadata ! . performanceReport =
386- 'Kiro deployment failed - compatibility issues' ;
387- return result ;
388- }
389-
390- // Add recommendations
391- for ( const recommendation of compatibilityResult . recommendations ) {
392- result . warnings . push ( {
393- message : `Recommendation: ${ recommendation } ` ,
394- code : 'KIRO_RECOMMENDATION' ,
395- } ) ;
396- }
397- }
398-
399- this . performanceMonitor . recordMemoryUsage (
400- deploymentId ,
401- 'installation-check-end' ,
402- ) ;
403-
404325 // Step 2: Validate configuration for Kiro platform
405326 this . performanceMonitor . recordMemoryUsage (
406327 deploymentId ,
@@ -445,6 +366,7 @@ export class DeploymentService {
445366 // Step 4: Security scan for Kiro components
446367 this . performanceMonitor . recordMemoryUsage ( deploymentId , 'security-start' ) ;
447368
369+ // FIXME: 각 ide별로 transformer를 만들어야 함
448370 // Transform TaptikContext to Kiro formats for security scanning
449371 const globalSettings =
450372 this . kiroTransformer . transformPersonalContext ( context ) ;
@@ -634,6 +556,7 @@ export class DeploymentService {
634556 } ) ;
635557
636558 // Step 9: Handle backup strategy
559+ // FIXME: dryRun이면 백업 만들 필요 없음 순서 바꾸기
637560 if ( options . conflictStrategy === 'backup' ) {
638561 try {
639562 const backupPath = await this . createKiroBackup ( ) ;
0 commit comments