From 9357ac00926fd20069d5cd6fd8c3a4346743288f Mon Sep 17 00:00:00 2001 From: Rick Gao Date: Fri, 22 May 2026 16:45:53 -0700 Subject: [PATCH] chore: add SPDX headers to build/release scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bring the 5 author-written scripts under scripts/ in line with the SPDX header convention used everywhere else in src/, tests/, hooks/. Each file gains the 3-line block specified by .reuse/templates/default_template.jinja2: SPDX-FileCopyrightText: 2026 CoreWeave, Inc. SPDX-License-Identifier: MIT SPDX-PackageName: weave-claude-plugin Generated via the canonical command from CONTRIBUTING.md: reuse annotate --license MIT --copyright 'CoreWeave, Inc.' \ --year 2026 --template default_template --skip-existing $FILE Note: this is hygiene, not a compliance fix. `reuse lint` was already clean before this change because REUSE.toml declares a bulk annotation covering all files via `path = "**"`. The 5 scripts were simply outliers relative to the rest of the repo's physical-header convention. Intentionally skipped: - src/version.mjs — auto-generated by the release-bump workflow; a physical header would either be clobbered or break the automation. Co-Authored-By: Claude Opus 4.7 (1M context) --- scripts/build/copy-version-module.mjs | 4 ++++ scripts/install-git-hooks.mjs | 4 ++++ scripts/release/bump-version.mjs | 4 ++++ scripts/release/update-marketplace-sha.mjs | 4 ++++ scripts/release/version-module-utils.mjs | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/scripts/build/copy-version-module.mjs b/scripts/build/copy-version-module.mjs index 709b57b..f5c6616 100644 --- a/scripts/build/copy-version-module.mjs +++ b/scripts/build/copy-version-module.mjs @@ -1,5 +1,9 @@ #!/usr/bin/env node +// SPDX-FileCopyrightText: 2026 CoreWeave, Inc. +// SPDX-License-Identifier: MIT +// SPDX-PackageName: weave-claude-plugin + /** * Keep the runtime version module available after TypeScript compilation. * diff --git a/scripts/install-git-hooks.mjs b/scripts/install-git-hooks.mjs index c6504e0..1c94860 100644 --- a/scripts/install-git-hooks.mjs +++ b/scripts/install-git-hooks.mjs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2026 CoreWeave, Inc. +// SPDX-License-Identifier: MIT +// SPDX-PackageName: weave-claude-plugin + import { spawnSync } from 'node:child_process'; const result = spawnSync('git', ['config', 'core.hooksPath', '.githooks'], { diff --git a/scripts/release/bump-version.mjs b/scripts/release/bump-version.mjs index 71c5b91..1b56f2e 100644 --- a/scripts/release/bump-version.mjs +++ b/scripts/release/bump-version.mjs @@ -1,5 +1,9 @@ #!/usr/bin/env node +// SPDX-FileCopyrightText: 2026 CoreWeave, Inc. +// SPDX-License-Identifier: MIT +// SPDX-PackageName: weave-claude-plugin + import fs from 'node:fs'; import { fileURLToPath } from 'node:url'; import path from 'node:path'; diff --git a/scripts/release/update-marketplace-sha.mjs b/scripts/release/update-marketplace-sha.mjs index 81cf5fd..cd15c8e 100644 --- a/scripts/release/update-marketplace-sha.mjs +++ b/scripts/release/update-marketplace-sha.mjs @@ -1,5 +1,9 @@ #!/usr/bin/env node +// SPDX-FileCopyrightText: 2026 CoreWeave, Inc. +// SPDX-License-Identifier: MIT +// SPDX-PackageName: weave-claude-plugin + import fs from 'node:fs'; import { fileURLToPath } from 'node:url'; import path from 'node:path'; diff --git a/scripts/release/version-module-utils.mjs b/scripts/release/version-module-utils.mjs index 8ef43f1..ebb0b75 100644 --- a/scripts/release/version-module-utils.mjs +++ b/scripts/release/version-module-utils.mjs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2026 CoreWeave, Inc. +// SPDX-License-Identifier: MIT +// SPDX-PackageName: weave-claude-plugin + import fs from 'node:fs'; import { fileURLToPath } from 'node:url'; import path from 'node:path';