@rkmodules/rules 0.0.172 → 0.0.173

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.
@@ -41,6 +41,8 @@ export interface CacheRun {
41
41
  run: number;
42
42
  options: RunOptions;
43
43
  visited: Set<string>;
44
+ /** Activate enclosing graph calls when a descendant actually executes. */
45
+ onPrimitiveExecution?: () => void;
44
46
  }
45
47
  /** Engine-owned caches; execution state is carried explicitly across async boundaries. */
46
48
  export declare class ExecutionCache {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkmodules/rules",
3
- "version": "0.0.172",
3
+ "version": "0.0.173",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.mjs",
6
6
  "types": "./dist/index.d.ts",
package/readme.md CHANGED
@@ -418,7 +418,10 @@ Cache hits emit `functionResult` with `cached: true` and
418
418
  `cache: { kind, createdAt }`, and populate the current execution context. The
419
419
  `createdAt` timestamp identifies the original successful computation. Event
420
420
  `duration` and context timings measure this run's work, not the original cached
421
- computation. `functionCall` fires only when a node executes. Direct primitive runs
421
+ computation. `functionCall` fires only when a primitive executes. An enclosing graph
422
+ call emits it once, immediately before its first executing descendant; traversing
423
+ only cached descendants does not activate the graph node in the editor. Graphs
424
+ still emit results on every traversal. Direct primitive runs
422
425
  now also emit these events and a final `result` event. Graph result events continue
423
426
  to describe the current traversal rather than a cached whole graph.
424
427