Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Drop headerless dependency bumps from OK beta notes (PRD-9548) (#6752)

Andrew Mikofalvy463982f96fcc
diff --git a/scripts/compute-next-beta.mjs b/scripts/compute-next-beta.mjs
index cfe375020..c14036581 100644
--- a/scripts/compute-next-beta.mjs
+++ b/scripts/compute-next-beta.mjs
@@ -212,6 +212,7 @@ export function parseSection(section) {
currentEntry = { hash: m?.[1] ?? null, body: m?.[2] ?? line.slice(2) };
groups[currentGroup].push(currentEntry);
} else if (currentEntry) {
+ if (/^ {2}- @inkeep\/[\w-]+@\d\S*$/.test(line)) continue;
currentEntry.body += `\n${line.startsWith(' ') ? line.slice(2) : line}`;
} else {
commit();
diff --git a/scripts/compute-next-beta.test.mjs b/scripts/compute-next-beta.test.mjs
index a2b162d6d..fec4273ba 100644
--- a/scripts/compute-next-beta.test.mjs
+++ b/scripts/compute-next-beta.test.mjs
@@ -184,6 +184,33 @@ describe('renderNotes', () => {
expect(notes).toContain('real change');
});
+ test('drops headerless dependency bumps nested under a real change', () => {
+ const packageDeltas = {
+ app: `### Patch Changes
+
+- Agent conversations now open the Agents panel.
+ - @inkeep/[email protected]
+ - @inkeep/[email protected]
+`,
+ };
+ const notes = renderNotes({ ...baseInput, packageDeltas });
+ expect(notes).toContain('- Agent conversations now open the Agents panel.');
+ expect(notes).not.toContain('@inkeep/open-knowledge-core@');
+ expect(notes).not.toContain('@inkeep/open-knowledge-server@');
+ });
+
+ test('keeps a nested bullet that is not a package bump', () => {
+ const packageDeltas = {
+ app: `### Patch Changes
+
+- abc1234: real change
+ - mention of @inkeep/open-knowledge-core in prose
+`,
+ };
+ const notes = renderNotes({ ...baseInput, packageDeltas });
+ expect(notes).toContain('mention of @inkeep/open-knowledge-core in prose');
+ });
+
test('drops top-level fixed-group sibling-bump bullets', () => {
const packageDeltas = {
core: `### Patch Changes