@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.
Files changed (76) hide show
  1. package/dist/{chunk-NZMBRXQV.js → chunk-5DJTTKX3.js} +11 -13
  2. package/dist/chunk-5DJTTKX3.js.map +1 -0
  3. package/dist/{chunk-XTLYW4FR.js → chunk-5WGT55R4.js} +4 -4
  4. package/dist/{chunk-CWYPA63G.js → chunk-AOCBDH4T.js} +2 -2
  5. package/dist/{chunk-HVBX5KIW.js → chunk-H4RVA4VE.js} +2 -2
  6. package/dist/{chunk-32N5A454.js → chunk-HWPIFSW2.js} +2 -2
  7. package/dist/chunk-HWPIFSW2.js.map +1 -0
  8. package/dist/{chunk-PNUZM7PC.js → chunk-IPLKX3L2.js} +6 -6
  9. package/dist/{chunk-2GQLMQVJ.js → chunk-MW4VAKAO.js} +3 -3
  10. package/dist/{chunk-JFONSPNF.js → chunk-PY4XCDLR.js} +2 -2
  11. package/dist/{chunk-263BEJJO.js → chunk-QOWVNWOC.js} +3 -3
  12. package/dist/{chunk-PX6PDUJ5.js → chunk-TDEXAMGO.js} +4 -4
  13. package/dist/{chunk-PX6PDUJ5.js.map → chunk-TDEXAMGO.js.map} +1 -1
  14. package/dist/{chunk-XRFJJ2IU.js → chunk-XOFWRC73.js} +3 -3
  15. package/dist/compat/nestjs/index.cjs +10 -12
  16. package/dist/compat/nestjs/index.cjs.map +1 -1
  17. package/dist/compat/nestjs/index.d.cts +6 -6
  18. package/dist/compat/nestjs/index.d.ts +6 -6
  19. package/dist/compat/nestjs/index.js +9 -9
  20. package/dist/core/index.cjs +10 -12
  21. package/dist/core/index.cjs.map +1 -1
  22. package/dist/core/index.d.cts +3 -3
  23. package/dist/core/index.d.ts +3 -3
  24. package/dist/core/index.js +3 -3
  25. package/dist/extra/index.cjs +10 -12
  26. package/dist/extra/index.cjs.map +1 -1
  27. package/dist/extra/index.d.cts +4 -4
  28. package/dist/extra/index.d.ts +4 -4
  29. package/dist/extra/index.js +4 -4
  30. package/dist/graph/index.cjs +10 -12
  31. package/dist/graph/index.cjs.map +1 -1
  32. package/dist/graph/index.d.cts +5 -5
  33. package/dist/graph/index.d.ts +5 -5
  34. package/dist/graph/index.js +4 -4
  35. package/dist/{graph-CEO2FkLY.d.ts → graph-B6NFqv3z.d.ts} +3 -3
  36. package/dist/{graph-BtdSRHUc.d.cts → graph-D-3JIQme.d.cts} +3 -3
  37. package/dist/{index-B0tfuXwV.d.cts → index-1z8vRTCt.d.cts} +3 -3
  38. package/dist/{index-BFGjXbiP.d.cts → index-AMWewNDe.d.cts} +2 -2
  39. package/dist/{index-BUj3ASVe.d.cts → index-BJB7t9gg.d.cts} +10 -24
  40. package/dist/{index-RXN94sHK.d.ts → index-BysCTzJz.d.ts} +3 -3
  41. package/dist/{index-DSPc5rkv.d.ts → index-C-TXEa7C.d.ts} +10 -24
  42. package/dist/{index-CkElcUY6.d.ts → index-CYkjxu3s.d.ts} +2 -2
  43. package/dist/{index-jEtF4N7L.d.ts → index-D7XgsUt7.d.ts} +2 -2
  44. package/dist/{index-DgscL7v0.d.ts → index-DiobMNwE.d.ts} +3 -3
  45. package/dist/{index-BPlWVAKY.d.cts → index-J7Kc0oIQ.d.cts} +3 -3
  46. package/dist/{index-C59uSJAH.d.cts → index-b5BYtczN.d.cts} +2 -2
  47. package/dist/index.cjs +20 -32
  48. package/dist/index.cjs.map +1 -1
  49. package/dist/index.d.cts +15 -15
  50. package/dist/index.d.ts +15 -15
  51. package/dist/index.js +21 -31
  52. package/dist/index.js.map +1 -1
  53. package/dist/{meta-3QjzotRv.d.ts → meta-CnkLA_43.d.ts} +1 -1
  54. package/dist/{meta-B-Lbs4-O.d.cts → meta-DWbkoq1s.d.cts} +1 -1
  55. package/dist/{node-C7PD3sn9.d.cts → node-B-f-Lu-k.d.cts} +15 -13
  56. package/dist/{node-C7PD3sn9.d.ts → node-B-f-Lu-k.d.ts} +15 -13
  57. package/dist/{observable-axpzv1K2.d.cts → observable-DBnrwcar.d.cts} +1 -1
  58. package/dist/{observable-EyO-moQY.d.ts → observable-uP-wy_uK.d.ts} +1 -1
  59. package/dist/patterns/reactive-layout/index.cjs +10 -12
  60. package/dist/patterns/reactive-layout/index.cjs.map +1 -1
  61. package/dist/patterns/reactive-layout/index.d.cts +5 -5
  62. package/dist/patterns/reactive-layout/index.d.ts +5 -5
  63. package/dist/patterns/reactive-layout/index.js +6 -6
  64. package/dist/{storage-DIgAr7M_.d.cts → storage-BuTdpCI1.d.cts} +1 -1
  65. package/dist/{storage-CHT5WE9m.d.ts → storage-F2X1U1x0.d.ts} +1 -1
  66. package/package.json +2 -2
  67. package/dist/chunk-32N5A454.js.map +0 -1
  68. package/dist/chunk-NZMBRXQV.js.map +0 -1
  69. /package/dist/{chunk-XTLYW4FR.js.map → chunk-5WGT55R4.js.map} +0 -0
  70. /package/dist/{chunk-CWYPA63G.js.map → chunk-AOCBDH4T.js.map} +0 -0
  71. /package/dist/{chunk-HVBX5KIW.js.map → chunk-H4RVA4VE.js.map} +0 -0
  72. /package/dist/{chunk-PNUZM7PC.js.map → chunk-IPLKX3L2.js.map} +0 -0
  73. /package/dist/{chunk-2GQLMQVJ.js.map → chunk-MW4VAKAO.js.map} +0 -0
  74. /package/dist/{chunk-JFONSPNF.js.map → chunk-PY4XCDLR.js.map} +0 -0
  75. /package/dist/{chunk-263BEJJO.js.map → chunk-QOWVNWOC.js.map} +0 -0
  76. /package/dist/{chunk-XRFJJ2IU.js.map → chunk-XOFWRC73.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  createWatermarkController,
4
4
  reactiveLog,
5
5
  toObservable
6
- } from "./chunk-JFONSPNF.js";
6
+ } from "./chunk-PY4XCDLR.js";
7
7
  import {
8
8
  cached,
9
9
  empty,
@@ -32,7 +32,7 @@ import {
32
32
  shareReplay,
33
33
  throwError,
34
34
  toArray
35
- } from "./chunk-CWYPA63G.js";
35
+ } from "./chunk-AOCBDH4T.js";
36
36
  import {
37
37
  ResettableTimer,
38
38
  RingBuffer
@@ -59,7 +59,7 @@ import {
59
59
  producer,
60
60
  state,
61
61
  wallClockNs
62
- } from "./chunk-NZMBRXQV.js";
62
+ } from "./chunk-5DJTTKX3.js";
63
63
 
64
64
  // src/extra/index.ts
65
65
  var extra_exports = {};
@@ -6826,4 +6826,4 @@ export {
6826
6826
  workerSelf,
6827
6827
  extra_exports
6828
6828
  };
6829
- //# sourceMappingURL=chunk-XTLYW4FR.js.map
6829
+ //# sourceMappingURL=chunk-5WGT55R4.js.map
@@ -8,7 +8,7 @@ import {
8
8
  producer,
9
9
  state,
10
10
  wallClockNs
11
- } from "./chunk-NZMBRXQV.js";
11
+ } from "./chunk-5DJTTKX3.js";
12
12
 
13
13
  // src/extra/cron.ts
14
14
  function parseField(field, min, max) {
@@ -623,4 +623,4 @@ export {
623
623
  keepalive,
624
624
  reactiveCounter
625
625
  };
626
- //# sourceMappingURL=chunk-CWYPA63G.js.map
626
+ //# sourceMappingURL=chunk-AOCBDH4T.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  NodeImpl,
3
3
  accessHintForGuard
4
- } from "./chunk-NZMBRXQV.js";
4
+ } from "./chunk-5DJTTKX3.js";
5
5
 
6
6
  // src/core/meta.ts
7
7
  function resolveDescribeFields(detail, fields) {
@@ -95,4 +95,4 @@ export {
95
95
  resolveDescribeFields,
96
96
  describeNode
97
97
  };
98
- //# sourceMappingURL=chunk-HVBX5KIW.js.map
98
+ //# sourceMappingURL=chunk-H4RVA4VE.js.map
@@ -3,7 +3,7 @@ import {
3
3
  DIRTY,
4
4
  defaultConfig,
5
5
  downWithBatch
6
- } from "./chunk-NZMBRXQV.js";
6
+ } from "./chunk-5DJTTKX3.js";
7
7
 
8
8
  // src/patterns/_internal.ts
9
9
  function emitToMeta(metaNode, value) {
@@ -33,4 +33,4 @@ export {
33
33
  domainMeta,
34
34
  trackingKey
35
35
  };
36
- //# sourceMappingURL=chunk-32N5A454.js.map
36
+ //# sourceMappingURL=chunk-HWPIFSW2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/patterns/_internal.ts"],"sourcesContent":["/**\n * Shared internal utilities for the patterns layer.\n *\n * These are private helpers used across multiple pattern modules. They are NOT\n * part of the public API — import from `./patterns/index.js` for public exports.\n *\n * General-purpose reactive utilities (`keepalive`, `reactiveCounter`) live in\n * `extra/sources.ts` and are re-exported here for convenience.\n *\n * @internal\n * @module\n */\n\nimport { downWithBatch } from \"../core/batch.js\";\nimport { DATA, DIRTY } from \"../core/messages.js\";\nimport type { Node } from \"../core/node.js\";\nimport { defaultConfig } from \"../core/node.js\";\n\n// Re-export general-purpose utilities from extra (canonical home).\nexport { keepalive, reactiveCounter } from \"../extra/sources.js\";\n\n// ---------------------------------------------------------------------------\n// emitToMeta\n// ---------------------------------------------------------------------------\n\n/**\n * Forward a single `[DATA, value]` to a meta companion node via tier-3\n * deferral, tolerating absent companions. Used by patterns that publish\n * per-wave statistics alongside their main output (cache-hit-rate,\n * segment-count, layout-time-ns, etc.) — subscribers see the parent's\n * DATA first because phase-2 completes before phase-3 during drain.\n *\n * // Expands to: `if (meta) downWithBatch(meta, [[Type, value]])` with null-guard.\n *\n * @internal\n */\nexport function emitToMeta<T>(metaNode: Node<T> | undefined, value: T): void {\n\tif (metaNode == null) return;\n\tdownWithBatch((msgs) => metaNode.down(msgs), [[DATA, value]], defaultConfig.tierOf);\n}\n\n// ---------------------------------------------------------------------------\n// tryIncrementBounded\n// ---------------------------------------------------------------------------\n\n/**\n * Bounded increment for a self-owned counter state node.\n *\n * Reads `counter.cache`, bumps by 1 if under `cap`, writes back. Returns\n * `false` when the cap is reached. Documented P3 exception: the counter is\n * not a declared dep of the caller — it's a private budget read+written from\n * a single call site. This helper keeps the `.cache` access in one named\n * place.\n *\n * **Safety today:**\n * 1. Single-threaded JS runner never invokes the caller concurrently.\n * 2. `counter.down` writes the cache synchronously before returning, so\n * synchronous re-entry through a downstream publish reads the\n * freshly-incremented value — no double-count.\n *\n * **Future risk:** under a free-threaded runner (PY no-GIL or hypothetical\n * concurrent TS runner), two concurrent firings could still race. Revisit\n * when that surfaces.\n *\n * @internal\n */\nexport function tryIncrementBounded(counter: Node<number>, cap: number): boolean {\n\tconst cur = (counter.cache as number | undefined) ?? 0;\n\tif (cur >= cap) return false;\n\tcounter.down([[DIRTY], [DATA, cur + 1]]);\n\treturn true;\n}\n\n// ---------------------------------------------------------------------------\n// domainMeta\n// ---------------------------------------------------------------------------\n\n/**\n * Build a domain metadata object for pattern-layer nodes.\n *\n * Each domain (orchestration, messaging, reduction, ai, cqrs, domain_template)\n * follows the same shape: `{ [domain]: true, [domain]_type: kind, ...extra }`.\n *\n * @param domain - The domain tag (e.g. `\"orchestration\"`, `\"ai\"`, `\"cqrs\"`).\n * @param kind - The specific type within the domain (e.g. `\"gate\"`, `\"prompt\"`).\n * @param extra - Additional metadata to merge.\n * @returns Metadata object.\n *\n * @internal\n */\nexport function domainMeta(\n\tdomain: string,\n\tkind: string,\n\textra?: Record<string, unknown>,\n): Record<string, unknown> {\n\treturn {\n\t\t[domain]: true,\n\t\t[`${domain}_type`]: kind,\n\t\t...(extra ?? {}),\n\t};\n}\n\n// ---------------------------------------------------------------------------\n// trackingKey\n// ---------------------------------------------------------------------------\n\n/**\n * Stable tracking key for an item with retry/reingestion decoration.\n *\n * Uses `relatedTo[0]` if present (carries the original key forward through\n * retries and reingestions). Falls back to `summary` for first-time items.\n *\n * This avoids deriving keys from mutated summary strings — retries decorate\n * the summary with `[RETRY N/M]` and failure context, so regex-stripping\n * would be fragile and any new decoration pattern would risk infinite loops\n * by generating novel keys.\n *\n * @internal\n */\nexport function trackingKey(item: { summary: string; relatedTo?: string[] }): string {\n\treturn item.relatedTo?.[0] ?? item.summary;\n}\n"],"mappings":";;;;;;;;AAoCO,SAAS,WAAc,UAA+B,OAAgB;AAC5E,MAAI,YAAY,KAAM;AACtB,gBAAc,CAAC,SAAS,SAAS,KAAK,IAAI,GAAG,CAAC,CAAC,MAAM,KAAK,CAAC,GAAG,cAAc,MAAM;AACnF;AA2BO,SAAS,oBAAoB,SAAuB,KAAsB;AAChF,QAAM,MAAO,QAAQ,SAAgC;AACrD,MAAI,OAAO,IAAK,QAAO;AACvB,UAAQ,KAAK,CAAC,CAAC,KAAK,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC;AACvC,SAAO;AACR;AAmBO,SAAS,WACf,QACA,MACA,OAC0B;AAC1B,SAAO;AAAA,IACN,CAAC,MAAM,GAAG;AAAA,IACV,CAAC,GAAG,MAAM,OAAO,GAAG;AAAA,IACpB,GAAI,SAAS,CAAC;AAAA,EACf;AACD;AAmBO,SAAS,YAAY,MAAyD;AACpF,SAAO,KAAK,YAAY,CAAC,KAAK,KAAK;AACpC;","names":[]}
@@ -2,18 +2,18 @@ import {
2
2
  createWatermarkController,
3
3
  reactiveLog,
4
4
  toObservable
5
- } from "./chunk-JFONSPNF.js";
5
+ } from "./chunk-PY4XCDLR.js";
6
6
  import {
7
7
  domainMeta
8
- } from "./chunk-32N5A454.js";
8
+ } from "./chunk-HWPIFSW2.js";
9
9
  import {
10
10
  fromCron,
11
11
  fromTimer,
12
12
  keepalive
13
- } from "./chunk-CWYPA63G.js";
13
+ } from "./chunk-AOCBDH4T.js";
14
14
  import {
15
15
  Graph
16
- } from "./chunk-XRFJJ2IU.js";
16
+ } from "./chunk-XOFWRC73.js";
17
17
  import {
18
18
  COMPLETE,
19
19
  DATA,
@@ -31,7 +31,7 @@ import {
31
31
  policy,
32
32
  state,
33
33
  wallClockNs
34
- } from "./chunk-NZMBRXQV.js";
34
+ } from "./chunk-5DJTTKX3.js";
35
35
 
36
36
  // src/compat/nestjs/index.ts
37
37
  var nestjs_exports = {};
@@ -1364,4 +1364,4 @@ export {
1364
1364
  GraphReflyModule,
1365
1365
  nestjs_exports
1366
1366
  };
1367
- //# sourceMappingURL=chunk-PNUZM7PC.js.map
1367
+ //# sourceMappingURL=chunk-IPLKX3L2.js.map
@@ -7,7 +7,7 @@ import {
7
7
  graphProfile,
8
8
  reachable,
9
9
  sizeof
10
- } from "./chunk-XRFJJ2IU.js";
10
+ } from "./chunk-XOFWRC73.js";
11
11
  import {
12
12
  ENVELOPE_VERSION,
13
13
  JsonCodec,
@@ -18,7 +18,7 @@ import {
18
18
  encodeEnvelope,
19
19
  registerBuiltinCodecs,
20
20
  replayWAL
21
- } from "./chunk-NZMBRXQV.js";
21
+ } from "./chunk-5DJTTKX3.js";
22
22
 
23
23
  // src/graph/index.ts
24
24
  var graph_exports = {};
@@ -44,4 +44,4 @@ __export(graph_exports, {
44
44
  export {
45
45
  graph_exports
46
46
  };
47
- //# sourceMappingURL=chunk-2GQLMQVJ.js.map
47
+ //# sourceMappingURL=chunk-MW4VAKAO.js.map
@@ -8,7 +8,7 @@ import {
8
8
  batch,
9
9
  derived,
10
10
  state
11
- } from "./chunk-NZMBRXQV.js";
11
+ } from "./chunk-5DJTTKX3.js";
12
12
 
13
13
  // src/extra/observable.ts
14
14
  import { Observable } from "rxjs";
@@ -388,4 +388,4 @@ export {
388
388
  NativeLogBackend,
389
389
  reactiveLog
390
390
  };
391
- //# sourceMappingURL=chunk-JFONSPNF.js.map
391
+ //# sourceMappingURL=chunk-PY4XCDLR.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveDescribeFields
3
- } from "./chunk-HVBX5KIW.js";
3
+ } from "./chunk-H4RVA4VE.js";
4
4
  import {
5
5
  COMPLETE,
6
6
  COMPLETE_MSG,
@@ -52,7 +52,7 @@ import {
52
52
  registerBuiltins,
53
53
  state,
54
54
  wallClockNs
55
- } from "./chunk-NZMBRXQV.js";
55
+ } from "./chunk-5DJTTKX3.js";
56
56
 
57
57
  // src/core/index.ts
58
58
  var core_exports = {};
@@ -112,4 +112,4 @@ __export(core_exports, {
112
112
  export {
113
113
  core_exports
114
114
  };
115
- //# sourceMappingURL=chunk-263BEJJO.js.map
115
+ //# sourceMappingURL=chunk-QOWVNWOC.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  emitToMeta
3
- } from "./chunk-32N5A454.js";
3
+ } from "./chunk-HWPIFSW2.js";
4
4
  import {
5
5
  Graph
6
- } from "./chunk-XRFJJ2IU.js";
6
+ } from "./chunk-XOFWRC73.js";
7
7
  import {
8
8
  __export,
9
9
  derived,
10
10
  monotonicNs,
11
11
  node,
12
12
  state
13
- } from "./chunk-NZMBRXQV.js";
13
+ } from "./chunk-5DJTTKX3.js";
14
14
 
15
15
  // src/patterns/reactive-layout/index.ts
16
16
  var reactive_layout_exports = {};
@@ -1078,4 +1078,4 @@ export {
1078
1078
  reactiveBlockLayout,
1079
1079
  reactive_layout_exports
1080
1080
  };
1081
- //# sourceMappingURL=chunk-PX6PDUJ5.js.map
1081
+ //# sourceMappingURL=chunk-TDEXAMGO.js.map