@okfit/core 0.4.1 → 0.6.0

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/Diagnostic.js CHANGED
@@ -37,7 +37,9 @@ const LintCode = Schema.Literals([
37
37
  "config-unknown-key",
38
38
  "stale",
39
39
  "walk-unreadable",
40
- "generated-at-drift"
40
+ "generated-at-drift",
41
+ "status-missing",
42
+ "source-resource-missing"
41
43
  ]);
42
44
  /** @public */
43
45
  const DiagnosticCode = Schema.Union([ConformanceCode, LintCode]);
package/OkfitConfig.js CHANGED
@@ -209,6 +209,16 @@ const LintTable = Schema.Struct({
209
209
  title: "generated-at-drift",
210
210
  description: "A committed concept's generated.at is missing or does not match its last body-changing commit, and is not otherwise authoritative (issue #19: a stamp recorded during the unchanged-body run survives a squash/rebase merge). Default \"warn\".",
211
211
  default: "warn"
212
+ })),
213
+ status_missing: Schema.optionalKey(LintLevel.annotate({
214
+ title: "status-missing",
215
+ description: "A concept carries neither status nor verified, so it silently reads as stable (issue #110). Off by default because the spec reads an absent status as stable; the software-project profile raises it to \"warn\".",
216
+ default: "off"
217
+ })),
218
+ source_resource_missing: Schema.optionalKey(LintLevel.annotate({
219
+ title: "source-resource-missing",
220
+ description: "A resource or sources[].resource path resolves neither in the bundle nor on disk relative to the concept (issue #106). Default \"warn\".",
221
+ default: "warn"
212
222
  }))
213
223
  }).annotate({
214
224
  title: "Lint severities",
@@ -380,7 +390,9 @@ const LINT_KEY = {
380
390
  "config-unknown-key": "config_unknown_key",
381
391
  stale: "stale",
382
392
  "walk-unreadable": "walk_unreadable",
383
- "generated-at-drift": "generated_at_drift"
393
+ "generated-at-drift": "generated_at_drift",
394
+ "status-missing": "status_missing",
395
+ "source-resource-missing": "source_resource_missing"
384
396
  };
385
397
  const DEFAULT_LINT = {
386
398
  broken_links: "warn",
@@ -399,7 +411,9 @@ const DEFAULT_LINT = {
399
411
  config_unknown_key: "warn",
400
412
  stale: "info",
401
413
  walk_unreadable: "warn",
402
- generated_at_drift: "warn"
414
+ generated_at_drift: "warn",
415
+ status_missing: "off",
416
+ source_resource_missing: "warn"
403
417
  };
404
418
  const toSeverity = (level) => level === "warn" ? "warning" : level;
405
419
  const severityFor = (config, code) => {
package/README.md CHANGED
@@ -23,7 +23,7 @@ const program = Effect.gen(function* () {
23
23
  });
24
24
  ```
25
25
 
26
- `Bundle.load` needs `FileSystem` and `Path`; `OkfitConfig.read` needs `FileSystem`. Loading never fails on content: bad files become `Diagnostic`s. `Graph.fromBundle` treats a path-valued field or link whose target, resolved from its concept's directory, lands outside the bundle root as an external reference: no graph node and no `broken-links` diagnostic, exactly like a URL. `OkfitConfig` decodes the spec 4.2 TOML shape; unknown top-level keys are kept in `extensions` and reported by `Validate.lint` as `config-unknown-key`. `lifecycle.default_stale_after` accepts `90d`, `12h`, `2w`, or `"90 days"`. `OkfitConfig.merge` deep-merges tables; arrays and scalars in `override` replace wholesale. Apply `DEFAULTS < profile < file` yourself. `OkfitConfigFile` is the service tag; the CLI provides its layer. `okfitConfigDocumentFields` is `okfitConfigFields` minus `extensions` (wire bookkeeping no human writes), with an open rest so unknown top-level keys stay permitted while every declared table stays closed; it is the single source `lib/scripts/generate-schema.ts` builds the published JSON Schema (`schemas/config/okfit-1.0.0.json`) from, and carries no annotations of its own beyond what each field already declares in `OkfitConfig.ts`. The `[lint]` table's seventeen keys include `generated_at_drift` (default `"warn"`), which fires when a committed concept's `generated.at` no longer matches the instant its body was last changed AND is not otherwise authoritative (issue #19: a stamp recorded during the unchanged-body run survives a squash/rebase merge) — computed by `okfit sync`/`okfit validate`, never by core itself.
26
+ `Bundle.load` needs `FileSystem` and `Path`; `OkfitConfig.read` needs `FileSystem`. Loading never fails on content: bad files become `Diagnostic`s. `Graph.fromBundle` treats a path-valued field or link whose target, resolved from its concept's directory, lands outside the bundle root as an external reference: no graph node and no `broken-links` diagnostic, exactly like a URL. `OkfitConfig` decodes the spec 4.2 TOML shape; unknown top-level keys are kept in `extensions` and reported by `Validate.lint` as `config-unknown-key`. `lifecycle.default_stale_after` accepts `90d`, `12h`, `2w`, or `"90 days"`. `OkfitConfig.merge` deep-merges tables; arrays and scalars in `override` replace wholesale. Apply `DEFAULTS < profile < file` yourself. `OkfitConfigFile` is the service tag; the CLI provides its layer. `okfitConfigDocumentFields` is `okfitConfigFields` minus `extensions` (wire bookkeeping no human writes), with an open rest so unknown top-level keys stay permitted while every declared table stays closed; it is the single source `@okfit/engine`'s `lib/configs/schemastore.config.ts` builds the published JSON Schema (`schemas/1.0/config.json`) from via `@effected/schemastore-cli`, and carries no annotations of its own beyond what each field already declares in `OkfitConfig.ts`. The document's `HostedSchema` identity (`okfitConfigSchemaHost`, the same `$id` `okfit init` stamps into a fresh config's `#:schema` directive) lives in `@okfit/engine`, not here — core stays free of a runtime `@effected/schemastore` dependency. The `[lint]` table's seventeen keys include `generated_at_drift` (default `"warn"`), which fires when a committed concept's `generated.at` no longer matches the instant its body was last changed AND is not otherwise authoritative (issue #19: a stamp recorded during the unchanged-body run survives a squash/rebase merge) — computed by `okfit sync`/`okfit validate`, never by core itself.
27
27
 
28
28
  ## License
29
29
 
package/index.d.ts CHANGED
@@ -206,11 +206,11 @@ export declare const ConformanceCode: Schema.Literals<readonly ["frontmatter-mis
206
206
  /** @public */
207
207
  export type ConformanceCode = typeof ConformanceCode.Type;
208
208
  /** Severity from `OkfitConfig` (D-34). @public */
209
- export declare const LintCode: Schema.Literals<readonly ["broken-links", "missing-index", "unknown-type", "required-key-missing", "field-value-unknown", "require-verified-unmet", "family-invalid", "computation-runtime-missing", "footnote-source-unknown", "footnote-undefined", "log-frontmatter", "actor-prefix-unknown", "legacy-timestamp", "config-unknown-key", "stale", "walk-unreadable", "generated-at-drift"]>;
209
+ export declare const LintCode: Schema.Literals<readonly ["broken-links", "missing-index", "unknown-type", "required-key-missing", "field-value-unknown", "require-verified-unmet", "family-invalid", "computation-runtime-missing", "footnote-source-unknown", "footnote-undefined", "log-frontmatter", "actor-prefix-unknown", "legacy-timestamp", "config-unknown-key", "stale", "walk-unreadable", "generated-at-drift", "status-missing", "source-resource-missing"]>;
210
210
  /** @public */
211
211
  export type LintCode = typeof LintCode.Type;
212
212
  /** @public */
213
- export declare const DiagnosticCode: Schema.Union<readonly [Schema.Literals<readonly ["frontmatter-missing", "frontmatter-unclosed", "frontmatter-unparseable", "type-missing", "index-frontmatter", "index-malformed", "log-heading-invalid", "log-malformed"]>, Schema.Literals<readonly ["broken-links", "missing-index", "unknown-type", "required-key-missing", "field-value-unknown", "require-verified-unmet", "family-invalid", "computation-runtime-missing", "footnote-source-unknown", "footnote-undefined", "log-frontmatter", "actor-prefix-unknown", "legacy-timestamp", "config-unknown-key", "stale", "walk-unreadable", "generated-at-drift"]>]>;
213
+ export declare const DiagnosticCode: Schema.Union<readonly [Schema.Literals<readonly ["frontmatter-missing", "frontmatter-unclosed", "frontmatter-unparseable", "type-missing", "index-frontmatter", "index-malformed", "log-heading-invalid", "log-malformed"]>, Schema.Literals<readonly ["broken-links", "missing-index", "unknown-type", "required-key-missing", "field-value-unknown", "require-verified-unmet", "family-invalid", "computation-runtime-missing", "footnote-source-unknown", "footnote-undefined", "log-frontmatter", "actor-prefix-unknown", "legacy-timestamp", "config-unknown-key", "stale", "walk-unreadable", "generated-at-drift", "status-missing", "source-resource-missing"]>]>;
214
214
  /** @public */
215
215
  export type DiagnosticCode = typeof DiagnosticCode.Type;
216
216
  declare const DiagnosticRange_base: Schema.Class<DiagnosticRange, Schema.Struct<{
@@ -230,7 +230,7 @@ export declare class DiagnosticRange extends DiagnosticRange_base {
230
230
  declare const Diagnostic_base: Schema.Class<Diagnostic, Schema.Struct<{
231
231
  readonly file: Schema.String;
232
232
  readonly range: Schema.optionalKey<typeof DiagnosticRange>;
233
- readonly code: Schema.Union<readonly [Schema.Literals<readonly ["frontmatter-missing", "frontmatter-unclosed", "frontmatter-unparseable", "type-missing", "index-frontmatter", "index-malformed", "log-heading-invalid", "log-malformed"]>, Schema.Literals<readonly ["broken-links", "missing-index", "unknown-type", "required-key-missing", "field-value-unknown", "require-verified-unmet", "family-invalid", "computation-runtime-missing", "footnote-source-unknown", "footnote-undefined", "log-frontmatter", "actor-prefix-unknown", "legacy-timestamp", "config-unknown-key", "stale", "walk-unreadable", "generated-at-drift"]>]>;
233
+ readonly code: Schema.Union<readonly [Schema.Literals<readonly ["frontmatter-missing", "frontmatter-unclosed", "frontmatter-unparseable", "type-missing", "index-frontmatter", "index-malformed", "log-heading-invalid", "log-malformed"]>, Schema.Literals<readonly ["broken-links", "missing-index", "unknown-type", "required-key-missing", "field-value-unknown", "require-verified-unmet", "family-invalid", "computation-runtime-missing", "footnote-source-unknown", "footnote-undefined", "log-frontmatter", "actor-prefix-unknown", "legacy-timestamp", "config-unknown-key", "stale", "walk-unreadable", "generated-at-drift", "status-missing", "source-resource-missing"]>]>;
234
234
  readonly severity: Schema.Literals<readonly ["error", "warning", "info"]>;
235
235
  readonly message: Schema.String;
236
236
  }>, {}>;
@@ -647,6 +647,8 @@ export declare const LintTable: Schema.Struct<{
647
647
  readonly stale: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
648
648
  readonly walk_unreadable: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
649
649
  readonly generated_at_drift: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
650
+ readonly status_missing: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
651
+ readonly source_resource_missing: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
650
652
  }>;
651
653
  /**
652
654
  * The `OkfitConfig` struct schema. Exported only so the `OkfitConfigFields`
@@ -694,6 +696,8 @@ declare const okfitConfigFields: Schema.Struct<{
694
696
  readonly stale: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
695
697
  readonly walk_unreadable: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
696
698
  readonly generated_at_drift: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
699
+ readonly status_missing: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
700
+ readonly source_resource_missing: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
697
701
  }>>;
698
702
  readonly types: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
699
703
  readonly description: Schema.optionalKey<Schema.String>;
@@ -759,6 +763,8 @@ export declare const okfitConfigDocumentFields: Schema.StructWithRest<Schema.Str
759
763
  readonly stale: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
760
764
  readonly walk_unreadable: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
761
765
  readonly generated_at_drift: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
766
+ readonly status_missing: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
767
+ readonly source_resource_missing: Schema.optionalKey<Schema.Literals<readonly ["off", "info", "warn", "error"]>>;
762
768
  }>>;
763
769
  readonly types: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
764
770
  readonly description: Schema.optionalKey<Schema.String>;
@@ -844,6 +850,8 @@ declare const OkfitConfigFile_base: import("effect/Context").ServiceClass<OkfitC
844
850
  readonly stale?: "error" | "info" | "off" | "warn";
845
851
  readonly walk_unreadable?: "error" | "info" | "off" | "warn";
846
852
  readonly generated_at_drift?: "error" | "info" | "off" | "warn";
853
+ readonly status_missing?: "error" | "info" | "off" | "warn";
854
+ readonly source_resource_missing?: "error" | "info" | "off" | "warn";
847
855
  };
848
856
  readonly types?: {
849
857
  readonly [x: string]: {
@@ -14,6 +14,12 @@ const frontmatterRange = (concept) => {
14
14
  return DiagnosticRange.fromOffset(concept.document.source, start, node.position.end.offset - start);
15
15
  };
16
16
  const present = (raw, key) => Object.hasOwn(raw, key) && raw[key] !== null;
17
+ /**
18
+ * Source spans of every inline code span and code block, so a footnote-shaped
19
+ * token inside backticks is read as literal text (issue #67).
20
+ */
21
+ const codeSpansOf = (concept) => concept.document.findAll((node) => node.type === "inlineCode" || node.type === "code").map((node) => [node.position.start.offset, node.position.end.offset]);
22
+ const insideAny = (spans, offset) => spans.some(([start, end]) => offset >= start && offset < end);
17
23
  const diagnostic = (file, code, severity, message, range) => Diagnostic.make({
18
24
  file,
19
25
  code,
@@ -45,6 +51,7 @@ const fieldValueUnknown = perConcept("field-value-unknown", (concept, context) =
45
51
  return out;
46
52
  });
47
53
  const requireVerifiedUnmet = perConcept("require-verified-unmet", (concept, context) => context.config.types?.[concept.frontmatter.type]?.require_verified === true && concept.frontmatter.status !== "draft" && (concept.frontmatter.verified ?? []).length === 0 ? [`Type "${concept.frontmatter.type}" requires a verified entry`] : []);
54
+ const statusMissing = perConcept("status-missing", (concept) => concept.frontmatter.status === void 0 && (concept.frontmatter.verified ?? []).length === 0 ? ["Concept has no status and no verified entry, so it reads as stable; set status: draft or stable explicitly"] : []);
48
55
  const actorPrefixUnknown = perConcept("actor-prefix-unknown", (concept) => {
49
56
  return [concept.frontmatter.generated?.by, ...(concept.frontmatter.verified ?? []).map((v) => v.by)].filter((by) => by !== void 0 && Actor.form(by) === "other").map((by) => `Actor "${by}" uses an unknown prefix; expected human:<id>, process:<id>, or <producer>/<version>`);
50
57
  });
@@ -56,10 +63,11 @@ const footnoteSourceUnknown = rule("footnote-source-unknown", (context, severity
56
63
  if (ids.size === 0) continue;
57
64
  const source = concept.document.source;
58
65
  const start = concept.document.frontmatter?.position.end.offset ?? 0;
66
+ const code = codeSpansOf(concept);
59
67
  const seen = /* @__PURE__ */ new Set();
60
68
  for (const match of source.slice(start).matchAll(FOOTNOTE_RE)) {
61
69
  const label = match[1];
62
- if (label === void 0 || ids.has(label) || seen.has(label)) continue;
70
+ if (label === void 0 || ids.has(label) || seen.has(label) || insideAny(code, start + match.index)) continue;
63
71
  seen.add(label);
64
72
  const range = DiagnosticRange.fromOffset(source, start + match.index, match[0].length);
65
73
  out.push(diagnostic(concept.path, "footnote-source-unknown", severity, `Footnote label "${label}" must equal a sources[].id exactly (declared: ${[...ids].join(", ")})`, range));
@@ -73,11 +81,12 @@ const footnoteUndefined = rule("footnote-undefined", (context, severity) => {
73
81
  const source = concept.document.source;
74
82
  const start = concept.document.frontmatter?.position.end.offset ?? 0;
75
83
  const body = source.slice(start);
76
- const defined = new Set([...body.matchAll(FOOTNOTE_DEFINITION_RE)].flatMap((m) => m[1] === void 0 ? [] : [m[1]]));
84
+ const code = codeSpansOf(concept);
85
+ const defined = new Set([...body.matchAll(FOOTNOTE_DEFINITION_RE)].flatMap((m) => m[1] === void 0 || insideAny(code, start + m.index) ? [] : [m[1]]));
77
86
  const seen = /* @__PURE__ */ new Set();
78
87
  for (const match of body.matchAll(FOOTNOTE_RE)) {
79
88
  const label = match[1];
80
- if (label === void 0 || defined.has(label) || seen.has(label)) continue;
89
+ if (label === void 0 || defined.has(label) || seen.has(label) || insideAny(code, start + match.index)) continue;
81
90
  seen.add(label);
82
91
  const range = DiagnosticRange.fromOffset(source, start + match.index, match[0].length);
83
92
  out.push(diagnostic(concept.path, "footnote-undefined", severity, `Footnote "${label}" is referenced but has no [^${label}]: definition`, range));
@@ -85,12 +94,63 @@ const footnoteUndefined = rule("footnote-undefined", (context, severity) => {
85
94
  }
86
95
  return out;
87
96
  });
97
+ /** GitHub-style heading slug: lowercase, punctuation dropped, spaces to hyphens, duplicates suffixed `-1`, `-2`, ... */
98
+ const headingSlugs = (concept) => {
99
+ const seen = /* @__PURE__ */ new Map();
100
+ const slugs = /* @__PURE__ */ new Set();
101
+ for (const heading of concept.document.headings) {
102
+ const base = heading.text.toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu, "").trim().replace(/\s+/g, "-");
103
+ const count = seen.get(base) ?? 0;
104
+ seen.set(base, count + 1);
105
+ slugs.add(count === 0 ? base : `${base}-${count}`);
106
+ }
107
+ return slugs;
108
+ };
109
+ const fragmentOf = (raw) => {
110
+ const hash = raw.indexOf("#");
111
+ if (hash < 0) return void 0;
112
+ const fragment = raw.slice(hash + 1).split("?")[0] ?? "";
113
+ try {
114
+ return decodeURIComponent(fragment);
115
+ } catch {
116
+ return fragment;
117
+ }
118
+ };
88
119
  const brokenLinks = rule("broken-links", (context, severity) => {
89
- const pathOf = new Map([...context.bundle.concepts.values()].map((concept) => [concept.id, concept.path]));
90
- return context.graph.dangling().map((link) => {
120
+ const byId = new Map([...context.bundle.concepts.values()].map((concept) => [concept.id, concept]));
121
+ const fileOf = (from) => byId.get(from)?.path ?? from;
122
+ const dangling = context.graph.dangling().map((link) => {
91
123
  const message = `Link target "${link.data.raw}" does not exist in the bundle`;
92
- return diagnostic(pathOf.get(link.from) ?? link.from, "broken-links", severity, message, link.data.position);
124
+ return diagnostic(fileOf(link.from), "broken-links", severity, message, link.data.position);
93
125
  });
126
+ const slugCache = /* @__PURE__ */ new Map();
127
+ const anchors = [];
128
+ const slugsOf = (id, target) => {
129
+ const cached = slugCache.get(id);
130
+ if (cached !== void 0) return cached;
131
+ const slugs = headingSlugs(target);
132
+ slugCache.set(id, slugs);
133
+ return slugs;
134
+ };
135
+ const check = (file, raw, targetId, target, position) => {
136
+ const fragment = fragmentOf(raw);
137
+ if (fragment === void 0 || fragment === "" || slugsOf(targetId, target).has(fragment)) return;
138
+ const message = `Link target "${raw}" exists but has no heading "#${fragment}"`;
139
+ anchors.push(diagnostic(file, "broken-links", severity, message, position));
140
+ };
141
+ for (const link of context.graph.edges) {
142
+ if (link.data.source !== "body") continue;
143
+ const target = byId.get(link.to);
144
+ if (target === void 0) continue;
145
+ check(fileOf(link.from), link.data.raw, link.to, target, link.data.position);
146
+ }
147
+ for (const concept of context.bundle.concepts.values()) for (const link of concept.document.links) {
148
+ if (link.url === void 0 || !link.url.startsWith("#") || link.node.type === "linkReference") continue;
149
+ const { start, end } = link.node.position;
150
+ const position = DiagnosticRange.fromOffset(concept.document.source, start.offset, end.offset - start.offset);
151
+ check(concept.path, link.url, concept.id, concept, position);
152
+ }
153
+ return [...dangling, ...anchors];
94
154
  });
95
155
  const missingIndex = rule("missing-index", (context, severity) => context.bundle.directories.filter((dir) => !context.bundle.indexes.has(dir)).map((dir) => {
96
156
  const message = `Directory "${dir === "" ? "." : dir}" has no index.md`;
@@ -103,6 +163,7 @@ const LINT_RULES = [
103
163
  requiredKeyMissing,
104
164
  fieldValueUnknown,
105
165
  requireVerifiedUnmet,
166
+ statusMissing,
106
167
  actorPrefixUnknown,
107
168
  footnoteSourceUnknown,
108
169
  footnoteUndefined,
@@ -112,4 +173,4 @@ const LINT_RULES = [
112
173
  ];
113
174
 
114
175
  //#endregion
115
- export { LINT_RULES, actorPrefixUnknown, brokenLinks, configUnknownKey, fieldValueUnknown, footnoteSourceUnknown, footnoteUndefined, missingIndex, requireVerifiedUnmet, requiredKeyMissing, stale, unknownType };
176
+ export { LINT_RULES, actorPrefixUnknown, brokenLinks, configUnknownKey, fieldValueUnknown, footnoteSourceUnknown, footnoteUndefined, missingIndex, requireVerifiedUnmet, requiredKeyMissing, stale, statusMissing, unknownType };
@@ -1,6 +1,14 @@
1
1
  //#region src/internal/templates.ts
2
+ /**
3
+ * Backslash-escape markdown-active characters (`\`, `<`, `>`, `*`, `_`, `` ` ``,
4
+ * `[`, `]`) so plain text round-trips through a generated `index.md` as
5
+ * literal text instead of being interpreted as inline HTML or emphasis
6
+ * (issue #72). A single pass over the original text, so the backslashes it
7
+ * inserts are never themselves re-escaped.
8
+ */
9
+ const escapeMarkdown = (text) => text.replace(/[\\<>*_`[\]]/g, (char) => `\\${char}`);
2
10
  /** `* [Title](target) - description`, or without the tail when there is no description (D-36; spec §8). */
3
- const indexEntry = (entry) => entry.description === void 0 || entry.description === "" ? `* [${entry.title}](${entry.target})` : `* [${entry.title}](${entry.target}) - ${entry.description}`;
11
+ const indexEntry = (entry) => entry.description === void 0 || entry.description === "" ? `* [${escapeMarkdown(entry.title)}](${entry.target})` : `* [${escapeMarkdown(entry.title)}](${entry.target}) - ${escapeMarkdown(entry.description)}`;
4
12
  /** An H1 section: heading, blank line, entries, trailing newline. */
5
13
  const indexSection = (heading, entries) => `# ${heading}\n\n${entries.join("\n")}\n`;
6
14
  /** Root-index frontmatter carrying only `okf_version` (D-21). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okfit/core",
3
- "version": "0.4.1",
3
+ "version": "0.6.0",
4
4
  "private": false,
5
5
  "description": "Spec-level Open Knowledge Format (OKF) v0.2 schemas, bundle loading, graph, derivation, and validation for Effect.",
6
6
  "keywords": [
@@ -37,7 +37,7 @@
37
37
  "./package.json": "./package.json"
38
38
  },
39
39
  "peerDependencies": {
40
- "@effected/config-file": "^0.9.0",
40
+ "@effected/config-file": "^0.10.0",
41
41
  "@effected/glob": "^0.6.0",
42
42
  "@effected/jsonc": "^0.11.0",
43
43
  "@effected/markdown": "^0.10.0",