dsh-context 0.25.2 → 0.25.3
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/lib/client.js +8 -4
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -1491,7 +1491,11 @@ window.__ModuleLoader__.load({
|
|
|
1491
1491
|
tag = n.calls.join(" › ");
|
|
1492
1492
|
preview = (n.text !== void 0 && n.text !== "" ? n.text : null) ?? blockSummaryOf(bySeq.get(n.seq)) ?? t("node.empty");
|
|
1493
1493
|
} else if (n.cat === "assistant" && (n.text === void 0 || n.text === "")) preview = blockSummaryOf(bySeq.get(n.seq)) ?? preview;
|
|
1494
|
-
else if (n.cat === "
|
|
1494
|
+
else if (n.cat === "user") {
|
|
1495
|
+
const conv = bySeq.get(n.seq);
|
|
1496
|
+
const imgCount = conv !== void 0 && Array.isArray(conv.content) ? conv.content.filter((b) => imageRefOf(b) !== null).length : 0;
|
|
1497
|
+
if (imgCount > 0 && openElem !== `n${n.seq}`) tag = t("attach.image") + (imgCount > 1 ? " ×" + String(imgCount) : "");
|
|
1498
|
+
} else if (n.cat === "inject" && !n.skill) {
|
|
1495
1499
|
tag = t("form." + (n.form || "context"));
|
|
1496
1500
|
if (n.text !== void 0 && n.text !== "") preview = n.form === "snapshot" ? t("node.snapshot") + n.text : n.text;
|
|
1497
1501
|
}
|
|
@@ -1985,7 +1989,7 @@ window.__ModuleLoader__.load({
|
|
|
1985
1989
|
return function PluginInfo() {
|
|
1986
1990
|
const [latest, setLatest] = React.useState(null);
|
|
1987
1991
|
React.useEffect(() => {
|
|
1988
|
-
if ("0.25.
|
|
1992
|
+
if ("0.25.3".includes("-dev")) return;
|
|
1989
1993
|
let on = true;
|
|
1990
1994
|
fetchLatestVersion().then((v) => {
|
|
1991
1995
|
if (on && v) setLatest(v);
|
|
@@ -1994,8 +1998,8 @@ window.__ModuleLoader__.load({
|
|
|
1994
1998
|
on = false;
|
|
1995
1999
|
};
|
|
1996
2000
|
}, []);
|
|
1997
|
-
const update = latest !== null && isNewerVersion(latest, "0.25.
|
|
1998
|
-
const nameValue = ["dsh-context (v0.25.
|
|
2001
|
+
const update = latest !== null && isNewerVersion(latest, "0.25.3") ? latest : null;
|
|
2002
|
+
const nameValue = ["dsh-context (v0.25.3)"];
|
|
1999
2003
|
if (update) nameValue.push(/* @__PURE__ */ React.createElement("span", {
|
|
2000
2004
|
key: "update",
|
|
2001
2005
|
className: "lc-pi-update"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-context",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.3",
|
|
4
4
|
"description": "A DeepSeek Harness plugin for context insight and management, with context dashboard and context command, for understanding how the context is made of, and how it evolves.",
|
|
5
5
|
"author": "bowenliang123",
|
|
6
6
|
"repository": {
|