replicas-engine 0.1.657 → 0.1.658
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.
|
@@ -4443,11 +4443,14 @@ function parseDeepseekEvents(events) {
|
|
|
4443
4443
|
continue;
|
|
4444
4444
|
}
|
|
4445
4445
|
if (event.type === "tool/result") {
|
|
4446
|
-
const
|
|
4447
|
-
const
|
|
4446
|
+
const message = isRecord(data.message) ? data.message : {};
|
|
4447
|
+
const messageSource = isRecord(message.source) ? message.source : {};
|
|
4448
|
+
const result = Array.isArray(message.content) && isRecord(message.content[0]) ? message.content[0] : {};
|
|
4449
|
+
const callId = typeof messageSource.callId === "string" ? messageSource.callId : typeof data.callId === "string" ? data.callId : String(seq);
|
|
4450
|
+
const existing = messages.find((message2) => message2.id === `deepseek-tool-${callId}` && message2.type === "tool_call");
|
|
4448
4451
|
if (existing?.type === "tool_call") {
|
|
4449
|
-
existing.output = stringifyDisplayValue(
|
|
4450
|
-
existing.status = data.isError === true ? "failed" : "completed";
|
|
4452
|
+
existing.output = stringifyDisplayValue(result.content ?? data.result);
|
|
4453
|
+
existing.status = result.isError === true || data.isError === true ? "failed" : "completed";
|
|
4451
4454
|
}
|
|
4452
4455
|
continue;
|
|
4453
4456
|
}
|
|
@@ -6226,7 +6229,7 @@ var DEFAULT_CODEX_ARGS = [
|
|
|
6226
6229
|
var MIN_CODEX_CLI_VERSION = "0.144.6";
|
|
6227
6230
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
6228
6231
|
var codexCliVersionEnsured = null;
|
|
6229
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
6232
|
+
var ENGINE_PACKAGE_VERSION = "0.1.658";
|
|
6230
6233
|
var INITIALIZE_METHOD = "initialize";
|
|
6231
6234
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
6232
6235
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
package/dist/src/index.js
CHANGED
|
@@ -183,7 +183,7 @@ import {
|
|
|
183
183
|
serializeCanvasContentResponse,
|
|
184
184
|
shellQuotePosix,
|
|
185
185
|
stripAgentDiagnosticErrors
|
|
186
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-OY2CUZJZ.js";
|
|
187
187
|
|
|
188
188
|
// src/index.ts
|
|
189
189
|
import { serve } from "@hono/node-server";
|
|
@@ -8331,7 +8331,7 @@ var DeepseekManager = class extends CodingAgentManager {
|
|
|
8331
8331
|
DEEPSEEK_API_KEY: apiKey,
|
|
8332
8332
|
DEEPSEEK_BASE_URL: "https://openrouter.ai/api/v1",
|
|
8333
8333
|
DSH_HOME: join21(ENGINE_ENV.HOME_DIR, ".replicas", "deepseek"),
|
|
8334
|
-
DSH_PERMISSION_MODE: "
|
|
8334
|
+
DSH_PERMISSION_MODE: "danger-full-access",
|
|
8335
8335
|
DSH_TELEMETRY_DISABLED: "true"
|
|
8336
8336
|
},
|
|
8337
8337
|
stdio: ["ignore", "pipe", "pipe"]
|
|
@@ -8464,6 +8464,7 @@ var DeepseekManager = class extends CodingAgentManager {
|
|
|
8464
8464
|
this.sessionId = unwrap(await client.sessions.create({ cwd: this.workingDirectory })).sessionId;
|
|
8465
8465
|
await this.onSaveSessionId(this.sessionId);
|
|
8466
8466
|
}
|
|
8467
|
+
await client.executeCommand(this.sessionId, "/permission danger-full-access");
|
|
8467
8468
|
const model = request.model ?? DEFAULT_DEEPSEEK_MODEL;
|
|
8468
8469
|
this.selectedModel = model;
|
|
8469
8470
|
const current = unwrap(await client.sessions.models({ sessionId: this.sessionId })).current;
|