schematex 0.9.4 → 0.9.5
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/README.md +26 -0
- package/dist/ai/ai-sdk.cjs +8 -8
- package/dist/ai/ai-sdk.d.cts +3 -3
- package/dist/ai/ai-sdk.d.ts +3 -3
- package/dist/ai/ai-sdk.js +3 -3
- package/dist/ai/index.cjs +17 -17
- package/dist/ai/index.d.cts +4 -4
- package/dist/ai/index.d.ts +4 -4
- package/dist/ai/index.js +4 -4
- package/dist/{api-1xoGiseb.d.cts → api-BOJJlNb1.d.ts} +2 -2
- package/dist/{api-CgXRSnCn.d.ts → api-v9t1T1v6.d.cts} +2 -2
- package/dist/browser.cjs +9 -9
- package/dist/browser.d.cts +3 -3
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +3 -3
- package/dist/{chunk-TX3YWZZX.cjs → chunk-7EWP4OD7.cjs} +186 -6
- package/dist/chunk-7EWP4OD7.cjs.map +1 -0
- package/dist/{chunk-PFZKW3HE.js → chunk-II4GLKGF.js} +2 -2
- package/dist/chunk-II4GLKGF.js.map +1 -0
- package/dist/{chunk-UFXDAIDD.js → chunk-LMNWUZMD.js} +1255 -602
- package/dist/chunk-LMNWUZMD.js.map +1 -0
- package/dist/{chunk-WJXLF42K.cjs → chunk-N3HU635X.cjs} +2 -2
- package/dist/chunk-N3HU635X.cjs.map +1 -0
- package/dist/{chunk-NIYB6CHH.js → chunk-N524SY5D.js} +184 -4
- package/dist/chunk-N524SY5D.js.map +1 -0
- package/dist/{chunk-GTCAJPQR.cjs → chunk-Q7CWX6HA.cjs} +1256 -602
- package/dist/chunk-Q7CWX6HA.cjs.map +1 -0
- package/dist/{diagnostics-CDwnQ65n.d.cts → diagnostics-5bVLlGNj.d.cts} +1 -1
- package/dist/{diagnostics-CDwnQ65n.d.ts → diagnostics-5bVLlGNj.d.ts} +1 -1
- package/dist/diagrams/blockdiagram/index.d.cts +1 -1
- package/dist/diagrams/blockdiagram/index.d.ts +1 -1
- package/dist/diagrams/circuit/index.d.cts +1 -1
- package/dist/diagrams/circuit/index.d.ts +1 -1
- package/dist/diagrams/ecomap/index.d.cts +1 -1
- package/dist/diagrams/ecomap/index.d.ts +1 -1
- package/dist/diagrams/entity/index.d.cts +1 -1
- package/dist/diagrams/entity/index.d.ts +1 -1
- package/dist/diagrams/fishbone/index.d.cts +1 -1
- package/dist/diagrams/fishbone/index.d.ts +1 -1
- package/dist/diagrams/flowchart/index.d.cts +2 -2
- package/dist/diagrams/flowchart/index.d.ts +2 -2
- package/dist/diagrams/genogram/index.d.cts +1 -1
- package/dist/diagrams/genogram/index.d.ts +1 -1
- package/dist/diagrams/ladder/index.d.cts +1 -1
- package/dist/diagrams/ladder/index.d.ts +1 -1
- package/dist/diagrams/logic/index.d.cts +1 -1
- package/dist/diagrams/logic/index.d.ts +1 -1
- package/dist/diagrams/orgchart/index.d.cts +1 -1
- package/dist/diagrams/orgchart/index.d.ts +1 -1
- package/dist/diagrams/pedigree/index.d.cts +1 -1
- package/dist/diagrams/pedigree/index.d.ts +1 -1
- package/dist/diagrams/phylo/index.d.cts +1 -1
- package/dist/diagrams/phylo/index.d.ts +1 -1
- package/dist/diagrams/sld/index.cjs +7 -7
- package/dist/diagrams/sld/index.d.cts +1 -1
- package/dist/diagrams/sld/index.d.ts +1 -1
- package/dist/diagrams/sld/index.js +1 -1
- package/dist/diagrams/sociogram/index.d.cts +1 -1
- package/dist/diagrams/sociogram/index.d.ts +1 -1
- package/dist/diagrams/timing/index.d.cts +1 -1
- package/dist/diagrams/timing/index.d.ts +1 -1
- package/dist/diagrams/venn/index.d.cts +1 -1
- package/dist/diagrams/venn/index.d.ts +1 -1
- package/dist/{index-DNOoLmYX.d.cts → index-Cmf4Rcve.d.cts} +1 -1
- package/dist/{index-CYSH3_ca.d.ts → index-syc0E5Ss.d.ts} +1 -1
- package/dist/index.cjs +41 -37
- package/dist/index.d.cts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +4 -4
- package/dist/react.cjs +3 -3
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +2 -2
- package/dist/{tools-CbYmQ3hH.d.cts → tools-B98iarLm.d.cts} +2 -2
- package/dist/{tools-BhTti-oG.d.ts → tools-CCZ1IcIN.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/chunk-GTCAJPQR.cjs.map +0 -1
- package/dist/chunk-NIYB6CHH.js.map +0 -1
- package/dist/chunk-PFZKW3HE.js.map +0 -1
- package/dist/chunk-TX3YWZZX.cjs.map +0 -1
- package/dist/chunk-UFXDAIDD.js.map +0 -1
- package/dist/chunk-WJXLF42K.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -671,6 +671,32 @@ consequence "Vapour cloud explosion"
|
|
|
671
671
|
|
|
672
672
|
[Bowtie syntax →](https://schematex.dev/docs/bowtie)
|
|
673
673
|
|
|
674
|
+
---
|
|
675
|
+
|
|
676
|
+
### 🧱 Reliability block diagram — *IEC 61078 · success logic*
|
|
677
|
+
|
|
678
|
+
Model whether a system *works* from its components' reliabilities — and the engine **computes the answer**: it reduces the success logic (∏ for series, 1−∏(1−Rᵢ) for parallel, exact k-of-n) to the **system reliability**, derives each block's **Birnbaum importance**, and flags **single points of failure** in red. The success-space dual of the fault tree.
|
|
679
|
+
|
|
680
|
+
```
|
|
681
|
+
rbd "Redundant Server"
|
|
682
|
+
series {
|
|
683
|
+
block PSU "Power Supply" R=0.99
|
|
684
|
+
parallel {
|
|
685
|
+
block FAN1 "Fan A" R=0.95
|
|
686
|
+
block FAN2 "Fan B" R=0.95
|
|
687
|
+
}
|
|
688
|
+
kofn 2/3 {
|
|
689
|
+
block D1 "Disk 1" R=0.97
|
|
690
|
+
block D2 "Disk 2" R=0.97
|
|
691
|
+
block D3 "Disk 3" R=0.97
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
```
|
|
695
|
+
|
|
696
|
+

|
|
697
|
+
|
|
698
|
+
[RBD syntax →](https://schematex.dev/docs/rbd)
|
|
699
|
+
|
|
674
700
|
### 🏠 Floor plan — *Architectural Graphic Standards plan view*
|
|
675
701
|
|
|
676
702
|
Rooms with real dimensions become poché walls with automatic shared-wall merging; doors get standard swing arcs, windows get glazing lines, and a 93-symbol furniture catalog — residential, kitchen/bath, classroom/office, event/banquet, retail/warehouse, salon/gym, and site/outdoor (`tree`, `car`) — auto-seats its tables (a `round-table-8` *is* 8 countable chairs). L/T/U-shaped rooms via `extend`, stairs with the UP arrow + cut-plane break line, and validation that catches what LLMs actually get wrong — overlapping rooms, doors on non-shared walls, colliding furniture (chair-ring envelopes included).
|
package/dist/ai/ai-sdk.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunk7EWP4OD7_cjs = require('../chunk-7EWP4OD7.cjs');
|
|
4
|
+
require('../chunk-Q7CWX6HA.cjs');
|
|
5
5
|
require('../chunk-4OC3CTGE.cjs');
|
|
6
6
|
require('../chunk-4AC6I7KJ.cjs');
|
|
7
7
|
require('../chunk-C4Y24X3U.cjs');
|
|
8
8
|
require('../chunk-INVLJYAE.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-N3HU635X.cjs');
|
|
10
10
|
require('../chunk-GAQ36VFD.cjs');
|
|
11
11
|
require('../chunk-627GHE2N.cjs');
|
|
12
12
|
require('../chunk-ITI3STJ6.cjs');
|
|
@@ -31,7 +31,7 @@ var schematexTools = {
|
|
|
31
31
|
listDiagrams: ai.tool({
|
|
32
32
|
description: "List every Schematex diagram type with a tagline, 'use when' hint, domain cluster, and authoritative standard. Call this first to discover what's available.",
|
|
33
33
|
inputSchema: zod.z.object({}),
|
|
34
|
-
execute: async () =>
|
|
34
|
+
execute: async () => chunk7EWP4OD7_cjs.listDiagrams()
|
|
35
35
|
}),
|
|
36
36
|
getSyntax: ai.tool({
|
|
37
37
|
description: "Return syntax for one diagram type. Default `detail: canonical` is the compact first-shot generation path: canonical header, preferred forms, rules, and repair checks. Request `detail: reference` only for advanced forms or imported adapters after choosing a type.",
|
|
@@ -46,7 +46,7 @@ var schematexTools = {
|
|
|
46
46
|
execute: async ({
|
|
47
47
|
type,
|
|
48
48
|
detail
|
|
49
|
-
}) =>
|
|
49
|
+
}) => chunk7EWP4OD7_cjs.getSyntax(type, { detail })
|
|
50
50
|
}),
|
|
51
51
|
getExamples: ai.tool({
|
|
52
52
|
description: "Return curated real-world DSL examples for a diagram type, each with scenario notes and tags. Use as few-shot context before generating DSL.",
|
|
@@ -56,7 +56,7 @@ var schematexTools = {
|
|
|
56
56
|
preferFeatured: zod.z.boolean().optional().describe("Rank featured examples first."),
|
|
57
57
|
maxComplexity: zod.z.number().int().min(1).max(5).optional().describe("Only return examples with complexity <= this value (1=simplest).")
|
|
58
58
|
}),
|
|
59
|
-
execute: async (args) =>
|
|
59
|
+
execute: async (args) => chunk7EWP4OD7_cjs.getExamples(args.type, {
|
|
60
60
|
limit: args.limit,
|
|
61
61
|
preferFeatured: args.preferFeatured,
|
|
62
62
|
maxComplexity: args.maxComplexity
|
|
@@ -70,7 +70,7 @@ var schematexTools = {
|
|
|
70
70
|
),
|
|
71
71
|
dsl: zod.z.string().describe("The DSL source text to validate.")
|
|
72
72
|
}),
|
|
73
|
-
execute: async ({ type, dsl }) =>
|
|
73
|
+
execute: async ({ type, dsl }) => chunk7EWP4OD7_cjs.validateDsl(type, dsl)
|
|
74
74
|
}),
|
|
75
75
|
renderDsl: ai.tool({
|
|
76
76
|
description: "Render Schematex DSL to an SVG string. Returns { ok: true, svg } or { ok: false, errors }. Use when the caller needs the actual diagram output, not just validation.",
|
|
@@ -85,7 +85,7 @@ var schematexTools = {
|
|
|
85
85
|
dsl,
|
|
86
86
|
theme,
|
|
87
87
|
padding
|
|
88
|
-
}) =>
|
|
88
|
+
}) => chunk7EWP4OD7_cjs.renderDsl(type, dsl, { theme, padding })
|
|
89
89
|
})
|
|
90
90
|
};
|
|
91
91
|
|
package/dist/ai/ai-sdk.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
|
-
import { c as DiagramListItem, g as GetSyntaxResult, e as GetExamplesResult, V as ValidateDslResult, R as RenderDslResult } from '../tools-
|
|
3
|
-
import '../api-
|
|
4
|
-
import '../diagnostics-
|
|
2
|
+
import { c as DiagramListItem, g as GetSyntaxResult, e as GetExamplesResult, V as ValidateDslResult, R as RenderDslResult } from '../tools-B98iarLm.cjs';
|
|
3
|
+
import '../api-v9t1T1v6.cjs';
|
|
4
|
+
import '../diagnostics-5bVLlGNj.cjs';
|
|
5
5
|
|
|
6
6
|
declare const schematexTools: {
|
|
7
7
|
readonly listDiagrams: ai.Tool<{}, DiagramListItem[]>;
|
package/dist/ai/ai-sdk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
|
-
import { c as DiagramListItem, g as GetSyntaxResult, e as GetExamplesResult, V as ValidateDslResult, R as RenderDslResult } from '../tools-
|
|
3
|
-
import '../api-
|
|
4
|
-
import '../diagnostics-
|
|
2
|
+
import { c as DiagramListItem, g as GetSyntaxResult, e as GetExamplesResult, V as ValidateDslResult, R as RenderDslResult } from '../tools-CCZ1IcIN.js';
|
|
3
|
+
import '../api-BOJJlNb1.js';
|
|
4
|
+
import '../diagnostics-5bVLlGNj.js';
|
|
5
5
|
|
|
6
6
|
declare const schematexTools: {
|
|
7
7
|
readonly listDiagrams: ai.Tool<{}, DiagramListItem[]>;
|
package/dist/ai/ai-sdk.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-N524SY5D.js';
|
|
2
|
+
import '../chunk-LMNWUZMD.js';
|
|
3
3
|
import '../chunk-3J4DZPZC.js';
|
|
4
4
|
import '../chunk-RDYACU2G.js';
|
|
5
5
|
import '../chunk-3PH2MQGN.js';
|
|
6
6
|
import '../chunk-B4CMWA6Y.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-II4GLKGF.js';
|
|
8
8
|
import '../chunk-JEMAOC2D.js';
|
|
9
9
|
import '../chunk-GYYYULBL.js';
|
|
10
10
|
import '../chunk-SXOAAQNY.js';
|
package/dist/ai/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunk7EWP4OD7_cjs = require('../chunk-7EWP4OD7.cjs');
|
|
4
|
+
require('../chunk-Q7CWX6HA.cjs');
|
|
5
5
|
require('../chunk-4OC3CTGE.cjs');
|
|
6
6
|
require('../chunk-4AC6I7KJ.cjs');
|
|
7
7
|
require('../chunk-C4Y24X3U.cjs');
|
|
8
8
|
require('../chunk-INVLJYAE.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-N3HU635X.cjs');
|
|
10
10
|
require('../chunk-GAQ36VFD.cjs');
|
|
11
11
|
require('../chunk-627GHE2N.cjs');
|
|
12
12
|
require('../chunk-ITI3STJ6.cjs');
|
|
@@ -27,10 +27,10 @@ require('../chunk-3WNW5Y7P.cjs');
|
|
|
27
27
|
|
|
28
28
|
// src/ai/prompt-context.ts
|
|
29
29
|
function buildPromptContext(type, opts = {}) {
|
|
30
|
-
const resolved =
|
|
30
|
+
const resolved = chunk7EWP4OD7_cjs.resolveDiagramType(type) ?? type;
|
|
31
31
|
const detail = opts.detail ?? "canonical";
|
|
32
32
|
const limit = opts.examples ?? 2;
|
|
33
|
-
const { type: canonical, name, standard, syntax } =
|
|
33
|
+
const { type: canonical, name, standard, syntax } = chunk7EWP4OD7_cjs.getSyntax(resolved, {
|
|
34
34
|
detail
|
|
35
35
|
});
|
|
36
36
|
const parts = [
|
|
@@ -41,7 +41,7 @@ function buildPromptContext(type, opts = {}) {
|
|
|
41
41
|
];
|
|
42
42
|
let exampleCount = 0;
|
|
43
43
|
if (limit > 0) {
|
|
44
|
-
const examples =
|
|
44
|
+
const examples = chunk7EWP4OD7_cjs.getExamples(canonical, {
|
|
45
45
|
preferFeatured: opts.preferFeatured ?? true,
|
|
46
46
|
limit,
|
|
47
47
|
maxComplexity: opts.maxComplexity
|
|
@@ -67,47 +67,47 @@ function buildPromptContext(type, opts = {}) {
|
|
|
67
67
|
|
|
68
68
|
Object.defineProperty(exports, "DIAGRAM_REGISTRY", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk7EWP4OD7_cjs.DIAGRAM_REGISTRY; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "DIAGRAM_SINCE", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk7EWP4OD7_cjs.DIAGRAM_SINCE; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "getAllDiagramTypes", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk7EWP4OD7_cjs.getAllDiagramTypes; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "getDiagramMeta", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk7EWP4OD7_cjs.getDiagramMeta; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "getDiagramSince", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk7EWP4OD7_cjs.getDiagramSince; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "getExamples", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk7EWP4OD7_cjs.getExamples; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "getSyntax", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk7EWP4OD7_cjs.getSyntax; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "listDiagrams", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk7EWP4OD7_cjs.listDiagrams; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "renderDsl", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk7EWP4OD7_cjs.renderDsl; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "resolveDiagramType", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk7EWP4OD7_cjs.resolveDiagramType; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "validateDsl", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunk7EWP4OD7_cjs.validateDsl; }
|
|
111
111
|
});
|
|
112
112
|
exports.buildPromptContext = buildPromptContext;
|
|
113
113
|
//# sourceMappingURL=index.cjs.map
|
package/dist/ai/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as SyntaxDetail } from '../tools-
|
|
2
|
-
export { D as DIAGRAM_REGISTRY, a as DIAGRAM_SINCE, b as DiagramCluster, c as DiagramListItem, d as DiagramMeta, E as Example, G as GetExamplesOptions, e as GetExamplesResult, f as GetSyntaxOptions, g as GetSyntaxResult, R as RenderDslResult, h as SchematexValidationError, i as SyntaxDoc, V as ValidateDslResult, j as getAllDiagramTypes, k as getDiagramMeta, l as getDiagramSince, m as getExamples, n as getSyntax, o as listDiagrams, r as renderDsl, p as resolveDiagramType, v as validateDsl } from '../tools-
|
|
3
|
-
import { a as DiagramType } from '../diagnostics-
|
|
4
|
-
import '../api-
|
|
1
|
+
import { S as SyntaxDetail } from '../tools-B98iarLm.cjs';
|
|
2
|
+
export { D as DIAGRAM_REGISTRY, a as DIAGRAM_SINCE, b as DiagramCluster, c as DiagramListItem, d as DiagramMeta, E as Example, G as GetExamplesOptions, e as GetExamplesResult, f as GetSyntaxOptions, g as GetSyntaxResult, R as RenderDslResult, h as SchematexValidationError, i as SyntaxDoc, V as ValidateDslResult, j as getAllDiagramTypes, k as getDiagramMeta, l as getDiagramSince, m as getExamples, n as getSyntax, o as listDiagrams, r as renderDsl, p as resolveDiagramType, v as validateDsl } from '../tools-B98iarLm.cjs';
|
|
3
|
+
import { a as DiagramType } from '../diagnostics-5bVLlGNj.cjs';
|
|
4
|
+
import '../api-v9t1T1v6.cjs';
|
|
5
5
|
|
|
6
6
|
interface BuildPromptContextOptions {
|
|
7
7
|
/** How many few-shot examples to embed. Default 2. Set 0 to omit examples. */
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as SyntaxDetail } from '../tools-
|
|
2
|
-
export { D as DIAGRAM_REGISTRY, a as DIAGRAM_SINCE, b as DiagramCluster, c as DiagramListItem, d as DiagramMeta, E as Example, G as GetExamplesOptions, e as GetExamplesResult, f as GetSyntaxOptions, g as GetSyntaxResult, R as RenderDslResult, h as SchematexValidationError, i as SyntaxDoc, V as ValidateDslResult, j as getAllDiagramTypes, k as getDiagramMeta, l as getDiagramSince, m as getExamples, n as getSyntax, o as listDiagrams, r as renderDsl, p as resolveDiagramType, v as validateDsl } from '../tools-
|
|
3
|
-
import { a as DiagramType } from '../diagnostics-
|
|
4
|
-
import '../api-
|
|
1
|
+
import { S as SyntaxDetail } from '../tools-CCZ1IcIN.js';
|
|
2
|
+
export { D as DIAGRAM_REGISTRY, a as DIAGRAM_SINCE, b as DiagramCluster, c as DiagramListItem, d as DiagramMeta, E as Example, G as GetExamplesOptions, e as GetExamplesResult, f as GetSyntaxOptions, g as GetSyntaxResult, R as RenderDslResult, h as SchematexValidationError, i as SyntaxDoc, V as ValidateDslResult, j as getAllDiagramTypes, k as getDiagramMeta, l as getDiagramSince, m as getExamples, n as getSyntax, o as listDiagrams, r as renderDsl, p as resolveDiagramType, v as validateDsl } from '../tools-CCZ1IcIN.js';
|
|
3
|
+
import { a as DiagramType } from '../diagnostics-5bVLlGNj.js';
|
|
4
|
+
import '../api-BOJJlNb1.js';
|
|
5
5
|
|
|
6
6
|
interface BuildPromptContextOptions {
|
|
7
7
|
/** How many few-shot examples to embed. Default 2. Set 0 to omit examples. */
|
package/dist/ai/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { resolveDiagramType, getSyntax, getExamples } from '../chunk-
|
|
2
|
-
export { DIAGRAM_REGISTRY, DIAGRAM_SINCE, getAllDiagramTypes, getDiagramMeta, getDiagramSince, getExamples, getSyntax, listDiagrams, renderDsl, resolveDiagramType, validateDsl } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { resolveDiagramType, getSyntax, getExamples } from '../chunk-N524SY5D.js';
|
|
2
|
+
export { DIAGRAM_REGISTRY, DIAGRAM_SINCE, getAllDiagramTypes, getDiagramMeta, getDiagramSince, getExamples, getSyntax, listDiagrams, renderDsl, resolveDiagramType, validateDsl } from '../chunk-N524SY5D.js';
|
|
3
|
+
import '../chunk-LMNWUZMD.js';
|
|
4
4
|
import '../chunk-3J4DZPZC.js';
|
|
5
5
|
import '../chunk-RDYACU2G.js';
|
|
6
6
|
import '../chunk-3PH2MQGN.js';
|
|
7
7
|
import '../chunk-B4CMWA6Y.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-II4GLKGF.js';
|
|
9
9
|
import '../chunk-JEMAOC2D.js';
|
|
10
10
|
import '../chunk-GYYYULBL.js';
|
|
11
11
|
import '../chunk-SXOAAQNY.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as SchematexParseResult, c as SchematexRenderResult } from './diagnostics-
|
|
1
|
+
import { b as SchematexParseResult, c as SchematexRenderResult } from './diagnostics-5bVLlGNj.js';
|
|
2
2
|
|
|
3
3
|
interface SchematexConfig {
|
|
4
|
-
type?: "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc" | "prisma" | "usecase" | "pert" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie" | "floorplan" | "playbook";
|
|
4
|
+
type?: "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc" | "prisma" | "usecase" | "pert" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie" | "rbd" | "floorplan" | "playbook";
|
|
5
5
|
width?: number;
|
|
6
6
|
height?: number;
|
|
7
7
|
padding?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as SchematexParseResult, c as SchematexRenderResult } from './diagnostics-
|
|
1
|
+
import { b as SchematexParseResult, c as SchematexRenderResult } from './diagnostics-5bVLlGNj.cjs';
|
|
2
2
|
|
|
3
3
|
interface SchematexConfig {
|
|
4
|
-
type?: "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc" | "prisma" | "usecase" | "pert" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie" | "floorplan" | "playbook";
|
|
4
|
+
type?: "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc" | "prisma" | "usecase" | "pert" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie" | "rbd" | "floorplan" | "playbook";
|
|
5
5
|
width?: number;
|
|
6
6
|
height?: number;
|
|
7
7
|
padding?: number;
|
package/dist/browser.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQ7CWX6HA_cjs = require('./chunk-Q7CWX6HA.cjs');
|
|
4
4
|
require('./chunk-4OC3CTGE.cjs');
|
|
5
5
|
require('./chunk-4AC6I7KJ.cjs');
|
|
6
6
|
require('./chunk-C4Y24X3U.cjs');
|
|
7
7
|
require('./chunk-INVLJYAE.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-N3HU635X.cjs');
|
|
9
9
|
require('./chunk-GAQ36VFD.cjs');
|
|
10
10
|
require('./chunk-627GHE2N.cjs');
|
|
11
11
|
require('./chunk-ITI3STJ6.cjs');
|
|
@@ -26,10 +26,10 @@ require('./chunk-3WNW5Y7P.cjs');
|
|
|
26
26
|
|
|
27
27
|
// src/browser.ts
|
|
28
28
|
function renderToElement(text, config) {
|
|
29
|
-
return svgStringToElement(
|
|
29
|
+
return svgStringToElement(chunkQ7CWX6HA_cjs.render(text, config));
|
|
30
30
|
}
|
|
31
31
|
function renderPreviewToElement(text, config) {
|
|
32
|
-
return svgStringToElement(
|
|
32
|
+
return svgStringToElement(chunkQ7CWX6HA_cjs.renderPreview(text, config));
|
|
33
33
|
}
|
|
34
34
|
function svgStringToElement(svgString) {
|
|
35
35
|
const parser = new DOMParser();
|
|
@@ -42,23 +42,23 @@ function svgStringToElement(svgString) {
|
|
|
42
42
|
return el;
|
|
43
43
|
}
|
|
44
44
|
function renderToContainer(text, container, config) {
|
|
45
|
-
container.innerHTML =
|
|
45
|
+
container.innerHTML = chunkQ7CWX6HA_cjs.render(text, config);
|
|
46
46
|
}
|
|
47
47
|
function renderPreviewToContainer(text, container, config) {
|
|
48
|
-
container.innerHTML =
|
|
48
|
+
container.innerHTML = chunkQ7CWX6HA_cjs.renderPreview(text, config);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
Object.defineProperty(exports, "render", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkQ7CWX6HA_cjs.render; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "renderPreview", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkQ7CWX6HA_cjs.renderPreview; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "renderResult", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkQ7CWX6HA_cjs.renderResult; }
|
|
62
62
|
});
|
|
63
63
|
exports.renderPreviewToContainer = renderPreviewToContainer;
|
|
64
64
|
exports.renderPreviewToElement = renderPreviewToElement;
|
package/dist/browser.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SchematexConfig } from './api-
|
|
2
|
-
export { r as render, b as renderPreview, c as renderResult } from './api-
|
|
3
|
-
import './diagnostics-
|
|
1
|
+
import { S as SchematexConfig } from './api-v9t1T1v6.cjs';
|
|
2
|
+
export { r as render, b as renderPreview, c as renderResult } from './api-v9t1T1v6.cjs';
|
|
3
|
+
import './diagnostics-5bVLlGNj.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Browser-specific utilities for Schematex.
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SchematexConfig } from './api-
|
|
2
|
-
export { r as render, b as renderPreview, c as renderResult } from './api-
|
|
3
|
-
import './diagnostics-
|
|
1
|
+
import { S as SchematexConfig } from './api-BOJJlNb1.js';
|
|
2
|
+
export { r as render, b as renderPreview, c as renderResult } from './api-BOJJlNb1.js';
|
|
3
|
+
import './diagnostics-5bVLlGNj.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Browser-specific utilities for Schematex.
|
package/dist/browser.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { render, renderPreview } from './chunk-
|
|
2
|
-
export { render, renderPreview, renderResult } from './chunk-
|
|
1
|
+
import { render, renderPreview } from './chunk-LMNWUZMD.js';
|
|
2
|
+
export { render, renderPreview, renderResult } from './chunk-LMNWUZMD.js';
|
|
3
3
|
import './chunk-3J4DZPZC.js';
|
|
4
4
|
import './chunk-RDYACU2G.js';
|
|
5
5
|
import './chunk-3PH2MQGN.js';
|
|
6
6
|
import './chunk-B4CMWA6Y.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-II4GLKGF.js';
|
|
8
8
|
import './chunk-JEMAOC2D.js';
|
|
9
9
|
import './chunk-GYYYULBL.js';
|
|
10
10
|
import './chunk-SXOAAQNY.js';
|