deepcode-ai 1.2.7 → 1.2.8
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 +16 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28617,7 +28617,7 @@ function parseVersion2(version) {
|
|
|
28617
28617
|
if (!match) return null;
|
|
28618
28618
|
return [Number(match[1]), Number(match[2]), Number(match[3])];
|
|
28619
28619
|
}
|
|
28620
|
-
var VERSION = "1.2.
|
|
28620
|
+
var VERSION = "1.2.8".length > 0 ? "1.2.8" : "0.0.0-dev";
|
|
28621
28621
|
var updateCommand = {
|
|
28622
28622
|
name: "update",
|
|
28623
28623
|
description: "Check published DeepCode versions",
|
|
@@ -30222,7 +30222,7 @@ var AppContainer = ({ cwd, config, provider, model, resumeSessionId }) => {
|
|
|
30222
30222
|
"idle"
|
|
30223
30223
|
/* Idle */
|
|
30224
30224
|
);
|
|
30225
|
-
const [compactMode, setCompactMode] = useState29(
|
|
30225
|
+
const [compactMode, setCompactMode] = useState29(true);
|
|
30226
30226
|
const [shellModeActive, setShellModeActive] = useState29(false);
|
|
30227
30227
|
const [showEscapePrompt, setShowEscapePrompt] = useState29(false);
|
|
30228
30228
|
const [messageQueue, setMessageQueue] = useState29([]);
|
|
@@ -30267,6 +30267,7 @@ var AppContainer = ({ cwd, config, provider, model, resumeSessionId }) => {
|
|
|
30267
30267
|
const taskStreamsBufferRef = useRef17({});
|
|
30268
30268
|
const liveToolCallsBufferRef = useRef17([]);
|
|
30269
30269
|
const subagentChunkBufferRef = useRef17(/* @__PURE__ */ new Map());
|
|
30270
|
+
const subagentToolBufferRef = useRef17([]);
|
|
30270
30271
|
const drainingQueueRef = useRef17(false);
|
|
30271
30272
|
const messageQueueRef = useRef17([]);
|
|
30272
30273
|
const sessionShellAllowlistRef = useRef17(/* @__PURE__ */ new Set());
|
|
@@ -30572,14 +30573,20 @@ var AppContainer = ({ cwd, config, provider, model, resumeSessionId }) => {
|
|
|
30572
30573
|
setLiveToolCalls((prev) => activities.reduce(reduceToolActivity, prev));
|
|
30573
30574
|
}
|
|
30574
30575
|
const subagentChunks = subagentChunkBufferRef.current;
|
|
30575
|
-
|
|
30576
|
+
const subagentTools = subagentToolBufferRef.current;
|
|
30577
|
+
if (subagentChunks.size > 0 || subagentTools.length > 0) {
|
|
30576
30578
|
subagentChunkBufferRef.current = /* @__PURE__ */ new Map();
|
|
30579
|
+
subagentToolBufferRef.current = [];
|
|
30577
30580
|
setSubagentMap((prev) => {
|
|
30578
30581
|
const next = new Map(prev);
|
|
30579
30582
|
for (const [taskId, output] of subagentChunks) {
|
|
30580
30583
|
const entry = next.get(taskId);
|
|
30581
30584
|
if (entry) next.set(taskId, { ...entry, currentOutput: output });
|
|
30582
30585
|
}
|
|
30586
|
+
for (const { taskId, toolName, active } of subagentTools) {
|
|
30587
|
+
const entry = next.get(taskId);
|
|
30588
|
+
if (entry) next.set(taskId, { ...entry, currentTool: active ? toolName : void 0 });
|
|
30589
|
+
}
|
|
30583
30590
|
return next;
|
|
30584
30591
|
});
|
|
30585
30592
|
}
|
|
@@ -30638,7 +30645,7 @@ var AppContainer = ({ cwd, config, provider, model, resumeSessionId }) => {
|
|
|
30638
30645
|
runtimeRef.current = runtime;
|
|
30639
30646
|
sessionRef.current = session;
|
|
30640
30647
|
configAdapterRef.current = new DeepCodeConfigAdapter(cwd);
|
|
30641
|
-
setCompactMode(runtime.config.tui.compactMode);
|
|
30648
|
+
setCompactMode(runtime.config.tui.compactMode ?? true);
|
|
30642
30649
|
const savedTheme = readSavedTheme(cwd) ?? runtime.config.tui.theme;
|
|
30643
30650
|
themeManager.setActiveTheme(savedTheme);
|
|
30644
30651
|
setThemeName(themeManager.getActiveTheme().name);
|
|
@@ -30728,13 +30735,7 @@ var AppContainer = ({ cwd, config, provider, model, resumeSessionId }) => {
|
|
|
30728
30735
|
);
|
|
30729
30736
|
unsubscribers.push(
|
|
30730
30737
|
runtime.events.on("subagent:tool", ({ taskId, toolName, active }) => {
|
|
30731
|
-
|
|
30732
|
-
const entry = prev.get(taskId);
|
|
30733
|
-
if (!entry) return prev;
|
|
30734
|
-
const next = new Map(prev);
|
|
30735
|
-
next.set(taskId, { ...entry, currentTool: active ? toolName : void 0 });
|
|
30736
|
-
return next;
|
|
30737
|
-
});
|
|
30738
|
+
subagentToolBufferRef.current.push({ taskId, toolName, active });
|
|
30738
30739
|
})
|
|
30739
30740
|
);
|
|
30740
30741
|
unsubscribers.push(
|
|
@@ -31563,6 +31564,10 @@ var AppContainer = ({ cwd, config, provider, model, resumeSessionId }) => {
|
|
|
31563
31564
|
setActiveDialog("provider");
|
|
31564
31565
|
return;
|
|
31565
31566
|
}
|
|
31567
|
+
if (key.ctrl && input === "o") {
|
|
31568
|
+
setCompactMode((prev) => !prev);
|
|
31569
|
+
return;
|
|
31570
|
+
}
|
|
31566
31571
|
if (approvalQueue.length > 0) {
|
|
31567
31572
|
const pressed = input.toLowerCase();
|
|
31568
31573
|
const enterArmed = approvalPromptVisibleAtRef.current !== null && Date.now() - approvalPromptVisibleAtRef.current >= APPROVAL_ENTER_ARM_DELAY_MS;
|