@aipanel/dsh-plugin 1.2.22 → 1.2.24
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 +4 -12
- package/package.json +12 -11
package/dist/index.js
CHANGED
|
@@ -755,7 +755,6 @@ function thinkingOf(type) {
|
|
|
755
755
|
switch (type) {
|
|
756
756
|
case "turn/start":
|
|
757
757
|
case "step/start":
|
|
758
|
-
case "assistant/chunk":
|
|
759
758
|
return true;
|
|
760
759
|
case "assistant/message":
|
|
761
760
|
case "turn/end":
|
|
@@ -849,25 +848,18 @@ function setupEventRelay(ctx, config) {
|
|
|
849
848
|
const handleSessionEvent = (session, event) => {
|
|
850
849
|
const sessionId = String(session?.id ?? "");
|
|
851
850
|
if (!sessionId) return;
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
const titleData = event.data;
|
|
855
|
-
const title = typeof titleData?.title === "string" ? titleData.title.trim() : "";
|
|
851
|
+
if (event.type === "session/title") {
|
|
852
|
+
const title = event.data.title;
|
|
856
853
|
if (title.length > 0 && title !== lastTitles.get(sessionId)) {
|
|
857
854
|
lastTitles.set(sessionId, title);
|
|
858
|
-
const ts = event.time;
|
|
859
855
|
post({
|
|
860
856
|
type: "session.updated",
|
|
861
|
-
session: {
|
|
862
|
-
id: sessionId,
|
|
863
|
-
title,
|
|
864
|
-
updatedAt: typeof ts === "number" ? ts : Date.now()
|
|
865
|
-
}
|
|
857
|
+
session: { id: sessionId, title, updatedAt: event.time }
|
|
866
858
|
});
|
|
867
859
|
}
|
|
868
860
|
return;
|
|
869
861
|
}
|
|
870
|
-
const thinking = thinkingOf(type);
|
|
862
|
+
const thinking = thinkingOf(event.type);
|
|
871
863
|
if (thinking === null) return;
|
|
872
864
|
const s = ensureState(sessionId);
|
|
873
865
|
if (s.thinking === thinking) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aipanel/dsh-plugin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AIPanel for DeepSeek Harness (dsh):注入审查工具 run_diagnostics、编辑后自动诊断。",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,17 +15,18 @@
|
|
|
15
15
|
"vue-tsc": "^3.3.9"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
+
"@aipanel/core": "1.2.24",
|
|
18
19
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
19
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
20
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
21
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
22
|
-
"@deepseek-ai/dsh-
|
|
23
|
-
"@deepseek-ai/dsh-
|
|
24
|
-
"@deepseek-ai/dsh-
|
|
25
|
-
"@deepseek-ai/dsh-user-
|
|
26
|
-
"@deepseek-ai/dsh-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
20
|
+
"@deepseek-ai/dsh-agent": "^0.1.6-alpha.2",
|
|
21
|
+
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
|
|
22
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.2",
|
|
23
|
+
"@deepseek-ai/dsh-session-title": "^0.1.6-alpha.2",
|
|
24
|
+
"@deepseek-ai/dsh-settings": "^0.1.6-alpha.2",
|
|
25
|
+
"@deepseek-ai/dsh-tools": "^0.1.6-alpha.2",
|
|
26
|
+
"@deepseek-ai/dsh-user-approval": "^0.1.6-alpha.2",
|
|
27
|
+
"@deepseek-ai/dsh-user-questions": "^0.1.6-alpha.2",
|
|
28
|
+
"@deepseek-ai/dsh-util-values": "^0.1.6-alpha.2",
|
|
29
|
+
"esbuild": "^0.25.0"
|
|
29
30
|
},
|
|
30
31
|
"scripts": {
|
|
31
32
|
"build": "esbuild src/index.ts --bundle --outfile=dist/index.js --platform=node --format=esm --target=node18 --external:@deepseek-ai/* --external:node:* --external:vue-tsc",
|