@venizia/vulcan-okf 0.4.9-2 → 0.4.9-3
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 +3 -3
- package/src/config.ts +0 -1
- package/src/spec/common/constants.ts +1 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venizia/vulcan-okf",
|
|
3
|
-
"version": "0.4.9-
|
|
3
|
+
"version": "0.4.9-3",
|
|
4
4
|
"description": "VULCAN knowledge tooling: OKF v0.2 conformance check (plus --strict house rules), gen, coverage and the offline graph explorer 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
|
@@ -24,7 +24,7 @@ const tagPatternOf = (opts: { template: string; dir: string; version: string }):
|
|
|
24
24
|
|
|
25
25
|
return new RegExp(
|
|
26
26
|
`^${escaped
|
|
27
|
-
.replace(/<
|
|
27
|
+
.replace(/<dir>/g, opts.dir)
|
|
28
28
|
.replace(/<version>/g, opts.version.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'))
|
|
29
29
|
.replace(/<date>/g, '\\d{4}-\\d{2}-\\d{2}')}$`,
|
|
30
30
|
);
|
|
@@ -77,7 +77,7 @@ export class ChangelogCheck {
|
|
|
77
77
|
// missing list is undecided.
|
|
78
78
|
if (!Array.isArray(frontmatter.packages)) {
|
|
79
79
|
problems.push(
|
|
80
|
-
`changelog: ${path} declares no packages - add \`packages: [<npm name>, ...]\` (\`
|
|
80
|
+
`changelog: ${path} declares no packages - add \`packages: [<npm name>, ...]\` to its frontmatter (\`packages: []\` for an entry about no package)`,
|
|
81
81
|
);
|
|
82
82
|
continue;
|
|
83
83
|
}
|
|
@@ -114,7 +114,7 @@ export class ChangelogCheck {
|
|
|
114
114
|
|
|
115
115
|
if (!tags.some((tag) => patterns.some((pattern) => pattern.test(tag)))) {
|
|
116
116
|
const expected = project.tagPattern
|
|
117
|
-
.replace(/<
|
|
117
|
+
.replace(/<dir>/g, dir)
|
|
118
118
|
.replace(/<version>/g, override[2])
|
|
119
119
|
.replace(/<date>/g, 'YYYY-MM-DD');
|
|
120
120
|
|
package/src/config.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
/** OKF spec
|
|
1
|
+
/** The OKF spec version this tooling reads and writes; a bundle that declares another is read best-effort. */
|
|
2
2
|
export class OkfVersions {
|
|
3
|
-
static readonly V0_1 = '0.1';
|
|
4
3
|
static readonly V0_2 = '0.2';
|
|
5
4
|
static readonly LATEST = this.V0_2;
|
|
6
|
-
static readonly SCHEME_SET = new Set<string>([this.V0_1, this.V0_2]);
|
|
7
|
-
static isValid(value: string): boolean {
|
|
8
|
-
return this.SCHEME_SET.has(value);
|
|
9
|
-
}
|
|
10
5
|
}
|
|
11
6
|
|
|
12
7
|
/** §5.4 - an absent status means stable. */
|