@venizia/vulcan-okf 0.4.9-0 → 0.4.9-1
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/house.ts +1 -1
- package/src/coverage-report/axes.ts +1 -1
- package/src/lib.ts +2 -2
- package/src/viz/builder.ts +1 -1
- package/src/viz/client/frame.ts +1 -1
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-1",
|
|
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/house.ts
CHANGED
|
@@ -29,7 +29,7 @@ const sameContent = (opts: { left: string; right: string }): boolean => {
|
|
|
29
29
|
export class HouseCheck {
|
|
30
30
|
/**
|
|
31
31
|
* Repo docs rules, enforced on prose (see check step 3). To write a forbidden literal - as the
|
|
32
|
-
* concept defining these rules must - put it in a code span; `stripCode` removes those first.
|
|
32
|
+
* concept defining these rules must - put it in a code span; `MarkdownText.stripCode` removes those first.
|
|
33
33
|
*/
|
|
34
34
|
static styleRules(opts: { brand: string }): { pattern: RegExp; message: string }[] {
|
|
35
35
|
const spelling = SourceCollector.brandSpelling({ brand: opts.brand });
|
|
@@ -14,7 +14,7 @@ const resourceKeyOf = (opts: { value: string }): string =>
|
|
|
14
14
|
opts.value.replace(/^\.\//, '').replace(/\/+$/, '');
|
|
15
15
|
|
|
16
16
|
export class CoverageAxes {
|
|
17
|
-
/** The `resource` of every concept, as keys for `isItemCovered`; reserved files (index, log) cover nothing. */
|
|
17
|
+
/** The `resource` of every concept, as keys for `CoverageAxes.isItemCovered`; reserved files (index, log) cover nothing. */
|
|
18
18
|
static resourceKeysOf(opts: {
|
|
19
19
|
concepts: { resource: string; reserved: boolean }[];
|
|
20
20
|
}): Set<string> {
|
package/src/lib.ts
CHANGED
|
@@ -166,10 +166,10 @@ export class ConceptLoader {
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* `
|
|
169
|
+
* `ConceptLoader.load()`, printing `okf: <message>` to stderr and exiting 1 on a bad frontmatter instead
|
|
170
170
|
* of an unhandled exception. `check()` handles the same failure itself (it reports every problem
|
|
171
171
|
* together rather than stopping at the first); every other command that reads the whole bundle
|
|
172
|
-
* calls this instead of `
|
|
172
|
+
* calls this instead of `ConceptLoader.load()` directly.
|
|
173
173
|
*/
|
|
174
174
|
static loadOrExit(): Concept[] {
|
|
175
175
|
try {
|
package/src/viz/builder.ts
CHANGED
|
@@ -111,7 +111,7 @@ export class VizBuilder {
|
|
|
111
111
|
const reasons = result.logs.map((log) => String(log)).join('\n');
|
|
112
112
|
|
|
113
113
|
console.error(
|
|
114
|
-
`[
|
|
114
|
+
`[VizBuilder.bundleClient] failed to bundle ${relative(OkfProject.read().root, CLIENT_ENTRY)}\n${reasons}`,
|
|
115
115
|
);
|
|
116
116
|
process.exit(1);
|
|
117
117
|
}
|
package/src/viz/client/frame.ts
CHANGED
|
@@ -7,7 +7,7 @@ export class ParentFrame {
|
|
|
7
7
|
return parentDocument === document ? undefined : parentDocument;
|
|
8
8
|
} catch (error) {
|
|
9
9
|
console.debug(
|
|
10
|
-
'[
|
|
10
|
+
'[ParentFrame.readDocument] parent frame is cross-origin - using this page only',
|
|
11
11
|
error,
|
|
12
12
|
);
|
|
13
13
|
|