refactor: remove stale Source: sdk/src generated-file banners from bin/lib/*.cjs (#510)

* refactor: remove stale sdk/src generated-file banners from bin/lib/*.cjs (#506)

Drop the GENERATED FILE / Source: sdk/src / Regenerate: cd sdk banners from
13 hand-maintained CJS modules and delete the orphaned
generator-freshness-contract script + test. Post-ADR-0174 cleanup; the
referenced sdk/ generator pipeline (dir, gen:* scripts, *.generated.cjs) no
longer exists. No runtime behavior change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* docs: add changeset for #510 (sdk/src banner cleanup)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Tom Boucher
2026-05-30 17:06:23 -04:00
committed by GitHub
parent 6f2520786d
commit 0008244245
16 changed files with 9 additions and 121 deletions

View File

@@ -1,29 +0,0 @@
const { test, describe } = require('node:test');
const assert = require('node:assert/strict');
const {
GENERATOR_FRESHNESS_REASON,
evaluateGeneratorFreshness,
} = require('../scripts/generator-freshness-contract.cjs');
describe('generator freshness contract module', () => {
test('fresh when source and generated match exactly', () => {
const out = evaluateGeneratorFreshness({ source: 'abc', generated: 'abc' });
assert.deepStrictEqual(out, { ok: true, reason: GENERATOR_FRESHNESS_REASON.FRESH });
});
test('stale when source and generated differ', () => {
const out = evaluateGeneratorFreshness({ source: 'abc', generated: 'abd' });
assert.deepStrictEqual(out, { ok: false, reason: GENERATOR_FRESHNESS_REASON.STALE });
});
test('missing_source when source omitted', () => {
const out = evaluateGeneratorFreshness({ generated: 'abc' });
assert.deepStrictEqual(out, { ok: false, reason: GENERATOR_FRESHNESS_REASON.MISSING_SOURCE });
});
test('missing_generated when generated omitted', () => {
const out = evaluateGeneratorFreshness({ source: 'abc' });
assert.deepStrictEqual(out, { ok: false, reason: GENERATOR_FRESHNESS_REASON.MISSING_GENERATED });
});
});