@@ -162,8 +162,11 @@ func (c *Compiler) generateYAML(data *WorkflowData, markdownPath string) (string
162162}
163163
164164func (c * Compiler ) generateMainJobSteps (yaml * strings.Builder , data * WorkflowData ) {
165+ compilerYamlLog .Printf ("Generating main job steps for workflow: %s" , data .Name )
166+
165167 // Determine if we need to add a checkout step
166168 needsCheckout := c .shouldAddCheckoutStep (data )
169+ compilerYamlLog .Printf ("Checkout step needed: %t" , needsCheckout )
167170
168171 // Add checkout step first if needed
169172 if needsCheckout {
@@ -192,6 +195,7 @@ func (c *Compiler) generateMainJobSteps(yaml *strings.Builder, data *WorkflowDat
192195 // Runtime detection now smartly filters out runtimes that already have setup actions
193196 runtimeRequirements := DetectRuntimeRequirements (data )
194197 runtimeSetupSteps := GenerateRuntimeSetupSteps (runtimeRequirements )
198+ compilerYamlLog .Printf ("Detected runtime requirements: %d runtimes, %d setup steps" , len (runtimeRequirements ), len (runtimeSetupSteps ))
195199 for _ , step := range runtimeSetupSteps {
196200 for _ , line := range step {
197201 yaml .WriteString (line + "\n " )
@@ -245,6 +249,7 @@ func (c *Compiler) generateMainJobSteps(yaml *strings.Builder, data *WorkflowDat
245249
246250 // Add engine-specific installation steps (includes Node.js setup for npm-based engines)
247251 installSteps := engine .GetInstallationSteps (data )
252+ compilerYamlLog .Printf ("Adding %d engine installation steps for %s" , len (installSteps ), engine .GetID ())
248253 for _ , step := range installSteps {
249254 for _ , line := range step {
250255 yaml .WriteString (line + "\n " )
@@ -565,6 +570,8 @@ func splitContentIntoChunks(content string) []string {
565570}
566571
567572func (c * Compiler ) generatePrompt (yaml * strings.Builder , data * WorkflowData ) {
573+ compilerYamlLog .Printf ("Generating prompt for workflow: %s (markdown size: %d bytes)" , data .Name , len (data .MarkdownContent ))
574+
568575 // Clean the markdown content
569576 cleanedMarkdownContent := removeXMLComments (data .MarkdownContent )
570577
@@ -587,6 +594,7 @@ func (c *Compiler) generatePrompt(yaml *strings.Builder, data *WorkflowData) {
587594
588595 // Split content into manageable chunks
589596 chunks := splitContentIntoChunks (cleanedMarkdownContent )
597+ compilerYamlLog .Printf ("Split prompt into %d chunks" , len (chunks ))
590598
591599 // Create the initial prompt file step
592600 yaml .WriteString (" - name: Create prompt\n " )
0 commit comments