@aipanel/dsh-plugin 1.3.3 → 1.3.4

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -1124,7 +1124,8 @@ function setupEventRelay(ctx, config) {
1124
1124
  }
1125
1125
 
1126
1126
  // dsh-plugin/src/index.ts
1127
- var name = "aipanel";
1127
+ var SOURCE_KIND = "aipanel";
1128
+ var name = SOURCE_KIND;
1128
1129
  var inject = ["tools"];
1129
1130
  var log4 = createNodeLogger("DshPlugin");
1130
1131
  function buildNodeContext(e) {
@@ -1140,11 +1141,12 @@ function buildNodeContext(e) {
1140
1141
  return lines.join("\n");
1141
1142
  }
1142
1143
  function buildPluginMessage(text, notice) {
1144
+ const source = notice ? { kind: SOURCE_KIND, form: "notice", summary: notice.summary } : { kind: SOURCE_KIND };
1143
1145
  return {
1144
1146
  role: "user",
1145
1147
  id: randomUUID(),
1146
1148
  content: [{ type: "text", text }],
1147
- source: { kind: "plugin", plugin: name, ...notice }
1149
+ source
1148
1150
  };
1149
1151
  }
1150
1152
  var DIAGNOSTICS_MESSAGE_MAX_CHARS = 4e3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aipanel/dsh-plugin",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "type": "module",
5
5
  "description": "AIPanel for DeepSeek Harness (dsh):注入审查工具 run_diagnostics、编辑后自动诊断。",
6
6
  "main": "./dist/index.js",
@@ -16,17 +16,17 @@
16
16
  "vue-tsc": "^3.3.9"
17
17
  },
18
18
  "devDependencies": {
19
- "@aipanel/core": "1.3.3",
20
- "@deepseek-ai/cordis": "^4.0.2",
21
- "@deepseek-ai/dsh-agent": "^0.1.6-alpha.2",
22
- "@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
23
- "@deepseek-ai/dsh-session": "^0.1.6-alpha.2",
24
- "@deepseek-ai/dsh-session-title": "^0.1.6-alpha.2",
25
- "@deepseek-ai/dsh-settings": "^0.1.6-alpha.2",
26
- "@deepseek-ai/dsh-tools": "^0.1.6-alpha.2",
27
- "@deepseek-ai/dsh-user-approval": "^0.1.6-alpha.2",
28
- "@deepseek-ai/dsh-user-questions": "^0.1.6-alpha.2",
29
- "@deepseek-ai/dsh-util-values": "^0.1.6-alpha.2",
19
+ "@aipanel/core": "1.3.4",
20
+ "@deepseek-ai/cordis": "~4.0.4",
21
+ "@deepseek-ai/dsh-agent": "^0.1.7-alpha.2",
22
+ "@deepseek-ai/dsh-llm": "^0.1.7-alpha.2",
23
+ "@deepseek-ai/dsh-session": "^0.1.7-alpha.2",
24
+ "@deepseek-ai/dsh-session-title": "^0.1.7-alpha.2",
25
+ "@deepseek-ai/dsh-settings": "^0.1.7-alpha.2",
26
+ "@deepseek-ai/dsh-tools": "^0.1.7-alpha.2",
27
+ "@deepseek-ai/dsh-user-approval": "^0.1.7-alpha.2",
28
+ "@deepseek-ai/dsh-user-questions": "^0.1.7-alpha.2",
29
+ "@deepseek-ai/dsh-util-values": "^0.1.7-alpha.2",
30
30
  "esbuild": "^0.25.0"
31
31
  },
32
32
  "scripts": {