@directive-run/knowledge 1.5.0 → 1.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.
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
* - derive `compute: { ... }` (predicate + template)
|
|
16
16
|
*
|
|
17
17
|
* And the introspection that only a data form makes possible:
|
|
18
|
-
* - `system.inspect().constraints[].whenSpec`
|
|
19
|
-
* - `constraint.evaluate` observer event with `whenExplain
|
|
20
|
-
*
|
|
18
|
+
* - `system.inspect().constraints[].whenSpec` — the raw predicate
|
|
19
|
+
* - `constraint.evaluate` observer event with `whenExplain`, rendered
|
|
20
|
+
* below as a clause-by-clause ✓/✗ tree
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
import {
|
|
@@ -150,7 +150,6 @@ await settle();
|
|
|
150
150
|
console.log(`phase after resolver: ${system.facts.phase}`);
|
|
151
151
|
console.log(`transitionCount: ${system.facts.transitionCount}`);
|
|
152
152
|
|
|
153
|
-
// Show explain() on the next emitted requirement (if any), or on a re-fire.
|
|
154
153
|
// Two writes: phase ← "red" satisfies the first clause; elapsed ← 5 fails the
|
|
155
154
|
// `$gte: 30` clause, so the predicate as a whole is false and the constraint
|
|
156
155
|
// does not fire.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directive-run/knowledge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Knowledge files, examples, and validation for Directive — the constraint-driven TypeScript runtime.",
|
|
5
5
|
"license": "(MIT OR Apache-2.0)",
|
|
6
6
|
"author": "Jason Comes",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"tsx": "^4.19.2",
|
|
52
52
|
"typescript": "^5.7.2",
|
|
53
53
|
"vitest": "^3.0.0",
|
|
54
|
-
"@directive-run/core": "1.
|
|
55
|
-
"@directive-run/ai": "1.
|
|
54
|
+
"@directive-run/core": "1.6.0",
|
|
55
|
+
"@directive-run/ai": "1.6.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsx scripts/generate-api-skeleton.ts && tsx scripts/generate-sitemap.ts && tsx scripts/extract-examples.ts && tsup",
|