@@ -14,13 +14,13 @@ async function registerEnhancedWorkflows() {
1414 const provider = moduleManager . getProvider ( ) ;
1515
1616 // 注册所有增强核心工作流
17- enhancedCoreWorkflows . forEach ( ( workflow ) => {
17+ for ( const workflow of enhancedCoreWorkflows ) {
1818 provider . registerWorkflow ( workflow ) ;
1919 console . log ( `✅ 注册工作流: ${ workflow . name } ` ) ;
2020 console . log ( ` 描述: ${ workflow . description } ` ) ;
2121 console . log ( ` 步骤数: ${ workflow . steps . length } ` ) ;
2222 console . log ( ) ;
23- } ) ;
23+ }
2424
2525 console . log ( '📋 所有增强核心工作流注册完成\n' ) ;
2626}
@@ -67,7 +67,7 @@ async function demonstrateAppWorkflows() {
6767 ) ;
6868 }
6969
70- console . log ( ' \\n' + ' -'. repeat ( 40 ) ) ;
70+ console . log ( ` \\n${ ' -'. repeat ( 40 ) } ` ) ;
7171
7272 // 2. 多平台应用管理工作流
7373 console . log ( '\\n🌍 多平台应用管理工作流演示' ) ;
@@ -99,7 +99,7 @@ async function demonstrateAppWorkflows() {
9999 ) ;
100100 }
101101
102- console . log ( ' \\n' + ' ='. repeat ( 70 ) + ' \\n' ) ;
102+ console . log ( ` \\n${ ' ='. repeat ( 70 ) } \\n` ) ;
103103}
104104
105105/**
@@ -130,11 +130,11 @@ async function demonstrateBundleWorkflows() {
130130 console . log ( '\\n📊 智能打包结果:' ) ;
131131 if ( bundleResult . data ?. buildResults ) {
132132 const builds = bundleResult . data . buildResults ;
133- builds . forEach ( ( build : any ) => {
133+ for ( const build of builds as Array < Record < string , unknown > > ) {
134134 console . log (
135135 `${ build . platform } : ${ build . success ? '✅ 成功' : '❌ 失败' } (${ build . buildTime } s, ${ build . bundleSize } MB)` ,
136136 ) ;
137- } ) ;
137+ }
138138 }
139139
140140 if ( bundleResult . data ?. averageScore ) {
@@ -147,7 +147,7 @@ async function demonstrateBundleWorkflows() {
147147 ) ;
148148 }
149149
150- console . log ( ' \\n' + ' -'. repeat ( 40 ) ) ;
150+ console . log ( ` \\n${ ' -'. repeat ( 40 ) } ` ) ;
151151
152152 // 2. 增量构建工作流
153153 console . log ( '\\n🔄 增量构建工作流演示' ) ;
@@ -186,7 +186,7 @@ async function demonstrateBundleWorkflows() {
186186 ) ;
187187 }
188188
189- console . log ( ' \\n' + ' ='. repeat ( 70 ) + ' \\n' ) ;
189+ console . log ( ` \\n${ ' ='. repeat ( 70 ) } \\n` ) ;
190190}
191191
192192/**
@@ -223,9 +223,11 @@ async function demonstratePackageWorkflows() {
223223
224224 if ( report . failedOperations . length > 0 ) {
225225 console . log ( '\\n❌ 失败操作:' ) ;
226- report . failedOperations . forEach ( ( op : any ) => {
226+ for ( const op of report . failedOperations as Array <
227+ Record < string , unknown >
228+ > ) {
227229 console . log ( ` ${ op . operation } : ${ op . file } ` ) ;
228- } ) ;
230+ }
229231 }
230232 }
231233 } catch ( error ) {
@@ -235,7 +237,7 @@ async function demonstratePackageWorkflows() {
235237 ) ;
236238 }
237239
238- console . log ( ' \\n' + ' ='. repeat ( 70 ) + ' \\n' ) ;
240+ console . log ( ` \\n${ ' ='. repeat ( 70 ) } \\n` ) ;
239241}
240242
241243/**
@@ -290,7 +292,7 @@ async function demonstrateVersionWorkflows() {
290292 ) ;
291293 }
292294
293- console . log ( ' \\n' + ' ='. repeat ( 70 ) + ' \\n' ) ;
295+ console . log ( ` \\n${ ' ='. repeat ( 70 ) } \\n` ) ;
294296}
295297
296298/**
@@ -378,7 +380,7 @@ async function demonstrateWorkflowComposition() {
378380 ) ;
379381 }
380382
381- console . log ( ' \\n' + ' ='. repeat ( 70 ) + ' \\n' ) ;
383+ console . log ( ` \\n${ ' ='. repeat ( 70 ) } \\n` ) ;
382384}
383385
384386/**
@@ -429,19 +431,19 @@ async function listEnhancedWorkflows() {
429431 ] ,
430432 } ;
431433
432- Object . entries ( workflowCategories ) . forEach ( ( [ category , workflows ] ) => {
434+ for ( const [ category , workflows ] of Object . entries ( workflowCategories ) ) {
433435 console . log ( `\\n📂 ${ category } :` ) ;
434436 console . log ( '-' . repeat ( 50 ) ) ;
435437
436- workflows . forEach ( ( workflow , index ) => {
438+ for ( const [ index , workflow ] of workflows . entries ( ) ) {
437439 console . log ( `${ index + 1 } . ${ workflow . name } ` ) ;
438440 console . log ( ` 描述: ${ workflow . description } ` ) ;
439441 console . log ( ` 用途: ${ workflow . useCase } ` ) ;
440442 console . log ( ) ;
441- } ) ;
442- } ) ;
443+ }
444+ }
443445
444- console . log ( '=' . repeat ( 70 ) + ' \\n' ) ;
446+ console . log ( ` ${ '=' . repeat ( 70 ) } \\n` ) ;
445447}
446448
447449/**
0 commit comments