mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
feat(team): add experimental Agent Teams CLI profile
This commit is contained in:
@@ -4,6 +4,7 @@ import { describe, expect, it } from 'vitest'
|
||||
import {
|
||||
checkExperimentalDependencyIsolation,
|
||||
checkExperimentalManifest,
|
||||
expectedDshPackageFiles,
|
||||
type WorkspaceManifest,
|
||||
} from './check-workspace-constraints.ts'
|
||||
|
||||
@@ -74,3 +75,17 @@ describe('experimental workspace constraints', () => {
|
||||
])
|
||||
})
|
||||
})
|
||||
|
||||
describe('package payload constraints', () => {
|
||||
it('includes a declared profile patch without a package-name allowlist', () => {
|
||||
expect(expectedDshPackageFiles({
|
||||
name: '@deepseek-ai/dsh-private-profile',
|
||||
dsh: { bundle: { patch: './cordis.patch.yml' } },
|
||||
})).toEqual([
|
||||
'lib/index.js',
|
||||
'lib/invariant.js',
|
||||
'cordis.patch.yml',
|
||||
'lib/types/**/*.d.ts',
|
||||
])
|
||||
})
|
||||
})
|
||||
|
||||
@@ -174,7 +174,7 @@ function sameStringList(actual: readonly string[] | undefined, expected: readonl
|
||||
return !!actual && actual.length === expected.length && actual.every((value, index) => value === expected[index])
|
||||
}
|
||||
|
||||
function expectedDshPackageFiles(manifest: PackageManifest): readonly string[] {
|
||||
export function expectedDshPackageFiles(manifest: PackageManifest): readonly string[] {
|
||||
const declaredPatch = manifest.dsh?.bundle?.patch
|
||||
const bundleFiles = declaredPatch === undefined ? [] : [declaredPatch.replace(/^\.\//, '')]
|
||||
const extras = [
|
||||
|
||||
Reference in New Issue
Block a user