|
|
@@ -18,7 +18,7 @@ const workspaceGlobs = [
|
|
|
{ dir: 'vendor', depth: 1 },
|
|
|
{ dir: 'packages', depth: 2 },
|
|
|
{ dir: 'native', depth: 1 },
|
|
|
- { dir: 'native/landlock-run/packages', depth: 1 },
|
|
|
+ { dir: 'native/system/packages', depth: 1 },
|
|
|
{ dir: 'apps', depth: 1 },
|
|
|
] as const
|
|
|
const vendoredPackages = new Set([
|
|
|
@@ -32,14 +32,14 @@ const vendoredPackages = new Set([
|
|
|
'@deepseek-ai/cordis-plugin-hmr',
|
|
|
'@deepseek-ai/cordis-plugin-logger-console',
|
|
|
])
|
|
|
-const publicLandlockPackages = new Set([
|
|
|
- '@deepseek-ai/node-addon-landlock-run',
|
|
|
- '@deepseek-ai/node-addon-landlock-run-linux-arm64',
|
|
|
- '@deepseek-ai/node-addon-landlock-run-linux-x64',
|
|
|
+const publicNativePackages = new Set([
|
|
|
+ '@deepseek-ai/node-addon-system',
|
|
|
+ '@deepseek-ai/node-addon-system-linux-arm64',
|
|
|
+ '@deepseek-ai/node-addon-system-linux-x64',
|
|
|
])
|
|
|
/** Deliberate source payloads whose exact bytes are part of the package's audit surface. */
|
|
|
const publicationSourceAllowlist: Readonly<Record<string, readonly string[]>> = {
|
|
|
- '@deepseek-ai/node-addon-landlock-run': ['src/main.c'],
|
|
|
+ '@deepseek-ai/node-addon-system': ['src/main.c'],
|
|
|
}
|
|
|
const repositoryUrl = 'git+https://github.com/deepseek-harness/deepseek-harness.git'
|
|
|
/**
|
|
|
@@ -114,8 +114,8 @@ function readJson(path: string): PackageManifest {
|
|
|
|
|
|
const rootManifest = readJson(join(root, 'package.json'))
|
|
|
const repositoryVersion = rootManifest.version
|
|
|
-const landlockWorkspaceManifest = readJson(join(root, 'native/landlock-run/package.json'))
|
|
|
-const landlockVersion = landlockWorkspaceManifest.version
|
|
|
+const nativeWorkspaceManifest = readJson(join(root, 'native/system/package.json'))
|
|
|
+const nativeVersion = nativeWorkspaceManifest.version
|
|
|
|
|
|
/** Repo-relative dirs holding a package.json, walked to the configured depth. */
|
|
|
function packageDirs(base: string, depth: number): string[] {
|
|
|
@@ -310,12 +310,12 @@ export function checkWorkspaceManifest({ dir, manifest }: WorkspaceManifest): st
|
|
|
const label = manifest.name ?? dir
|
|
|
const familyVersionError = checkDshFamilyVersion(manifest, repositoryVersion)
|
|
|
if (familyVersionError !== undefined) errors.push(familyVersionError)
|
|
|
- const isLandlockPackageDir = dir.startsWith('native/landlock-run/packages/')
|
|
|
- const isPublicLandlockPackage = isLandlockPackageDir
|
|
|
+ const isNativePackageDir = dir.startsWith('native/system/packages/')
|
|
|
+ const isPublicNativePackage = isNativePackageDir
|
|
|
&& manifest.name !== undefined
|
|
|
- && publicLandlockPackages.has(manifest.name)
|
|
|
+ && publicNativePackages.has(manifest.name)
|
|
|
|
|
|
- if (isPublicLandlockPackage) {
|
|
|
+ if (isPublicNativePackage) {
|
|
|
if (manifest.private === true) {
|
|
|
errors.push(`${label}: published Landlock package must not set "private": true`)
|
|
|
}
|
|
|
@@ -375,12 +375,12 @@ export function checkWorkspaceManifest({ dir, manifest }: WorkspaceManifest): st
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (isLandlockPackageDir) {
|
|
|
- if (!isPublicLandlockPackage) {
|
|
|
+ if (isNativePackageDir) {
|
|
|
+ if (!isPublicNativePackage) {
|
|
|
errors.push(`${label}: unexpected package in the public Landlock package family`)
|
|
|
}
|
|
|
- if (manifest.version !== landlockVersion) {
|
|
|
- errors.push(`${label}: package.json version must match Landlock workspace version ${landlockVersion ?? '(missing)'}`)
|
|
|
+ if (manifest.version !== nativeVersion) {
|
|
|
+ errors.push(`${label}: package.json version must match native workspace version ${nativeVersion ?? '(missing)'}`)
|
|
|
}
|
|
|
}
|
|
|
|