|
|
@@ -89,17 +89,6 @@ const PYTHON_METADATA: Record<string, { license: string; repo: string; role: str
|
|
|
|
|
|
type PythonMetadata = typeof PYTHON_METADATA
|
|
|
|
|
|
-/** Tools fetched by scripts at build time, keyed by the pin the script owns. */
|
|
|
-const BUILD_TIME_TOOLS = [
|
|
|
- {
|
|
|
- name: '@yao-pkg/pkg',
|
|
|
- license: 'MIT',
|
|
|
- repo: 'https://github.com/yao-pkg/pkg',
|
|
|
- role: 'invoked by `scripts/build-exe-for-python-sdk.ts` to assemble the single-file SDK runtime executable',
|
|
|
- pinSource: 'scripts/build-exe-for-python-sdk.ts',
|
|
|
- },
|
|
|
-]
|
|
|
-
|
|
|
/** The `package.json` fields this generator reads. */
|
|
|
export interface Manifest {
|
|
|
name?: string
|
|
|
@@ -602,16 +591,6 @@ function collectPatched(): { spec: string; patch: string }[] {
|
|
|
return Object.entries(workspace.patchedDependencies ?? {}).map(([spec, patch]) => ({ spec, patch }))
|
|
|
}
|
|
|
|
|
|
-/** Verify each build-time tool pin still appears in its owning script. */
|
|
|
-function verifyBuildTimePins(): void {
|
|
|
- for (const tool of BUILD_TIME_TOOLS) {
|
|
|
- const text = readFileSync(resolve(root, tool.pinSource), 'utf8')
|
|
|
- if (!text.includes(tool.name)) {
|
|
|
- throw new Error(`gen-third-party-notices: ${tool.pinSource} no longer references ${tool.name}; update BUILD_TIME_TOOLS.`)
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
/** SPDX identifiers this project may ship without further review. */
|
|
|
const PERMISSIVE_LICENSES = new Set(['MIT', 'ISC', 'BSD-2-Clause', 'BSD-3-Clause', 'Apache-2.0', '0BSD', 'Unlicense', 'CC0-1.0', 'BlueOak-1.0.0', 'Python-2.0'])
|
|
|
|
|
|
@@ -692,7 +671,6 @@ ${rows.join('\n')}
|
|
|
* @returns the exact bytes `THIRD_PARTY_NOTICES.md` must hold.
|
|
|
*/
|
|
|
export function render(): string {
|
|
|
- verifyBuildTimePins()
|
|
|
// The linked-manifest cache is keyed by name only, so it must not outlive
|
|
|
// the manifests map it was resolved from; render() owns that single load.
|
|
|
workspaceLinkedManifestCache.clear()
|
|
|
@@ -765,12 +743,6 @@ Direct dependencies of the \`pyproject.toml\` manifests, plus \`uv\` as the deve
|
|
|
${python.map(dep => `| [\`${dep.name}\`](${dep.repo}) | ${dep.license} | ${dep.role} |`).join('\n')}
|
|
|
| [\`uv\`](https://github.com/astral-sh/uv) | MIT / Apache-2.0 | development workflow tool |
|
|
|
|
|
|
-## Fetched at build time
|
|
|
-
|
|
|
-| Package | License | Role |
|
|
|
-| --- | --- | --- |
|
|
|
-${BUILD_TIME_TOOLS.map(tool => `| [\`${tool.name}\`](${tool.repo}) | ${tool.license} | ${tool.role} |`).join('\n')}
|
|
|
-
|
|
|
## First-party native packages
|
|
|
|
|
|
\`@deepseek-ai/node-addon-landlock-run\` (and its platform packages) is built and released from this repository under BSD 3-Clause. It is listed here for completeness; it is first-party, not third-party.
|