dskcode 0.1.37 → 0.1.38
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 +58 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1984,7 +1984,7 @@ function TodoListPanel({ items }) {
|
|
|
1984
1984
|
// package.json
|
|
1985
1985
|
var package_default = {
|
|
1986
1986
|
name: "dskcode",
|
|
1987
|
-
version: "0.1.
|
|
1987
|
+
version: "0.1.38",
|
|
1988
1988
|
repository: {
|
|
1989
1989
|
type: "git",
|
|
1990
1990
|
url: "git+https://github.com/Awu12277/deepseek-agent-cli/tree/main"
|
|
@@ -7064,10 +7064,19 @@ function ChatSession({
|
|
|
7064
7064
|
verbose && /* @__PURE__ */ jsx11(Text12, { color: "#ff1493", children: "\u26A1 Verbose" })
|
|
7065
7065
|
] })
|
|
7066
7066
|
) : hasReasoningPanel ? (
|
|
7067
|
-
/* =====
|
|
7067
|
+
/* ===== 流式思考中:截断至最新12行,空行填充维持固定高度 ===== */
|
|
7068
7068
|
/* @__PURE__ */ jsxs11(Fragment2, { children: [
|
|
7069
7069
|
/* @__PURE__ */ jsx11(Text12, { bold: true, color: "#ff9800", children: "\u{1F9E0} \u6DF1\u5EA6\u601D\u8003ing" }),
|
|
7070
|
-
/* @__PURE__ */ jsx11(Text12, { dimColor: true, wrap: "wrap", children:
|
|
7070
|
+
/* @__PURE__ */ jsx11(Text12, { dimColor: true, wrap: "wrap", children: (() => {
|
|
7071
|
+
const full = joinReasoningSegments(currentReasoning);
|
|
7072
|
+
const maxContentLines = 11;
|
|
7073
|
+
const lines = full.split("\n");
|
|
7074
|
+
const kept = lines.slice(-maxContentLines);
|
|
7075
|
+
while (kept.length < maxContentLines) {
|
|
7076
|
+
kept.unshift("");
|
|
7077
|
+
}
|
|
7078
|
+
return kept.join("\n");
|
|
7079
|
+
})() })
|
|
7071
7080
|
] })
|
|
7072
7081
|
) : (
|
|
7073
7082
|
/* ===== 对话中(无思考):会话状态面板 ===== */
|
|
@@ -7105,7 +7114,7 @@ function ChatSession({
|
|
|
7105
7114
|
}
|
|
7106
7115
|
),
|
|
7107
7116
|
/* @__PURE__ */ jsx11(Box11, { width: 1, flexShrink: 0, children: /* @__PURE__ */ jsx11(Text12, { color: "#444", children: "\u2502" }) }),
|
|
7108
|
-
/* @__PURE__ */ jsxs11(Box11, { flexDirection: "column", flexGrow: 1, children: [
|
|
7117
|
+
useMemo(() => /* @__PURE__ */ jsxs11(Box11, { flexDirection: "column", flexGrow: 1, children: [
|
|
7109
7118
|
/* @__PURE__ */ jsxs11(Box11, { flexDirection: "column", flexGrow: 1, children: [
|
|
7110
7119
|
!hasConversationStarted && /* @__PURE__ */ jsxs11(Box11, { flexDirection: "column", alignItems: "flex-start", flexGrow: 1, paddingBottom: 1, children: [
|
|
7111
7120
|
cmdTips.length > 0 && (() => {
|
|
@@ -7252,7 +7261,51 @@ function ChatSession({
|
|
|
7252
7261
|
/* @__PURE__ */ jsx11(SkillSelector, { skills, input, selectedIndex: skillSelectIndex }),
|
|
7253
7262
|
/* @__PURE__ */ jsx11(FileSelector, { files, input, selectedIndex: fileSelectIndex })
|
|
7254
7263
|
] })
|
|
7255
|
-
] })
|
|
7264
|
+
] }), [
|
|
7265
|
+
displayMessages,
|
|
7266
|
+
staticKey,
|
|
7267
|
+
isStreaming,
|
|
7268
|
+
currentContent,
|
|
7269
|
+
currentToolCalls,
|
|
7270
|
+
_currentUsage,
|
|
7271
|
+
_currentCost,
|
|
7272
|
+
_streamingModel,
|
|
7273
|
+
streamError,
|
|
7274
|
+
todoSnapshot,
|
|
7275
|
+
todoPanelVisible,
|
|
7276
|
+
selectingModel,
|
|
7277
|
+
modelOptions,
|
|
7278
|
+
activeModel,
|
|
7279
|
+
modelSelectIndex,
|
|
7280
|
+
setActiveModel,
|
|
7281
|
+
setModelSelectIndex,
|
|
7282
|
+
rewindSelecting,
|
|
7283
|
+
rewindList,
|
|
7284
|
+
rewindSelectIndex,
|
|
7285
|
+
setRewindSelecting,
|
|
7286
|
+
setRewindSelectIndex,
|
|
7287
|
+
rewindHintPhase,
|
|
7288
|
+
hasConversationStarted,
|
|
7289
|
+
sessionMode,
|
|
7290
|
+
streamingPhase,
|
|
7291
|
+
idlePlaceholder,
|
|
7292
|
+
gradientColors,
|
|
7293
|
+
streamingPlaceholder,
|
|
7294
|
+
streamingGradientColors,
|
|
7295
|
+
input,
|
|
7296
|
+
setInput,
|
|
7297
|
+
rightContentWidth,
|
|
7298
|
+
handleSubmit,
|
|
7299
|
+
skills,
|
|
7300
|
+
skillSelectIndex,
|
|
7301
|
+
files,
|
|
7302
|
+
fileSelectIndex,
|
|
7303
|
+
inputKey,
|
|
7304
|
+
cmdTips,
|
|
7305
|
+
cmdTipIndex,
|
|
7306
|
+
cmdTipGradientColors,
|
|
7307
|
+
doubleCtrlC
|
|
7308
|
+
])
|
|
7256
7309
|
] }),
|
|
7257
7310
|
doubleCtrlC && !isStreaming && /* @__PURE__ */ jsx11(Box11, { marginTop: 1, children: /* @__PURE__ */ jsx11(Text12, { color: "#ff1493", bold: true, children: " \u26A0 \u518D\u6309\u4E00\u6B21 Ctrl+C \u9000\u51FA dskcode" }) }),
|
|
7258
7311
|
isStreaming && /* @__PURE__ */ jsx11(Box11, { marginTop: 1, children: /* @__PURE__ */ jsx11(Text12, { color: "yellow", dimColor: true, children: " \u63D0\u793A\uFF1A\u6309 Ctrl+C \u53D6\u6D88\u5F53\u524D\u8BF7\u6C42" }) })
|