@venizia/vulcan-okf 0.4.10-15 → 0.4.10-16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/check/changelogs.ts +14 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venizia/vulcan-okf",
|
|
3
|
-
"version": "0.4.10-
|
|
3
|
+
"version": "0.4.10-16",
|
|
4
4
|
"description": "VULCAN knowledge tooling: OKF v0.2 conformance check (plus --strict house rules), gen, and coverage for a project's .agents/knowledge bundle. Bun-only.",
|
|
5
5
|
"homepage": "https://github.com/VENIZIA-AI/vulcan/tree/main/packages/okf",
|
|
6
6
|
"bugs": {
|
package/src/check/changelogs.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { RecordValue } from '../common/record.ts';
|
|
|
5
5
|
import { OkfProject } from '../project/index.ts';
|
|
6
6
|
|
|
7
7
|
const DATED_ENTRY = /^\d{4}-\d{2}-\d{2}-.*\.md$/;
|
|
8
|
+
const VERSION_FOLDER = /^\d+\.\d+\.\d+$/;
|
|
8
9
|
const FRONTMATTER = /^---\r?\n([\s\S]*?)\r?\n---/;
|
|
9
10
|
/** `'<npm name>@<version>'` - the name may be scoped, so the version is after the LAST `@`. */
|
|
10
11
|
const RELEASE_OVERRIDE = /^(.+)@([^@]+)$/;
|
|
@@ -57,9 +58,19 @@ export class ChangelogCheck {
|
|
|
57
58
|
const problems: string[] = [];
|
|
58
59
|
let tags: string[] | undefined;
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
.
|
|
62
|
-
|
|
61
|
+
const entries = readdirSync(directory, { withFileTypes: true })
|
|
62
|
+
.flatMap((dirent) => {
|
|
63
|
+
if (dirent.isDirectory() && VERSION_FOLDER.test(dirent.name)) {
|
|
64
|
+
return existsSync(join(directory, dirent.name, 'log.md'))
|
|
65
|
+
? [`${dirent.name}/log.md`]
|
|
66
|
+
: [];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return DATED_ENTRY.test(dirent.name) ? [dirent.name] : [];
|
|
70
|
+
})
|
|
71
|
+
.sort();
|
|
72
|
+
|
|
73
|
+
for (const file of entries) {
|
|
63
74
|
const path = relative(project.root, join(directory, file));
|
|
64
75
|
let frontmatter: TRecord;
|
|
65
76
|
|