cmte
Version:
Design by Committee™ except it's just you and LLMs
30 lines (25 loc) • 1.43 kB
YAML
name: summarize-identified-modules
description: Identifies and summarizes module exports based on identify-module-exports task output
# Remove the requirement for item.path, as the context is now item.value.content
# The cross-set reference was also removed from the task, so no longer required.
# requiredInput:
# - item.path
# - item.content # Injected directly via {{ item.content }}
# - identify-module-exports.identify-exports[item.path].output # Referenced within the task template
# The workflow passes the 'module_list' array defined in its variables block.
# This set iterates over the items in that array.
# Each iteration gets context: item = { name: 'moduleA', description: '...', content: '...' }
for_each: module_list
# Define the tasks within this set
tasks:
- useTask: summarize-module # This task uses the output from the previous set
# Define dependencies on outputs from previous tasks/sets
prior_outputs:
# Map a local name (used in the task template) to the output reference
# Use '[this]' to refer to the output from the *current* iteration
identified_exports: "{{ identify-module-exports.identify-exports[this].output }}"
- useTask: dump-interpolated-content # Now expects item.name and item.content directly
# No prior outputs needed here anymore
# Specifies which task outputs from this set are expected to be produced.
requiredOutput:
- summarize-module