structured-context 0.22.0 → 0.22.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/dist/api.d.ts CHANGED
@@ -35,6 +35,7 @@ export { bundledSchemasDir, loadSchema, type PluginSchemaSource, setBundledSchem
35
35
  export { createSpaceContext } from './space-context';
36
36
  export { buildSpaceGraph } from './space-graph';
37
37
  export { exportSpaceGraph } from './space-graph-data';
38
- export type { BaseNode, ContentLink, EdgeDefinition, FileNotInSpaceResult, FileValidationIssue, FileValidationResult, Hierarchy, HierarchyLevel, ParseIssue, ReadSpaceResult, Relationship, ResolvedContentLink, RuleCategory, RuleSeverity, RuleViolation, SchemaMetadata, SchemaWithMetadata, SourceLocation, SpaceContext, UnresolvedRef, ValidateFileOutput, } from './types';
38
+ export type { BaseNode, ContentLink, EdgeDefinition, FileNotInSpaceResult, FileValidationIssue, FileValidationResult, Hierarchy, HierarchyLevel, ParseIssue, ReadSpaceResult, Relationship, ResolvedContentLink, RuleCategory, RuleSeverity, RuleViolation, SchemaMetadata, SchemaWithMetadata, SourceLocation, SpaceContext, UnresolvedRef, ValidateFileOutput, ValidationIssueKind, } from './types';
39
+ export { VALIDATION_ISSUE_KINDS } from './types';
39
40
  export type { ValidationResult } from './validate';
40
41
  export { nodeIssues, validateFile, validateSpace } from './validate';
package/dist/api.js CHANGED
@@ -32,4 +32,5 @@ export { bundledSchemasDir, loadSchema, setBundledSchemasDir } from './schema/sc
32
32
  export { createSpaceContext } from './space-context';
33
33
  export { buildSpaceGraph } from './space-graph';
34
34
  export { exportSpaceGraph } from './space-graph-data';
35
+ export { VALIDATION_ISSUE_KINDS } from './types';
35
36
  export { nodeIssues, validateFile, validateSpace } from './validate';
package/dist/types.d.ts CHANGED
@@ -247,9 +247,12 @@ export type SpaceContext = {
247
247
  /** Directory of the config file that defines this space. Used for resolving relative paths in plugin configs. */
248
248
  configDir: string;
249
249
  };
250
+ /** The checks a validation issue can come from. */
251
+ export declare const VALIDATION_ISSUE_KINDS: readonly ["schema", "duplicate", "broken-link", "hierarchy", "rule", "gated", "content-link"];
252
+ export type ValidationIssueKind = (typeof VALIDATION_ISSUE_KINDS)[number];
250
253
  export interface FileValidationIssue {
251
- /** The check it came from: `schema`, `duplicate`, `broken-link`, `hierarchy`, `rule`, `gated` or `content-link`. */
252
- kind: string;
254
+ /** The check it came from. */
255
+ kind: ValidationIssueKind;
253
256
  message: string;
254
257
  /** How serious the issue is; consumers read it rather than infer it from `kind`. */
255
258
  severity: RuleSeverity;
package/dist/types.js CHANGED
@@ -0,0 +1,10 @@
1
+ /** The checks a validation issue can come from. */
2
+ export const VALIDATION_ISSUE_KINDS = [
3
+ 'schema',
4
+ 'duplicate',
5
+ 'broken-link',
6
+ 'hierarchy',
7
+ 'rule',
8
+ 'gated',
9
+ 'content-link',
10
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "structured-context",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Keep your content clean and your thinking clear with assistive tools for structured knowledge",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",