@graphrefly/graphrefly 0.31.0 → 0.32.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-2JNT5NDF.js +61 -0
- package/dist/{chunk-KN4Q5MQO.js → chunk-2RH4QNDQ.js} +1 -1
- package/dist/chunk-4JBKKUCJ.js +7 -0
- package/dist/{chunk-WLPVGXQ6.js → chunk-4YGJ7KZ6.js} +1 -1
- package/dist/{chunk-3Q2WXM6X.js → chunk-5PBXUVHI.js} +1 -1
- package/dist/{chunk-WYJTXYWX.js → chunk-7EMUF2RY.js} +1 -1
- package/dist/chunk-7JZ3YORY.js +80 -0
- package/dist/{chunk-I4U3TPK2.js → chunk-7QS77X6G.js} +1 -1
- package/dist/{chunk-ZM7C2FUM.js → chunk-BU4SUZSA.js} +1 -1
- package/dist/{chunk-GF5T7PGC.js → chunk-CNXUW2CU.js} +1 -1
- package/dist/{chunk-Z3UWIJ3A.js → chunk-EIFHFDFD.js} +1 -1
- package/dist/{chunk-3JRKP4BH.js → chunk-JAHAJU4G.js} +1 -1
- package/dist/{chunk-4ZPO2EL5.js → chunk-JYMNVEH6.js} +1 -1
- package/dist/{chunk-4KAUNEKV.js → chunk-KD3IYBTD.js} +1 -1
- package/dist/{chunk-X2VHDT26.js → chunk-LG73TUF4.js} +2 -2
- package/dist/{chunk-JXRZXP3N.js → chunk-LJGPOJHS.js} +1 -1
- package/dist/{chunk-YQJPYEAL.js → chunk-M2VFLRPJ.js} +1 -1
- package/dist/{chunk-7EQPXQ7H.js → chunk-MFNOZ5E6.js} +1 -1
- package/dist/{chunk-YZ6VYLFD.js → chunk-PWKLZ2XU.js} +1 -1
- package/dist/{chunk-OKQUPJRY.js → chunk-TOCCHQI6.js} +1 -1
- package/dist/{chunk-PZP4MEXK.js → chunk-UXEB35L4.js} +1 -1
- package/dist/{chunk-EBQ6FXKW.js → chunk-VXJX3ZZP.js} +1 -1
- package/dist/{chunk-7EJTWGKW.js → chunk-WE32AFFA.js} +1 -1
- package/dist/{chunk-JMGGCSIC.js → chunk-WF3V5X2L.js} +1 -1
- package/dist/{chunk-YZKGGMPT.js → chunk-X4OOM6QU.js} +1 -1
- package/dist/{chunk-5LJAQTSS.js → chunk-ZWETYYQG.js} +1 -1
- package/dist/compat/index.cjs +1 -1
- package/dist/compat/index.d.cts +5 -5
- package/dist/compat/index.d.ts +5 -5
- package/dist/compat/index.js +1 -1
- package/dist/compat/nestjs/index.cjs +1 -1
- package/dist/compat/nestjs/index.d.cts +3 -3
- package/dist/compat/nestjs/index.d.ts +3 -3
- package/dist/compat/nestjs/index.js +1 -1
- package/dist/compat/zustand/index.cjs +1 -1
- package/dist/compat/zustand/index.d.cts +2 -2
- package/dist/compat/zustand/index.d.ts +2 -2
- package/dist/compat/zustand/index.js +1 -1
- package/dist/extra/index.cjs +1 -1
- package/dist/extra/index.d.cts +2 -2
- package/dist/extra/index.d.ts +2 -2
- package/dist/extra/index.js +1 -1
- package/dist/graph/index.cjs +1 -1
- package/dist/graph/index.d.cts +3 -3
- package/dist/graph/index.d.ts +3 -3
- package/dist/graph/index.js +1 -1
- package/dist/{graph-CWeI0aHd.d.ts → graph-BOhEGJ6E.d.ts} +10 -0
- package/dist/{graph-C4Uxwv0T.d.cts → graph-CdJeX7O7.d.cts} +10 -0
- package/dist/{index-B-z8WaSd.d.cts → index-BDLy6CQ9.d.cts} +1 -1
- package/dist/{index-iBp74eGU.d.cts → index-BJDXj9Wf.d.cts} +2 -2
- package/dist/{index-BBINVimG.d.ts → index-BUZPTPSQ.d.ts} +2 -2
- package/dist/{index-DnrZghBB.d.ts → index-BbcSZCAG.d.ts} +1 -1
- package/dist/{index-lKuLYmHO.d.cts → index-BiGeETJs.d.cts} +1 -1
- package/dist/{index-Dm3_D5Ta.d.cts → index-BmZb8fNF.d.cts} +2 -2
- package/dist/{index-Docdiu9a.d.ts → index-Bnmttu35.d.ts} +1 -1
- package/dist/{index-CZChc85Q.d.cts → index-BuN2wGJs.d.cts} +297 -22
- package/dist/{index-Cy7eFeIX.d.cts → index-BwdPDWI4.d.cts} +1 -1
- package/dist/{index-DylQCKEL.d.cts → index-BzxU4yhV.d.cts} +11 -2
- package/dist/{index-D9Y_u6BG.d.cts → index-C-Gsh-0a.d.cts} +2 -2
- package/dist/{index-DD7RhHNJ.d.cts → index-C22aTC1X.d.cts} +4 -4
- package/dist/{index-yIdWFo2b.d.cts → index-C4QTaDli.d.cts} +2 -2
- package/dist/{index-CJymKyzT.d.ts → index-C7RqYbOZ.d.ts} +1 -1
- package/dist/{index-C5Ghnp5B.d.ts → index-C9qCLIN4.d.ts} +2 -2
- package/dist/{index-DVNLe3pS.d.cts → index-CCdg0JLX.d.cts} +1 -1
- package/dist/{index-B5iVOD7w.d.ts → index-CEoU-r-g.d.ts} +2 -2
- package/dist/{index-CfFYyLR8.d.ts → index-CHfBm51k.d.ts} +11 -2
- package/dist/{index-BXzl1NDD.d.ts → index-CNyiYQWF.d.ts} +4 -4
- package/dist/{index-C6NBfXj-.d.ts → index-CVevMZ0n.d.ts} +2 -2
- package/dist/{index-DGb1awva.d.ts → index-CZUzi6Dy.d.ts} +2 -2
- package/dist/{index-FrYrV-Vf.d.ts → index-Ckl03Q0s.d.ts} +1 -1
- package/dist/{index-Bvi5uJxX.d.ts → index-CmSjld-4.d.ts} +1 -1
- package/dist/{index-9iguV3bF.d.cts → index-CnjUhRbs.d.cts} +2 -2
- package/dist/{index-C98oJsEs.d.cts → index-D3HcdZ4d.d.cts} +1 -1
- package/dist/{index-IZ3l_vQ9.d.ts → index-DD1czHj3.d.ts} +1 -1
- package/dist/{index-gJQqJTKx.d.cts → index-DNhTQReY.d.cts} +1 -1
- package/dist/{index-UZO988ox.d.cts → index-DSawGt8n.d.cts} +2 -2
- package/dist/{index-CcpEvuPl.d.cts → index-DUkuH3jP.d.cts} +1 -1
- package/dist/{index-CRAkoq-y.d.cts → index-DY2QbdoP.d.cts} +1 -1
- package/dist/{index-CvS9IuTG.d.ts → index-Dbmj0iYR.d.ts} +1 -1
- package/dist/{index-Bd6oFZqO.d.ts → index-DhlAMlm9.d.ts} +297 -22
- package/dist/{index-BMe3pCom.d.cts → index-DlGaEBW5.d.cts} +2 -2
- package/dist/{index-CotRMjtJ.d.ts → index-Dp_pS7Bw.d.ts} +1 -1
- package/dist/{index-DxMS0cHM.d.ts → index-Dxk-pUQI.d.ts} +2 -2
- package/dist/{index-DBQUKh59.d.cts → index-EGjF6iSY.d.cts} +3 -3
- package/dist/{index-D9HrBx2J.d.ts → index-LGzAYqdR.d.ts} +1 -1
- package/dist/{index-DR3gf_DG.d.cts → index-LzCJ0kMT.d.cts} +2 -2
- package/dist/{index-RQg6lTrN.d.ts → index-MV2yGIAq.d.ts} +2 -2
- package/dist/{index-Bs3-LC83.d.cts → index-_BXz9K7b.d.cts} +1 -1
- package/dist/{index-SSGqF8mI.d.cts → index-aBqZUx3B.d.cts} +1 -1
- package/dist/{index-CFW32Dy1.d.ts → index-eYHRkoK-.d.ts} +1 -1
- package/dist/{index-CwhcFzTA.d.ts → index-gXTVbSax.d.ts} +2 -2
- package/dist/{index-D-kHVedZ.d.cts → index-j33Lfb1G.d.cts} +22 -1
- package/dist/{index-BEpRsvhg.d.ts → index-lpGUhTBn.d.ts} +3 -3
- package/dist/{index-CcS0t-l2.d.ts → index-zMQIQuDu.d.ts} +22 -1
- package/dist/index.cjs +53 -50
- package/dist/index.d.cts +26 -26
- package/dist/index.d.ts +26 -26
- package/dist/index.js +1 -1
- package/dist/patterns/ai/index.cjs +21 -18
- package/dist/patterns/ai/index.d.cts +6 -6
- package/dist/patterns/ai/index.d.ts +6 -6
- package/dist/patterns/ai/index.js +1 -1
- package/dist/patterns/audit/index.cjs +1 -1
- package/dist/patterns/audit/index.d.cts +3 -3
- package/dist/patterns/audit/index.d.ts +3 -3
- package/dist/patterns/audit/index.js +1 -1
- package/dist/patterns/cqrs/index.cjs +1 -1
- package/dist/patterns/cqrs/index.d.cts +2 -2
- package/dist/patterns/cqrs/index.d.ts +2 -2
- package/dist/patterns/cqrs/index.js +1 -1
- package/dist/patterns/demo-shell/index.cjs +1 -1
- package/dist/patterns/demo-shell/index.d.cts +3 -3
- package/dist/patterns/demo-shell/index.d.ts +3 -3
- package/dist/patterns/demo-shell/index.js +1 -1
- package/dist/patterns/domain-templates/index.cjs +5 -5
- package/dist/patterns/domain-templates/index.d.cts +2 -2
- package/dist/patterns/domain-templates/index.d.ts +2 -2
- package/dist/patterns/domain-templates/index.js +1 -1
- package/dist/patterns/graphspec/index.cjs +27 -25
- package/dist/patterns/graphspec/index.d.cts +2 -2
- package/dist/patterns/graphspec/index.d.ts +2 -2
- package/dist/patterns/graphspec/index.js +1 -1
- package/dist/patterns/guarded-execution/index.cjs +5 -5
- package/dist/patterns/guarded-execution/index.d.cts +4 -4
- package/dist/patterns/guarded-execution/index.d.ts +4 -4
- package/dist/patterns/guarded-execution/index.js +1 -1
- package/dist/patterns/harness/index.cjs +12 -11
- package/dist/patterns/harness/index.d.cts +5 -5
- package/dist/patterns/harness/index.d.ts +5 -5
- package/dist/patterns/harness/index.js +1 -1
- package/dist/patterns/job-queue/index.cjs +1 -1
- package/dist/patterns/job-queue/index.d.cts +2 -2
- package/dist/patterns/job-queue/index.d.ts +2 -2
- package/dist/patterns/job-queue/index.js +1 -1
- package/dist/patterns/lens/index.cjs +1 -1
- package/dist/patterns/lens/index.d.cts +3 -3
- package/dist/patterns/lens/index.d.ts +3 -3
- package/dist/patterns/lens/index.js +1 -1
- package/dist/patterns/memory/index.cjs +1 -1
- package/dist/patterns/memory/index.d.cts +2 -2
- package/dist/patterns/memory/index.d.ts +2 -2
- package/dist/patterns/memory/index.js +1 -1
- package/dist/patterns/messaging/index.cjs +1 -1
- package/dist/patterns/messaging/index.d.cts +2 -2
- package/dist/patterns/messaging/index.d.ts +2 -2
- package/dist/patterns/messaging/index.js +1 -1
- package/dist/patterns/orchestration/index.cjs +7 -7
- package/dist/patterns/orchestration/index.d.cts +2 -2
- package/dist/patterns/orchestration/index.d.ts +2 -2
- package/dist/patterns/orchestration/index.js +1 -1
- package/dist/patterns/reactive-layout/index.cjs +1 -1
- package/dist/patterns/reactive-layout/index.d.cts +3 -3
- package/dist/patterns/reactive-layout/index.d.ts +3 -3
- package/dist/patterns/reactive-layout/index.js +1 -1
- package/dist/patterns/reduction/index.cjs +1 -1
- package/dist/patterns/reduction/index.d.cts +2 -2
- package/dist/patterns/reduction/index.d.ts +2 -2
- package/dist/patterns/reduction/index.js +1 -1
- package/dist/patterns/refine-loop/index.cjs +3 -3
- package/dist/patterns/refine-loop/index.d.cts +3 -3
- package/dist/patterns/refine-loop/index.d.ts +3 -3
- package/dist/patterns/refine-loop/index.js +1 -1
- package/dist/patterns/resilient-pipeline/index.d.cts +3 -3
- package/dist/patterns/resilient-pipeline/index.d.ts +3 -3
- package/dist/patterns/resilient-pipeline/index.js +1 -1
- package/dist/patterns/surface/index.cjs +15 -13
- package/dist/patterns/surface/index.d.cts +3 -3
- package/dist/patterns/surface/index.d.ts +3 -3
- package/dist/patterns/surface/index.js +1 -1
- package/dist/{reactive-layout-BAr6-_o5.d.ts → reactive-layout-Bq0rA2Wb.d.ts} +1 -1
- package/dist/{reactive-layout-5oEn8lHM.d.cts → reactive-layout-Dhhe54Oj.d.cts} +1 -1
- package/dist/{topology-tree-CVREibAc.d.cts → topology-tree-CpSjvIXp.d.cts} +1 -1
- package/dist/{topology-tree-CkjojcB6.d.ts → topology-tree-DAbCV2Yw.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-ASDKRNOJ.js +0 -60
- package/dist/chunk-PSQNYY72.js +0 -7
- package/dist/chunk-XEFAMCEA.js +0 -78
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as Node } from './node-BVV7G1bq.js';
|
|
2
2
|
import { R as ReactiveMapBundle } from './reactive-map-CtRaCddO.js';
|
|
3
|
-
import { a as GraphOptions, G as Graph, C as CausalChain } from './graph-
|
|
4
|
-
import { w as watchTopologyTree } from './topology-tree-
|
|
3
|
+
import { a as GraphOptions, G as Graph, C as CausalChain } from './graph-BOhEGJ6E.js';
|
|
4
|
+
import { w as watchTopologyTree } from './topology-tree-DAbCV2Yw.js';
|
|
5
5
|
|
|
6
6
|
/** Aggregate topology stats emitted by {@link LensGraph.stats}. */
|
|
7
7
|
interface TopologyStats {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as Node } from './node-BVV7G1bq.cjs';
|
|
2
|
-
import { G as Graph } from './graph-
|
|
2
|
+
import { G as Graph } from './graph-CdJeX7O7.cjs';
|
|
3
3
|
import { L as LLMAdapter } from './types-BgMqbc7N.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -163,6 +163,14 @@ declare function validateSpecAgainstCatalog(spec: GraphSpec, catalog: GraphSpecC
|
|
|
163
163
|
type GraphSpecValidation = {
|
|
164
164
|
valid: boolean;
|
|
165
165
|
errors: string[];
|
|
166
|
+
/**
|
|
167
|
+
* Non-fatal advisories. Currently includes feedback edges whose `from`
|
|
168
|
+
* refers to an `effect` node (effects produce no DATA — the feedback
|
|
169
|
+
* counter will never advance). Always present (empty array when nothing
|
|
170
|
+
* is flagged) — symmetry with `errors` so callers can read
|
|
171
|
+
* `result.warnings.length` without a null check.
|
|
172
|
+
*/
|
|
173
|
+
warnings: string[];
|
|
166
174
|
};
|
|
167
175
|
/**
|
|
168
176
|
* Validate a GraphSpec JSON object.
|
|
@@ -175,6 +183,19 @@ declare function validateSpec(spec: unknown): GraphSpecValidation;
|
|
|
175
183
|
type CompileSpecOptions = {
|
|
176
184
|
/** Fn/source catalog for resolving named factories. */
|
|
177
185
|
catalog?: GraphSpecCatalog;
|
|
186
|
+
/**
|
|
187
|
+
* How to handle nodes whose `fn` / `source` is missing from the catalog.
|
|
188
|
+
* - `"placeholder"` (default): silently substitute identity passthroughs
|
|
189
|
+
* (`producer(() => {})` / `derived(deps, vals => vals[0])`). Backward-
|
|
190
|
+
* compatible — preserves the historical "soft compile" behavior.
|
|
191
|
+
* - `"warn"`: substitute placeholders AND log each missing entry via
|
|
192
|
+
* `console.warn`, or via the `onWarn` callback if supplied.
|
|
193
|
+
* - `"error"`: collect every missing entry across the whole spec, then
|
|
194
|
+
* throw an `Error` listing them all (no partial graph returned).
|
|
195
|
+
*/
|
|
196
|
+
onMissing?: "error" | "warn" | "placeholder";
|
|
197
|
+
/** Custom warning sink. Used only when `onMissing === "warn"`. Defaults to `console.warn`. */
|
|
198
|
+
onWarn?: (message: string) => void;
|
|
178
199
|
};
|
|
179
200
|
/**
|
|
180
201
|
* Instantiate a Graph from a GraphSpec.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { P as PolicyRuleData, a as Node, A as Actor } from './node-BVV7G1bq.js';
|
|
2
|
-
import { G as Graph, a as GraphOptions, b as GraphDescribeOptions, c as GraphDescribeOutput, D as DescribeFilter } from './graph-
|
|
3
|
-
import { P as PolicyEnforcerGraph, a as PolicyViolation } from './index-
|
|
4
|
-
import { T as TopicGraph } from './index-
|
|
2
|
+
import { G as Graph, a as GraphOptions, b as GraphDescribeOptions, c as GraphDescribeOutput, D as DescribeFilter } from './graph-BOhEGJ6E.js';
|
|
3
|
+
import { P as PolicyEnforcerGraph, a as PolicyViolation } from './index-BUZPTPSQ.js';
|
|
4
|
+
import { T as TopicGraph } from './index-Dbmj0iYR.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Composable safety layer (roadmap §9.0b).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as Node } from './node-BVV7G1bq.js';
|
|
2
|
-
import { G as Graph } from './graph-
|
|
2
|
+
import { G as Graph } from './graph-BOhEGJ6E.js';
|
|
3
3
|
import { L as LLMAdapter } from './types-CdfO2QTt.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -163,6 +163,14 @@ declare function validateSpecAgainstCatalog(spec: GraphSpec, catalog: GraphSpecC
|
|
|
163
163
|
type GraphSpecValidation = {
|
|
164
164
|
valid: boolean;
|
|
165
165
|
errors: string[];
|
|
166
|
+
/**
|
|
167
|
+
* Non-fatal advisories. Currently includes feedback edges whose `from`
|
|
168
|
+
* refers to an `effect` node (effects produce no DATA — the feedback
|
|
169
|
+
* counter will never advance). Always present (empty array when nothing
|
|
170
|
+
* is flagged) — symmetry with `errors` so callers can read
|
|
171
|
+
* `result.warnings.length` without a null check.
|
|
172
|
+
*/
|
|
173
|
+
warnings: string[];
|
|
166
174
|
};
|
|
167
175
|
/**
|
|
168
176
|
* Validate a GraphSpec JSON object.
|
|
@@ -175,6 +183,19 @@ declare function validateSpec(spec: unknown): GraphSpecValidation;
|
|
|
175
183
|
type CompileSpecOptions = {
|
|
176
184
|
/** Fn/source catalog for resolving named factories. */
|
|
177
185
|
catalog?: GraphSpecCatalog;
|
|
186
|
+
/**
|
|
187
|
+
* How to handle nodes whose `fn` / `source` is missing from the catalog.
|
|
188
|
+
* - `"placeholder"` (default): silently substitute identity passthroughs
|
|
189
|
+
* (`producer(() => {})` / `derived(deps, vals => vals[0])`). Backward-
|
|
190
|
+
* compatible — preserves the historical "soft compile" behavior.
|
|
191
|
+
* - `"warn"`: substitute placeholders AND log each missing entry via
|
|
192
|
+
* `console.warn`, or via the `onWarn` callback if supplied.
|
|
193
|
+
* - `"error"`: collect every missing entry across the whole spec, then
|
|
194
|
+
* throw an `Error` listing them all (no partial graph returned).
|
|
195
|
+
*/
|
|
196
|
+
onMissing?: "error" | "warn" | "placeholder";
|
|
197
|
+
/** Custom warning sink. Used only when `onMissing === "warn"`. Defaults to `console.warn`. */
|
|
198
|
+
onWarn?: (message: string) => void;
|
|
178
199
|
};
|
|
179
200
|
/**
|
|
180
201
|
* Instantiate a Graph from a GraphSpec.
|