@leanandmean/coding-agent 0.74.1-scramjet.8 → 0.74.1-scramjet.9

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.
@@ -675,19 +675,16 @@ export default function (pi: ExtensionAPI) {
675
675
  theme.fg("toolTitle", theme.bold("subagent ")) +
676
676
  theme.fg("accent", `chain (${args.chain.length} steps)`) +
677
677
  theme.fg("muted", ` [${scope}]`);
678
- for (let i = 0; i < Math.min(args.chain.length, 3); i++) {
678
+ for (let i = 0; i < args.chain.length; i++) {
679
679
  const step = args.chain[i];
680
- // Clean up {previous} placeholder for display
681
680
  const cleanTask = step.task.replace(/\{previous\}/g, "").trim();
682
- const preview = cleanTask.length > 40 ? `${cleanTask.slice(0, 40)}...` : cleanTask;
683
681
  text +=
684
682
  "\n " +
685
683
  theme.fg("muted", `${i + 1}.`) +
686
684
  " " +
687
685
  theme.fg("accent", step.agent) +
688
- theme.fg("dim", ` ${preview}`);
686
+ theme.fg("dim", ` ${cleanTask}`);
689
687
  }
690
- if (args.chain.length > 3) text += `\n ${theme.fg("muted", `... +${args.chain.length - 3} more`)}`;
691
688
  return new Text(text, 0, 0);
692
689
  }
693
690
  if (args.tasks && args.tasks.length > 0) {
@@ -695,20 +692,18 @@ export default function (pi: ExtensionAPI) {
695
692
  theme.fg("toolTitle", theme.bold("subagent ")) +
696
693
  theme.fg("accent", `parallel (${args.tasks.length} tasks)`) +
697
694
  theme.fg("muted", ` [${scope}]`);
698
- for (const t of args.tasks.slice(0, 3)) {
699
- const preview = t.task.length > 40 ? `${t.task.slice(0, 40)}...` : t.task;
700
- text += `\n ${theme.fg("accent", t.agent)}${theme.fg("dim", ` ${preview}`)}`;
695
+ for (const t of args.tasks) {
696
+ text += `\n ${theme.fg("accent", t.agent)}${theme.fg("dim", ` ${t.task}`)}`;
701
697
  }
702
- if (args.tasks.length > 3) text += `\n ${theme.fg("muted", `... +${args.tasks.length - 3} more`)}`;
703
698
  return new Text(text, 0, 0);
704
699
  }
705
700
  const agentName = args.agent || "...";
706
- const preview = args.task ? (args.task.length > 60 ? `${args.task.slice(0, 60)}...` : args.task) : "...";
701
+ const taskText = args.task || "...";
707
702
  let text =
708
703
  theme.fg("toolTitle", theme.bold("subagent ")) +
709
704
  theme.fg("accent", agentName) +
710
705
  theme.fg("muted", ` [${scope}]`);
711
- text += `\n ${theme.fg("dim", preview)}`;
706
+ text += `\n ${theme.fg("dim", taskText)}`;
712
707
  return new Text(text, 0, 0);
713
708
  },
714
709
 
@@ -719,6 +714,10 @@ export default function (pi: ExtensionAPI) {
719
714
  return new Text(text?.type === "text" ? text.text : "(no output)", 0, 0);
720
715
  }
721
716
 
717
+ const modelTag = (model: string | undefined): string => {
718
+ return model ? ` ${theme.fg("dim", model)}` : "";
719
+ };
720
+
722
721
  const mdTheme = getMarkdownTheme();
723
722
 
724
723
  const renderDisplayItems = (items: DisplayItem[], limit?: number) => {
@@ -746,7 +745,7 @@ export default function (pi: ExtensionAPI) {
746
745
 
747
746
  if (expanded) {
748
747
  const container = new Container();
749
- let header = `${icon} ${theme.fg("toolTitle", theme.bold(r.agent))}${theme.fg("muted", ` (${r.agentSource})`)}`;
748
+ let header = `${icon} ${theme.fg("toolTitle", theme.bold(r.agent))}${theme.fg("muted", ` (${r.agentSource})`)}${modelTag(r.model)}`;
750
749
  if (isError && r.stopReason) header += ` ${theme.fg("error", `[${r.stopReason}]`)}`;
751
750
  container.addChild(new Text(header, 0, 0));
752
751
  if (isError && r.errorMessage)
@@ -782,7 +781,7 @@ export default function (pi: ExtensionAPI) {
782
781
  return container;
783
782
  }
784
783
 
785
- let text = `${icon} ${theme.fg("toolTitle", theme.bold(r.agent))}${theme.fg("muted", ` (${r.agentSource})`)}`;
784
+ let text = `${icon} ${theme.fg("toolTitle", theme.bold(r.agent))}${theme.fg("muted", ` (${r.agentSource})`)}${modelTag(r.model)}`;
786
785
  if (isError && r.stopReason) text += ` ${theme.fg("error", `[${r.stopReason}]`)}`;
787
786
  if (isError && r.errorMessage) text += `\n${theme.fg("error", `Error: ${r.errorMessage}`)}`;
788
787
  else if (displayItems.length === 0) text += `\n${theme.fg("muted", "(no output)")}`;
@@ -833,7 +832,7 @@ export default function (pi: ExtensionAPI) {
833
832
  container.addChild(new Spacer(1));
834
833
  container.addChild(
835
834
  new Text(
836
- `${theme.fg("muted", `─── Step ${r.step}: `) + theme.fg("accent", r.agent)} ${rIcon}`,
835
+ `${theme.fg("muted", `─── Step ${r.step}: `) + theme.fg("accent", r.agent)} ${rIcon}${modelTag(r.model)}`,
837
836
  0,
838
837
  0,
839
838
  ),
@@ -880,7 +879,7 @@ export default function (pi: ExtensionAPI) {
880
879
  for (const r of details.results) {
881
880
  const rIcon = r.exitCode === 0 ? theme.fg("success", "✓") : theme.fg("error", "✗");
882
881
  const displayItems = getDisplayItems(r.messages);
883
- text += `\n\n${theme.fg("muted", `─── Step ${r.step}: `)}${theme.fg("accent", r.agent)} ${rIcon}`;
882
+ text += `\n\n${theme.fg("muted", `─── Step ${r.step}: `)}${theme.fg("accent", r.agent)} ${rIcon}${modelTag(r.model)}`;
884
883
  if (displayItems.length === 0) text += `\n${theme.fg("muted", "(no output)")}`;
885
884
  else text += `\n${renderDisplayItems(displayItems, 5)}`;
886
885
  }
@@ -921,7 +920,11 @@ export default function (pi: ExtensionAPI) {
921
920
 
922
921
  container.addChild(new Spacer(1));
923
922
  container.addChild(
924
- new Text(`${theme.fg("muted", "─── ") + theme.fg("accent", r.agent)} ${rIcon}`, 0, 0),
923
+ new Text(
924
+ `${theme.fg("muted", "─── ") + theme.fg("accent", r.agent)} ${rIcon}${modelTag(r.model)}`,
925
+ 0,
926
+ 0,
927
+ ),
925
928
  );
926
929
  container.addChild(new Text(theme.fg("muted", "Task: ") + theme.fg("dim", r.task), 0, 0));
927
930
 
@@ -966,7 +969,7 @@ export default function (pi: ExtensionAPI) {
966
969
  ? theme.fg("success", "✓")
967
970
  : theme.fg("error", "✗");
968
971
  const displayItems = getDisplayItems(r.messages);
969
- text += `\n\n${theme.fg("muted", "─── ")}${theme.fg("accent", r.agent)} ${rIcon}`;
972
+ text += `\n\n${theme.fg("muted", "─── ")}${theme.fg("accent", r.agent)} ${rIcon}${modelTag(r.model)}`;
970
973
  if (displayItems.length === 0)
971
974
  text += `\n${theme.fg("muted", r.exitCode === -1 ? "(running...)" : "(no output)")}`;
972
975
  else text += `\n${renderDisplayItems(displayItems, 5)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanandmean/coding-agent",
3
- "version": "0.74.1-scramjet.8",
3
+ "version": "0.74.1-scramjet.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },