feat: add the dsh-superagent research prototype

This commit is contained in:
DeepSeek Harness Team
2026-10-31 20:05:39 +08:00
commit 6337fc823c
216 changed files with 37068 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
/** The environment of the git processes the tests start. */
import { GIT_LOCATION } from '../../src/infra/environment.ts'
/**
* The process environment with `extra`, and without the variables that tell git which repository to act on (`GIT_LOCATION`):
* the tests run inside `git rebase --exec` inherit GIT_DIR, and a `git init` there would reinitialize the repository under test.
*/
export const gitEnv = (extra: Record<string, string> = {}): Record<string, string | undefined> =>
({ ...process.env, ...Object.fromEntries(GIT_LOCATION.map(name => [name, undefined])), ...extra })