@@ -7,21 +7,13 @@ import * as yaml from "yaml";
77export function generateOutlineFromPlaybook ( playbookYaml : string ) : string {
88 try {
99 const parsed = yaml . parse ( playbookYaml ) ;
10- < < < << << HEAD
1110
12- = === ===
13-
14- >>> >>> > 84 cfad07 ( Add LLM provider under lighspeed )
1511 if ( ! parsed || ! Array . isArray ( parsed ) ) {
1612 return "" ;
1713 }
1814
1915 const tasks : string [ ] = [ ] ;
20- << < < < << HEAD
2116
22- === = ===
23-
24- >>> > >>> 84 cfad07 ( Add LLM provider under lighspeed )
2517 // Extract tasks from the playbook
2618 for ( const play of parsed ) {
2719 if ( play . tasks && Array . isArray ( play . tasks ) ) {
@@ -31,11 +23,7 @@ export function generateOutlineFromPlaybook(playbookYaml: string): string {
3123 }
3224 }
3325 }
34- << < < < << HEAD
3526
36- = === ===
37-
38- >>> >>> > 84 cfad07 ( Add LLM provider under lighspeed )
3927 // Also check pre_tasks and post_tasks
4028 if ( play . pre_tasks && Array . isArray ( play . pre_tasks ) ) {
4129 for ( const task of play . pre_tasks ) {
@@ -44,11 +32,7 @@ export function generateOutlineFromPlaybook(playbookYaml: string): string {
4432 }
4533 }
4634 }
47- << < < < << HEAD
4835
49- = === ===
50-
51- >>> >>> > 84 cfad07 ( Add LLM provider under lighspeed )
5236 if ( play . post_tasks && Array . isArray ( play . post_tasks ) ) {
5337 for ( const task of play . post_tasks ) {
5438 if ( task . name ) {
@@ -72,21 +56,13 @@ export function generateOutlineFromPlaybook(playbookYaml: string): string {
7256export function generateOutlineFromRole ( roleYaml : string ) : string {
7357 try {
7458 const parsed = yaml . parse ( roleYaml ) ;
75- < < < << << HEAD
7659
77- = === ===
78-
79- >>> >>> > 84 cfad07 ( Add LLM provider under lighspeed )
8060 if ( ! parsed || ! Array . isArray ( parsed ) ) {
8161 return "" ;
8262 }
8363
8464 const tasks : string [ ] = [ ] ;
85- << < < < << HEAD
8665
87- === = ===
88-
89- >>> > >>> 84 cfad07 ( Add LLM provider under lighspeed )
9066 // Extract task names
9167 for ( const task of parsed ) {
9268 if ( task . name ) {
@@ -116,7 +92,3 @@ export function parseOutlineToTaskList(outline: string): string[] {
11692 return line . replace ( / ^ \d + \. \s * / , "" ) ;
11793 } ) ;
11894}
119- << < < < << HEAD
120- === = ===
121-
122- >>> > >>> 84 cfad07 ( Add LLM provider under lighspeed )
0 commit comments