schematex 0.9.0 → 0.9.1
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/ai/ai-sdk.cjs +9 -9
- package/dist/ai/ai-sdk.d.cts +2 -2
- package/dist/ai/ai-sdk.d.ts +2 -2
- package/dist/ai/ai-sdk.js +4 -4
- package/dist/ai/index.cjs +18 -18
- package/dist/ai/index.js +5 -5
- package/dist/browser.cjs +10 -10
- package/dist/browser.js +4 -4
- package/dist/{chunk-HKOPXQYU.cjs → chunk-2R4UXKCT.cjs} +5 -5
- package/dist/{chunk-HKOPXQYU.cjs.map → chunk-2R4UXKCT.cjs.map} +1 -1
- package/dist/{chunk-DR3DDDQY.cjs → chunk-47SGK5R6.cjs} +56 -6
- package/dist/chunk-47SGK5R6.cjs.map +1 -0
- package/dist/{chunk-T3GV7OVF.js → chunk-EBX4KCYW.js} +19 -2
- package/dist/chunk-EBX4KCYW.js.map +1 -0
- package/dist/{chunk-JIJWGHRN.cjs → chunk-FJVQGBPU.cjs} +19 -2
- package/dist/chunk-FJVQGBPU.cjs.map +1 -0
- package/dist/{chunk-HPEAE3JM.js → chunk-J34HDRFY.js} +56 -6
- package/dist/chunk-J34HDRFY.js.map +1 -0
- package/dist/{chunk-UGB42BGK.cjs → chunk-QYC6WZEM.cjs} +7 -7
- package/dist/{chunk-UGB42BGK.cjs.map → chunk-QYC6WZEM.cjs.map} +1 -1
- package/dist/{chunk-LM5X7ZNR.js → chunk-VOJGLBE5.js} +4 -4
- package/dist/{chunk-LM5X7ZNR.js.map → chunk-VOJGLBE5.js.map} +1 -1
- package/dist/{chunk-PR6IAGVP.js → chunk-Z5ML4QYG.js} +3 -3
- package/dist/{chunk-PR6IAGVP.js.map → chunk-Z5ML4QYG.js.map} +1 -1
- package/dist/diagrams/circuit/index.cjs +8 -8
- package/dist/diagrams/circuit/index.js +1 -1
- package/dist/diagrams/flowchart/index.cjs +7 -7
- package/dist/diagrams/flowchart/index.d.cts +1 -1
- package/dist/diagrams/flowchart/index.d.ts +1 -1
- package/dist/diagrams/flowchart/index.js +1 -1
- package/dist/{index-B0YO7rx8.d.cts → index-BiXWjQht.d.cts} +10 -4
- package/dist/{index-u3KZBdas.d.ts → index-Cq8y1aaa.d.ts} +10 -4
- package/dist/index.cjs +40 -40
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/react.cjs +4 -4
- package/dist/react.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-DR3DDDQY.cjs.map +0 -1
- package/dist/chunk-HPEAE3JM.js.map +0 -1
- package/dist/chunk-JIJWGHRN.cjs.map +0 -1
- package/dist/chunk-T3GV7OVF.js.map +0 -1
package/dist/ai/ai-sdk.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunk2R4UXKCT_cjs = require('../chunk-2R4UXKCT.cjs');
|
|
4
|
+
require('../chunk-QYC6WZEM.cjs');
|
|
5
5
|
require('../chunk-Q2YRJHFB.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-FJVQGBPU.cjs');
|
|
7
7
|
require('../chunk-6L46VIXI.cjs');
|
|
8
8
|
require('../chunk-JIUC4DRS.cjs');
|
|
9
9
|
require('../chunk-AJJYWXZB.cjs');
|
|
10
10
|
require('../chunk-LENRV7ZJ.cjs');
|
|
11
11
|
require('../chunk-T5KHNJ67.cjs');
|
|
12
12
|
require('../chunk-YMFYPB5Y.cjs');
|
|
13
|
-
require('../chunk-
|
|
13
|
+
require('../chunk-47SGK5R6.cjs');
|
|
14
14
|
require('../chunk-NFZMNKOR.cjs');
|
|
15
15
|
require('../chunk-2SZJQVPN.cjs');
|
|
16
16
|
require('../chunk-KGOZBABH.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 () => chunk2R4UXKCT_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
|
+
}) => chunk2R4UXKCT_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) => chunk2R4UXKCT_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 }) => chunk2R4UXKCT_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
|
+
}) => chunk2R4UXKCT_cjs.renderDsl(type, dsl, { theme, padding })
|
|
89
89
|
})
|
|
90
90
|
};
|
|
91
91
|
|
package/dist/ai/ai-sdk.d.cts
CHANGED
|
@@ -7,13 +7,13 @@ declare const schematexTools: {
|
|
|
7
7
|
readonly listDiagrams: ai.Tool<{}, DiagramListItem[]>;
|
|
8
8
|
readonly getSyntax: ai.Tool<{
|
|
9
9
|
type: string;
|
|
10
|
-
detail?: "
|
|
10
|
+
detail?: "reference" | "canonical" | undefined;
|
|
11
11
|
}, GetSyntaxResult>;
|
|
12
12
|
readonly getExamples: ai.Tool<{
|
|
13
13
|
type: string;
|
|
14
14
|
limit?: number | undefined;
|
|
15
|
-
preferFeatured?: boolean | undefined;
|
|
16
15
|
maxComplexity?: number | undefined;
|
|
16
|
+
preferFeatured?: boolean | undefined;
|
|
17
17
|
}, GetExamplesResult>;
|
|
18
18
|
readonly validateDsl: ai.Tool<{
|
|
19
19
|
dsl: string;
|
package/dist/ai/ai-sdk.d.ts
CHANGED
|
@@ -7,13 +7,13 @@ declare const schematexTools: {
|
|
|
7
7
|
readonly listDiagrams: ai.Tool<{}, DiagramListItem[]>;
|
|
8
8
|
readonly getSyntax: ai.Tool<{
|
|
9
9
|
type: string;
|
|
10
|
-
detail?: "
|
|
10
|
+
detail?: "reference" | "canonical" | undefined;
|
|
11
11
|
}, GetSyntaxResult>;
|
|
12
12
|
readonly getExamples: ai.Tool<{
|
|
13
13
|
type: string;
|
|
14
14
|
limit?: number | undefined;
|
|
15
|
-
preferFeatured?: boolean | undefined;
|
|
16
15
|
maxComplexity?: number | undefined;
|
|
16
|
+
preferFeatured?: boolean | undefined;
|
|
17
17
|
}, GetExamplesResult>;
|
|
18
18
|
readonly validateDsl: ai.Tool<{
|
|
19
19
|
dsl: string;
|
package/dist/ai/ai-sdk.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-Z5ML4QYG.js';
|
|
2
|
+
import '../chunk-VOJGLBE5.js';
|
|
3
3
|
import '../chunk-E3CAJGJM.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-EBX4KCYW.js';
|
|
5
5
|
import '../chunk-DX44TBFZ.js';
|
|
6
6
|
import '../chunk-JGCKW5RS.js';
|
|
7
7
|
import '../chunk-KF3DFASA.js';
|
|
8
8
|
import '../chunk-GDZNTILD.js';
|
|
9
9
|
import '../chunk-YTGOLTLJ.js';
|
|
10
10
|
import '../chunk-UOM3EDE6.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-J34HDRFY.js';
|
|
12
12
|
import '../chunk-6NUAGU6O.js';
|
|
13
13
|
import '../chunk-K2D6VFLP.js';
|
|
14
14
|
import '../chunk-JN6FHUC6.js';
|
package/dist/ai/index.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunk2R4UXKCT_cjs = require('../chunk-2R4UXKCT.cjs');
|
|
4
|
+
require('../chunk-QYC6WZEM.cjs');
|
|
5
5
|
require('../chunk-Q2YRJHFB.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-FJVQGBPU.cjs');
|
|
7
7
|
require('../chunk-6L46VIXI.cjs');
|
|
8
8
|
require('../chunk-JIUC4DRS.cjs');
|
|
9
9
|
require('../chunk-AJJYWXZB.cjs');
|
|
10
10
|
require('../chunk-LENRV7ZJ.cjs');
|
|
11
11
|
require('../chunk-T5KHNJ67.cjs');
|
|
12
12
|
require('../chunk-YMFYPB5Y.cjs');
|
|
13
|
-
require('../chunk-
|
|
13
|
+
require('../chunk-47SGK5R6.cjs');
|
|
14
14
|
require('../chunk-NFZMNKOR.cjs');
|
|
15
15
|
require('../chunk-2SZJQVPN.cjs');
|
|
16
16
|
require('../chunk-KGOZBABH.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 = chunk2R4UXKCT_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 } = chunk2R4UXKCT_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 = chunk2R4UXKCT_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 chunk2R4UXKCT_cjs.DIAGRAM_REGISTRY; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "DIAGRAM_SINCE", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk2R4UXKCT_cjs.DIAGRAM_SINCE; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "getAllDiagramTypes", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk2R4UXKCT_cjs.getAllDiagramTypes; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "getDiagramMeta", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk2R4UXKCT_cjs.getDiagramMeta; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "getDiagramSince", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk2R4UXKCT_cjs.getDiagramSince; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "getExamples", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk2R4UXKCT_cjs.getExamples; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "getSyntax", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk2R4UXKCT_cjs.getSyntax; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "listDiagrams", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk2R4UXKCT_cjs.listDiagrams; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "renderDsl", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk2R4UXKCT_cjs.renderDsl; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "resolveDiagramType", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk2R4UXKCT_cjs.resolveDiagramType; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "validateDsl", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunk2R4UXKCT_cjs.validateDsl; }
|
|
111
111
|
});
|
|
112
112
|
exports.buildPromptContext = buildPromptContext;
|
|
113
113
|
//# sourceMappingURL=index.cjs.map
|
package/dist/ai/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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-Z5ML4QYG.js';
|
|
2
|
+
export { DIAGRAM_REGISTRY, DIAGRAM_SINCE, getAllDiagramTypes, getDiagramMeta, getDiagramSince, getExamples, getSyntax, listDiagrams, renderDsl, resolveDiagramType, validateDsl } from '../chunk-Z5ML4QYG.js';
|
|
3
|
+
import '../chunk-VOJGLBE5.js';
|
|
4
4
|
import '../chunk-E3CAJGJM.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-EBX4KCYW.js';
|
|
6
6
|
import '../chunk-DX44TBFZ.js';
|
|
7
7
|
import '../chunk-JGCKW5RS.js';
|
|
8
8
|
import '../chunk-KF3DFASA.js';
|
|
9
9
|
import '../chunk-GDZNTILD.js';
|
|
10
10
|
import '../chunk-YTGOLTLJ.js';
|
|
11
11
|
import '../chunk-UOM3EDE6.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-J34HDRFY.js';
|
|
13
13
|
import '../chunk-6NUAGU6O.js';
|
|
14
14
|
import '../chunk-K2D6VFLP.js';
|
|
15
15
|
import '../chunk-JN6FHUC6.js';
|
package/dist/browser.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQYC6WZEM_cjs = require('./chunk-QYC6WZEM.cjs');
|
|
4
4
|
require('./chunk-Q2YRJHFB.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-FJVQGBPU.cjs');
|
|
6
6
|
require('./chunk-6L46VIXI.cjs');
|
|
7
7
|
require('./chunk-JIUC4DRS.cjs');
|
|
8
8
|
require('./chunk-AJJYWXZB.cjs');
|
|
9
9
|
require('./chunk-LENRV7ZJ.cjs');
|
|
10
10
|
require('./chunk-T5KHNJ67.cjs');
|
|
11
11
|
require('./chunk-YMFYPB5Y.cjs');
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-47SGK5R6.cjs');
|
|
13
13
|
require('./chunk-NFZMNKOR.cjs');
|
|
14
14
|
require('./chunk-2SZJQVPN.cjs');
|
|
15
15
|
require('./chunk-KGOZBABH.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(chunkQYC6WZEM_cjs.render(text, config));
|
|
30
30
|
}
|
|
31
31
|
function renderPreviewToElement(text, config) {
|
|
32
|
-
return svgStringToElement(
|
|
32
|
+
return svgStringToElement(chunkQYC6WZEM_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 = chunkQYC6WZEM_cjs.render(text, config);
|
|
46
46
|
}
|
|
47
47
|
function renderPreviewToContainer(text, container, config) {
|
|
48
|
-
container.innerHTML =
|
|
48
|
+
container.innerHTML = chunkQYC6WZEM_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 chunkQYC6WZEM_cjs.render; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "renderPreview", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkQYC6WZEM_cjs.renderPreview; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "renderResult", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkQYC6WZEM_cjs.renderResult; }
|
|
62
62
|
});
|
|
63
63
|
exports.renderPreviewToContainer = renderPreviewToContainer;
|
|
64
64
|
exports.renderPreviewToElement = renderPreviewToElement;
|
package/dist/browser.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { render, renderPreview } from './chunk-
|
|
2
|
-
export { render, renderPreview, renderResult } from './chunk-
|
|
1
|
+
import { render, renderPreview } from './chunk-VOJGLBE5.js';
|
|
2
|
+
export { render, renderPreview, renderResult } from './chunk-VOJGLBE5.js';
|
|
3
3
|
import './chunk-E3CAJGJM.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-EBX4KCYW.js';
|
|
5
5
|
import './chunk-DX44TBFZ.js';
|
|
6
6
|
import './chunk-JGCKW5RS.js';
|
|
7
7
|
import './chunk-KF3DFASA.js';
|
|
8
8
|
import './chunk-GDZNTILD.js';
|
|
9
9
|
import './chunk-YTGOLTLJ.js';
|
|
10
10
|
import './chunk-UOM3EDE6.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-J34HDRFY.js';
|
|
12
12
|
import './chunk-6NUAGU6O.js';
|
|
13
13
|
import './chunk-K2D6VFLP.js';
|
|
14
14
|
import './chunk-JN6FHUC6.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQYC6WZEM_cjs = require('./chunk-QYC6WZEM.cjs');
|
|
4
4
|
|
|
5
5
|
// src/ai/registry.ts
|
|
6
6
|
var DIAGRAM_REGISTRY = [
|
|
@@ -5312,7 +5312,7 @@ function getExamples(type, opts = {}) {
|
|
|
5312
5312
|
function validateDsl(type, dsl) {
|
|
5313
5313
|
const resolvedType = type ? resolveDiagramType(type) : void 0;
|
|
5314
5314
|
const config = type ? { type: resolvedType ?? type } : void 0;
|
|
5315
|
-
const result =
|
|
5315
|
+
const result = chunkQYC6WZEM_cjs.parseResult(dsl, config);
|
|
5316
5316
|
if (result.ok) {
|
|
5317
5317
|
return {
|
|
5318
5318
|
ok: true,
|
|
@@ -5338,7 +5338,7 @@ function renderDsl(type, dsl, options = {}) {
|
|
|
5338
5338
|
...options,
|
|
5339
5339
|
...type ? { type: resolvedType ?? type } : {}
|
|
5340
5340
|
};
|
|
5341
|
-
const result =
|
|
5341
|
+
const result = chunkQYC6WZEM_cjs.renderResult(dsl, config);
|
|
5342
5342
|
if (result.ok) {
|
|
5343
5343
|
return {
|
|
5344
5344
|
ok: true,
|
|
@@ -5400,5 +5400,5 @@ exports.listDiagrams = listDiagrams;
|
|
|
5400
5400
|
exports.renderDsl = renderDsl;
|
|
5401
5401
|
exports.resolveDiagramType = resolveDiagramType;
|
|
5402
5402
|
exports.validateDsl = validateDsl;
|
|
5403
|
-
//# sourceMappingURL=chunk-
|
|
5404
|
-
//# sourceMappingURL=chunk-
|
|
5403
|
+
//# sourceMappingURL=chunk-2R4UXKCT.cjs.map
|
|
5404
|
+
//# sourceMappingURL=chunk-2R4UXKCT.cjs.map
|