@directive-run/knowledge 1.19.5 → 1.19.7

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.
@@ -1,12 +1,12 @@
1
1
  # Choosing the right primitive
2
2
 
3
- Directive ships six core primitives. Picking the wrong one — modeling
3
+ Directive ships seven core primitives. Picking the wrong one — modeling
4
4
  business state as a derivation, or running a side effect inside a
5
5
  resolver — is the most common source of "Directive feels heavy"
6
6
  complaints. The framework rewards getting this right; this page is the
7
7
  decision matrix.
8
8
 
9
- ## The six primitives
9
+ ## The seven primitives
10
10
 
11
11
  | Primitive | Purpose | Reads | Writes | Triggers when |
12
12
  |---|---|---|---|---|
@@ -131,7 +131,7 @@ calls a moderation API on each message, and displays the result.
131
131
 
132
132
  Every external touch is a `source` or a `resolver`. Every state field
133
133
  is a `fact` or a `derivation`. Every "must-happen rule" is a
134
- `constraint`. Every "do this when X" is an `effect`. Six primitives,
134
+ `constraint`. Every "do this when X" is an `effect`. Seven primitives,
135
135
  seven pieces of work, zero `useEffect` hooks.
136
136
 
137
137
  ## When you find yourself wanting to break the model
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@directive-run/knowledge",
3
- "version": "1.19.5",
3
+ "version": "1.19.7",
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",
@@ -53,8 +53,8 @@
53
53
  "tsx": "^4.19.2",
54
54
  "typescript": "^5.7.2",
55
55
  "vitest": "^3.0.0",
56
- "@directive-run/core": "1.19.5",
57
- "@directive-run/ai": "1.19.5"
56
+ "@directive-run/core": "1.19.7",
57
+ "@directive-run/ai": "1.19.7"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "tsx scripts/generate-api-skeleton.ts && tsx scripts/generate-sitemap.ts && tsx scripts/extract-examples.ts && tsup",