Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Build the fake CLI paths with fileURLToPath so the tests run on Windows

Fei24119397b45b9daf
diff --git a/ds-bot/test/local-agents-loop.test.js b/ds-bot/test/local-agents-loop.test.js
index ee892252..eed15f68 100644
--- a/ds-bot/test/local-agents-loop.test.js
+++ b/ds-bot/test/local-agents-loop.test.js
@@ -5,6 +5,7 @@ import { test } from 'node:test'
import { mkdtempSync } from 'node:fs'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
+import { fileURLToPath } from 'node:url'
import { Context } from '@deepseek-ai/cordis'
import { createUserMessage } from '@deepseek-ai/dsh-llm'
import { SessionId } from '@deepseek-ai/dsh-session'
@@ -13,7 +14,7 @@ import { LocalAgentAdapter } from '../src/host/local-agents/adapter.js'
import { AcpEngine } from '../src/host/local-agents/acp.js'
import { output } from '../src/host/tools.js'
-const FIXTURE = new URL('./fixtures/fake-acp.mjs', import.meta.url).pathname
+const FIXTURE = fileURLToPath(new URL('./fixtures/fake-acp.mjs', import.meta.url))
const TEAM = ['message_bot', 'approve_agent_action']
function makeAdapter(records = {}) {
diff --git a/ds-bot/test/local-agents.test.js b/ds-bot/test/local-agents.test.js
index 7376382a..d6bbfe1d 100644
--- a/ds-bot/test/local-agents.test.js
+++ b/ds-bot/test/local-agents.test.js
@@ -2,6 +2,7 @@ import assert from 'node:assert/strict'
import { mkdtempSync } from 'node:fs'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
+import { fileURLToPath } from 'node:url'
import { test } from 'node:test'
import { LocalAgentAdapter } from '../src/host/local-agents/adapter.js'
import { AcpEngine } from '../src/host/local-agents/acp.js'
@@ -14,7 +15,7 @@ import { validateCustom, isLocalAgentRoute, cliMode } from '../src/host/local-ag
import { install as partsInstall } from '../src/host/parts.js'
import { fakeContext } from './fake-ctx.js'
-const FIXTURE = name => new URL(`./fixtures/${name}`, import.meta.url).pathname
+const FIXTURE = name => fileURLToPath(new URL(`./fixtures/${name}`, import.meta.url))
const FIXTURES = { acp: FIXTURE('fake-acp.mjs'), codex: FIXTURE('fake-codex.mjs'), claude: FIXTURE('fake-claude.mjs') }
const user = (id, text) => ({ id, role: 'user', content: [{ type: 'text', text }], source: { kind: 'user' } })