schematex 0.6.6 → 0.6.7

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 (103) hide show
  1. package/dist/ai/ai-sdk.cjs +11 -11
  2. package/dist/ai/ai-sdk.d.cts +3 -3
  3. package/dist/ai/ai-sdk.d.ts +3 -3
  4. package/dist/ai/ai-sdk.js +6 -6
  5. package/dist/ai/index.cjs +17 -17
  6. package/dist/ai/index.d.cts +3 -3
  7. package/dist/ai/index.d.ts +3 -3
  8. package/dist/ai/index.js +6 -6
  9. package/dist/{api-QFMTlIi7.d.ts → api-DIJM_mqp.d.ts} +1 -1
  10. package/dist/{api-DA4-U-jn.d.cts → api-JaBtsUT8.d.cts} +1 -1
  11. package/dist/browser.cjs +12 -12
  12. package/dist/browser.d.cts +3 -3
  13. package/dist/browser.d.ts +3 -3
  14. package/dist/browser.js +6 -6
  15. package/dist/{chunk-EUVUO3CL.cjs → chunk-34O3C6OC.cjs} +2 -2
  16. package/dist/{chunk-EUVUO3CL.cjs.map → chunk-34O3C6OC.cjs.map} +1 -1
  17. package/dist/{chunk-EPKIJEH7.js → chunk-C7V57V6O.js} +54 -8
  18. package/dist/chunk-C7V57V6O.js.map +1 -0
  19. package/dist/{chunk-3HZW6K5I.js → chunk-EVEPI423.js} +12 -4
  20. package/dist/chunk-EVEPI423.js.map +1 -0
  21. package/dist/{chunk-KCHUQXS3.js → chunk-JTGTWBAD.js} +2 -2
  22. package/dist/{chunk-KCHUQXS3.js.map → chunk-JTGTWBAD.js.map} +1 -1
  23. package/dist/{chunk-MLLARXOI.cjs → chunk-LDONE225.cjs} +62 -15
  24. package/dist/chunk-LDONE225.cjs.map +1 -0
  25. package/dist/{chunk-7DAIEDQP.js → chunk-MPCSWRZC.js} +75 -13
  26. package/dist/chunk-MPCSWRZC.js.map +1 -0
  27. package/dist/{chunk-DO2DDHTQ.cjs → chunk-QBS4F44Q.cjs} +515 -8
  28. package/dist/chunk-QBS4F44Q.cjs.map +1 -0
  29. package/dist/{chunk-SUIDD2C5.cjs → chunk-SHMG7BVF.cjs} +54 -8
  30. package/dist/chunk-SHMG7BVF.cjs.map +1 -0
  31. package/dist/{chunk-FOPOOV2P.js → chunk-TRUJ4Q6V.js} +58 -11
  32. package/dist/chunk-TRUJ4Q6V.js.map +1 -0
  33. package/dist/{chunk-XYHCAJMI.cjs → chunk-UHPGWO77.cjs} +75 -12
  34. package/dist/chunk-UHPGWO77.cjs.map +1 -0
  35. package/dist/{chunk-KJZCRHNR.js → chunk-WAKRRGAV.js} +515 -9
  36. package/dist/chunk-WAKRRGAV.js.map +1 -0
  37. package/dist/{chunk-CMZKAASF.cjs → chunk-WK36Z63Y.cjs} +14 -6
  38. package/dist/chunk-WK36Z63Y.cjs.map +1 -0
  39. package/dist/{diagnostics-CSznf_sl.d.cts → diagnostics-BKRow1ur.d.cts} +14 -0
  40. package/dist/{diagnostics-CSznf_sl.d.ts → diagnostics-BKRow1ur.d.ts} +14 -0
  41. package/dist/diagrams/blockdiagram/index.cjs +5 -5
  42. package/dist/diagrams/blockdiagram/index.d.cts +1 -1
  43. package/dist/diagrams/blockdiagram/index.d.ts +1 -1
  44. package/dist/diagrams/blockdiagram/index.js +1 -1
  45. package/dist/diagrams/circuit/index.cjs +11 -7
  46. package/dist/diagrams/circuit/index.d.cts +13 -2
  47. package/dist/diagrams/circuit/index.d.ts +13 -2
  48. package/dist/diagrams/circuit/index.js +1 -1
  49. package/dist/diagrams/ecomap/index.d.cts +1 -1
  50. package/dist/diagrams/ecomap/index.d.ts +1 -1
  51. package/dist/diagrams/entity/index.d.cts +1 -1
  52. package/dist/diagrams/entity/index.d.ts +1 -1
  53. package/dist/diagrams/fishbone/index.d.cts +1 -1
  54. package/dist/diagrams/fishbone/index.d.ts +1 -1
  55. package/dist/diagrams/flowchart/index.d.cts +2 -2
  56. package/dist/diagrams/flowchart/index.d.ts +2 -2
  57. package/dist/diagrams/genogram/index.d.cts +1 -1
  58. package/dist/diagrams/genogram/index.d.ts +1 -1
  59. package/dist/diagrams/ladder/index.d.cts +1 -1
  60. package/dist/diagrams/ladder/index.d.ts +1 -1
  61. package/dist/diagrams/logic/index.d.cts +1 -1
  62. package/dist/diagrams/logic/index.d.ts +1 -1
  63. package/dist/diagrams/orgchart/index.cjs +10 -6
  64. package/dist/diagrams/orgchart/index.d.cts +27 -2
  65. package/dist/diagrams/orgchart/index.d.ts +27 -2
  66. package/dist/diagrams/orgchart/index.js +1 -1
  67. package/dist/diagrams/pedigree/index.d.cts +1 -1
  68. package/dist/diagrams/pedigree/index.d.ts +1 -1
  69. package/dist/diagrams/phylo/index.d.cts +1 -1
  70. package/dist/diagrams/phylo/index.d.ts +1 -1
  71. package/dist/diagrams/sld/index.cjs +7 -7
  72. package/dist/diagrams/sld/index.d.cts +1 -1
  73. package/dist/diagrams/sld/index.d.ts +1 -1
  74. package/dist/diagrams/sld/index.js +1 -1
  75. package/dist/diagrams/sociogram/index.d.cts +1 -1
  76. package/dist/diagrams/sociogram/index.d.ts +1 -1
  77. package/dist/diagrams/timing/index.d.cts +1 -1
  78. package/dist/diagrams/timing/index.d.ts +1 -1
  79. package/dist/diagrams/venn/index.d.cts +1 -1
  80. package/dist/diagrams/venn/index.d.ts +1 -1
  81. package/dist/{index-CDpYuU7l.d.cts → index-DU2h1Y-a.d.cts} +1 -1
  82. package/dist/{index-jTwjudTW.d.ts → index-Dq3Mfxay.d.ts} +1 -1
  83. package/dist/index.cjs +35 -35
  84. package/dist/index.d.cts +4 -4
  85. package/dist/index.d.ts +4 -4
  86. package/dist/index.js +8 -8
  87. package/dist/react.cjs +6 -6
  88. package/dist/react.d.cts +2 -2
  89. package/dist/react.d.ts +2 -2
  90. package/dist/react.js +5 -5
  91. package/dist/{tools-CbuSbW6B.d.cts → tools-A0HRZ8jj.d.ts} +11 -2
  92. package/dist/{tools-D344vOzR.d.ts → tools-OzOQnlnV.d.cts} +11 -2
  93. package/package.json +1 -1
  94. package/dist/chunk-3HZW6K5I.js.map +0 -1
  95. package/dist/chunk-7DAIEDQP.js.map +0 -1
  96. package/dist/chunk-CMZKAASF.cjs.map +0 -1
  97. package/dist/chunk-DO2DDHTQ.cjs.map +0 -1
  98. package/dist/chunk-EPKIJEH7.js.map +0 -1
  99. package/dist/chunk-FOPOOV2P.js.map +0 -1
  100. package/dist/chunk-KJZCRHNR.js.map +0 -1
  101. package/dist/chunk-MLLARXOI.cjs.map +0 -1
  102. package/dist/chunk-SUIDD2C5.cjs.map +0 -1
  103. package/dist/chunk-XYHCAJMI.cjs.map +0 -1
@@ -473,6 +473,20 @@ interface CircuitAST {
473
473
  * Populated by the netlist parser; consumed by the auto-layout engine.
474
474
  */
475
475
  pinMap?: Record<string, Record<string, string>>;
476
+ /**
477
+ * Netlist-only recoverable-input notes. Components given fewer nets than
478
+ * their pin count are padded with floating no-connect nets and rendered
479
+ * anyway (rather than throwing). Surfaced as `CIRCUIT_PIN_UNDERSPECIFIED`
480
+ * lint warnings (status `partial`).
481
+ */
482
+ recovered?: {
483
+ underspecified?: {
484
+ id: string;
485
+ type: string;
486
+ expected: number;
487
+ got: number;
488
+ }[];
489
+ };
476
490
  }
477
491
  type BlockRole = "plant" | "controller" | "sensor" | "actuator" | "reference" | "disturbance" | "generic";
478
492
  interface BlockNode {
@@ -473,6 +473,20 @@ interface CircuitAST {
473
473
  * Populated by the netlist parser; consumed by the auto-layout engine.
474
474
  */
475
475
  pinMap?: Record<string, Record<string, string>>;
476
+ /**
477
+ * Netlist-only recoverable-input notes. Components given fewer nets than
478
+ * their pin count are padded with floating no-connect nets and rendered
479
+ * anyway (rather than throwing). Surfaced as `CIRCUIT_PIN_UNDERSPECIFIED`
480
+ * lint warnings (status `partial`).
481
+ */
482
+ recovered?: {
483
+ underspecified?: {
484
+ id: string;
485
+ type: string;
486
+ expected: number;
487
+ got: number;
488
+ }[];
489
+ };
476
490
  }
477
491
  type BlockRole = "plant" | "controller" | "sensor" | "actuator" | "reference" | "disturbance" | "generic";
478
492
  interface BlockNode {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkSUIDD2C5_cjs = require('../../chunk-SUIDD2C5.cjs');
3
+ var chunkSHMG7BVF_cjs = require('../../chunk-SHMG7BVF.cjs');
4
4
  require('../../chunk-NAGUZFXX.cjs');
5
5
  require('../../chunk-3WNW5Y7P.cjs');
6
6
 
@@ -8,19 +8,19 @@ require('../../chunk-3WNW5Y7P.cjs');
8
8
 
9
9
  Object.defineProperty(exports, "blockdiagram", {
10
10
  enumerable: true,
11
- get: function () { return chunkSUIDD2C5_cjs.blockdiagram; }
11
+ get: function () { return chunkSHMG7BVF_cjs.blockdiagram; }
12
12
  });
13
13
  Object.defineProperty(exports, "layoutBlockDiagram", {
14
14
  enumerable: true,
15
- get: function () { return chunkSUIDD2C5_cjs.layoutBlockDiagram; }
15
+ get: function () { return chunkSHMG7BVF_cjs.layoutBlockDiagram; }
16
16
  });
17
17
  Object.defineProperty(exports, "parseBlockDiagram", {
18
18
  enumerable: true,
19
- get: function () { return chunkSUIDD2C5_cjs.parseBlockDiagram; }
19
+ get: function () { return chunkSHMG7BVF_cjs.parseBlockDiagram; }
20
20
  });
21
21
  Object.defineProperty(exports, "renderBlockDiagram", {
22
22
  enumerable: true,
23
- get: function () { return chunkSUIDD2C5_cjs.renderBlockDiagram; }
23
+ get: function () { return chunkSHMG7BVF_cjs.renderBlockDiagram; }
24
24
  });
25
25
  //# sourceMappingURL=index.cjs.map
26
26
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { B as BlockAST, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { B as BlockAST, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  declare function parseBlockDiagram(text: string): BlockAST;
4
4
 
@@ -1,4 +1,4 @@
1
- import { B as BlockAST, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { B as BlockAST, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  declare function parseBlockDiagram(text: string): BlockAST;
4
4
 
@@ -1,4 +1,4 @@
1
- export { blockdiagram, layoutBlockDiagram, parseBlockDiagram, renderBlockDiagram } from '../../chunk-EPKIJEH7.js';
1
+ export { blockdiagram, layoutBlockDiagram, parseBlockDiagram, renderBlockDiagram } from '../../chunk-C7V57V6O.js';
2
2
  import '../../chunk-5IKOLUWK.js';
3
3
  import '../../chunk-SYYBKDL7.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkDO2DDHTQ_cjs = require('../../chunk-DO2DDHTQ.cjs');
3
+ var chunkQBS4F44Q_cjs = require('../../chunk-QBS4F44Q.cjs');
4
4
  require('../../chunk-NZT5P2XZ.cjs');
5
5
  require('../../chunk-NAGUZFXX.cjs');
6
6
  require('../../chunk-3WNW5Y7P.cjs');
@@ -9,27 +9,31 @@ require('../../chunk-3WNW5Y7P.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "circuit", {
11
11
  enumerable: true,
12
- get: function () { return chunkDO2DDHTQ_cjs.circuit; }
12
+ get: function () { return chunkQBS4F44Q_cjs.circuit; }
13
13
  });
14
14
  Object.defineProperty(exports, "layoutCircuit", {
15
15
  enumerable: true,
16
- get: function () { return chunkDO2DDHTQ_cjs.layoutCircuit; }
16
+ get: function () { return chunkQBS4F44Q_cjs.layoutCircuit; }
17
17
  });
18
18
  Object.defineProperty(exports, "layoutCircuitNetlist", {
19
19
  enumerable: true,
20
- get: function () { return chunkDO2DDHTQ_cjs.layoutCircuitNetlist; }
20
+ get: function () { return chunkQBS4F44Q_cjs.layoutCircuitNetlist; }
21
+ });
22
+ Object.defineProperty(exports, "lintCircuit", {
23
+ enumerable: true,
24
+ get: function () { return chunkQBS4F44Q_cjs.lintCircuit; }
21
25
  });
22
26
  Object.defineProperty(exports, "parseCircuit", {
23
27
  enumerable: true,
24
- get: function () { return chunkDO2DDHTQ_cjs.parseCircuit; }
28
+ get: function () { return chunkQBS4F44Q_cjs.parseCircuit; }
25
29
  });
26
30
  Object.defineProperty(exports, "parseNetlist", {
27
31
  enumerable: true,
28
- get: function () { return chunkDO2DDHTQ_cjs.parseNetlist; }
32
+ get: function () { return chunkQBS4F44Q_cjs.parseNetlist; }
29
33
  });
30
34
  Object.defineProperty(exports, "renderCircuit", {
31
35
  enumerable: true,
32
- get: function () { return chunkDO2DDHTQ_cjs.renderCircuit; }
36
+ get: function () { return chunkQBS4F44Q_cjs.renderCircuit; }
33
37
  });
34
38
  //# sourceMappingURL=index.cjs.map
35
39
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { C as CircuitAST, R as RenderConfig, j as CircuitComponent, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { C as CircuitAST, S as SchematexDiagnostic, R as RenderConfig, j as CircuitComponent, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  /**
4
4
  * Top-level circuit parser. Detects two DSL modes:
@@ -12,6 +12,17 @@ import { C as CircuitAST, R as RenderConfig, j as CircuitComponent, D as Diagram
12
12
  */
13
13
  declare function parseCircuit(text: string): CircuitAST;
14
14
 
15
+ /**
16
+ * Circuit recoverable-input lint.
17
+ *
18
+ * The netlist parser no longer throws when a multi-terminal component is given
19
+ * fewer nets than it has pins — it binds the missing pins to floating
20
+ * no-connect nets and draws the part anyway. This surfaces that recovery as a
21
+ * warning so the render reports `partial` and the author can wire the open
22
+ * terminals, without ever blanking a schematic that is otherwise complete.
23
+ */
24
+ declare function lintCircuit(text: string): SchematexDiagnostic[];
25
+
15
26
  /**
16
27
  * Netlist DSL parser — SPICE-subset text → CircuitAST.
17
28
  *
@@ -135,4 +146,4 @@ declare function layoutCircuitNetlist(ast: CircuitAST): AutoLayoutResult;
135
146
 
136
147
  declare const circuit: DiagramPlugin;
137
148
 
138
- export { circuit, layoutCircuit, layoutCircuitNetlist, parseCircuit, parseNetlist, renderCircuit };
149
+ export { circuit, layoutCircuit, layoutCircuitNetlist, lintCircuit, parseCircuit, parseNetlist, renderCircuit };
@@ -1,4 +1,4 @@
1
- import { C as CircuitAST, R as RenderConfig, j as CircuitComponent, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { C as CircuitAST, S as SchematexDiagnostic, R as RenderConfig, j as CircuitComponent, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  /**
4
4
  * Top-level circuit parser. Detects two DSL modes:
@@ -12,6 +12,17 @@ import { C as CircuitAST, R as RenderConfig, j as CircuitComponent, D as Diagram
12
12
  */
13
13
  declare function parseCircuit(text: string): CircuitAST;
14
14
 
15
+ /**
16
+ * Circuit recoverable-input lint.
17
+ *
18
+ * The netlist parser no longer throws when a multi-terminal component is given
19
+ * fewer nets than it has pins — it binds the missing pins to floating
20
+ * no-connect nets and draws the part anyway. This surfaces that recovery as a
21
+ * warning so the render reports `partial` and the author can wire the open
22
+ * terminals, without ever blanking a schematic that is otherwise complete.
23
+ */
24
+ declare function lintCircuit(text: string): SchematexDiagnostic[];
25
+
15
26
  /**
16
27
  * Netlist DSL parser — SPICE-subset text → CircuitAST.
17
28
  *
@@ -135,4 +146,4 @@ declare function layoutCircuitNetlist(ast: CircuitAST): AutoLayoutResult;
135
146
 
136
147
  declare const circuit: DiagramPlugin;
137
148
 
138
- export { circuit, layoutCircuit, layoutCircuitNetlist, parseCircuit, parseNetlist, renderCircuit };
149
+ export { circuit, layoutCircuit, layoutCircuitNetlist, lintCircuit, parseCircuit, parseNetlist, renderCircuit };
@@ -1,4 +1,4 @@
1
- export { circuit, layoutCircuit, layoutCircuitNetlist, parseCircuit, parseNetlist, renderCircuit } from '../../chunk-KJZCRHNR.js';
1
+ export { circuit, layoutCircuit, layoutCircuitNetlist, lintCircuit, parseCircuit, parseNetlist, renderCircuit } from '../../chunk-WAKRRGAV.js';
2
2
  import '../../chunk-UK6HF6PE.js';
3
3
  import '../../chunk-5IKOLUWK.js';
4
4
  import '../../chunk-SYYBKDL7.js';
@@ -1,4 +1,4 @@
1
- import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  declare class EcomapParseError extends Error {
4
4
  line: number;
@@ -1,4 +1,4 @@
1
- import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  declare class EcomapParseError extends Error {
4
4
  line: number;
@@ -1,4 +1,4 @@
1
- import { E as EntityAST, R as RenderConfig, q as EntityNode, r as EntityEdge, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { E as EntityAST, R as RenderConfig, q as EntityNode, r as EntityEdge, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  declare function parseEntityDSL(text: string): EntityAST;
4
4
 
@@ -1,4 +1,4 @@
1
- import { E as EntityAST, R as RenderConfig, q as EntityNode, r as EntityEdge, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { E as EntityAST, R as RenderConfig, q as EntityNode, r as EntityEdge, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  declare function parseEntityDSL(text: string): EntityAST;
4
4
 
@@ -1,4 +1,4 @@
1
- import { F as FishboneAST, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { F as FishboneAST, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  /**
4
4
  * Fishbone DSL parser.
@@ -1,4 +1,4 @@
1
- import { F as FishboneAST, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { F as FishboneAST, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  /**
4
4
  * Fishbone DSL parser.
@@ -1,2 +1,2 @@
1
- import '../../diagnostics-CSznf_sl.cjs';
2
- export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-CDpYuU7l.cjs';
1
+ import '../../diagnostics-BKRow1ur.cjs';
2
+ export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-DU2h1Y-a.cjs';
@@ -1,2 +1,2 @@
1
- import '../../diagnostics-CSznf_sl.js';
2
- export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-jTwjudTW.js';
1
+ import '../../diagnostics-BKRow1ur.js';
2
+ export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-Dq3Mfxay.js';
@@ -1,4 +1,4 @@
1
- import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, I as Individual, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, I as Individual, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  declare class ParseError extends Error {
4
4
  line: number;
@@ -1,4 +1,4 @@
1
- import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, I as Individual, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, I as Individual, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  declare class ParseError extends Error {
4
4
  line: number;
@@ -1,4 +1,4 @@
1
- import { k as LadderAST, R as RenderConfig, l as LadderRung, m as LadderElement, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { k as LadderAST, R as RenderConfig, l as LadderRung, m as LadderElement, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  declare function parseLadderDSL(text: string): LadderAST;
4
4
 
@@ -1,4 +1,4 @@
1
- import { k as LadderAST, R as RenderConfig, l as LadderRung, m as LadderElement, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { k as LadderAST, R as RenderConfig, l as LadderRung, m as LadderElement, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  declare function parseLadderDSL(text: string): LadderAST;
4
4
 
@@ -1,4 +1,4 @@
1
- import { i as LogicGateAST, R as RenderConfig, S as SchematexDiagnostic, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { i as LogicGateAST, R as RenderConfig, S as SchematexDiagnostic, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  declare function parseLogic(text: string): LogicGateAST;
4
4
 
@@ -1,4 +1,4 @@
1
- import { i as LogicGateAST, R as RenderConfig, S as SchematexDiagnostic, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { i as LogicGateAST, R as RenderConfig, S as SchematexDiagnostic, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  declare function parseLogic(text: string): LogicGateAST;
4
4
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkXYHCAJMI_cjs = require('../../chunk-XYHCAJMI.cjs');
3
+ var chunkUHPGWO77_cjs = require('../../chunk-UHPGWO77.cjs');
4
4
  require('../../chunk-NZT5P2XZ.cjs');
5
5
  require('../../chunk-NAGUZFXX.cjs');
6
6
  require('../../chunk-3WNW5Y7P.cjs');
@@ -9,23 +9,27 @@ require('../../chunk-3WNW5Y7P.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "OrgchartParseError", {
11
11
  enumerable: true,
12
- get: function () { return chunkXYHCAJMI_cjs.OrgchartParseError; }
12
+ get: function () { return chunkUHPGWO77_cjs.OrgchartParseError; }
13
13
  });
14
14
  Object.defineProperty(exports, "layoutOrgchart", {
15
15
  enumerable: true,
16
- get: function () { return chunkXYHCAJMI_cjs.layoutOrgchart; }
16
+ get: function () { return chunkUHPGWO77_cjs.layoutOrgchart; }
17
+ });
18
+ Object.defineProperty(exports, "lintOrgchart", {
19
+ enumerable: true,
20
+ get: function () { return chunkUHPGWO77_cjs.lintOrgchart; }
17
21
  });
18
22
  Object.defineProperty(exports, "orgchart", {
19
23
  enumerable: true,
20
- get: function () { return chunkXYHCAJMI_cjs.orgchart; }
24
+ get: function () { return chunkUHPGWO77_cjs.orgchart; }
21
25
  });
22
26
  Object.defineProperty(exports, "parseOrgchart", {
23
27
  enumerable: true,
24
- get: function () { return chunkXYHCAJMI_cjs.parseOrgchart; }
28
+ get: function () { return chunkUHPGWO77_cjs.parseOrgchart; }
25
29
  });
26
30
  Object.defineProperty(exports, "renderOrgchart", {
27
31
  enumerable: true,
28
- get: function () { return chunkXYHCAJMI_cjs.renderOrgchart; }
32
+ get: function () { return chunkUHPGWO77_cjs.renderOrgchart; }
29
33
  });
30
34
  //# sourceMappingURL=index.cjs.map
31
35
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { S as SchematexDiagnostic, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  type OrgchartDirection = "TD" | "LR";
4
4
  type OrgchartLayoutMode = "tree" | "list";
@@ -47,6 +47,20 @@ interface OrgchartAST {
47
47
  nodes: OrgchartNode[];
48
48
  edges: OrgchartEdge[];
49
49
  metadata?: Record<string, string>;
50
+ /**
51
+ * Recoverable-input notes recorded during parsing. The parser degrades
52
+ * instead of throwing — unparseable lines are skipped, duplicate ids dropped,
53
+ * and nodes referenced only by edges are synthesized — so a renderable chart
54
+ * is still produced. Surfaced as `partial`-status lint warnings.
55
+ */
56
+ recovered?: {
57
+ unparseableLines?: {
58
+ line?: number;
59
+ text: string;
60
+ }[];
61
+ duplicateIds?: string[];
62
+ impliedNodes?: string[];
63
+ };
50
64
  }
51
65
  interface OrgchartLayoutNode {
52
66
  node: OrgchartNode;
@@ -94,10 +108,21 @@ declare class OrgchartParseError extends Error {
94
108
  }
95
109
  declare function parseOrgchart(text: string): OrgchartAST;
96
110
 
111
+ /**
112
+ * Orgchart recoverable-input lint.
113
+ *
114
+ * The parser degrades instead of throwing: unparseable lines are skipped,
115
+ * duplicate ids dropped, and ids referenced only by edges are synthesized into
116
+ * nodes. Each recovery is surfaced here as a warning so the render reports
117
+ * `partial` and the author learns what was repaired — without ever blanking a
118
+ * chart that has at least one node.
119
+ */
120
+ declare function lintOrgchart(text: string): SchematexDiagnostic[];
121
+
97
122
  declare function renderOrgchart(ast: OrgchartAST, config?: RenderConfig): string;
98
123
 
99
124
  declare function layoutOrgchart(ast: OrgchartAST, palette: readonly string[]): OrgchartLayoutResult;
100
125
 
101
126
  declare const orgchart: DiagramPlugin;
102
127
 
103
- export { type OrgchartAST, type OrgchartDirection, type OrgchartEdge, type OrgchartLayoutEdge, type OrgchartLayoutMode, type OrgchartLayoutNode, type OrgchartLayoutResult, type OrgchartNode, type OrgchartNodeKind, OrgchartParseError, type OrgchartRoleIcon, layoutOrgchart, orgchart, parseOrgchart, renderOrgchart };
128
+ export { type OrgchartAST, type OrgchartDirection, type OrgchartEdge, type OrgchartLayoutEdge, type OrgchartLayoutMode, type OrgchartLayoutNode, type OrgchartLayoutResult, type OrgchartNode, type OrgchartNodeKind, OrgchartParseError, type OrgchartRoleIcon, layoutOrgchart, lintOrgchart, orgchart, parseOrgchart, renderOrgchart };
@@ -1,4 +1,4 @@
1
- import { R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { S as SchematexDiagnostic, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  type OrgchartDirection = "TD" | "LR";
4
4
  type OrgchartLayoutMode = "tree" | "list";
@@ -47,6 +47,20 @@ interface OrgchartAST {
47
47
  nodes: OrgchartNode[];
48
48
  edges: OrgchartEdge[];
49
49
  metadata?: Record<string, string>;
50
+ /**
51
+ * Recoverable-input notes recorded during parsing. The parser degrades
52
+ * instead of throwing — unparseable lines are skipped, duplicate ids dropped,
53
+ * and nodes referenced only by edges are synthesized — so a renderable chart
54
+ * is still produced. Surfaced as `partial`-status lint warnings.
55
+ */
56
+ recovered?: {
57
+ unparseableLines?: {
58
+ line?: number;
59
+ text: string;
60
+ }[];
61
+ duplicateIds?: string[];
62
+ impliedNodes?: string[];
63
+ };
50
64
  }
51
65
  interface OrgchartLayoutNode {
52
66
  node: OrgchartNode;
@@ -94,10 +108,21 @@ declare class OrgchartParseError extends Error {
94
108
  }
95
109
  declare function parseOrgchart(text: string): OrgchartAST;
96
110
 
111
+ /**
112
+ * Orgchart recoverable-input lint.
113
+ *
114
+ * The parser degrades instead of throwing: unparseable lines are skipped,
115
+ * duplicate ids dropped, and ids referenced only by edges are synthesized into
116
+ * nodes. Each recovery is surfaced here as a warning so the render reports
117
+ * `partial` and the author learns what was repaired — without ever blanking a
118
+ * chart that has at least one node.
119
+ */
120
+ declare function lintOrgchart(text: string): SchematexDiagnostic[];
121
+
97
122
  declare function renderOrgchart(ast: OrgchartAST, config?: RenderConfig): string;
98
123
 
99
124
  declare function layoutOrgchart(ast: OrgchartAST, palette: readonly string[]): OrgchartLayoutResult;
100
125
 
101
126
  declare const orgchart: DiagramPlugin;
102
127
 
103
- export { type OrgchartAST, type OrgchartDirection, type OrgchartEdge, type OrgchartLayoutEdge, type OrgchartLayoutMode, type OrgchartLayoutNode, type OrgchartLayoutResult, type OrgchartNode, type OrgchartNodeKind, OrgchartParseError, type OrgchartRoleIcon, layoutOrgchart, orgchart, parseOrgchart, renderOrgchart };
128
+ export { type OrgchartAST, type OrgchartDirection, type OrgchartEdge, type OrgchartLayoutEdge, type OrgchartLayoutMode, type OrgchartLayoutNode, type OrgchartLayoutResult, type OrgchartNode, type OrgchartNodeKind, OrgchartParseError, type OrgchartRoleIcon, layoutOrgchart, lintOrgchart, orgchart, parseOrgchart, renderOrgchart };
@@ -1,4 +1,4 @@
1
- export { OrgchartParseError, layoutOrgchart, orgchart, parseOrgchart, renderOrgchart } from '../../chunk-7DAIEDQP.js';
1
+ export { OrgchartParseError, layoutOrgchart, lintOrgchart, orgchart, parseOrgchart, renderOrgchart } from '../../chunk-MPCSWRZC.js';
2
2
  import '../../chunk-UK6HF6PE.js';
3
3
  import '../../chunk-5IKOLUWK.js';
4
4
  import '../../chunk-SYYBKDL7.js';
@@ -1,4 +1,4 @@
1
- import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  declare class PedigreeParseError extends Error {
4
4
  line: number;
@@ -1,4 +1,4 @@
1
- import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { e as DiagramAST, L as LayoutConfig, f as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  declare class PedigreeParseError extends Error {
4
4
  line: number;
@@ -1,4 +1,4 @@
1
- import { P as PhyloTreeAST, g as PhyloLayoutNode, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { P as PhyloTreeAST, g as PhyloLayoutNode, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  declare class PhyloParseError extends Error {
4
4
  constructor(message: string);
@@ -1,4 +1,4 @@
1
- import { P as PhyloTreeAST, g as PhyloLayoutNode, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { P as PhyloTreeAST, g as PhyloLayoutNode, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  declare class PhyloParseError extends Error {
4
4
  constructor(message: string);
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkEUVUO3CL_cjs = require('../../chunk-EUVUO3CL.cjs');
3
+ var chunk34O3C6OC_cjs = require('../../chunk-34O3C6OC.cjs');
4
4
  require('../../chunk-3KRL2EGN.cjs');
5
5
  require('../../chunk-SBB6C4OP.cjs');
6
6
  require('../../chunk-NZT5P2XZ.cjs');
@@ -11,27 +11,27 @@ require('../../chunk-3WNW5Y7P.cjs');
11
11
 
12
12
  Object.defineProperty(exports, "layoutSLD", {
13
13
  enumerable: true,
14
- get: function () { return chunkEUVUO3CL_cjs.layoutSLD; }
14
+ get: function () { return chunk34O3C6OC_cjs.layoutSLD; }
15
15
  });
16
16
  Object.defineProperty(exports, "lintSLD", {
17
17
  enumerable: true,
18
- get: function () { return chunkEUVUO3CL_cjs.lintSLD; }
18
+ get: function () { return chunk34O3C6OC_cjs.lintSLD; }
19
19
  });
20
20
  Object.defineProperty(exports, "lintSLDAst", {
21
21
  enumerable: true,
22
- get: function () { return chunkEUVUO3CL_cjs.lintSLDAst; }
22
+ get: function () { return chunk34O3C6OC_cjs.lintSLDAst; }
23
23
  });
24
24
  Object.defineProperty(exports, "parseSLDDSL", {
25
25
  enumerable: true,
26
- get: function () { return chunkEUVUO3CL_cjs.parseSLDDSL; }
26
+ get: function () { return chunk34O3C6OC_cjs.parseSLDDSL; }
27
27
  });
28
28
  Object.defineProperty(exports, "renderSLD", {
29
29
  enumerable: true,
30
- get: function () { return chunkEUVUO3CL_cjs.renderSLD; }
30
+ get: function () { return chunk34O3C6OC_cjs.renderSLD; }
31
31
  });
32
32
  Object.defineProperty(exports, "sld", {
33
33
  enumerable: true,
34
- get: function () { return chunkEUVUO3CL_cjs.sld; }
34
+ get: function () { return chunk34O3C6OC_cjs.sld; }
35
35
  });
36
36
  //# sourceMappingURL=index.cjs.map
37
37
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { S as SchematexDiagnostic, n as SLDAST, R as RenderConfig, o as SLDNode, p as SLDNodeType, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { S as SchematexDiagnostic, n as SLDAST, R as RenderConfig, o as SLDNode, p as SLDNodeType, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  /**
4
4
  * SLD standard-compatibility lint.
@@ -1,4 +1,4 @@
1
- import { S as SchematexDiagnostic, n as SLDAST, R as RenderConfig, o as SLDNode, p as SLDNodeType, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { S as SchematexDiagnostic, n as SLDAST, R as RenderConfig, o as SLDNode, p as SLDNodeType, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  /**
4
4
  * SLD standard-compatibility lint.
@@ -1,4 +1,4 @@
1
- export { layoutSLD, lintSLD, lintSLDAst, parseSLDDSL, renderSLD, sld } from '../../chunk-KCHUQXS3.js';
1
+ export { layoutSLD, lintSLD, lintSLDAst, parseSLDDSL, renderSLD, sld } from '../../chunk-JTGTWBAD.js';
2
2
  import '../../chunk-2KTQ75LN.js';
3
3
  import '../../chunk-PIV2A3HG.js';
4
4
  import '../../chunk-UK6HF6PE.js';
@@ -1,4 +1,4 @@
1
- import { h as LegendOverrides, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { h as LegendOverrides, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  type SociogramLayout = "circular" | "force-directed" | "concentric";
4
4
  type EdgeValence = "positive" | "negative" | "neutral";
@@ -1,4 +1,4 @@
1
- import { h as LegendOverrides, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { h as LegendOverrides, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  type SociogramLayout = "circular" | "force-directed" | "concentric";
4
4
  type EdgeValence = "positive" | "negative" | "neutral";
@@ -1,4 +1,4 @@
1
- import { T as TimingAST, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { T as TimingAST, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  declare function parseTiming(text: string): TimingAST;
4
4
 
@@ -1,4 +1,4 @@
1
- import { T as TimingAST, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { T as TimingAST, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  declare function parseTiming(text: string): TimingAST;
4
4
 
@@ -1,4 +1,4 @@
1
- import { V as VennAST, s as VennLayoutResult, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.cjs';
1
+ import { V as VennAST, s as VennLayoutResult, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  /**
4
4
  * Venn / Euler DSL parser (hand-written recursive descent).
@@ -1,4 +1,4 @@
1
- import { V as VennAST, s as VennLayoutResult, D as DiagramPlugin } from '../../diagnostics-CSznf_sl.js';
1
+ import { V as VennAST, s as VennLayoutResult, D as DiagramPlugin } from '../../diagnostics-BKRow1ur.js';
2
2
 
3
3
  /**
4
4
  * Venn / Euler DSL parser (hand-written recursive descent).
@@ -1,4 +1,4 @@
1
- import { t as FlowchartAST, u as FlowchartLayoutResult, D as DiagramPlugin } from './diagnostics-CSznf_sl.cjs';
1
+ import { t as FlowchartAST, u as FlowchartLayoutResult, D as DiagramPlugin } from './diagnostics-BKRow1ur.cjs';
2
2
 
3
3
  /**
4
4
  * Flowchart DSL parser.
@@ -1,4 +1,4 @@
1
- import { t as FlowchartAST, u as FlowchartLayoutResult, D as DiagramPlugin } from './diagnostics-CSznf_sl.js';
1
+ import { t as FlowchartAST, u as FlowchartLayoutResult, D as DiagramPlugin } from './diagnostics-BKRow1ur.js';
2
2
 
3
3
  /**
4
4
  * Flowchart DSL parser.