- {/* Description */}
- {detail?.description && (
-
{detail.description}
- )}
-
- {/* Meta badges */}
-
- {detail?.language && (
-
- {detail.language}
-
- )}
- {detail?.version && (
-
- v{detail.version}
-
- )}
-
-
- {/* Pipeline steps */}
- {hasSteps && (
-
-
- Pipeline Steps
-
-
- {detail!.config!.steps!.map((step, i) => (
-
-
- {i + 1}
-
- {step.task}
- {step.foreach && (
-
- (foreach: {step.foreach})
-
- )}
-
- ))}
-
-
- )}
-
- {/* Inputs */}
- {hasInputs && (
-
-
- Inputs
-
-
- {Object.entries(detail!.inputs!).map(([key, def]) => {
- const d = def as { type?: string; description?: string; default?: string };
- return (
-
- {key}
- {d.type && (
- {d.type}
- )}
- {d.description && (
-
- {d.description}
-
- )}
-
- );
- })}
-
-
- )}
-
- {/* Body (agent instructions) */}
- {detail?.body ? (
-
-
- {detail.body}
-
-
- ) : detail && !hasSteps ? (
-
No instructions
- ) : null}
-
-