Merge branch 'worktree-agent-afa6a05b31a0831e8'
This commit is contained in:
@@ -116,6 +116,12 @@ List<StageDefinitionField> stageDefinitionFields(dynamic stage) {
|
||||
if (tools != null && text.trim().isNotEmpty) {
|
||||
fields.add(StageDefinitionField('Tools', text, block: true));
|
||||
}
|
||||
// One library skill per line: `name` (latest at run start) or `name@N`.
|
||||
final skills = blocks['skills'];
|
||||
final skillText = _text(skills);
|
||||
if (skills != null && skillText.trim().isNotEmpty) {
|
||||
fields.add(StageDefinitionField('Skills', skillText.trim(), block: true));
|
||||
}
|
||||
}
|
||||
|
||||
final limits = stage['limits'];
|
||||
|
||||
@@ -81,6 +81,8 @@ List<VisitFact> detailVisitFacts(JsonMap step) {
|
||||
if (duration != null) facts.add((label: 'Duration', value: duration));
|
||||
final model = detailVisitProviderModel(step);
|
||||
if (model != null) facts.add((label: 'Provider/model', value: model));
|
||||
final skills = detailVisitSkills(step);
|
||||
if (skills != null) facts.add((label: 'Skills', value: skills));
|
||||
final usage = stageTokenUsage(step);
|
||||
if (usage != null) {
|
||||
facts.add((label: 'Tokens', value: tokenUsageDetail(usage)));
|
||||
@@ -111,6 +113,15 @@ String? detailVisitProviderModel(JsonMap step) {
|
||||
return provider ?? model;
|
||||
}
|
||||
|
||||
/// The skill library versions (`name@N`) this visit loaded, resolved when
|
||||
/// the run started; null when the stage configured none.
|
||||
String? detailVisitSkills(JsonMap step) {
|
||||
final skills = step['skills'];
|
||||
if (skills is! List) return null;
|
||||
final names = <String>[for (final skill in skills) ?_text(skill)];
|
||||
return names.isEmpty ? null : names.join(', ');
|
||||
}
|
||||
|
||||
/// A recorded verdict, or null when the server recorded no option and no
|
||||
/// reason. An empty recorded verdict is not rendered as a decision.
|
||||
({String? option, String? reason})? detailVisitVerdict(JsonMap step) {
|
||||
|
||||
Reference in New Issue
Block a user