@graphrefly/graphrefly 0.23.0 → 0.24.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.
- package/dist/{chunk-NZMBRXQV.js → chunk-5DJTTKX3.js} +11 -13
- package/dist/chunk-5DJTTKX3.js.map +1 -0
- package/dist/{chunk-XTLYW4FR.js → chunk-5WGT55R4.js} +4 -4
- package/dist/{chunk-CWYPA63G.js → chunk-AOCBDH4T.js} +2 -2
- package/dist/{chunk-HVBX5KIW.js → chunk-H4RVA4VE.js} +2 -2
- package/dist/{chunk-32N5A454.js → chunk-HWPIFSW2.js} +2 -2
- package/dist/chunk-HWPIFSW2.js.map +1 -0
- package/dist/{chunk-PNUZM7PC.js → chunk-IPLKX3L2.js} +6 -6
- package/dist/{chunk-2GQLMQVJ.js → chunk-MW4VAKAO.js} +3 -3
- package/dist/{chunk-JFONSPNF.js → chunk-PY4XCDLR.js} +2 -2
- package/dist/{chunk-263BEJJO.js → chunk-QOWVNWOC.js} +3 -3
- package/dist/{chunk-PX6PDUJ5.js → chunk-TDEXAMGO.js} +4 -4
- package/dist/{chunk-PX6PDUJ5.js.map → chunk-TDEXAMGO.js.map} +1 -1
- package/dist/{chunk-XRFJJ2IU.js → chunk-XOFWRC73.js} +3 -3
- package/dist/compat/nestjs/index.cjs +10 -12
- package/dist/compat/nestjs/index.cjs.map +1 -1
- package/dist/compat/nestjs/index.d.cts +6 -6
- package/dist/compat/nestjs/index.d.ts +6 -6
- package/dist/compat/nestjs/index.js +9 -9
- package/dist/core/index.cjs +10 -12
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/core/index.js +3 -3
- package/dist/extra/index.cjs +10 -12
- package/dist/extra/index.cjs.map +1 -1
- package/dist/extra/index.d.cts +4 -4
- package/dist/extra/index.d.ts +4 -4
- package/dist/extra/index.js +4 -4
- package/dist/graph/index.cjs +10 -12
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +5 -5
- package/dist/graph/index.d.ts +5 -5
- package/dist/graph/index.js +4 -4
- package/dist/{graph-CEO2FkLY.d.ts → graph-B6NFqv3z.d.ts} +3 -3
- package/dist/{graph-BtdSRHUc.d.cts → graph-D-3JIQme.d.cts} +3 -3
- package/dist/{index-B0tfuXwV.d.cts → index-1z8vRTCt.d.cts} +3 -3
- package/dist/{index-BFGjXbiP.d.cts → index-AMWewNDe.d.cts} +2 -2
- package/dist/{index-BUj3ASVe.d.cts → index-BJB7t9gg.d.cts} +10 -24
- package/dist/{index-RXN94sHK.d.ts → index-BysCTzJz.d.ts} +3 -3
- package/dist/{index-DSPc5rkv.d.ts → index-C-TXEa7C.d.ts} +10 -24
- package/dist/{index-CkElcUY6.d.ts → index-CYkjxu3s.d.ts} +2 -2
- package/dist/{index-jEtF4N7L.d.ts → index-D7XgsUt7.d.ts} +2 -2
- package/dist/{index-DgscL7v0.d.ts → index-DiobMNwE.d.ts} +3 -3
- package/dist/{index-BPlWVAKY.d.cts → index-J7Kc0oIQ.d.cts} +3 -3
- package/dist/{index-C59uSJAH.d.cts → index-b5BYtczN.d.cts} +2 -2
- package/dist/index.cjs +20 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +21 -31
- package/dist/index.js.map +1 -1
- package/dist/{meta-3QjzotRv.d.ts → meta-CnkLA_43.d.ts} +1 -1
- package/dist/{meta-B-Lbs4-O.d.cts → meta-DWbkoq1s.d.cts} +1 -1
- package/dist/{node-C7PD3sn9.d.cts → node-B-f-Lu-k.d.cts} +15 -13
- package/dist/{node-C7PD3sn9.d.ts → node-B-f-Lu-k.d.ts} +15 -13
- package/dist/{observable-axpzv1K2.d.cts → observable-DBnrwcar.d.cts} +1 -1
- package/dist/{observable-EyO-moQY.d.ts → observable-uP-wy_uK.d.ts} +1 -1
- package/dist/patterns/reactive-layout/index.cjs +10 -12
- package/dist/patterns/reactive-layout/index.cjs.map +1 -1
- package/dist/patterns/reactive-layout/index.d.cts +5 -5
- package/dist/patterns/reactive-layout/index.d.ts +5 -5
- package/dist/patterns/reactive-layout/index.js +6 -6
- package/dist/{storage-DIgAr7M_.d.cts → storage-BuTdpCI1.d.cts} +1 -1
- package/dist/{storage-CHT5WE9m.d.ts → storage-F2X1U1x0.d.ts} +1 -1
- package/package.json +2 -2
- package/dist/chunk-32N5A454.js.map +0 -1
- package/dist/chunk-NZMBRXQV.js.map +0 -1
- /package/dist/{chunk-XTLYW4FR.js.map → chunk-5WGT55R4.js.map} +0 -0
- /package/dist/{chunk-CWYPA63G.js.map → chunk-AOCBDH4T.js.map} +0 -0
- /package/dist/{chunk-HVBX5KIW.js.map → chunk-H4RVA4VE.js.map} +0 -0
- /package/dist/{chunk-PNUZM7PC.js.map → chunk-IPLKX3L2.js.map} +0 -0
- /package/dist/{chunk-2GQLMQVJ.js.map → chunk-MW4VAKAO.js.map} +0 -0
- /package/dist/{chunk-JFONSPNF.js.map → chunk-PY4XCDLR.js.map} +0 -0
- /package/dist/{chunk-263BEJJO.js.map → chunk-QOWVNWOC.js.map} +0 -0
- /package/dist/{chunk-XRFJJ2IU.js.map → chunk-XOFWRC73.js.map} +0 -0
|
@@ -559,7 +559,11 @@ declare function accessHintForGuard(guard: NodeGuard): string;
|
|
|
559
559
|
* contract. See SESSION-foundation-redesign.md §§1–10 for design history.
|
|
560
560
|
*/
|
|
561
561
|
|
|
562
|
-
/**
|
|
562
|
+
/**
|
|
563
|
+
* Lifecycle status of a node.
|
|
564
|
+
*
|
|
565
|
+
* @see GRAPHREFLY-SPEC.md §2.2
|
|
566
|
+
*/
|
|
563
567
|
type NodeStatus = "sentinel" | "pending" | "dirty" | "settled" | "resolved" | "completed" | "errored";
|
|
564
568
|
/** Callback that receives downstream message batches. */
|
|
565
569
|
type NodeSink = (messages: Messages) => void;
|
|
@@ -1083,37 +1087,35 @@ declare class NodeImpl<T = unknown> implements Node<T> {
|
|
|
1083
1087
|
private _frameBatch;
|
|
1084
1088
|
/**
|
|
1085
1089
|
* @internal The unified dispatch waist — one call = one wave.
|
|
1090
|
+
* See `GRAPHREFLY-SPEC.md` §1.3.1 for protocol context — the stages
|
|
1091
|
+
* below are the implementation order.
|
|
1086
1092
|
*
|
|
1087
1093
|
* Pipeline stages, in order:
|
|
1088
1094
|
*
|
|
1089
|
-
* 1.
|
|
1090
|
-
* 2. Terminal filter — post-COMPLETE/ERROR only TEARDOWN/INVALIDATE
|
|
1095
|
+
* 1. Terminal filter — post-COMPLETE/ERROR only TEARDOWN/INVALIDATE
|
|
1091
1096
|
* still propagate so graph teardown and cache-clear still work.
|
|
1092
|
-
*
|
|
1097
|
+
* 2. Tier sort (stable) — the batch can be in any order when it
|
|
1093
1098
|
* arrives; the walker downstream (`downWithBatch`) assumes
|
|
1094
1099
|
* ascending tier monotone, and so does `_updateState`'s tier-3
|
|
1095
1100
|
* slice walk. This is the single source of truth for ordering.
|
|
1096
|
-
*
|
|
1101
|
+
* 3. Synthetic DIRTY prefix — if a tier-3 payload is present, no
|
|
1097
1102
|
* DIRTY is already in the batch, and the node isn't already in
|
|
1098
1103
|
* `"dirty"` status, prepend `[DIRTY]` after any tier-0 START
|
|
1099
1104
|
* entries. Guarantees spec §1.3.1 (DIRTY precedes DATA within
|
|
1100
1105
|
* the same batch) uniformly across every entry point.
|
|
1101
|
-
*
|
|
1106
|
+
* 4. PAUSE/RESUME lock bookkeeping (C0) — update `_pauseLocks`,
|
|
1102
1107
|
* derive `_paused`, filter unknown-lockId RESUME, replay
|
|
1103
1108
|
* bufferAll buffer on final lock release.
|
|
1104
|
-
*
|
|
1109
|
+
* 5. Meta TEARDOWN fan-out — notify meta children before
|
|
1105
1110
|
* `_updateState`'s TEARDOWN branch calls `_deactivate`. Hoisted
|
|
1106
1111
|
* out of the walk to keep `_updateState` re-entrance-free.
|
|
1107
|
-
*
|
|
1112
|
+
* 6. `_updateState` — walk the batch in tier order, advancing
|
|
1108
1113
|
* `_cached` / `_status` / `_versioning` and running equals
|
|
1109
1114
|
* substitution on tier-3 DATA (§3.5.1). Returns
|
|
1110
1115
|
* `{finalMessages, equalsError?}`.
|
|
1111
|
-
*
|
|
1116
|
+
* 7. `downWithBatch` dispatch (or bufferAll capture if paused with
|
|
1112
1117
|
* `pausable: "resumeAll"`).
|
|
1113
|
-
*
|
|
1114
|
-
*
|
|
1115
|
-
* `node.down` / `node.emit` / `actions.down` / `actions.emit` all
|
|
1116
|
-
* converge here — the unified `_emit` waist (spec §1.3.1).
|
|
1118
|
+
* 8. Recursive ERROR emission if equals threw mid-walk.
|
|
1117
1119
|
*/
|
|
1118
1120
|
_emit(messages: Messages): void;
|
|
1119
1121
|
/**
|
|
@@ -559,7 +559,11 @@ declare function accessHintForGuard(guard: NodeGuard): string;
|
|
|
559
559
|
* contract. See SESSION-foundation-redesign.md §§1–10 for design history.
|
|
560
560
|
*/
|
|
561
561
|
|
|
562
|
-
/**
|
|
562
|
+
/**
|
|
563
|
+
* Lifecycle status of a node.
|
|
564
|
+
*
|
|
565
|
+
* @see GRAPHREFLY-SPEC.md §2.2
|
|
566
|
+
*/
|
|
563
567
|
type NodeStatus = "sentinel" | "pending" | "dirty" | "settled" | "resolved" | "completed" | "errored";
|
|
564
568
|
/** Callback that receives downstream message batches. */
|
|
565
569
|
type NodeSink = (messages: Messages) => void;
|
|
@@ -1083,37 +1087,35 @@ declare class NodeImpl<T = unknown> implements Node<T> {
|
|
|
1083
1087
|
private _frameBatch;
|
|
1084
1088
|
/**
|
|
1085
1089
|
* @internal The unified dispatch waist — one call = one wave.
|
|
1090
|
+
* See `GRAPHREFLY-SPEC.md` §1.3.1 for protocol context — the stages
|
|
1091
|
+
* below are the implementation order.
|
|
1086
1092
|
*
|
|
1087
1093
|
* Pipeline stages, in order:
|
|
1088
1094
|
*
|
|
1089
|
-
* 1.
|
|
1090
|
-
* 2. Terminal filter — post-COMPLETE/ERROR only TEARDOWN/INVALIDATE
|
|
1095
|
+
* 1. Terminal filter — post-COMPLETE/ERROR only TEARDOWN/INVALIDATE
|
|
1091
1096
|
* still propagate so graph teardown and cache-clear still work.
|
|
1092
|
-
*
|
|
1097
|
+
* 2. Tier sort (stable) — the batch can be in any order when it
|
|
1093
1098
|
* arrives; the walker downstream (`downWithBatch`) assumes
|
|
1094
1099
|
* ascending tier monotone, and so does `_updateState`'s tier-3
|
|
1095
1100
|
* slice walk. This is the single source of truth for ordering.
|
|
1096
|
-
*
|
|
1101
|
+
* 3. Synthetic DIRTY prefix — if a tier-3 payload is present, no
|
|
1097
1102
|
* DIRTY is already in the batch, and the node isn't already in
|
|
1098
1103
|
* `"dirty"` status, prepend `[DIRTY]` after any tier-0 START
|
|
1099
1104
|
* entries. Guarantees spec §1.3.1 (DIRTY precedes DATA within
|
|
1100
1105
|
* the same batch) uniformly across every entry point.
|
|
1101
|
-
*
|
|
1106
|
+
* 4. PAUSE/RESUME lock bookkeeping (C0) — update `_pauseLocks`,
|
|
1102
1107
|
* derive `_paused`, filter unknown-lockId RESUME, replay
|
|
1103
1108
|
* bufferAll buffer on final lock release.
|
|
1104
|
-
*
|
|
1109
|
+
* 5. Meta TEARDOWN fan-out — notify meta children before
|
|
1105
1110
|
* `_updateState`'s TEARDOWN branch calls `_deactivate`. Hoisted
|
|
1106
1111
|
* out of the walk to keep `_updateState` re-entrance-free.
|
|
1107
|
-
*
|
|
1112
|
+
* 6. `_updateState` — walk the batch in tier order, advancing
|
|
1108
1113
|
* `_cached` / `_status` / `_versioning` and running equals
|
|
1109
1114
|
* substitution on tier-3 DATA (§3.5.1). Returns
|
|
1110
1115
|
* `{finalMessages, equalsError?}`.
|
|
1111
|
-
*
|
|
1116
|
+
* 7. `downWithBatch` dispatch (or bufferAll capture if paused with
|
|
1112
1117
|
* `pausable: "resumeAll"`).
|
|
1113
|
-
*
|
|
1114
|
-
*
|
|
1115
|
-
* `node.down` / `node.emit` / `actions.down` / `actions.emit` all
|
|
1116
|
-
* converge here — the unified `_emit` waist (spec §1.3.1).
|
|
1118
|
+
* 8. Recursive ERROR emission if equals threw mid-walk.
|
|
1117
1119
|
*/
|
|
1118
1120
|
_emit(messages: Messages): void;
|
|
1119
1121
|
/**
|
|
@@ -1954,37 +1954,35 @@ var NodeImpl = class _NodeImpl {
|
|
|
1954
1954
|
// --- Emit pipeline ---
|
|
1955
1955
|
/**
|
|
1956
1956
|
* @internal The unified dispatch waist — one call = one wave.
|
|
1957
|
+
* See `GRAPHREFLY-SPEC.md` §1.3.1 for protocol context — the stages
|
|
1958
|
+
* below are the implementation order.
|
|
1957
1959
|
*
|
|
1958
1960
|
* Pipeline stages, in order:
|
|
1959
1961
|
*
|
|
1960
|
-
* 1.
|
|
1961
|
-
* 2. Terminal filter — post-COMPLETE/ERROR only TEARDOWN/INVALIDATE
|
|
1962
|
+
* 1. Terminal filter — post-COMPLETE/ERROR only TEARDOWN/INVALIDATE
|
|
1962
1963
|
* still propagate so graph teardown and cache-clear still work.
|
|
1963
|
-
*
|
|
1964
|
+
* 2. Tier sort (stable) — the batch can be in any order when it
|
|
1964
1965
|
* arrives; the walker downstream (`downWithBatch`) assumes
|
|
1965
1966
|
* ascending tier monotone, and so does `_updateState`'s tier-3
|
|
1966
1967
|
* slice walk. This is the single source of truth for ordering.
|
|
1967
|
-
*
|
|
1968
|
+
* 3. Synthetic DIRTY prefix — if a tier-3 payload is present, no
|
|
1968
1969
|
* DIRTY is already in the batch, and the node isn't already in
|
|
1969
1970
|
* `"dirty"` status, prepend `[DIRTY]` after any tier-0 START
|
|
1970
1971
|
* entries. Guarantees spec §1.3.1 (DIRTY precedes DATA within
|
|
1971
1972
|
* the same batch) uniformly across every entry point.
|
|
1972
|
-
*
|
|
1973
|
+
* 4. PAUSE/RESUME lock bookkeeping (C0) — update `_pauseLocks`,
|
|
1973
1974
|
* derive `_paused`, filter unknown-lockId RESUME, replay
|
|
1974
1975
|
* bufferAll buffer on final lock release.
|
|
1975
|
-
*
|
|
1976
|
+
* 5. Meta TEARDOWN fan-out — notify meta children before
|
|
1976
1977
|
* `_updateState`'s TEARDOWN branch calls `_deactivate`. Hoisted
|
|
1977
1978
|
* out of the walk to keep `_updateState` re-entrance-free.
|
|
1978
|
-
*
|
|
1979
|
+
* 6. `_updateState` — walk the batch in tier order, advancing
|
|
1979
1980
|
* `_cached` / `_status` / `_versioning` and running equals
|
|
1980
1981
|
* substitution on tier-3 DATA (§3.5.1). Returns
|
|
1981
1982
|
* `{finalMessages, equalsError?}`.
|
|
1982
|
-
*
|
|
1983
|
+
* 7. `downWithBatch` dispatch (or bufferAll capture if paused with
|
|
1983
1984
|
* `pausable: "resumeAll"`).
|
|
1984
|
-
*
|
|
1985
|
-
*
|
|
1986
|
-
* `node.down` / `node.emit` / `actions.down` / `actions.emit` all
|
|
1987
|
-
* converge here — the unified `_emit` waist (spec §1.3.1).
|
|
1985
|
+
* 8. Recursive ERROR emission if equals threw mid-walk.
|
|
1988
1986
|
*/
|
|
1989
1987
|
_emit(messages) {
|
|
1990
1988
|
if (messages.length === 0) return;
|