@onlineapps/conn-orch-orchestrator 1.0.59 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -479,7 +479,7 @@ class WorkflowOrchestrator {
|
|
|
479
479
|
// Resolve variable references in step.input (e.g. ${steps[0].output.message})
|
|
480
480
|
console.log(`[WorkflowOrchestrator] [RESOLVE] Step ${stepId} input BEFORE:`, JSON.stringify(step.input));
|
|
481
481
|
console.log(`[WorkflowOrchestrator] [RESOLVE] Context keys:`, Object.keys(context || {}));
|
|
482
|
-
console.log(`[WorkflowOrchestrator] [RESOLVE] Context.
|
|
482
|
+
console.log(`[WorkflowOrchestrator] [RESOLVE] Context.api_input:`, JSON.stringify(context?.api_input));
|
|
483
483
|
console.log(`[WorkflowOrchestrator] [RESOLVE] Context.steps:`, JSON.stringify(context.steps?.map(s => ({ id: this._getStepId(s), output: s.output }))));
|
|
484
484
|
|
|
485
485
|
const resolvedInput = this._resolveInputReferences(step.input, context);
|
|
@@ -575,6 +575,10 @@ class WorkflowOrchestrator {
|
|
|
575
575
|
|
|
576
576
|
// Special handling for 'steps' - support array (legacy) and map (steps_by_id)
|
|
577
577
|
if (parts[i - 1] === 'steps') {
|
|
578
|
+
// Disallow numeric/index access (must reference by step_id)
|
|
579
|
+
if (/^\\d+$/.test(part)) {
|
|
580
|
+
return undefined;
|
|
581
|
+
}
|
|
578
582
|
if (context.steps_by_id && context.steps_by_id[part]) {
|
|
579
583
|
current = context.steps_by_id[part];
|
|
580
584
|
} else if (Array.isArray(context.steps)) {
|