Skip to content

Commit 03e7070

Browse files
Copilotpelikhan
andcommitted
Fix safe_outputs_processor_main script loading and registration
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent 73270b2 commit 03e7070

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

pkg/workflow/compiler_safe_outputs_unified.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ func (c *Compiler) buildUnifiedSafeOutputsJob(data *WorkflowData, mainJobName, m
145145

146146
// Build the unified processor step
147147
// This single step replaces all the individual safe output steps
148-
stepScript := sources["safe_outputs_processor_main"]
148+
stepScript := sources["safe_outputs_processor_main.cjs"]
149149
if stepScript == "" {
150-
return nil, nil, fmt.Errorf("safe_outputs_processor_main script not found")
150+
return nil, nil, fmt.Errorf("safe_outputs_processor_main.cjs script not found")
151151
}
152152

153153
// Collect all custom environment variables from all safe output configs

pkg/workflow/js.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,15 @@ var safeOutputsToolsLoaderScript string
279279
//go:embed js/safe_outputs_bootstrap.cjs
280280
var safeOutputsBootstrapScript string
281281

282+
//go:embed js/safe_output_handler_manager.cjs
283+
var safeOutputHandlerManagerScript string
284+
285+
//go:embed js/create_issue_handler.cjs
286+
var createIssueHandlerScript string
287+
288+
//go:embed js/safe_outputs_processor_main.cjs
289+
var safeOutputsProcessorMainScript string
290+
282291
//go:embed js/resolve_mentions_from_payload.cjs
283292
var resolveMentionsFromPayloadScript string
284293

@@ -353,6 +362,9 @@ func GetJavaScriptSources() map[string]string {
353362
"safe_outputs_tools_loader.cjs": safeOutputsToolsLoaderScript,
354363
"safe_outputs_tools.json": safeOutputsToolsJSON,
355364
"safe_outputs_bootstrap.cjs": safeOutputsBootstrapScript,
365+
"safe_output_handler_manager.cjs": safeOutputHandlerManagerScript,
366+
"create_issue_handler.cjs": createIssueHandlerScript,
367+
"safe_outputs_processor_main.cjs": safeOutputsProcessorMainScript,
356368
"safe_outputs_mcp_server.cjs": safeOutputsMCPServerScriptSource,
357369
"resolve_mentions_from_payload.cjs": resolveMentionsFromPayloadScript,
358370
"sanitize_incoming_text.cjs": sanitizeIncomingTextScript,

0 commit comments

Comments
 (0)