Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(provider): add DeepSeek Harness over ACP #12073

Closedac0rdj(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/12073/headopened View on GitHub

Showing 32 changed files with 150 additions and 0 deletions (loading 30).

x
0 of 32 viewed, 32 left
3 additions and 0 deletionsapps/server/integration/fixtures/dsh-acp-peer.cjsAdded
View file
@@ -0,0 +1,3 @@
+#!/usr/bin/env node
+/** Entry point for the ACP peer that Node can run on any platform. */
+import("./dsh-acp-peer.mjs");
147 additions and 0 deletionsapps/server/integration/fixtures/dsh-acp-peer.mjsAdded
View file
@@ -0,0 +1,147 @@
+#!/usr/bin/env node
+/**
+ * Minimal ACP v1 agent standing in for `dsh --profile acp` in tests.
+ *
+ * The timing that matters for the adapter's turn lifecycle — a prompt that never
+ * answers, a second prompt arriving mid-turn — cannot be driven through the real
+ * harness, so the test chooses how a prompt behaves with T3_DSH_PEER_MODE:
+ * answer (default) | hang | content-then-hang
+ * A cancelled prompt resolves with stopReason "cancelled".
+ */
+import * as readline from "node:readline";
+​
+const MODE = process.env.T3_DSH_PEER_MODE ?? "answer";
+const FLASH = JSON.stringify(["deepseek-official", "deepseek-v4-flash"]);
+const PRO = JSON.stringify(["deepseek-official", "deepseek-v4-pro"]);
+​
+const configOptions = (model = FLASH, effort = "high") => [
+ {
+ id: "model",
+ name: "Model",
+ category: "model",
+ type: "select",
+ currentValue: model,
+ options: [