@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.
- package/dist/index.cjs.js +27 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.mjs +27 -14
- package/dist/index.esm.mjs.map +1 -1
- package/dist/lib/Engine/cache.d.ts +2 -0
- package/package.json +1 -1
- package/readme.md +4 -1
|
@@ -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
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
|
|
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
|
|