Merge pull request #2634 from deepseek-harness/fix/ci-081800

fix: dep version issue from #1083
This commit is contained in:
imccyu 2026-08-18 01:26:39 +08:00 • committed by GitHub
commit 027bd013bc
2 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{
"name": "@deepseek-ai/dsh-code-runtime-python",
"description": "CPython subprocess implementation of the DeepSeek Harness code-execution seam",
"version": "0.1.0-rc.6",
"version": "0.1.0-rc.7",
"publishConfig": {
"access": "public"
},

View file

@ -1,5 +1,5 @@
import { chmod, mkdtemp, mkdir, rm, stat, symlink, utimes, writeFile } from 'node:fs/promises'
import { dirname, join, resolve } from 'node:path'
import { dirname, isAbsolute, join, relative, resolve } from 'node:path'
import { tmpdir } from 'node:os'
import { describe, expect, it, vi } from 'vitest'
import { Context } from '@deepseek-ai/cordis'
@ -80,7 +80,8 @@ class RecordingFileSystem extends FileSystem {
override fileUrl(target: FsTarget): string { return `file://${target.targetKey}` }
override contains(parent: FsTarget, child: FsTarget): boolean {
return child.targetKey === parent.targetKey || String(child.targetKey).startsWith(`${parent.targetKey}/`)
const descendant = relative(String(parent.targetKey), String(child.targetKey))
return descendant === '' || (!descendant.startsWith('..') && !isAbsolute(descendant))
}
override async stat(target: FsTarget, signal?: AbortSignal): Promise<FsInfo | undefined> {