@grafctory/blue 0.0.0-stage → 0.16.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.
Files changed (139) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +524 -2
  3. package/dist/boolean/assembler.d.ts +53 -0
  4. package/dist/boolean/assembler.d.ts.map +1 -0
  5. package/dist/boolean/assembler.js +78 -0
  6. package/dist/boolean/assembler.js.map +1 -0
  7. package/dist/boolean/index.d.ts +86 -0
  8. package/dist/boolean/index.d.ts.map +1 -0
  9. package/dist/boolean/index.js +99 -0
  10. package/dist/boolean/index.js.map +1 -0
  11. package/dist/boolean/validator.d.ts +30 -0
  12. package/dist/boolean/validator.d.ts.map +1 -0
  13. package/dist/boolean/validator.js +68 -0
  14. package/dist/boolean/validator.js.map +1 -0
  15. package/dist/dictionary/assembler.d.ts +70 -0
  16. package/dist/dictionary/assembler.d.ts.map +1 -0
  17. package/dist/dictionary/assembler.js +178 -0
  18. package/dist/dictionary/assembler.js.map +1 -0
  19. package/dist/dictionary/index.d.ts +237 -0
  20. package/dist/dictionary/index.d.ts.map +1 -0
  21. package/dist/dictionary/index.js +43 -0
  22. package/dist/dictionary/index.js.map +1 -0
  23. package/dist/dictionary/inference.d.ts +42 -0
  24. package/dist/dictionary/inference.d.ts.map +1 -0
  25. package/dist/dictionary/inference.js +17 -0
  26. package/dist/dictionary/inference.js.map +1 -0
  27. package/dist/dictionary/validator.d.ts +37 -0
  28. package/dist/dictionary/validator.d.ts.map +1 -0
  29. package/dist/dictionary/validator.js +106 -0
  30. package/dist/dictionary/validator.js.map +1 -0
  31. package/dist/index.core.d.ts +33 -0
  32. package/dist/index.core.d.ts.map +1 -0
  33. package/dist/index.core.js +149 -0
  34. package/dist/index.core.js.map +1 -0
  35. package/dist/index.d.ts +333 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +378 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/number/assembler.d.ts +70 -0
  40. package/dist/number/assembler.d.ts.map +1 -0
  41. package/dist/number/assembler.js +188 -0
  42. package/dist/number/assembler.js.map +1 -0
  43. package/dist/number/index.d.ts +329 -0
  44. package/dist/number/index.d.ts.map +1 -0
  45. package/dist/number/index.js +312 -0
  46. package/dist/number/index.js.map +1 -0
  47. package/dist/number/validator.d.ts +31 -0
  48. package/dist/number/validator.d.ts.map +1 -0
  49. package/dist/number/validator.js +57 -0
  50. package/dist/number/validator.js.map +1 -0
  51. package/dist/reference/accessors.d.ts +29 -0
  52. package/dist/reference/accessors.d.ts.map +1 -0
  53. package/dist/reference/accessors.js +38 -0
  54. package/dist/reference/accessors.js.map +1 -0
  55. package/dist/reference/assembler.d.ts +63 -0
  56. package/dist/reference/assembler.d.ts.map +1 -0
  57. package/dist/reference/assembler.js +127 -0
  58. package/dist/reference/assembler.js.map +1 -0
  59. package/dist/reference/index.d.ts +108 -0
  60. package/dist/reference/index.d.ts.map +1 -0
  61. package/dist/reference/index.js +40 -0
  62. package/dist/reference/index.js.map +1 -0
  63. package/dist/reference/validator.d.ts +33 -0
  64. package/dist/reference/validator.d.ts.map +1 -0
  65. package/dist/reference/validator.js +56 -0
  66. package/dist/reference/validator.js.map +1 -0
  67. package/dist/resource/accessors.d.ts +140 -0
  68. package/dist/resource/accessors.d.ts.map +1 -0
  69. package/dist/resource/accessors.js +173 -0
  70. package/dist/resource/accessors.js.map +1 -0
  71. package/dist/resource/assembler.d.ts +265 -0
  72. package/dist/resource/assembler.d.ts.map +1 -0
  73. package/dist/resource/assembler.js +816 -0
  74. package/dist/resource/assembler.js.map +1 -0
  75. package/dist/resource/index.d.ts +903 -0
  76. package/dist/resource/index.d.ts.map +1 -0
  77. package/dist/resource/index.js +160 -0
  78. package/dist/resource/index.js.map +1 -0
  79. package/dist/resource/inference.d.ts +310 -0
  80. package/dist/resource/inference.d.ts.map +1 -0
  81. package/dist/resource/inference.js +17 -0
  82. package/dist/resource/inference.js.map +1 -0
  83. package/dist/resource/validator.d.ts +158 -0
  84. package/dist/resource/validator.d.ts.map +1 -0
  85. package/dist/resource/validator.js +1013 -0
  86. package/dist/resource/validator.js.map +1 -0
  87. package/dist/string/assembler.d.ts +69 -0
  88. package/dist/string/assembler.d.ts.map +1 -0
  89. package/dist/string/assembler.js +143 -0
  90. package/dist/string/assembler.js.map +1 -0
  91. package/dist/string/index.d.ts +431 -0
  92. package/dist/string/index.d.ts.map +1 -0
  93. package/dist/string/index.js +528 -0
  94. package/dist/string/index.js.map +1 -0
  95. package/dist/string/validator.d.ts +30 -0
  96. package/dist/string/validator.d.ts.map +1 -0
  97. package/dist/string/validator.js +69 -0
  98. package/dist/string/validator.js.map +1 -0
  99. package/dist/union/accessors.d.ts +137 -0
  100. package/dist/union/accessors.d.ts.map +1 -0
  101. package/dist/union/accessors.js +253 -0
  102. package/dist/union/accessors.js.map +1 -0
  103. package/dist/union/assembler.d.ts +56 -0
  104. package/dist/union/assembler.d.ts.map +1 -0
  105. package/dist/union/assembler.js +140 -0
  106. package/dist/union/assembler.js.map +1 -0
  107. package/dist/union/index.d.ts +172 -0
  108. package/dist/union/index.d.ts.map +1 -0
  109. package/dist/union/index.js +45 -0
  110. package/dist/union/index.js.map +1 -0
  111. package/dist/union/inference.d.ts +30 -0
  112. package/dist/union/inference.d.ts.map +1 -0
  113. package/dist/union/inference.js +17 -0
  114. package/dist/union/inference.js.map +1 -0
  115. package/dist/union/validator.d.ts +94 -0
  116. package/dist/union/validator.d.ts.map +1 -0
  117. package/dist/union/validator.js +171 -0
  118. package/dist/union/validator.js.map +1 -0
  119. package/dist/value/accessors.d.ts +151 -0
  120. package/dist/value/accessors.d.ts.map +1 -0
  121. package/dist/value/accessors.js +468 -0
  122. package/dist/value/accessors.js.map +1 -0
  123. package/dist/value/assembler.d.ts +129 -0
  124. package/dist/value/assembler.d.ts.map +1 -0
  125. package/dist/value/assembler.js +248 -0
  126. package/dist/value/assembler.js.map +1 -0
  127. package/dist/value/index.d.ts +309 -0
  128. package/dist/value/index.d.ts.map +1 -0
  129. package/dist/value/index.js +26 -0
  130. package/dist/value/index.js.map +1 -0
  131. package/dist/value/inference.d.ts +292 -0
  132. package/dist/value/inference.d.ts.map +1 -0
  133. package/dist/value/inference.js +17 -0
  134. package/dist/value/inference.js.map +1 -0
  135. package/dist/value/validator.d.ts +76 -0
  136. package/dist/value/validator.d.ts.map +1 -0
  137. package/dist/value/validator.js +111 -0
  138. package/dist/value/validator.js.map +1 -0
  139. package/package.json +95 -4
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Copyright © 2025-2026 Metreeca srl
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=inference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inference.js","sourceRoot":"","sources":["../../src/value/inference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Value validation.
3
+ *
4
+ * Holds a value to what a shape admits, whatever kind the shape is, either as a stored value or as a retrieval
5
+ * placeholder. Also tests an identifier against the pattern a shape admits its resources under.
6
+ *
7
+ * @module
8
+ */
9
+ import { type Optional } from "@grafctory/core";
10
+ import { type Trace, type Validator } from "@grafctory/core/trace";
11
+ import { type Reference } from "@grafctory/qest/state";
12
+ import type { Shape } from "./index.js";
13
+ /**
14
+ * Validation strictness for matching a value against a shape.
15
+ *
16
+ * Selects how much of a shape the value validators enforce, so a caller can match the same shape against a stored
17
+ * value or a retrieval model:
18
+ *
19
+ * - `"state"` enforces **every** constraint: the value must be a legal element of the shape's domain.
20
+ * - `"model"` matches by **form** alone, ignoring every constraint: a retrieval placeholder carries no value of its
21
+ * own, so it is held to asking for something the shape can give rather than to being a legal value of it. A literal
22
+ * or a link admits the atomic placeholder, a localised map admits it too, coalesced, or a map of the tag ranges
23
+ * wanted.
24
+ *
25
+ * @see [Unions — Design](../union/index.md)
26
+ */
27
+ export type Scope = "state" | "model";
28
+ /**
29
+ * States a value validator from what each strictness enforces.
30
+ *
31
+ * Combines the checks each {@link Scope | strictness} enforces into the single validator a shape kind exposes. A kind
32
+ * states the constraints a stored value is held to apart from those a retrieval placeholder is held to.
33
+ *
34
+ * @typeParam S The shape the values are matched against
35
+ *
36
+ * @param state The checks a legal element of the shape's domain is held to
37
+ * @param model The checks a retrieval placeholder is held to
38
+ *
39
+ * @returns A validator matching values against a shape at the strictness its options ask for, defaulting to `"state"`
40
+ */
41
+ export declare function scoped<S>(state: (shape: S) => Validator<readonly unknown[]>, model: (shape: S) => Validator<readonly unknown[]>): (values: readonly unknown[], shape: S, opts?: {
42
+ scope?: Scope;
43
+ }) => Optional<Trace>;
44
+ /**
45
+ * Validates values against a shape.
46
+ *
47
+ * Routes the values to the validators of the shape's kind, so that a caller holding a shape matches values against it
48
+ * without knowing which kind it holds.
49
+ *
50
+ * @param values The values to validate
51
+ * @param shape The shape the values are matched against
52
+ * @param opts Validation options
53
+ * @param opts.scope The {@link Scope | strictness} the shape is enforced at, defaulting to `"state"`
54
+ *
55
+ * @returns A trace of the violations found, or `undefined` where every value matches `shape`
56
+ */
57
+ export declare function validateShape(values: readonly unknown[], shape: Shape, { scope }?: {
58
+ scope?: Scope;
59
+ }): Optional<Trace>;
60
+ /**
61
+ * Checks whether an identifier matches a pattern.
62
+ *
63
+ * Reads a pattern as an IRI template: `{name}` stands for a single path segment, a trailing `/*` for one or more, and
64
+ * a trailing `/` for a container whose identifier ends in that slash. A shape thus states the identifiers it admits
65
+ * by their form rather than by enumeration. A root-relative pattern is matched against the path alone, ignoring the
66
+ * origin, so the same shape serves whatever host the resources are published under.
67
+ *
68
+ * @param iri The identifier to test
69
+ * @param pattern The pattern to match it against
70
+ *
71
+ * @returns `true` where `iri` matches `pattern`
72
+ *
73
+ * @throws {@link !TypeError TypeError} Where `pattern` is not a well-formed identifier pattern
74
+ */
75
+ export declare function match(iri: Reference, pattern: string): boolean;
76
+ //# sourceMappingURL=validator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../src/value/validator.ts"],"names":[],"mappings":"AAgBA;;;;;;;GAOG;AAEH,OAAO,EAAU,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AASvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAMxC;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,KAAK,GACd,OAAO,GACP,OAAO,CAAA;AAGV;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,CAAC,EACvB,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC,SAAS,OAAO,EAAE,CAAC,EAClD,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC,SAAS,OAAO,EAAE,CAAC,GAChD,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,KAAK,QAAQ,CAAC,KAAK,CAAC,CAMrF;AAKD;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAEvE,KAAe,EAEf,GAAE;IAEF,KAAK,CAAC,EAAE,KAAK,CAAA;CAER,GAAG,QAAQ,CAAC,KAAK,CAAC,CAkCvB;AAKD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAmB9D"}
@@ -0,0 +1,111 @@
1
+ /*
2
+ * Copyright © 2025-2026 Metreeca srl
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * Value validation.
18
+ *
19
+ * Holds a value to what a shape admits, whatever kind the shape is, either as a stored value or as a retrieval
20
+ * placeholder. Also tests an identifier against the pattern a shape admits its resources under.
21
+ *
22
+ * @module
23
+ */
24
+ import { assert } from "@grafctory/core";
25
+ import { validateBoolean } from "../boolean/validator.js";
26
+ import { validateDictionary } from "../dictionary/validator.js";
27
+ import { validateNumber } from "../number/validator.js";
28
+ import { validateReference } from "../reference/validator.js";
29
+ import { isPattern } from "../resource/assembler.js";
30
+ import { validateResource } from "../resource/validator.js";
31
+ import { validateString } from "../string/validator.js";
32
+ import { validateUnion } from "../union/validator.js";
33
+ /**
34
+ * States a value validator from what each strictness enforces.
35
+ *
36
+ * Combines the checks each {@link Scope | strictness} enforces into the single validator a shape kind exposes. A kind
37
+ * states the constraints a stored value is held to apart from those a retrieval placeholder is held to.
38
+ *
39
+ * @typeParam S The shape the values are matched against
40
+ *
41
+ * @param state The checks a legal element of the shape's domain is held to
42
+ * @param model The checks a retrieval placeholder is held to
43
+ *
44
+ * @returns A validator matching values against a shape at the strictness its options ask for, defaulting to `"state"`
45
+ */
46
+ export function scoped(state, model) {
47
+ const scopes = { state, model };
48
+ return (values, shape, { scope = "state" } = {}) => scopes[scope](shape)(values);
49
+ }
50
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
51
+ /**
52
+ * Validates values against a shape.
53
+ *
54
+ * Routes the values to the validators of the shape's kind, so that a caller holding a shape matches values against it
55
+ * without knowing which kind it holds.
56
+ *
57
+ * @param values The values to validate
58
+ * @param shape The shape the values are matched against
59
+ * @param opts Validation options
60
+ * @param opts.scope The {@link Scope | strictness} the shape is enforced at, defaulting to `"state"`
61
+ *
62
+ * @returns A trace of the violations found, or `undefined` where every value matches `shape`
63
+ */
64
+ export function validateShape(values, shape, { scope = "state" } = {}) {
65
+ switch (shape.kind) {
66
+ case "boolean":
67
+ return validateBoolean(values, shape, { scope });
68
+ case "number":
69
+ return validateNumber(values, shape, { scope });
70
+ case "string":
71
+ return validateString(values, shape, { scope });
72
+ case "dictionary":
73
+ return validateDictionary(values, shape, { scope });
74
+ case "reference":
75
+ return validateReference(values, shape, { scope });
76
+ case "union":
77
+ return validateUnion(values, shape, { scope });
78
+ case "resource":
79
+ return validateResource(values, shape, { scope });
80
+ }
81
+ }
82
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
83
+ /**
84
+ * Checks whether an identifier matches a pattern.
85
+ *
86
+ * Reads a pattern as an IRI template: `{name}` stands for a single path segment, a trailing `/*` for one or more, and
87
+ * a trailing `/` for a container whose identifier ends in that slash. A shape thus states the identifiers it admits
88
+ * by their form rather than by enumeration. A root-relative pattern is matched against the path alone, ignoring the
89
+ * origin, so the same shape serves whatever host the resources are published under.
90
+ *
91
+ * @param iri The identifier to test
92
+ * @param pattern The pattern to match it against
93
+ *
94
+ * @returns `true` where `iri` matches `pattern`
95
+ *
96
+ * @throws {@link !TypeError TypeError} Where `pattern` is not a well-formed identifier pattern
97
+ */
98
+ export function match(iri, pattern) {
99
+ const $pattern = assert(pattern, isPattern, `malformed pattern <${pattern}>`);
100
+ // {name} matches a single path segment; a trailing /* matches one or more
101
+ const expression = $pattern
102
+ .replace(/[.+?^$()|[\]\\]/g, "\\$&")
103
+ .replace(/\/\{\w*}(?=\/|$)/g, "/[^/]+")
104
+ .replace(/\/\*$/, "/.+");
105
+ // a root-relative pattern is matched against the path alone, ignoring scheme and authority
106
+ const target = $pattern.startsWith("/")
107
+ ? iri.replace(/^[a-z][a-z0-9+.-]*:(\/\/[^/]*)?/i, "")
108
+ : iri;
109
+ return new RegExp(`^${expression}$`).test(target);
110
+ }
111
+ //# sourceMappingURL=validator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validator.js","sourceRoot":"","sources":["../../src/value/validator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,EAAiB,MAAM,iBAAiB,CAAC;AAGxD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AA0BtD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,MAAM,CACrB,KAAkD,EAClD,KAAkD;IAGlD,MAAM,MAAM,GAAyE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;IAEtG,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,GAAG,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAElF,CAAC;AAGD,wHAAwH;AAExH;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,aAAa,CAAC,MAA0B,EAAE,KAAY,EAAE,EAEvE,KAAK,GAAG,OAAO,KAMZ,EAAE;IAEL,QAAS,KAAK,CAAC,IAAI,EAAG,CAAC;QAEtB,KAAK,SAAS;YAEb,OAAO,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAElD,KAAK,QAAQ;YAEZ,OAAO,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAEjD,KAAK,QAAQ;YAEZ,OAAO,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAEjD,KAAK,YAAY;YAEhB,OAAO,kBAAkB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAErD,KAAK,WAAW;YAEf,OAAO,iBAAiB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAEpD,KAAK,OAAO;YAEX,OAAO,aAAa,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAEhD,KAAK,UAAU;YAEd,OAAO,gBAAgB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAEpD,CAAC;AAEF,CAAC;AAGD,wHAAwH;AAExH;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,KAAK,CAAC,GAAc,EAAE,OAAe;IAEpD,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,sBAAsB,OAAO,GAAG,CAAC,CAAC;IAE9E,0EAA0E;IAE1E,MAAM,UAAU,GAAG,QAAQ;SACzB,OAAO,CAAC,kBAAkB,EAAE,MAAM,CAAC;SACnC,OAAO,CAAC,mBAAmB,EAAE,QAAQ,CAAC;SACtC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAE1B,2FAA2F;IAE3F,MAAM,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC;QACtC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,kCAAkC,EAAE,EAAE,CAAC;QACrD,CAAC,CAAC,GAAG,CAAC;IAEP,OAAO,IAAI,MAAM,CAAC,IAAI,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAEnD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,97 @@
1
1
  {
2
2
  "name": "@grafctory/blue",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.16.0",
4
+ "description": "Declarative blueprints for model-driven linked data processing.",
5
+ "keywords": [
6
+ "typescript",
7
+ "json-ld",
8
+ "shacl",
9
+ "validation",
10
+ "model-driven"
11
+ ],
12
+ "homepage": "https://grafctory.github.io/blue/",
13
+ "bugs": {
14
+ "url": "https://github.com/grafctory/blue/issues",
15
+ "email": "info@grafctory.dev"
16
+ },
17
+ "license": "Apache-2.0",
18
+ "author": {
19
+ "name": "Metreeca",
20
+ "email": "info@metreeca.com",
21
+ "url": "https://www.metreeca.com/"
22
+ },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/grafctory/blue.git"
26
+ },
27
+ "type": "module",
28
+ "sideEffects": false,
29
+ "exports": {
30
+ ".": {
31
+ "@grafctory/source": "./src/index.ts",
32
+ "default": "./dist/index.js"
33
+ },
34
+ "./value": {
35
+ "@grafctory/source": "./src/value/index.ts",
36
+ "default": "./dist/value/index.js"
37
+ },
38
+ "./union": {
39
+ "@grafctory/source": "./src/union/index.ts",
40
+ "default": "./dist/union/index.js"
41
+ },
42
+ "./boolean": {
43
+ "@grafctory/source": "./src/boolean/index.ts",
44
+ "default": "./dist/boolean/index.js"
45
+ },
46
+ "./number": {
47
+ "@grafctory/source": "./src/number/index.ts",
48
+ "default": "./dist/number/index.js"
49
+ },
50
+ "./string": {
51
+ "@grafctory/source": "./src/string/index.ts",
52
+ "default": "./dist/string/index.js"
53
+ },
54
+ "./dictionary": {
55
+ "@grafctory/source": "./src/dictionary/index.ts",
56
+ "default": "./dist/dictionary/index.js"
57
+ },
58
+ "./reference": {
59
+ "@grafctory/source": "./src/reference/index.ts",
60
+ "default": "./dist/reference/index.js"
61
+ },
62
+ "./resource": {
63
+ "@grafctory/source": "./src/resource/index.ts",
64
+ "default": "./dist/resource/index.js"
65
+ }
66
+ },
67
+ "files": [
68
+ "README.md",
69
+ "LICENSE",
70
+ "dist"
71
+ ],
72
+ "engines": {
73
+ "node": ">=22.22.0"
74
+ },
75
+ "scripts": {
76
+ "clean": "ush rm dist docs node_modules",
77
+ "prime": "npm ci",
78
+ "setup": "npm ci && ush ln",
79
+ "build": "ush rm dist docs && tsc -p tsconfig.build.json && npx typedoc",
80
+ "check": "npx vitest --typecheck run",
81
+ "proof": "ush up npx typedoc --watch + ush ws --open docs"
82
+ },
83
+ "dependencies": {
84
+ "@grafctory/core": "^0.14.0",
85
+ "@grafctory/qest": "^0.15.0",
86
+ "json-schema-typed": "^9.0.0"
87
+ },
88
+ "devDependencies": {
89
+ "@grafctory/rack": "^0.8.0",
90
+ "typedoc": "^0.28.20",
91
+ "typescript": "^6.0.3",
92
+ "vitest": "^4.0.13"
93
+ },
94
+ "allowScripts": {
95
+ "fsevents@2.3.3": true
96
+ }
97
+ }