fix(working-directory): move within into dsh-util-workspace-path

forge's Host code imported within from dsh-working-directory, a runtime
value edge the dependency policy refuses for a client-host package. The
helper is a stateless lexical containment test, so it now lives in the
browser-safe workspace-path utility, which joins duplicateSafePackages;
the directory service, the subagent manager, and forge import it from
there and carry the utility as an ordinary dependency.

Review: https://github.com/deepseek-harness/deepseek-harness/pull/7817#discussion_r4454836492
This commit is contained in:
LegGasai committed 2026-11-04 11:33:17 +08:00
1 parent 20383ff779
commit 58ee5a6edf
27 files changed
+107 -58

No files matched your search

+1
View File
@@ -42,6 +42,7 @@ const DUPLICATE_SAFE_PACKAGES: readonly string[] = [
'@deepseek-ai/dsh-util-code-language',
'@deepseek-ai/dsh-util-crypto',
'@deepseek-ai/dsh-util-values',
'@deepseek-ai/dsh-util-workspace-path',
]
/**
@@ -236,6 +236,7 @@ describe('package dependency scope', () => {
'@deepseek-ai/dsh-util-code-language',
'@deepseek-ai/dsh-util-crypto',
'@deepseek-ai/dsh-util-values',
'@deepseek-ai/dsh-util-workspace-path',
])
expect(PACKAGE_DEPENDENCY_POLICY.safeHostDependencyExports['@deepseek-ai/dsh-deque']).toEqual(['Deque'])
expect(PACKAGE_DEPENDENCY_POLICY.safeHostDependencyExports['@deepseek-ai/schemastery']).toEqual(['default'])