@aipanel/dsh-plugin 1.2.13 → 1.2.14
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 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -586,10 +586,11 @@ function thinkingOf(type) {
|
|
|
586
586
|
}
|
|
587
587
|
function setupEventRelay(ctx, config) {
|
|
588
588
|
const vitePort = config.vitePort ?? 0;
|
|
589
|
+
const viteHost = config.viteHost ?? "127.0.0.1";
|
|
589
590
|
const token = config.eventsToken;
|
|
590
591
|
if (!token || vitePort <= 0) return;
|
|
591
592
|
const eventsPath = config.eventsPath ?? HOST_EVENTS_API_PATH;
|
|
592
|
-
const eventsUrl = `http
|
|
593
|
+
const eventsUrl = `http://${viteHost}:${vitePort}${eventsPath}`;
|
|
593
594
|
const states = /* @__PURE__ */ new Map();
|
|
594
595
|
const lastSent = /* @__PURE__ */ new Map();
|
|
595
596
|
const lastTitles = /* @__PURE__ */ new Map();
|
|
@@ -896,6 +897,7 @@ function apply(ctx, config = {}) {
|
|
|
896
897
|
const enableDiagnostics = config.enableDiagnostics ?? false;
|
|
897
898
|
const autoDiagnose = config.autoDiagnose ?? process.env[OPENCODE_ENV.ENABLE_LINT] === "1";
|
|
898
899
|
const vitePort = config.vitePort ?? 0;
|
|
900
|
+
const viteHost = config.viteHost ?? "127.0.0.1";
|
|
899
901
|
const contextApiPath = config.contextApiPath ?? CONTEXT_API_PATH;
|
|
900
902
|
const tools = ctx.tools;
|
|
901
903
|
if (enableDiagnostics) {
|
|
@@ -1011,7 +1013,7 @@ ${diagText}` }]
|
|
|
1011
1013
|
);
|
|
1012
1014
|
}
|
|
1013
1015
|
if (vitePort > 0) {
|
|
1014
|
-
const contextBase = `http
|
|
1016
|
+
const contextBase = `http://${viteHost}:${vitePort}${contextApiPath}`;
|
|
1015
1017
|
ctx.on(
|
|
1016
1018
|
"agent/pre-step",
|
|
1017
1019
|
async ({ signal }, next) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aipanel/dsh-plugin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AIPanel for DeepSeek Harness (dsh):注入审查工具 run_diagnostics、编辑后自动诊断。",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@deepseek-ai/dsh-user-questions": "^0.1.3-alpha.2",
|
|
26
26
|
"@deepseek-ai/dsh-util-values": "^0.1.3-alpha.2",
|
|
27
27
|
"esbuild": "^0.25.0",
|
|
28
|
-
"@aipanel/core": "1.2.
|
|
28
|
+
"@aipanel/core": "1.2.14"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "esbuild src/index.ts --bundle --outfile=dist/index.js --platform=node --format=esm --target=node18 --external:@deepseek-ai/* --external:node:* --external:vue-tsc",
|