deepcode-ai 1.1.15 → 1.1.16

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.
package/dist/index.js CHANGED
@@ -4584,6 +4584,7 @@ var SubagentManager = class {
4584
4584
  systemPrompt: task.systemPrompt,
4585
4585
  allowedTools: task.allowedTools,
4586
4586
  disallowedTools: task.disallowedTools,
4587
+ onChunk: this.events ? (text) => this.events.emit("subagent:chunk", { taskId: task.id, text }) : void 0,
4587
4588
  onToolActivity: this.events ? (toolName, active) => this.events.emit("subagent:tool", { taskId: task.id, toolName, active }) : void 0
4588
4589
  });
4589
4590
  this.events?.emit("subagent:complete", { taskId: task.id });
@@ -28590,14 +28591,14 @@ var ModelDialog = ({
28590
28591
  }
28591
28592
  );
28592
28593
  };
28593
- function statusIcon(entry) {
28594
- if (entry.status === "done") return "\u2713";
28595
- if (entry.status === "failed") return "\u2717";
28594
+ function statusIcon(e) {
28595
+ if (e.status === "done") return "\u2713";
28596
+ if (e.status === "failed") return "\u2717";
28596
28597
  return "\u2026";
28597
28598
  }
28598
- function statusColor2(entry) {
28599
- if (entry.status === "done") return theme.status.success;
28600
- if (entry.status === "failed") return theme.status.error;
28599
+ function statusColor2(e) {
28600
+ if (e.status === "done") return theme.status.success;
28601
+ if (e.status === "failed") return theme.status.error;
28601
28602
  return theme.text.accent;
28602
28603
  }
28603
28604
  var SubagentsPanel = ({ subagents, mainAreaWidth }) => {
@@ -28616,22 +28617,26 @@ var SubagentsPanel = ({ subagents, mainAreaWidth }) => {
28616
28617
  width: Math.min(mainAreaWidth, 80),
28617
28618
  children: [
28618
28619
  /* @__PURE__ */ jsx47(Box38, { paddingX: 1, children: /* @__PURE__ */ jsx47(Text46, { bold: true, color: theme.text.accent, children: title }) }),
28619
- subagents.map((entry) => /* @__PURE__ */ jsxs43(Box38, { flexDirection: "row", paddingX: 1, gap: 1, children: [
28620
- /* @__PURE__ */ jsx47(Text46, { color: statusColor2(entry), children: statusIcon(entry) }),
28621
- /* @__PURE__ */ jsxs43(Box38, { flexDirection: "column", flexShrink: 1, children: [
28620
+ subagents.map((entry) => /* @__PURE__ */ jsxs43(Box38, { flexDirection: "column", paddingX: 1, children: [
28621
+ /* @__PURE__ */ jsxs43(Box38, { flexDirection: "row", gap: 1, children: [
28622
+ /* @__PURE__ */ jsx47(Text46, { color: statusColor2(entry), children: statusIcon(entry) }),
28622
28623
  /* @__PURE__ */ jsxs43(Text46, { wrap: "truncate", color: theme.text.primary, children: [
28623
28624
  entry.prompt,
28624
28625
  entry.prompt.length >= 50 ? "\u2026" : ""
28625
- ] }),
28626
- entry.status === "running" && entry.currentTool && /* @__PURE__ */ jsxs43(Text46, { color: theme.text.secondary, dimColor: true, children: [
28627
- " ",
28628
- "using ",
28629
- entry.currentTool
28630
- ] }),
28631
- entry.status === "failed" && entry.error && /* @__PURE__ */ jsxs43(Text46, { color: theme.status.error, dimColor: true, children: [
28632
- " ",
28633
- entry.error.slice(0, 60)
28634
28626
  ] })
28627
+ ] }),
28628
+ entry.status === "running" && entry.currentTool && /* @__PURE__ */ jsxs43(Text46, { color: theme.text.secondary, dimColor: true, children: [
28629
+ " ",
28630
+ "using ",
28631
+ entry.currentTool
28632
+ ] }),
28633
+ entry.status === "running" && !entry.currentTool && entry.currentOutput && /* @__PURE__ */ jsxs43(Text46, { color: theme.text.secondary, dimColor: true, wrap: "truncate", children: [
28634
+ " ",
28635
+ entry.currentOutput.trimStart()
28636
+ ] }),
28637
+ entry.status === "failed" && entry.error && /* @__PURE__ */ jsxs43(Text46, { color: theme.status.error, dimColor: true, wrap: "truncate", children: [
28638
+ " ",
28639
+ entry.error.slice(0, 60)
28635
28640
  ] })
28636
28641
  ] }, entry.taskId))
28637
28642
  ]
@@ -28770,7 +28775,7 @@ async function generateFollowupSuggestion(runtime, session, lastOutput, signal)
28770
28775
  if (!lastOutput.trim()) return null;
28771
28776
  try {
28772
28777
  const provider = runtime.providers.get(session.provider);
28773
- const model = session.model;
28778
+ const model = session.model ?? resolveConfiguredModelForProvider(runtime.config, session.provider);
28774
28779
  if (!model) return null;
28775
28780
  const snippet = lastOutput.trim().slice(-300);
28776
28781
  const prompt = `[Task: suggest ONE concise follow-up question or action the user might ask next, in under 10 words. Return ONLY the suggestion text, no explanation, no quotes, no punctuation at the end.]
@@ -29157,6 +29162,18 @@ var AppContainer = ({ cwd, config, provider, model }) => {
29157
29162
  });
29158
29163
  })
29159
29164
  );
29165
+ unsubscribers.push(
29166
+ runtime.events.on("subagent:chunk", ({ taskId, text }) => {
29167
+ setSubagentMap((prev) => {
29168
+ const entry = prev.get(taskId);
29169
+ if (!entry) return prev;
29170
+ const next = new Map(prev);
29171
+ const combined = ((entry.currentOutput ?? "") + text).slice(-80);
29172
+ next.set(taskId, { ...entry, currentOutput: combined });
29173
+ return next;
29174
+ });
29175
+ })
29176
+ );
29160
29177
  unsubscribers.push(
29161
29178
  runtime.events.on("subagent:tool", ({ taskId, toolName, active }) => {
29162
29179
  setSubagentMap((prev) => {