apex-dev 3.10.3 → 3.10.4

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.
Files changed (2) hide show
  1. package/dist/index.js +34 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -62177,6 +62177,19 @@ function Spinner({ label }) {
62177
62177
 
62178
62178
  // src/components/ToolCallItem.jsx
62179
62179
  var jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
62180
+ var SUBAGENT_TOOLS = new Set([
62181
+ "FilePickerMax",
62182
+ "Thinker",
62183
+ "ThinkerBestOfN",
62184
+ "EditorMultiPrompt",
62185
+ "CodeReview",
62186
+ "CodeReviewMulti",
62187
+ "Commander",
62188
+ "ContextPruner",
62189
+ "ResearcherWeb",
62190
+ "ResearcherDocs",
62191
+ "GeneralAgent"
62192
+ ]);
62180
62193
  function formatElapsed(ms) {
62181
62194
  return ms < 1000 ? `${ms}ms` : `${(ms / 1000).toFixed(1)}s`;
62182
62195
  }
@@ -62188,6 +62201,7 @@ function ToolCallItem({ message }) {
62188
62201
  const truncLen = isNarrow ? 30 : 50;
62189
62202
  const { id, name, detail, status, success, elapsed, output, expanded } = message;
62190
62203
  const isRunning = status === "running" || status === "pending";
62204
+ const isSubagent = SUBAGENT_TOOLS.has(name);
62191
62205
  return /* @__PURE__ */ jsx_runtime8.jsxs("box", {
62192
62206
  style: { flexDirection: "column", paddingLeft: indent },
62193
62207
  onMouseDown: () => import_store2.toggleMessageExpanded(id),
@@ -62202,6 +62216,10 @@ function ToolCallItem({ message }) {
62202
62216
  fg: success ? import_theme8.colors.green : import_theme8.colors.red,
62203
62217
  children: success ? "\u2713" : "\u2717"
62204
62218
  }),
62219
+ isSubagent ? /* @__PURE__ */ jsx_runtime8.jsx("span", {
62220
+ fg: import_theme8.colors.dim,
62221
+ children: expanded ? " \u25BE" : " \u25B8"
62222
+ }) : null,
62205
62223
  /* @__PURE__ */ jsx_runtime8.jsx("span", {
62206
62224
  fg: import_theme8.colors.dim,
62207
62225
  children: " ["
@@ -62225,7 +62243,22 @@ function ToolCallItem({ message }) {
62225
62243
  ]
62226
62244
  })
62227
62245
  }),
62228
- expanded && output ? /* @__PURE__ */ jsx_runtime8.jsx("box", {
62246
+ expanded && output ? isSubagent ? /* @__PURE__ */ jsx_runtime8.jsxs("box", {
62247
+ style: { flexDirection: "column", paddingLeft: indent, marginTop: 0, borderStyle: "single", borderColor: import_theme8.colors.border, paddingRight: 1 },
62248
+ children: [
62249
+ /* @__PURE__ */ jsx_runtime8.jsx("text", {
62250
+ fg: import_theme8.colors.dim,
62251
+ attributes: TextAttributes.ITALIC,
62252
+ style: { marginBottom: 0 },
62253
+ children: `\u2500\u2500 ${name} output \u2500\u2500`
62254
+ }),
62255
+ /* @__PURE__ */ jsx_runtime8.jsx("text", {
62256
+ fg: import_theme8.colors.text,
62257
+ content: output,
62258
+ wrapMode: "char"
62259
+ })
62260
+ ]
62261
+ }) : /* @__PURE__ */ jsx_runtime8.jsx("box", {
62229
62262
  style: { paddingLeft: indent, marginTop: 0 },
62230
62263
  children: /* @__PURE__ */ jsx_runtime8.jsx("text", {
62231
62264
  fg: import_theme8.colors.dim,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apex-dev",
3
- "version": "3.10.3",
3
+ "version": "3.10.4",
4
4
  "description": "Apex AI - a friendly agentic coding assistant for the terminal",
5
5
  "main": "dist/index.js",
6
6
  "bin": {